/*
 * svrn_alpha research articles: the shared components.
 * Load after /brand/svrn-base.css. A page's own <style> keeps only what is
 * specific to that page (its charts, tables and diagrams).
 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-size: 17px; line-height: 28px; }

h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
a { color: var(--svrn-harbour); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--svrn-midnight); }
strong, b { font-weight: 600; }
img, svg, canvas { max-width: 100%; }
section[id], h2[id], h3[id] { scroll-margin-top: 88px; }

/* ── Hero: one Midnight band per page, Moonrise art right and low ── */
.hero {
  background: var(--svrn-midnight) url("/brand/art/moonrise.webp") right center / cover no-repeat;
  color: #ffffff;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 72px);
}
@media (min-width: 1600px), (min-resolution: 1.25dppx) { .hero { background-image: url("/brand/art/moonrise-3840.webp"); } }
@media (max-width: 820px) { .hero { background-image: none; } }
.hero-inner { max-width: 1152px; margin: 0 auto; }
.hero-inner > * { max-width: 720px; }
.hero-label { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--svrn-mist); }
.hero-label::before { content: ""; flex: none; width: 24px; height: 8px; background: var(--svrn-mist); }
.hero h1 { font-family: var(--svrn-font-serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.005em; color: #ffffff; margin-bottom: 22px; }
.hero-sub { font-size: 19px; line-height: 30px; color: var(--svrn-pale-mist); }
.hero-sub a { color: #ffffff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 48px; max-width: none; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(171, 196, 210, .28); }
.hero-stat { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-stat-val { font-family: var(--svrn-font-serif); font-size: 40px; line-height: 44px; font-weight: 400; color: #ffffff; }
.hero-stat-label { font-size: 15px; line-height: 22px; color: var(--svrn-mist); }

/* Key figures: a white strip under the hero, so the art never sits behind text. */
.hero-figures { padding: 40px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--svrn-fill); }
.hero-figures .hero-stats { max-width: 1152px; margin: 0 auto; padding: 0; border: 0; }
.hero-figures .hero-stat-val { color: var(--svrn-ink); }
.hero-figures .hero-stat-label { color: var(--svrn-slate); }

/* ── Author ── */
.author-bar { border-bottom: 1px solid var(--svrn-fill); padding: 24px clamp(20px, 5vw, 64px); }
.author-inner { max-width: 680px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; font-size: 14px; line-height: 20px; color: var(--svrn-steel); }
.author-avatar, .author-initials { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--svrn-fill); color: var(--svrn-ink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.author-name { font-weight: 600; color: var(--svrn-ink); }
.author-role { color: var(--svrn-steel); }

/* ── Reading column ── */
.content { max-width: 728px; margin: 0 auto; padding: 0 24px; }
article { padding: 48px 0 clamp(48px, 6vw, 80px); }
article > section { margin-bottom: 48px; }
article h2 { font-size: 24px; line-height: 30px; font-weight: 600; color: var(--svrn-ink); margin: 0 0 16px; }
article h3 { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--svrn-ink); margin: 32px 0 8px; }
article h4 { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--svrn-ink); margin: 24px 0 6px; }
article p { margin-bottom: 20px; color: var(--svrn-ink); }
article ol, article ul { margin: 12px 0 20px 24px; padding: 0; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--svrn-steel); }

/* Pull quote: Newsreader italic with a mist rule. */
.pullquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--svrn-mist-blue); font-family: var(--svrn-font-serif); font-style: italic; font-size: 28px; line-height: 38px; color: var(--svrn-ink); }

.pullquote br + span, .pullquote cite { display: block; margin-top: 12px; font-family: var(--svrn-font-sans); font-style: normal; font-size: 14px; line-height: 20px; color: var(--svrn-steel); }

/* Figures in a row: no boxes, a Line rule on top. */
.kpi-grid, .kpi-grid-2 { display: flex; flex-wrap: wrap; gap: 24px 32px; margin: 32px 0; }
.kpi { flex: 1 1 180px; min-width: 0; border-top: 1px solid var(--svrn-line); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi-grid-2 .kpi { flex-basis: 240px; }
.kpi-val { font-family: var(--svrn-font-serif); font-size: 40px; line-height: 44px; color: var(--svrn-ink); }
.kpi-label { font-size: 15px; line-height: 22px; color: var(--svrn-slate); }

/* Callout: a white sheet. Finance-desk box: a Ground panel. */
.callout { margin: 28px 0; padding: 24px 28px; background: #ffffff; border-radius: var(--svrn-radius-card); box-shadow: var(--svrn-shadow-sheet); font-size: 16px; line-height: 26px; color: var(--svrn-slate); }
.callout strong, .callout-label { color: var(--svrn-ink); }
.callout-label { display: block; font-size: 15px; line-height: 22px; font-weight: 600; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.frame-box { margin: 28px 0; padding: 24px 28px; background: var(--svrn-ground); border-radius: var(--svrn-radius-card); }
.frame-box .frame-label { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--svrn-ink); margin-bottom: 8px; }
.frame-box p { font-size: 16px; line-height: 26px; color: var(--svrn-slate); margin-bottom: 0; }
.frame-box p + p { margin-top: 12px; }

/* Scenario vs fact: a Ground panel beside a raised sheet. */
.ff-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; }
.ff-col { flex: 1 1 260px; min-width: 0; padding: 24px 28px; border-radius: var(--svrn-radius-card); background: var(--svrn-ground); font-size: 15px; line-height: 24px; }
.ff-col:last-child { background: #ffffff; box-shadow: var(--svrn-shadow-raised); }
.ff-label { display: block; margin-bottom: 10px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--svrn-steel); }
.ff-label.fact { color: var(--svrn-ink); }
.ff-col p { font-size: 15px; line-height: 24px; color: var(--svrn-slate); margin-bottom: 10px; }
.ff-col:last-child p { color: var(--svrn-ink); }
.ff-col p:last-child { margin-bottom: 0; }

/* Numbered theses. */
.thesis-list { list-style: none; margin: 24px 0; padding: 0; }
.thesis-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: baseline; margin: 0; padding: 18px 0; border-top: 1px solid var(--svrn-line); font-size: 16px; line-height: 26px; }
.thesis-list li:last-child { border-bottom: 1px solid var(--svrn-line); }
.thesis-num { font-family: var(--svrn-font-serif); font-size: 24px; line-height: 26px; color: var(--svrn-steel); }
.thesis-content { color: var(--svrn-slate); }
.thesis-content strong { color: var(--svrn-ink); }

/* Timeline as a quiet table. */
.timeline { margin: 32px 0; border-top: 1px solid var(--svrn-line); }
.timeline-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--svrn-line); }
.timeline-row.header { padding: 10px 0; }
.timeline-cell { font-size: 15px; line-height: 24px; color: var(--svrn-slate); }
.timeline-row.header .timeline-cell { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--svrn-steel); }
.timeline-when { font-weight: 600; color: var(--svrn-ink); }
.timeline-what strong { color: var(--svrn-ink); }

/* Observation cards. */
.obs-card { margin: 16px 0; padding: 24px 28px; background: #ffffff; border-radius: var(--svrn-radius-card); box-shadow: var(--svrn-shadow-sheet); }
.obs-num { font-family: var(--svrn-font-serif); font-size: 24px; line-height: 28px; color: var(--svrn-steel); }
.obs-title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--svrn-ink); margin: 6px 0; }
.obs-body { font-size: 15px; line-height: 24px; color: var(--svrn-slate); }

/* Charts and figures. */
.chart-wrap { margin: 32px 0 12px; padding: 24px 28px; background: var(--svrn-ground); border-radius: var(--svrn-radius-card); }
.chart-label { display: block; margin-bottom: 14px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--svrn-ink); }
.fig-caption { margin: 8px 0 28px; font-size: 13px; line-height: 19px; color: var(--svrn-steel); }
.fig-caption strong { color: var(--svrn-slate); }

/* Tables. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0; }
article table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
article th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--svrn-line); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--svrn-steel); vertical-align: bottom; }
article td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--svrn-fill); vertical-align: top; color: var(--svrn-ink); }

/* Notes above the article. */
.update-note, .disclaimer-bar, .source-note { margin: 0 0 24px; padding: 16px 20px; background: var(--svrn-ground); border-radius: var(--svrn-radius-card); font-size: 15px; line-height: 24px; color: var(--svrn-slate); }
.update-note .update-label { display: block; margin-bottom: 4px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--svrn-ink); }
.update-note strong, .source-note strong { color: var(--svrn-ink); }
.source-note { display: flex; gap: 12px; align-items: flex-start; }
.source-note-icon { flex: none; color: var(--svrn-steel); }
.disclaimer-bar { margin: 0; border-radius: 0; text-align: center; }

/* Sources. */
.sources-section { margin: 56px 0 24px; padding-top: 32px; border-top: 1px solid var(--svrn-line); }
.sources-section h2 { font-size: 24px; line-height: 30px; font-weight: 600; margin-bottom: 8px; }
.sources-intro { font-size: 15px; line-height: 24px; color: var(--svrn-slate); margin-bottom: 28px; }
.sources-group { margin-bottom: 28px; }
.sources-group-label { display: block; margin-bottom: 12px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--svrn-steel); }
.sources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sources-list li { margin: 0; font-size: 14px; line-height: 22px; color: var(--svrn-ink); }
.sources-list .src-title { font-weight: 600; }
.sources-list .src-meta { color: var(--svrn-slate); }
.sources-list .src-note { display: block; margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--svrn-steel); }
.sources-block, .sources-caveat { margin: 24px 0; padding: 16px 20px; background: var(--svrn-ground); border-radius: var(--svrn-radius-card); font-size: 14px; line-height: 22px; color: var(--svrn-slate); }
.sources-caveat strong, .sources-block strong { color: var(--svrn-ink); }

/* Closing call to action: one Midnight button. */
.cta-section { margin: 56px 0 0; padding: clamp(28px, 4vw, 40px); background: var(--svrn-ground); border-radius: var(--svrn-radius-panel); }
.cta-section h2 { font-family: var(--svrn-font-serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.cta-section p { font-size: 16px; line-height: 26px; color: var(--svrn-slate); margin-bottom: 24px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--svrn-radius-button); background: var(--svrn-midnight); color: #ffffff; font-size: 15px; line-height: 24px; font-weight: 600; text-decoration: none; }
.cta-btn:hover { background: var(--svrn-deep-midnight); color: #ffffff; }
.cta-links { margin-top: 20px; font-size: 14px; line-height: 22px; color: var(--svrn-steel); }

@media (max-width: 640px) {
  .pullquote { font-size: 24px; line-height: 32px; }
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .hero { background: none; color: var(--svrn-ink); padding: 0 0 24px; }
  .hero h1, .hero-stat-val { color: var(--svrn-ink); }
  .hero-sub, .hero-stat-label, .hero-label { color: var(--svrn-slate); }
  .hero-figures { padding: 0 0 24px; }
  .cta-section { display: none; }
}
