/* WWTF design system for the newsletter pages (issues.html and issue-NN.html).
   Loaded after each page's own stylesheet; it swaps the tokens and the few faces the pages set
   directly. Source: tokens.json of the WWTF design system (Corporate Design Manual 2024). */
:root {
  --font: "Source Sans 3", "Source Sans Pro", Arial, Calibri, system-ui, sans-serif;
  --mono: "Source Sans 3", "Source Sans Pro", Arial, Calibri, system-ui, sans-serif;
  --bg: #ffffff;
  --surface: #f8f8f7;
  --fg: #181715;
  --muted: #4c4c4b;
  --meta: #4c4c4b;
  --border: #e4e4e3;
  --accent: #008fd3;
  --accent-strong: #005b94;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
body { font-family: var(--font); color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
::selection { background: #bfe2f2; color: #181715; }

/* one face: the serif lede and body copy join the grotesk */
.spotlight-body, .body-copy, .subscribe-strip-text, .hero-lede, blockquote, .pull-quote {
  font-family: var(--font); font-style: normal;
}
/* the former monospace micro-labels: sentence case, normal tracking, readable size */
.hero-label, .section-label, .sidebar-data-label, .sidebar-toc-title, .endnote-row .country,
.funding-table th, .card-pill, .hero-brand-pub, .sticky-brand-pub, .card-num, .card-meta,
.issue-nav-counter, .sticky-nav-issue, .sticky-nav-credit, .footer-copy, .cite, .radar-cite, .colophon, .amount-cell,
.hero-nav-brand, .sticky-nav-brand, .hero-brand-name, .sticky-brand-name {
  font-family: var(--font); text-transform: none; letter-spacing: 0;
}
.section-label, .sidebar-toc-title, .sidebar-data-label, .funding-table th { font-weight: 600; font-size: 14px; color: var(--fg); }
.hero-label { font-size: 15px; font-weight: 600; }
.hero-nav-brand, .sticky-nav-brand { font-weight: 700; font-size: 15px; }
.card-num { font-weight: 700; font-size: 16px; color: var(--accent); }
.card-meta, .footer-copy, .cite, .radar-cite, .colophon, .issue-nav-counter, .sticky-nav-issue, .sticky-nav-credit { font-size: 14px; }
.card-pill {
  font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 999px;
  background: #e6f4fb; color: #005b94; border: none;
}
/* headings in the ink, the section labels in WWTF Blau */
h1, h2, h3, h4 { color: var(--fg); font-weight: 700; }
.hero-title, .hero h1 { color: #ffffff; }
.hero-label { color: rgba(255, 255, 255, 0.85); }
.section-label { color: var(--accent); }
/* surfaces: a hairline or a tone step, no shadow or lift on things at rest */
.radar-card, .issue-card, .insight-box, .sidebar-toc, .sidebar-data-cta { border-radius: 6px; box-shadow: none; }
.issue-card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
/* radar-scan cards are not links: no pointer, no lift; the links are the ones in the text */
.radar-card, .insight-box { cursor: default; }
.radar-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
/* the source line used to stretch its link over the whole card (a::after with inset 0), which sat on top of
   the links in the text; now only the source line itself is the link */
.radar-cite a::after { content: none; }
.sticky-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #ffffff; }
.progress-bar, #prog { background: var(--accent); }
/* controls: 3 px radius, WWTF Blau primary, dark-blue hover */
.strip-btn, .subscribe-strip-btn, .nav-cta, .sticky-cta, .hero-nav-back, .sticky-nav-back, .theme-toggle, #btt { border-radius: 3px; }
.strip-btn-primary, .subscribe-strip-btn, .nav-cta, .sticky-cta { background: var(--accent); color: #ffffff; border-color: var(--accent); font-weight: 600; }
.strip-btn-primary:hover, .subscribe-strip-btn:hover, .nav-cta:hover, .sticky-cta:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #ffffff; }
#btt { background: var(--accent); color: #ffffff; box-shadow: 0 2px 8px rgba(24,23,21,0.08); }
#btt:hover { background: var(--accent-strong); }
/* footer: the dark field as on wwtf.at */
.site-footer { background: #181715; border-top: none; color: #9d9d9c; }
.site-footer a { color: #e7e7e6; }
.site-footer a:hover { color: #ffffff; }
.footer-copy { color: #9d9d9c; }

/* the spotlight lead: a display line in WWTF Blau, no coloured left bar (off-brand per CD manual) */
.spotlight-pullquote {
  border-left: none; padding-left: 0; margin-left: 0;
  color: var(--accent); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em;
}
.stray-head { color: var(--accent); }
/* issues list: one navigation, in the bar below the hero; the hero keeps only the brand */
.hero-nav .hero-nav-links, .hero-nav .nav-cta { display: none; }

/* phones: the issue hero becomes a WWTF Blau field (the photo is hidden there), white title on it */
@media (max-width: 760px) {
  .hero { background: var(--accent); }
  .hero-content { padding: 24px 20px 28px; }
  .hero-label { color: rgba(255, 255, 255, 0.85); }
  .hero-title { color: #ffffff; }
  .content-area { padding-top: 24px; }
}

/* researchers and institutions linked on first mention (autolink.py) */
a.ent { color: var(--accent); text-decoration: none; border-bottom: 1px solid #bfe2f2; }
a.ent:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); text-decoration: none; }

/* reading progress: a 3 px line along the bottom edge of the header, no easing (it lagged behind the scroll) */
.progress-bar { transition: none; }
.sticky-nav { position: sticky; }
.progress-bar.in-bar { position: absolute; top: auto; bottom: -1px; left: 0; height: 3px; z-index: 1; }

/* section labels are H2s; keep the label look */
h2.section-label { line-height: inherit; }
/* story links from the search on issues.html land below the sticky bar, the card outlined */
[id^="m-"] { scroll-margin-top: 96px; }
.radar-card:target, .radar-card:target:hover { border-color: var(--accent); box-shadow: 0 0 0 2px #bfe2f2; }
