/* Shared by every page, loaded after the page's own style so it wins at equal specificity.
   Tap targets (links in the header, nav and footer, buttons, toggles, disclosure rows) are
   at least 44 px tall. Wide tables scroll inside .table-wrap instead of widening the page.
   Violet palette: night is the only scheme. The system preference does not switch it. */
:root {
  color-scheme: dark;
  --bg: #121821;
  --card: #1B2430;
  --field: #161E2A;
  --line: #B7A6CE;
  --text: #FAF6EF;
  --muted: #C4B6D4;
  --accent: #A27BE0;
  --accent-ink: #121821;
  --danger: #F2B8B5;
  --danger-ink: #FBE3E1;
  --warn: #F3B7C2;
  --draft: #F5D08A;
  --caution: #F5D08A;
  --caution-line: #F5D08A;
  --caution-bg: #241E12;
  --ok: #9FE0B4;
  --due: #E0A030;
  --panel: #161E2A;
  --panel-2: #182030;
  --zone: #1B2430;
  --danger-bg: #2A1C20;
  --danger-solid: #6E221F;
  --on-solid: #FFFFFF;
  --badge-ok-bg: #14281A;
  --badge-hit-bg: #2A1C20;
  --host-danger-bg: #2A1418;
  --host-danger-ink: #FFD7D9;
  --host-danger-line: #E7B4B8;
  /* Solid border: a 55% accent wash was 2.41:1 on the night card. */
  --accent-line: #846BB8;
  --accent-line-soft: color-mix(in srgb, var(--accent) 40%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-wash-strong: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-wash-faint: color-mix(in srgb, var(--accent) 8%, transparent);
  --danger-line: color-mix(in srgb, var(--danger) 55%, transparent);
  --danger-line-soft: color-mix(in srgb, var(--danger) 35%, transparent);
  --danger-wash: color-mix(in srgb, var(--danger) 18%, transparent);
  --danger-wash-strong: color-mix(in srgb, var(--danger) 32%, transparent);
  --grid: color-mix(in srgb, var(--text) 8%, transparent);
  --grid-strong: color-mix(in srgb, var(--text) 22%, transparent);
}
/* Accent #A27BE0 on a violet wash is under 4.5:1. This lighter violet clears it. */
a.nav:hover,
button.quick[aria-pressed="true"],
.caveat a { color: #BDA3EA; }
/* Soft accent borders were under 3:1 on the night card and field. */
.tag,
.compliance-zone .danger-form,
.compliance-zone input[type="text"],
.takedown-zone input[type="text"],
.takedown-zone input[type="datetime-local"] { border-color: var(--accent-line); }
a.nav, a.home, header a, nav a, footer a, .report-link a { display: inline-flex; align-items: center; min-height: 44px; }
summary, label.check, label.option { min-height: 44px; }
label.check, label.option { align-items: center; }
.tabs button, button.quick, button.ghost, .ft-grid input, .note-row button, .cmp-h button.ghost, .cmp-lists .cmp-actions button.ghost { min-height: 44px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.table-wrap td code { overflow-wrap: anywhere; }
/* Config names and MCP codes stay whole words. The wrapper scrolls instead of breaking them. */
#config .table-wrap td:first-child,
#config .table-wrap td:first-child code,
#mcp .table-wrap td code {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
/* The drop, wordmark, page label and header links share one centre line.
   Top-align the header so a link is not centred on the Devnet chip. The brand
   row is 44 px, the same box as a link's tap target, so the 30 px drop and the
   text share its centre. The wordmark does not wrap. */
header { flex-wrap: wrap; align-items: flex-start; }
header a.nav + a.nav { margin-left: 0; }
h1.brand { align-items: center; min-height: 44px; flex-wrap: nowrap; }
h1.brand .mark { display: block; width: 30px; height: 30px; flex: none; }
h1.brand .wordmark,
h1.brand .page,
h1.brand a.home { flex: none; white-space: nowrap; }
.brand-stack { min-width: min-content; }
header > .chip { align-self: center; }
/* A link group is one flex item, so it would drop as a whole. Let each link
   sit on the wordmark row and wrap on its own. */
header .navs { display: contents; }
/* Header links are plain accent text. No pill, border, circle or resting
   outline. The 44 px min-height (above) is only the invisible tap target. */
a.nav {
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  padding: 0 2px;
  text-decoration: none;
  line-height: 1;
}
header a.nav {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
a.nav:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
a.nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
@media (max-width: 420px) {
  h1.brand { gap: 6px; }
  /* The page label is the piece that pushes HI FAQ Uses Terms onto a second
     line. Links stay on the wordmark row; a row that still cannot fit wraps
     to the right, under the chip, not across it. */
  h1.brand .page { display: none; }
  header { column-gap: 8px; row-gap: 2px; justify-content: flex-end; }
  header a.nav { letter-spacing: 0.06em; padding: 0 1px; }
}
/* agent.html error tables: the Meaning column keeps a readable width (the table scrolls
   in its wrapper instead of squeezing it), and an edge shadow shows there is more to
   scroll. The shadows sit under covers that scroll with the table, so they only show
   on a side with hidden content. */
#agent-errors td:nth-child(2), #agent-errors th:nth-child(2), #errors td:nth-child(3), #errors th:nth-child(3) { min-width: 12em; }
#agent-errors .table-wrap, #errors .table-wrap {
  background:
    linear-gradient(to right, var(--card, #1B2430) 30%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--card, #1B2430) 30%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--accent, #A27BE0) 50%, transparent), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--accent, #A27BE0) 50%, transparent), transparent) right center / 14px 100% no-repeat scroll;
}

/* Reclaim page: Solana rent from reads (web/reclaim-rent.js). */
.rent-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; }
.rent-list li { display: grid; gap: 6px; }
#rent-claim-all { width: 100%; margin-top: 10px; }
