/*
 * Operation Timeline — "Signal".
 * A chart-room log: cool chart paper, navy ink, chart teal, oxblood for executive orders and new entries,
 * gold only for keyboard focus; buttons are ink. Barlow Condensed for headings, dates, data and controls;
 * Spectral for reading. The one bold element is the signal chart in the hero; everything else stays quiet.
 * Layout: one 12-column grid (date rail = columns 1–3, feed = 4–12); vertical rhythm in steps of --step.
 */

@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f7f8f8;
  --paper-2: #eceff0;
  --ink: #0e1b26;
  --ink-2: #2c3e4a;
  --ink-3: #56666f;
  --teal: #065878;
  --oxblood: #733535;
  --gold: #c8962e;
  --gold-ink: #1b1406;
  --rule: #d3dadc;
  --new: #f5ecd6;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Spectral", Georgia, serif;
  --step: 3.75rem;
  --gutter: 1.25rem;
  --wide: 78rem;
  color-scheme: light;
}

/* Dark is the reader's choice, made with the header switch (js/theme.js sets data-theme); it never follows the system. */
:root[data-theme="dark"] {
  --paper: #102330;
  --paper-2: #16303f;
  --ink: #e7edeb;
  --ink-2: #c4d0d4;
  --ink-3: #98a9b0;
  --teal: #6fb3cc;
  --oxblood: #e09a90;
  --gold: #e2b550;
  --rule: #2b4554;
  --new: #2b2a1f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--text);
  font-variant-numeric: lining-nums;
  padding-bottom: 4.5rem; /* room for the phone subscribe bar */
}

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.ot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ot-skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; font: 600 1rem var(--display); z-index: 20;
}
.ot-skip:focus { left: 0.5rem; }

/* Gold means subscribe. */
.ot-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.2rem;
  background: var(--ink); color: var(--paper);
  font: 600 1.15rem/1 var(--display); letter-spacing: 0.01em;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
}
.ot-button:hover { background: var(--teal); }
.ot-button--large { min-height: 2.9rem; padding: 0 1.4rem; font-size: 1.2rem; }

/* Header: one slim line on the same edges as the page. */
.ot-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
}
.ot-header__inner {
  display: flex; align-items: center; gap: 0.5rem 1rem;
  max-width: var(--wide); margin: 0 auto; padding: 0.55rem var(--gutter);
}
.ot-header__brand { display: flex; align-items: center; gap: 0 0.9rem; min-width: 0; }
.ot-header__name { font-weight: 700; font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
/* The War Horse logo after "by"; the white version swaps in for the dark theme. */
.ot-header__by { display: inline-flex; align-items: center; gap: 0.4rem; }
.ot-logo { display: block; height: 1.9rem; width: auto; }
.ot-logo--dark, :root[data-theme="dark"] .ot-logo--light { display: none; }
:root[data-theme="dark"] .ot-logo--dark { display: block; }
.ot-footer__logo { display: inline-block; margin-bottom: 0.5rem; }
.ot-footer__logo .ot-logo { height: 2.6rem; }
.ot-header__by { font-weight: 600; font-size: 1.1rem; color: var(--ink-2); text-decoration: none; }
.ot-header__by:hover { opacity: 0.75; }
.ot-header__how { margin-left: auto; font-weight: 600; font-size: 1rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.ot-header__about { margin-left: auto; font-weight: 600; font-size: 1rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.ot-header__about ~ .ot-header__how { margin-left: 1rem; }
.ot-header__about + .ot-header__subscribe, .ot-header__how + .ot-header__subscribe { margin-left: 0.9rem; }
@media (max-width: 859px) { .ot-header__how { display: none; } }
.ot-header__subscribe { margin-left: auto; min-height: 2rem; font-size: 1rem; }
/* Light/dark switch: an icon button before Subscribe, showing the theme a click moves to. Hidden without JavaScript. */
.ot-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2rem; height: 2rem; margin-left: 0.75rem; padding: 0;
  background: none; border: 0; border-radius: 3px; color: var(--ink-2); cursor: pointer;
}
.ot-theme-toggle:hover { color: var(--ink); background: var(--paper-2); }
:root:not([data-theme]) .ot-theme-toggle, .ot-theme-toggle__sun, :root[data-theme="dark"] .ot-theme-toggle__moon { display: none; }
:root[data-theme="dark"] .ot-theme-toggle__sun { display: block; }
.ot-header .ot-theme-toggle + .ot-header__subscribe { margin-left: 0.5rem; }
@media (max-width: 480px) {
  .ot-header__brand { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .ot-header__name { font-size: 1.2rem; line-height: 1.1; }
  .ot-header__by { font-size: 0.95rem; line-height: 1.2; }
  .ot-header .ot-logo { height: 1.25rem; } /* keeps the stacked phone header as short as the text version */
  .ot-header__subscribe { min-height: 2rem; padding: 0 0.8rem; }
  /* Room for the theme switch: tighter gaps, and the title never shrinks under About; if a screen is still too
     narrow, Subscribe wraps to a second line rather than overprinting. */
  .ot-header__inner { flex-wrap: wrap; column-gap: 0.5rem; }
  .ot-header__brand { flex: none; }
  .ot-theme-toggle, .ot-header .ot-theme-toggle + .ot-header__subscribe { margin-left: 0; }
}
@media (max-width: 359px) {
  .ot-header__name { font-size: 1.05rem; }
  .ot-theme-toggle { width: 1.75rem; }
  .ot-header__subscribe { padding: 0 0.6rem; }
}

.ot-main { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) var(--step); }

/* ---- Hero: headline, the count with its freshness line, then the chart (48 / 24 / 40) ---- */
.ot-hero { padding-top: 1.25rem; margin-bottom: 0.25rem; }
.ot-hero__title {
  font: 700 clamp(1.6rem, 4.6vw, 3.8rem)/0.98 var(--display); /* 1.6rem floor keeps the first entry on a 360×740 phone screen */
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
}
@media (min-width: 860px) { .ot-hero__title { max-width: 38ch; } } /* three lines, so the first entry stays on a laptop's first screen */
.ot-hero__deck { margin: 0.9rem 0 0; max-width: 24rem; font: 500 1.2rem/1.25 var(--display); color: var(--ink-2); text-wrap: balance; }
.ot-hero__stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; margin-top: 1.1rem; }
.ot-hero__count { font: 700 2.9rem/0.8 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ink); }
.ot-hero__stat-text { padding-bottom: 0.05rem; }
.ot-hero__caption { margin: 0; max-width: 22rem; font: 500 1.05rem/1.15 var(--display); color: var(--ink-2); }
.ot-hero__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--gold); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ot-hero__dot { animation: ot-pulse 0.9s ease-out 0.15s 1; }
  @keyframes ot-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 70%, transparent); } 100% { box-shadow: 0 0 0 0.9rem transparent; } }
}

.ot-hero__signal { margin: 1.1rem 0 0; }

@media (min-width: 860px) {
  .ot-hero { padding-top: 3rem; }
  .ot-hero__stat { flex-direction: row; align-items: flex-end; margin-top: 1.5rem; gap: 1rem; }
  .ot-hero__deck { margin: 1rem 0 0; font-size: 1.4rem; max-width: none; }
  .ot-hero__count { font-size: 5.2rem; }
  .ot-hero__caption { font-size: 1.25rem; max-width: 20rem; }
  .ot-hero__signal { margin-top: 1.75rem; }
}

/* ---- The signal: one ink by default; a legend topic lights up in its own color ---- */
.ot-signal-wrap { position: relative; }
.ot-signal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.3rem; font: 600 0.95rem/1.2 var(--display); color: var(--ink-3); }
.ot-signal-plot { position: relative; padding-top: 0.5rem; }
.ot-signal { display: block; width: 100%; height: 8.5rem; overflow: visible; }
.ot-signal__base { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ot-signal__year { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.ot-signal__grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ot-signal__week-bar { fill: var(--teal); }
.ot-signal rect[data-topic] { fill: var(--tc); }
.ot-signal__other, .ot-signal__total { fill: #b7c1c5; }
.ot-signal rect { transition: fill 120ms ease-out; }
.ot-signal[data-focus] rect[data-topic], .ot-signal[data-focus] .ot-signal__other, .ot-signal[data-focus] .ot-signal__total { fill: color-mix(in srgb, var(--ink) 16%, var(--paper)); }
.ot-signal[data-focus] rect.is-focus { fill: var(--tc, var(--ink)); }
.ot-signal__now { fill: var(--gold); }

.ot-signal__notes { position: absolute; inset: 0.5rem 0 0; pointer-events: none; z-index: 1; }
.ot-signal__note { bottom: var(--b); }
.ot-signal__drop { position: absolute; width: 0; height: var(--h); border-left: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); transform: translateX(-0.5px); display: none; }
@media (max-width: 859px) {
  .ot-signal__note { bottom: var(--bs); }
  .ot-signal__drop { height: var(--hs); }
}
.ot-signal__focus-label { display: flex; align-items: center; gap: 0.4rem; font: 700 1rem/1.2 var(--display); color: var(--ink); white-space: nowrap; }
.ot-signal__focus-label:empty { display: none; }
.ot-signal__focus-label::before { content: ""; width: 0.65rem; height: 0.65rem; background: var(--c); }
.ot-signal__note {
  display: none; position: absolute; transform: translateX(-0.5px); width: max-content; max-width: min(19rem, 62vw);
  padding: 0 0 1rem 0.55rem; border-left: 1px solid color-mix(in srgb, var(--ink) 50%, transparent);
  font: 600 1rem/1.2 var(--display); color: var(--ink);
}
.ot-signal__note strong { display: block; width: fit-content; font-weight: 700; background: var(--paper); }
.ot-signal__note span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: fit-content; background: var(--paper); margin-top: 0.1rem; font: 500 1rem/1.2 var(--display); color: var(--ink-2); }
.ot-signal__note--second, .ot-signal__drop--second { visibility: hidden; }
.ot-signal__notes.has-room .ot-signal__note--second, .ot-signal__notes.has-room .ot-signal__drop--second { visibility: visible; }
.ot-signal__note--left strong, .ot-signal__note--left span { margin-left: auto; }
.ot-signal__note--left { transform: translateX(calc(-100% + 0.5px)); padding: 0 0.55rem 1rem 0; border-left: 0; border-right: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); text-align: right; }
.ot-signal__scale { position: absolute; top: 0.5rem; bottom: 0; right: 0; width: 0; pointer-events: none; }
.ot-signal__grid-label { position: absolute; right: 0; padding: 0 0 0.15rem 0.3rem; white-space: nowrap; font: 500 0.8rem/1 var(--display); color: var(--ink-3); background: var(--paper); font-variant-numeric: tabular-nums; }
.ot-signal-plot:not(.is-hovering) .ot-signal__grid-label.is-covered { visibility: hidden; }

.ot-signal__weeks { position: absolute; inset: 0.5rem 0 0; }
.ot-signal__weeks a { position: absolute; top: 0; bottom: 0; }
.ot-signal__weeks a:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); }
/* Week cards: the hovered week stays at full strength, the rest step back, and the card names its headlines. */
.ot-signal .ot-signal__week-bar { transition: opacity 0.15s ease; }
.ot-signal-plot.is-hovering .ot-signal__week-bar:not(.is-on) { opacity: 0.45; }
.ot-signal-plot.is-hovering .ot-signal__weeks a:hover { background: none; }
.ot-signal-plot.is-hovering .ot-signal__notes { opacity: 0; }
.ot-signal__notes { transition: opacity 0.15s ease; }
.ot-signal__card {
  position: absolute; z-index: 15; width: min(19rem, 100%); padding: 0.6rem 0.75rem 0.65rem;
  background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid var(--ink-3); border-radius: 3px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.14); font: 500 0.98rem/1.25 var(--display);
  animation: ot-card-in 0.14s ease-out; pointer-events: none; /* a mouse keeps moving across the weeks beneath */
}
.ot-signal__card--flow { position: relative; display: block; width: auto; margin: 0.5rem 0 0.25rem; pointer-events: auto; }
.ot-signal__card[hidden] { display: none; }
.ot-signal__card strong { display: block; font-weight: 700; }
.ot-signal__card ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.ot-signal__card li { position: relative; padding-left: 0.85rem; font: 400 0.95rem/1.3 var(--text); color: var(--ink-2); }
.ot-signal__card li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.45rem; height: 0.45rem; background: var(--c, #b7c1c5); }
.ot-signal__card-major { display: block; font: 700 0.78rem/1.2 var(--display); color: var(--oxblood); }
.ot-signal__card-more { display: block; margin-top: 0.4rem; font-size: 0.88rem; color: var(--ink-3); }
.ot-signal__card:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
@keyframes ot-card-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ot-signal__card { animation: none; }
  .ot-signal .ot-signal__week-bar, .ot-signal__notes { transition: none; }
}

.ot-signal__axis { position: relative; height: 1.7rem; margin-top: 0.2rem; font: 500 0.82rem/1 var(--display); color: var(--ink-3); }
.ot-signal__tick { position: absolute; top: 0; padding-top: 0.5rem; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ot-signal__tick::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 0.35rem; background: var(--ink-3); }
.ot-signal__tick--start { transform: none; }
.ot-signal__tick--start::before { left: 0; }
.ot-signal__tick--year { color: var(--ink-2); }
.ot-signal__tick--year::before { height: 0.45rem; }
.ot-signal__tick--quarter { display: none; }
.ot-signal__caption { display: none; }
/* Keyboard and screen-reader route to any week; out of sight until it has focus. */
.ot-signal__jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-top: 0.5rem; font: 500 0.95rem/1.2 var(--display); }
.ot-signal__jump select, .ot-signal__jump button { min-height: 2.2rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 3px; padding: 0 0.5rem; }
/* The preview is read aloud; sighted keyboard users see the same headlines on the chart's card. */
.ot-signal__preview { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.ot-signal__jump:not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 859px) {
  .ot-signal__head { font-size: 0.9rem; }
  .ot-signal { height: 6.5rem; }
  /* Room above the bars for the first call-out (headline plus a two-line summary) below the chart label. */
  .ot-signal-plot { padding-top: 3.4rem; }
  .ot-signal__notes, .ot-signal__weeks, .ot-signal__scale { top: 3.4rem; }
  .ot-hero__deck { max-width: none; font-size: 1.1rem; margin-top: 0.5rem; }
  .ot-hero__signal { margin-top: 0.8rem; }
  .ot-signal__note:first-child, .ot-signal__drop--first { display: block; }
  .ot-signal__note:first-child { font-size: 0.92rem; padding-bottom: 0.5rem; }
  .ot-signal__note:first-child span { font-size: 0.9rem; }
}

@media (min-width: 860px) {
  .ot-signal-plot { padding-top: 2.25rem; }
  .ot-signal__notes, .ot-signal__weeks, .ot-signal__scale { top: 2.25rem; }
  .ot-signal { height: 15rem; }
  .ot-signal__note, .ot-signal__drop { display: block; }
  .ot-signal__tick--quarter { display: block; }
  .ot-signal__caption { display: none; }
}

/* Legend: toggle chips (one lit at a time) with a color tick and a count. */
.ot-legend { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 1.4rem; margin-top: 0.6rem; border-bottom: 1px solid var(--rule); font: 500 1.05rem/1.2 var(--display); }
.ot-legend__item {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.4rem; padding: 0; cursor: pointer; white-space: nowrap;
  font: inherit; color: var(--ink-2); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0;
}
.ot-legend__item::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--c); }
.ot-legend__item:hover { color: var(--ink); border-bottom-color: var(--rule); }
.ot-legend__item { text-decoration: none; }
.ot-legend__item[aria-current="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--c); }
.ot-legend .ot-count { color: var(--ink-3); font-weight: 500; }
/* "More" opens onto its own full-width row of the same items, each with its color tick. */
.ot-legend__more[open] { flex-basis: 100%; }
.ot-legend__rest { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.ot-legend__item--plain { white-space: normal; max-width: 100%; }
.ot-legend__more summary { display: inline-flex; align-items: center; min-height: 2.4rem; white-space: nowrap; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.ot-legend__more summary::-webkit-details-marker { display: none; }
.ot-legend__more[open] summary { display: none; }
@media (max-width: 859px) {
  .ot-legend, .ot-legend__rest { gap: 0 1rem; }
  .ot-legend { font-size: 0.98rem; }
  .ot-legend__item, .ot-legend__more summary { min-height: 1.75rem; }
  .ot-legend { margin-top: 0.35rem; }
  .ot-hero__updated { font-size: 0.9rem; padding-left: 0.75rem; }
  .ot-browse { padding-top: 0.7rem; }
}

/* ---- Search and topics ---- */
.ot-new-since {
  background: var(--teal); color: var(--paper);
  font: 600 1.2rem/1.3 var(--display);
  padding: 0.7rem 1rem; margin: 0 0 1rem; border-radius: 3px;
}
.ot-new-since a { color: inherit; margin-left: 0.5rem; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.ot-browse { display: grid; gap: 0.7rem; padding: 0.9rem 0 0.7rem; margin-bottom: calc(var(--step) * 0.3); }
.ot-browse__bar { display: flex; align-items: center; gap: 0.75rem; }
/* The home page's filter panel drops below the bar as an overlay, so opening it never squeezes the search box. */
.ot-browse__bar { position: relative; }
.ot-browse__bar .ot-filters__form {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.5rem);
  padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--ink-3); border-radius: 3px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.14);
}
.ot-search { position: relative; flex: 1; max-width: 22rem; }
.ot-search input {
  width: 100%; min-height: 2.6rem; padding: 0 2.8rem 0 0.8rem; font: 500 1.08rem var(--display);
  color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 3px;
}
.ot-search input::placeholder { color: var(--ink-3); opacity: 1; }
.ot-search button {
  position: absolute; right: 0.15rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  background: none; border: 0; border-radius: 3px; color: var(--ink); cursor: pointer;
}
.ot-search button:hover { color: var(--teal); }
.ot-filters button {
  min-height: 2.6rem; padding: 0 1.1rem; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 600 1.1rem var(--display);
}

/* Topic legend: one row of chips that scrolls on any width; the fade says there is more. */
.ot-topic-links {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0.45rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0.1rem var(--gutter);
  mask-image: linear-gradient(to right, #000 88%, transparent);
  font: 500 1.02rem/1 var(--display);
}
.ot-topic-links::-webkit-scrollbar { display: none; }
.ot-topic-links a {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.1rem; padding: 0 0.65rem;
  border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; white-space: nowrap; background: var(--paper);
}
.ot-topic-links a:hover { border-color: var(--ink-3); }
.ot-topic-links a::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--c); flex: none; }
.ot-topic-links a.ot-topic-links__plain::before { display: none; }
.ot-topic-links__other { flex: none; padding: 0 0.2rem 0 0.6rem; margin-left: 0.2rem; border-left: 1px solid var(--rule); color: var(--ink-3); font-weight: 600; }
.ot-count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.ot-filters { margin: 0; }
.ot-filters summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 0.9rem;
  border: 1px solid var(--ink-3); border-radius: 3px; font: 600 1.02rem var(--display); color: var(--ink);
}
.ot-filters summary::-webkit-details-marker { display: none; }
.ot-filters[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ot-filters__form { display: grid; gap: 1rem; padding: 0.8rem 0 0.4rem; }
.ot-filters__label { font: 600 1.05rem var(--display); }
.ot-filters input[type="search"] {
  width: 100%; max-width: 32rem; padding: 0.6rem 0.75rem; font: 500 1.08rem var(--display);
  color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 3px;
}
.ot-filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.ot-filters legend { font: 600 1.05rem var(--display); margin-bottom: 0.3rem; padding: 0; }
.ot-check { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; font: 500 1.05rem var(--display); }
.ot-filters button { justify-self: start; }
.ot-filters__form > a { font: 500 1.05rem var(--display); }

/* ---- The log: date rail (columns 1–3) and feed (4–12) ---- */
.ot-day { padding: calc(var(--step) * 0.2) 0 calc(var(--step) * 0.3); border-top: 1px solid var(--ink); }
.ot-day__head { padding-bottom: 0.3rem; }
.ot-day__meta span + span::before { content: ", "; }
.ot-day__date { font: 700 1.5rem/1 var(--display); margin: 0; letter-spacing: -0.005em; }
.ot-day__year { font-weight: 500; color: var(--ink-3); }
.ot-day__meta { margin: 0.3rem 0 0; display: flex; flex-wrap: wrap; gap: 0; font: 400 0.95rem/1.35 var(--text); color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; }

.ot-day__entries > .ot-entry:first-child { border-top: 0; }
.ot-entry { padding: 0.8rem 0 0.85rem; border-top: 1px solid var(--rule); }
.ot-entry--new { box-shadow: inset 4px 0 0 var(--oxblood); background: var(--new); padding-left: 1rem; padding-right: 1rem; }
.ot-entry__new { margin: 0 0 0.2rem; font: 600 1rem/1.2 var(--display); color: var(--oxblood); }

.ot-entry__kind { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.25rem; font: 600 1rem/1.2 var(--display); }
.ot-mark { width: 0.6rem; height: 0.6rem; flex: none; background: var(--ink-3); }
svg.ot-mark { background: none; }
.ot-entry__kind { color: var(--ink-2); }
.ot-type--official .ot-entry__kind { color: var(--teal); }
.ot-type--official .ot-mark--doc { width: 0.75rem; height: 0.8rem; color: var(--teal); }
.ot-type--eo .ot-entry__kind { color: var(--oxblood); }
.ot-type--eo .ot-mark { background: var(--oxblood); transform: rotate(45deg) scale(0.9); }
.ot-type--social .ot-entry__kind { color: var(--ink-3); }
.ot-type--social .ot-mark--bubble { width: 0.8rem; height: 0.8rem; color: var(--ink-3); }

.ot-filter { margin: 0 0 0.6rem; font: 600 1.05rem/1.3 var(--display); color: var(--ink); }
.ot-filter a { margin-left: 0.4rem; color: var(--ink); text-underline-offset: 0.2em; }
/* Major actions: a worded label and one step up in the headline; the rest of the log stays quiet. */
.ot-entry__major { margin: 0 0 0.2rem; font: 700 0.95rem/1.2 var(--display); color: var(--oxblood); letter-spacing: 0.01em; }
.ot-entry--major .ot-entry__title { font-size: 1.3rem; font-weight: 700; }
@media (min-width: 860px) { .ot-entry--major .ot-entry__title { font-size: 1.4rem; } }
.ot-entry__title { font: 600 1.19rem/1.25 var(--text); margin: 0 0 0.2rem; max-width: 44rem; text-wrap: pretty; }
@media (min-width: 860px) { .ot-entry__title { font-size: 1.25rem; } }
.ot-entry__title a { text-decoration: none; }
.ot-entry__title a:visited { color: var(--ink-2); }
.ot-entry__title a:focus-visible { text-decoration: underline; }
.ot-entry__title a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.ot-entry__summary { margin: 0 0 0.45rem; color: var(--ink-2); max-width: 44rem; font-size: 0.95rem; line-height: 1.45; }

/* Meta: one quiet style; only the topic square carries color. */
.ot-entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; font: 400 0.9rem/1.3 var(--text); color: var(--ink-3); }
.ot-entry__source { font-weight: 600; color: var(--ink-2); text-decoration: none; }
a.ot-entry__source:hover { color: var(--teal); text-decoration: underline; }
.ot-out { width: 0.74em; height: 0.74em; margin-left: 0.3em; vertical-align: -0.02em; color: var(--ink-3); flex: none; }
.ot-topics, .ot-branches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.ot-branches li { color: var(--ink-3); }
/* Topic and branch tags are links: they look like labels until hovered or focused. */
.ot-topics a, .ot-branches a { color: inherit; text-decoration: none; }
.ot-topics a:hover, .ot-branches a:hover, .ot-topics a:focus-visible, .ot-branches a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; }
/* On touch screens each tag is a full 44×44 tap target (the brief's minimum), without overlapping its neighbors. */
@media (any-pointer: coarse) { /* any touch input, so touchscreen laptops get it too */
  .ot-topics, .ot-branches { row-gap: 0; }
  .ot-topics a, .ot-branches a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
.ot-topics li:not([style])::before { content: none; }
.ot-topics li::before {
  content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.3rem;
  background: var(--c, #a9b5ba); vertical-align: 0.04em;
}
.ot-copy {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 2rem; padding: 0 0.3rem; margin-left: -0.3rem;
  background: none; border: 0; border-radius: 3px; cursor: pointer;
  font: 400 0.9rem var(--text); color: var(--ink-3);
}
.ot-copy:hover, .ot-copy--done { color: var(--teal); }
.ot-copy__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* On devices with hover, the copy control appears with its entry. */
@media (hover: hover) {
  .ot-copy { opacity: 0; }
  .ot-entry:hover .ot-copy, .ot-entry:focus-within .ot-copy, .ot-copy--done { opacity: 1; }
}

@media (min-width: 860px) {
  .ot-day { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .ot-day__head { grid-column: 1 / span 2; position: sticky; top: 3.75rem; align-self: start; padding-top: 0.65rem; }
  .ot-day__date { font-size: 1.65rem; }
  .ot-day__meta { flex-direction: column; gap: 0.1rem; white-space: nowrap; }
  .ot-day__meta span + span::before { content: none; }
  .ot-day__entries { grid-column: 3 / -1; }
}



/* ---- Feed signup: an editorial strip between heavy rules; mustard means subscribe ---- */
.ot-signup {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 2rem;
  background: color-mix(in srgb, var(--ink) 5%, var(--paper));
  padding: 1.2rem 1.25rem 1.3rem; margin: 0.25rem 0 calc(var(--step) * 0.4);
}
.ot-signup h2 { font: 700 clamp(1.5rem, 2.4vw, 1.9rem)/1.05 var(--display); margin: 0 0 0.25rem; letter-spacing: -0.005em; }
.ot-signup p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
@media (min-width: 860px) {
}

.ot-load-earlier {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; margin-top: 0.5rem;
  border: 2px solid var(--ink); border-radius: 3px; text-decoration: none;
  font: 600 1.2rem var(--display);
}
.ot-load-earlier[aria-busy="true"] { opacity: 0.55; }
@media (min-width: 860px) {
  .ot-load-earlier { margin-left: calc((100% + var(--gutter)) / 12 * 2); }
}

.ot-page-title { font: 700 clamp(2rem, 4vw, 3rem)/1 var(--display); margin: calc(var(--step) * 0.5) 0 0.75rem; }
.ot-page-nav { margin: 0.2rem 0 1rem; font: 500 1.1rem/1.4 var(--display); color: var(--ink-2); }
.ot-page-nav a { color: var(--ink); font-weight: 600; text-underline-offset: 0.2em; }
.ot-result-count { font: 600 1.15rem var(--display); color: var(--ink-2); }
.ot-result-date { font: 600 1.05rem var(--display); color: var(--ink-3); margin: 1.2rem 0 0; }
.ot-pager { display: flex; justify-content: space-between; margin: 1rem 0 calc(var(--step) * 0.5); font: 600 1.15rem var(--display); }
.ot-empty { padding: 1rem 0; color: var(--ink-2); }
.ot-back { font: 600 1.15rem var(--display); }

.ot-hero__updated { margin: 0 0 0 auto; align-self: center; padding-left: 1rem; font: 500 0.95rem/1.3 var(--display); color: var(--ink-3); white-space: nowrap; }
.ot-about { max-width: 40rem; margin: 0 auto 1.5rem; text-align: left; color: var(--ink-2); font: 400 1.05rem/1.55 var(--text); }
.ot-about h2 { margin: 0 0 0.5rem; font: 700 1.35rem/1.2 var(--display); color: var(--ink); }
.ot-about p { margin: 0 0 0.75rem; }
.ot-about a { color: inherit; }
.ot-footer { border-top: 1px solid var(--rule); padding: 1.25rem var(--gutter) 2rem; text-align: center; color: var(--ink-3); font: 500 1rem/1.4 var(--display); }

/* ---- Phone subscribe bar ---- */
.ot-dock {
  position: fixed; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; z-index: 15;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font: 600 1.1rem/1.2 var(--display);
  box-shadow: 0 6px 24px rgba(15, 34, 48, 0.28);
}
.ot-dock[hidden] { display: none; }
.ot-dock p { margin: 0; flex: 1; }
.ot-dock .ot-button { flex: none; }
.ot-dock__close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; width: 2.25rem; height: 2.75rem; cursor: pointer; }
@media (min-width: 860px) { .ot-dock { display: none !important; } body { padding-bottom: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .ot-dock { animation: ot-dock-in 240ms ease-out; }
  @keyframes ot-dock-in { from { transform: translateY(120%); } to { transform: none; } }
  html { scroll-behavior: smooth; }
}

/* ---- Wide screens: a side rail to jump by month or topic ---- */
.ot-rail { display: none; }
@media (min-width: 1200px) {
  .ot-log { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; column-gap: 3rem; align-items: start; }
  .ot-rail {
    display: block; position: sticky; top: 4.25rem; max-height: calc(100vh - 5.5rem); overflow-y: auto;
    padding: 0.9rem 0 1rem; border-top: 1px solid var(--ink); font: 500 1rem/1.5 var(--display);
  }
  .ot-rail__block + .ot-rail__block { margin-top: 1.4rem; }
  .ot-rail h2 { margin: 0 0 0.45rem; font: 700 1.05rem var(--display); color: var(--ink); }
  .ot-rail ul { list-style: none; margin: 0; padding: 0; }
  .ot-rail h3 { margin: 0.6rem 0 0.15rem; font: 600 0.95rem var(--display); color: var(--ink-3); }
  .ot-rail a { color: var(--ink-2); text-decoration: none; }
  .ot-rail a:hover { color: var(--teal); text-decoration: underline; }
  .ot-rail li a { display: flex; justify-content: space-between; gap: 0.5rem; }
  .ot-rail .ot-count { color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .ot-rail li[style] a { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 2.2rem; align-items: center; gap: 0.4rem; }
  .ot-rail li[style] a::after { content: ""; order: 2; height: 5px; width: calc(var(--v) * 100%); background: color-mix(in srgb, var(--ink) 28%, transparent); }
  .ot-rail li[style] .ot-count { order: 3; text-align: right; }
  .ot-rail li[style] a:hover::after { background: var(--ink); }
}

/* Staff Edit link: the server renders it only for a browser holding a valid staff pass. */
.ot-edit { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.75rem; font: 600 0.85rem/1 var(--display); color: var(--ink-3); text-decoration: none; }
.ot-edit:hover, .ot-edit:focus-visible { color: var(--teal); text-decoration: underline; }
