:root {
  --ink: #11110f;
  --paper: #f5f4ef;
  --warm: #e9e5dc;
  --line: rgba(17, 17, 15, .18);
  --muted: #68675f;
  --acid: #d8ff3e;
  --orange: #ff583d;
  --blue: #506cff;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 16px; color: var(--ink);
  background: var(--acid); border: 2px solid var(--ink); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; transform: translateY(-150%); transition: transform .15s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
main:focus { outline: 0; }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.site-header {
  height: 74px; border-bottom: 1px solid var(--line); display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 120px; align-items: center; padding: 0 34px;
  position: relative; z-index: 5; background: rgba(245,244,239,.9); backdrop-filter: blur(16px);
}
.brand-logo { width: max-content; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-symbol, .brand-word { position: relative; display: block; overflow: hidden; flex: 0 0 auto; }
.brand-symbol { width: 36px; height: 36px; }
.brand-symbol img { position: absolute; width: 75px; max-width: none; transform: translate(-19.5px, -14px); }
.brand-word { width: 155px; height: 25px; }
.brand-word img { position: absolute; width: 201px; max-width: none; transform: translate(-27px, -143px); }
.header-note { justify-self: center; text-transform: uppercase; font-size: 9px; letter-spacing: .19em; color: var(--muted); }
.text-button, .quiet-button { border: 0; background: none; padding: 8px 0; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.text-button { justify-self: end; }
.text-button span { color: var(--orange); margin-left: 5px; }

.intro {
  min-height: calc(100vh - 74px); padding: 8vh 7vw 7vh; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
}
.intro::before {
  content: "∞"; position: absolute; right: -2vw; top: -12vh; font: italic 48vw/.8 Georgia, serif;
  color: transparent; -webkit-text-stroke: 1px rgba(17,17,15,.12); transform: rotate(-7deg); pointer-events: none;
}
.intro::after {
  content: ""; position: absolute; width: 13px; height: 13px; background: var(--orange);
  border-radius: 50%; right: 17vw; top: 25%; box-shadow: -29vw 47vh 0 var(--blue), -4vw 57vh 0 var(--acid);
}
.intro-kicker, .eyebrow { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.intro-kicker { margin-bottom: 26px; }
.intro h1 { margin: 0; max-width: 980px; font-size: clamp(62px, 9.4vw, 148px); line-height: .82; letter-spacing: -.075em; font-weight: 750; }
.intro h1 em, dialog h2 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.055em; }
.intro-copy { max-width: 480px; margin: 42px 0 38px; font: 20px/1.4 Georgia, serif; }
.start-button {
  width: 250px; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 16px 18px;
  display: flex; justify-content: space-between; cursor: pointer; text-transform: uppercase; font-size: 10px; letter-spacing: .15em;
  transition: transform .2s var(--ease), background .2s;
}
.start-button:hover { transform: translateY(-3px); background: var(--orange); border-color: var(--orange); }
.button-arrow { font-size: 16px; }

.study-shell { min-height: 100vh; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 56%) minmax(460px, 44%); }
.question-panel { padding: 30px clamp(30px,5vw,80px) 40px; display: flex; flex-direction: column; min-height: 100vh; }
.study-progress-wrap { display: grid; grid-template-columns: 58px 1fr 60px; gap: 18px; align-items: center; font-size: 9px; letter-spacing: .14em; }
.progress-track { height: 1px; background: var(--line); }
.progress-fill { height: 100%; background: var(--ink); width: 14.28%; transition: width .5s var(--ease); }
.quiet-button { color: var(--muted); }
.quiet-button:hover { color: var(--orange); }
#studyForm { flex: 1; display: flex; }
.step { display: none; width: 100%; padding: clamp(54px,8vh,100px) 0 35px; animation: enter .5s var(--ease); }
.step.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.eyebrow { margin-bottom: 16px; }
.step h2 { font-size: clamp(42px,5.2vw,78px); line-height: .94; letter-spacing: -.06em; margin: 0; max-width: 690px; }
.step-deck { font: 17px/1.5 Georgia, serif; max-width: 620px; color: #414039; margin: 23px 0 40px; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend, .field-block > label, .money-head label { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 12px; display: block; }
.field-instruction { margin: -5px 0 8px; color: var(--muted); font: italic 11px/1.4 Georgia, serif; }

.search-wrap { display: flex; border-bottom: 1px solid var(--ink); align-items: center; }
.search-wrap input { width: 100%; border: 0; background: transparent; padding: 13px 2px; outline: 0; font: 24px Georgia, serif; }
.search-wrap span { font-size: 25px; }
.country-results { position: absolute; background: var(--paper); border: 1px solid var(--ink); width: min(510px, calc(100vw - 60px)); max-height: 225px; overflow: auto; z-index: 6; display: none; }
.country-results.open { display: block; }
.country-result { padding: 12px 15px; display: flex; justify-content: space-between; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 13px; }
.country-result:hover, .country-result.active { background: var(--acid); }
.country-result span:last-child { color: var(--muted); }
.selection-row { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.choice-chip, .selected-chip { border: 1px solid var(--ink); border-radius: 100px; padding: 10px 14px; background: transparent; font-size: 11px; cursor: pointer; }
.choice-chip.active { background: var(--ink); color: white; }
.selected-chip { background: var(--ink); color: white; }
.selected-chip:hover { background: var(--orange); border-color: var(--orange); }
.selection-or, .empty-selection { color: var(--muted); font: italic 13px Georgia, serif; }
.selected-countries { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.selected-chip::after { content: " ×"; color: var(--orange); }
.selected-chip:hover::after { color: white; }
.data-note { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.confidence { display: inline-block; padding: 3px 7px; color: var(--ink); margin-right: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: 8px; background: var(--acid); }
.confidence.medium { background: #ffdc77; }.confidence.low { background: #ffb3a7; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option-card input, .pill-options input, .large-checks input { position: absolute; opacity: 0; pointer-events: none; }
.option-card > span { min-height: 74px; padding: 17px; border: 1px solid var(--line); display: flex; flex-direction: column; cursor: pointer; transition: .2s; }
.option-card input:checked + span { border-color: var(--ink); background: var(--ink); color: white; }
.option-card input:focus-visible + span, .pill-options input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.option-card b, .large-checks b { font-size: 14px; }.option-card small, .large-checks small { margin-top: 5px; color: var(--muted); font: italic 12px Georgia, serif; }
.option-card input:checked + span small { color: #bbb; }
.pill-options { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-options span { border: 1px solid var(--line); padding: 10px 14px; display: block; border-radius: 100px; cursor: pointer; font-size: 11px; }
.pill-options input:checked + span { border-color: var(--ink); background: var(--ink); color: white; }
.pill-options.compact span { padding: 9px 12px; }
.large-checks { display: grid; gap: 8px; }
.large-checks label { border: 1px solid var(--line); padding: 18px; display: grid; grid-template-columns: 26px 1fr; cursor: pointer; }
.large-checks .check-mark { width: 17px; height: 17px; border: 1px solid var(--ink); display: grid; place-items: center; color: transparent; font-size: 11px; }
.large-checks input:checked + .check-mark { background: var(--ink); color: white; }
.large-checks input:focus-visible + .check-mark { outline: 3px solid var(--blue); outline-offset: 4px; }
.large-checks label > span:last-child { display: flex; flex-direction: column; }

.inline-setting, .subquestion { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-setting { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.inline-setting small, .subquestion small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.45; font: italic 12px Georgia, serif; }
.inline-setting output { font: 26px Georgia, serif; }
.inline-setting input { grid-column: 1/-1; }
.estimate-evidence { margin-top: 15px; border: 1px solid var(--line); padding: 17px; }
.estimate-evidence-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.estimate-evidence-head button { border: 0; background: transparent; padding: 3px 0; color: var(--muted); cursor: pointer; font-size: 8px; text-transform: uppercase; letter-spacing: .11em; }
.estimate-evidence-head button:hover { color: var(--orange); }
.estimate-evidence > b { display: block; font: 18px/1.35 Georgia, serif; max-width: 620px; }
.estimate-evidence > p { margin: 8px 0 13px; color: var(--muted); font: italic 11px/1.45 Georgia, serif; }
.estimate-breakdown { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.estimate-breakdown span { border: 1px solid var(--line); border-radius: 100px; padding: 5px 8px; font-size: 8px; letter-spacing: .05em; }
.estimate-definition { border-top: 1px solid var(--line); padding-top: 12px; display: grid; grid-template-columns: 125px 1fr; gap: 12px; }
.estimate-definition strong { font-size: 8px; text-transform: uppercase; letter-spacing: .11em; }
.estimate-definition span { color: var(--muted); font: 11px/1.4 Georgia, serif; }
.estimate-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.estimate-sources a { border-top: 2px solid var(--line); padding-top: 7px; color: var(--muted); text-decoration: none; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.estimate-sources a span { display: block; margin-top: 3px; font: italic 10px/1.3 Georgia, serif; text-transform: none; letter-spacing: 0; }
.estimate-sources a.active { border-color: var(--orange); color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--ink); cursor: ew-resize; }
.age-display { font: 88px/.9 Georgia, serif; letter-spacing: -.05em; display: flex; gap: 22px; margin: 40px 0 30px; }
.age-display i { font-weight: 300; color: var(--orange); }
.dual-range { position: relative; height: 28px; }
.dual-range input { position: absolute; inset: 0; pointer-events: none; appearance: none; background: transparent; }
.dual-range input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); pointer-events: auto; }
.range-rail { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--line); }
.range-between { height: 2px; background: var(--orange); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.subquestion label { font-size: 13px; font-weight: 650; }
.slider-line { display: grid; grid-template-columns: 1fr 50px; gap: 18px; align-items: center; margin-top: 9px; }
.slider-line output { text-align: right; font: 22px Georgia, serif; }
select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; padding: 13px 3px; font: 19px Georgia, serif; }
.field-caveat { display: block; color: var(--muted); margin-top: 9px; font: italic 11px/1.4 Georgia, serif; }
.field-caveat a, .research-links a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.research-caveat { margin-top: 14px; }
.research-links { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; }
.research-links a { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.multi-select { position: relative; }
.multi-select summary {
  list-style: none; border-bottom: 1px solid var(--ink); padding: 13px 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; font: 19px Georgia, serif;
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary i { color: var(--orange); font: 18px Helvetica, Arial, sans-serif; }
.multi-select summary i::before { content: "＋"; }
.multi-select[open] summary i::before { content: "−"; }
.multi-select-menu {
  position: absolute; z-index: 8; left: 0; right: 0; max-height: 300px; overflow: auto;
  border: 1px solid var(--ink); border-top: 0; background: var(--paper); box-shadow: 0 18px 35px #1717141a;
}
.multi-choice { display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; border-top: 1px solid var(--line); font-size: 11px; }
.multi-choice:first-child { border-top: 0; }
.multi-choice:hover { background: var(--warm); }
.multi-choice input { appearance: none; width: 15px; height: 15px; border: 1px solid var(--ink); margin: 0; display: grid; place-items: center; }
.multi-choice input::after { content: "✓"; color: white; font-size: 10px; opacity: 0; }
.multi-choice input:checked { background: var(--ink); }
.multi-choice input:checked::after { opacity: 1; }
.money-head { display: flex; justify-content: space-between; align-items: end; }
.money-head label span { text-transform: none; letter-spacing: 0; color: var(--muted); }
.money-head output { font: 24px Georgia, serif; }.money-setting { margin-bottom: 38px; }
.hero-setting { text-align: center; margin: 30px 0 40px; }
.hero-setting output { display: block; font: 110px/.8 Georgia, serif; letter-spacing: -.08em; }
.hero-setting label { display: block; margin: 18px 0 25px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-setting input { max-width: 500px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.back-button { border: 0; background: none; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; visibility: hidden; }
.step-action-buttons { display: flex; gap: 8px; }
.see-results-button { min-width: 180px; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 15px 17px; display: flex; justify-content: space-between; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.see-results-button:hover { border-color: var(--orange); color: var(--orange); }
.see-results-button[hidden] { display: none; }
.next-button { min-width: 180px; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 15px 17px; display: flex; justify-content: space-between; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.next-button:hover { background: var(--orange); border-color: var(--orange); }

.result-panel { background: var(--ink); color: var(--paper); padding: 28px 34px 35px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
.result-topline { display: flex; justify-content: space-between; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: #aaa; }
.live-indicator { color: var(--acid); }.live-indicator i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: var(--acid); margin-right: 5px; animation: pulse 1.7s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.population-number { font-size: clamp(44px,4.7vw,80px); letter-spacing: -.065em; font-weight: 700; line-height: 1; margin-top: 28px; white-space: nowrap; }
.uncertainty { color: #aaa; font: italic 11px Georgia, serif; margin-top: 8px; }
.population-lens {
  min-height: 226px; position: relative; margin: 20px 0 10px; overflow: hidden;
  border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 19px 16px 15px;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), #222 10%);
}
.population-lens::before {
  content: ""; position: absolute; width: 7px; height: 7px; right: 16px; top: 17px;
  background: var(--orange); transform: rotate(45deg);
}
.ratio-kicker { color: #aaa; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.ratio-mark { display: flex; align-items: baseline; gap: 12px; margin-top: 15px; line-height: .8; }
.ratio-mark span, .ratio-mark b { font-size: clamp(58px, 5.7vw, 92px); letter-spacing: -.075em; font-weight: 680; }
.ratio-mark i { color: var(--orange); font: italic 43px Georgia, serif; }
.ratio-copy { width: 230px; color: #aaa; font: italic 11px/1.35 Georgia, serif; margin: 15px 0 18px; }
.share-meter { height: 3px; width: 100%; background: #343431; overflow: hidden; }
.share-fill { height: 100%; width: 100%; background: var(--acid); transition: width .65s var(--ease); }
.share-caption { display: flex; justify-content: space-between; margin-top: 8px; color: #aaa; font-size: 8px; text-transform: uppercase; letter-spacing: .11em; }
.odds-panel { display: none; margin-top: 4px; border: 1px solid #3b3b37; padding: 18px; }
.odds-panel.visible { display: block; }
.odds-intro { color: #aaa; font: italic 12px/1.4 Georgia, serif; }
.odds-intro span { color: var(--acid); display: block; margin-bottom: 5px; font: 700 8px Helvetica, Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.odds-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 15px; }
.odds-grid > div { border-left: 1px solid #3b3b37; padding: 0 10px; }.odds-grid > div:first-child { border: 0; padding-left: 0; }
.odds-grid span { color: var(--orange); font: 22px Georgia, serif; display: block; }
.odds-grid b { display: block; margin-top: 5px; font-size: 15px; }.odds-grid small { color: #aaa; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.odds-panel p { color: #aaa; font-size: 9px; line-height: 1.4; margin: 15px 0 0; }
.adjust-button { width: 100%; border: 0; border-top: 1px solid #3b3b37; background: transparent; color: var(--paper); margin-top: 15px; padding: 14px 0 0; display: flex; justify-content: space-between; cursor: pointer; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.adjust-button:hover { color: var(--acid); }
.share-result-button {
  width: 100%; border: 1px solid var(--acid); background: var(--acid); color: var(--ink); margin-top: 14px;
  padding: 13px 14px; display: flex; justify-content: space-between; cursor: pointer; font-size: 9px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .13em; transition: background .2s, color .2s, border-color .2s;
}
.share-result-button:hover { background: var(--orange); border-color: var(--orange); color: white; }
.assumptions-button { border: 0; border-top: 1px solid #333; background: transparent; color: #aaa; padding: 17px 0 0; margin-top: auto; display: flex; justify-content: space-between; cursor: pointer; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.assumptions-button:hover { color: var(--acid); }

dialog { width: min(1050px, 92vw); max-height: 90vh; padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px #0008; }
dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(4px); }
.dialog-head { height: 57px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: .14em; }
.dialog-close { border: 0; background: none; font-size: 26px; cursor: pointer; }
.dialog-content { display: grid; grid-template-columns: 42% 58%; padding: 55px; gap: 45px; }
.dialog-content h2 { margin: 0; font-size: 60px; line-height: .92; letter-spacing: -.06em; }
.method-title { align-self: start; }
.method-lede { max-width: 310px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--muted); font: 13px/1.52 Georgia, serif; }
.method-lede strong { color: var(--ink); }
.method-copy { font: 14px/1.6 Georgia, serif; }
.method-copy h3 { font: 700 9px Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 12px; padding-top: 28px; }
.method-copy h3:first-child { padding-top: 0; }
.method-copy code { background: var(--warm); padding: 4px 6px; font-size: 12px; }
.method-list { margin: 0; padding: 0; list-style: none; }
.method-list li { border-top: 1px solid var(--line); padding: 11px 0; }
.method-list strong { font-family: Helvetica, Arial, sans-serif; font-size: 11px; }
.method-source-note { margin: 0 0 15px; color: var(--muted); font-style: italic; }
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li { border-top: 1px solid var(--line); padding: 9px 0; display: flex; flex-direction: column; }
.source-list a { color: inherit; font-family: Helvetica, Arial, sans-serif; font-size: 12px; }.source-list span { color: var(--muted); font-size: 11px; }

.share-dialog { width: min(1120px, 94vw); }
.share-dialog-content { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(360px, 1.12fr); min-height: 680px; }
.share-preview-wrap {
  margin: 0; padding: 38px; background: var(--ink); display: flex; flex-direction: column; justify-content: center;
}
.share-preview-wrap canvas { display: block; width: 100%; height: auto; max-height: 66vh; object-fit: contain; box-shadow: 0 24px 60px #0008; }
.share-preview-wrap figcaption { margin-top: 15px; color: #aaa; font: italic 11px/1.4 Georgia, serif; text-align: center; }
.share-controls { padding: clamp(38px, 5vw, 70px); align-self: center; }
.share-controls h2 { margin: 0; font-size: clamp(46px, 5vw, 68px); line-height: .9; letter-spacing: -.06em; }
.share-controls > p { max-width: 510px; color: var(--muted); font: 14px/1.55 Georgia, serif; }
.share-controls #shareDescription { margin: 27px 0 30px; }
.share-primary {
  width: 100%; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 16px 18px;
  display: flex; justify-content: space-between; cursor: pointer; text-transform: uppercase; font-size: 10px;
  font-weight: 700; letter-spacing: .14em; transition: background .2s, border-color .2s;
}
.share-primary:hover { background: var(--orange); border-color: var(--orange); }
.share-primary + .share-primary { margin-top: 8px; }
.share-instagram-primary { border-color: var(--orange); background: var(--orange); }
.share-instagram-primary:hover { border-color: var(--ink); background: var(--ink); }
.share-primary[hidden] { display: none; }
.share-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.share-secondary button {
  border: 1px solid var(--ink); background: transparent; padding: 13px 10px; cursor: pointer; text-transform: uppercase;
  font-size: 8px; font-weight: 700; letter-spacing: .1em;
}
.share-secondary button:hover { background: var(--warm); }
.share-quick-links { margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--line); }
.share-quick-links > span { display: block; margin-bottom: 11px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.share-quick-links > div { display: flex; flex-wrap: wrap; gap: 8px; }
.share-quick-links a {
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 11px; color: var(--ink); text-decoration: none;
  font-size: 9px; letter-spacing: .04em;
}
.share-quick-links a:hover { border-color: var(--orange); color: var(--orange); }
.share-controls .share-note { margin: 19px 0 0; font-size: 11px; line-height: 1.45; }
.share-controls .share-status { min-height: 20px; margin: 10px 0 0; color: var(--ink); font: 700 9px/1.4 Helvetica, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.site-footer {
  min-height: 88px; padding: 24px 34px; border-top: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px;
}
.site-footer p { margin: 0; font: italic 13px Georgia, serif; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--orange); }

.info-page { min-height: 100vh; }
.info-main { width: min(820px, calc(100% - 44px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0; }
.info-kicker { margin-bottom: 18px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.info-main h1 { margin: 0 0 32px; font-size: clamp(52px, 8vw, 104px); line-height: .88; letter-spacing: -.065em; }
.info-main h1 em { font-family: Georgia, serif; font-weight: 400; }
.info-lede { max-width: 680px; margin: 0 0 55px; font: 20px/1.5 Georgia, serif; }
.info-section { display: grid; grid-template-columns: 175px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.info-section h2 { margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.info-section p, .info-section ul { margin: 0; font: 15px/1.65 Georgia, serif; }
.info-section ul { padding-left: 19px; }
.info-section a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.info-home-button { color: white; text-decoration: none; }

@media (max-width: 980px) {
  .study-shell { grid-template-columns: 1fr; }
  .result-panel { position: relative; height: auto; min-height: 640px; order: -1; }
  .question-panel { min-height: auto; }
  .population-lens { min-height: 210px; }
  .dialog-content { grid-template-columns: 1fr; }
  .method-lede { max-width: 680px; }
  .share-dialog-content { grid-template-columns: minmax(280px, .9fr) minmax(330px, 1.1fr); }
  .share-preview-wrap { padding: 26px; }
  .share-controls { padding: 38px; }
}
@media (max-width: 620px) {
  .site-header { grid-template-columns: 1fr 1fr; padding: 0 18px; }.header-note { display: none; }
  .brand-logo { gap: 6px; }.brand-symbol { width: 31px; height: 31px; }.brand-symbol img { width: 65px; transform: translate(-17px, -12.2px); }
  .brand-word { width: 125px; height: 21px; }.brand-word img { width: 163px; transform: translate(-22px, -116px); }
  .intro { padding: 8vh 22px; }.intro h1 { font-size: 58px; }.intro-copy { font-size: 17px; }
  .result-panel { padding: 25px 20px; min-height: 620px; }.population-number { font-size: 45px; }
  .question-panel { padding: 25px 20px; }.step { padding: 55px 0 30px; }.step h2 { font-size: 46px; }
  .step-actions.is-final { align-items: stretch; flex-direction: column; gap: 14px; }
  .step-actions.is-final .back-button { align-self: flex-start; }
  .step-actions.is-final .step-action-buttons { width: 100%; flex-direction: column; }
  .step-actions.is-final .see-results-button, .step-actions.is-final .next-button { width: 100%; min-width: 0; }
  .option-grid { grid-template-columns: 1fr; }.age-display { font-size: 70px; }
  .estimate-sources { grid-template-columns: 1fr; }.estimate-definition { grid-template-columns: 1fr; gap: 5px; }
  .dialog-content { padding: 30px 22px; }.dialog-content h2 { font-size: 48px; }
  .share-dialog { width: 94vw; max-height: 92vh; }
  .share-dialog-content { grid-template-columns: 1fr; }
  .share-preview-wrap { padding: 22px; }
  .share-preview-wrap canvas { max-height: none; }
  .share-controls { padding: 34px 22px; }
  .share-controls h2 { font-size: 46px; }
  .share-secondary { grid-template-columns: 1fr; }
  .odds-grid b { font-size: 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .info-section { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
