/* Dispatches: shorter, news-style deep dives. Builds on styles.css (tokens, header, hero, cards, tables, sources).
   Same visual language as the litepapers, set a notch quieter: smaller headline, one column of argument,
   a key-facts panel and an interactive checklist. */

:root { --neon-cyan: #5FD3F3; --neon-magenta: #E25BD0; }

.brand-deck { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
.home-brand { letter-spacing: 0.06em; }

/* hero */
.dispatch-hero .hero-inner { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.dispatch-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.4rem); max-width: 16ch; }
.dispatch-hero .hero-lede { max-width: 42rem; }

/* what happened: argument on the left, key facts on the right */
.dispatch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .dispatch-grid { grid-template-columns: 1fr; } }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts > div { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 500 0.7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 0.35rem; }
.facts dd { margin: 0; color: var(--navy); font-size: 0.95rem; line-height: 1.5; }
.facts > div:first-child { background: var(--navy); }
.facts > div:first-child dt { color: var(--neon-cyan); }
.facts > div:first-child dd { color: #fff; font-weight: 600; }
.facts > div:first-child .cite { color: var(--neon-cyan); }

/* checklist */
.checklist { max-width: 52rem; }
.check-items { list-style: none; counter-reset: chk; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.check-items li { counter-increment: chk; }
.check-items label { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.2rem; transition: border-color 150ms ease, background-color 150ms ease; }
.check-items label:hover { border-color: var(--blue); }
.check-items input { appearance: none; -webkit-appearance: none; width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; border: 1.5px solid var(--blue); border-radius: 4px; display: grid; place-content: center; background: #fff; cursor: pointer; }
.check-items input::before { content: ""; width: 0.7rem; height: 0.38rem; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check-items input:checked { background: var(--c-coverage); border-color: var(--c-coverage); }
.check-items input:checked::before { opacity: 1; }
.check-items input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.check-items span { color: var(--text); font-size: 0.98rem; line-height: 1.6; }
.check-items span strong { color: var(--navy); }
.check-items span strong::before { content: counter(chk, decimal-leading-zero) " "; font: 500 0.75rem var(--mono); color: var(--blue); letter-spacing: 0.06em; margin-right: 0.2rem; }
.check-items label:has(input:checked) { background: #F2FAF8; border-color: #BFE3DC; }
.check-items label:has(input:checked) span { color: var(--muted); }
.check-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1rem; }
.check-progress { margin: 0; font: 500 0.82rem/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.check-count { color: var(--c-coverage); font-weight: 700; }

/* open questions */
.open-qs { list-style: none; padding: 0; margin: 0; max-width: 52rem; display: grid; gap: 0.6rem; }
.open-qs li { position: relative; padding: 1rem 1.2rem 1rem 3rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--navy); font-weight: 600; }
.open-qs li::before { content: "?"; position: absolute; left: 1.1rem; top: 0.95rem; font: 700 1rem/1 var(--mono); color: var(--neon-magenta); }

@media (prefers-reduced-motion: reduce) { .check-items label { transition: none; } }

/* breadcrumb: keep each crumb on one line and let the trail wrap */
.dispatch-hero .crumbs { flex-wrap: wrap; row-gap: 0.4rem; }
.dispatch-hero .crumbs a, .dispatch-hero .crumbs span { white-space: nowrap; }

/* ---------- hero visual (optional): the share image's look, live ----------
   Add class "has-visual" to the hero, wrap the copy in .dispatch-hero-copy and add a .verdict-card.
   dispatch.js draws magenta threads from the network into the card on .dispatch-threads. */
.dispatch-hero h1 .accent { color: var(--blue); }
.dispatch-hero.has-visual .hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.dispatch-threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.verdict-card {
  position: relative; justify-self: end; width: min(100%, 23rem); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 1.45rem 1.6rem 1.2rem; box-shadow: 0 18px 50px rgba(10,31,60,0.12);
}
.vc-label { margin: 0 0 0.95rem; font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); }
.vc-bar { display: flex; height: 1rem; border-radius: 4px; overflow: hidden; background: var(--line-soft); margin-bottom: 0.85rem; }
.vc-bar span { display: block; height: 100%; flex: 0 0 0; transition: flex-basis 900ms cubic-bezier(.2,.8,.2,1); }
.vc-pos { background: var(--c-coverage); } .vc-mix { background: var(--c-corroboration); transition-delay: 150ms !important; } .vc-neg { background: var(--c-retrievability); transition-delay: 300ms !important; }
.verdict-card.is-in .vc-pos { flex-basis: 62%; } .verdict-card.is-in .vc-mix { flex-basis: 23%; } .verdict-card.is-in .vc-neg { flex-basis: 15%; }
.vc-legend { display: flex; justify-content: space-between; font: 500 0.78rem/1 var(--mono); color: var(--muted); margin-bottom: 0.4rem; }
.vc-line { height: 0.55rem; border-radius: 4px; background: var(--line-soft); margin-top: 0.75rem; }
.vc-l2 { width: 78%; } .vc-l3 { width: 56%; }
.vc-note { margin: 1rem 0 0; font: 500 0.62rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #8A99AD; text-align: right; }
@media (max-width: 900px) {
  .dispatch-hero.has-visual .hero-inner { grid-template-columns: 1fr; }
  .verdict-card { justify-self: start; width: min(100%, 21rem); }
}
@media (prefers-reduced-motion: reduce) { .vc-bar span { transition: none; } }

/* insight card variant: a small bar chart and three metric rows (used on the Business Hub dispatch) */
.ic-chart { display: flex; align-items: flex-end; gap: 5px; height: 5.2rem; padding-bottom: 0.2rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.9rem; }
.ic-chart span { flex: 1; height: 0; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--blue), #5FD3F3); transition: height 900ms cubic-bezier(.2,.8,.2,1); }
.ic-chart span:last-child { background: linear-gradient(to top, #B33FA6, var(--neon-magenta)); }
.verdict-card.is-in .ic-chart span { height: var(--h); }
.ic-chart span:nth-child(n) { transition-delay: calc(var(--i, 0) * 40ms); }
.ic-metrics { display: grid; gap: 0.55rem; }
.ic-metrics > div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 0.8rem; }
.ic-metrics .vc-line { margin: 0; }
.ic-k { margin: 0; font: 500 0.75rem/1 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ic-chart span { transition: none; } }

/* longer, question-style headlines: add class "is-long" to the h1 */
.dispatch-hero h1.is-long { font-size: clamp(2.2rem, 1.3rem + 3.3vw, 3.6rem); max-width: 20ch; }
