/* ============================================================================
   Page chrome: masthead, status strip, theme toggle, banners.
   Tokens only — see tokens.css.
   ========================================================================= */

@layer chrome {

/* ------------------------------------------------------------ masthead -- */
.masthead {
  border-bottom: 1px solid var(--rule-strong);
  background: var(--surface);
}
.masthead-inner {
  max-width: calc(var(--content-w) + var(--rail-w) + var(--s7));
  margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s5);
}
/* Not a display headline. The masthead is a label strip above the figures,
   so the h1 sits at heading scale rather than filling the first screen. */
.masthead h1 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--s3);
}
/* Still used by video.html's own standfirst. */
.standfirst { max-width: 62ch; color: var(--ink-2); }

/* status strip */
.status {
  display: flex; flex-wrap: wrap; gap: 0 var(--s5);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.status > div { padding: var(--s1) 0; }
.status b { font-weight: 500; color: var(--ink-2); }
.dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ok-ink);
  margin-right: 6px; vertical-align: 1px;
}
.dot[data-state="stale"], .dot[data-state="fixture"] { background: var(--warn-ink); }
.dot[data-state="error"] { background: var(--err-ink); }

.theme-toggle {
  margin-left: auto;
  display: inline-flex; gap: 0; border: 1px solid var(--rule-strong);
  border-radius: var(--radius); overflow: hidden;
}
.theme-toggle button {
  font: inherit; font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--ink-3);
  border: 0; border-left: 1px solid var(--rule-strong);
  /* Padding alone used to leave a ~26px-tall tap target -- under the ~44px
     touch-target guideline. Vertical padding grows to fix that; the label
     stays the same small eyebrow-sized text. */
  padding: var(--s4) var(--s3); cursor: pointer;
}
.theme-toggle button:first-child { border-left: 0; }
.theme-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------- banners -- */
#banners { position: sticky; top: 0; z-index: 40; }
.banner {
  padding: var(--s3) var(--s5);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--rule-strong);
  display: flex; gap: var(--s3); align-items: baseline;
}
.banner .tag {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em; text-transform: uppercase;
  flex: none; padding-top: 2px;
}
.banner--warn  { background: var(--warn-bg); color: var(--warn-ink); }
.banner--error { background: var(--err-bg);  color: var(--err-ink); }

} /* @layer chrome */
