/* The Brief: additions on top of the shared PAHL stylesheet (datasets.paloaltohealthlabs.com/static/style.css).
   Tokens (--ink, --muted, --line, --accent, --mono ...) come from that file; do not redefine them here.
   Layout and sizes follow docs/mockups/brief-front-page.html. */

/* Page frame. The shared stylesheet makes the site header (.nav, 72 px; about 105 px when it wraps below 720 px)
   and, above 720 px, the app bar (57-90 px; about 130 px when the tabs wrap below 960 px) sticky. Scroll padding keeps keyboard focus
   and #anchors clear of them (WCAG 2.4.11). The body is a full-height column so the footer meets the bottom of the
   viewport on short pages. */
html { scroll-padding-top: 180px; }
@media (max-width: 960px) { html { scroll-padding-top: 220px; } }
@media (max-width: 720px) { html { scroll-padding-top: 120px; } }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
body > .wrap { width: 100%; }
.brief-foot { margin-top: auto; }

/* Utilities */
.brief-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
            clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brief-skip { position: absolute; left: 8px; top: -60px; z-index: 20; background: #fff; color: var(--ink);
              padding: 10px 14px; border: 2px solid var(--accent); }
.brief-skip:focus { top: 8px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Site nav sits right of the wordmark, as in the mockup */
.nav nav { margin-left: auto; }
@media (max-width: 720px) { .nav nav { margin-left: 0; } }

/* Masthead: a compact hero with the disclosure box on the right */
.brief-masthead { padding: 28px 0 24px; }
.brief-masthead .wrap { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; }
.brief-masthead-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.brief-masthead .label { font-size: 12px; }
.brief-masthead .crumb a { text-decoration: none; }
.brief-masthead .crumb a:hover { text-decoration: underline; }
.brief-masthead h1, .brief-masthead-name { font-size: 44px; font-weight: 500; letter-spacing: -.045em; line-height: 1;
                                           margin: 0; overflow-wrap: anywhere; }
.brief-masthead .lead { font-size: 17px; margin: 0; max-width: 60ch; }
.brief-masthead .disc { margin: 0; max-width: 420px; padding: 10px 14px; font-size: 13px; line-height: 1.45; }

/* App bar: tabs are links here, not buttons */
a.tab { text-decoration: none; display: inline-block; padding: 10px 12px; }
.brief-subscribe-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; }

/* Two-column page: stories + right rail. Rail drops below on narrow screens. */
.brief-layout { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; padding-top: 24px; padding-bottom: 40px; }
.brief-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.brief-rail { flex: 1 1 300px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 960px) { .brief-rail { max-width: none; } }
.brief-section-label { font-size: 12px; margin: 0; padding-bottom: 10px; font-weight: 400; letter-spacing: .05em; }
.brief-section-gap { padding-top: 28px; }
.brief-empty { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.brief-link { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.brief-link:hover { text-decoration: underline; }

/* Story meta line: rank (lead), tier chip, source, topic, age */
.brief-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.brief-meta a { color: var(--muted); text-decoration: none; }
.brief-meta a:hover { color: var(--accent); text-decoration: underline; }
.brief-event { white-space: nowrap; }
.brief-rank-lead { font-family: var(--mono); color: var(--ink); }

/* Institution charms (brief.charms): 16 px marks of the organizations behind a story, after the source name.
   Icons and text chips share one 16 px box (fixed size: no layout shift while icons load) with a 3 px radius and
   a grey hairline drawn as a shadow, so it adds no width. */
.brief-src-tail { white-space: nowrap; }   /* the source name's last word + its charms never part on a wrap */
.brief-charms { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: -3px; }
.brief-charm { display: inline-flex; align-items: center; justify-content: center; height: 16px; min-width: 16px;
               border-radius: 3px; flex-shrink: 0; }
.brief-charm img { display: block; width: 16px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.brief-charm-chip { box-sizing: border-box; padding: 0 3px; border: 1px solid #C9C9C4; background: #fff;
                    font: 500 9.5px/14px var(--mono); letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
/* Charms link the institution's page (/i/<key>, DESIGN §4.30): same look, a cobalt ring on hover and focus, and a
   hit area grown to 24 px tall by a pseudo-element without moving anything (the 4 px gaps keep targets apart). */
a.brief-charm { position: relative; text-decoration: none; }
a.brief-charm::after { content: ""; position: absolute; inset: -4px -2px; }
.brief-meta a.brief-charm-chip { color: var(--ink-2); }
.brief-meta a.brief-charm:hover { text-decoration: none; }
a.brief-charm:hover img, a.brief-charm:focus-visible img { box-shadow: 0 0 0 1px var(--accent); }
a.brief-charm-chip:hover, a.brief-charm-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
a.brief-charm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Entity pages (DESIGN §4.30): institution and FDA pages, and the story page's internal links. */
.brief-entity-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.brief-entity-head .brief-charm { margin: 0; }
.brief-entity-kind { font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.brief-entity-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 0 18px; margin: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.brief-entity-facts li { display: inline-flex; align-items: center; gap: 6px; }
.brief-entity-facts b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.brief-entity-facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.brief-entity-facts a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.brief-entity-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; }
.brief-entity-list li { border-top: 1px solid var(--line); }
.brief-entity-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration: none; }
.brief-entity-list a:hover .brief-entity-name { color: var(--accent); text-decoration: underline; }
.brief-entity-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.brief-entity-count { font: 400 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.brief-group-title { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.brief-group + .brief-group { padding-top: 24px; }
.brief-links { list-style: none; margin: 0 0 4px; padding: 0; }
.brief-links li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.brief-links-title { font-size: 15px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; }
.brief-links-title:hover { color: var(--accent); text-decoration: underline; }
.brief-links-all { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.brief-links-all:hover { text-decoration: underline; }
.brief-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.brief-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding: 0 0 18px; margin: 0; }
.brief-filter label { display: flex; flex-direction: column; gap: 4px; font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.brief-filter select { min-height: 44px; min-width: 180px; max-width: 100%; padding: 0 10px; border: 1px solid var(--muted); border-radius: 0; background: #fff; color: var(--ink); font: 400 14px/1.2 var(--sans); }
.brief-filter button { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; }
.brief-filter button:hover { background: var(--accent); border-color: var(--accent); }
.brief-filter a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--accent); }
.brief-filter select:focus-visible, .brief-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brief-fda-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 18px; margin: 0 0 18px; max-width: 72ch; font-size: 14px; }
.brief-fda-facts dt, .brief-fda-facts dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.brief-fda-facts dt { font: 400 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.brief-fda-facts dd { color: var(--ink); overflow-wrap: anywhere; }
.brief-fda-facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.brief-fda-facts a:hover { color: var(--accent); }
@media (max-width: 520px) { .brief-fda-facts { grid-template-columns: 1fr; } .brief-fda-facts dd { border-top: 0; padding-top: 0; } }

/* Coverage signal (read.Signal): a 44 x 6 bar of coloured segments in a fixed order, then the total. Colours
   are categorical (validated for colour-vision deficiency on adjacent pairs); the order, the legend on /about
   and the text alternative carry the meaning in grayscale and print. */
:root {
  --sig-peer_reviewed: #2433D9;
  --sig-journal_news: #8FB4F2;
  --sig-preprint: #EB6834;
  --sig-regulator: #1BAF7A;
  --sig-press: #EDA100;
  --sig-company: #E87BA4;
  --sig-posts: #6250D6;
}
.brief-sig-peer_reviewed { fill: var(--sig-peer_reviewed); }
.brief-sig-journal_news { fill: var(--sig-journal_news); }
.brief-sig-preprint { fill: var(--sig-preprint); }
.brief-sig-regulator { fill: var(--sig-regulator); }
.brief-sig-press { fill: var(--sig-press); }
.brief-sig-company { fill: var(--sig-company); }
.brief-sig-posts { fill: var(--sig-posts); }
.brief-meta a.brief-signal { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--muted);
                             text-decoration: none; font: 400 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.brief-meta a.brief-signal:hover { color: var(--accent); text-decoration: none; }
.brief-signal-bar { display: block; border-radius: 1px; overflow: hidden; }
.brief-swatch { display: inline-block; vertical-align: -1px; margin-right: 6px; flex-shrink: 0; }
.brief-signal-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.brief-signal-head { font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.brief-signal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.brief-signal-list li { display: inline-flex; align-items: center; gap: 4px; }
.brief-signal-list b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.brief-signal-list a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.brief-prose .brief-signal-legend { list-style: none; padding: 0; margin: 0 0 14px; max-width: 72ch; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.brief-prose .brief-signal-legend li { display: inline-flex; align-items: center; margin: 0; }

/* Share (brief.web.share, DESIGN §4.27): a quiet "Share" at the right end of the meta line, a <details> disclosure.
   It sits with the coverage bar in .brief-meta-end (pushed right, never split by a wrap). The menu hangs from
   the meta line's right edge (.brief-meta is its containing block), so it never leaves the viewport. The summary's hit area grows to 44 px tall without changing the line. */
.brief-meta { position: relative; }
.brief-meta-end { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }
.brief-meta-end a.brief-signal { margin-left: 0; }
.brief-share-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
                   list-style: none; color: var(--muted); font: 400 11px/1 var(--mono); text-transform: uppercase;
                   letter-spacing: .04em; user-select: none; }
.brief-share-btn::-webkit-details-marker { display: none; }
.brief-share-btn::after { content: ""; position: absolute; inset: -16px -4px; }  /* 12px label + 32px = 44px tap */
.brief-share[open] > .brief-share-btn { color: var(--accent); }
@media (hover: hover) { .brief-share-btn:hover { color: var(--accent); } }
.brief-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brief-share-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; box-sizing: border-box;
                    width: 260px; max-width: 100%; display: flex; flex-direction: column; padding: 6px;
                    background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(10, 10, 20, .10); }
.brief-share-opt { display: flex; align-items: center; min-height: 44px; padding: 0 10px; box-sizing: border-box;
                   width: 100%; border: 0; background: none; font: 500 14px/1.2 var(--sans);
                   color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.brief-share-opt[hidden] { display: none; }
.brief-meta .brief-share-opt { color: var(--ink); }
.brief-share-opt:hover, .brief-meta a.brief-share-opt:hover { background: var(--chip); color: var(--accent); text-decoration: none; }
.brief-share-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.brief-share-url { margin: 6px 4px 2px; min-width: 0; padding: 8px; border: 1px solid var(--line); background: var(--chip);
                   font: 400 12px/1.3 var(--mono); color: var(--ink-2); }
.brief-share-status { min-height: 0; padding: 0 6px; font-size: 12px; color: var(--muted); }
.brief-share-status:not(:empty) { padding: 4px 6px 2px; }
@media print { .brief-share { display: none; } }

/* Posts (brief.social): the row's "Posts:" line uses .brief-more; the story page lists excerpts as quotes. */
.brief-posts-list { list-style: none; margin: 0; padding: 0; }
.brief-post { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.brief-post-author { color: var(--ink); font-weight: 500; }
.brief-post-handle { overflow-wrap: anywhere; }
.brief-post-text { margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); max-width: 70ch; }
.brief-post-text p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.brief-post-foot { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.brief-post-foot a { color: var(--accent); text-decoration: none; font-weight: 500; }
.brief-post-foot a:hover { text-decoration: underline; }
.brief-posts-note { border-top: 0; padding-top: 4px; margin-bottom: 14px; }

@media print {
  .brief-signal-bar, .brief-swatch, .brief-charm img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Headline links: ink, underline in cobalt on hover */
.brief-lead-title a, .brief-row-title a, .brief-story-title a, .brief-coverage-title a,
.brief-justin-row a, .brief-weekly-link, .brief-datasets a { color: var(--ink); text-decoration: none; }
.brief-lead-title a:hover, .brief-row-title a:hover, .brief-story-title a:hover, .brief-coverage-title a:hover,
.brief-justin-row a:hover, .brief-weekly-link:hover, .brief-datasets a:hover { color: var(--accent); text-decoration: underline; }

/* Lead story: cobalt border with a 3px left bar */
.brief-lead { border: 1px solid var(--accent); box-shadow: inset 3px 0 0 var(--accent); padding: 14px 16px 14px 19px;
              display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.brief-lead-title { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.brief-lead-summary { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.brief-lead .brief-more { line-height: 1.5; }

/* Story rows */
.brief-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.brief-rank { font: 400 12px/1.5 var(--mono); color: var(--muted); min-width: 20px; flex-shrink: 0; padding-top: 3px; }
.brief-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.brief-row-title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.brief-row-summary { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.brief-more { font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.brief-more b { font-weight: 600; color: var(--ink); }
.brief-more a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.brief-more a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.brief-data a { color: var(--accent); font-weight: 500; text-decoration: none; }
.brief-data a:hover { color: var(--accent); text-decoration: underline; }
.brief-more-link { align-self: flex-start; padding: 14px 0; border-top: 1px solid var(--line); width: 100%;
                   font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.brief-more-link:hover { text-decoration: underline; }
.brief-pager { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.brief-pager a { color: var(--accent); text-decoration: none; }
.brief-pager a:hover { text-decoration: underline; }

/* Right rail: shared label style at the mockup's 12px */
.brief-label { font-size: 12px; margin: 0; font-weight: 400; }
.brief-rail-box { border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.brief-rail-box .brief-label { padding-bottom: 2px; }
.brief-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.brief-legend li { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.brief-legend-link { padding-top: 4px; }

/* Subscribe box: black panel */
.brief-sub { background: var(--night); color: var(--on-night); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.brief-sub-title { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--on-night); }
.brief-sub p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--on-night-2); }
.brief-sub-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.brief-sub-label { font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--on-night-2); }
.brief-sub-row { display: flex; gap: 8px; }
.brief-sub-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--muted); border-radius: 0;
                       background: #fff; color: var(--ink); font-family: inherit; font-size: 15px; }
.brief-sub-row button { min-height: 44px; padding: 0 16px; border: 1px solid #fff; border-radius: 0; background: #fff;
                        color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.brief-sub-row button:hover { background: var(--chip); }
.brief-sub-opts { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; align-items: center; }
.brief-sub-editions { display: flex; flex-wrap: wrap; gap: 4px 20px; border: 0; margin: 0; padding: 0; min-width: 0; }
.brief-sub-editions label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.brief-sub-editions input { width: 16px; height: 16px; }
.brief-sub .brief-sub-opts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); text-decoration: underline;
                    text-underline-offset: 3px; text-decoration-color: currentColor; }
.brief-sub .brief-sub-opts a:hover { color: #fff; }
.brief-sub :focus-visible { outline-color: #fff; }
.brief-sub p.brief-sub-status { color: var(--on-night); font-weight: 500; }
.brief-sub p.brief-sub-status:empty { display: none; }
.brief-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.brief-sub-page { max-width: 460px; margin-bottom: 20px; }
.brief-sub-cat { display: flex; flex-direction: column; gap: 6px; }
.brief-sub-cat select { min-height: 44px; padding: 0 10px; border: 1px solid var(--muted); border-radius: 0; background: #fff;
  color: var(--ink); font: inherit; font-size: 14px; }
.brief-sub-cats { display: flex; flex-wrap: wrap; gap: 0 20px; border: 0; margin: 0; padding: 0; min-width: 0; font-size: 13px; }
.brief-sub-cats legend { padding: 0; margin-bottom: 4px; }
.brief-sub-cats label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.brief-sub-cats input { width: 16px; height: 16px; }
.brief-sub p.brief-sub-hint { flex-basis: 100%; font-size: 12px; }
.brief-subpage-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin: 0 0 20px; }
.brief-subpage-form fieldset { border: 1px solid var(--rule, #DEDEDA); margin: 0; padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 0 20px; }
.brief-subpage-form legend { font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.brief-subpage-form label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.brief-subpage-form button, .brief-subpage-actions button { align-self: flex-start; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink);
  border-radius: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.brief-subpage-form button.secondary, .brief-subpage-actions button.secondary { background: #fff; color: var(--ink); }
.brief-subpage-actions { margin: 0 0 20px; }
.brief-subpage-note { font-weight: 500; }

/* Just in */
.brief-justin { display: flex; flex-direction: column; }
.brief-justin .brief-label { padding-bottom: 8px; }
.brief-justin-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line);
                    font-size: 13px; line-height: 1.35; }
.brief-justin-time { font: 400 11px/1.35 var(--mono); color: var(--muted); width: 56px; flex-shrink: 0; }
.brief-justin-row a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.brief-justin-src { color: var(--muted); }

/* Weekly read and New in Datasets */
.brief-weekly { gap: 6px; }
.brief-weekly-link { font-size: 15px; line-height: 1.3; font-weight: 500; }
.brief-weekly-by { font-size: 12px; color: var(--muted); }
.brief-datasets { display: flex; flex-direction: column; gap: 6px; }
.brief-datasets .brief-label { padding-bottom: 2px; }
.brief-datasets a { font-size: 13px; line-height: 1.4; padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }

/* Evidence tier chips. Tiers must be told apart without colour: fill darkness runs from black (RCT)
   to outline-only (Funding), border style separates the outline chips, and the label is always shown. */
.tier { font: 500 10.5px/1.35 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
        padding: 2px 6px; display: inline-block; }
.tier-fixed { width: 104px; text-align: center; flex-shrink: 0; }
.tier-rct           { background: #0A0A0B; color: #FFFFFF; }
.tier-review        { background: #2E2E33; color: #FFFFFF; }
.tier-regulatory    { background: var(--accent); color: #FFFFFF; }
.tier-prospective   { background: #5C5C62; color: #FFFFFF; }
.tier-retrospective { background: #DEDEDA; color: #0A0A0B; }
.tier-preprint      { background: #FFFFFF; color: #0A0A0B; border: 1px dashed #0A0A0B; padding: 1px 5px; }
.tier-press_release { background: #F4F4F2; color: #2E2E33; }
.tier-report        { background: #FFFFFF; color: #2E2E33; border: 1px dotted #5C5C62; padding: 1px 5px; }
.tier-funding       { background: #FFFFFF; color: #2E2E33; border: 1px solid #5C5C62; padding: 1px 5px; }

/* Story page */
.brief-story-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.brief-story-title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; }
.brief-story-summary { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 70ch; }
.brief-story-source { margin: 0; font-size: 14px; font-weight: 500; }
.brief-story-source a { color: var(--accent); text-decoration: none; }
.brief-story-source a:hover { text-decoration: underline; }
.brief-story-tier { margin: 0; font-size: 13px; color: var(--ink-2); }
/* Citable facts on the story page (DESIGN §4.29) */
.brief-keyfacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px;
                  font-size: 13px; color: var(--ink-2); }
.brief-keyfacts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
                    text-underline-offset: 3px; }
.brief-keyfacts a:hover { color: var(--accent); }
.brief-keyfacts-url { overflow-wrap: anywhere; }
.brief-story-tier a, .brief-note a, .brief-prose a { color: var(--ink); text-decoration: underline;
                                                     text-decoration-color: var(--accent); text-underline-offset: 3px; }
.brief-story-tier a:hover, .brief-note a:hover, .brief-prose a:hover { color: var(--accent); }
.brief-coverage { list-style: none; margin: 0; padding: 0; }
.brief-coverage-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.brief-coverage-title { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.brief-note { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* "Study at a glance" on story pages and "At a glance" on topic pages (DESIGN §4.31): a quiet ruled box */
.brief-facts, .brief-glance { border: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column;
                              gap: 8px; max-width: 72ch; }
.brief-glance { margin: 0 0 18px; }
.brief-facts-head { margin: 0; font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em;
                    color: var(--muted); }
.brief-facts-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 6px 16px;
                    font-size: 14px; line-height: 1.45; }
.brief-facts-list dt { color: var(--muted); font-size: 13px; }
.brief-facts-list dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.brief-facts-quote { color: var(--muted); }
.brief-facts-foot { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.brief-facts-foot a, .brief-glance a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line);
                                       text-underline-offset: 3px; }
.brief-facts-foot a:hover, .brief-glance a:hover { color: var(--accent); }
.brief-glance p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .brief-facts-list { grid-template-columns: 1fr; gap: 0; }
  .brief-facts-list dd { margin-bottom: 6px; }
}

/* Archive index and lists */
.brief-month + .brief-month { padding-top: 24px; }
.brief-month-title { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.brief-count { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .05em; }
.brief-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.brief-days a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; margin-right: 24px;
                border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.brief-days a:hover .brief-day-name { color: var(--accent); text-decoration: underline; }
.brief-day-name { font-weight: 500; }
.brief-day-count { color: var(--muted); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.brief-weeklies { grid-template-columns: 1fr; }

/* Prose pages: about, sources, subscribe */
.brief-prose { font-size: 15px; line-height: 1.55; }
.brief-prose > p, .brief-prose li { max-width: 72ch; }
.brief-prose > p { margin: 0 0 14px; }
.brief-prose h2 { margin: 24px 0 8px; font-size: 22px; }
.brief-prose h2:first-child { margin-top: 0; }
.brief-prose ul { margin: 0 0 14px; padding-left: 20px; }
.brief-prose li { margin-bottom: 4px; }
.brief-prose .brief-month-title { font-size: 20px; }
.brief-about-disc { max-width: 72ch; margin: 0 0 8px; font-size: 14px; }
.brief-source-list { list-style: none; padding: 0; margin: 0 0 8px; columns: 2 260px; column-gap: 32px; }
.brief-source-list li { padding: 6px 0; border-top: 1px solid var(--line); break-inside: avoid; margin: 0; font-size: 14px; }
.brief-source-list a { text-decoration: none; }
.brief-table { border-collapse: collapse; width: 100%; max-width: 72ch; margin: 4px 0 14px; font-size: 14px; }
.brief-table th, .brief-table td { padding: 7px 10px 7px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.brief-table th { font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.brief-table .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.brief-weekly-note p { max-width: 72ch; }

/* Footer: a single black band with mono uppercase links */
.brief-foot { background: var(--night); color: var(--on-night-2); }
.brief-foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px;
                    justify-content: space-between; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.brief-foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.brief-foot a { color: var(--on-night-2); text-decoration: none; }
.brief-foot a:hover { color: var(--on-night); text-decoration: underline; }
.brief-foot a:focus-visible { outline-color: #fff; }

@media (max-width: 720px) { .brief-story-title { font-size: 24px; } }

/* API and MCP docs page (/api, DESIGN §4.32): code samples scroll inside their box on a phone */
.brief-prose h3 { margin: 18px 0 6px; font-size: 17px; }
.brief-prose code { font: 400 13px/1.45 var(--mono); overflow-wrap: anywhere; }
.brief-code { max-width: 72ch; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); overflow-x: auto; }
.brief-code code { white-space: pre; overflow-wrap: normal; }
/* Weekly roundup pages, /weekly/<iso-year>-W<week> and /weekly (DESIGN §4.33). */
.brief-roundup-intro > p:first-of-type { font-size: 17px; line-height: 1.5; color: var(--ink); }
.brief-roundup-intro .brief-note { margin-top: 4px; }
.brief-roundup-count { color: var(--muted); }
.brief-roundup-link { margin: 0 0 16px; }
.brief-weekly-by a { color: var(--muted); }
.brief-weekly-by a:hover { color: var(--accent); }
