/* Sightline — instrument panel. Dark charcoal, paper-white, one amber accent. */
:root {
  --bg: #0e0d0b;
  --bg-2: #161512;
  --surface: #1c1b17;
  --surface-2: #26241f;
  --line: #3a372f;
  --paper: #f4f0e6;
  --muted: #a39e91;
  --faint: #6e6a60;
  --amber: #e3a008;
  --amber-dim: #8a6408;
  --ink: #0e0d0b;
  --fail: #f0e6d8;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-ui: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-clock: "IBM Plex Mono", ui-monospace, monospace;
  --target: 44px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: var(--paper); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

/* Persistent safety chrome */
.safety {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1a1408;
  border-bottom: 3px solid var(--amber);
  padding: 0.7rem var(--gutter);
}
.safety p {
  margin: 0;
  max-width: 72rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.safety .en { color: var(--paper); font-weight: 550; }
.safety .es { color: var(--muted); margin-top: 0.25rem; }
.safety strong { color: var(--amber); font-weight: 700; }
@media (max-width: 720px) {
  /* Phones: keep the notice at the top of the page, but let it scroll away
     instead of pinning a quarter of the screen. */
  .safety { position: static; padding: 0.55rem var(--gutter); }
  .safety p { font-size: 0.8rem; line-height: 1.35; }
  .safety .es { font-size: 0.75rem; margin-top: 0.15rem; }
}

/* Full-width shell: every page uses the whole screen, gutters only.
   Prose blocks cap their own line length; layout never does. */
.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Horizontal chip rows: thin scroll on pointers, hidden on touch, fade cue at the edge. */
.corridors,
.region-nav,
.route-strip,
.lb-strip,
.wx-places {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
@media (pointer: coarse) {
  .corridors,
  .region-nav,
  .route-strip,
  .lb-strip,
  .wx-places { scrollbar-width: none; }
  .corridors::-webkit-scrollbar,
  .region-nav::-webkit-scrollbar,
  .route-strip::-webkit-scrollbar,
  .lb-strip::-webkit-scrollbar,
  .wx-places::-webkit-scrollbar { display: none; }
  .corridors,
  .region-nav {
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
  }
}

header.mast {
  padding: 1.6rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.16em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 560;
  font-variation-settings: "opsz" 36, "SOFT" 16, "WONK" 0;
  letter-spacing: -0.038em;
  line-height: 0.92;
  margin: 0;
  color: inherit;
  text-decoration: none;
}
.wordmark .name { display: inline-block; }
.wordmark .line { color: var(--amber); }
.wordmark .mark-box {
  display: block;
  height: 0.74em;
  width: calc(0.74em * 18 / 28);
  flex: 0 0 auto;
  /* Lift the post so its foot sits on the text baseline, not below it. */
  margin-bottom: 0.08em;
}
.wordmark .mark-box svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wordmark .mark-post {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.wordmark .mark-plate {
  fill: var(--bg-2);
  stroke: currentColor;
  stroke-width: 1.5;
}
.wordmark .mark-sight {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
}
.wordmark a { color: inherit; text-decoration: none; display: inline-flex; align-items: flex-end; gap: 0.16em; }
.tag {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.principle {
  margin: 0.7rem 0 0;
  font-family: var(--font-clock);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Corridor nav — see the canonical chip system at the end of this file. */

.corridor-head {
  padding: 1.5rem 0 0.85rem;
}
@media (max-width: 720px) {
  .corridor-head { padding: 1rem 0 0.6rem; }
}
.corridor-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 560;
  margin: 0;
  letter-spacing: -0.02em;
}
.corridor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.corridor-head .blurb { margin: 0.55rem 0 0; max-width: 46rem; }

/* Posted status — always above stills */
.status {
  margin: 0.9rem 0 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-left: 4px solid var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.status .kicker {
  font-family: var(--font-clock);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.2rem;
}
.status .line {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}
.status .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}
.status .note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .status { padding: 0.7rem 0.85rem; margin: 0.7rem 0 0.9rem; }
  .status .line { font-size: 1.05rem; }
  .status .note { font-size: 0.85rem; }
}

.compare-note {
  font-family: var(--font-clock);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.7rem;
}

/* 1-up phone / 2-up tablet / 4-up wide — corridor compare */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; } /* 2-up compare */
}
@media (min-width: 1100px) {
  /* Wide: as many ~20rem cards as fit, so big monitors get more cameras
     per row instead of four stretched ones. */
  .grid { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card.fail { border-color: var(--paper); }
.card.condemned { border-color: var(--amber-dim); }

.frame {
  position: relative;
  background: #080807;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.frame button.zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.frame button.zoom:focus-visible { outline-offset: -4px; }

.stamp {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
}
.stamp span {
  background: rgba(14, 13, 11, 0.78);
  color: var(--paper);
  font-family: var(--font-clock);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.4rem;
}

.condemn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(14, 13, 11, 0.55),
      rgba(14, 13, 11, 0.55) 10px,
      rgba(227, 160, 8, 0.18) 10px,
      rgba(227, 160, 8, 0.18) 20px
    );
  color: var(--paper);
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 1px 0 #000;
}
.condemn[hidden], .fail-panel[hidden] { display: none !important; }

.fail-panel {
  position: absolute;
  inset: 0;
  background: #1a1408;
  color: var(--fail);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  font-weight: 650;
}
.fail-panel .fail-hist {
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}
.fail-panel .retry {
  margin-top: 0.7rem;
  align-self: start;
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 0.9rem;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

.body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex: 1;
}
.body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.detail { color: var(--muted); font-size: 0.92rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-family: var(--font-clock);
  font-size: 0.78rem;
  color: var(--muted);
}
.chip {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.age.unknown, .age.stale {
  color: var(--paper);
  font-weight: 700;
}
.attr {
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 0.15rem;
}
.official {
  margin-top: 0.35rem;
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
}

/* Table alternative */
.table-wrap {
  padding-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.table-wrap table { min-width: 30rem; }
.table-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--faint);
  font-family: var(--font-clock);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 550;
}

.seo-faq {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 0.5rem;
}
.seo-faq h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
}
.seo-faq article { margin: 0 0 1rem; }
.seo-faq h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.seo-faq p { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
footer ul { padding-left: 1.1rem; }
footer .no-affil {
  margin-top: 1rem;
  color: var(--faint);
}

/* Lightbox — large still plus the next ones. Small official JPEGs upscale. */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 7, 6, 0.94);
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 0.6rem;
}
.lb-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--paper);
  flex: 0 0 auto;
}
.lb-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--target) 1fr var(--target);
  align-items: center;
  gap: 0.4rem;
}
.lb-stage img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  background: #080807;
}
.lb-prev, .lb-next, .lb-close {
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 0.7rem;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}
.lb-strip {
  flex: 0 0 72px;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-top: 0.4rem;
}
.lb-strip button {
  appearance: none;
  border: 2px solid transparent;
  padding: 0;
  background: #080807;
  cursor: pointer;
  height: 72px;
}
.lb-strip button[aria-current="true"] { border-color: var(--amber); }
.lb-strip img { height: 72px; width: auto; display: block; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* —— Job-first chrome + command palette (0.2) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.palette-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font: inherit;
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.palette-btn kbd {
  font-family: var(--font-clock);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 0.1rem 0.35rem;
  color: var(--muted);
}

.search-row {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0;
  align-items: stretch;
}

.search-row input[type="search"] {
  flex: 1;
  min-height: var(--target);
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--paper);
  font: inherit;
  font-size: 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
}

.search-row input[type="search"]::placeholder { color: var(--faint); }
.search-row input[type="search"]:focus {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-color: var(--amber);
}

.search-row .go {
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 1.1rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Secondary search action (e.g. "Near me"). Quieter than Go, never hidden
   on phones — that is where location matters most. */
.search-row .near {
  min-height: var(--target);
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font: inherit;
  font-weight: 650;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.search-row .near:hover { border-color: var(--amber); }

.understood {
  margin: 0.55rem 0 0;
  font-family: var(--font-clock);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--amber);
}

.understood[hidden] { display: none; }

.saved {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 0.85rem 0 0;
}

.saved-kicker {
  font-family: var(--font-clock);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.35rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips button.pin {
  border-color: var(--amber-dim);
}

.head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pin-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.pin-btn[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.card.hit {
  outline: 2px solid var(--amber);
  box-shadow: 0 0 0 4px rgba(227, 160, 8, 0.22);
}

.group-label {
  grid-column: 1 / -1;
  font-family: var(--font-clock);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0.4rem 0 0;
}

.deeplinks {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  padding: 0 0 2rem;
}

@media (min-width: 640px) {
  .deeplinks { grid-template-columns: 1fr 1fr; }
}

.deeplink {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: var(--target);
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
}

.deeplink:hover { border-color: var(--amber); color: var(--paper); }
.deeplink strong { color: var(--amber); font-weight: 700; }
.deeplink span { color: var(--muted); font-size: 0.88rem; }

.empty {
  padding: 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: var(--radius);
}

/* Command palette */
.palette[hidden] { display: none; }
.palette {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 7, 6, 0.78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 1rem;
}

.palette-panel {
  width: min(40rem, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.palette-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
}

.palette-panel input[type="search"] {
  width: 100%;
  min-height: var(--target);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--paper);
  font: inherit;
  font-size: 1.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
}

.palette-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.palette-list li { margin: 0; }

.palette-list button {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper);
  font: inherit;
  min-height: var(--target);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.palette-list button[aria-selected="true"],
.palette-list button:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

.palette-list .kicker {
  display: block;
  font-family: var(--font-clock);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.palette-list .label { font-weight: 650; }
.palette-list .hint { color: var(--muted); font-size: 0.88rem; }

.note-banner {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .card.hit { box-shadow: none; }
}

/* Card cues / Material icons */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  vertical-align: -0.18em;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
}
.detail .ms { margin-right: 0.15rem; }
.cues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0.1rem;
}
.cue {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 32px;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cue.age.ok { border-color: #3d6b45; color: #c8e6c9; }
.cue.age.stale { border-color: var(--amber); color: var(--amber); }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.card-actions .official,
.live-btn {
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
}
.card-actions .official {
  border: 1px solid var(--line);
  color: var(--paper);
}
.live-btn {
  background: var(--amber);
  color: var(--ink);
}
.live-btn:hover { filter: brightness(1.08); color: var(--ink); }

/* .help-link: styled in feature.css with the rest of the site bar. */
.asks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 0 0.15rem;
}
.ask-toc {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}
.ask-toc .toc-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.ask-toc .toc-kicker {
  flex: 0 0 6.5rem;
  font-family: var(--font-clock);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Help layout. Desktop: sticky question list beside the answers.
   Phone: one swipeable chip row per topic instead of a 16-chip wall. */
.help-layout { display: grid; grid-template-columns: 1fr; column-gap: 2rem; }
/* Grid items must be allowed to shrink, or the nowrap chip rows blow the
   page out sideways on phones. */
.help-layout > * { min-width: 0; }
@media (max-width: 899px) {
  .ask-toc { gap: 0.8rem; }
  .ask-toc .toc-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
  }
  .ask-toc .toc-group::-webkit-scrollbar { display: none; }
  .ask-toc a { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .help-layout {
    grid-template-columns: minmax(13rem, 16rem) 1fr;
    align-items: start;
  }
  .ask-toc {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    gap: 1.15rem;
    margin: 0;
    padding: 1.4rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .ask-toc .toc-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }
  .ask-toc .toc-kicker { flex: none; margin-bottom: 0.3rem; }
  /* Sidebar reads as a list, not a pile of pills. Same file as the chip
     system, so this variant stays canonical. */
  .help-page .ask-toc a {
    border: 0;
    background: transparent;
    border-radius: var(--radius);
    justify-content: flex-start;
    white-space: normal;
    min-height: 0;
    padding: 0.32rem 0.5rem;
    font-weight: 550;
    color: var(--muted);
  }
  .help-page .ask-toc a:hover {
    color: var(--paper);
    background: var(--surface);
  }
}

/* Help: category sections, cards fill the page two-up on wide screens. */
.help-cat { margin: 0 0 2rem; }
.help-cat > h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
/* As many ~26rem answer cards as fit beside the sidebar. */
@media (min-width: 1150px) {
  .faq-grid { grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); }
}
.help-body .help-cat:first-child > h2 { border-top: 0; padding-top: 0.4rem; }
.help-page .faq {
  margin: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: 5.5rem;
}
.help-page .faq h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  margin: 0 0 0.55rem;
}
.help-page .faq p, .help-page .faq li { color: var(--muted); }
.help-page .faq p:last-child, .help-page .faq ol { margin-bottom: 0; }
.help-back { margin: 1.5rem 0; }

.place h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.place p { margin: 0.35rem 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2.5rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .footer-line {
  margin: 0.4rem 0;
  color: var(--paper);
}
.site-footer .footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0.5rem 0 1.3rem;
}
.site-footer .footer-brand .wordmark {
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: var(--paper);
  text-decoration: none;
}
.site-footer .footer-brand .wordmark:hover .name { color: var(--amber); }
.site-footer .footer-tag {
  margin: 0.4rem 0 0;
  color: var(--muted);
}
.footer-share {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--target);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.footer-share:hover { background: var(--paper); color: var(--ink); }
.footer-share .material-symbols-outlined { font-size: 1.35em; }
.site-footer .footer-nav {
  margin: 0.9rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}
.site-footer .footer-nav a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 550;
}
.site-footer .footer-nav a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.site-footer .no-affil {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ————————————————————————————————————————————————————————————————
   Chips: ONE system for every pill control on the site.
   Containers either wrap (.jobs, .chips, .asks, .quick-asks,
   .wx-places, .ask-toc groups, .tools) or scroll (.corridors,
   .region-nav). The pill itself is identical everywhere; only the
   selected-state color differs: paper = a selected place,
   amber = a selected mode. Keep this block last — it is the single
   source of truth, and no other file may restyle these controls.
   ———————————————————————————————————————————————————————————————— */
.corridors,
.region-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}

.corridors button,
.region-nav button,
.jobs button,
.chips button,
.asks button,
.asks a,
.ask-toc a,
.quick-asks a,
.quick-asks button,
.wx-places button,
.tools a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: var(--target);
  padding: 0 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.corridors button:hover,
.region-nav button:hover,
.jobs button:hover,
.chips button:hover,
.asks button:hover,
.asks a:hover,
.ask-toc a:hover,
.quick-asks a:hover,
.quick-asks button:hover,
.wx-places button:hover,
.tools a:hover {
  border-color: var(--amber);
  color: var(--paper);
}

/* Place pickers: selected = paper. */
.corridors button[aria-selected="true"],
.region-nav button[aria-selected="true"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.corridors button[aria-selected="true"]:hover,
.region-nav button[aria-selected="true"]:hover {
  border-color: var(--paper);
  color: var(--ink);
}

/* Mode pickers: selected = amber, unselected sits back. */
.jobs button { color: var(--muted); }
.jobs button:hover { color: var(--paper); }
.jobs button[aria-selected="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.jobs button[aria-selected="true"]:hover { color: var(--ink); }

/* Scroll-row scrollbars: slim line on pointers, hidden on touch. */
.corridors::-webkit-scrollbar,
.region-nav::-webkit-scrollbar { height: 6px; }
.corridors::-webkit-scrollbar-track,
.region-nav::-webkit-scrollbar-track { background: transparent; }
.corridors::-webkit-scrollbar-thumb,
.region-nav::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
