/* Magazine: A4 pages that scale with the screen and print as true A4. */
.mag-stack { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 28px 16px 40px; }
.mag-page {
  --m-ink: #0f172a; --m-ink2: #334155; --m-muted: #64748b; --m-accent: #0d9488; --m-navy: #0b2545; --m-paper: #fffdf8; --m-line: #e5e1d6;
  container-type: inline-size;
  position: relative; width: min(100%, 820px); aspect-ratio: 210 / 297; overflow: hidden;
  background: var(--m-paper); color: var(--m-ink); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 20px 50px rgba(15,23,42,.18);
  font-family: var(--sans); color-scheme: light;
}
.mag-page > *:not(.mag-folio):not(.mag-cover) { margin-left: 7cqw; margin-right: 7cqw; }
.mag-page { font-size: 1.5cqw; line-height: 1.48; }
.mag-page p { margin: 0 0 .75em; color: var(--m-ink2); }
.mag-page a { color: var(--m-accent); }
.mag-folio { position: absolute; left: 7cqw; right: 7cqw; bottom: 3.2cqw; display: flex; justify-content: space-between; font-size: 1.2cqw; color: var(--m-muted); letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--m-line); padding-top: 1.2cqw; }
.mag-cover ~ .mag-folio { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }

/* Running head */
.mag-run { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4.6cqw; padding-bottom: 1.6cqw; border-bottom: .35cqw solid var(--m-navy); margin-bottom: 3cqw; font-size: 1.2cqw; text-transform: uppercase; letter-spacing: .14em; color: var(--m-muted); font-weight: 700; }
.mag-run b { color: var(--m-accent); }

/* Headlines */
.mag-kicker { font-size: 1.25cqw; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--m-accent); margin: 0 0 1cqw !important; }
.mag-h1 { font: 700 5.4cqw/1.04 var(--serif); letter-spacing: -.02em; margin: 0 0 1.6cqw; color: var(--m-ink); }
.mag-h2 { font: 700 3.1cqw/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 1.2cqw; color: var(--m-ink); }
.mag-h3 { font: 700 1.9cqw/1.2 var(--serif); margin: 0 0 .6cqw; color: var(--m-ink); }
.mag-standfirst { font: 500 1.85cqw/1.38 var(--serif); color: var(--m-ink2) !important; margin-bottom: 2.4cqw !important; }

/* Columns */
.mag-cols { column-count: 2; column-gap: 4cqw; }
.mag-cols-3 { column-count: 3; column-gap: 3cqw; }
.mag-cols p:first-child::first-letter { float: left; font: 700 5.2cqw/.8 var(--serif); color: var(--m-accent); margin: .5cqw 1cqw 0 0; }
.mag-cols .no-drop::first-letter { all: unset; }
.avoid { break-inside: avoid; }

/* Elements */
.pull { font: 600 2.2cqw/1.28 var(--serif); color: var(--m-navy); border-top: .3cqw solid var(--m-accent); border-bottom: 1px solid var(--m-line); padding: 1.6cqw 0; margin: 2cqw 0; break-inside: avoid; }
.pull cite { display: block; font: 600 1.2cqw var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--m-muted); margin-top: .8cqw; font-style: normal; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin: 2.4cqw 7cqw; }
.stat-row > div { border-top: .3cqw solid var(--m-navy); padding-top: 1cqw; font-size: 1.3cqw; color: var(--m-muted); line-height: 1.35; }
.stat-row b { display: block; font: 700 4.4cqw/1 var(--serif); color: var(--m-accent); margin-bottom: .6cqw; }
.box { background: #f0f7f6; border-radius: 1cqw; padding: 2cqw 2.4cqw; break-inside: avoid; margin-bottom: 2cqw; }
.box ul { margin: .4cqw 0 0; padding-left: 2.2cqw; color: var(--m-ink2); }
.box li { margin-bottom: .5cqw; }
.box .mag-h3 { color: var(--m-navy); }
.spec { width: 100%; border-collapse: collapse; font-size: 1.3cqw; margin: .6cqw 0 1cqw; }
.spec th, .spec td { text-align: left; padding: .65cqw 1cqw; border-bottom: 1px solid var(--m-line); vertical-align: top; color: var(--m-ink2); }
.spec th { color: var(--m-navy); font-size: 1.15cqw; text-transform: uppercase; letter-spacing: .08em; border-bottom: .25cqw solid var(--m-navy); }
.spec td:first-child { font-weight: 700; color: var(--m-ink); }
.band { margin: 0 0 3cqw !important; height: 10cqw; border-radius: 1.2cqw; overflow: hidden; background: radial-gradient(120% 120% at 20% 0%, #134e6f 0%, #0b2545 60%, #06152b 100%); color: #d9f3ef; }
.band svg { display: block; width: 100%; height: 100%; }
.sources-mini { font-size: 1.1cqw; color: var(--m-muted); border-top: 1px solid var(--m-line); padding-top: 1cqw; position: absolute; bottom: 7.5cqw; left: 0; right: 0; }
.sources-mini p { color: var(--m-muted) !important; margin: 0 !important; }

/* Cover */
.mag-cover { position: absolute; inset: 0; color: #fff; padding: 7cqw; display: flex; flex-direction: column;
  background: radial-gradient(90% 60% at 85% 30%, rgba(45,212,191,.35) 0%, transparent 60%), linear-gradient(165deg, #06152b 0%, #0b2545 45%, #134e6f 80%, #0d9488 130%); }
.mag-cover .cover-art { position: absolute; right: -14cqw; top: 22cqw; width: 92cqw; height: 92cqw; opacity: .9; }
.mag-cover .masthead { font: 700 12.5cqw/.9 var(--serif); letter-spacing: -.035em; margin: 2cqw 0 0; position: relative; }
.mag-cover .issue { display: flex; justify-content: space-between; font-size: 1.35cqw; text-transform: uppercase; letter-spacing: .18em; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1.4cqw; position: relative; }
.mag-cover .tagline { font: 500 2cqw/1.35 var(--serif); opacity: .9; margin-top: 1.4cqw; max-width: 60cqw; position: relative; }
.mag-cover .lines { margin-top: auto; margin-bottom: 6cqw; position: relative; display: grid; gap: 2.2cqw; max-width: 56cqw; }
.mag-cover .lines div { border-left: .5cqw solid #2dd4bf; padding-left: 1.8cqw; }
.mag-cover .lines b { display: block; font: 700 2.9cqw/1.1 var(--serif); }
.mag-cover .lines span { font-size: 1.45cqw; opacity: .85; }
.mag-cover .lines .main b { font-size: 4.4cqw; }

/* Contents */
.toc { list-style: none; padding: 0; margin: 0 0 2cqw; counter-reset: toc; }
.toc li { display: grid; grid-template-columns: 5cqw 1fr; gap: 1.6cqw; padding: 1.3cqw 0; border-bottom: 1px solid var(--m-line); }
.toc li span { font: 700 3cqw/1 var(--serif); color: var(--m-accent); }
.toc li b { display: block; font: 700 1.8cqw/1.25 var(--serif); }
.toc li em { font-style: normal; color: var(--m-muted); font-size: 1.35cqw; }

/* Print: real A4 pages */
@media print {
  @page { size: A4; margin: 0; }
  body.magazine-view { background: #fff !important; }
  .site-header, .site-footer, .no-print, .preview-banner { display: none !important; }
  .mag-stack { padding: 0; gap: 0; display: block; }
  .mag-page { width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; break-after: page; page-break-after: always; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mag-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.sig { margin-top: 1.4cqw !important; font-size: 1.25cqw; line-height: 1.4; break-inside: avoid; }
.sig strong { font: 700 1.9cqw/1.2 var(--serif); color: var(--m-navy); }
.sig span { color: var(--m-muted); }
