/* MAMC RESEARCH. Tokens follow STRATEGY.md 10.4; type is Onest, with Comfortaa for figures and short accents. */

@font-face { font-family: Onest; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Comfortaa; src: url("../fonts/comfortaa-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Comfortaa; src: url("../fonts/comfortaa-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --gold: #BC8C14;
  --gold-700: #7F5E0E;
  --gold-100: #F6EEDB;
  --grey: #EEEEEE;
  --paper: #FFFFFF;
  --ink: #4A4A4A;
  --ink-900: #222222;
  --ink-500: #636363;
  --line: #DADADA;
  --line-on-grey: #CFCFCF;
  --gold-hover: #CF9C1C;
  --on-dark: #EEEEEE;
  --on-dark-soft: #C8C8C8;
  --error-on-dark: #F4BFA6;
  --error: #A1360F;
  --status-live: #256B42;
  --status-beta: #8F4E06;
  --status-plan: #566675;
  --focus: #1F5FBF;
  --pad: clamp(16px, 4.2vw, 60px);
  --space: clamp(56px, 7vw, 104px);
  --bar-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: var(--gold) var(--grey); scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Onest, system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
::selection { background: var(--gold); color: var(--ink-900); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink-900); }
h1, h2, h3 { color: var(--ink-900); margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.008em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.fig { font-family: Comfortaa, sans-serif; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--ink-900); color: var(--on-dark); border-radius: 4px; }
.skip:focus { top: 8px; color: var(--on-dark); }
html:not(.js) .js-only { display: none !important; }

.stub { display: inline-block; padding: 0 7px; border: 1px dashed var(--status-plan); border-radius: 4px; color: var(--status-plan); font-size: 13px; font-weight: 500; line-height: 1.6; white-space: nowrap; vertical-align: .08em; }
.intro { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; max-width: 34em; }
.more-line { margin-top: 20px; font-weight: 500; }
.caption { font-size: 14px; color: var(--ink-500); }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
.mark { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { display: block; width: auto; height: 30px; }
.since { font-family: Comfortaa, sans-serif; font-weight: 700; font-size: 13px; color: var(--ink-500); white-space: nowrap; }
.menu > ul { display: flex; gap: clamp(14px, 1.7vw, 28px); font-size: 15px; font-weight: 500; }
.menu li { position: relative; }
.menu > ul > li > a { display: block; padding-block: 21px; text-decoration: none; color: var(--ink-900); white-space: nowrap; }
.menu > ul > li > a:hover { text-decoration: underline; }
.sub { display: none; position: absolute; left: -16px; top: 100%; width: 330px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px rgba(34,34,34,.12); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 10px; border-radius: 4px; text-decoration: none; line-height: 1.3; }
.sub a:hover { background: var(--grey); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.lang a { display: grid; place-items: center; min-width: 36px; min-height: 36px; border-radius: 4px; text-decoration: none; color: var(--ink-900); }
.lang a:hover { background: var(--grey); }
.lang a[aria-current] { background: var(--ink-900); color: var(--on-dark); }
.cta { display: inline-grid; place-items: center; min-height: 44px; padding: 8px 18px; background: var(--gold); color: var(--ink-900); border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease); }
.cta:hover { background: var(--gold-hover); }
.burger { display: none; }
.burger summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; color: var(--ink-900); }
.burger summary::-webkit-details-marker { display: none; }
.burger .icon-close { display: none; }
.burger[open] .icon-close { display: block; }
.burger[open] .icon-open { display: none; }
.sheet { position: fixed; left: 0; right: 0; top: var(--bar-h); bottom: 0; overflow-y: auto; padding: 20px var(--pad) 32px; background: var(--paper); }
.sheet > ul > li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.sheet .top { font-size: 22px; font-weight: 600; color: var(--ink-900); text-decoration: none; }
.sheet ul ul { margin-top: 6px; }
.sheet ul ul a { display: block; padding-block: 7px; text-decoration: none; }
.sheet > .cta { display: grid; margin-bottom: 10px; }

/* First screen */
.hero { min-height: calc(100svh - var(--bar-h) - var(--strip-h, 0px)); display: flex; flex-direction: column; }
.chamber { position: relative; flex: 1; min-height: 470px; display: flex; flex-direction: column; }
.stage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(0, 1.45fr) minmax(262px, .62fr); gap: 12px clamp(12px, 1.2vw, 18px); padding: 6px var(--gutter) 28px; align-items: center; }
h1 { font-size: clamp(38px, 3.7vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
.lede .category { margin-top: .8em; color: var(--ink-900); font-weight: 500; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.3; }
.lede p:not(.category) { margin-top: .75em; max-width: 30em; font-size: clamp(16px, 1.2vw, 18px); }
html:not(.js) .stage { grid-template-columns: minmax(0, 1fr); }

.well { position: relative; align-self: stretch; min-height: 340px; touch-action: none; cursor: none; }
.well canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }

.readout { display: flex; flex-direction: column; gap: 14px; }
.readout h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.012em; }
.sizes { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.sizes legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; }
.chip { position: relative; min-width: 44px; min-height: 36px; display: grid; place-items: center; padding: 0 10px; border: 1.5px solid var(--ink-900); border-radius: 4px; cursor: pointer; font-family: Comfortaa, sans-serif; font-weight: 700; color: var(--ink-900); transition: background .2s var(--ease), color .2s var(--ease); }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip:hover { background: var(--grey); }
.chip:has(input:checked) { background: var(--ink-900); color: var(--on-dark); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pair { display: flex; flex-direction: column; gap: 14px; }
.share { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; font-size: 14px; font-weight: 500; }
.share b { font-family: Comfortaa, sans-serif; font-size: 26px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.meter { grid-column: 1 / -1; position: relative; height: 10px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: var(--ink-900); }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--gold); transition: width .3s var(--ease); }
.scale { display: flex; flex-direction: column; gap: 2px; }
#spread { width: 100%; height: 72px; display: block; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); }
.plain { font-size: 14px; line-height: 1.45; min-height: 5.8em; }
.plain strong { color: var(--ink-900); font-weight: 600; }
.again { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-900); background: transparent; border: 1.5px solid var(--ink-900); border-radius: 4px; padding: 8px 14px; min-height: 42px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.again:hover { background: var(--ink-900); color: var(--on-dark); }
.note { position: absolute; left: var(--gutter); bottom: 12px; max-width: 30em; font-size: 13px; color: var(--ink-500); }

/* Brief */
.brief { background: var(--ink-900); color: var(--on-dark); padding: 20px var(--pad); }
/* On the home page the backgrounds stay full width, the content keeps the 1280 column of the header. */
.hero .brief { padding-inline: var(--gutter); }
/* The headline keeps its 1280 size in the fixed column, so it stays on two lines on wide screens. */
@media (min-width: 1181px) { .lede h1 { font-size: clamp(38px, 3.7vw, 47px); } }
.brief h2, .brief h3 { color: var(--on-dark); font-size: clamp(22px, 1.85vw, 27px); line-height: 1.18; letter-spacing: -.015em; }
.step { display: grid; grid-template-columns: minmax(170px, 240px) minmax(240px, 1fr) auto auto; gap: 16px 24px; align-items: center; }
.js .is-stepped .step:not(.is-current) { display: none; }
.step + .step { margin-top: 20px; }
.js .is-stepped .step + .step { margin-top: 0; }
.step[data-step="2"] .fields, .step[data-step="3"] .fields { grid-column: 2 / 4; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
.step[data-step="2"] .fields { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.field { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; border: 0; font-size: 14px; font-weight: 500; min-width: 0; }
.field legend { padding: 0; margin-bottom: 5px; }
.field em { font-style: normal; font-weight: 400; color: var(--on-dark-soft); }
textarea, .field input[type="text"], .field input[type="email"], .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink-900); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; caret-color: var(--ink-900); }
.field select { min-height: 45px; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23222222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
textarea { display: block; min-height: 76px; resize: vertical; }
::placeholder { color: var(--ink-500); opacity: 1; }
.places { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 8px 12px; border: 1.5px solid var(--on-dark-soft); border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.25; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; white-space: nowrap; }
.pick svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pick svg rect { stroke-width: 1.8; }
.pick svg path { opacity: 0; }
.pick:hover { border-color: var(--paper); }
.pick:has(input:checked) { background: var(--paper); border-color: var(--paper); color: var(--ink-900); }
.pick:has(input:checked) svg path { opacity: 1; }
.pick:has(input:focus-visible), .tag:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.brief :focus-visible { outline-color: var(--gold); }
.tags { display: flex; gap: 6px; }
.tag { position: relative; flex: 1 1 auto; display: grid; place-items: center; min-height: 45px; padding: 4px 8px; white-space: nowrap; border: 1.5px solid var(--on-dark-soft); border-radius: 4px; cursor: pointer; font-weight: 500; font-size: 14px; transition: background .2s var(--ease), color .2s var(--ease); }
.tag input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tag:has(input:checked) { background: var(--paper); border-color: var(--paper); color: var(--ink-900); }
.go { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; font-size: 13px; color: var(--on-dark-soft); }
.go button[type="button"]:not(.link), .go button[type="submit"], .report-form button, .calc-tool button { font: inherit; font-weight: 600; font-size: 17px; color: var(--ink-900); background: var(--gold); border: 0; border-radius: 4px; padding: 10px 24px; min-height: 52px; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease); }
.go button:hover:not(.link) { background: var(--gold-hover); }
.report-form button { background: var(--ink-900) !important; color: var(--on-dark) !important; }
.report-form button:hover { background: #000 !important; }
.go button:disabled { opacity: .6; cursor: progress; }
.link { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consent { font-size: 13px; line-height: 1.35; padding-top: 22px; }
.consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.consent a { display: inline-block; margin: 4px 0 0 26px; }
.msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.msg:empty { display: none; }
.brief .msg.err { color: var(--error-on-dark); }
.msg.err { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
main > section:not(.hero):not(.final) { padding: var(--space) var(--gutter); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split h2 + .intro, .head h2 + .intro { margin-top: .75em; }

.facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr 2.5fr 1.1fr; gap: 24px clamp(16px, 3vw, 44px); }
.fact { border-top: 2px solid var(--ink-900); padding-top: 14px; min-width: 0; }
.fact dd { margin: 0; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.05; color: var(--ink-900); white-space: nowrap; }
.fact dt { margin-top: 8px; font-size: 15px; }
.grains { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 5px; }
.grains i { width: 13px; height: 7px; border-radius: 50%; background: var(--gold); transform: rotate(-24deg); }
.grains i:nth-child(3n) { transform: rotate(18deg); }
.grains i:nth-child(5n+1) { transform: rotate(-52deg); }
.facts .caption { margin-top: 18px; }

.passport { background: var(--gold-100); border: 1px solid var(--gold); border-radius: 2px; padding: clamp(18px, 2vw, 28px); }
.passport header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gold); color: var(--ink-900); font-size: 18px; }
.passport dl { margin: 0; }
.passport dl > div { display: grid; grid-template-columns: minmax(130px, 2fr) 3fr; gap: 16px; padding-block: 9px; border-bottom: 1px solid rgba(188,140,20,.35); }
.passport dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.passport dt { font-size: 14px; }
.passport dd { margin: 0; color: var(--ink-900); font-size: 15px; font-weight: 500; line-height: 1.4; }
.scoop-pass { margin-top: clamp(20px, 2.4vw, 32px); padding: 14px 16px 12px; background: var(--grey); border-radius: 2px; max-width: 34em; }
.scoop-pass header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; color: var(--ink-900); font-size: 16px; }
.scoop-pass header span { font-size: 13px; color: var(--ink-500); }
.scoop-pass dl { margin: 8px 0 0; }
.scoop-pass dl > div { display: grid; grid-template-columns: minmax(96px, 1fr) 2.4fr; gap: 12px; padding-block: 5px; border-top: 1px solid var(--line-on-grey); font-size: 14px; line-height: 1.35; }
.scoop-pass dd { margin: 0; color: var(--ink-900); font-weight: 500; font-variant-numeric: tabular-nums; }
.is-armed.passport dl > div, .is-armed.passport header { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.is-armed.is-in.passport dl > div, .is-armed.is-in.passport header { opacity: 1; transform: none; }
.is-armed.passport dl > div:nth-child(2) { transition-delay: .07s; } .is-armed.passport dl > div:nth-child(3) { transition-delay: .14s; } .is-armed.passport dl > div:nth-child(4) { transition-delay: .21s; } .is-armed.passport dl > div:nth-child(5) { transition-delay: .28s; } .is-armed.passport dl > div:nth-child(6) { transition-delay: .35s; } .is-armed.passport dl > div:nth-child(7) { transition-delay: .42s; }
.is-armed.pulse-cols > * { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.is-armed.is-in.pulse-cols > * { opacity: 1; transform: none; }
.is-armed.pulse-cols > :nth-child(2) { transition-delay: .1s; } .is-armed.pulse-cols > :nth-child(3) { transition-delay: .2s; }

.decisions h2 { max-width: 20em; }
.decisions ul { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.decisions li { border-top: 1px solid var(--line); }
.decisions li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding-block: 18px; text-decoration: none; height: 100%; }
.decisions .question { grid-column: 1; color: var(--ink-900); font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.25; }
.decisions .methods { grid-column: 1; font-size: 14px; color: var(--ink-500); }
.decisions .arrow { grid-column: 2; grid-row: 1 / 3; color: var(--gold-700); transition: transform .25s var(--ease); }
.decisions li a:hover .question { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
.decisions li a:hover .arrow { transform: translateX(4px); }

.methods-block { background: var(--grey); }
.methods-block .head { margin-bottom: clamp(24px, 3vw, 40px); }
.status-row { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 12px 24px; padding-block: 22px; border-top: 1px solid var(--line-on-grey); }
.status-chip { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; align-self: start; }
.is-now .status-chip { color: var(--status-live); }
.is-beta .status-chip { color: var(--status-beta); }
.is-plan .status-chip { color: var(--status-plan); }
.grain-icon { flex: none; }
.status-row ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px clamp(16px, 2vw, 28px); }
.status-row strong { display: block; color: var(--ink-900); font-weight: 600; line-height: 1.3; }
.is-now strong { font-size: 18px; }
.status-row li span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; }

.pulse-cols { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.pulse .rule { margin-top: .6em; font-size: 15px; max-width: 40em; }
.feed { margin-top: 10px; }
.feed li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); line-height: 1.35; }
.feed li::before { content: ""; position: absolute; left: 1px; top: 18px; width: 12px; height: 7px; border-radius: 50%; background: var(--gold); transform: rotate(-24deg); transition: transform .3s var(--ease); }
.feed li:nth-child(2n)::before { transform: rotate(18deg); }
.feed li:hover::before, .feed li:focus-within::before { transform: rotate(0) scale(1.3); }
.report-panel { background: var(--grey); border-radius: 8px; padding: clamp(18px, 2vw, 26px); }
.report-panel p { margin-top: 8px; }
.report-form { margin-top: 12px; display: grid; gap: 12px; }
.report-form .field input { width: 100%; font: inherit; font-size: 16px; color: var(--ink-900); background: var(--paper); border: 1px solid var(--ink-500); border-radius: 4px; padding: 10px 12px; }
.report-form .consent a { color: var(--ink); }

.calc .split { align-items: stretch; }
.formula { margin-top: 16px; font-size: 15px; max-width: 36em; }
.calc-panel { background: var(--grey); border-radius: 8px; padding: clamp(18px, 2vw, 28px); display: grid; gap: 22px; }
.calc-tool { display: grid; gap: 16px; }
.calc-tool .field { color: var(--ink-900); }
.calc-tool output { font-family: Comfortaa, sans-serif; font-weight: 700; }
.calc-tool input[type="range"] { width: 100%; height: 28px; margin: 0; appearance: none; background: none; cursor: pointer; }
.calc-tool input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink-900); }
.calc-tool input[type="range"]::-moz-range-track { height: 2px; background: var(--ink-900); }
.calc-tool input[type="range"]::-webkit-slider-thumb { appearance: none; width: 26px; height: 15px; margin-top: -7px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--ink-900); transform: rotate(-24deg); }
.calc-tool input[type="range"]::-moz-range-thumb { width: 24px; height: 13px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--ink-900); transform: rotate(-24deg); }
.calc-scale canvas { width: 100%; height: clamp(130px, 13vw, 180px); display: block; }
.calc details { font-size: 14px; }
.calc summary { position: relative; cursor: pointer; font-weight: 500; color: var(--ink-900); padding: 4px 0 4px 18px; list-style: none; }
.calc summary::-webkit-details-marker { display: none; }
.calc summary::before { content: ""; position: absolute; left: 1px; top: .72em; width: 11px; height: 6px; border-radius: 50%; background: var(--gold-700); transform: rotate(-24deg); transition: transform .25s var(--ease); }
.calc details[open] summary::before { transform: rotate(66deg); }
.calc-scale .caption { margin-top: 6px; font-size: 13px; color: var(--ink); }
.calc-tool .tag { border-color: var(--ink-900); color: var(--ink-900); }
.calc-tool .tag:has(input:focus-visible) { outline-color: var(--focus); }
.calc-tool .tag:has(input:checked) { background: var(--ink-900); color: var(--on-dark); border-color: var(--ink-900); }
.calc-result { color: var(--ink-900); font-weight: 500; }
.calc-result .fig { font-size: clamp(44px, 5vw, 68px); line-height: 1; }
.calc table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.calc caption { text-align: left; font-weight: 500; color: var(--ink-900); padding-bottom: 6px; }
.calc th, .calc td { text-align: left; padding: 6px 0; border-top: 1px solid var(--line-on-grey); font-weight: 400; }
.calc th { font-weight: 500; }

main > section.stub-block:not(.hero):not(.final) { padding-block: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.stub-block { border-top: 1px dashed var(--line); }
.stub-block h2 { font-size: 19px; letter-spacing: -.008em; }
.stub-block p { font-size: 14px; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 15px 36px 15px 0; color: var(--ink-900); font-size: 18px; font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 25px; width: 14px; height: 2px; background: var(--gold-700); transition: transform .25s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { max-width: 62ch; padding-bottom: 18px; }

.final { background: var(--ink-900); color: var(--on-dark); padding: var(--space) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.final h2, .final h3 { color: var(--on-dark); }
.final-head > p { margin-top: .75em; }
.contacts { margin-top: 32px; font-size: 15px; }
.contacts h3 { font-size: 18px; }
.contacts p { margin-top: 6px; }
.contacts ul { margin-top: 10px; }
.contacts li { padding-block: 5px; }
.final .stub { color: var(--on-dark-soft); border-color: var(--on-dark-soft); }
.final a { color: var(--on-dark); }
.final :focus-visible { outline-color: var(--gold); }
.brief.is-full { padding: 0; background: none; }
.is-full .step { display: block; }
.is-full .step + .step { margin-top: 28px; padding-top: 24px; border-top: 1px solid #4A4A4A; }
.is-full h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 20px; }
.is-full h3 .grain-icon { color: var(--gold); }
.is-full .places { flex-wrap: wrap; margin-top: 12px; }
.is-full .pick { flex: 1 1 150px; }
.is-full .go { margin-top: 16px; align-items: flex-start; }
.is-full .js-only.go, .is-full .step-of { display: none !important; }

/* Inner pages */
.inner { padding: clamp(24px, 3vw, 40px) var(--pad) var(--space); min-height: 50vh; }
.inner h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; max-width: 18em; }
.inner .feed { max-width: 720px; margin-top: 24px; }
.prose { max-width: 68ch; margin-top: 20px; }
.prose p + p { margin-top: 1em; }
.stub-line { margin-top: 18px; }
.updated { margin-top: 12px; font-size: 14px; color: var(--ink-500); }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--ink-500); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.next-step { margin-top: var(--space); padding-top: 28px; border-top: 2px solid var(--ink-900); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.next-step h2 { font-size: clamp(22px, 2.2vw, 32px); }
.inner-brief { padding: 0; }
.inner-brief .crumbs { padding: 16px var(--pad) 0; margin: 0 0 16px; }
.inner .report-panel { margin-top: 28px; max-width: 520px; }

/* Footer */
.foot { background: var(--grey); padding: clamp(36px, 4vw, 56px) var(--gutter) 24px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(16px, 3vw, 44px); }
.foot h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.foot li { padding-block: 4px; line-height: 1.3; }
.foot li a { text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot-line { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line-on-grey); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
/* Strip for visitors who came from the old site: quiet, above the header, scrolls away with the page. */
.old-strip { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 52px 8px var(--pad); background: var(--gold-100); border-bottom: 1px solid var(--line); color: var(--ink-900); font-size: 14px; line-height: 1.4; text-align: center; }
.old-strip[hidden] { display: none; }
.old-strip p { margin: 0; }
.old-strip a { color: var(--gold-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.old-strip a:hover { color: var(--ink-900); }
.old-strip-x { position: absolute; top: 50%; right: 8px; width: 36px; height: 36px; transform: translateY(-50%); border: 0; border-radius: 4px; background: transparent; color: var(--ink-900); font: 400 22px/36px Arial, sans-serif; cursor: pointer; }
.old-strip-x:hover { background: rgba(0, 0, 0, .06); }
.old-strip-x:focus-visible, .old-strip a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) { .old-strip { min-height: 0; padding: 4px 44px 4px 12px; font-size: 12px; line-height: 1.3; } .old-strip-x { width: 32px; height: 32px; line-height: 32px; } }

@media (max-width: 1180px) {
  .menu { display: none; }
  .burger { display: block; }
}
@media (max-width: 1180px) {
  .step { grid-template-columns: 1fr auto; }
  .step > h2, .step > h3, .step > textarea { grid-column: 1 / -1; }
  .step[data-step="2"] .fields, .step[data-step="3"] .fields { grid-column: 1 / -1; }
  .step[data-step="2"] .go, .step[data-step="3"] .go { grid-column: 2; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .status-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-cols { grid-template-columns: 1fr 1fr; }
  .report-panel { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split, .faq, .final { grid-template-columns: minmax(0, 1fr); }
  .status-row { grid-template-columns: minmax(0, 1fr); }
  .decisions ul { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
/* Tablet: idea and controls beside the circle, the first step of the brief right under them.
   Only non-focusable readings move below the form, so tab order still follows the page. */
@media (min-width: 761px) and (max-width: 1180px) {
  .hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr repeat(4, auto) 1fr repeat(4, auto); column-gap: clamp(16px, 3vw, 32px); }
  .chamber, .stage, .readout { display: contents; }
  html:not(.js) .stage { display: block; grid-column: 1 / -1; padding: 16px var(--pad); }
  .lede { grid-column: 1; grid-row: 2; padding: 12px 0 0 var(--pad); }
  h1 { font-size: clamp(36px, 4.6vw, 48px); }
  .lede .category { margin-top: .5em; font-size: 17px; }
  .lede p:not(.category) { margin-top: .5em; font-size: 15px; line-height: 1.42; }
  .more { display: none; }
  .well { --size: min(45vw, clamp(250px, calc(100svh - var(--bar-h) - var(--strip-h, 0px) - 262px), 430px)); grid-column: 2; grid-row: 1 / 7; align-self: center; width: var(--size); height: var(--size); min-height: 0; margin: 8px var(--pad) 8px 0; }
  #try { grid-column: 1; grid-row: 3; margin: 8px 0 0 var(--pad); font-size: 16px; }
  .sizes { grid-column: 1; grid-row: 4; margin: 6px 0 0 var(--pad); font-size: 13px; }
  .sizes legend { float: none; width: auto; margin: 0 6px 0 0; line-height: 36px; display: contents; }
  .pair { grid-column: 1; grid-row: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 12px var(--pad); align-self: start; align-items: end; }
  .share { font-size: 13px; column-gap: 6px; }
  .share > span { white-space: nowrap; }
  .share b { font-size: 21px; }
  .meter { height: 8px; }
  .hero .brief { grid-column: 1 / -1; grid-row: 7; padding-block: 12px; scroll-margin-top: -16px; }
  textarea { min-height: 58px; }
  .pick { min-height: 48px; }
  .scale { grid-column: 1 / -1; grid-row: 8; margin: 16px var(--pad) 0; }
  #spread { height: 52px; }
  .plain { grid-column: 1 / -1; grid-row: 9; min-height: 0; margin: 10px var(--pad) 0; }
  .note { grid-column: 1 / -1; grid-row: 10; position: static; max-width: none; padding: 8px var(--pad) 16px; font-size: 12px; }
}
@media (min-width: 1024px) and (max-width: 1180px) and (min-height: 760px) {
  .more { display: block; }
}
/* Phone: one column whose order keeps the working first step inside the first screen.
   Only non-focusable readings move below the form, so tab order still follows the page. */
@media (max-width: 760px) {
  :root { --bar-h: 52px; }
  body { font-size: 16px; }
  .mark img { height: 26px; }
  .since { display: none; }
  .bar { gap: 8px; }
  .bar-end { gap: 4px; }
  .bar-end > .cta { display: none; }
  .hero { min-height: 0; }
  .chamber, .stage, .readout { display: contents; }
  html:not(.js) .stage { display: block; padding: 16px var(--pad); }
  .lede { order: 2; padding: 10px var(--pad) 0; }
  h1 { font-size: 32px; line-height: 1.06; }
  .lede .category { margin-top: 6px; font-size: 15px; }
  .lede p:not(.category) { margin-top: 5px; font-size: 14px; line-height: 1.4; }
  .more { display: none; }
  .well { --size: min(68vw, clamp(110px, calc(100svh - var(--strip-h, 0px) - 610px), 290px)); order: 3; align-self: center; width: var(--size); height: var(--size); min-height: 0; flex: none; margin-top: 4px; cursor: default; }
  #try { order: 4; margin: 2px var(--pad) 0; font-size: 15px; text-align: center; }
  .sizes { order: 5; margin: 6px var(--pad) 0; justify-content: center; font-size: 13px; }
  .sizes legend { width: auto; margin: 0 6px 0 0; line-height: 34px; }
  .chip { min-height: 34px; }
  .chip input { inset: -6px -2px; height: auto; width: auto; }
  .pair { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px var(--pad) 10px; }
  .share { font-size: 13px; }
  .share b { font-size: 20px; }
  .meter { height: 8px; margin-top: 2px; }
  .hero .brief { order: 7; padding: 10px var(--pad) 12px; scroll-margin-top: -16px; }
  .brief h2 { font-size: 20px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .fields, .step[data-step="2"] .fields { grid-template-columns: minmax(0, 1fr); }
  .consent { padding-top: 0; font-size: 14px; }
  .status-row ul { grid-template-columns: minmax(0, 1fr); }
  .plain { min-height: 0; }
  .step > *, .step[data-step="2"] .fields, .step[data-step="3"] .fields, .step[data-step="2"] .go, .step[data-step="3"] .go { grid-column: auto; }
  textarea { min-height: 62px; padding: 8px 12px; }
  .pick { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 5px 7px; font-size: 13px; gap: 5px; }
  .pick svg { width: 15px; height: 15px; }
  .pick small { font-size: 11px; }
  .hero .pick:last-child { flex: .78 1 0; }
  .pick small { white-space: normal; }
  .tags { min-width: 0; }
  .fact dd { font-size: 36px; }
  .passport { min-width: 0; overflow-wrap: anywhere; }
  .go { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; }
  .go button:not(.link) { flex: 1; min-height: 46px !important; padding-block: 6px !important; }
  .go .step-of { flex: none; }
  .scale { order: 8; margin: 16px var(--pad) 0; }
  .plain { order: 9; margin: 10px var(--pad) 0; font-size: 13px; }
  #spread { height: 48px; }
  .note { order: 10; position: static; max-width: none; padding: 10px var(--pad) 16px; font-size: 12px; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .fact.is-wide { grid-column: 1 / -1; grid-row: 2; }
  .fact:last-child { grid-column: 1 / -1; }
  .pulse-cols { grid-template-columns: minmax(0, 1fr); }
  .passport dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .is-full .go { flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .lede p:not(.category) { display: none; }
}
@media (min-width: 1181px) and (max-height: 800px) {
  .again { min-height: 34px; padding-block: 4px; font-size: 13px; }
  .readout { gap: 7px; }
  .readout h2 { font-size: 18px; }
  .share b { font-size: 21px; }
  #spread { height: 40px; }
  .plain { font-size: 12.5px; line-height: 1.35; min-height: 5.4em; }
  .lede p:not(.category) { font-size: 15px; }
  .note { bottom: 4px; font-size: 12px; line-height: 1.3; max-width: 34em; }
  textarea { min-height: 62px; }
  .brief { padding-block: 12px; }
  .pick { min-height: 52px; }
}
@media (max-width: 360px) {
  .places { flex-wrap: wrap; }
  .hero .pick, .hero .pick:last-child { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.tags { flex-wrap: wrap; }
/* Tablet and phone hide this button from sight only: a keyboard can still scoop, and it shows on focus. */
@media (max-width: 1180px) {
  .again { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .again:focus-visible { position: fixed; right: 16px; top: calc(var(--bar-h) + 8px); z-index: 30; width: auto; height: auto; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--ink-900); overflow: visible; clip-path: none; background: var(--paper); }
}

/* Pulse: issue, digest, report */
.small { font-size: 14px; line-height: 1.45; color: var(--ink-500); }
.kicker { font-size: 14px; font-weight: 500; color: var(--gold-700); }
.issue { margin-top: 12px; }
.issue h2 { margin-top: clamp(28px, 3.4vw, 44px); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.issue-head { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.issue-head h1 { margin-top: 8px; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; }
.issue-head .intro { margin-top: 14px; max-width: 44em; }
.big-figure { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: 2px solid var(--ink-900); color: var(--ink-900); line-height: 1.3; }
.big-figure b { font-family: Comfortaa, sans-serif; font-size: clamp(64px, 8vw, 112px); font-weight: 700; line-height: 1; color: var(--gold-700); }
.big-figure small { font-size: 13px; color: var(--ink-500); }
.big-figure.is-dark { padding: 20px 22px; border: 0; border-radius: 4px; background: var(--ink-900); color: var(--on-dark); }
.big-figure.is-dark b { color: var(--gold-hover); }
.big-figure.is-dark small { color: var(--on-dark-soft); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: clamp(24px, 3vw, 40px) 0 0; }
.kpis > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.kpis dd { margin: 0; font-family: Comfortaa, sans-serif; font-size: clamp(30px, 3vw, 42px); font-weight: 700; line-height: 1.1; color: var(--ink-900); }
.kpis dt { font-size: 15px; line-height: 1.4; }
.issue-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.issue-side > * { margin-top: clamp(28px, 3.4vw, 44px); }
.issue-side .passport dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.bars { margin-top: 14px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 7px; line-height: 1.3; }
.bars b { font-family: Comfortaa, sans-serif; font-weight: 700; color: var(--ink-900); }
.bars i { grid-column: 1 / -1; height: 8px; border-radius: 2px; background: var(--grey); }
.bars s { display: block; height: 100%; border-radius: 2px; background: var(--gold); }
.splits { margin-top: 12px; }
.splits li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding-block: 10px; border-top: 1px solid var(--line); align-items: baseline; line-height: 1.3; }
.splits b { display: block; font-family: Comfortaa, sans-serif; font-size: 24px; font-weight: 700; color: var(--ink-900); }
.table-wrap { margin-top: 14px; overflow-x: auto; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.plain-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.plain-table th, .plain-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.plain-table thead th { font-weight: 600; color: var(--ink-900); border-top: 0; }
.fact-note { margin: clamp(24px, 3vw, 36px) 0 0; padding: 16px 18px; background: var(--gold-100); border-radius: 2px; }
.fact-note h2 { margin: 0 0 6px; font-size: 18px; }
.fact-note footer { margin-top: 6px; font-weight: 600; }
.materials { margin-top: clamp(32px, 4vw, 56px); padding-top: 4px; border-top: 1px solid var(--line); }
.materials-grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 16px; align-items: start; }
.cards img { display: block; width: 100%; height: auto; border-radius: 2px; }
.cards ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.cards li a { display: inline-block; padding-block: 6px; }
.tg-post h3 { font-size: 18px; }
.tg-post pre { margin: 10px 0; padding: 14px 16px; max-width: 62ch; background: var(--grey); border-radius: 2px; font: inherit; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.stories { margin-top: 12px; }
.stories > li { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 32px); padding-block: 20px; border-top: 1px solid var(--line); }
.story-figure { margin: 0; }
.story-figure b { font-family: Comfortaa, sans-serif; font-size: clamp(38px, 4.4vw, 60px); font-weight: 700; line-height: 1; color: var(--gold-700); }
.stories h3 { margin-top: 2px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; }
.stories p { margin-top: 6px; }
.inside { margin-top: 12px; padding-left: 1.3em; list-style: decimal; }
.inside li { padding-block: 4px; }
.feed-figure { font-family: Comfortaa, sans-serif; font-weight: 700; color: var(--gold-700); margin-right: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; padding-block: 10px; border-block: 1px solid var(--line); font-size: 14px; }
.findings { margin-top: 18px; padding-left: 1.4em; list-style: decimal; max-width: 62em; }
.findings li { padding-block: 5px; }
.findings b { color: var(--ink-900); font-weight: 600; }
.portraits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: 14px; }
.portraits > li { padding: 16px 18px; background: var(--grey); border-radius: 2px; }
.portraits h3 { font-size: 17px; line-height: 1.25; }
.portraits ul { margin-top: 8px; font-size: 15px; }
.portraits ul li { padding-block: 3px; }
.rep-q { scroll-margin-top: calc(var(--bar-h) + 12px); }
.rep-q .bars { max-width: 760px; }
.heat { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13.5px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.heat th, .heat td { padding: 7px 6px; border-top: 1px solid var(--line); text-align: center; font-weight: 400; }
.heat th[scope="row"], .heat thead tr:last-child th:first-child { position: sticky; left: 0; z-index: 1; min-width: 170px; max-width: 240px; background: var(--paper); text-align: left; }
.heat thead th { font-size: 12.5px; font-weight: 600; color: var(--ink-900); vertical-align: bottom; }
.heat .grp th { border-top: 0; color: var(--ink-500); }
.heat .tot { font-weight: 700; color: var(--ink-900); }
.heat .gs { border-left: 1px solid var(--line-on-grey); }
.heat .base td, .heat .base th { font-size: 12.5px; color: var(--ink-500); }
.heat .m { margin-left: 2px; font-size: 10px; }
.heat .m.up { color: var(--gold-700); }
.heat .m.down { color: var(--status-plan); }
.rep-method p { margin-top: 10px; }
.rep-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(32px, 4vw, 56px); padding: clamp(20px, 3vw, 32px); background: var(--ink-900); color: var(--on-dark); border-radius: 2px; }
.rep-cta h2 { margin: 0; color: var(--on-dark); font-size: 22px; }
.rep-cta p { margin-top: 6px; max-width: 58ch; color: var(--on-dark-soft); }
.report-full > article > .small { margin-top: 14px; }

/* Pulse on the home page: the latest issue first */
.latest { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); margin-top: clamp(24px, 3vw, 40px); padding-block: clamp(18px, 2.4vw, 30px); border-block: 2px solid var(--ink-900); align-items: start; }
.latest .big-figure { padding: 0; border: 0; }
.latest h3 { margin-top: 4px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.latest h3 a { text-decoration: none; }
.latest h3 a:hover { text-decoration: underline; }
.latest .kpis { margin-top: 14px; }
.latest .kpis dd { font-size: 26px; }
.latest .kpis dt { font-size: 14px; }
.latest-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 16px; }
.passport-real .small { margin-top: 8px; }
.latest.is-armed, .passport-real.is-armed { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.latest.is-armed.is-in, .passport-real.is-armed.is-in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .issue-head, .issue-cols, .latest { grid-template-columns: minmax(0, 1fr); }
  .portraits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .kpis, .latest .kpis { grid-template-columns: minmax(0, 1fr); }
  .materials-grid { grid-template-columns: minmax(0, 1fr); }
  .splits li { grid-template-columns: 1fr 1fr; }
  .split-q { grid-column: 1 / -1; }
}
@media print {
  .bar, footer, .toc, .rep-cta, .next-step { display: none !important; }
  .table-wrap { overflow: visible; }
  .heat { min-width: 0; }
}
.issue .report-panel h2 { margin-top: 0; font-size: 22px; }
.table-wrap + .small { margin-top: 10px; }
.figure-note { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--on-dark-soft); }
.latest-stories { margin-top: 14px; }
.latest-stories li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 9px; border-top: 1px solid var(--line); line-height: 1.3; }
.latest-stories b { font-family: Comfortaa, sans-serif; font-size: 22px; font-weight: 700; color: var(--gold-700); }
.digest .issue-head { align-items: start; }
.digest .plain-table td:nth-child(3) { white-space: nowrap; }
.issue-cols .inside + .passport { margin-top: 24px; }
.jump-report { margin-top: 14px; font-weight: 500; }
@media (max-width: 620px) {
  .stories > li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Pages built from content/pages */
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul:not(.page-links), .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .4em; }
.answer-box { padding: 16px 18px; background: var(--gold-100); border-radius: 2px; color: var(--ink-900); max-width: 46em; }
.page-note { font-size: 15px; color: var(--ink-500); }
.page-faq { border-top: 1px solid var(--line); padding-block: 12px; }
.page-faq summary { color: var(--ink-900); font-weight: 500; cursor: pointer; }
.page-faq p { margin-top: 8px; max-width: 62ch; }
.page-links li { padding-block: 8px; border-top: 1px solid var(--line); }
.trust-block .intro { margin-top: .75em; max-width: 46em; }

/* Inner pages on the shared grid: header, content and footer in one 1280px column */
/* One 1280 column for the header on every page; on the home page only the header follows it, its screens stay full width. */
body { --wrap: 1280px; --gutter: max(var(--pad), calc((100% - var(--wrap)) / 2)); }
.bar, .has-grid .foot, .has-grid .final, .page-band, .page-cols, .page-end, .has-grid main.inner, .inner-brief .crumbs { padding-inline: var(--gutter); }
.has-grid main.inner-brief { padding-inline: 0; }
.page-grid > .issue { margin-top: 0; }
.page-grid > .issue > :not(.page-band) { margin-inline: var(--gutter); }
.page-band.is-issue .page-band-in::after { display: none; }
.page-band .kicker { color: var(--gold-700); }
.page-band.is-issue h1 { max-width: none; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; }
.page-band .kpis { margin-bottom: 0; }


.page-band { background: var(--grey); overflow: hidden; }
.page-band-in { position: relative; padding-block: clamp(24px, 2.6vw, 36px) clamp(40px, 4.4vw, 64px); }
.page-band-in > * { position: relative; z-index: 1; }
.page-band-in::after { content: ""; position: absolute; z-index: 0; right: 0; top: 50%; height: min(440px, calc(100% - 48px)); aspect-ratio: 1; transform: translateY(-50%); background: url("../img/kazan-band.svg") center / contain no-repeat; }
.page-band .crumbs { margin-bottom: clamp(24px, 3vw, 40px); }
.page-band .crumbs li + li::before { color: var(--ink-500); }
.page-band h1 { font-size: clamp(36px, 4vw, 60px); line-height: 1.06; max-width: 12em; }
.page-lead { margin-top: 20px; max-width: 37em; color: var(--ink-900); font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; }
.page-figures { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 3.6vw, 56px); margin: clamp(28px, 3vw, 40px) 0 0; }
.page-figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 12px; border-top: 2px solid var(--ink-900); }
.page-figures dt { margin-top: 4px; font-size: 14px; }
.page-figures dd { margin: 0; color: var(--ink-900); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; white-space: nowrap; }

.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 72px) 0; }
.page-text { max-width: none; margin: 0; }
.page-text > * + * { margin-top: 1em; }
.page-text > p, .page-text > ul:not([class]), .page-text > ol:not([class]) { max-width: 68ch; }
.page-text h2 { margin-top: clamp(56px, 6vw, 88px); scroll-margin-top: calc(var(--bar-h) + 20px); }
.page-text > h2:first-child { margin-top: 0; }
.page-text > h2 + * { margin-top: clamp(20px, 2vw, 28px); }
.page-text > h3 { margin-top: 2em; }
.page-text .answer-box { padding: 20px 24px; max-width: none; font-size: 18px; line-height: 1.5; }
.page-text .page-note { position: relative; padding: 14px 18px 14px 46px; max-width: 68ch; background: var(--grey); border-radius: 2px; color: var(--ink); }
.page-text .page-note::before { content: ""; position: absolute; left: 18px; top: 22px; width: 15px; height: 8px; border-radius: 50%; background: var(--gold); transform: rotate(-24deg); }

/* Lists: the grain is the bullet */
.prose.page-text ul, .prose.page-text ol { padding-left: 0; list-style: none; }
.page-text ul:not([class]) > li { position: relative; padding-left: 28px; }
.page-text ul:not([class]) > li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 13px; height: 7px; border-radius: 50%; background: var(--gold); transform: rotate(-24deg); }
.page-text ul:not([class]) > li + li { margin-top: .65em; }
.page-text ol:not([class]) { counter-reset: step; }
.page-text ol:not([class]) > li { position: relative; padding-left: 36px; counter-increment: step; }
.page-text ol:not([class]) > li::before { content: counter(step); position: absolute; left: 0; top: 0; font-family: Comfortaa, sans-serif; font-weight: 700; color: var(--gold-700); }
.page-text ol:not([class]) > li + li { margin-top: .65em; }

.prose.page-text .list-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); padding: 0; list-style: none; }
.prose .list-cols li { margin: 0; padding-top: 14px; border-top: 1px solid var(--ink-900); font-size: 16px; line-height: 1.5; }
.list-cols b { display: block; margin-bottom: 8px; color: var(--ink-900); font-size: 18px; font-weight: 600; line-height: 1.25; }
.prose .list-rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px clamp(20px, 3vw, 40px); margin: 0; padding-block: 18px; border-top: 1px solid var(--line); }
.list-rows li:last-child { border-bottom: 1px solid var(--line); }
.list-rows b { color: var(--ink-900); font-weight: 600; }

/* Timeline */
.tl-era { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px clamp(20px, 3vw, 40px); margin: 0 !important; padding-block: 28px; border-top: 1px solid var(--ink-900); }
.tl-era:last-child { padding-bottom: 0; }
.tl-head { align-self: start; }
.tl-period { display: block; color: var(--ink-900); font-size: 24px; line-height: 1.2; }
.tl-head h3 { margin-top: 6px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.tl-events { position: relative; padding: 0; list-style: none; }
.prose .tl-events li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 44px; margin: 0; padding-block: 7px; }
.tl-events li::before { content: ""; position: absolute; left: 60px; top: 15px; width: 15px; height: 8px; border-radius: 50%; background: var(--gold); transform: rotate(-24deg); }
.tl-events li:not(:last-child)::after { content: ""; position: absolute; left: 67px; top: 27px; bottom: -11px; width: 1px; background: var(--line); }
.tl-year { color: var(--ink-900); font-size: 16px; line-height: 1.55; }
.tl-text { max-width: 58ch; }
.tl-plain { max-width: 62ch; }
.prose .timeline .is-future { border-top: 2px dashed var(--gold); }
.is-future .tl-period { color: var(--gold-700); }

/* Tables and questions */
.page-text .table-wrap { margin-top: 20px; }
.page-text .plain-table { font-size: 16px; line-height: 1.4; }
.page-text .plain-table thead th { padding-block: 0 10px; border-bottom: 1px solid var(--ink-900); font-size: 14px; }
.page-text .plain-table td { padding: 13px 20px 13px 0; }
.page-text .plain-table td:first-child { color: var(--ink-900); font-weight: 500; }
.page-text .plain-table tbody tr:first-child td { border-top: 0; }
.page-text .plain-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.page-text .page-faq { position: relative; margin: 0; padding: 0; }
.page-text .page-faq:last-of-type { border-bottom: 1px solid var(--line); }
.page-text > :not(.page-faq) + .page-faq { margin-top: clamp(32px, 4vw, 48px); }
.page-text .page-faq summary { position: relative; padding: 15px 36px 15px 0; font-size: 18px; line-height: 1.3; list-style: none; }
.page-text .page-faq summary::-webkit-details-marker { display: none; }
.page-text .page-faq summary::before, .page-text .page-faq summary::after { content: ""; position: absolute; right: 6px; top: 25px; width: 14px; height: 2px; background: var(--gold-700); transition: transform .25s var(--ease); }
.page-text .page-faq summary::after { transform: rotate(90deg); }
.page-text .page-faq[open] summary::after { transform: rotate(0); }
.page-text .page-faq p { margin: 0; padding-bottom: 18px; }

/* Related pages */
.prose.page-text .page-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 clamp(20px, 2.4vw, 32px); padding: 0; list-style: none; }
.prose.page-text .page-links li:not(:has(a)) { padding-block: 14px; color: var(--ink-900); font-weight: 500; line-height: 1.3; }
.prose.page-text > .page-links:last-child { margin-top: clamp(56px, 6vw, 88px); }
.prose .feed li { margin: 0; padding-left: 22px; }
.page-text > .feed { margin-top: 16px; }
.cell-status { white-space: nowrap; font-weight: 500; }
.cell-status::before { content: ""; display: inline-block; width: 13px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: .12em; transform: rotate(-24deg); }
.cell-status.is-now { color: var(--status-live); }
.cell-status.is-now::before { background: var(--status-live); }
.cell-status.is-plan { color: var(--status-plan); }
.cell-status.is-plan::before { border: 1px dashed var(--status-plan); }
.page-text .page-links li { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.page-text .page-links a { position: relative; display: block; padding: 14px 28px 14px 0; color: var(--ink-900); font-weight: 500; line-height: 1.3; text-decoration: none; }
.page-text .page-links a:hover { text-decoration: underline; }
.page-text .page-links a::after { content: ""; position: absolute; right: 4px; top: 21px; width: 8px; height: 8px; border-top: 2px solid var(--gold-700); border-right: 2px solid var(--gold-700); transform: rotate(45deg); transition: transform .25s var(--ease); }
.page-text .page-links a:hover::after { transform: translateX(3px) rotate(45deg); }

/* Side column */
.page-side { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 24px; }
.page-toc h2 { margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.55; color: var(--ink-500); }
.page-toc li { border-top: 1px solid var(--line); }
.page-toc li:last-child { border-bottom: 1px solid var(--line); }
.page-toc a { position: relative; display: block; padding: 10px 4px 10px 0; color: var(--ink); font-size: 15px; line-height: 1.3; text-decoration: none; transition: padding-left .25s var(--ease), color .2s linear; }
.page-toc a:hover { color: var(--ink-900); text-decoration: underline; }
.page-toc a[aria-current] { padding-left: 22px; color: var(--ink-900); font-weight: 500; }
.page-toc a[aria-current]::before { content: ""; position: absolute; left: 1px; top: 16px; width: 13px; height: 7px; border-radius: 50%; background: var(--gold); transform: rotate(-24deg); }
.page-side .cta { width: 100%; }
.page-toc-m { display: none; }
@media (max-width: 1023px) {
  .page-toc-m { display: block; margin-inline: var(--gutter); border-bottom: 1px solid var(--line); }
  .page-toc-m summary { position: relative; padding: 14px 28px 14px 0; color: var(--ink-900); font-weight: 500; cursor: pointer; list-style: none; }
  .page-toc-m summary::-webkit-details-marker { display: none; }
  .page-toc-m summary::after { content: ""; position: absolute; right: 6px; top: 20px; width: 8px; height: 8px; border-right: 2px solid var(--gold-700); border-bottom: 2px solid var(--gold-700); transform: rotate(45deg); transition: transform .25s var(--ease); }
  .page-toc-m[open] summary::after { transform: translateY(4px) rotate(-135deg); }
  .page-toc-m ol { padding-bottom: 8px; }
  .page-toc-m a { display: block; padding-block: 9px; text-decoration: none; }
  .page-cols { padding-top: 32px; }
}
.page-end .next-step { margin-top: clamp(96px, 11vw, 160px); margin-bottom: var(--space); }

@media (max-width: 1180px) { .page-band-in::after { right: -150px; } }
@media (max-width: 1023px) {
  .page-cols { grid-template-columns: minmax(0, 1fr); }
  /* Contents move under the band and the closing block carries the button. */
  .page-side { display: none; }
  .page-band-in::after { display: none; }
}
@media (max-width: 760px) {
  .page-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .page-figures div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-figures dd { white-space: normal; }
  /* Wide tables read as stacked rows; each cell names its column. */
  .page-text .plain-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-text .plain-table, .page-text .plain-table tbody, .page-text .plain-table tr, .page-text .plain-table td { display: block; width: 100%; }
  .page-text .plain-table tr { padding-block: 12px; border-top: 1px solid var(--line); }
  .page-text .plain-table tbody tr:first-child { border-top: 1px solid var(--ink-900); }
  .page-text .plain-table tr:last-child { border-bottom: 1px solid var(--line); }
  .page-text .plain-table td, .page-text .plain-table tbody tr:last-child td { padding: 2px 0; border: 0; }
  .page-text .plain-table td[data-label]:not(.cell-status)::before { content: attr(data-label); display: block; margin-top: 6px; color: var(--ink-500); font-size: 13px; }
  .prose.page-text .list-cols, .prose .list-rows li, .tl-era { grid-template-columns: minmax(0, 1fr); }
  .tl-era { padding-block: 22px; }
  .prose .tl-events li { grid-template-columns: 44px minmax(0, 1fr); gap: 34px; }
  .tl-events li:not(:last-child)::after { left: 59px; }
  .tl-events li::before { left: 52px; }
}
@media (prefers-reduced-motion: reduce) { .page-toc a, .page-text .page-links a::after, .page-text .page-faq summary::before, .page-text .page-faq summary::after { transition: none; } }
