:root { --fg: #1b1b1b; --muted: #666; --bg: #fff; --accent: #e8553e; --line: #e5e5e5; --soft: #f6f6f6; --warm: #fff4f1; }
/* --accent is for marks (dots, rules); --accent-text is the same hue dark/light enough to read as small text. */
:root { --accent-text: #b93c27; --ok: #2d6a2d; --warn: #8a5a12; --bad: #a32; --fs-label: .75rem; --fs-small: .875rem; --fs-h1: 1.5rem; }
@media (prefers-color-scheme: dark) { :root { --fg: #eee; --muted: #a3a6ad; --bg: #14161a; --line: #2c2f35; --soft: #1d2026; --warm: #2a1c19; --accent-text: #f2836e; --ok: #7cc47c; --warn: #e0a85a; --bad: #f08070; } }
@media (min-width: 600px) { :root { --fs-h1: 1.75rem; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 -apple-system, system-ui, sans-serif; }
header.site { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
header.site a { color: inherit; text-decoration: none; font-weight: 600; } header.site nav { display: flex; gap: 14px; } header.site nav a { font-weight: 400; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 4px 0 12px; }
a { color: inherit; }
.kind { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.callout { background: var(--warm); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; }
.notice { border: 1px dashed var(--accent); padding: 10px 14px; border-radius: 4px; }
.about { background: var(--soft); padding: 4px 14px; border-radius: 4px; }
.about h2 { font-size: 1rem; }
/* A story's dot timeline (thread.html). Dots that bunch up stack in lanes 16px apart (--lanes, --lane from the app). Each
   dot and event marker is a 24px tap target around a thin visible mark. Tooltips sit above the timeline, placed against
   the whole of it and clamped to its width, so one near either end is never cut off. */
.timeline { position: relative; height: calc(44px + (var(--lanes, 1) - 1) * 16px); margin: 22px 0; border-bottom: 2px solid var(--line); }
.timeline .dot { position: absolute; z-index: 2; bottom: calc(-13px + var(--lane, 0) * 16px); width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; }
.timeline .dot::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.timeline .dot:hover::before { inset: 5px; }
.timeline .mark { position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--x); width: 24px; margin-left: -12px; cursor: pointer; border-radius: 4px; }
.timeline .mark::before { content: ""; position: absolute; left: 11.5px; top: 16px; bottom: 0; border-left: 1px solid var(--muted); opacity: .4; }
.timeline .upcoming .mark::before { border-left-style: dashed; opacity: .3; }
.timeline .tick-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: .7rem; line-height: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline .upcoming .tick-label { opacity: .75; }
.timeline .mark:focus { outline: none; } .timeline .mark:focus .tick-label { color: var(--fg); font-weight: 700; }
.timeline .mark:focus-visible, .timeline .dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.timeline .tip { --w: min(15rem, 100%); position: absolute; z-index: 3; bottom: calc(100% + 6px); width: var(--w); left: clamp(0px, calc(var(--x) - var(--w) / 2), calc(100% - var(--w)));
  padding: 6px 10px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: .8rem; line-height: 1.35; text-align: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / .18); pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .12s, visibility .12s; }
.timeline .tip .when { color: inherit; opacity: .75; margin-right: 4px; } .timeline .tip .nowrap { white-space: nowrap; }
.timeline .event:focus-within .tip, .timeline .dot:focus-visible + .tip { visibility: visible; opacity: 1; }
/* Hover only where there is a real pointer: on a touchscreen a sticky :hover would leave a tooltip stuck open. */
@media (hover: hover) { .timeline .event:hover .tip, .timeline .point:hover .tip { visibility: visible; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .timeline .tip { transition: none; } }
.timeline .year { position: absolute; bottom: -26px; font-size: .75rem; color: var(--muted); } .year.start { left: 0; } .year.end { right: 0; }
.wave { border-top: 1px solid var(--line); padding: 12px 0; }
.wave h3 { font-size: 1.05rem; margin: 0 0 4px; } .when { color: var(--muted); font-weight: 400; margin-right: 6px; }
.items { padding-left: 18px; } blockquote { margin: 4px 0; color: var(--muted); font-style: italic; }
.engagement, .ruled, .sources, .data-links { font-size: .85rem; color: var(--muted); }
.badge { font-size: .7rem; padding: 1px 7px; border-radius: 99px; background: var(--soft); white-space: nowrap; }
.badge.reliable { color: var(--ok); } .badge.needs_second_source { color: var(--warn); } .badge.banned { color: var(--bad); }
.correction { font-size: .85rem; border-left: 3px solid var(--muted); padding-left: 8px; }
.threads { list-style: none; padding: 0; } .threads li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.threads a { font-weight: 600; display: block; } .count { display: block; font-size: .9rem; color: var(--muted); }
.outlets, .corrections { list-style: none; padding: 0; } .outlets li, .corrections li { padding: 6px 0; border-bottom: 1px solid var(--line); }
a.badge { text-decoration: none; } .citing h3 { font-size: 1rem; margin-bottom: 4px; }
header.site { align-items: center; gap: 12px; flex-wrap: wrap; }
form.search { flex: 1; min-width: 140px; max-width: 320px; }
form.search input, .search-page input { width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.search-page input { flex: 1 1 14em; font-size: 1.1rem; padding: 10px 12px; }
/* Result rows reuse the homepage row; rerun links sit above the row's full-cover title link. */
.results .excerpt { margin: 4px 0 0; font-size: var(--fs-small); color: var(--muted); }
.results mark { background: var(--warm); color: var(--fg); border-radius: 2px; }
.results .waves-hit { position: relative; z-index: 1; list-style: none; margin: 8px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.results .waves-hit li { padding: 3px 0; border: 0; } .results .waves-hit a { font-size: var(--fs-small); }
/* The rerun's date is muted and, as an inline-block, keeps out of the link's underline. */
.results .waves-hit .when { display: inline-block; }
@media (max-width: 480px) { .threads.results li.has-thumb > .waves-hit, .threads.results li.has-thumb > .excerpt { grid-column: 1 / -1; } }
.wave h3[id] { scroll-margin-top: 1.6em; }
.intro h1 { font-size: var(--fs-h1); letter-spacing: -.01em; margin-bottom: 6px; } .intro p { color: var(--muted); margin-top: 0; max-width: 36em; }
.section-label { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 4px; }
.section-label.back { color: var(--accent-text); }
.on-this-day ul { list-style: none; padding: 0; margin: 0 0 8px; } .on-this-day li { padding: 4px 0; }
.otd-year { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 6px; }
nav.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: var(--fs-small); color: var(--muted); margin-top: 14px; }
nav.sort a { color: var(--fg); text-decoration: none; padding: 4px 0; }
nav.sort a[aria-current] { font-weight: 700; box-shadow: inset 0 -2px var(--accent); }
nav.sort.filter { margin-top: 2px; }
/* Homepage rows echo the link card: type label, title, count, dot timeline. The title link covers the whole row. */
.threads li.story { position: relative; padding: 14px 0; }
.threads li.is-back::before { content: ""; position: absolute; left: -10px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--accent); }
.story .kind { margin: 0 0 2px; line-height: 1.3; }
.story .flag { color: var(--accent-text); font-weight: 700; } .story .flag::before { content: "· "; color: var(--muted); font-weight: 400; }
.story a.title { font-weight: 650; line-height: 1.3; text-decoration: none; } .story a.title::after { content: ""; position: absolute; inset: 0; }
.story a.title:hover, .story a.title:focus-visible { text-decoration: underline; }
.story .count { margin: 3px 0 0; font-size: var(--fs-small); } .story .count strong { color: var(--fg); }
.mini { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini .track { position: relative; flex: 1; height: 10px; border-bottom: 2px solid var(--line); }
.mini-tick { position: absolute; left: var(--x); top: 1px; bottom: 0; border-left: 1px solid var(--muted); opacity: .3; }
.mini-tick.upcoming { border-left-style: dotted; opacity: .25; }
.mini-dot { position: absolute; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); opacity: .8; }
/* Share links (_share.html). Each platform's logo beside its name (_icons.html). Copy and the device share sheet ship hidden; share.js shows them. */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: var(--fs-small); }
.share-label { color: var(--muted); margin-right: 2px; }
.share-row a, .share-row button, .share-links a, .share-links button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.share-row a, .share-links a { gap: 7px; } .share-row .icon, .share-links .icon { flex: none; }
.share-row a:hover, .share-row button:hover, .share-links a:hover, .share-links button:hover { border-color: var(--muted); }
.share-row :focus-visible, .share :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.can-copy .share-copy[hidden], .can-share .share-native[hidden] { display: inline-flex; }
/* A row's foot: the dot timeline, then the share control. The control sits above the title's full-cover link; its
   40px tap target overhangs the line by negative margins, so closed it adds no height to the row. */
.story .foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .story .foot .mini { flex: 1; margin-top: 0; }
.story .share { position: relative; z-index: 1; flex: none; font-size: var(--fs-label); } .story .share[open] { z-index: 3; }
.story .share summary { display: flex; align-items: center; min-height: 40px; min-width: 40px; margin: -14px -6px -14px 0; padding: 0 6px; list-style: none; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 6px; }
.story .share summary::-webkit-details-marker { display: none; }
.story .share summary::after { content: ""; width: 5px; height: 5px; margin-left: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.story .share summary:hover, .story .share[open] summary { color: var(--fg); }
.story .share .share-links { position: absolute; right: -6px; top: calc(100% + 10px); z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 15rem; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); box-shadow: 0 6px 24px rgb(0 0 0 / .14); font-size: var(--fs-small); letter-spacing: 0; text-transform: none; }
.threads .share-links a { font-weight: 500; }
.banner { margin: -16px -16px 12px; }
.banner img { display: block; width: 100%; height: 34vw; max-height: 300px; min-height: 140px; object-fit: cover; }
.banner figcaption { font-size: .7rem; color: var(--muted); padding: 4px 16px 0; }
.banner figcaption a { color: inherit; }
@media (min-width: 752px) { .banner { margin: 0 0 12px; } .banner img { border-radius: 8px; } .banner figcaption { padding: 4px 0 0; } }
.video { position: relative; aspect-ratio: 16 / 9; margin: 6px 0; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
a.watch { font-weight: 600; margin-right: 8px; }
.rerun-no { margin: 0; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.rerun-no .permalink { color: inherit; text-decoration: none; }
.rerun-no .permalink:hover::after, .rerun-no .permalink:focus::after { content: " #"; }
.wave h3, .wave .anchor { scroll-margin-top: 12px; }
.wave:has(:target) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
a.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
a.brand svg { display: block; }
.threads li.has-thumb { display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: start; }
.threads li.has-thumb .thumb { grid-row: span 4; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.threads li.has-thumb > :not(.thumb) { grid-column: 2; }
@media (max-width: 480px) { .threads li.has-thumb { grid-template-columns: 56px 1fr; column-gap: 12px; } .threads li.has-thumb .thumb { width: 56px; height: 56px; } }

footer.site { max-width: 720px; margin: 32px auto 0; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
footer.site a { color: inherit; }
/* Follow links: the platform's logo beside its name, as pills like the share links. */
footer.site .follow { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); font-weight: 500; text-decoration: none; }
footer.site .follow:hover { border-color: var(--muted); }
footer.site .follow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
footer.site .icon { flex: none; }
/* 404.html: the stories its search of the missing URL's words turned up. */
.suggest h2 { margin: 28px 0 8px; font-size: 1.05rem; }
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest li { padding: 10px 0; border-top: 1px solid var(--line); }
.suggest li a { font-weight: 600; }
.suggest .count { margin: 3px 0 0; }
/* The story page's embed code (thread.html) and the embed itself (embed.html): a compact card, no site chrome. Tooltips
   rise above the timeline, so the title lines leave them room. */
.embed-code { margin: 0 0 14px; font-size: var(--fs-small); color: var(--muted); }
.embed-code summary { cursor: pointer; width: fit-content; }
.embed-code label { display: block; margin: 8px 0 4px; }
.embed-code textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--fg); font: .8rem/1.4 ui-monospace, monospace; resize: vertical; }
.embed-code a { overflow-wrap: anywhere; }
body.embed { padding: 12px 16px 0; font-size: 15px; max-width: 640px; }
.embed .kind { margin: 0; }
.embed-title { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.3; text-decoration: none; }
.embed-title:hover { text-decoration: underline; }
.embed .count { margin: 2px 0 0; }
.embed .timeline { margin-top: 14px; }
.embed-foot { margin: 34px 0 0; font-size: var(--fs-small); }

/* Press kit: boilerplate set off to copy, in the page's normal voice rather than as a quotation; cards at column width. */
blockquote.copy { margin: 4px 0 12px; padding: 10px 14px; background: var(--soft); border-radius: 8px; color: var(--fg); font-style: normal; user-select: all; }
code { overflow-wrap: anywhere; }
.press-card img { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 8px; }
