/* Ground News CSS spec v2, 13.11.2026: §2 tokens, §5 mobile home,
   §7 article. Adaptations are documented in prototype/README.md. */

/* Onest (SIL OFL 1.1, fonts/onest/OFL.txt) is served locally so the CSP can
   stay at font-src 'self'. Variable wght axis 100-900; subsets as published
   by the font's upstream distribution. */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-math.woff2') format('woff2');
  unicode-range: U+0302, U+0307, U+0312, U+0326-0327, U+2117, U+2190, U+2192, U+2196-2199, U+21A9, U+21B6-21B7, U+21BA-21BB, U+2248, U+2260, U+2264-2265, U+27F5-27F6;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-symbols.woff2') format('woff2');
  unicode-range: U+2153-215E, U+2713;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gn-bg: #262626;
  --gn-surface: #393938;
  --gn-text: #eeefe9;
  --gn-text-on-light: #262626;
  --gn-divider: #a6a6a1;
  --gn-divider-soft: rgb(255 255 255 / .10);
  --gn-accent: #d1bd91;
  --gn-tertiary: #dadbd6;
  --gn-inactive: #6a7078;
  --gn-gray-200: #8f8e94;
  --gn-light-bg: #eeefe9;
  --gn-light-text: #262626;
  --gn-light-card: #dadbd6;
  --gn-light-chip: #e6e8de;
  --gn-font: 'Onest', system-ui, sans-serif;
  --gn-w-normal: 400;
  --gn-w-semibold: 600;
  --gn-w-bold: 600;
  --gn-w-extrabold: 800;
  --fs-12: 12px; --fs-14: 14px; --fs-15: 15px; --fs-16: 16px;
  --fs-18: 18px; --fs-20: 20px; --fs-22: 22px; --fs-26: 26px;
  --fs-32: 32px; --fs-42: 42px;
  --lh-6: 15px; --lh-10: 25px; --lh-11: 27.5px; --lh-14: 35px; --lh-tight: 1.25;
  --page-x: 1rem;
  --gap-s: 8px; --gap-m: .6rem; --gap-l: 1rem; --gap-xl: 2rem;
  --r-btn: 4px; --r-card: 8px; --r-row: 6px; --r-pill: 9999px;
  --bg: var(--gn-light-bg); --text: var(--gn-light-text);
  --surface: var(--gn-light-card); --muted: #555550;
  --soft: rgb(38 38 38 / .16); --accent: #76613a;
  --nav-height: 78.8px;
  color-scheme: light;
}
html.dark {
  --bg: var(--gn-bg); --text: var(--gn-text); --surface: var(--gn-surface);
  --muted: var(--gn-tertiary); --soft: var(--gn-divider-soft); --accent: var(--gn-accent);
  color-scheme: dark;
}
/* HTML/CSS-only theme control. Each newly opened document starts dark. */
html.dark[data-theme="light"], html.dark:has(#light-theme:checked) {
  --bg: var(--gn-light-bg); --text: var(--gn-light-text);
  --surface: var(--gn-light-card); --muted: #555550;
  --soft: rgb(38 38 38 / .16); --accent: #76613a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 116px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--gn-font); letter-spacing: normal; overflow-wrap: anywhere; }
body { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; height: auto; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-btn); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; z-index: 1200; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 8px; }
.shell { max-width: 1200px; margin-inline: auto; padding-inline: var(--page-x); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.header-rule { border-bottom: 1px solid var(--gn-divider); }
.header-row { min-height: 51.5px; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; flex: 0 0 44px; }
.menu summary { cursor: pointer; list-style: none; width: 44px; height: 44px; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: 48px; left: 0; width: min(280px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--gn-divider); border-radius: var(--r-card); background: var(--bg); box-shadow: 0 12px 24px rgb(0 0 0 / .18); }
.menu-panel a { display: block; padding: 12px; border-radius: var(--r-btn); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 18px; font-weight: 800; line-height: 1; white-space: nowrap; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-mark { display: grid; gap: 3px; width: 17px; }
.brand-mark i { height: 3px; background: var(--accent); }
.brand-mark i:nth-child(2) { width: 11px; }
.brand-mark i:nth-child(3) { width: 14px; }
.header-descriptor { display: none; }
.theme-control { margin-left: auto; display: flex; align-items: center; justify-content: center; position: relative; width: 44px; height: 44px; cursor: pointer; border-radius: var(--r-btn); }
.theme-control input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.theme-control:focus-within { outline: 2px solid var(--accent); outline-offset: -3px; }
.theme-control .moon { display: none; }
.theme-control:has(input:checked) .sun { display: none; }
.theme-control:has(input:checked) .moon { display: block; }
.topics-strip { border-bottom: 1px solid var(--gn-divider); }
.topics-row { display: flex; gap: 8px; align-items: center; min-height: 43.1px; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.topics-row::-webkit-scrollbar { display: none; }
.topics-row > svg { width: 18px; height: 18px; color: var(--accent); }
.topic-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 26.1px; padding: 4px 8px; border-radius: var(--r-pill); background: var(--surface); font-size: 12px; font-weight: 600; line-height: 18px; }
.topics-strip .topics-row { flex-wrap: nowrap; }
.topics-strip .topic-chip { padding: 8px 14px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.topics-strip .topic-chip:hover, .topics-strip .topic-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.home-main { padding-block: 17.6px 32px; }
.section-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-topline h1 { font-size: 16px; font-weight: 600; line-height: 17.5px; }
time, .meta { font-size: 12px; line-height: 17.5px; font-weight: 400; }
.section-topline time { white-space: nowrap; color: var(--muted); }
.news-grid { display: grid; gap: 32px; }
.lead-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; aspect-ratio: 3 / 2; min-height: min-content; padding: 16px; border: 1px solid var(--surface); border-radius: 8px; background: var(--surface); }
.lead-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; line-height: 15px; }
.lead-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lead-summary { font-size: 15px; line-height: 18.75px; color: var(--muted); margin-top: 12px; max-width: 34ch; }
.lead-card h2 { font-size: 22px; font-weight: 600; line-height: 25px; margin-top: 8px; }
.lead-card .meta { margin-top: 11.2px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.lead-card .meta svg { width: 18px; height: 18px; }
.lead-note { margin-top: 12px; font-size: 14px; line-height: 21px; color: var(--muted); }
.story-list { display: flex; flex-direction: column; gap: 32px; }
.story-card { display: flex; flex-direction: column; gap: 8px; }
.kicker { font-size: 12px; line-height: 15px; display: flex; flex-wrap: wrap; gap: 6.4px; color: var(--muted); }
.story-card h2 { font-size: 22px; line-height: 25px; font-weight: 800; }
.story-card .meta { color: var(--muted); line-height: 15px; }
.section-divider { border: 0; border-top: 1px solid var(--soft); margin: 32px 0; }
.section-heading { font-size: 32px; line-height: 35px; font-weight: 800; }
.section-intro { color: var(--muted); font-size: 15px; line-height: 22.5px; margin-top: 12px; max-width: 64ch; }
.context-grid { display: grid; gap: 16px; margin-top: 24px; }
.context-card { padding: 16px; border: 1px solid var(--soft); border-radius: 8px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.context-number { color: var(--accent); font-size: 18px; font-weight: 600; }
.context-card h3 { font-size: 18px; line-height: 22.5px; font-weight: 800; }
.context-card p { color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 8px; }
.context-card .read-link { margin-top: 12px; }
.read-link { display: inline-block; font-size: 14px; line-height: 21px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.topics-section { margin-top: 32px; border-top: 1px solid var(--soft); padding-top: 32px; }
.topics-section h2 { font-size: 26px; line-height: 35px; font-weight: 600; }
.topic-links { list-style: none; margin: 16px 0 0; padding: 0; }
.topic-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--soft); font-size: 16px; }
.topic-links svg { width: 18px; height: 18px; color: var(--muted); }
.site-footer { padding-block: 24px 32px; border-top: 1px solid var(--soft); }
.footer-grid { display: grid; gap: 24px; align-items: start; }
.footer-column { display: grid; gap: 8px; justify-items: start; }
.footer-column h2 { font-size: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--soft); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; min-width: 0; }
.footer-links a, .footer-column a { text-decoration: underline; text-underline-offset: 4px; }
.information-main { padding-block: 32px; }
.information-main h1 { font-size: 26px; line-height: 1.25; }
.information-main p { margin-top: 16px; }
.footer-note { font-size: 12px; line-height: 18px; color: var(--muted); max-width: 52ch; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110; background: var(--bg); border-top: 1px solid var(--soft); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-nav-inner { min-height: 77.8px; max-width: 602px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 9.6px; padding: 14.4px 30.4px; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; line-height: 18px; min-height: 48px; min-width: 48px; color: var(--muted); }
.bottom-nav svg { color: var(--gn-inactive); }
.bottom-nav [aria-current=page], .bottom-nav [aria-current=page] svg { color: var(--text); }
.article-main { padding-block: 32px; }
.reading-layout { max-width: 736px; margin-inline: auto; }
.back-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; margin-top: -12px; margin-bottom: 16px; }
.back-link svg { width: 18px; height: 18px; }
.article-header { display: flex; flex-direction: column; gap: 16px; }
.article-header h1 { font-size: 26px; font-weight: 800; line-height: 1.1; }
.article-header .meta { color: var(--muted); }
.article-intro { font-size: 18px; line-height: 25px; font-weight: 600; }
.article-body { margin-top: 24px; }
.article-body p { font-size: 18px; font-weight: 400; line-height: 1.5; margin-top: 20.8px; }
.article-body h2 { font-size: 22px; line-height: 27.5px; font-weight: 600; margin-top: 32px; }
.clarification { margin-top: 24px; padding: 16px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 4px 4px 0; }
.clarification h2 { font-size: 14px; font-weight: 600; line-height: 21px; }
.clarification p { margin-top: 8px; font-size: 15px; line-height: 22.5px; }
.source-note { padding-top: 20.8px; margin-top: 32px; border-top: 1px solid var(--soft); font-size: 12px; line-height: 18px; color: var(--muted); }
.related { border-top: 1px solid var(--soft); margin-top: 32px; padding-top: 32px; }
.related-card { display: block; margin-top: 24px; border-radius: 6px; padding: 16px; border: 1px solid var(--soft); }
.related-card h3 { font-size: 22px; line-height: 25px; font-weight: 800; }
.related-card p { font-size: 15px; line-height: 22.5px; color: var(--muted); margin: 12px 0; }
.article-end { margin-top: 24px; }
@media (hover: hover) {
  .story-card h2 a:hover, .lead-card:hover h2, .related-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
  .menu-panel a:hover, .theme-control:hover { background: var(--surface); }
  .topic-chip:hover { outline: 1px solid var(--gn-divider); }
  .read-link:hover, .back-link:hover, .topic-links a:hover { color: var(--accent); }
}
/* Page-level breakpoints are specified; desktop geometry below is an adaptation. */
@media (min-width: 602px) {
  :root { --page-x: 24px; }
  .header-descriptor { display: block; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--soft); color: var(--muted); font-size: 12px; }
  .home-main { padding-top: 24px; }
  .news-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; }
  .lead-card { aspect-ratio: auto; min-height: 300px; }
  .story-list { justify-content: space-between; }
  .context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-header h1 { font-size: 32px; }
}
@media (min-width: 1200px) {
  :root { --page-x: 32px; }
  .header-row { min-height: 67.5px; }
  .brand { font-size: 22px; }
  .home-main { padding-block: 32px 48px; }
  .news-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
  .lead-card { aspect-ratio: 3/2; min-height: 0; padding: 24px; }
  .lead-card h2 { font-size: 32px; line-height: 35px; }
  .lead-kicker { font-size: 14px; }
  .story-list { justify-content: center; gap: 40px; }
  .story-card + .story-card { border-top: 1px solid var(--soft); padding-top: 32px; }
  .article-header h1 { font-size: 42px; }
  .article-main { padding-block: 40px 48px; }
  .bottom-nav { position: static; padding: 0; }
  body { padding-bottom: 0; }
  .bottom-nav-inner { min-height: 78.8px; }
}
@media print {
  .site-header, .bottom-nav, .site-footer, .related, .back-link, .article-end { display: none; }
  html.dark { --bg: white; --text: black; --muted: #444; --surface: #eee; --soft: #bbb; --accent: #555; }
  body { padding: 0; }
}

/* Article tools, photo variants and shared search; preserves v2 mobile tokens. */
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
.header-search { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-left: auto; }
.theme-control { margin-left: 0; flex-shrink: 0; }
.topic-chip[aria-current="true"] { background: var(--accent); color: var(--bg); }
.kicker a { text-decoration: underline; text-underline-offset: 3px; }
.article-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.article-topline .kicker { min-width: 0; }
.article-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: transparent; border: 0; border-radius: var(--r-card); padding: 8px; color: var(--text); }
.icon-button svg { width: 22px; height: 22px; stroke-width: 2; }
.article-actions .icon-button svg { position: relative; }
.article-actions .icon-button:first-child svg { inset-inline-start: 8px; }
.article-actions .icon-button:last-child svg { inset-inline-end: 8px; }
.icon-button[aria-pressed="true"] { color: var(--accent); }
.icon-button[aria-pressed="true"] svg { fill: currentColor; }
.icon-button:hover svg { opacity: .75; }
.action-status { position: fixed; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 120; width: max-content; max-width: calc(100% - 32px); font-size: 14px; line-height: 21px; background: var(--text); color: var(--bg); border-radius: 6px; }
.action-status:not(:empty) { padding: 12px 16px; box-shadow: 0 4px 24px rgb(0 0 0 / .2); }
.share-panel { padding: 16px; background: var(--surface); border: 1px solid var(--soft); border-radius: var(--r-card); }
.share-panel label { font-weight: 600; font-size: 16px; }
.share-panel input { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--gn-divider); border-radius: 4px; color: var(--text); background: var(--bg); font-size: 16px; }
.share-panel p { font-size: 14px; line-height: 21px; margin-top: 8px; }
.share-panel-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-panel button, .search-form button { min-height: 44px; padding: 8px 12px; border-radius: 4px; border: 1px solid var(--text); background: var(--text); color: var(--bg); font-size: 16px; font-weight: 600; }
.share-panel [data-action="close-share"] { background: transparent; color: var(--text); }
.article-photo { margin: 24px 0 0; }
.article-photo-frame { position: relative; }
.article-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); }
.article-photo-frame .image-label { position: absolute; bottom: 8px; left: 8px; }
.article-photo figcaption { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.lead-card-photo { overflow: hidden; padding: 0; gap: 16px; }
.lead-card-photo .lead-image-frame { position: relative; }
.lead-card-photo .lead-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lead-card-photo > div:not(.lead-image-frame) { padding-inline: 16px; min-width: 0; }
.lead-card-photo > .meta { padding: 0 16px 16px; }
.lead-card-photo h2, .lead-card-photo .lead-summary { overflow-wrap: anywhere; }
.lead-card-photo + .story-list { justify-content: space-between; }
@media (min-width: 1200px) {
  .lead-card-photo > div:not(.lead-image-frame) { padding-inline: 24px; }
  .lead-card-photo > .meta { padding: 0 24px 24px; }
}
.lead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lead-top .kicker { position: relative; z-index: 2; }
.image-label { flex-shrink: 0; font-size: 10px; line-height: 15px; padding: 3px 5px; background: rgb(38 38 38 / .85); border-radius: 4px; }
.article-photo .image-label, .lead-card-photo .image-label { color: #fff; }
.lead-card-photo .image-label { position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px); overflow-wrap: anywhere; }
.lead-copy h2 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.lead-copy h2 a:focus-visible::after { outline: 2px solid var(--gn-accent); outline-offset: -4px; border-radius: 8px; }
.lead-card-photo a:focus-visible { outline-color: var(--gn-accent); }
.search-main { padding-block: 32px; min-height: 65vh; }
.search-form { margin-top: 24px; }
.search-form > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.search-input-row { display: flex; gap: 8px; }
.search-input-row input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--gn-divider); background: var(--surface); color: var(--text); font-size: 16px; }
.search-input-row input::placeholder { color: var(--muted); opacity: 1; }
.search-status { margin-top: 24px; font-size: 16px; font-weight: 600; }
.storage-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.search-results { display: grid; gap: 32px; margin-top: 24px; }
.search-excerpt { font-size: 15px; line-height: 22.5px; color: var(--muted); }
.search-result + .search-result { padding-top: 24px; border-top: 1px solid var(--soft); }
@media (min-width: 1200px) { .action-status { bottom: 24px; } }
@media (max-width: 360px) { .brand { font-size: 16px; } .article-topline { align-items: flex-start; } }
@media print { .article-actions, .action-status, .share-panel { display: none; } }
