/* GurapaEdu Insights · "The Waiting Country" · editorial data story (v3: professional palette, photo openers) */
:root {
  --paper: #FBFAF7;
  --tint: #F4F1EB;
  --card: #FFFFFF;
  --ink: #18202C;
  --ink2: #3A4250;
  --muted: #667080;
  --rule: #E4E0D8;
  --grid: #EDEAE3;
  --brand: #0B7A5C;
  --brand-soft: #E3F1EC;
  --gold: #B7862A;
  --hl: #F6E4AE;
  --mist: #EBF1F5;
  --mist2: #D9E5EE;
  --navy: #1C3554;
  --sea1: #3A6C97;
  --sea2: #1D4165;
  --ice: #F4F8FB;
  /* chart palette (validated: CVD-safe on white and mist, direct labels everywhere) */
  --c-blue: #2A5CB8;
  --c-orange: #D4572A;
  --c-green: #0B7A5C;
  --c-ghost: #CBD1D8;
  --sh: 0 1px 2px rgba(24, 32, 44, .05), 0 12px 32px -16px rgba(24, 32, 44, .25);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --head: "Bricolage Grotesque", "Figtree", sans-serif;
  --col: 680px;
  --wide: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19.5px; line-height: 1.68; }
a { color: var(--brand); }
b { font-weight: 700; }
img { max-width: 100%; }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .94); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 14px; font-family: var(--sans); }
.logo { font-family: var(--head); font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--brand); }
.sect { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--rule); }
.chapnav { display: flex; gap: 2px; margin-left: auto; }
.chapnav a { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.chapnav a:hover { color: var(--ink); background: var(--tint); }
.chapnav a.on { color: #fff; background: var(--ink); }
.draft { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--hl); color: #6B4E10; }
@media (max-width: 1020px) { .chapnav { display: none; } .draft { margin-left: auto; } }

/* hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 60px 22px 30px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.kicker { font-family: var(--sans); font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(52px, 7.6vw, 104px); line-height: .95; letter-spacing: -.025em; margin: 0 0 24px; }
.deck { font-size: 21.5px; line-height: 1.52; color: var(--ink2); margin: 0 0 20px; }
.deck em { font-style: italic; }
.byline { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 10px; }
.byline .av { flex: 0 0 34px; }
.byline b { color: var(--ink); }
.byline .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; letter-spacing: .02em; }
.hero-fig { margin: 0; padding: 22px 26px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--sh); }
.hero-k { font-family: var(--sans); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 4px; color: var(--muted); }
.hero-k b { color: var(--ink); }
.c-ghost { color: #8A93A0; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--grid); }
.hrow:first-child { border-top: 0; }
.hrow-l { font-family: var(--sans); font-weight: 700; font-size: 14px; margin: 0 0 2px; color: var(--ink2); }
.hrow-n { font-family: var(--sans); font-weight: 800; font-size: 33px; line-height: 1.05; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.hrow-c { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.hrow-c .chg { font-weight: 800; }
.hrow svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .deck { font-size: 19.5px; }
  .hrow-n { font-size: 28px; }
}

/* story column */
.story { max-width: var(--col); margin: 0 auto; padding: 8px 20px 40px; }
.story > p, .mist-in > p { margin: 0 0 1.15em; }
.lead-p { font-size: 22px; line-height: 1.58; margin-top: 34px !important; }
.hl { font-weight: 700; }

/* side notes: in the margin on wide screens, inline elsewhere */
.note { font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--ink2); margin: 0 0 1.2em; padding: 12px 16px; background: var(--card); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; }
.note b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }
@media (min-width: 1320px) {
  .note { float: right; clear: right; width: 236px; margin: 4px -290px 14px 0; padding: 2px 0 2px 14px; background: none; border-radius: 0; }
}

/* thesis: three cards */
.thesis { width: min(var(--wide), calc(100vw - 32px)); margin: 40px 0 10px 50%; transform: translateX(-50%); }
.thesis-k { font-family: var(--sans); font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: var(--muted); text-align: center; }
.thesis ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.thesis li { position: relative; padding: 20px 22px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); font-size: 16.5px; line-height: 1.55; }
.thesis li b:first-of-type { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.th-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.th-ic svg { width: 22px; height: 22px; }
.th-1 .th-ic { background: var(--brand-soft); color: var(--brand); }
.th-2 .th-ic { background: #FBE6DD; color: var(--c-orange); }
.th-3 .th-ic { background: #E2EAF6; color: var(--c-blue); }
@media (max-width: 820px) { .thesis ol { grid-template-columns: 1fr; } }

/* chapter openers */
.chap { margin: 96px 0 26px; padding-top: 26px; border-top: 1px solid var(--rule); position: relative; }
.chap-n { font-family: var(--sans); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 10px; }
.chap h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 12px; }
.chap-dek { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink2); margin: 0; }
/* photo opener: full-bleed picture, title on a dark gradient */
.chap-photo { width: 100vw; margin: 100px 0 0 50%; transform: translateX(-50%); height: clamp(420px, 70vh, 640px); color: #fff; overflow: hidden; background: var(--navy); }
.chap-photo .cp-img { position: absolute; inset: 0; }
.chap-photo .cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.6s ease; }
.chap-photo.seen .cp-img img { transform: scale(1); }
.chap-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 20, 30, .86) 0%, rgba(14, 20, 30, .5) 38%, rgba(14, 20, 30, 0) 70%); }
.chap-photo .cp-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 46px; max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 0 20px; }
.chap-photo .chap-n { color: #9FE3CC; }
.chap-photo h2 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.chap-photo .chap-dek { color: rgba(255, 255, 255, .9); }
.cp-credit { position: absolute; z-index: 2; right: 16px; bottom: 10px; margin: 0; font-family: var(--sans); font-size: 11.5px; color: rgba(255, 255, 255, .72); text-align: right; max-width: 70vw; }
.cp-credit a { color: inherit; }
.cp-split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #fff; }
.cp-split figure { margin: 0; position: relative; overflow: hidden; }
.cp-split img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-split .cp-tag { position: absolute; z-index: 3; top: 18px; left: 18px; font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.cp-split .cp-tag i { font-style: normal; font-weight: 800; }
.cp-split .up i { color: var(--c-blue); }
.cp-split .down i { color: var(--c-orange); }
@media (max-width: 700px) {
  .chap-photo { height: clamp(380px, 62vh, 520px); }
  .chap-photo .cp-txt { bottom: 62px; }
  .cp-credit { font-size: 10.5px; left: 16px; max-width: none; }
  .cp-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  #ch5.chap-photo { height: 640px; }
}
/* "in this chapter" key points under a photo opener */
.keys { margin: 26px 0 34px; padding: 16px 20px 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; font-family: var(--sans); }
.keys p { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.keys ul { list-style: none; margin: 0; padding: 0; }
.keys li { position: relative; padding: 0 0 10px 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
.keys li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.h-split, .h-plain { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.22; letter-spacing: -.01em; margin: 56px 0 16px; }
.tag { display: inline-block; vertical-align: 5px; font-family: var(--sans); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-right: 8px; }
.tag-good { background: var(--brand-soft); color: var(--brand); }
.tag-bad { background: #FBE6DD; color: #A63E17; }

/* inline photo */
.photo { margin: 34px 0 36px; }
.photo.wide { width: min(var(--wide), calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }
.photo img { display: block; width: 100%; height: auto; border-radius: 12px; }
.photo figcaption { font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 9px; }
.photo figcaption b { color: var(--ink2); }
.photo .cr { font-size: 12px; }
.photo .cr a { color: inherit; }

/* charts */
.chart { margin: 34px 0 40px; padding: 22px 22px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); }
.chart.wide { width: min(var(--wide), calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }
.chart h3 { font-family: var(--sans); font-weight: 800; font-size: 18.5px; line-height: 1.3; margin: 0 0 4px; }
.chart .sub { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.plot { width: 100%; position: relative; }
.plot svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.src { font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; border-top: 1px solid var(--grid); padding-top: 9px; }
.grid line { stroke: var(--grid); stroke-width: 1; }
.ax text { font-family: var(--sans); font-size: 12.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.lbl { font-family: var(--sans); font-size: 13.5px; font-weight: 700; fill: var(--ink); }
.lbl-s { font-family: var(--sans); font-size: 12.5px; font-weight: 500; fill: var(--muted); }
.halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.ann-t { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--ink2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.duo > div { min-width: 0; }
.multi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; }
.multi > div { min-width: 0; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } .multi { grid-template-columns: 1fr 1fr; } }
.mini-t { font-family: var(--sans); font-weight: 800; font-size: 14px; margin: 0 0 2px; }
.mini-s { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }

/* controls */
.ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-family: var(--sans); font-size: 14px; }
.ctrl label { font-weight: 700; }
.ctrl input[type=range] { flex: 1 1 200px; accent-color: var(--brand); min-width: 140px; }
.readout { font-size: 14px; color: var(--ink2); flex: 1 1 100%; }
.btn { font-family: var(--sans); font-weight: 700; font-size: 13.5px; padding: 8px 15px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; cursor: pointer; color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--tint); border-radius: 999px; margin-bottom: 12px; }
.seg button { font-family: var(--sans); font-weight: 700; font-size: 13px; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(24, 32, 44, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-family: var(--sans); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; cursor: pointer; color: var(--ink2); }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.geo { border-color: var(--c-green); background: var(--brand-soft); color: var(--c-green); cursor: default; }
.legend-line { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 0; }
.li { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.sw.sq { border-radius: 3px; }
.hero-fig .src { border-top: 0; padding-top: 0; }

/* scrollytelling */
.scrolly { position: relative; width: min(1200px, calc(100vw - 32px)); margin: 20px 0 40px 50%; transform: translateX(-50%); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
.sticky-fig { position: sticky; top: 78px; align-self: start; margin: 0; padding: 22px 22px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); grid-column: 1; grid-row: 1; }
.sticky-fig h3 { font-family: var(--sans); font-weight: 800; font-size: 18.5px; margin: 0 0 4px; }
.sticky-fig .sub { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.steps { grid-column: 2; grid-row: 1; padding: 30vh 0 34vh; }
.step { margin: 0 0 58vh; padding: 20px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; font-size: 17.5px; line-height: 1.55; opacity: .5; transition: opacity .3s, box-shadow .3s, border-color .3s; }
.step:last-child { margin-bottom: 0; }
.step.on { opacity: 1; border-color: transparent; box-shadow: 0 0 0 2px var(--brand), var(--sh); }
.step p { margin: 0 0 .7em; }
.step p:last-child { margin-bottom: 0; }
.step-k { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.step-note { font-family: var(--sans); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .scrolly { display: block; }
  .sticky-fig { top: 58px; z-index: 2; padding: 12px 12px 6px; }
  .sticky-fig .src { display: none; }
  .sticky-fig .sub { display: none; }
  .sticky-fig h3 { font-size: 16px; }
  .steps { position: relative; z-index: 3; padding: 6vh 0 10vh; }
  .step { margin-bottom: 70vh; opacity: 1; background: rgba(255, 255, 255, .97); font-size: 17px; }
}

/* "put another way": icon infographic */
.pw { margin: 36px 0; padding: 20px 22px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); }
.pw-label { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.pw-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; margin-bottom: 8px; }
.pw-num { font-family: var(--sans); font-weight: 800; font-size: 50px; line-height: 1; margin: 0; letter-spacing: -.03em; color: var(--c-orange); }
.pw-num small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.pw-txt { margin: 0; font-size: 17px; line-height: 1.55; }
.yrs { display: grid; grid-template-columns: repeat(8, 1fr) auto; gap: 6px; align-items: end; margin: 16px 0 4px; font-family: var(--sans); }
.yr { height: 46px; border-radius: 8px; background: var(--tint); position: relative; overflow: hidden; }
.yr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c-orange); transition: width .5s ease; }
.yr span { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 11.5px; font-weight: 800; color: #fff; z-index: 1; }
.yr.blank span { color: var(--muted); }
.yrs .home { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.yrs .home svg { width: 24px; height: 24px; }
.yrs-cap { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 560px) { .pw-row { grid-template-columns: 1fr; gap: 6px; } .pw-num { font-size: 40px; } .yr { height: 38px; } .yrs .home { width: 38px; height: 38px; } }

/* pictograms (people icons) */
.picto { margin: 34px 0 38px; padding: 20px 22px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); font-family: var(--sans); }
.picto h3 { font-family: var(--sans); font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.picto .sub { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.pic-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pic-blk p { margin: 0; }
.pic-big { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pic-lab { font-size: 14px; color: var(--ink2); margin: 4px 0 10px !important; }
.people { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px 3px; max-width: 290px; }
.people svg { width: 100%; height: auto; display: block; }
.people .p { fill: #DCE0E5; transition: fill .35s ease; }
.people.line { grid-template-columns: repeat(13, 1fr); max-width: 560px; gap: 6px; }
@media (max-width: 600px) { .pic-pair { grid-template-columns: 1fr; gap: 18px; } .pic-big { font-size: 34px; } }

/* timeline */
.tl-wrap { width: min(var(--wide), calc(100vw - 32px)); margin: 44px 0 30px 50%; transform: translateX(-50%); }
.tl-head { text-align: center; margin-bottom: 20px; }
.tl-head .chap-n { margin-bottom: 6px; }
.tl-head h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin: 0 0 6px; }
.tl-head p { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin: 0; }
.tl { position: relative; padding: 10px 0; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(var(--rule), var(--rule)); }
.tl-era { position: relative; z-index: 1; text-align: center; margin: 22px 0 14px; }
.tl-era span { display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; color: #fff; }
.tl-ev { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; margin: 0 0 10px; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.tl-ev.in { opacity: 1; transform: none; }
@media (min-width: 761px) { .tl-ev + .tl-ev { margin-top: -64px; } }
.tl-dot { grid-column: 2; justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 2px solid currentColor; display: grid; place-items: center; z-index: 1; }
.tl-dot svg { width: 19px; height: 19px; }
.tl-card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); padding: 14px 18px 12px; font-family: var(--sans); position: relative; }
.tl-ev.l .tl-card { grid-column: 1; grid-row: 1; }
.tl-ev.r .tl-card { grid-column: 3; grid-row: 1; }
.tl-ev.l .tl-dot, .tl-ev.r .tl-dot { grid-row: 1; }
.tl-yr { font-weight: 800; font-size: 13px; letter-spacing: .06em; margin: 0 0 2px; }
.tl-t { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0 0 4px; color: var(--ink); }
.tl-d { font-size: 14.5px; line-height: 1.5; color: var(--ink2); margin: 0; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--tint); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tl-chip svg { width: 13px; height: 13px; }
.tl-chip b { color: var(--ink); }
@media (max-width: 760px) {
  .tl::before { left: 20px; }
  .tl-era { text-align: left; padding-left: 0; }
  .tl-ev { grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
  .tl-dot { grid-column: 1 !important; }
  .tl-ev.l .tl-card, .tl-ev.r .tl-card { grid-column: 2; }
}


/* economics box */
.econ { width: min(var(--wide), calc(100vw - 32px)); margin: 44px 0 40px 50%; transform: translateX(-50%); background: var(--brand-soft); border-radius: 16px; padding: 28px 32px 18px; }
.econ-k { font-family: var(--sans); font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
.econ-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; }
.econ-grid p { margin: 0 0 1em; font-size: 18.5px; }
.econ-side { background: var(--card); border-radius: 12px; padding: 18px 20px 6px; }
.mini-k { font-family: var(--sans); font-weight: 800; font-size: 14px; margin: 0 0 10px !important; }
.ticks { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.ticks li { padding: 0 0 12px 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--c-orange); }
@media (max-width: 760px) { .econ-grid { grid-template-columns: 1fr; gap: 10px; } .econ { padding: 22px 18px 12px; } }

/* pull quote */
.pull { margin: 52px 0; padding: 0 0 0 0; font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); position: relative; }
.pull::before { content: "\201C"; display: block; font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 90px; line-height: .6; color: var(--brand); margin-bottom: 6px; }
.pull em { font-style: italic; color: var(--c-orange); }

/* legal / constitutional quote card */
.quote-legal { margin: 28px 0; padding: 18px 22px 16px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; box-shadow: var(--sh); }
.quote-legal .quote-k { font-family: var(--sans); font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.quote-legal .quote-txt { font-family: var(--serif); font-style: italic; font-size: 18.5px; line-height: 1.55; color: var(--ink); margin: 0; }
.quote-legal .quote-src { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* brain-drain chapter: light "mist" band (replaces the old dark section) */
.mist { background: var(--mist); width: 100vw; margin: 90px 0 0 50%; transform: translateX(-50%); padding: 10px 0 70px; }
.mist .chap { margin-top: 56px; border-top-color: var(--mist2); }
.mist-in { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
.mist .h-plain { color: var(--navy); }
.mist .chart, .mist .keys { border-color: var(--mist2); }
.mist .note { background: var(--card); }
@media (min-width: 1320px) { .mist .note { background: none; } }

/* iceberg: recorded vs recorded nowhere */
.berg { width: min(var(--wide), calc(100vw - 32px)); margin: 36px 0 40px 50%; transform: translateX(-50%); border-radius: 18px; overflow: hidden; font-family: var(--sans); box-shadow: var(--sh); }
.berg-sky { position: relative; background: linear-gradient(#F7FAFC, #E3EDF4); padding: 26px 20px 0; min-height: 230px; }
.berg-sky::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: var(--card); clip-path: polygon(18% 100%, 24% 62%, 33% 34%, 44% 8%, 51% 18%, 57% 4%, 66% 28%, 75% 50%, 82% 100%); }
.berg-sea { position: relative; background: linear-gradient(var(--sea1), var(--sea2)); padding: 30px 20px 40px; }
.berg-sea::before { content: ""; position: absolute; inset: 0 0 18px 0; background: var(--ice); opacity: .96; clip-path: polygon(22% 0, 78% 0, 90% 14%, 95% 40%, 88% 70%, 72% 92%, 50% 100%, 26% 94%, 10% 72%, 5% 40%, 11% 14%); }
.berg-sea::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 14px, transparent 14px 22px); }
.berg-k { position: relative; z-index: 1; text-align: center; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.berg-sky .berg-k { color: var(--muted); }
.berg-sea .berg-k { color: var(--sea2); margin-top: 8px; }
.berg ul { position: relative; z-index: 1; list-style: none; margin: 0 auto; padding: 0; }
.berg-tip { max-width: 430px; padding-top: 70px !important; padding-bottom: 14px !important; }
.berg-tip li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.35; padding: 4px 0; color: var(--ink); }
.berg-deep { max-width: 660px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; padding: 10px 0 20px !important; }
.berg-deep li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--mist2); }
.berg-deep li::before { content: "?"; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--c-orange); color: var(--c-orange); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.pm { flex: 0 0 22px; height: 22px; border-radius: 50%; font-weight: 800; display: grid; place-items: center; font-size: 15px; color: #fff; }
.pm.plus { background: var(--c-green); }
.pm.minus { background: #8A93A0; }
.berg-wl { position: absolute; z-index: 2; right: 18px; top: -24px; font-size: 11.5px; font-weight: 700; color: var(--sea1); }
@media (max-width: 760px) {
  .berg-sky::before { clip-path: polygon(6% 100%, 16% 50%, 34% 24%, 46% 6%, 54% 16%, 62% 4%, 74% 28%, 86% 46%, 94% 100%); height: 230px; }
  .berg-tip { padding-top: 40px !important; max-width: 300px; }
  .berg-sea::before { clip-path: polygon(3% 0, 97% 0, 99% 40%, 97% 82%, 86% 96%, 50% 100%, 14% 96%, 3% 82%, 1% 40%); }
  .berg-deep { grid-template-columns: 1fr; max-width: 290px; }
}
.fair { background: var(--card); padding: 18px 22px; border-radius: 14px; font-size: 17.5px; border: 1px solid var(--mist2); }

/* levers */
.levers { width: min(var(--wide), calc(100vw - 32px)); margin: 30px 0 40px 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lever { padding: 22px 22px 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); }
.lever-n { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 0 14px; }
.lever-n svg { width: 24px; height: 24px; }
.lever-k { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
.lever p { font-size: 16.5px; line-height: 1.55; margin: 0 0 1em; }
@media (max-width: 820px) { .levers { grid-template-columns: 1fr; } }

.closing { font-size: 22px; line-height: 1.58; margin-top: 30px !important; }

/* method */
.method { margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.method h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; }
.method ul { padding-left: 18px; }
.method li { margin-bottom: 8px; }
.method h3 { font-family: var(--sans); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
/* APA 7 reference list: alphabetical, hanging indent */
.method .refs { list-style: none; padding-left: 0; }
.method .refs li { padding-left: 2em; text-indent: -2em; overflow-wrap: anywhere; }
.dl { font-weight: 600; }

/* data tables */
.tbl { margin-top: 10px; font-family: var(--sans); font-size: 13px; }
.tbl summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.tw { max-height: 280px; overflow: auto; margin-top: 8px; border: 1px solid var(--grid); border-radius: 8px; }
.tbl table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 5px 9px; border-bottom: 1px solid var(--grid); text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { position: sticky; top: 0; background: var(--tint); }

/* tooltip */
.tip { position: fixed; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 8px; max-width: 280px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.tip b { font-weight: 800; }
.tip .r { display: flex; align-items: center; gap: 7px; }
.tip .k { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; border: 1px solid rgba(255, 255, 255, .5); }

/* footer */
.foot { border-top: 1px solid var(--rule); background: var(--tint); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 20px 22px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* gentle reveal for figures */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.chart.wide.rv, .photo.wide.rv, .berg.rv { transform: translate(-50%, 18px); }
.chart.wide.rv.in, .photo.wide.rv.in, .berg.rv.in { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .rv, .tl-ev { opacity: 1 !important; transition: none !important; }
  .rv:not(.wide):not(.berg) { transform: none !important; }
  .chap-photo .cp-img img { transform: none; transition: none; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .lead-p, .closing { font-size: 19.5px; }
  .chart { padding: 14px 12px 10px; }
  .pw, .picto { padding: 16px 14px 12px; }
}

/* ---------- v4: horizontal timeline stepper ---------- */
.tl-head h3 { margin-bottom: 4px; }
.tlx { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--sh); padding: 26px 26px 20px; }
.tlx-track { display: grid; grid-template-columns: repeat(12, 1fr); position: relative; margin: 0 0 22px; }
.tlx-stop { position: relative; background: none; border: 0; padding: 0 0 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--sans); color: var(--muted); }
.tlx-stop::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 4px; background: var(--grid); z-index: 0; }
.tlx-stop:first-child::before { left: 50%; }
.tlx-stop:last-child::before { right: 50%; }
.tlx-stop.done::before, .tlx-stop.on::before { background: var(--c); }
.tlx-stop.on::before { right: 50%; }
.tlx-stop.on:first-child::before { display: none; }
.tlx-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--c); transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.tlx-stop.done .tlx-dot { background: var(--c); }
.tlx-stop.on .tlx-dot { background: var(--c); transform: scale(1.18); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }
.tlx-stop:hover .tlx-dot { transform: scale(1.12); }
.tlx-stop:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.tlx-y { font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tlx-stop.on .tlx-y { color: var(--ink); font-weight: 800; }
.tlx-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; min-height: 170px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); }
.tlx-card.fade { animation: tlxIn .45s ease; }
@keyframes tlxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tlx-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--c); color: #fff; display: grid; place-items: center; }
.tlx-ic svg { width: 30px; height: 30px; }
.tlx-era { font-family: var(--sans); font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 2px; }
.tlx-yr { font-family: var(--sans); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 4px; color: var(--ink); }
.tlx-card .tl-t { font-size: 20px; }
.tlx-card .tl-d { font-size: 15.5px; max-width: 640px; }
.tlx-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-family: var(--sans); }
.tlx-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-main:hover { background: var(--brand); border-color: var(--brand); }
@media (max-width: 700px) {
  .tlx { padding: 18px 12px 14px; }
  .tlx-dot { width: 18px; height: 18px; border-width: 2.5px; }
  .tlx-stop::before { top: 7px; height: 3px; }
  .tlx-y { display: none; }
  .tlx-stop.on .tlx-y { display: block; position: absolute; top: 28px; }
  .tlx-track { margin-bottom: 34px; }
  .tlx-card { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .tlx-ic { width: 46px; height: 46px; border-radius: 14px; }
  .tlx-ic svg { width: 24px; height: 24px; }
  .tlx-yr { font-size: 24px; }
}

/* ---------- v4: "what nobody counts" icon tiles ---------- */
.tiles { width: min(var(--wide), calc(100vw - 32px)); margin: 34px 0 40px 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--mist2); border-radius: 16px; box-shadow: var(--sh); padding: 24px 26px 22px; font-family: var(--sans); }
.tiles.rv { transform: translate(-50%, 18px); }
.tiles.rv.in { transform: translateX(-50%); }
.tiles h3 { font-family: var(--sans); font-weight: 800; font-size: 18.5px; margin: 0 0 12px; }
.tiles-see { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tiles-see span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink2); background: var(--brand-soft); padding: 7px 14px 7px 8px; border-radius: 999px; }
.tiles-see i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.tiles-see i svg { width: 15px; height: 15px; }
.tiles-k { font-weight: 800; font-size: 15px; margin: 0 0 12px; color: var(--ink); }
.tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles-grid div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #FDF3EE; border: 1px solid #F6DCCF; }
.tiles-grid i { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--c-orange); color: #fff; display: grid; place-items: center; }
.tiles-grid i svg { width: 21px; height: 21px; }
.tiles-grid p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
@media (max-width: 760px) { .tiles { padding: 18px 14px; } .tiles-grid { grid-template-columns: 1fr; } }

/* ---------- v4: market for staying ---------- */
.ext-steps { list-style: none; counter-reset: s; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-family: var(--sans); }
.ext-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 48px; background: var(--tint); border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.ext-steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink2); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ext-people { grid-template-columns: repeat(50, 1fr) !important; max-width: 100% !important; gap: 4px 2px !important; margin-top: 16px; }
@media (max-width: 760px) { .ext-steps { grid-template-columns: 1fr; } .ext-people { grid-template-columns: repeat(25, 1fr) !important; } }

/* ---------- v4: rings ---------- */
.donuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.donuts svg { margin: 0 auto; }
.donut-l { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink2); margin: 6px 0 0; }

/* ---------- v5: timeline with photo card, year axis and births line ---------- */
.tlx { --c: var(--c-orange); padding: 22px 28px 18px; }
.tlv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.tlv { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 40px; align-items: start; }
.tlv-photo { margin: 6px 0 0; position: relative; }
.tlv-frame { background: #fff; padding: 10px; border-radius: 4px; box-shadow: 0 2px 4px rgba(24, 32, 44, .08), 0 16px 34px -14px rgba(24, 32, 44, .4); transform: rotate(-1.4deg); aspect-ratio: 4 / 3; overflow: hidden; }
.tlv-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; opacity: 0; transform: scale(1.03); transition: opacity .45s ease, transform .9s ease; }
.tlv-frame img.in { opacity: 1; transform: none; }
.tlv-frame.contain { background: #F1EEE7; }
.tlv-frame.contain img { object-fit: contain; padding: 10px; background: #F1EEE7; }
.tape { position: absolute; z-index: 2; top: -12px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: rgba(246, 222, 150, .88); transform: rotate(2.5deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tlv-photo figcaption { font-family: var(--sans); font-size: 12.5px; line-height: 1.45; color: var(--ink2); margin: 14px 4px 0; }
.tlv-photo figcaption span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tlv-photo figcaption a { color: inherit; }
.tlv-txt { font-family: var(--sans); padding-top: 2px; }
.tlv-txt.fade { animation: tlxIn .45s ease; }
.tlv-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.tlv-n { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; background: var(--navy); color: #F6DE96; }
.tlv-cat { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; border: 1.5px solid var(--c); color: var(--c); }
.tlv-date { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.tlv-t { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 12px; color: var(--ink); }
.tlv-d { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink2); margin: 0 0 12px; }
.tlv-imp { margin: 0 0 14px; padding: 12px 16px; background: color-mix(in srgb, var(--c) 7%, #fff); border-left: 4px solid var(--c); border-radius: 0 10px 10px 0; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
.tlv-imp b { color: var(--ink); }
.tlv-births { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink2); margin: 0 0 10px; }
.tlv-births b { color: var(--ink); font-size: 15px; }
.tlv-births .bar { height: 8px; border-radius: 999px; background: var(--grid); overflow: hidden; }
.tlv-births .bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); transition: width .5s ease; }
.tlv-births .pct { font-size: 12.5px; color: var(--muted); }
.tlv-src { font-size: 12px; color: var(--muted); margin: 0; }
.tlv-axis { margin: 0 -6px 22px; padding-bottom: 8px; border-bottom: 1px solid var(--grid); }
#tlx .tlx-nav { margin: 0 0 4px; }
.tlv-axis svg { display: block; overflow: visible; }
.tlv-dot circle { transition: r .2s ease; }
.tlv-dot:focus-visible { outline: none; }
.tlv-dot:focus-visible circle:nth-last-child(1) { stroke: var(--brand); stroke-width: 2; }
@media (max-width: 860px) {
  .tlv { grid-template-columns: 1fr; gap: 22px; }
  .tlv-frame { transform: rotate(-1deg); }
}
@media (max-width: 560px) {
  .tlx { padding: 16px 14px 14px; }
  .tlv-d { font-size: 16.5px; }
  .tlv-births { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 620px) {
  #tlx .tlv-axis { margin-bottom: 14px; padding-bottom: 4px; }
}

/* compact timeline card: fits one screen, also on zoomed laptops (about 520px of height) */
.tlx { padding: 16px 24px 16px; }
#tlx .tlx-nav { margin: 0; }
#tlx .tlx-nav .btn { padding: 6px 14px; font-size: 13px; }
.tlv-axis { margin: 0 -6px 16px; padding-bottom: 4px; }
.tlv { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 32px; }
.tlv-frame { padding: 8px; }
.tlv-photo figcaption { margin-top: 10px; font-size: 12px; }
.tlv-pills { align-items: center; margin-bottom: 8px; }
.tlv-pills .tlv-date { margin: 0 0 0 4px; }
.tlv-t { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 8px; }
.tlv-d { font-size: 16px; margin-bottom: 10px; }
.tlv-imp { padding: 9px 14px; font-size: 14.5px; margin-bottom: 10px; }
.tlv-births { margin-bottom: 6px; }
@media (max-width: 860px) { .tlv { grid-template-columns: 1fr; } .tlv-photo { max-width: 420px; } }
@media (min-width: 861px) and (max-height: 659px) {
  .tlv { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); }
  .tlv-t { font-size: 24px; }
  .tlv-d { font-size: 15.5px; line-height: 1.45; }
}
/* timeline buttons: higher up, brand colours (no black) */
.tlx { padding-top: 10px; }
#tlx .tlx-nav { margin: 0 0 -10px; position: relative; z-index: 2; }
#tlx .tlx-nav .btn { border: 0; font-weight: 800; padding: 7px 16px; }
#tlx .tlx-nav [data-d="-1"] { background: var(--brand-soft); color: var(--brand); }
#tlx .tlx-nav [data-d="-1"]:hover:not(:disabled) { background: #CDE8DE; }
#tlx .tlx-nav [data-d="1"] { background: var(--brand); color: #fff; }
#tlx .tlx-nav [data-d="1"]:hover:not(:disabled) { background: #096A50; }
#tlx .tlx-nav .btn:disabled { opacity: .45; }
#tlx.flat .tlx-nav { margin: 4px 0 8px; }
#tlx.flat { padding-bottom: 10px; } #tlx.flat .tlv-axis { margin-bottom: 12px; }
.tl-wrap { margin-bottom: 0; } .tl-wrap + .chap { margin-top: 44px; }
/* chapter menu: same as the main site menu (underline grows under the chapter being read, no dark pill) */
.chapnav { gap: 18px; }
.chapnav a { position: relative; padding: 4px 0; border-radius: 0; font-weight: 700; transition: color .25s ease; }
.chapnav a:hover { background: none; color: var(--ink); }
.chapnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.chapnav a:hover::after, .chapnav a.on::after { transform: scaleX(1); transform-origin: 0 50%; }
.chapnav a.on { color: var(--ink); background: none; }
/* compact hero panel: fully visible on the first screen, also on zoomed laptops */
.hero { padding-top: 40px; padding-bottom: 20px; }
.hero-fig { padding: 16px 22px 10px; }
.hero-k { font-size: 12px; margin-bottom: 2px; }
.hrow { padding: 8px 0; gap: 16px; }
.hrow-l { font-size: 13px; margin-bottom: 1px; }
.hrow-n { font-size: 27px; }
.hrow-c { font-size: 12.5px; margin-top: 1px; }
.hero-fig .src { margin-top: 6px; font-size: 12px; }
@media (max-width: 900px) { .hrow-n { font-size: 25px; } }
.hero { align-items: start; padding-top: 30px; }
.hero-fig { margin-top: 6px; }
.hrow { padding: 7px 0; }
@media (max-height: 660px) and (min-width: 901px) {
  h1 { font-size: clamp(52px, 6.4vw, 84px); margin-bottom: 18px; }
  .deck { font-size: 19px; }
  .kicker { margin-bottom: 12px; }
}
@media (max-height: 660px) and (min-width: 901px) { .deck { font-size: 18px; line-height: 1.45; margin-bottom: 14px; } }

/* ---------- missing babies on a map (pins) ---------- */
.mx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mx-head .sub { max-width: 620px; }
.mx-ctrl { display: flex; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 10px; }
.mx-ctrl .seg { margin-bottom: 0; }
.mx-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: center; }
.mx-map svg { display: block; overflow: visible; }
.mx-panel { font-family: var(--sans); }
.mx-big { font-weight: 800; font-size: 64px; line-height: .95; letter-spacing: -.04em; margin: 0; color: var(--c-orange); font-variant-numeric: tabular-nums; }
.mx-unit { font-weight: 800; font-size: 15px; margin: 4px 0 12px; color: var(--ink); }
.mx-txt { font-size: 15px; line-height: 1.5; color: var(--ink2); margin: 0 0 14px; }
.mx-meter { height: 10px; border-radius: 999px; background: var(--grid); overflow: hidden; }
.mx-meter span { display: block; height: 100%; border-radius: 999px; background: var(--c-orange); transition: width .8s ease; }
.mx-meter-l { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.mx-meter-l b { color: var(--ink); }
.mx-names { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.mx-names b { color: var(--ink2); }
.pin { cursor: default; }  /* no question-mark cursor on the map pins (tutor 2026-11-03) */
@media (max-width: 820px) {
  .mx-body { grid-template-columns: 1fr; gap: 12px; }
  .mx-big { font-size: 48px; }
}
/* map gets the space: narrower, smaller side panel that starts at the top */
.mx-body { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; align-items: start; }
.mx-panel { padding-top: 8px; }
.mx-big { font-size: 46px; }
.mx-unit { font-size: 13.5px; margin: 2px 0 10px; }
.mx-txt { font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.mx-meter { height: 8px; }
.mx-meter-l { font-size: 12px; line-height: 1.45; }
.mx-names { font-size: 12px; }
@media (max-width: 820px) { .mx-body { grid-template-columns: 1fr; } .mx-big { font-size: 42px; } }
.mx-occ { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12.5px; color: #8E3329; margin: 8px 0 0; }
.mx-occ .sw { flex: 0 0 14px; width: 14px; height: 14px; background: repeating-linear-gradient(45deg, #EDB3AA 0 2px, #F8DEDA 2px 6px); border: 1px solid #D98C80; }

/* ---------- three periods (replaces the "three arguments" cards) ---------- */
.eras { width: min(var(--wide), calc(100vw - 32px)); margin: 30px 0 10px 50%; transform: translateX(-50%); }
.eras.rv { transform: translate(-50%, 18px); }
.eras.rv.in { transform: translateX(-50%); }
.eras-grid { display: grid; grid-template-columns: 13fr 10fr 13fr; gap: 14px; }
.era { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: 14px; box-shadow: var(--sh); padding: 16px 18px 12px; font-family: var(--sans); min-width: 0; }
.era-n { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin: 0; }
.era-y { font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 2px 0 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.era-d { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: var(--ink2); margin: 0 0 10px; }
.era-m { border-top: 1px solid var(--grid); padding-top: 8px; margin-top: 8px; }
.era-l { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; }
.era-v { font-size: 13.5px; color: var(--ink2); margin: 1px 0 2px; font-variant-numeric: tabular-nums; }
.era-v b { color: var(--ink); }
.era-v i { font-style: normal; font-weight: 800; margin-left: 4px; }
.era-sp svg { display: block; width: 100%; }
.eras .src { margin-top: 10px; }
@media (max-width: 760px) { .eras-grid { grid-template-columns: 1fr; } }
.era-d { min-height: 2.9em; } @media (max-width: 760px) { .era-d { min-height: 0; } }

/* "put another way": calm editorial version (no blocks, no icon) */
.pw .pw-row { grid-template-columns: 170px 1fr; align-items: start; }
.pw .pw-num { color: var(--ink); font-size: 46px; letter-spacing: -.03em; }
.pw .pw-num small { font-size: 12.5px; font-weight: 600; color: var(--muted); max-width: 140px; line-height: 1.35; margin-top: 6px; }
.pw-chart { margin: 14px 0 2px; }
.pw-chart svg { display: block; overflow: visible; }
.pw .yrs-cap { border-top: 1px solid var(--grid); padding-top: 8px; margin-top: 6px; }
@media (max-width: 560px) { .pw .pw-row { grid-template-columns: 1fr; } }

/* ---------- report-style box with a photo background (Box 1 · Housing) ---------- */
.boxed { position: relative; width: min(var(--wide), calc(100vw - 32px)); margin: 44px 0 44px 50%; transform: translateX(-50%); border-radius: 18px; overflow: hidden; padding: 210px 34px 34px; background: var(--navy); box-shadow: var(--sh); }
.boxed.rv { transform: translate(-50%, 18px); }
.boxed.rv.in { transform: translateX(-50%); }
.boxed-bg { position: absolute; inset: 0; background: url(img/box-housing.jpg) center 30% / cover no-repeat; }
.boxed-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28, 53, 84, .25) 0%, rgba(28, 53, 84, .55) 45%, rgba(28, 53, 84, .82) 100%); }
.boxed-card { position: relative; z-index: 1; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-radius: 14px; padding: 26px 30px 18px; font-family: var(--serif); }
.boxed-k { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange); margin: 0 0 4px; }
.boxed-t { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; margin: 0 0 18px; color: var(--ink); }
.boxed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 14px; }
.boxed-fig { margin: 0; padding: 14px 16px 10px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.boxed-fig-t { font-family: var(--sans); font-weight: 800; font-size: 13.5px; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.boxed-fig .pw-num { font-family: var(--sans); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; margin: 0; color: var(--ink); }
.boxed-fig .pw-num small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.boxed-fig .src { font-size: 11.5px; }
.boxed-lead { font-family: var(--sans); font-weight: 800; font-size: 19px; line-height: 1.35; color: var(--c-orange); margin: 0 0 12px !important; }
.boxed-card p { font-size: 17px; line-height: 1.6; margin: 0 0 12px; color: var(--ink2); }
.hk { font-weight: 700; color: var(--c-orange); }
.boxed-card .boxed-cr { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.boxed-cr a { color: inherit; }
@media (max-width: 760px) {
  .boxed { padding: 150px 12px 12px; }
  .boxed-card { padding: 18px 16px 12px; }
  .boxed-grid { grid-template-columns: 1fr; gap: 16px; }
  .boxed-card p { font-size: 16px; }
}
.boxed-card .boxed-k { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--c-orange); margin: 0 0 4px; }
.boxed-card .boxed-lead { font-family: var(--sans); font-weight: 800; font-size: 19px; line-height: 1.35; color: var(--c-orange); }
.boxed-card .boxed-fig-t { font-family: var(--sans); font-size: 13.5px; line-height: 1.35; color: var(--ink); margin: 0 0 8px; }
.boxed-card .boxed-fig .pw-num { font-size: 44px; line-height: 1; color: var(--ink); margin: 0; }
.boxed-bg { background-position: center 62%; }
.boxed { padding-top: 250px; }
@media (max-width: 760px) { .boxed { padding-top: 160px; } }
.boxed-bg { inset: 0 0 auto 0; height: 600px; background-position: center 42%; background-size: cover; }
.boxed-bg::after { background: linear-gradient(to bottom, rgba(28, 53, 84, .15) 0%, rgba(28, 53, 84, .45) 55%, rgba(28, 53, 84, 1) 100%); }
@media (max-width: 760px) { .boxed-bg { height: 420px; background-position: center 45%; } }
/* photo shows through the card, like a printed report box */
.boxed-bg { inset: 0; height: auto; background-position: center 38%; background-size: cover; }
.boxed-bg::after { background: linear-gradient(to bottom, rgba(28, 53, 84, .05) 0%, rgba(28, 53, 84, .22) 60%, rgba(28, 53, 84, .4) 100%); }
.boxed-card { background: rgba(255, 255, 255, .78); backdrop-filter: blur(2px) saturate(1.05); -webkit-backdrop-filter: blur(2px) saturate(1.05); box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .45); }
.boxed-fig { background: rgba(255, 255, 255, .9); }
.boxed-card p, .boxed-card .boxed-t { text-shadow: 0 0 12px rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .boxed-bg { height: auto; } .boxed-card { background: rgba(255, 255, 255, .84); } }

/* ---------- report-style table: what the statistics see (replaces the icon tiles) ---------- */
.ledger2 { width: min(var(--wide), calc(100vw - 32px)); margin: 34px 0 40px 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--mist2); border-radius: 14px; box-shadow: var(--sh); padding: 24px 28px 18px; font-family: var(--sans); }
.ledger2.rv { transform: translate(-50%, 18px); }
.ledger2.rv.in { transform: translateX(-50%); }
.ledger2 h3 { font-weight: 800; font-size: 18.5px; margin: 0 0 4px; }
.ledger2 .sub { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.ledger2 table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.ledger2 th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 2px solid var(--ink); }
.ledger2 td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--grid); vertical-align: top; color: var(--ink2); }
.ledger2 td:first-child { width: 52%; color: var(--ink); font-family: var(--serif); font-size: 16.5px; }
.ledger2 td:last-child { font-size: 13.5px; color: var(--muted); }
.ledger2 tr:last-child td { border-bottom: 0; }
.ledger2 .st { display: block; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.ledger2 .st.yes { color: var(--brand); }
.ledger2 .st.part { color: #9A6B12; }
.ledger2 .st.no { color: var(--c-orange); }
.ledger2 tbody tr:nth-child(4) td { border-top: 2px solid var(--rule); }
@media (max-width: 640px) {
  .ledger2 { padding: 18px 14px 12px; }
  .ledger2 td:first-child { width: 56%; font-size: 15px; }
}

/* ---------- brain drain ripples ---------- */
.rip svg { display: block; margin: 6px auto 0; overflow: visible; }
.rip-l { font-family: var(--sans); font-weight: 700; paint-order: stroke; stroke: rgba(255, 255, 255, .55); stroke-width: 3px; transition: fill .4s ease; }
.rip-k { font-family: var(--sans); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rip-c { font-family: var(--sans); font-weight: 800; }
.rip-note { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink2); text-align: center; max-width: 640px; margin: 14px auto 0; min-height: 3em; }
.rip-key { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.rip-key .li { gap: 6px; }
.rip-list { margin: 10px 0 0; font-family: var(--sans); }
.rip-list p { margin: 0 0 6px; padding: 7px 10px; border-left: 4px solid var(--c); background: var(--f); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.rip-list b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }

/* ---------- brain drain iceberg (drawn) ---------- */
.berg2 svg { display: block; margin: 8px auto 0; border-radius: 12px; overflow: hidden; }
.b-l { font-family: var(--sans); font-weight: 700; }
.b-k { font-family: var(--sans); font-weight: 800; letter-spacing: .12em; }
.b-wl { font-family: var(--sans); font-weight: 700; fill: #4E7898; }
.b-q { font-family: var(--sans); font-weight: 700; fill: #4E7898; font-style: italic; }
.b-l, .b-k { paint-order: stroke; stroke: rgba(255, 255, 255, .75); stroke-width: 3px; stroke-linejoin: round; }

/* hero row 1: economy, yearly growth bars + one line of exact growth rates (2026-10-28) */
.hrow-gdp { row-gap: 3px; }
.hrow-g { grid-column: 1 / -1; margin: 4px 0 0; font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--muted); }
.hrow-gl { margin-right: 6px; }
.hrow-gi { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.hrow-gy { color: var(--muted); }
.hrow-gv { color: var(--ink2); font-weight: 800; font-variant-numeric: tabular-nums; }
.hrow-sep { display: inline-block; margin: 0 6px; color: var(--c-ghost); user-select: none; }
@media (max-width: 480px) {
  .hrow-sep { margin: 0 5px; }
  .hrow-gl { margin-right: 5px; }
}

/* hero: left column ends level with the panel (tutor 2026-10-28); byline sits at the bottom */
@media (min-width: 901px) { .hero { align-items: stretch; } .hero-fig { align-self: start; } .hero-txt { display: flex; flex-direction: column; } .hero-txt .byline { margin-top: auto; } }
.deck2 { font-size: 18.5px; color: var(--muted); }
/* on taller desktop screens the deck font is larger and already fills the column, so the extra paragraph is not needed */
@media (min-width: 901px) and (min-height: 661px) { .deck2 { display: none; } }
@media (max-height: 660px) and (min-width: 901px) { .deck2 { font-size: 17px; } }
.byline { display: block; }
/* taller desktop screens: balance the longer deck (with the question) against the panel */
@media (min-width: 901px) and (min-height: 661px) { .deck { font-size: 20px; line-height: 1.5; } .hrow { padding: 10px 0; } }
/* larger timeline photo (tutor 2026-10-28): fills the empty space under the text; the card still fits one screen */
@media (min-width: 861px) { .tlv { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }
@media (min-width: 861px) and (max-height: 659px) { .tlv { grid-template-columns: minmax(0, 345px) minmax(0, 1fr); } }
/* Box 1 · Figure 2 (cash vs mortgage), full width under the two columns */
.boxed-fig2 { margin: 4px 0 16px; }
.boxed-card .boxed-fig-sub { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: -4px 0 6px !important; line-height: 1.4 !important; }
/* shocks chart: what happened in each shaded band, written out under the chart (no hover needed) */
.fig-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; margin: 14px 0 0; padding: 0; font-family: var(--sans); }
.fig-notes > div { border-top: 2px solid #E9B9A4; padding-top: 7px; }
.fig-notes dt { font-weight: 800; font-size: 13px; color: var(--ink); margin: 0 0 3px; }
.fig-notes dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink2); }
@media (max-width: 860px) { .fig-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fig-notes { grid-template-columns: 1fr; gap: 10px; } }
/* Chapter 6: three priorities as a numbered report list (replaced the icon cards, tutor 2026-10-30), then the limits */
.agenda { width: min(var(--wide), calc(100vw - 32px)); margin: 34px 0 40px 50%; transform: translateX(-50%); font-family: var(--sans); }
.agenda-k, .limits h3 { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.agenda-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.agenda-list li { display: grid; grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr); gap: 0 28px; padding: 24px 0 20px; border-bottom: 1px solid var(--rule); }
.ag-n { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1; color: var(--brand); }
.agenda-list h3 { font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.25; margin: 0; color: var(--ink); }
.ag-body p { font-family: var(--serif); font-size: 17.5px; line-height: 1.6; color: var(--ink); margin: 0 0 10px; }
.ag-body .ag-ev { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink2); margin: 0; }
.ag-ev b { color: var(--ink); }
.ag-ev a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.limits { margin-top: 30px; padding: 22px 26px 8px; background: var(--paper2, #F4F1EB); border-left: 3px solid var(--ink2); }
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.limits li { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 0 0 14px; }
.limits li b { color: var(--ink); }
@media (max-width: 860px) {
  .agenda-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; }
  .agenda-list h3 { grid-column: 2; }
  .ag-body { grid-column: 2; }
  .ag-n { font-size: 28px; grid-row: 1; }
  .limits ul { grid-template-columns: 1fr; }
}

/* timeline, 2026-10-30 redesign: period label, two short texts side by side, births strip */
.tlv-k { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.tlv-era { font-family: var(--sans); font-weight: 800; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--c); padding: 4px 10px; border-radius: 4px; }
.tlv-k .tlv-date { margin: 0; }
.tlv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 4px 0 16px; padding-top: 14px; border-top: 1px solid var(--grid); }
.tlv-cols p { font-family: var(--serif); font-size: 15.5px; line-height: 1.5; color: var(--ink2); margin: 0; }
.tlv-cols .tlv-h { font-family: var(--sans); font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 6px; }
.tlv-bw { margin: 0 0 8px; }
.tlv-bl { font-family: var(--sans); font-size: 13px; color: var(--ink2); margin: 0 0 6px; }
.tlv-bl b { color: var(--ink); font-size: 14.5px; }
.tlv-bl span { color: var(--muted); }
.tlv-bars svg { display: block; width: 100%; height: auto; }
.tlv-ax { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin: 3px 0 0; }
#tlx .tlv-axis { border-bottom: 1px solid var(--grid); margin: 6px -6px 18px; padding-bottom: 2px; }
@media (max-width: 760px) { .tlv-cols { grid-template-columns: 1fr; gap: 12px; } }
@media (min-width: 861px) and (max-height: 659px) { .tlv-cols p { font-size: 14.5px; line-height: 1.45; } .tlv-cols { gap: 18px; margin-bottom: 10px; padding-top: 10px; } }
@media (min-width: 861px) and (max-height: 699px) {
  #tlx { padding-top: 8px; padding-bottom: 12px; }
  #tlx .tlv-axis { margin: 0 -6px 12px; }
  .tlv { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 26px; }
  .tlv-k { margin-bottom: 4px; }
  .tlv-t { font-size: 24px; margin-bottom: 6px; }
  .tlv-d { font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
  .tlv-cols { padding-top: 8px; margin-bottom: 8px; }
  .tlv-cols p { font-size: 14px; line-height: 1.42; }
  .tlv-bl { margin-bottom: 3px; font-size: 12.5px; }
  .tlv-ax { display: none; }
  .tlv-src { font-size: 11.5px; }
  .tlv-photo figcaption { font-size: 11.5px; }
}
/* no box around a timeline dot after a click (keyboard focus still shows as a ring on the dot) */
.tlv-dot:focus, .tlv-dot:focus-visible { outline: none; }
.tlv-axis svg { -webkit-tap-highlight-color: transparent; }
/* births line in the timeline card: taller, years and source on one line under it */
.tlv-ax { align-items: baseline; gap: 12px; }
.tlv-ax .tlv-src { flex: 1; text-align: center; margin: 0; }
@media (min-width: 861px) and (max-height: 699px) { .tlv-ax { display: flex; font-size: 11px; margin-top: 2px; } .tlv-bw { margin-bottom: 0; } }
@media (min-width: 861px) and (max-height: 699px) { .tlv { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; } .tlv-cols { gap: 16px; } .tlv-d { margin-bottom: 6px; } }
@media (min-width: 861px) and (max-height: 699px) { .tlv-cols p { font-size: 13.8px; line-height: 1.4; } .tlv-cols .tlv-h { margin-bottom: 3px; } }

/* Baltic lesson (2026-10-31 redesign): EU members above, Georgia's group below; income track + migration bars */
.bl-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 13px; color: var(--ink2); margin: 0 0 14px; }
.bl-key span { display: inline-flex; align-items: center; gap: 7px; }
.bl-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bl-key i.bl-key80 { width: 0; height: 14px; border-radius: 0; border-left: 2px dashed var(--ink2); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.bl-row { grid-column: 1 / -1; font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 10px 0 10px; padding-top: 12px; border-top: 1px solid var(--grid); }
.bl-row:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.bl { min-width: 0; margin-bottom: 18px; padding: 14px 14px 6px; border-radius: 12px; }
.bl-geo { background: #F1F8F5; box-shadow: inset 0 0 0 1.5px var(--brand); }
.bl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bl-n { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 0; }
.bl-geo .bl-n { color: var(--brand); }
.bl-st { font-family: var(--sans); font-weight: 800; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; }
.bl-st.up { background: #DDF0E8; color: #0B6B50; }
.bl-st.no { background: #FBE3E3; color: #A61E1E; }
.bl-l { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.bl-track { position: relative; height: 10px; border-radius: 999px; background: #E8ECF0; margin: 0 0 6px; }
.bl-track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #A9C9BC, var(--brand)); }
.bl-track .bl-80 { position: absolute; left: 80%; top: -5px; bottom: -5px; border-left: 2px dashed var(--ink2); }
.bl-track b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.bl-track .bl-a { background: #fff; border: 2px solid #A9C9BC; }
.bl-track .bl-b { background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--brand); }
.bl-iv { display: flex; justify-content: space-between; gap: 8px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.bl-iv b { color: var(--ink); }
.bl-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 860px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bl-grid { grid-template-columns: 1fr; } }
.bl-h { flex-direction: column; align-items: flex-start; gap: 6px; }
/* population index chips: chosen country in blue (no black buttons) */
#popChips .chip.on { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
#popChips .chip:not(.on):not(.geo):hover { border-color: var(--c-blue); color: var(--c-blue); }

/* hero deck as the puzzle (2026-11-02): what we hear, what the data show, the answer; rises green, falls red as in the panel */
.deck-p { display: block; }
.deck-p + .deck-p { margin-top: .6em; }
.deck b.up { color: var(--c-green); }
.deck b.down { color: #D62828; }
.deck b.turn { color: var(--ink); }
/* the deck now carries the whole puzzle, so the extra paragraph is gone and both columns are rebalanced to end level */
.deck2 { display: none !important; }
@media (min-width: 901px) and (min-height: 661px) { h1 { font-size: clamp(52px, 6.6vw, 88px); margin-bottom: 20px; } .deck { font-size: 18.5px; } .hrow { padding: 12px 0; } }
@media (min-width: 901px) and (max-height: 660px) { .hrow { padding: 6px 0; } }

/* phones: a sideways drag along a chart moves the reading, an up-down swipe still scrolls the page */
.story svg, .hero-fig svg, figure svg { touch-action: pan-y; }

/* new title (2026-11-02): "Economic Boom and Baby Bust in Georgia" is longer, so it is set smaller, on two lines */
h1.h1-long { font-size: clamp(40px, 4.7vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
@media (min-width: 901px) and (max-height: 660px) { h1.h1-long { font-size: clamp(40px, 4.3vw, 58px); } }
@media (max-width: 900px) { h1.h1-long { font-size: clamp(34px, 8.6vw, 54px); } }

/* Georgian pages (lang="ka", 2026-11-02): Georgian letters from Noto, Latin letters and numbers from the usual fonts;
   Georgian has no capital letters in running text, so no uppercase and no wide letter spacing */
html[lang="ka"] { --serif: "Source Serif 4", "Noto Serif Georgian", Georgia, serif; --sans: "Figtree", "Noto Sans Georgian", system-ui, sans-serif; --head: "Bricolage Grotesque", "Noto Sans Georgian", sans-serif; }
html[lang="ka"] *, html[lang="ka"] *::before, html[lang="ka"] *::after { text-transform: none !important; letter-spacing: normal !important; }
html[lang="ka"] svg text { letter-spacing: normal !important; }

/* language switch in the header (English <-> Georgian pages, 2026-11-02) */
.wc-lang { margin-left: 16px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.wc-lang:hover { color: var(--brand); border-color: var(--brand); }
.wc-lang .l-short { display: none; }
@media (max-width: 760px) { .wc-lang { margin-left: 10px; padding: 3px 8px; } .wc-lang .l-long { display: none; } .wc-lang .l-short { display: inline; } }
@media (max-width: 400px) { .wc-lang { margin-left: 6px; padding: 2px 6px; font-size: 12px; } }
/* Georgian titles: Georgian words are long, so headings are set smaller and the body a touch smaller */
html[lang="ka"] h1.h1-long { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.12; }
html[lang="ka"] h1:not(.h1-long) { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; }
html[lang="ka"] .wc-h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.12; }
html[lang="ka"] .deck { font-size: 17px; line-height: 1.6; }
html[lang="ka"] .story p, html[lang="ka"] .story li { font-size: .95em; }
@media (max-width: 900px) { html[lang="ka"] h1.h1-long { font-size: clamp(26px, 6.6vw, 38px); } html[lang="ka"] .deck { font-size: 16px; } }
/* timeline card without the births columns (tutor 2026-11-02): births + source as one line, the room goes to the text */
.tlv-foot { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; padding-top: 10px; border-top: 1px solid var(--grid); }
.tlv-foot b { color: var(--ink2); }
/* short laptops: the space freed by the births columns goes back to the photo and the text */
@media (min-width: 861px) and (max-height: 699px) { .tlv { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; } .tlv-cols p { font-size: 15px; line-height: 1.48; } .tlv-d { font-size: 16px; margin-bottom: 10px; } .tlv-cols { gap: 22px; padding-top: 12px; margin-bottom: 12px; } }
/* references: what each source is used for, under the reference (tutor 2026-11-02) */
.method .refs .ref-use { display: block; text-indent: 0; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.method > p { max-width: 760px; margin: 0 0 12px; }

/* hero (Part 1 and the long read): two bar charts on one time line, economy above births (tutor 2026-11-03, mockup F) */
.hb-t { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.28; color: var(--ink); margin: 2px 0 6px; }
.hb-p + .hb-p { margin-top: 6px; }
.hb-l { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); margin: 8px 0 0; }
.hb-l span { font-weight: 500; color: var(--muted); }
.hb-plot svg { display: block; }
.hb-val { font-weight: 800; font-size: 12px; }
.hb-chg { font-weight: 800; font-size: 14px; }
.hb-sub, .hb-rec { font-size: 11.5px; }
@media (max-width: 560px) { .hb-t { font-size: 18.5px; } }

/* map panel, redesigned 2026-11-03: one sentence, then the places (no big number, no progress bar) */
.mx-say { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.mx-say b { font-family: var(--sans); font-weight: 800; }
.mx-o { color: var(--c-orange); font-weight: 700; }
.mx-list { border-top: 1px solid var(--rule); }
.mx-lh, .mx-li { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-family: var(--sans); }
.mx-lh { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 9px 0 5px; }
.mx-lh span:last-child { font-weight: 600; letter-spacing: 0; text-transform: none; }
.mx-li { font-size: 13.5px; color: var(--ink2); padding: 6px 0; border-top: 1px solid var(--grid); }
.mx-li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.mx-more { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 0; padding: 7px 0 0; border-top: 1px solid var(--grid); }
.mx-houses { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 6px; }
.mx-houses svg { width: 13px; height: 13px; fill: var(--c-orange); }
.mx-key { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 0 0 12px; }

/* births scrolly: value labels = bold number, year under it in grey */
#scrolly .sc-n { font-weight: 800; font-size: 13px; fill: var(--ink); }
#scrolly .sc-y { font-weight: 600; font-size: 11.5px; fill: var(--muted); }

/* bold changes in the text: falls red, rises green (tutor 2026-11-03), as in the hero deck */
.story b.down, .step b.down { color: #D62828; }
.story b.up, .step b.up { color: var(--c-green); }

/* Box 1 side list, redesigned 2026-11-03 (tutor: no white card with orange marks inside the green box):
   sits straight on the green tint, separated by a thin rule; numbered in the serif italic of the series, thin lines between items */
.econ-side { background: none; border-radius: 0; padding: 2px 0 0 26px; border-left: 1px solid rgba(11, 122, 92, .28); }
.econ-side .mini-k { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px !important; }
.econ-side .ticks { counter-reset: tk; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.econ-side .ticks li { counter-increment: tk; padding: 11px 0 11px 34px; border-top: 1px solid rgba(11, 122, 92, .18); }
.econ-side .ticks li:first-child { border-top: 0; }
.econ-side .ticks li::before { content: counter(tk); top: 8px; width: auto; height: auto; border-radius: 0; background: none;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1; color: var(--brand); }
.econ-side .ticks li b { color: var(--ink); }
@media (max-width: 760px) { .econ-side { padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(11, 122, 92, .28); } }

/* Part 3 jobs panel: four small dot lists, two above two (2026-11-03) */
.jb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; margin-top: 14px; }
.jb { min-width: 0; }
.jb-h { border-top: 1px solid var(--rule); padding-top: 12px; }
.jb-t { font-family: var(--sans); font-weight: 800; font-size: 15px; color: var(--ink); margin: 0; }
.jb-t span { color: #D62828; white-space: nowrap; }
.jb-u { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 2px 0 4px; }
@media (max-width: 820px) { .jb-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Box 2 figures, redesigned 2026-11-03: floor plan notes and the key under the houses */
.fp-notes { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink2); margin: 8px 0 4px; }
.fp-notes p { margin: 0 0 4px; }
.fp-notes .fp-lux { color: var(--muted); font-size: 12.5px; }
.fp-key { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 2px 0 6px; }
.fp-key .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; }
.boxed-card .fp-notes p { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink2); margin: 0 0 4px; }
.boxed-card .fp-notes p.fp-lux { color: var(--muted); font-size: 12.5px; }
.boxed-card p.fp-key { font-family: var(--sans); font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 2px 0 6px; }

/* byline: "Edu" in the brand green, as in the logo (tutor 2026-11-03) */
.by-edu { color: #00865F; font-weight: 700; }

/* Part 6: children per woman and why 2.1 (replaces the small note, tutor 2026-11-03): a sum written out, no tiles */
.r21 { font-family: var(--sans); margin: 6px 0 1.6em; padding: 20px 22px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.r21-k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.r21-def { font-size: 15px; line-height: 1.5; color: var(--ink2); margin: 0 0 18px; }
.r21-sum { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.r21-sum > div { flex: 1 1 0; min-width: 0; }
.r21-n { display: block; font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.r21-c { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.r21-op { font-family: var(--serif); font-size: 24px; color: var(--muted); padding-top: 2px; }
.r21-tot .r21-n { color: var(--brand); }
.r21-tot .r21-c { color: var(--ink2); font-weight: 700; }
.r21-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .r21-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; }
  .r21-sum > div { display: contents; }
  .r21-op { display: none; }
  .r21-n { font-size: 22px; }
  .r21-c { margin-top: 0; }
}
/* the 2.1 sum as a plain table at text size (tutor 2026-11-03: big numbers look "AI") */
.r21-t { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; color: var(--ink2); margin: 2px 0 14px; }
.r21-t td { padding: 6px 0; vertical-align: top; }
.r21-t td:first-child { width: 4.6em; padding-right: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.r21-t .r21-tot td { border-top: 1px solid var(--rule); padding-top: 9px; font-weight: 700; color: var(--brand); }

/* Three priorities, simplified 2026-11-03 (tutor: the big numbers and the three-column grid looked "AI"):
   read like the rest of the story, in the text column, plain section headings, a thin rule between priorities */
.agenda { width: auto; max-width: var(--col); margin: 30px auto 40px; transform: none; }
.agenda-list { border-top: 0; }
.agenda-list li { display: block; padding: 22px 0 18px; border-bottom: 0; border-top: 1px solid var(--rule); }
.agenda-list li:first-child { border-top: 0; padding-top: 6px; }
.agenda-list h3 { font-size: 22px; margin: 0 0 10px; }
.ag-n { display: none; }
.ag-body .ag-ev { padding-left: 12px; border-left: 2px solid var(--rule); }
@media (max-width: 760px) { .agenda-list li { display: block; } }

/* "What this story cannot show", redesigned 2026-11-03 (tutor): a soft red panel, each idea in its own cell, separated by red dashed lines */
.limits { margin-top: 34px; padding: 22px 26px 10px; background: #FDF3F1; border: 1px solid #F3CFC9; border-left: 0; border-radius: 14px; }
.limits h3 { color: #B42318; margin: 0 0 6px; }
.limits ul { gap: 0; }
.limits li { margin: 0; padding: 16px 24px 16px 0; font-size: 15px; }
.limits li:nth-child(even) { padding: 16px 0 16px 24px; }
.limits li:nth-child(odd) { border-right: 1.5px dashed #E39A90; }
.limits li:nth-child(-n+2) { border-bottom: 1.5px dashed #E39A90; }
.limits li b { color: #B42318; }
@media (max-width: 760px) {
  .limits { padding: 18px 18px 6px; }
  .limits li, .limits li:nth-child(even), .limits li:nth-child(odd) { padding: 14px 0; border-right: 0; border-bottom: 1.5px dashed #E39A90; }
  .limits li:last-child { border-bottom: 0; }
}

/* "What this story cannot show" is plain text again, starting "However, it should be noted..." (tutor 2026-11-03); the key phrases stay red */
.limits-text { margin-top: 30px; }
.limits-text b { color: #B42318; }

/* Instagram link at the right end of the header on every page: thin outline glyph in the muted ink, Instagram pink on hover (tutor 2026-11-03) */
.wc-ig { display: flex; align-items: center; gap: 7px; margin-left: 18px; padding-left: 16px; border-left: 1px solid var(--rule); color: #B4307F; text-decoration: none; font-family: var(--sans); font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .18s; }
.wc-ig svg { flex: none; transition: transform .18s; }
.wc-ig:hover, .wc-ig:focus-visible { color: #D6249F; }  /* the glyph keeps the Instagram gradient; the @gurapaedu text is a deep pink */
.wc-ig:hover svg { transform: translateY(-1px); }
.wc-ig span { display: none; }
@media (min-width: 1360px) { .wc-ig span { display: inline; } }
/* phones: no divider, and the parts row a little tighter so the icon fits without sideways scroll */
@media (max-width: 760px) { .wc-ig { margin-left: 2px; padding-left: 0; border-left: 0; } }

/* footer, redesigned 2026-11-03 (tutor): logo + © line on the left, Instagram / LinkedIn / email with their brand icons straight on the footer background, no boxes (tutor) */
.foot-in { align-items: center; padding: 22px 22px 26px; }
.foot-id { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.foot-logo { font-family: var(--sans); font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.foot-logo span { color: #00865F; }
.foot-c { padding-left: 12px; border-left: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink2); text-decoration: none; transition: color .18s; }
.foot-links a img { flex: none; transition: transform .18s; }
.foot-links a:hover, .foot-links a:focus-visible { color: #00865F; }
.foot-links a:hover img { transform: translateY(-1px); }
@media (max-width: 360px) { .foot-links { gap: 16px; } }
