/* Sleuth site styles. Built on SGDS v3 tokens (themes/day.css and night.css).
   Brand overrides live in the first block so a new identity is one edit away. */

:root {
  /* Brand: the Sleuth mark. Lens and root node in violet, funded wallets in cyan. */
  --brand-mark: #6b4feb;
  --brand-mark-accent: #0092b1;

  /* Chart palette, validated with the dataviz checks (all-pairs, light surface). */
  --cluster-1: #6b4feb;
  --cluster-2: #0092b1;
  --cluster-3: #9d841c;
  --cluster-other: var(--sgds-gray-500);
  --cluster-none: var(--sgds-gray-400);
  --chart-surface: var(--sgds-surface-default);
  --chart-link: var(--sgds-border-color-muted);

  --page-max: 1200px;
  --radius: var(--sgds-border-radius-lg);
  --shadow-raised: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
  color-scheme: light;
}

:root[data-theme="dark"] {
  /* Dark steps, validated separately against the night surface. */
  --brand-mark: #a999f3;
  --brand-mark-accent: #49d2ef;
  --cluster-1: #8a72ef;
  --cluster-2: #0092b1;
  --cluster-3: #9d841c;
  --cluster-other: var(--sgds-gray-500);
  --cluster-none: var(--sgds-gray-600);
  --shadow-raised: none;
  color-scheme: dark;
}

html {
  background: var(--sgds-bg-default);
}

body {
  background: var(--sgds-bg-default);
  color: var(--sgds-body-color-default);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--sgds-padding-sm) var(--sgds-padding-md);
  background: var(--sgds-primary-surface-default);
  color: var(--sgds-color-fixed-light);
}
.skip-link:focus {
  left: var(--sgds-padding-md);
  top: var(--sgds-padding-md);
}

/* Layout ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--sgds-padding-lg);
  box-sizing: border-box;
}

@media (max-width: 512px) {
  .container {
    padding: 0 var(--sgds-padding-md);
  }
}

.section {
  padding: var(--sgds-padding-4-xl) 0;
}

.section--alt {
  background: var(--sgds-bg-alternate);
}

.section--tight {
  padding: var(--sgds-padding-2-xl) 0;
}

.stack > * + * {
  margin-top: var(--sgds-margin-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sgds-gap-sm);
  align-items: center;
}

.grid {
  display: grid;
  gap: var(--sgds-layout-gap-md);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--kpi {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sgds-gap-md);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Case files: launch shares on one shared scale. --v is the bar length in percent of the track. */
.case-bars {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sgds-margin-lg);
  display: grid;
  gap: var(--sgds-gap-md);
}

.case-bars li {
  display: grid;
  gap: var(--sgds-gap-2-xs);
}

.case-bars strong,
.case-bars span:not([class]) {
  display: block;
}

.case-bars span:not([class]) {
  font-size: var(--sgds-font-size-body-sm);
  color: var(--sgds-body-color-subtle);
}

.case-track {
  display: flex;
  align-items: center;
  gap: var(--sgds-gap-xs);
  min-width: 0;
}

.case-bar {
  flex: none;
  height: 12px;
  width: calc(var(--v) * 1%);
  min-width: 2px;
  border-radius: 0 4px 4px 0;
  background: var(--cluster-1);
}

.case-value {
  font-weight: var(--sgds-font-weight-bold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.case-note {
  border-left: 4px solid var(--cluster-1);
  padding-left: var(--sgds-padding-md);
  margin: 0 0 var(--sgds-margin-md);
}

/* Saved scans: one card per scan, stored in the browser. */
.scan-new,
.scan-add {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sgds-gap-sm);
  align-items: flex-end;
}

.scan-new sgds-input,
.scan-add sgds-input {
  flex: 1 1 18rem;
}

.scan-list {
  display: grid;
  gap: var(--sgds-gap-md);
}

.scan-list:empty {
  display: none;
}

.scan-card {
  display: grid;
  gap: var(--sgds-gap-md);
  border: 1px solid var(--sgds-border-color-muted);
  border-radius: var(--radius);
  padding: var(--sgds-padding-lg);
}

.scan-head,
.scan-compare {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sgds-gap-sm);
  justify-content: space-between;
  align-items: flex-end;
}

.scan-actions {
  white-space: nowrap;
  text-align: right;
}

/* Header ------------------------------------------------------------------ */

sgds-mainnav {
  border-bottom: 1px solid var(--sgds-border-color-muted);
  background: var(--sgds-surface-default);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sgds-gap-xs);
  font-weight: var(--sgds-font-weight-bold);
  font-size: var(--sgds-font-size-heading-sm);
  color: var(--sgds-heading-color-default);
  letter-spacing: var(--sgds-letter-spacing-tight);
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--brand-mark);
}

.brand svg .brand-accent {
  fill: var(--brand-mark-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sgds-gap-xs);
}

/* Typography --------------------------------------------------------------- */

.overline {
  display: block;
  font-size: var(--sgds-font-size-overline-md);
  font-weight: var(--sgds-font-weight-semibold);
  letter-spacing: var(--sgds-letter-spacing-wide);
  text-transform: uppercase;
  color: var(--sgds-primary-color-default);
  margin-bottom: var(--sgds-margin-sm);
}

.display {
  font-size: var(--sgds-font-size-display-lg);
  line-height: var(--sgds-line-height-3-xl);
  letter-spacing: var(--sgds-letter-spacing-tighter);
  font-weight: var(--sgds-font-weight-bold);
  margin-bottom: var(--sgds-margin-lg);
  max-width: 18ch;
}

@media (max-width: 768px) {
  .display {
    font-size: var(--sgds-font-size-display-sm);
    line-height: var(--sgds-line-height-xl);
  }
}

.lead {
  font-size: var(--sgds-font-size-body-lg);
  line-height: var(--sgds-line-height-sm);
  color: var(--sgds-body-color-subtle);
  max-width: 60ch;
}

.subtle {
  color: var(--sgds-body-color-subtle);
}

.small {
  font-size: var(--sgds-font-size-body-sm);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sgds-margin-2-xl);
}

.section-head p {
  color: var(--sgds-body-color-subtle);
  font-size: var(--sgds-font-size-body-lg);
}

/* Hero --------------------------------------------------------------------- */

.hero {
  padding: var(--sgds-padding-4-xl) 0 var(--sgds-padding-3-xl);
  background:
    radial-gradient(1100px 380px at 85% -10%, var(--sgds-primary-bg-translucent), transparent 70%),
    var(--sgds-bg-default);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--sgds-layout-gap-lg);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.quick-form {
  display: flex;
  gap: var(--sgds-gap-sm);
  align-items: flex-end;
  margin-top: var(--sgds-margin-xl);
  max-width: 640px;
}

.quick-form sgds-input {
  flex: 1;
}

@media (max-width: 512px) {
  .quick-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.examples {
  margin-top: var(--sgds-margin-sm);
  font-size: var(--sgds-font-size-body-sm);
  color: var(--sgds-body-color-subtle);
}

.examples button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--sgds-link-color-default);
  text-decoration: underline;
  cursor: pointer;
}

.hero-visual {
  background: var(--sgds-surface-default);
  border: 1px solid var(--sgds-border-color-muted);
  border-radius: var(--sgds-border-radius-xl);
  padding: var(--sgds-padding-lg);
  box-shadow: var(--shadow-raised);
}

.hero-visual figcaption {
  font-size: var(--sgds-font-size-body-sm);
  color: var(--sgds-body-color-subtle);
  margin-top: var(--sgds-margin-sm);
}

/* Panels and cards ----------------------------------------------------------- */

.panel {
  background: var(--sgds-surface-default);
  border: 1px solid var(--sgds-border-color-muted);
  border-radius: var(--radius);
  padding: var(--sgds-padding-xl);
  box-shadow: var(--shadow-raised);
  min-width: 0;
}

.panel > h2,
.panel > h3 {
  margin-bottom: var(--sgds-margin-sm);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sgds-gap-md);
  flex-wrap: wrap;
  margin-bottom: var(--sgds-margin-lg);
}

.panel-head h2,
.panel-head h3 {
  margin-bottom: var(--sgds-margin-2-xs);
}

.panel-head p {
  margin-bottom: 0;
}

@media (max-width: 512px) {
  .panel {
    padding: var(--sgds-padding-lg) var(--sgds-padding-md);
  }
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--sgds-border-radius-md);
  background: var(--sgds-primary-surface-muted);
  color: var(--sgds-primary-color-default);
  margin-bottom: var(--sgds-margin-md);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sgds-layout-gap-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: var(--sgds-padding-lg);
  border-top: 2px solid var(--sgds-primary-border-color-default);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: var(--sgds-font-weight-bold);
  color: var(--sgds-primary-color-default);
  margin-bottom: var(--sgds-margin-xs);
}

.steps h3 {
  font-size: var(--sgds-font-size-heading-sm);
}

/* KPI tiles ---------------------------------------------------------------- */

.kpi {
  background: var(--sgds-surface-default);
  border: 1px solid var(--sgds-border-color-muted);
  border-radius: var(--sgds-border-radius-md);
  padding: var(--sgds-padding-md) var(--sgds-padding-lg);
  min-width: 0;
}

.kpi-label {
  font-size: var(--sgds-font-size-label-sm);
  color: var(--sgds-label-color-subtle);
  margin-bottom: var(--sgds-margin-3-xs);
}

.kpi-value {
  font-size: var(--sgds-font-size-heading-lg);
  line-height: var(--sgds-line-height-lg);
  font-weight: var(--sgds-font-weight-semibold);
  color: var(--sgds-heading-color-default);
  letter-spacing: var(--sgds-letter-spacing-tight);
  overflow-wrap: anywhere;
}

.kpi-note {
  font-size: var(--sgds-font-size-body-sm);
  color: var(--sgds-body-color-subtle);
  margin-top: var(--sgds-margin-3-xs);
}

/* Tables ------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sgds-border-color-muted);
  border-radius: var(--sgds-border-radius-md);
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sgds-font-size-body-sm);
}

table.data th,
table.data td {
  text-align: left;
  padding: var(--sgds-padding-sm) var(--sgds-padding-md);
  border-bottom: 1px solid var(--sgds-border-color-muted);
  vertical-align: middle;
  white-space: nowrap;
}

table.data th {
  background: var(--sgds-surface-raised);
  color: var(--sgds-label-color-subtle);
  font-weight: var(--sgds-font-weight-semibold);
  position: sticky;
  top: 0;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data tr.is-highlight td {
  background: var(--sgds-primary-surface-translucent);
}

/* Address chip -------------------------------------------------------------- */

.addr {
  display: inline-flex;
  align-items: center;
  gap: var(--sgds-gap-2-xs);
  white-space: nowrap;
}

.addr a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--sgds-border-radius-sm);
  background: transparent;
  color: var(--sgds-body-color-subtle);
  cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--sgds-bg-translucent-subtle);
  color: var(--sgds-body-color-default);
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

/* Report ------------------------------------------------------------------- */

.report {
  display: grid;
  gap: var(--sgds-layout-gap-md);
}

.report-head {
  display: flex;
  gap: var(--sgds-gap-lg);
  align-items: center;
  flex-wrap: wrap;
}

.token-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sgds-surface-raised);
  border: 1px solid var(--sgds-border-color-muted);
  flex: none;
}

.token-img--placeholder {
  display: grid;
  place-items: center;
  font-weight: var(--sgds-font-weight-bold);
  color: var(--sgds-primary-color-default);
}

.report-title h2 {
  margin-bottom: var(--sgds-margin-3-xs);
}

.report-actions {
  margin-left: auto;
}

@media (max-width: 768px) {
  .report-actions {
    margin-left: 0;
    width: 100%;
  }
}

.flags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sgds-gap-sm);
}

.flags li {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sgds-gap-sm);
  align-items: start;
  padding: var(--sgds-padding-sm) 0;
  border-bottom: 1px solid var(--sgds-border-color-muted);
}

.flags li:last-child {
  border-bottom: 0;
}

.lvl {
  display: inline-grid;
  place-items: center;
  padding-top: 2px;
}
.lvl-danger { color: var(--sgds-danger-color-default); }
.lvl-warning { color: var(--sgds-warning-color-default, #9d841c); }
.lvl-info { color: var(--sgds-accent-color-default); }
.lvl-ok { color: var(--sgds-success-color-default); }

.flags strong {
  display: block;
}

.flags span.detail {
  color: var(--sgds-body-color-subtle);
  font-size: var(--sgds-font-size-body-sm);
  overflow-wrap: anywhere;
}

.cluster-list {
  display: grid;
  gap: var(--sgds-gap-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cluster-card {
  border: 1px solid var(--sgds-border-color-muted);
  border-radius: var(--sgds-border-radius-md);
  padding: var(--sgds-padding-md) var(--sgds-padding-lg);
  background: var(--sgds-surface-default);
}

.cluster-card h4 {
  display: flex;
  align-items: center;
  gap: var(--sgds-gap-xs);
  margin-bottom: var(--sgds-margin-xs);
}

.cluster-card ul {
  padding-left: 0;
  list-style: none;
  margin: var(--sgds-margin-xs) 0 0;
}

.cluster-card li {
  margin-top: var(--sgds-margin-3-xs);
}

.progress-panel {
  display: grid;
  gap: var(--sgds-gap-sm);
}

.progress-message {
  color: var(--sgds-body-color-subtle);
  font-size: var(--sgds-font-size-body-sm);
  min-height: 1.5em;
}

.form-grid {
  display: grid;
  gap: var(--sgds-gap-lg);
  max-width: 760px;
  padding-top: var(--sgds-padding-lg);
}

.form-actions {
  display: flex;
  gap: var(--sgds-gap-sm);
  flex-wrap: wrap;
  align-items: center;
}

.recent {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent li {
  display: flex;
  justify-content: space-between;
  gap: var(--sgds-gap-sm);
  padding: var(--sgds-padding-xs) 0;
  margin: 0;
  border-bottom: 1px solid var(--sgds-border-color-muted);
  font-size: var(--sgds-font-size-body-sm);
}

.recent li:last-child {
  border-bottom: 0;
}

.match-bars {
  display: grid;
  gap: var(--sgds-gap-xs);
}

/* Bubble map --------------------------------------------------------------- */

.bubble-wrap {
  position: relative;
}

.bubble-map {
  display: block;
  width: 100%;
  height: auto;
  background: var(--chart-surface);
  border-radius: var(--sgds-border-radius-md);
  touch-action: manipulation;
}

.bubble-map .node {
  cursor: pointer;
  outline: none;
}

.bubble-map .node circle.mark {
  stroke: var(--chart-surface);
  stroke-width: 2px;
  transition: opacity 120ms ease;
}

.bubble-map .node:hover circle.mark,
.bubble-map .node:focus-visible circle.mark,
.bubble-map .node.is-active circle.mark {
  stroke: var(--sgds-color-default);
}

.c1 { fill: var(--cluster-1); }
.c2 { fill: var(--cluster-2); }
.c3 { fill: var(--cluster-3); }
.c-other { fill: var(--cluster-other); }
.c-none { fill: var(--cluster-none); }
.dot-c1 { background: var(--cluster-1); }
.dot-c2 { background: var(--cluster-2); }
.dot-c3 { background: var(--cluster-3); }
.dot-c-other { background: var(--cluster-other); }

.bubble-map .funder rect {
  fill: var(--sgds-body-color-subtle);
  stroke: var(--chart-surface);
  stroke-width: 2px;
}

.bubble-map line {
  stroke: var(--chart-link);
  stroke-width: 1px;
}

.bubble-map text {
  fill: var(--sgds-body-color-default);
  font-size: 12px;
  font-weight: var(--sgds-font-weight-semibold);
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--chart-surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  min-width: 180px;
  max-width: 280px;
  padding: var(--sgds-padding-xs) var(--sgds-padding-sm);
  background: var(--sgds-surface-inverse);
  color: var(--sgds-color-inverse);
  border-radius: var(--sgds-border-radius-sm);
  font-size: var(--sgds-font-size-body-sm);
  line-height: 1.4;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.18);
}

.chart-tooltip strong {
  display: block;
  font-size: var(--sgds-font-size-body-md);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sgds-gap-xs) var(--sgds-gap-lg);
  font-size: var(--sgds-font-size-body-sm);
  color: var(--sgds-body-color-subtle);
  margin-top: var(--sgds-margin-sm);
  padding: 0;
  list-style: none;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--sgds-gap-xs);
  margin: 0;
}

.legend .key-funder {
  width: 9px;
  height: 9px;
  background: var(--sgds-body-color-subtle);
  transform: rotate(45deg);
}

/* Tiers -------------------------------------------------------------------- */

.tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--sgds-gap-sm);
}

.tier-card.is-featured {
  border-color: var(--sgds-primary-border-color-default);
  border-width: 2px;
}

.tier-card ul {
  margin: 0;
}

.contract {
  display: flex;
  align-items: center;
  gap: var(--sgds-gap-xs);
  flex-wrap: wrap;
  padding: var(--sgds-padding-sm) var(--sgds-padding-md);
  border: 1px dashed var(--sgds-border-color-default);
  border-radius: var(--sgds-border-radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* Docs --------------------------------------------------------------------- */

pre.code {
  background: var(--sgds-surface-inverse);
  color: var(--sgds-color-inverse);
  padding: var(--sgds-padding-md) var(--sgds-padding-lg);
  border-radius: var(--sgds-border-radius-md);
  overflow-x: auto;
  font-size: var(--sgds-font-size-body-sm);
  line-height: 1.6;
}

.docs-nav {
  position: sticky;
  top: var(--sgds-margin-lg);
}

.docs-nav ul {
  list-style: none;
  padding: 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sgds-layout-gap-lg);
}

@media (max-width: 1024px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
  }
}

.docs-grid section {
  margin-bottom: var(--sgds-margin-3-xl);
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--sgds-surface-fixed-dark);
  color: var(--sgds-color-fixed-light);
  padding: var(--sgds-padding-3-xl) 0 var(--sgds-padding-xl);
  margin-top: var(--sgds-margin-4-xl);
}

.site-footer a {
  color: var(--sgds-color-fixed-light);
}

.site-footer .brand {
  color: var(--sgds-color-fixed-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sgds-layout-gap-lg);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

.footer-grid h2 {
  font-size: var(--sgds-font-size-subtitle-sm);
  color: var(--sgds-color-fixed-light);
  margin-bottom: var(--sgds-margin-sm);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-top: var(--sgds-margin-xs);
}

.footer-note {
  border-top: 1px solid rgb(255 255 255 / 0.15);
  margin-top: var(--sgds-margin-2-xl);
  padding-top: var(--sgds-padding-lg);
  font-size: var(--sgds-font-size-body-sm);
  color: var(--sgds-gray-300);
}

.footer-note p {
  font-size: inherit;
  margin-bottom: var(--sgds-margin-xs);
}

/* Utilities ---------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--sgds-margin-lg); }
.mt-xl { margin-top: var(--sgds-margin-xl); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* Headings receive focus after a report loads (for screen readers); hide the ring. */
[tabindex="-1"]:focus {
  outline: none;
}

.mono-heading {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

@media (max-width: 512px) {
  .kpi {
    padding: var(--sgds-padding-sm) var(--sgds-padding-md);
  }
  .kpi-value {
    font-size: var(--sgds-font-size-heading-md);
    line-height: var(--sgds-line-height-md);
  }
}

/* Live feed --------------------------------------------------------------- */

.feed {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: var(--sgds-gap-sm);
  align-items: center;
  padding: var(--sgds-padding-sm) 0;
  margin: 0;
  border-bottom: 1px solid var(--sgds-border-color-muted);
}

.feed li:last-child {
  border-bottom: 0;
}

.feed li.subtle {
  display: block;
}

.feed a {
  overflow-wrap: anywhere;
}

@media (max-width: 512px) {
  .feed li {
    grid-template-columns: 1fr;
    gap: var(--sgds-gap-2-xs);
  }
}

table.data.data--wrap th,
table.data.data--wrap td {
  white-space: normal;
}

/* Long addresses and links wrap outside tables, so phones never scroll sideways. */
.report-title {
  min-width: 0;
  flex: 1 1 240px;
}

.addr {
  max-width: 100%;
}

.addr a,
.recent a,
.report-title a {
  overflow-wrap: anywhere;
  white-space: normal;
}

table.data .addr a {
  white-space: nowrap;
}
