/* ABOUTME: Editorial design system for The Compute Post. No external assets or dependencies. */

:root {
  --ink: #111310;
  --ink-soft: #1a1d18;
  --paper: #f4f1e9;
  --paper-deep: #e9e5da;
  --green: #76b900;
  --green-dark: #568a00;
  --signal: #d9ff66;
  --text: #1c1e1a;
  --muted: #6e7068;
  --line: #cfcdc3;
  --dark-line: rgba(244, 241, 233, 0.16);
  --font-serif: Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --page: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 18px; background: var(--signal); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(100%, var(--page)); margin-inline: auto; padding-inline: var(--gutter); }
.reading-progress { position: fixed; z-index: 999; inset: 0 0 auto; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* Breaking strip */
.breaking-bar { position: relative; z-index: 20; background: var(--green); color: #0c1007; border-bottom: 1px solid rgba(0,0,0,.28); }
.breaking-inner { min-height: 39px; display: flex; align-items: center; gap: 18px; font-size: 11px; line-height: 1; letter-spacing: .055em; white-space: nowrap; overflow: hidden; }
.breaking-badge { align-self: stretch; display: inline-flex; align-items: center; gap: 8px; padding-right: 18px; border-right: 1px solid rgba(0,0,0,.25); font-weight: 900; letter-spacing: .12em; }
.breaking-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: newsPulse 1.8s ease-in-out infinite; }
.breaking-headline { font-weight: 700; text-overflow: ellipsis; overflow: hidden; }
.breaking-edition { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .12em; opacity: .7; }
@keyframes newsPulse { 50% { opacity: .35; transform: scale(.7); } }

/* Masthead */
.site-header { background: var(--ink); color: var(--paper); }
.header-main { min-height: 104px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 39px; height: 39px; position: relative; display: flex; align-items: stretch; gap: 4px; padding: 6px; border: 1px solid var(--green); transform: skewX(-8deg); }
.brand-mark b { flex: 1; background: var(--green); }
.brand-mark b:nth-child(1) { height: 55%; align-self: flex-end; }
.brand-mark b:nth-child(2) { height: 100%; }
.brand-mark b:nth-child(3) { height: 72%; align-self: flex-start; }
.brand-type { display: grid; gap: 5px; }
.brand-type strong { font-family: var(--font-serif); font-size: 19px; line-height: 1; letter-spacing: -.02em; }
.brand-type small { font-size: 8px; font-weight: 700; letter-spacing: .19em; color: #9ca092; }
.edition-meta { display: flex; align-items: center; gap: 18px; margin-left: auto; color: #8f9486; font-size: 9px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.edition-meta span + span { border-left: 1px solid var(--dark-line); padding-left: 18px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-picker { position: relative; display: flex; align-items: center; height: 38px; border: 1px solid #41463b; background: #181b16; }
.language-picker > svg:first-child { position: absolute; left: 11px; width: 15px; height: 15px; fill: none; stroke: #a9ae9e; stroke-width: 1.2; pointer-events: none; }
.language-picker select { position: relative; z-index: 1; height: 100%; min-width: 119px; padding: 0 31px 0 34px; appearance: none; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: 11px; font-weight: 650; cursor: pointer; }
.language-picker select option { background: var(--ink); color: var(--paper); }
.language-picker:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.select-chevron { position: absolute; right: 10px; width: 12px; fill: none; stroke: var(--green); stroke-width: 1.5; pointer-events: none; }
.menu-toggle { display: none; height: 38px; align-items: center; gap: 10px; border: 1px solid #41463b; background: transparent; color: var(--paper); padding: 0 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { display: block; width: 15px; height: 1px; background: currentColor; content: ""; transition: transform .2s; }
.menu-toggle i { position: relative; }
.menu-toggle i::before { position: absolute; top: -5px; }
.menu-toggle i::after { position: absolute; top: 5px; }
.menu-toggle[aria-expanded="true"] i { background: transparent; }
.menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
.primary-nav { border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.nav-inner { min-height: 47px; display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); }
.nav-inner a { position: relative; display: inline-flex; align-items: center; min-height: 47px; color: #bec2b6; font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.nav-inner a::after { position: absolute; content: ""; inset: auto 0 -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-inner a:hover { color: var(--paper); }
.nav-inner a:hover::after { transform: scaleX(1); }
.print-button { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--signal); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.print-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero::before { position: absolute; z-index: -1; content: ""; width: 50vw; height: 50vw; max-width: 760px; max-height: 760px; right: -12%; top: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(118,185,0,.09), transparent 67%); }
.hero-grid-overlay { position: absolute; z-index: -1; inset: 0; opacity: .035; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: clamp(40px, 6vw, 92px); align-items: center; padding-top: clamp(52px, 6vw, 86px); padding-bottom: clamp(58px, 7vw, 92px); }
.section-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; font-size: 10px; font-weight: 750; line-height: 1.3; letter-spacing: .17em; text-transform: uppercase; }
.section-tag span:first-child { display: inline-grid; place-items: center; width: 28px; height: 22px; border: 1px solid currentColor; font-size: 9px; letter-spacing: 0; }
.section-tag.light { color: var(--signal); }
.section-tag.dark { color: var(--green-dark); }
.hero h1 { max-width: 820px; font-family: var(--font-serif); font-size: clamp(56px, 6.3vw, 94px); font-weight: 400; line-height: .91; letter-spacing: -.058em; text-wrap: balance; }
.hero h1 em { color: var(--signal); font-weight: 400; }
.hero-deck { max-width: 680px; margin-top: 30px; padding-left: 20px; border-left: 2px solid var(--green); color: #c1c6b9; font-family: var(--font-serif); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.byline-row { display: flex; align-items: center; gap: 11px; margin-top: 30px; }
.author-avatar { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #555b4c; border-radius: 50%; color: var(--signal); font-family: var(--font-serif); font-size: 11px; }
.byline-row > div { display: grid; gap: 5px; }
.byline-row strong { font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.byline-row div span { color: #858b7c; font-size: 9px; letter-spacing: .06em; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.button-primary { background: var(--green); color: #0c1007; }
.button-primary:hover { background: var(--signal); transform: translateY(-2px); }
.text-button { display: inline-flex; align-items: center; gap: 12px; padding: 7px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.light-text { color: #c9cec0; }
.light-text:hover { color: var(--signal); }
.visual-frame { position: relative; overflow: hidden; background: #171b14; }
.visual-frame > svg, .visual-frame > img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual { aspect-ratio: 4 / 5; max-height: 710px; border: 1px solid #3d4336; box-shadow: 20px 20px 0 rgba(0,0,0,.13); }
.hero-visual::after { position: absolute; content: ""; inset: 0; box-shadow: inset 0 0 90px rgba(0,0,0,.28); pointer-events: none; }
.visual-index { position: absolute; top: 22px; right: 20px; display: grid; justify-items: end; gap: 6px; color: var(--signal); }
.visual-index span { font-family: var(--font-serif); font-size: 28px; font-style: italic; }
.visual-index small { font-size: 8px; letter-spacing: .16em; }
.hero-visual figcaption { position: absolute; z-index: 2; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 54px 24px 20px; background: linear-gradient(transparent, rgba(7,9,6,.95)); color: #d4d8cc; font-size: 10px; line-height: 1.5; }
.hero-visual figcaption span:first-child { max-width: 290px; }
.hero-visual figcaption span:last-child { flex-shrink: 0; color: var(--signal); font-size: 7px; letter-spacing: .14em; }
.hero-takeaways { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.hero-takeaways > * { min-height: 146px; padding: 27px 24px; border-right: 1px solid var(--dark-line); }
.hero-takeaways > *:first-child { padding-left: 0; }
.hero-takeaways > *:last-child { border-right: 0; padding-right: 0; }
.takeaway-intro { display: grid; align-content: center; gap: 9px; }
.takeaway-intro > span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.takeaway-intro strong { font-family: var(--font-serif); font-size: 20px; font-weight: 400; line-height: 1.12; }
.hero-takeaways article { position: relative; }
.hero-takeaways article > span { color: #686e5f; font-family: var(--font-serif); font-size: 12px; font-style: italic; }
.hero-takeaways h2 { margin-top: 12px; color: var(--paper); font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.hero-takeaways p { margin-top: 8px; color: #8f9586; font-size: 10px; line-height: 1.55; }

/* Paper and story layout */
.paper { background: var(--paper); }
.scenario-notice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 23px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.notice-label { padding: 6px 9px; background: var(--ink); color: var(--signal); font-size: 8px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.scenario-notice p { color: #62665c; font-size: 10px; line-height: 1.55; }
.notice-code { color: #8a8d83; font-size: 8px; letter-spacing: .13em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(45px, 5.2vw, 78px); align-items: start; }
.article-main { min-width: 0; }
.story-section { padding-block: clamp(78px, 8vw, 116px); border-bottom: 1px solid var(--line); }
.story-section h2 { max-width: 890px; font-family: var(--font-serif); font-size: clamp(38px, 4vw, 59px); font-weight: 400; line-height: 1.03; letter-spacing: -.042em; text-wrap: balance; overflow-wrap: break-word; }
.standfirst { max-width: 850px; margin-top: 26px; color: #4d5148; font-family: var(--font-serif); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.5; }
.section-intro { max-width: 800px; margin-top: 23px; color: #5f635a; font-size: 14px; line-height: 1.75; }
.article-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; margin-top: 36px; }
.article-columns p { color: #40443b; font-family: var(--font-serif); font-size: 16px; line-height: 1.88; }
.dropcap::first-letter { float: left; margin: 8px 10px 0 0; color: var(--green-dark); font-family: var(--font-serif); font-size: 73px; line-height: .65; }
.editorial-quote { position: relative; margin-block: 53px; padding: 37px 40px 34px 76px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.quote-mark { position: absolute; left: 9px; top: 25px; color: var(--green); font-family: var(--font-serif); font-size: 76px; line-height: 1; }
.editorial-quote p { font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 33px); font-style: italic; line-height: 1.3; letter-spacing: -.02em; }
.editorial-quote cite { display: block; margin-top: 20px; color: var(--muted); font-family: var(--font-sans); font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .15em; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.control-grid article { min-height: 225px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.control-number { color: #92958c; font-family: var(--font-serif); font-size: 11px; font-style: italic; }
.control-grid h3 { margin-top: 26px; font-family: var(--font-serif); font-size: 23px; font-weight: 400; }
.control-grid p { margin-top: 11px; color: #63675e; font-size: 12px; line-height: 1.65; }
.control-label { display: block; margin-top: 21px; color: var(--green-dark); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-heading-row .section-tag { margin-bottom: 25px; }
.data-stamp { flex-shrink: 0; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--green-dark); color: var(--green-dark); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.wide-visual { aspect-ratio: 16 / 10; margin-top: 40px; border: 1px solid #30352c; }
.architecture-visual, .sovereign-visual { aspect-ratio: 16 / 9; }
.paper-caption { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); color: #7a7e73; font-size: 9px; line-height: 1.5; }
.paper-caption span:last-child { flex-shrink: 0; font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.metric-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.metric-ribbon article { padding: 25px 22px; border-right: 1px solid var(--line); }
.metric-ribbon article:first-child { padding-left: 0; }
.metric-ribbon article:last-child { border: 0; }
.metric-ribbon article > span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.metric-ribbon strong { display: block; margin-top: 12px; font-family: var(--font-serif); font-size: clamp(21px, 2vw, 29px); font-weight: 400; }
.metric-ribbon p { margin-top: 6px; color: var(--muted); font-size: 10px; }
.architecture-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.note-index { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--green-dark); color: var(--green-dark); font-family: var(--font-serif); font-size: 12px; font-style: italic; }
.architecture-notes h3 { margin-top: 17px; font-family: var(--font-serif); font-size: 20px; font-weight: 400; line-height: 1.25; }
.architecture-notes p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.chapter-watermark { margin-top: -24px; color: #e2ded2; font-family: var(--font-serif); font-size: 108px; font-style: italic; line-height: 1; }
.physical-copy { margin-top: 33px; }
.sovereign-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.sovereign-pillars article { padding: 25px 23px 0; border-right: 1px solid var(--line); }
.sovereign-pillars article:first-child { padding-left: 0; }
.sovereign-pillars article:last-child { border: 0; }
.sovereign-pillars article > span { color: var(--green-dark); font-family: var(--font-serif); font-size: 12px; font-style: italic; }
.sovereign-pillars h3 { margin-top: 15px; font-family: var(--font-serif); font-size: 21px; font-weight: 400; line-height: 1.2; }
.sovereign-pillars p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.watchlist { margin-top: 40px; border-top: 2px solid var(--ink); }
.watchlist article { display: grid; grid-template-columns: 48px 1fr auto; gap: 21px; align-items: start; padding-block: 26px; border-bottom: 1px solid var(--line); }
.watch-number { color: var(--green-dark); font-family: var(--font-serif); font-size: 24px; font-style: italic; }
.watchlist h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 400; }
.watchlist p { max-width: 630px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.watch-tag { margin-top: 4px; padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .12em; }

/* Sidebar */
.article-sidebar { padding-top: clamp(78px, 8vw, 116px); }
.sidebar-card { padding: 23px; border: 1px solid var(--line); border-top: 3px solid var(--ink); margin-bottom: 28px; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: #42463d; font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.sidebar-heading i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.briefing-card { background: var(--ink); color: var(--paper); border-color: var(--ink); border-top-color: var(--green); }
.briefing-card .sidebar-heading { border-color: var(--dark-line); color: var(--signal); }
.briefing-card ol { list-style: none; }
.briefing-card li { display: grid; grid-template-columns: 25px 1fr; gap: 10px; padding-block: 18px; border-bottom: 1px solid var(--dark-line); }
.briefing-card li > span { color: var(--green); font-family: var(--font-serif); font-size: 12px; font-style: italic; }
.briefing-card li p { color: #d0d4c8; font-family: var(--font-serif); font-size: 15px; line-height: 1.45; }
.sidebar-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 20px; padding: 12px; border: 1px solid #4b5143; background: transparent; color: var(--signal); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sidebar-button:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.stack-card { padding-bottom: 25px; }
.stack-visual { display: grid; gap: 5px; margin-top: 21px; }
.stack-visual div { display: flex; align-items: center; gap: 17px; height: 37px; padding-inline: 13px; background: #e5e2d7; border-left: 3px solid #8b8e82; }
.stack-visual div:nth-child(1) { margin-inline: 0; background: var(--ink); color: var(--signal); border-color: var(--green); }
.stack-visual div:nth-child(2) { margin-inline: 8px; }
.stack-visual div:nth-child(3) { margin-inline: 16px; }
.stack-visual div:nth-child(4) { margin-inline: 24px; }
.stack-visual span { font-family: var(--font-serif); font-size: 10px; font-style: italic; opacity: .65; }
.stack-visual b { font-size: 8px; letter-spacing: .13em; }
.stack-card > p { margin-top: 18px; color: var(--muted); font-family: var(--font-serif); font-size: 13px; line-height: 1.55; }
.timeline { list-style: none; margin-top: 21px; }
.timeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding-bottom: 24px; }
.timeline li::before { position: absolute; content: ""; left: 52px; top: 5px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { position: absolute; content: ""; left: 49px; top: 4px; width: 5px; height: 5px; border: 1px solid var(--green-dark); border-radius: 50%; background: var(--paper); }
.timeline time { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.timeline div { padding-left: 12px; }
.timeline strong { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 400; }
.timeline p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.source-card > p { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.source-card a { display: flex; justify-content: space-between; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--green-dark); font-size: 9px; font-weight: 750; }

/* Closing and footer */
.closing-brief { display: grid; grid-template-columns: 160px 1fr; gap: 50px; padding-block: clamp(70px, 8vw, 110px); }
.closing-label { display: flex; flex-direction: column; gap: 13px; color: var(--green-dark); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.closing-label span:last-child { color: var(--muted); }
.closing-brief > p { max-width: 920px; font-family: var(--font-serif); font-size: clamp(29px, 3.2vw, 47px); line-height: 1.25; letter-spacing: -.035em; }
.back-top { grid-column: 2; display: flex; justify-content: space-between; max-width: 920px; padding-top: 20px; border-top: 1px solid var(--ink); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.site-footer { background: var(--ink); color: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1fr 1.2fr .6fr; align-items: center; gap: 45px; min-height: 175px; }
.footer-top > p { color: #8f9586; font-size: 10px; line-height: 1.7; }
.footer-lang { display: grid; gap: 10px; justify-items: end; }
.footer-lang span { color: #777e6e; font-size: 7px; letter-spacing: .14em; }
.footer-lang strong { color: var(--signal); font-family: var(--font-serif); font-size: 17px; font-weight: 400; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; border-top: 1px solid var(--dark-line); color: #737a6a; font-size: 7px; letter-spacing: .13em; }
.footer-bottom a { color: var(--signal); }
.toast { position: fixed; z-index: 1001; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 11px; max-width: calc(100% - 32px); padding: 14px 20px; background: var(--ink); border: 1px solid #48513d; color: var(--paper); box-shadow: 0 12px 50px rgba(0,0,0,.25); font-size: 11px; transform: translate(-50%, 140%); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.toast > span:first-child { color: var(--signal); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.noscript-note { position: fixed; z-index: 1000; inset: auto 0 0; padding: 12px; background: var(--signal); color: var(--ink); text-align: center; font-size: 12px; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero-visual.reveal { transition-delay: .12s; }

/* Language-sensitive line breaks */
html[lang="zh-CN"] .hero h1, html[lang="zh-TW"] .hero h1, html[lang="ja"] .hero h1, html[lang="ko"] .hero h1 { line-height: 1.08; letter-spacing: -.045em; }
html[lang="de"] .hero h1 { font-size: clamp(48px, 5.5vw, 82px); }
html[lang="de"] .story-section h2 { font-size: clamp(34px, 3.6vw, 53px); }

@media (max-width: 1180px) {
  .edition-meta { display: none; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 42px; }
  .hero h1 { font-size: clamp(53px, 6.6vw, 78px); }
  .hero-takeaways { grid-template-columns: 1.1fr repeat(4, 1fr); }
  .hero-takeaways > * { padding-inline: 17px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; }
  .article-columns { gap: 27px; }
  .architecture-notes { gap: 20px; }
}

@media (max-width: 960px) {
  .nav-inner { gap: 20px; }
  .nav-inner a { font-size: 9px; }
  .print-button span { display: none; }
  .hero-inner { grid-template-columns: 1fr 370px; gap: 30px; }
  .hero-deck { font-size: 17px; }
  .hero-takeaways { grid-template-columns: repeat(4, 1fr); }
  .takeaway-intro { grid-column: 1 / -1; min-height: auto; grid-template-columns: auto 1fr; align-items: center; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .takeaway-intro strong br { display: none; }
  .article-layout { display: block; }
  .article-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-block: 55px; border-bottom: 1px solid var(--line); }
  .sidebar-card { margin: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-lang { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 12px; }
  .breaking-inner { overflow-x: auto; scrollbar-width: none; gap: 14px; }
  .breaking-inner::-webkit-scrollbar { display: none; }
  .breaking-badge { position: sticky; left: 0; z-index: 1; background: var(--green); }
  .breaking-edition { display: none; }
  .breaking-headline { flex-shrink: 0; }
  .header-main { min-height: 78px; gap: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 31px; height: 31px; padding: 5px; }
  .brand-type strong { font-size: 14px; }
  .brand-type small { font-size: 6px; }
  .language-picker { height: 34px; }
  .language-picker select { min-width: 93px; padding-left: 29px; font-size: 10px; }
  .language-picker > svg:first-child { left: 8px; width: 13px; }
  .select-chevron { right: 7px; }
  .menu-toggle { display: flex; height: 34px; padding-inline: 9px; }
  .menu-toggle span { display: none; }
  .primary-nav { display: none; position: absolute; z-index: 30; width: 100%; background: var(--ink); box-shadow: 0 25px 50px rgba(0,0,0,.35); }
  .primary-nav.is-open { display: block; }
  .nav-inner { display: grid; gap: 0; padding-block: 10px 18px; }
  .nav-inner a { min-height: 45px; border-bottom: 1px solid var(--dark-line); font-size: 11px; }
  .print-button { min-height: 45px; margin: 5px 0 0; }
  .print-button span { display: inline; }
  .hero-inner { grid-template-columns: 1fr; gap: 46px; padding-top: 48px; }
  .hero h1 { max-width: 590px; font-size: clamp(51px, 13.5vw, 78px); }
  html[lang="de"] .hero h1 { font-size: clamp(42px, 11vw, 66px); }
  .hero-deck { margin-top: 25px; font-size: 17px; }
  .hero-visual { width: 100%; max-height: none; aspect-ratio: 4 / 4.7; }
  .hero-actions { flex-wrap: wrap; }
  .hero-takeaways { grid-template-columns: repeat(2, 1fr); }
  .hero-takeaways article { min-height: 155px; border-bottom: 1px solid var(--dark-line); }
  .hero-takeaways article:nth-child(3) { border-right: 0; }
  .hero-takeaways article:last-child { padding-left: 17px; }
  .takeaway-intro { grid-template-columns: 1fr; }
  .scenario-notice { grid-template-columns: auto 1fr; gap: 12px; }
  .notice-code { display: none; }
  .story-section { padding-block: 72px; }
  .story-section h2 { font-size: clamp(36px, 9vw, 50px); }
  .section-heading-row { display: block; }
  .data-stamp { display: inline-block; margin: 20px 0 0; }
  .chapter-watermark { display: none; }
  .article-columns { grid-template-columns: 1fr; gap: 22px; }
  .editorial-quote { padding: 32px 20px 30px 49px; }
  .quote-mark { left: 5px; }
  .control-grid { grid-template-columns: 1fr; }
  .control-grid article { min-height: 0; }
  .wide-visual, .architecture-visual, .sovereign-visual { aspect-ratio: 4 / 3; }
  .wide-visual > svg { max-width: none; width: 100%; }
  .metric-ribbon, .architecture-notes, .sovereign-pillars { grid-template-columns: 1fr; }
  .metric-ribbon article, .metric-ribbon article:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-ribbon article:last-child { border-bottom: 0; }
  .architecture-notes { gap: 27px; }
  .architecture-notes article { display: grid; grid-template-columns: 32px 1fr; column-gap: 13px; }
  .architecture-notes h3 { margin-top: 2px; }
  .architecture-notes p { grid-column: 2; }
  .sovereign-pillars article, .sovereign-pillars article:first-child { padding: 23px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .watchlist article { grid-template-columns: 36px 1fr; gap: 14px; }
  .watch-tag { grid-column: 2; justify-self: start; }
  .article-sidebar { grid-template-columns: 1fr; }
  .closing-brief { grid-template-columns: 1fr; gap: 25px; }
  .closing-brief > p { font-size: 31px; }
  .back-top { grid-column: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 23px; padding-block: 40px; }
  .footer-bottom { flex-wrap: wrap; padding-block: 20px; }
  .footer-bottom > span:nth-child(2) { display: none; }
}

@media (max-width: 430px) {
  .brand-type small { display: none; }
  .brand-type strong { max-width: 88px; line-height: 1.05; }
  .header-actions { gap: 7px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-takeaways article { padding: 22px 14px; }
  .hero-takeaways article:nth-child(even) { padding-left: 0; }
  .scenario-notice { display: block; }
  .scenario-notice p { margin-top: 12px; }
  .paper-caption { display: block; }
  .paper-caption span:last-child { display: block; margin-top: 6px; }
  .hero-visual figcaption span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; }
  .breaking-bar, .primary-nav, .header-actions, .reading-progress, .hero-actions, .article-sidebar, .back-top, .site-footer, .toast, .menu-toggle { display: none !important; }
  .header-main { min-height: 65px; }
  .site-header, .hero { background: #fff; color: #000; }
  .brand-type small, .hero-deck, .byline-row div span, .hero-takeaways p { color: #444; }
  .hero-inner { grid-template-columns: 1.2fr .8fr; padding-block: 30px; }
  .hero h1 { font-size: 50px; }
  .hero h1 em, .section-tag.light { color: #315500; }
  .hero-visual { max-height: 460px; box-shadow: none; }
  .hero-takeaways > * { min-height: 100px; }
  .hero-takeaways h2, .takeaway-intro strong { color: #000; }
  .article-layout { display: block; }
  .story-section { padding-block: 35px; break-inside: auto; }
  .story-section h2 { font-size: 35px; }
  .visual-frame, .control-grid article, .editorial-quote { break-inside: avoid; }
  .wide-visual { max-height: 500px; }
  .closing-brief { padding-block: 35px; }
  .js .reveal { opacity: 1; transform: none; }
}
