/* ==========================================================================
   Gate46: wayfinding design system
   One stylesheet for every page. Sections:
   1 Tokens  2 Base  3 Layout  4 Icons  5 Gantry + nav  6 Sign face
   7 Buttons + forms  8 Lines, roundels, strip maps  9 Results
   10 Ad bays (dormant, no ads currently placed)  11 Prose + FAQ  12 Footer  13 Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* concourse (page) */
  --ground: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #e9e9e3;
  --ink: #16181d;
  --ink-2: #454a54;
  --ink-3: #5f6570;
  --rule: #d3d3cb;
  --rule-strong: #16181d;

  /* sign panels (gantry, footer) */
  --sign: #16181d;
  --sign-2: #23262e;
  --sign-rule: #3b3f4a;
  --sign-ink: #ffffff;
  --sign-ink-2: #b9bec8;

  /* signal yellow: primary action, current location */
  --signal: #ffd100;
  --signal-press: #ebbf00;
  --signal-ink: #16181d;

  /* the four lines */
  --line-a: #0067b8; /* Address */
  --line-n: #00784a; /* Names   */
  --line-r: #b84a00; /* Routes  */
  --line-c: #6a3cc4; /* Checks  */

  /* states */
  --ok: #00703c;
  --bad: #c2211a;
  --warn: #875500;
  --ok-on-sign: #6ddba3;
  --bad-on-sign: #ff9389;

  --focus: #0067b8;

  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --t-legend: 0.75rem;
  --t-small: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.125rem;
  --t-h3: 1.25rem;
  --t-h2: 1.625rem;
  --t-h1: 2.25rem;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  --page: 76rem;
  --gutter: 1.5rem;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0f1115;
    --surface: #181b21;
    --surface-2: #20242c;
    --ink: #f1f1ee;
    --ink-2: #bcc1cb;
    --ink-3: #959ba7;
    --rule: #2e323c;
    --rule-strong: #f1f1ee;
    --sign: #1b1e25;
    --sign-2: #262a33;
    --sign-rule: #3b3f4a;
    --line-a: #4aa3ec;
    --line-n: #3fbf87;
    --line-r: #f08a3c;
    --line-c: #a88bf0;
    --ok: #5fd39a;
    --bad: #ff8d83;
    --warn: #f0b847;
    --focus: #ffd100;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0f1115;
  --surface: #181b21;
  --surface-2: #20242c;
  --ink: #f1f1ee;
  --ink-2: #bcc1cb;
  --ink-3: #959ba7;
  --rule: #2e323c;
  --rule-strong: #f1f1ee;
  --sign: #1b1e25;
  --sign-2: #262a33;
  --sign-rule: #3b3f4a;
  --line-a: #4aa3ec;
  --line-n: #3fbf87;
  --line-r: #f08a3c;
  --line-c: #a88bf0;
  --ok: #5fd39a;
  --bad: #ff8d83;
  --warn: #f0b847;
  --focus: #ffd100;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--line-a);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

::selection { background: var(--signal); color: var(--signal-ink); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.gantry :focus-visible,
.directory :focus-visible { outline-color: var(--signal); }

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
code, kbd, samp, pre { font-family: var(--mono); font-size: 0.9375em; }
code {
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  background: var(--signal);
  color: var(--signal-ink);
  padding: var(--s-2) var(--s-4);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: var(--s-2); }

.vh {
  position: absolute !important;
  /* Pinned to the containing block's origin: left unplaced, WebKit counts the
     nowrap text's scroll overflow and the page gains a horizontal scrollbar. */
  left: 0; top: 0;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* sign legend: condensed caps used to label data, never as a heading kicker */
.legend {
  font-size: var(--t-legend);
  font-weight: 650;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.gantry .legend,
.directory .legend { color: var(--sign-ink-2); }

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-7); }
.section + .section { padding-top: 0; }
.section__head { margin-bottom: var(--s-5); max-width: 46rem; }
.section__head p { margin-top: var(--s-2); color: var(--ink-2); }

/* content column + right rail (ads, next stops) */
.concourse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-7);
  align-items: start;
  padding-block: var(--s-6) var(--s-8);
}
.concourse__main { min-width: 0; display: grid; gap: var(--s-7); }
/* Grid and flex items default to min-width:auto, so a wide table inside one pushes
   the page sideways instead of scrolling inside its own container. */
.concourse__main > *, .rail > *, .section > *, .panel, .scroll-x { min-width: 0; }
.rail { display: grid; gap: var(--s-6); position: sticky; top: var(--s-5); }

.stack { display: grid; gap: var(--s-4); }
.stack--lg { gap: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: baseline; justify-content: space-between; }

/* 4. Icons (CSS masks, one 2px stroke family, inherit currentColor) -------- */
.i {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.i--sm { width: 1em; height: 1em; vertical-align: -0.125em; }
.i--lg { width: 1.5em; height: 1.5em; }
.i-arrow    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-arrow-ne { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.i-copy     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M9 9h11v11H9z'/%3E%3Cpath d='M15 9V4H4v11h5'/%3E%3C/svg%3E"); }
.i-check    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.i-x        { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.i-dash     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.i-refresh  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M19 12a7 7 0 1 1-2.05-4.95'/%3E%3Cpath d='M19 4v4h-4'/%3E%3C/svg%3E"); }
.i-menu     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.i-chevron  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.i-theme    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v16' /%3E%3Cpath d='M12 4a8 8 0 0 1 0 16z' fill='%23000'/%3E%3C/svg%3E"); }
.i-info     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7v.5'/%3E%3C/svg%3E"); }
.i-alert    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M12 4 21 20H3z'/%3E%3Cpath d='M12 10v5M12 17.5v.5'/%3E%3C/svg%3E"); }
.i-browser  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M3 5h18v14H3zM3 9h18'/%3E%3C/svg%3E"); }
.i-server   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 4h16v7H4zM4 13h16v7H4zM8 7.5v.5M8 16.5v.5'/%3E%3C/svg%3E"); }
.i-pin      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v5M12 17v5M2 12h5M17 12h5' stroke-linecap='square'/%3E%3C/svg%3E"); }
.i-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }

/* 5. Gantry: nav bar + sign face as one overhead assembly ------------------ */
.gantry {
  background: var(--sign);
  color: var(--sign-ink);
  border-bottom: 4px solid var(--signal);
}
.gantry__bar {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
  border-bottom: 1px solid var(--sign-rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--sign-ink);
  margin-right: auto;
}
.wordmark__tile {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 1.875rem;
  padding-inline: 0.35rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 900;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 1.3125rem;
  letter-spacing: 0;
  border-radius: var(--radius);
}

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__link,
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 var(--s-3);
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--sign-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}
.nav__link:hover,
.nav__btn:hover { background: var(--sign-2); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); }
.nav__btn--icon { padding: 0; width: 2.75rem; justify-content: center; }
.nav__menu-label { display: none; }

/* directory popover (Tools menu on desktop, whole menu on phones) */
.dir-pop {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - var(--header-h));
  margin: 0;
  padding: var(--s-5) 0 var(--s-6);
  border: 0;
  border-bottom: 4px solid var(--signal);
  background: var(--sign);
  color: var(--sign-ink);
  overflow-y: auto;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.45);
}
.dir-pop::backdrop { background: rgb(15 17 21 / 0.45); }
.dir-pop__mobile { display: none; }

/* line columns inside dark panels (popover + footer) */
.dir-lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}
.dir-line__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-2);
  border-bottom: 3px solid var(--lc);
  font-weight: 700;
}
.dir-line ul { list-style: none; margin: 0; padding: 0; }
.dir-line a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 2.5rem;
  padding: var(--s-1) 0;
  color: var(--sign-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sign-rule);
}
.dir-line a .i { opacity: 0; transform: translateX(-4px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.dir-line a:hover .i,
.dir-line a:focus-visible .i { opacity: 1; transform: none; }
.dir-line a:hover { color: var(--signal); }
.dir-line a[aria-current="page"] { color: var(--signal); font-weight: 700; }

/* 6. Sign face ------------------------------------------------------------- */
.sign { padding-block: var(--s-6) var(--s-6); }
.sign--home {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(17rem, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.sign__title { font-size: var(--t-h2); font-weight: 750; color: var(--sign-ink); letter-spacing: -0.015em; }
.sign__sub { color: var(--sign-ink-2); margin-top: var(--s-1); max-width: 40rem; }

/* address rows */
.addrs { margin-top: var(--s-5); --fit-max: 60; }
.addr {
  padding-block: var(--s-4);
  border-top: 1px solid var(--sign-rule);
}
.addr:last-child { border-bottom: 1px solid var(--sign-rule); }
.addr__legend { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-1); }
.addr__legend .legend { color: var(--sign-ink); font-size: 0.8125rem; }
.addr__line { display: flex; align-items: center; gap: var(--s-4); }
.addr__value {
  flex: 1;
  min-width: 0;
  min-height: 1.1em;
  font-size: calc(var(--fit-max) * 1px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" var(--wdth, 100);
  white-space: nowrap;
  overflow: hidden;
  color: var(--sign-ink);
  user-select: all;
}
.addr__value[data-empty="true"] {
  font-size: 1.375rem !important;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--sign-ink-2);
  white-space: normal;
  user-select: none;
  --wdth: 100;
}
.addr__value .ch { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .addr__value.is-settling .ch {
    animation: settle 220ms var(--ease) both;
    animation-delay: calc(var(--n) * 7ms);
  }
}
@keyframes settle {
  from { opacity: 0.2; transform: translateY(0.18em) scaleY(0.6); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* skeleton for pending values */
.skel {
  display: inline-block;
  width: min(100%, var(--w, 12ch));
  height: 0.72em;
  background: var(--sign-2);
  border-radius: var(--radius);
  vertical-align: baseline;
}
.concourse .skel, .panel .skel { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: skel 1.1s ease-in-out infinite alternate; }
}
@keyframes skel { from { opacity: 0.55; } to { opacity: 1; } }

/* status strip under the sign face */
.sign-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-4);
  color: var(--sign-ink-2);
  font-size: var(--t-small);
}
.sign-strip__push { margin-left: auto; }

/* "You are here" locator */
.locator__map {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--sign-rule);
  background: var(--sign-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.locator__map canvas { width: 100%; height: 100%; }
.locator__here {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px var(--sign);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.locator__here::after {
  content: "";
  position: absolute;
  inset: -1.1rem;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  opacity: 0.7;
}
.locator__here.is-on { opacity: 1; }
.locator__tag {
  position: absolute;
  left: var(--s-2);
  top: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: var(--t-legend);
  font-weight: 800;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.locator__note { margin-top: var(--s-3); font-size: var(--t-small); color: var(--sign-ink-2); }

/* compact sign face for tool and content pages */
.sign--tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-7);
  align-items: end;
}
.sign--tool h1, .sign--page h1 { color: var(--sign-ink); }
.sign__heading { display: flex; align-items: center; gap: var(--s-3); }
.sign__lead { margin-top: var(--s-3); color: var(--sign-ink-2); font-size: var(--t-lead); max-width: 42rem; }
.sign--page .sign__lead { max-width: 46rem; }

/* crumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
  font-size: var(--t-small);
  color: var(--sign-ink-2);
}
.crumbs a { color: var(--sign-ink-2); }
.crumbs a:hover { color: var(--sign-ink); }
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 0.9em; height: 0.9em;
  margin-right: var(--s-2);
  vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "your address" chip on tool pages */
.you {
  border: 1px solid var(--sign-rule);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  background: var(--sign-2);
  font-size: var(--t-small);
}
.you__row { display: flex; align-items: baseline; gap: var(--s-3); padding-block: 0.2rem; }
.you__row .legend { flex: none; width: 2.6rem; }
.you__val { min-width: 0; overflow-wrap: anywhere; font-weight: 650; color: var(--sign-ink); }
.you__val[data-empty="true"] { font-weight: 400; color: var(--sign-ink-2); }
.you .btn { margin-top: var(--s-3); width: 100%; }

/* 7. Buttons + forms ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
  font-size: var(--t-body);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--signal-press); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[data-busy="true"] { cursor: progress; }
.btn[data-busy="true"] .i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .btn[data-busy="true"] .i { animation: none; } }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-3);
}
.btn--quiet:hover { background: var(--surface-2); border-color: var(--ink); }
.gantry .btn--quiet, .directory .btn--quiet {
  color: var(--sign-ink);
  border-color: var(--sign-ink-2);
}
.gantry .btn--quiet:hover, .directory .btn--quiet:hover {
  background: var(--sign-2);
  border-color: var(--sign-ink);
}
.btn--sm { min-height: 2.25rem; padding: 0 var(--s-3); font-size: var(--t-small); }
.btn--copy { min-width: 6.25rem; }
.btn--copy.is-done { background: var(--ok-on-sign); border-color: transparent; color: #07210f; }
.concourse .btn--copy.is-done, .panel .btn--copy.is-done { background: var(--ok); color: #fff; }

/* query form on the sign face */
.query { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.query__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; }
.field { display: grid; gap: 0.35rem; flex: 1 1 16rem; min-width: 0; }
.field--narrow { flex: 0 1 9rem; }
.field label, .field .label { font-size: var(--t-small); font-weight: 600; }
.gantry .field label, .gantry .field .label, .gantry legend { color: var(--sign-ink); }
.field__hint { font-size: var(--t-small); color: var(--ink-3); }
.gantry .field__hint { color: var(--sign-ink-2); }
.field__error { font-size: var(--t-small); font-weight: 600; color: var(--bad); display: none; }
.gantry .field__error { color: var(--bad-on-sign); }
.field[data-invalid="true"] .field__error { display: block; }
.field[data-invalid="true"] .input { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.gantry .field[data-invalid="true"] .input { border-color: var(--bad-on-sign); box-shadow: 0 0 0 2px var(--bad-on-sign); }

.input, .select, .textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-body);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.textarea { padding: var(--s-3); min-height: 8rem; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input:disabled, .select:disabled { opacity: 0.6; cursor: not-allowed; }
.gantry .input, .gantry .select, .gantry .textarea {
  /* background-color, not the shorthand: the shorthand would wipe the select's arrow. */
  background-color: #ffffff;
  color: #16181d;
  border-color: #ffffff;
  caret-color: #0067b8;
}
.gantry .input::placeholder { color: #5f6570; }
.select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
}
:root[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f1ee' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .gantry .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f1ee' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .gantry .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}

/* segmented choices (record types, protocol, port presets) */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: var(--t-small); font-weight: 600; margin-bottom: 0.35rem; }
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  font-size: var(--t-small);
  font-weight: 650;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.seg input:hover + span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.gantry .seg span { border-color: var(--sign-ink-2); color: var(--sign-ink); }
.gantry .seg input:hover + span { border-color: var(--sign-ink); background: var(--sign-2); }
.gantry .seg input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.gantry .seg input:focus-visible + span { outline-color: var(--signal); }

/* 8. Lines, roundels, strip maps ------------------------------------------ */
[data-line="a"] { --lc: var(--line-a); }
[data-line="n"] { --lc: var(--line-n); }
[data-line="r"] { --lc: var(--line-r); }
[data-line="c"] { --lc: var(--line-c); }

.roundel {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--lc, var(--ink));
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0;
}
.roundel--lg { width: 2.75rem; height: 2.75rem; font-size: 1.5rem; }
.roundel--sm { width: 1.375rem; height: 1.375rem; font-size: 0.75rem; }
/* dark-scheme line colours are light, so the letter flips to ink */
:root[data-theme="dark"] .roundel { color: #0f1115; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .roundel { color: #0f1115; } }
.gantry .roundel, .directory .roundel { box-shadow: 0 0 0 2px var(--sign); outline: 1px solid rgb(255 255 255 / 0.25); outline-offset: 2px; }

/* departures board: four strip maps side by side */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.strip { min-width: 0; }
.strip__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
}
.strip__name { font-size: var(--t-lead); font-weight: 750; letter-spacing: -0.01em; }
.strip__stops {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* the line itself */
.strip__stops::before {
  content: "";
  position: absolute;
  left: calc(0.875rem - 2px);
  top: -0.25rem;
  bottom: 1.6rem;
  width: 4px;
  background: var(--lc);
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: var(--s-3);
  padding: var(--s-3) var(--s-2) var(--s-3) 0;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 160ms var(--ease);
}
.stop::before {
  content: "";
  grid-column: 1;
  justify-self: center;
  margin-top: 0.3rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--ground);
  border: 3px solid var(--lc);
  position: relative;
  z-index: 1;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.panel .stop::before, .rail .stop::before { background: var(--ground); }
.stop__name { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: 1.0625rem; }
.stop__name .i { opacity: 0; transform: translateX(-6px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.stop__desc { grid-column: 2; color: var(--ink-2); font-size: var(--t-small); line-height: 1.45; margin-top: 0.1rem; }
.stop__meta { grid-column: 2; margin-top: 0.35rem; display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--t-legend); color: var(--ink-3); }
.stop:hover { background: var(--surface); }
.stop:hover::before { background: var(--lc); }
.stop:hover .stop__name .i, .stop:focus-visible .stop__name .i { opacity: 1; transform: none; }
.stop[aria-current="page"]::before {
  background: var(--signal);
  border-color: var(--ink);
  transform: scale(1.15);
}
.stop[aria-current="page"] .stop__name::after {
  content: "You are here";
  font-size: var(--t-legend);
  font-weight: 800;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius);
}

/* 9. Results --------------------------------------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.panel__head h2, .panel__head h3 { font-size: var(--t-h3); }
.panel__meta { color: var(--ink-3); font-size: var(--t-small); }
.panel__body { padding: var(--s-5); }
.panel__body--flush { padding: 0; }
.panel__foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--t-small); }

/* empty state that teaches */
.empty {
  padding: var(--s-6) var(--s-5);
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  color: var(--ink-2);
}
.empty strong { color: var(--ink); font-size: var(--t-lead); }
.empty .cluster { margin-top: var(--s-1); }

/* key/value legend */
.kv { margin: 0; display: grid; }
.kv > div {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { margin: 0; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--t-small); }
.kv--sign > div { padding-inline: 0; border-color: var(--sign-rule); grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-3); padding-block: 0.55rem; }
.kv--sign dd { color: var(--sign-ink); font-weight: 600; font-size: 0.9375rem; }
.kv--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv--two > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* data table */
.scroll-x { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.data th, .data td { padding: var(--s-3) 0.875rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data th:first-child, .data td:first-child { padding-left: var(--s-5); }
.data th:last-child, .data td:last-child { padding-right: var(--s-5); }
.data thead th {
  font-size: var(--t-legend);
  font-weight: 650;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  /* Headers wrap rather than force the table past its column and clip the last one. */
  text-wrap: balance;
  border-bottom-color: var(--rule);
}
.data tbody tr:last-child td, .data tbody tr:last-child th { border-bottom: 0; }
.data tbody th { font-weight: 700; }
.data tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.data .num { text-align: right; white-space: nowrap; }
.data .val { font-family: var(--mono); font-size: 0.875rem; overflow-wrap: anywhere; }
.data .marker {
  display: inline-grid; place-items: center;
  min-width: 1.5rem; height: 1.5rem; padding-inline: 0.3rem;
  border-radius: 999px;
  border: 2px solid var(--lc, var(--ink));
  font-size: var(--t-legend); font-weight: 800;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  font-size: var(--t-legend);
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* latency bar inside a table cell */
.bar { display: block; height: 0.5rem; min-width: 2px; width: calc(var(--v, 0) * 1%); background: var(--lc, var(--ink)); border-radius: 1px; }

/* state marks: pictogram + word, never colour alone */
.state { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: var(--t-small); white-space: nowrap; }
.state::before {
  content: "";
  width: 1.1em; height: 1.1em; flex: none;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.state[data-state="ok"]   { color: var(--ok);  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='m6.5 12.5 3.8 3.8 7.2-8' fill='none' stroke='%23fff' stroke-width='2.6'/%3E%3C/svg%3E"); }
.state[data-state="bad"]  { color: var(--bad); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1h10l6 6v10l-6 6H7l-6-6V7z'/%3E%3C/svg%3E"); }
.state[data-state="warn"] { color: var(--warn); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 24 22H0z'/%3E%3C/svg%3E"); }
.state[data-state="idle"] { color: var(--ink-3); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3C/svg%3E"); }
.state[data-state="checking"] { color: var(--ink-3); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-dasharray='5 5'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) {
  .state[data-state="checking"]::before { animation: spin 2.4s linear infinite; }
}
.gantry .state[data-state="ok"] { color: var(--ok-on-sign); }
.gantry .state[data-state="bad"] { color: var(--bad-on-sign); }
.gantry .state[data-state="warn"] { color: var(--signal); }
.gantry .state[data-state="idle"], .gantry .state[data-state="checking"] { color: var(--sign-ink-2); }

/* figures strip (ping summary, subnet sizes): tool output, not a hero */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.figures > div { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.figures dt { margin: 0; }
.figures dd { margin: 0.15rem 0 0; font-size: var(--t-h2); font-weight: 750; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: anywhere; }
.figures dd small { font-size: var(--t-small); font-weight: 600; color: var(--ink-3); margin-left: 0.15rem; }
dl.figures { margin: 0; overflow: hidden; }

/* raw text output */
.term {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--sign);
  color: #e9ebf0;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
  scrollbar-width: thin;
  scrollbar-color: var(--sign-ink-2) transparent;
  border-radius: 0 0 var(--radius) var(--radius);
}
.term--wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.term .k { color: var(--signal); }
.term .dim { color: var(--sign-ink-2); }

/* notices */
.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: var(--t-small);
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice .i { margin-top: 0.1rem; }
.notice--sample { border-style: dashed; border-color: var(--ink-3); }
.notice--error { border-color: var(--bad); color: var(--ink); }
.notice--error .i { color: var(--bad); }

/* verdict line above results (e.g. "Port 443 is open") */
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule); }
.verdict__text { font-size: var(--t-h3); font-weight: 750; letter-spacing: -0.01em; }
.verdict .state { font-size: var(--t-body); }

/* 10. Ad bays: foreign posters in a framed bay ----------------------------- */
.ad-bay { display: grid; justify-items: center; gap: 0.35rem; }
.ad-bay__cap {
  font-size: 0.6875rem;
  font-weight: 650;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ad-bay__slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px dashed var(--ink-3);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--ink-3) 14%, transparent) 11px 12px);
  color: var(--ink-3);
  font-size: var(--t-small);
  font-weight: 600;
  overflow: hidden;
}
/* Design-time only. Set data-ads="preview" on <html> to label the empty bays;
   in production the bay reserves its space silently until the ad unit loads. */
:root[data-ads="preview"] .ad-bay__slot:not(:has(ins))::after { content: "Ad slot \00B7  " attr(data-ad-size); background: var(--ground); padding: 0.15rem 0.5rem; }
:root:not([data-ads="preview"]) .ad-bay__slot { border-style: none; background: none; }
.ad-bay--leader { padding-block: var(--s-5); }
.ad-bay--leader .ad-bay__slot { max-width: 728px; height: 90px; }
.ad-bay--billboard .ad-bay__slot { max-width: 970px; height: 250px; }
.ad-bay--rect .ad-bay__slot { max-width: 300px; height: 250px; }
.ad-bay--tower .ad-bay__slot { max-width: 300px; height: 600px; }
.ad-bay--inline { padding-block: var(--s-2); }
.ad-bay--inline .ad-bay__slot { max-width: 728px; height: 280px; }
.ad-band { border-bottom: 1px solid var(--rule); }

/* 11. Prose + FAQ ---------------------------------------------------------- */
.prose { max-width: 68ch; }
/* Wide variant: prose still reads at 68ch, but tables and panels use the full column. */
.prose--wide { max-width: none; }
.prose--wide > :not(.scroll-x):not(.panel):not(.faq):not(section) { max-width: 68ch; }
.prose--wide .data th:first-child, .prose--wide .data td:first-child { min-width: 12rem; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 0; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--ink-3); font-weight: 700; }
.prose a { color: var(--line-a); font-weight: 600; }
.prose .data { margin-top: var(--s-4); }
.prose table.data th:first-child, .prose table.data td:first-child { padding-left: var(--s-4); }
.prose .lead { font-size: var(--t-lead); color: var(--ink); }
.prose .panel { margin-top: var(--s-5); }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.1rem; height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--line-a); }
.faq details > div { padding: 0 0 var(--s-5); max-width: 68ch; color: var(--ink-2); }
.faq details > div > * + * { margin-top: var(--s-3); }

/* guide index rows */
.guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.guides a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-1) var(--s-5);
  align-items: center;
  padding: var(--s-4) var(--s-2) var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}
.guides a:hover { background: var(--surface); }
.guides a .i { transition: transform 160ms var(--ease); }
.guides a:hover .i { transform: translateX(4px); }
.guides strong { font-size: var(--t-lead); }
.guides span { grid-column: 1; color: var(--ink-2); font-size: var(--t-small); }
.guides .i { grid-column: 2; grid-row: 1 / span 2; }

/* 12. Footer directory ----------------------------------------------------- */
.directory {
  background: var(--sign);
  color: var(--sign-ink);
  border-top: 4px solid var(--signal);
  padding-block: var(--s-7) var(--s-5);
  margin-top: auto;
}
.directory__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--sign-rule);
  color: var(--sign-ink-2);
  font-size: var(--t-small);
}
.directory__base ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: 0; padding: 0; }
.directory__base a { color: var(--sign-ink); text-decoration: none; }
.directory__base a:hover { color: var(--signal); text-decoration: underline; }

/* 13. Utilities + responsive ------------------------------------------------ */
.muted { color: var(--ink-3); }
.small { font-size: var(--t-small); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concourse { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); justify-items: center; }
  .rail > * { width: 100%; }
  .sign--tool { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--s-5); }
  .sign--home { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .locator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .locator__note { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 1rem; --t-h1: 1.75rem; --t-h2: 1.375rem; --header-h: 3.5rem; }
  .nav__link, .nav__btn--tools { display: none; }
  .nav__btn--menu { display: inline-flex; }
  .nav__menu-label { display: inline; }
  .dir-pop__mobile { display: grid; gap: 0; margin-bottom: var(--s-5); }
  .dir-pop__mobile a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 3rem; font-weight: 700; font-size: var(--t-lead);
    color: var(--sign-ink); text-decoration: none; border-bottom: 1px solid var(--sign-rule);
  }
  .dir-lines { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .dir-line a { min-height: 2.75rem; }
  .board { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .section { padding-block: var(--s-6); }
  .concourse { padding-block: var(--s-5) var(--s-7); }
  .concourse__main { gap: var(--s-6); }
  .sign { padding-block: var(--s-5); }
  .addrs { --fit-max: 40; margin-top: var(--s-4); }
  .addr__line { flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
  .addr__value { flex-basis: 100%; }
  .locator { grid-template-columns: minmax(0, 1fr); }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding-inline: var(--s-4); }
  .kv--sign > div { grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-3); padding-inline: 0; }
  .kv--two { grid-template-columns: minmax(0, 1fr); }
  .kv--two > div:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
  .figures > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .panel__head, .panel__body, .verdict { padding-inline: var(--s-4); }
  .data th:first-child, .data td:first-child { padding-left: var(--s-4); }
  .data th:last-child, .data td:last-child { padding-right: var(--s-4); }
  .term { padding-inline: var(--s-4); }
  .scroll-x > .data { min-width: 30rem; }
  .ad-bay--leader .ad-bay__slot { max-width: 320px; height: 100px; }
  .ad-bay--inline .ad-bay__slot { max-width: 336px; }
  .query__row .btn { flex: 1 1 100%; }
  .sign-strip__push { margin-left: 0; }
}
@media (min-width: 761px) {
  .nav__btn--menu { display: none; }
}

@media print {
  .gantry__bar, .ad-bay, .ad-band, .directory, .rail { display: none !important; }
  body { background: #fff; color: #000; }
}
