/* Integration Resolved — site styles
   Tokens come from the brand book. Change them here, not in the pages. */

:root {
  --ink: #16202B;
  --paper: #F3F5F4;
  --white: #FFFFFF;
  --muted: #4A5561;
  --rule: #CDD3D1;
  --mist: #D5DBE0;
  --navy: #1D4E89;
  --navy-dark: #153A66;
  --crimson: #A8323E;
  --ochre: #B07A12;
  --teal: #0F7C73;
  --light-teal: #5CC4B8;

  --page-max: 1280px;
  --page-pad: 80px;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-bottom: var(--cookie-bar-space, 0px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--cookie-bar-space, 0px); /* set by app.js while the cookie bar shows */
  /* keep the footer at the foot of the window on short pages */
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex="0"]:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 0 0 6px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--white); }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 24px; padding-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand .words {
  display: flex; flex-direction: column;
  font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -0.02em;
}
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 6px;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); font-weight: 800; }
.btn-light:hover { color: var(--ink); }
.link-strong { font-weight: 700; text-underline-offset: 5px; }

.menu-toggle { display: none; }

/* ---------- sections ---------- */

section { padding: 96px 0; }
.section-rule { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
h2.section-title { font-size: 44px; }
.lead { font-size: 21px; line-height: 1.5; color: var(--muted); }
.note { font-size: 15px; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }

.hero { padding-top: 80px; }
.hero h1 { font-size: 72px; line-height: 1.04; letter-spacing: -0.025em; max-width: 1020px; }
.hero-sub {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-top: 32px;
}
.hero-sub p { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.hero-actions .link-strong { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- process picker ---------- */

.picker { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.picker-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.picker-tabs .label { font-size: 16px; font-weight: 700; color: var(--muted); margin-right: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--white); color: var(--ink);
  font-size: 16px; font-weight: 700; line-height: 1.25; text-align: left; cursor: pointer;
}
.tab .swatch { display: inline-block; width: 22px; height: 7px; border-radius: 4px; flex-shrink: 0; }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; }
.map { display: block; width: 100%; height: auto; }
/* Each diagram has a wide and a narrow drawing. The narrow one is capped so
   it never scales up into a poster on tablets. */
.map-mobile { display: none; max-width: 440px; margin: 0 auto; }
.map .line { transition: stroke-opacity 180ms ease; }
@media (prefers-reduced-motion: reduce) { .map .line { transition: none; } }
.map .hit { stroke: #000; stroke-opacity: 0; stroke-width: 26; fill: none; cursor: pointer; }

.detail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  padding: 32px 36px 36px; border-top: 1px solid var(--rule);
}
.detail h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.detail h2 .swatch { display: inline-block; flex-shrink: 0; width: 28px; height: 8px; border-radius: 4px; }
.detail h3 { font-size: 17px; }
.detail p { font-size: 17px; }
.detail .col { display: flex; flex-direction: column; gap: 10px; }
.detail .col + .col { border-left: 1px solid var(--rule); padding-left: 32px; }

/* ---------- ink band ---------- */

.band-ink { background: var(--ink); color: var(--white); }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink p { color: var(--mist); }
.band-ink .note { color: #AEB8C2; }
.band-ink a:not(.btn) { color: var(--light-teal); }
.band-ink a:not(.btn):hover { color: var(--white); }
.band-title { font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; }
.band-lead { margin-top: 20px; font-size: 20px; max-width: 680px; }
.band-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- columns ---------- */

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; list-style: none; padding: 0; }
.ruled { border-top: 3px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.band-ink .ruled { border-top-color: var(--white); }
.ruled h3 { font-size: 24px; }
.ruled p { font-size: 17px; color: var(--muted); }
.band-ink .ruled h3 { font-size: 30px; line-height: 1.15; }
.band-ink .ruled p { color: var(--mist); }
.band-ink .ruled .note { color: #AEB8C2; }

/* ---------- register ---------- */

.register-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.table-panel { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 6px 24px; overflow-x: auto; }
.table-panel table { min-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
th { font-size: 13px; font-weight: 700; color: var(--muted); padding: 14px 10px 10px 0; border-bottom: 2px solid var(--ink); }
td { padding: 16px 10px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.bar { display: inline-block; width: 18px; height: 6px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 8px; }
.status { font-weight: 700; white-space: nowrap; }
.status-open { color: var(--muted); }
.status-held { color: var(--crimson); }
.caption { font-size: 14px; font-weight: 700; color: var(--muted); }

/* the stacked register is mobile-only; shown in the 820px block below */
.register-stack { display: none; }
.register-stack .row { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.register-stack .row:last-child { border-bottom: 0; }
.register-stack .row-top { display: flex; justify-content: space-between; align-items: baseline; }
.register-stack .id { font-size: 16px; font-weight: 800; }
.register-stack .when { font-size: 14px; color: var(--muted); }

/* ---------- field notes ---------- */

.notes-list { display: flex; flex-direction: column; }
.notes-list a {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px;
  padding: 28px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.notes-list a:last-child { border-bottom: 1px solid var(--rule); }
.notes-list a:hover .note-title { color: var(--navy); }
.note-title { font-size: 26px; line-height: 1.25; font-weight: 800; text-wrap: balance; }
.note-desc { font-size: 18px; color: var(--muted); }
.notes-more { margin-top: 24px; }
.notes-more a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { font-size: 16px; font-weight: 700; }
.crumbs a { text-underline-offset: 5px; }
.article-figure { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 404 ---------- */

.not-found { padding: 120px 0 160px; }
.not-found .band-actions a.link-strong { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 96px; align-items: start; margin-top: 56px;
}
.contact-main { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.contact-form { display: flex; flex-direction: column; gap: 28px; }
.form-title { font-size: 28px; line-height: 1.2; }
.contact-form > .note { margin-top: -16px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.field > legend { margin-bottom: 8px; }
.field-hint { font-size: 15px; line-height: 1.45; color: var(--muted); }
.field-error { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--crimson); }
.field > input, .field > textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--muted); border-radius: 6px; background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 18px; line-height: 1.4;
}
.field > textarea { min-height: 180px; resize: vertical; }
.field.has-error { padding-left: 16px; border-left: 4px solid var(--crimson); }
.field.has-error > input, .field.has-error > textarea { border: 2px solid var(--crimson); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer;
}
.choice:hover { border-color: var(--muted); }
.choice input { flex-shrink: 0; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.choice strong { display: block; font-size: 17px; line-height: 1.35; }
.choice-hint { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@supports selector(:has(*)) {
  .choice:has(input:focus-visible) { outline: 3px solid var(--ochre); outline-offset: 3px; }
  .choice input:focus-visible { outline: 0; }
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-actions .note { flex: 1 1 240px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.error-summary {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 24px;
  background: var(--white); border: 3px solid var(--crimson); border-radius: 4px;
}
.error-summary h3 { font-size: 22px; }
.error-summary ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.error-summary a { color: var(--crimson); font-weight: 700; }
.error-summary:focus-visible, .form-status:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.form-status {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 28px;
  background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: 4px;
}
.form-status h2 { font-size: 28px; line-height: 1.2; }
.form-status.is-problem { border-top-color: var(--crimson); }

/* honeypot: hidden from people and assistive technology, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: flex; flex-direction: column; gap: 40px; }
.contact-aside h2 { font-size: 22px; line-height: 1.2; }
.contact-aside p, .steps { font-size: 17px; color: var(--muted); }
.contact-aside a { overflow-wrap: break-word; }
.contact-emails { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.contact-emails dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.contact-emails dd { margin: 0; font-size: 17px; }
.contact-emails dd a { display: inline-flex; align-items: center; min-height: 44px; }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--rule); font-size: 16px; color: var(--muted); }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-top: 44px; padding-bottom: 44px;
}
.site-footer .copy { display: flex; align-items: center; gap: 14px; }
.site-footer .copy span { text-wrap: balance; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- legal pages ---------- */

.legal { display: flex; gap: 96px; padding-top: 72px; padding-bottom: 120px; }
.legal-nav { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.legal-nav .label { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.legal-nav a {
  display: flex; align-items: center; min-height: 40px; padding-left: 14px;
  border-left: 3px solid var(--rule); color: var(--muted); font-weight: 600; text-decoration: none;
}
.legal-nav a[aria-current="page"] { border-left-color: var(--navy); color: var(--ink); font-weight: 800; }
.legal-body { max-width: 720px; min-width: 0; display: flex; flex-direction: column; gap: 44px; line-height: 1.65; }
.legal-body h1, .page-title { font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; }
.legal-body h2 { font-size: 28px; line-height: 1.2; }
.legal-body section { padding: 0; display: flex; flex-direction: column; gap: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-head { display: flex; flex-direction: column; gap: 16px; }
.analytics-choice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 24px; background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
}
.analytics-status { font-weight: 700; }

/* ---------- cookie bar ---------- */

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
  display: none; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 900px; margin: 0 auto; padding: 20px 24px;
  background: var(--ink); color: var(--white); border-radius: 6px;
  font-size: 15px; line-height: 1.5;
}
.cookie-bar.is-visible { display: flex; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-bar a { color: var(--light-teal); }
.cookie-bar button {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--white); border-radius: 6px;
  background: transparent; color: var(--white); font-size: 15px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  :root { --page-pad: 40px; }
  .hero h1 { font-size: 56px; }
  .cols-2 { gap: 48px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .detail .col + .col { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 18px; }
  .register-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal { gap: 48px; }
  .contact-grid { gap: 56px; }
}

/* Tablets: the full navigation no longer fits on one line, so the header
   switches to the menu button, and wide layouts stack. */
@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px;
    background: var(--white); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 15;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--page-pad) 24px; background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 700; }
  .site-nav .btn { align-self: flex-start; margin-top: 16px; border-bottom: 0; }
  .site-header { position: relative; }

  .hero-sub { flex-direction: column; align-items: flex-start; gap: 24px; }
  .picker-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-tabs .label { grid-column: 1 / -1; margin: 0; }
  .wide-map .map-desktop { display: none; }
  .wide-map .map-mobile { display: block; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }

  .legal { flex-direction: column; }
  .legal-nav { width: auto; flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .legal-nav .label { width: 100%; margin: 0; }
  .legal-nav a { border-left: 0; border-bottom: 3px solid var(--rule); padding: 0; min-height: 44px; }
  .legal-nav a[aria-current="page"] { border-bottom-color: var(--navy); border-left: 0; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav { gap: 0 22px; }
  .footer-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
}

@media (max-width: 820px) {
  :root { --page-pad: 24px; }
  section { padding: 64px 0; }

  .site-nav .btn { align-self: stretch; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: 40px; line-height: 1.06; }
  .hero-sub { align-items: stretch; gap: 20px; }
  .hero-sub p { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn, .hero-actions a { justify-content: center; text-align: center; }

  h2.section-title { font-size: 32px; }
  .lead { font-size: 17px; }
  .cols-2, .cols-4 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tab { font-size: 15px; padding: 8px 12px; }
  .detail { padding: 24px 20px 28px; }
  .detail h2 { font-size: 22px; }

  .map-desktop { display: none; }
  .map-mobile { display: block; }

  .band-title { font-size: 36px; }
  .band-lead { font-size: 18px; }

  .notes-list a { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .note-title { font-size: 20px; }
  .note-desc { font-size: 16px; }

  .register-stack { display: block; }
  .register-table { display: none; }

  /* Wide legal tables become one labelled card per row. The explicit ARIA
     roles in the markup keep them tables for screen readers. */
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
  .table-stack tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-panel:has(.table-stack) { padding: 6px 16px; }
  .table-stack td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 4px 0; border: 0; }
  .table-stack td::before {
    content: attr(data-label); content: attr(data-label) / "";
    font-size: 13px; font-weight: 700; line-height: 1.9; color: var(--muted);
  }

  .not-found { padding: 64px 0 96px; }
  .contact-grid { margin-top: 40px; }
  .field-pair, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .form-title, .form-status h2 { font-size: 24px; }
  .form-actions .btn { flex: 1 1 100%; }

  .legal { padding-top: 40px; padding-bottom: 72px; }
  .legal-body h1, .page-title { font-size: 36px; }
  .legal-body h2 { font-size: 24px; }

  .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; text-align: left; }
}

/* Printing: keep the content, drop navigation and interactive chrome. */
@media print {
  body { background: #fff; padding-bottom: 0; font-size: 11pt; }
  .skip-link, .site-nav, .menu-toggle, .cookie-bar, #contact, .notes-more,
  .picker-tabs, .legal-nav, .legal ~ .section-rule, .footer-nav, .form-actions { display: none !important; }
  .site-header, .site-footer { border: 0; }
  section { padding: 24pt 0; }
  .band-ink { background: none; color: var(--ink); }
  .band-ink h2, .band-ink h3, .band-ink p, .band-ink .ruled p, .band-ink .note { color: var(--ink); }
  .band-ink .ruled { border-top-color: var(--ink); }
  .panel, .table-panel, figure, .ruled, tr { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}

/* Small phones (320px and up): tighten the header so the logo and the
   menu button fit side by side without horizontal scrolling. */
@media (max-width: 380px) {
  .site-header .wrap { gap: 12px; }
  .brand { gap: 10px; }
  .brand svg { width: 38px; height: 38px; }
  .brand .words { font-size: 18px; }
  .menu-toggle { gap: 8px; padding: 0 12px; }
  .table-stack td { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
