/* ============================================================
   Article pages in the /start look (app/landing/start.html):
   newsprint ground, near-black ink, brass only as a small mark,
   Newsreader headings over Hanken Grotesk text, one hairline,
   one radius family (8 / 12 / 20). Loaded after style.css on
   article pages only (body.vd); the homepage, topic
   pages and About keep style.css alone.
   Every article tool stays: views, Listen, reader mode, Share.
   ============================================================ */

body.vd {
  --paper:        #e8e8e3;
  --paper-raised: #dcdcd6;
  --ink:          #181715;
  --ink-soft:     #2b2a27;
  --rule:         rgb(24 23 21 / 0.14);
  --rule-strong:  rgb(24 23 21 / 0.32);
  --muted:        #5c5b56;
  --accent:       #181715;          /* links, focus, active states: ink, as on /start */
  --accent-deep:  #181715;
  --accent-tint:  rgb(191 178 26 / 0.22);   /* brass, only as a tint */
  --brass:        #bfb21a;
  --brand-red:    #b3261e;   /* ".EV": 5:1 on the newsprint ground */
  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --measure:      66ch;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--ink);
}
[data-theme="dark"] body.vd {
  --paper:        #181715;
  --paper-raised: #242321;
  --ink:          #e8e8e3;
  --ink-soft:     #d6d5cf;
  --rule:         rgb(232 232 227 / 0.14);
  --rule-strong:  rgb(232 232 227 / 0.34);
  --muted:        #a3a29c;
  --accent:       #e8e8e3;
  --accent-deep:  #e8e8e3;
  --accent-tint:  rgb(191 178 26 / 0.24);
}

.vd a:focus-visible, .vd button:focus-visible,
.vd input:focus-visible, .vd select:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

/* ---------- Masthead: one opaque bar with a hairline, as on /start ---------- */
.vd .masthead {
  max-width: none;
  padding: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
}
.vd .masthead-inner {
  width: min(100% - 2 * clamp(24px, 5vw, 80px), 1280px);
  margin: 0 auto;
  min-height: 72px;
  align-items: center;
  flex-wrap: nowrap;
}
.vd .site-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; gap: 0.6rem; }
.vd .logo-mark { width: 26px; height: 26px; }
.vd .site-name-suffix { font: inherit; font-size: 1em; letter-spacing: inherit; margin-left: 0; color: var(--brand-red); }
.vd .top-nav { display: flex; align-items: center; gap: 0.25rem; }
.vd .top-nav a,
.vd #search-toggle,
.vd #theme-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0 0.75rem;
  font: 500 15px/1 var(--font-body);
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  background: none; border: 0; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.vd #theme-toggle { min-width: 44px; justify-content: center; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .vd .top-nav a:hover,
  .vd #search-toggle:hover,
  .vd #theme-toggle:hover { background: var(--paper-raised); color: var(--ink); }
}
.vd #search-toggle[aria-expanded="true"] { background: var(--paper-raised); color: var(--ink); }

.vd .search-panel {
  width: min(100% - 2 * clamp(24px, 5vw, 80px), 1280px);
  margin: 0 auto; padding: 0 0 1rem;
}
.vd .search-panel input {
  font: 400 16px/1.4 var(--font-body);
  min-height: 48px; padding: 0 1rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
}
.vd .search-result-title { font-family: var(--font-display); font-weight: 400; color: var(--ink); }

/* ---------- Topic row: plain words, sentence case ---------- */
.vd .topic-nav {
  max-width: none;
  width: min(100% - 2 * clamp(24px, 5vw, 80px), 1280px);
  padding: 0;
  gap: 0.25rem 1.5rem;
  border-bottom: 0;
  margin: 0 auto;
  min-height: 52px; align-items: center;
}
.vd .topic-nav a {
  font: 500 14px/1.4 var(--font-body);
  text-transform: none; letter-spacing: 0;
  color: var(--muted);
  padding: 0.5rem 0; border-bottom: 2px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .vd .topic-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
}
.vd .topic-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- The article column ---------- */
.vd main { max-width: 760px; padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 40px) 64px; }
.vd article { background: none; }
.vd .article-header { max-width: none; }

.vd .article-eyebrow,
.vd .article-eyebrow-colored,
.vd .deep-dive-eyebrow {
  font: 500 13px/1.4 var(--font-body);
  text-transform: none; letter-spacing: 0.01em;
  color: var(--muted);
  background: none; border: 0; padding: 0;
  margin: 0 1rem 1rem 0;
  border-radius: 0;
}
.vd a.article-eyebrow {
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--rule-strong);
  min-height: 24px;
}
.vd .article-eyebrow-colored::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem;
  border-radius: 50%; background: var(--brass); vertical-align: 0.05em;
}
@media (hover: hover) and (pointer: fine) {
  .vd a.article-eyebrow:hover { text-decoration-color: currentColor; }
}

.vd .article-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 2.6vw + 22px, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.vd .article-meta { font: 400 15px/1.5 var(--font-body); color: var(--muted); margin-bottom: 1rem; }
.vd .byline-name { font-weight: 500; color: var(--ink); }

/* Views, Listen, reader mode, Share: one control size and look */
.vd .article-tools { gap: 0.5rem; margin-bottom: 2rem; font: 400 14px/1 var(--font-body); color: var(--muted); }
.vd .view-count { min-height: 40px; padding-right: 0.5rem; }
.vd .tool-btn {
  min-height: 40px; padding: 0 0.9rem; gap: 0.45rem;
  font: 500 14px/1.4 var(--font-body);
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.vd .tool-btn:active { transform: translateY(1px); }
.vd .tool-btn.is-active,
.vd .tool-btn[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .vd .tool-btn:not(:disabled):hover { color: var(--ink); background: var(--paper-raised); border-color: var(--rule-strong); }
  .vd .tool-btn.is-active:hover,
  .vd .tool-btn[aria-pressed="true"]:hover { color: var(--paper); background: var(--ink); }
}
.vd .tool-btn-small { min-width: 40px; padding: 0; justify-content: center; }
.vd .share-count { background: var(--accent-tint); color: var(--ink); font: 500 12px/1.6 var(--font-body); }
.vd .share-menu {
  min-width: 12rem; padding: 0.35rem;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  box-shadow: none;
}
.vd .share-menu a, .vd .share-menu button {
  font: 400 15px/1.3 var(--font-body); color: var(--ink);
  min-height: 40px; display: flex; align-items: center; border-radius: var(--r-sm);
}
.vd .share-menu a:hover, .vd .share-menu button:hover,
.vd .share-menu a:focus-visible, .vd .share-menu button:focus-visible { background: var(--paper-raised); color: var(--ink); }

.vd .listen-bar {
  max-width: none; margin: -1rem 0 2rem; padding: 0.6rem 0.75rem;
  background: var(--paper-raised); border: 0; border-radius: var(--r-md);
  font: 400 14px/1.3 var(--font-body); color: var(--muted);
}
.vd .listen-speed select {
  min-height: 36px; font: 400 14px/1 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
}
.vd .is-reading { background: var(--accent-tint); box-shadow: 0 0 0 0.35rem var(--accent-tint); }

/* ---------- Pictures ---------- */
.vd .article-hero { border-radius: var(--r-lg); background: var(--paper-raised); margin: 0 0 2.5rem; }
.vd .article-figure {
  max-width: none; aspect-ratio: 16 / 7; border-radius: var(--r-lg);
  background: var(--paper-raised); color: var(--ink); margin: 0 0 2.5rem;
}
.vd .article-figure svg { width: auto; height: 46%; }

/* ---------- Key facts: a flat surface panel, no side bar ---------- */
.vd .key-facts {
  max-width: none; margin: 0 0 2.5rem; padding: 1.5rem 1.75rem 1.25rem;
  background: var(--paper-raised); border: 0; border-radius: var(--r-md);
}
.vd .key-facts-heading {
  font: 500 13px/1.4 var(--font-body); text-transform: none; letter-spacing: 0.01em;
  color: var(--muted); margin: 0 0 0.75rem;
}
.vd .key-facts ul { padding-left: 1.1rem; }
.vd .key-facts li { font: 400 17px/1.5 var(--font-body); color: var(--ink); margin-bottom: 0.5rem; }
.vd .key-facts li::marker { color: var(--ink); }

/* ---------- The text ---------- */
.vd .article-body { max-width: none; font: 400 18px/1.7 var(--font-body); color: var(--ink); }
.vd .article-body p { margin: 0 0 1.25em; }
.vd .article-body > p:first-of-type::first-letter { all: unset; }
.vd .article-body h2 {
  font: 400 clamp(26px, 1vw + 20px, 34px)/1.15 var(--font-display);
  letter-spacing: -0.015em; color: var(--ink);
  margin: 2.2em 0 0.6em;
}
.vd .article-body h3 {
  font: 500 20px/1.3 var(--font-body); color: var(--ink); margin: 1.8em 0 0.5em;
}
.vd .article-body a {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--rule-strong);
}
@media (hover: hover) and (pointer: fine) {
  .vd .article-body a:hover { text-decoration-color: currentColor; }
}
.vd .article-body strong { font-weight: 600; color: var(--ink); }
.vd .article-body blockquote {
  margin: 1.8em 0; padding: 0;
  font: 400 clamp(22px, 0.8vw + 18px, 28px)/1.3 var(--font-display);
  letter-spacing: -0.01em; color: var(--ink); border: 0;
}
.vd .article-body ul, .vd .article-body ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.vd .article-body li { margin-bottom: 0.4em; }
.vd .article-body img {
  margin: 2em 0; border: 0; border-radius: var(--r-md);
  background: #fff;
}

/* Tables: ruled rows, no zebra, figures in tabular numerals */
.vd .article-body table { margin: 2em 0; font: 400 15px/1.4 var(--font-body); font-variant-numeric: tabular-nums; }
.vd .article-body th, .vd .article-body td { padding: 0.7em 1em; border-bottom: 1px solid var(--rule); }
.vd .article-body th {
  font-weight: 500; color: var(--muted); background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}
.vd .article-body tbody tr:nth-child(even) td,
.vd .article-body td:first-child,
.vd .article-body tbody tr:nth-child(even) td:first-child { background: var(--paper); }
.vd .article-body td:first-child { font-weight: 500; color: var(--ink); }
.vd .article-body th:first-child,
.vd .article-body td:first-child { box-shadow: inset -1px 0 0 var(--rule); padding-left: 0; }

/* Footnotes and the source list */
.vd .article-body-footnoted sup a.footnote-ref { color: var(--muted); font-weight: 500; }
.vd .article-body-footnoted .footnote { margin-top: 3rem; font: 400 14px/1.55 var(--font-body); color: var(--muted); }
.vd .article-body-footnoted .footnote hr { border-top-color: var(--rule); }
.vd .article-body-footnoted .footnote::before {
  content: "Sources"; font: 500 13px/1.4 var(--font-body);
  text-transform: none; letter-spacing: 0.01em; color: var(--ink);
}
.vd .article-body-footnoted .footnote a { color: var(--muted); text-decoration-color: var(--rule-strong); }

.vd .provenance { margin: 3rem 0 0; padding: 1.5rem 0 0; border-bottom: 0; gap: 0.5rem; }
.vd .provenance-label { font: 500 13px/1.4 var(--font-body); text-transform: none; letter-spacing: 0.01em; color: var(--ink); }
.vd .provenance-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0.35rem 0.85rem;
  font: 400 14px/1.45 var(--font-body); color: var(--ink);
  background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
}
@media (hover: hover) and (pointer: fine) {
  .vd .provenance-chip:hover { background: var(--paper-raised); border-color: var(--rule-strong); color: var(--ink); }
}

/* ---------- More stories: ruled rows with the headline in the display face ---------- */
.vd .related { margin: 4rem 0 0; padding-top: 0; border-top: 0; }
.vd .related-heading {
  font: 400 clamp(26px, 1vw + 20px, 34px)/1.15 var(--font-display);
  text-transform: none; letter-spacing: -0.015em; color: var(--ink);
  margin: 0 0 1rem;
}
.vd .related li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.vd .related a {
  font: 400 21px/1.3 var(--font-display); color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .vd .related a:hover { color: var(--ink); text-decoration-color: currentColor; }
}
.vd .related time { font: 400 14px/1.4 var(--font-body); color: var(--muted); margin-top: 0.35rem; }

.vd .disclaimer { max-width: none; margin-top: 3rem; padding-top: 1.5rem; font: 400 14px/1.6 var(--font-body); color: var(--muted); }

.vd .site-footer { font: 400 14px/1.6 var(--font-body); color: var(--muted); border-top: 1px solid var(--rule); padding: 2.5rem 1.5rem; }
.vd .site-footer a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .vd .masthead-inner { min-height: 56px; }
  .vd .site-title { font-size: 1.15rem; }
  .vd .top-nav a, .vd #search-toggle { padding: 0 0.5rem; font-size: 14px; }
  .vd .topic-nav { min-height: 48px; }
  .vd .article-body { font-size: 17px; }
  .vd .article-hero, .vd .article-figure { border-radius: var(--r-md); }
  .vd .key-facts { padding: 1.25rem; }
  .vd .related a { font-size: 19px; }
}
@media (max-width: 560px) {
  /* one row: the logo (it goes home), Latest, About, search and theme as icons */
  .vd .site-title { white-space: nowrap; }
  .vd .top-nav { gap: 0; }
  .vd .top-nav a[href="./"] { display: none; }
  .vd #search-toggle { font-size: 0; gap: 0; min-width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 380px) {
  .vd .top-nav a[href="about"] { display: none; }
}

/* ---------- Reader mode keeps the same faces ---------- */
.reader-mode .vd .article-body { font-family: var(--font-display); font-size: calc(20px * var(--reader-scale, 1.12)); line-height: 1.7; }
.reader-mode .vd .article-title { font-size: calc(44px * var(--reader-scale, 1.12)); }

@media (prefers-reduced-motion: reduce) {
  .vd .tool-btn, .vd .top-nav a, .vd .related a { transition: none; }
  .vd .tool-btn:active { transform: none; }
}

/* ============================================================
   The feed (/latest) and topic pages: the lead story large,
   then photo tiles three across, as on the homepage.
   ============================================================ */
.vd-feed main { max-width: none; width: min(100% - 2 * clamp(24px, 5vw, 80px), 1280px); padding: clamp(40px, 6vw, 80px) 0 64px; }
.vd .feed-head { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 56px); }
.vd .page-heading {
  font: 400 clamp(40px, 2.8vw + 24px, 64px)/1.04 var(--font-display);
  letter-spacing: -0.025em; color: var(--ink); margin: 0;
}
.vd .home-intro { font: 400 20px/1.5 var(--font-body); color: var(--muted); margin: 1rem 0 0; max-width: 56ch; }

.vd .feed-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 24px;
}
.vd .feed-card { display: grid; align-content: start; gap: 16px; color: var(--ink); text-decoration: none; }
.vd .feed-card__media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--paper-raised);
}
.vd .feed-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.vd .feed-card__icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); }
.vd .feed-card__icon svg { width: auto; height: 42%; }
.vd .feed-card__body { display: grid; gap: 10px; }
.vd .feed-card__label { font: 400 14px/1.4 var(--font-body); color: var(--muted); }
.vd .feed-card__topic { font-weight: 500; color: var(--ink); }
.vd .feed-card__title {
  font: 400 22px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--ink); margin: 0;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color 160ms var(--ease);
}
.vd .feed-card__dek { font: 400 18px/1.55 var(--font-body); color: var(--muted); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) {
  .vd .feed-card { transition: transform 200ms var(--ease); }
  .vd .feed-card:hover { transform: translateY(-2px); }
  .vd .feed-card:hover .feed-card__media img { transform: scale(1.03); }
  .vd .feed-card:hover .feed-card__title { text-decoration-color: currentColor; }
}

/* The lead story: picture left on seven columns, its words beside it */
.vd .feed-card--lead {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 48px; align-items: start;
  padding-bottom: 56px; border-bottom: 1px solid var(--rule);
}
.vd .feed-card--lead .feed-card__body { gap: 16px; padding-top: 8px; }
.vd .feed-card--lead .feed-card__title { font-size: clamp(30px, 1.6vw + 20px, 44px); line-height: 1.1; letter-spacing: -0.02em; }

.vd-feed .disclaimer { max-width: 760px; margin-top: 72px; }
.vd .empty-state { font: 400 18px/1.5 var(--font-body); color: var(--muted); }

@media (max-width: 1023px) {
  .vd .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .vd .feed-card--lead { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .vd .feed-grid { grid-template-columns: 1fr; gap: 40px; }
  .vd .feed-card--lead { padding-bottom: 40px; }
  .vd .feed-card__media { border-radius: var(--r-md); }
  .vd .feed-card__title { font-size: 21px; }
  .vd .home-intro { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd .feed-card, .vd .feed-card__media img, .vd .feed-card__title { transition: none; }
  .vd .feed-card:hover { transform: none; }
  .vd .feed-card:hover .feed-card__media img { transform: none; }
}

/* The header photo's credit (CC BY / CC BY-SA need one), one quiet line under it */
.vd .article-hero:has(+ .image-credit) { margin-bottom: 0.6rem; }
.vd .image-credit { margin: 0 0 2.5rem; font: 400 13px/1.5 var(--font-body); color: var(--muted); }
.vd .image-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
.reader-mode .vd .image-credit { display: none; }

/* Google News: follow (under the tools) and the preferred-source card (after the text).
   Shown only with GOOGLE_NEWS_BUTTONS on (app/google_news.py). */
.vd .gn-follow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 40px; margin: -1rem 0 2rem; padding: 0 0.9rem;
  font: 500 14px/1 var(--font-body); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  transition: background-color 160ms var(--ease);
}
.vd .gn-follow img { width: 20px; height: auto; }
.vd .gn-prefer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  margin: 3rem 0 0; padding: 1.25rem 1.5rem;
  background: var(--paper-raised); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
  transition: transform 200ms var(--ease);
}
.vd .gn-prefer img { width: 28px; height: auto; }
.vd .gn-prefer__text { display: grid; gap: 0.25rem; }
.vd .gn-prefer__title { font: 400 21px/1.25 var(--font-display); letter-spacing: -0.01em; }
.vd .gn-prefer__line { font: 400 15px/1.45 var(--font-body); color: var(--muted); }
.vd .gn-prefer__add {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font: 400 24px/1 var(--font-body); color: var(--paper); background: var(--ink);
}
[data-theme="dark"] .vd .gn-follow img, [data-theme="dark"] .vd .gn-prefer img { filter: brightness(0) invert(0.92); }
@media (hover: hover) and (pointer: fine) {
  .vd .gn-follow:hover { background: var(--paper-raised); }
  .vd .gn-prefer:hover { transform: translateY(-2px); }
}
@media (max-width: 560px) {
  .vd .gn-prefer { grid-template-columns: auto 1fr; padding: 1.1rem 1.25rem; }
  .vd .gn-prefer__add { display: none; }
}
.reader-mode .vd .gn-follow, .reader-mode .vd .gn-prefer { display: none; }
@media (prefers-reduced-motion: reduce) { .vd .gn-prefer { transition: none; } .vd .gn-prefer:hover { transform: none; } }
