/* GoldWiki News — section stylesheet for goldwiki.org/news/
   Re-templated Dec 5, 2026 to the approved front-page design system
   (frontpage.css): Playfair Display headlines, Newsreader text, Inter
   furniture, cream paper, gold rules, dark footer. The old Oswald /
   Open Sans WordPress-era chrome (black topbar, cream nav) is gone.
   WordPress is not involved.
   Keep the ?v= token in publish.py's stylesheet link in step with any
   change to this file. */

:root {
  --paper: #faf7f0;
  --paper-band: #f4ecd9;
  --ink: #1a1a18;
  --ink-soft: #4c4a44;
  --ink-faint: #6f6c63;
  --gold: #b08d2f;
  --gold-bright: #c9a227;
  --rule: #d8d2c2;
  --rule-strong: #1a1a18;
  --footer-bg: #1a1a18;
  --footer-ink: #ece7da;
  --footer-soft: #b9b4a6;
  --up: #1e7a34;
  --down: #b3372e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140f;
    --paper-band: #241f13;
    --ink: #f0ebdd;
    --ink-soft: #c9c4b4;
    --ink-faint: #9d988a;
    --rule: #3a362b;
    --rule-strong: #f0ebdd;
    --footer-bg: #0e0d0a;
    --footer-ink: #ece7da;
    --footer-soft: #a49e8d;
    --up: #57b06e;
    --down: #e08a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Layout guards (Dec 5, 2026): no image or chart may ever exceed its
   column — one unconstrained 1200px hero made iPhones load the whole
   page zoomed out to ~0.35x. The same guards are inlined in every
   page's <head>; they live here too so the file is safe on its own. */
img, svg { max-width: 100%; height: auto; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Masthead (hub: full form, as the front page) ---------- */
.masthead-v6 { text-align: center; padding: 34px 0 0; }
.brand-v6 { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.brand-v6 .seal { flex: none; display: block; }
.wordmark-v6 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(52px, 10vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.wordmark-v6 .gold-i { color: var(--gold); }
.tagline-v6 {
  font-family: var(--text);
  font-style: italic;
  font-size: clamp(17px, 2.6vw, 21px);
  margin: 12px 0 0;
  color: var(--ink);
}
.motto-v6 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto 0;
  max-width: 780px;
}
.motto-rule { flex: 0 1 90px; height: 1px; background: var(--gold); }
.motto-text {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.7;
}

/* ---------- Masthead (articles + author pages: compact form) ---------- */
.masthead-slim { text-align: center; padding: 20px 0 0; }
.brand-slim { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-slim .seal { flex: none; display: block; }
.wordmark-slim {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.wordmark-slim .gold-i { color: var(--gold); }
.tagline-slim {
  font-family: var(--text);
  font-style: italic;
  font-size: 15.5px;
  margin: 7px 0 0;
  color: var(--ink);
}
.masthead-slim .nav-v6 { margin-top: 16px; }

/* ---------- Nav between heavy rules ---------- */
.nav-v6 { margin-top: 22px; border-top: 3px solid var(--rule-strong); border-bottom: 3px solid var(--rule-strong); }
.nav-v6 ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nav-v6 a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-v6 a:hover { color: var(--gold); }
.nav-v6 a[aria-current="page"] { color: var(--gold); }

/* ---------- Editors block (hub) ---------- */
.editors-v6 {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 12px;
  margin-top: 14px;
  text-align: left;
}
.ed-line { margin: 0 0 5px; font-family: var(--text); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.ed-line:last-child { margin-bottom: 0; }
.ed-label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.ed-entry, .ed-name { white-space: nowrap; }
.ed-name-italic { font-style: italic; }
.ed-pipe { margin: 0 12px; color: var(--ink-faint); }
.ed-link {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ed-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Price ticker (one line, all pages) ---------- */
.ticker {
  margin: 0;
  padding: 9px 0;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.ticker strong { color: var(--ink); font-weight: 700; }
.ticker .up { color: var(--up); font-weight: 600; }
.ticker .down { color: var(--down); font-weight: 600; }
.ticker .ticker-source { color: var(--ink-faint); font-size: 12.5px; }

/* ---------- Article pages ---------- */
.article-main { max-width: 920px; margin-top: 26px; }
.kicker-rule { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.kr-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.kr-line { width: 90px; height: 1px; background: var(--gold); flex: none; }
.article-main h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.standfirst {
  font-family: var(--text);
  font-size: clamp(18px, 2.3vw, 21.5px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.byline-block {
  display: flex;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  margin: 0 0 22px;
}
.bb-left { margin: 0; padding-right: 28px; display: flex; flex-direction: column; justify-content: center; }
.bb-by { font-family: var(--text); font-style: italic; font-size: 16px; }
.bb-by strong {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.bb-by a { text-decoration: none; }
.bb-by a:hover strong { color: var(--gold); }
.bb-role { font-family: var(--text); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.bb-date {
  margin: 0 0 0 auto;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
  display: flex;
  align-items: center;
  font-family: var(--text);
  font-size: 15.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.story-body { font-size: 18.5px; line-height: 1.62; }
.story-body p { margin: 0 0 16px; }
.story-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.25;
  margin: 30px 0 10px;
}
.story-body ul { margin: 0 0 16px; padding-left: 24px; }
.story-body li { margin-bottom: 6px; }
.story-body a { color: var(--gold); }

.sources {
  margin-top: 36px;
  border-top: 2px solid var(--gold);
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.sources h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.sources ul { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 6px; }

/* imagery — content unchanged, frame in the new system */
figure.hero { margin: 0 0 24px; }
figure.hero img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
figure.hero figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-top: 7px; }
figure.chart { margin: 26px 0; border: 1px solid var(--rule); background: #faf6ea; padding: 14px 14px 8px; }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart figcaption { font-family: var(--sans); font-size: 13px; color: #6f6c63; margin-top: 7px; }

/* ---------- Latest list (hub + more-stories) ---------- */
.latest h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
  margin: 0;
}
.latest ul { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 14px 0 13px; border-bottom: 1px solid var(--rule); }
.latest li:last-of-type { border-bottom: none; }
.latest .story { display: flex; gap: 14px; }
.latest .thumb {
  flex: none;
  width: 96px;
  height: 72px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
}
.latest h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.28;
  margin: 0 0 5px;
}
.latest h3 a { text-decoration: none; }
.latest h3 a:hover { color: var(--gold); }
.latest .meta { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin: 0; }
.latest .meta .author { color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12.5px; }
.more-news {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--gold);
  text-decoration: none;
}
.more-news:hover { text-decoration: underline; text-underline-offset: 3px; }
.morestories { margin-top: 42px; }

/* ---------- Hub section front ---------- */
.hub-head { margin-top: 28px; max-width: 920px; }
.hub-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.hub-latest { margin-top: 30px; }

.beats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 48px;
  margin-top: 44px;
}
.cluster { margin-bottom: 8px; }
.cluster-head {
  border-bottom: 1px solid var(--rule);
  padding: 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  flex-wrap: wrap;
}
.cluster-head .beat {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.ch-rule { flex: 1; height: 1px; background: var(--gold); min-width: 28px; }
.cluster-head .editor {
  font-family: var(--text);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.cluster-story { padding: 15px 0 14px; border-bottom: 1px solid var(--rule); }
.cluster-story:last-child { border-bottom: none; }
.cluster-story h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18.5px;
  line-height: 1.28;
  margin: 0 0 6px;
}
.cluster-story.lead-story h3 { font-size: 23px; line-height: 1.22; }
.cluster-story h3 a { text-decoration: none; }
.cluster-story h3 a:hover { color: var(--gold); }
.story-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 7px;
}
.story-standfirst {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 7px;
}
.story-byline {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.story-byline strong { color: var(--ink-soft); font-weight: 600; letter-spacing: 0.05em; }
.story-byline .role {
  font-family: var(--text);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.cluster-hero {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  margin: 4px 0 12px;
}
.story-with-thumb { display: flex; gap: 14px; }
.story-with-thumb .thumb {
  flex: none;
  width: 92px;
  height: 69px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
}

.rail-head {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 9px;
  margin: 0 0 4px;
}
.rail-head .rail-sub {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-style: italic;
  font-size: 15.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  margin-top: 3px;
}
.explainers { margin-top: 44px; border-top: 3px solid var(--rule-strong); padding-top: 20px; }
.explainer-item { padding: 15px 0 14px; border-bottom: 1px solid var(--rule); }
.explainer-item:last-child { border-bottom: none; }
.explainer-item h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.28;
  margin: 0 0 6px;
}
.explainer-item h3 a { text-decoration: none; }
.explainer-item h3 a:hover { color: var(--gold); }

.archive { margin-top: 44px; border-top: 3px solid var(--rule-strong); padding-top: 20px; }
.archive ul { list-style: none; margin: 0; padding: 0; }
.archive li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.arch-date {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 112px;
}
.archive a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
}
.archive a:hover { color: var(--gold); }
.arch-cat {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: auto;
  flex: none;
}

/* ---------- Author pages ---------- */
.author-head { margin-top: 26px; max-width: 920px; }
.author-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 48px);
  line-height: 1.08;
  margin: 0 0 10px;
}
.author-role {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.author-bio { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 760px; margin: 0 0 10px; }
.author-stories { margin-top: 26px; max-width: 920px; }
.author-stories h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
  margin: 0;
}

/* ---------- Footer (the front page's dark footer) ---------- */
footer {
  margin-top: 58px;
  background: var(--footer-bg);
  color: var(--footer-ink);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 30px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  margin: 0 0 4px;
}
.footer-brand .gold-i { color: var(--gold-bright); }
.footer-tag {
  font-family: var(--text);
  font-style: italic;
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--footer-soft);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid #3a382f;
  border-bottom: 1px solid #3a382f;
}
.footer-cols h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 10px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--footer-ink);
  text-decoration: none;
}
.footer-cols a:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.disclosure {
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--footer-soft);
  max-width: 78ch;
}
.copyright { font-family: var(--sans); margin: 14px 0 0; font-size: 14px; color: var(--footer-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .beats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 12px; }

  /* Full masthead: compact */
  .masthead-v6 { padding-top: 14px; }
  .brand-v6 { gap: 12px; }
  .brand-v6 .seal { width: 46px; height: 46px; }
  .wordmark-v6 { font-size: 46px; }
  .tagline-v6 { font-size: 15.5px; margin-top: 6px; }
  .motto-v6 { margin-top: 9px; gap: 10px; max-width: none; }
  .motto-rule { flex: 1 1 0; }
  .motto-text { font-size: 9px; letter-spacing: 0.15em; white-space: nowrap; line-height: 1.4; }

  /* Slim masthead */
  .masthead-slim { padding-top: 12px; }
  .brand-slim { gap: 9px; }
  .brand-slim .seal { width: 34px; height: 34px; }
  .wordmark-slim { font-size: 30px; }
  .tagline-slim { font-size: 13.5px; margin-top: 5px; }
  .masthead-slim .nav-v6 { margin-top: 10px; }

  /* Nav: tighter row between the heavy rules */
  .nav-v6 { margin-top: 10px; }
  .nav-v6 a { min-height: 36px; padding: 4px 4px; font-size: 12.5px; letter-spacing: 0.11em; }

  /* Editors: tight lines, entries never split */
  .editors-v6 { margin-top: 8px; padding: 8px 0 7px; }
  .ed-line { font-size: 10.5px; line-height: 1.5; margin-bottom: 3px; }
  .ed-label { font-size: 8px; letter-spacing: 0.04em; }
  .ed-pipe { margin: 0 3px; }

  /* Ticker wraps to two lines at most, never overflows */
  .ticker { font-size: 12.5px; line-height: 1.55; }
  .ticker .ticker-source { font-size: 11.5px; }

  /* Article: compact, tight leading */
  .article-main { margin-top: 16px; }
  .kicker-rule { margin-bottom: 8px; gap: 12px; }
  .kr-text { font-size: 13px; }
  .kr-line { width: 64px; }
  .article-main h1 { font-size: 33px; line-height: 1.06; margin-bottom: 12px; }
  .standfirst { font-size: 16.5px; line-height: 1.45; margin-bottom: 12px; }
  .byline-block { padding: 9px 0; margin-bottom: 16px; }
  .bb-left { padding-right: 16px; }
  .bb-by { font-size: 15px; }
  .bb-role { font-size: 14px; }
  .bb-date { font-size: 14px; padding-left: 16px; white-space: normal; }
  .story-body { font-size: 17.5px; line-height: 1.58; }
  figure.chart { padding: 8px 6px 4px; }

  /* Hub rows: compact */
  .hub-head { margin-top: 16px; }
  .hub-head h1 { font-size: 36px; }
  .hub-latest { margin-top: 20px; }
  .latest li { padding: 10px 0 9px; }
  .latest h3 { font-size: 16.5px; }
  .beats { margin-top: 24px; }
  .cluster-story { padding: 10px 0 9px; }
  .cluster-story h3 { font-size: 18px; margin-bottom: 4px; }
  .cluster-story.lead-story h3 { font-size: 20px; }
  .story-tag { margin-bottom: 5px; }
  .story-standfirst {
    font-size: 14.5px;
    line-height: 1.45;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .story-byline { font-size: 11px; }
  .explainer-item { padding: 10px 0 9px; }
  .explainer-item h3 { font-size: 17.5px; }
  .arch-date { flex-basis: 92px; }
  .arch-cat { display: none; }

  footer { margin-top: 34px; }
  .footer-inner { padding-top: 30px; }
}
