/* Home Truths engine styles. Every colour, face and radius is a token; each edition's skin sets them. */
:root {
  --bg: #f4f2ec; --ink: #141210; --ink2: #5d5850; --line: rgba(20, 18, 16, .14); --panel: #fffdf8; --panel2: #ece8de;
  --accent: #d96e2b; --accent-ink: #fff; --hero-bg: #0b0a14; --hero-ink: #f7f1e3; --hero-ink2: rgba(247, 241, 227, .62);
  --display: Georgia, serif; --body: Inter, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 14px; --r-sm: 8px; --shadow: 0 10px 30px rgba(0, 0, 0, .12); --wrap: 1240px;
  --H: #2f8f5b; --M: #c88a12; --L: #b4572e; --U: #7a7470;
  --bar-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); overflow-x: hidden; }
img, svg { display: block; }
.ico { display: inline-block; vertical-align: -3px; flex: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 14px; }
.big { font: 400 clamp(40px, 6vw, 84px)/1.0 var(--display); margin: 0 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.big em { font-style: italic; color: var(--accent); }
.big.h-sm { font-size: clamp(30px, 4vw, 54px); margin-top: 84px; }
.sub { font-size: 18px; color: var(--ink2); max-width: 760px; margin: 0 0 26px; text-wrap: pretty; }
.gl { border-bottom: 1px dotted currentColor; cursor: help; }
.badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font: 600 10px/1 var(--mono); color: #fff; background: var(--U); flex: none; }
.badge.H { background: var(--H); } .badge.M { background: var(--M); } .badge.L { background: var(--L); } .badge.U { background: var(--U); }

/* Top bar and edition switcher */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 18px; color: var(--hero-ink); transition: background .3s, color .3s, box-shadow .3s; }
.bar.solid { background: color-mix(in srgb, var(--bg) 97%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brand svg { width: 22px; height: 22px; fill: currentColor; }
.brand svg .bd { fill: var(--accent); }
.ed-switch { position: relative; }
.ed-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); background: transparent; }
.ed-btn b, .ed-btn span { white-space: nowrap; }
.ed-btn b { font-weight: 600; font-size: 14px; }
.ed-btn span { font: italic 400 15px/1 var(--display); opacity: .85; }
.ed-menu { position: absolute; top: 44px; left: 0; min-width: 260px; margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); border: 1px solid var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .18s; }
.ed-menu:not(.open) { visibility: hidden; }
.ed-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.ed-menu a { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.ed-menu a:hover, .ed-menu a:focus-visible { background: var(--panel2); outline: none; }
.ed-menu a i { width: 12px; height: 12px; border-radius: 50%; background: var(--ec); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec) 25%, transparent); }
.ed-menu a b { font-weight: 600; }
.ed-menu a span { font: italic 400 15px/1 var(--display); color: var(--ink2); }
.ed-menu a[aria-current] { background: var(--panel2); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; padding: 7px 11px; border-radius: 999px; opacity: .78; }
.nav a:hover { opacity: 1; }
.nav a.on { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.dock { display: none; }
@media (max-width: 379px) { .ed-btn span { display: none; } }
@media (max-width: 899px) {
  .nav { display: none; }
  .brand span { display: none; }
  .dock { display: flex; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: space-around; padding: 6px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 94%, transparent); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .dock a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 10px; padding: 6px 8px; border-radius: 12px; min-width: 52px; color: var(--ink2); }
  .dock a.on { color: var(--ink); background: var(--panel2); }
}

/* Hero */
#pulse { min-height: 100svh; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-txt { position: relative; z-index: 2; max-width: max(520px, min(600px, 44vw)); padding: calc(var(--bar-h) + 9vh) 0 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); pointer-events: none; }
.hero-txt a, .hero-txt .kicker { pointer-events: auto; }
.hero-txt .kicker { color: var(--hero-ink2); }
.hero-txt .kicker span { font: italic 400 20px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--hero-ink); }
.ecg { width: 260px; height: 28px; fill: none; stroke: var(--pulse, var(--accent)); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; margin: 6px 0 10px; }
#pulse h1 { font: 400 clamp(44px, 6.2vw, 92px)/.98 var(--display); margin: 0 0 18px; letter-spacing: -.015em; }
#pulse h1 .n { display: block; font-variant-numeric: var(--num, tabular-nums); }
.hero-meta { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hero-ink2); margin: -6px 0 16px; }
.lede { font-size: 18px; color: var(--hero-ink2); max-width: 430px; margin: 0 0 22px; }
.go { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.hero-layers { position: absolute; z-index: 3; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 74px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; }
@media (min-width: 1100px) { .hero-layers { max-width: min(720px, 56vw); } }
.hero-layers button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .28); color: var(--hero-ink); font-size: 13px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-layers button.on { background: var(--hero-ink); color: var(--hero-bg); border-color: var(--hero-ink); }
.legend-bar { position: absolute; z-index: 3; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 30px; display: flex; gap: 14px; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--hero-ink2); text-transform: uppercase; }
.legend-bar .lg-row { display: none; align-items: center; gap: 8px; }
.legend-bar.ramp .lg-row { display: inline-flex; }
.legend-bar i { width: 120px; height: 6px; border-radius: 3px; }
@media (max-width: 819px), (max-aspect-ratio: 1/1) {
  #pulse { min-height: 0; padding-bottom: 20px; }
  #map { height: 100svh; }
  .hero-txt { padding: 52svh 20px 0; max-width: none; }
  .hero-layers { position: relative; left: auto; bottom: auto; margin: 20px 20px 0; }
  .legend-bar { position: relative; left: auto; bottom: auto; margin: 14px 20px 0; flex-wrap: wrap; }
}
@media (min-width: 820px) and (min-aspect-ratio: 1001/1000) {
  #pulse { display: flex; flex-direction: column; padding-bottom: 30px; }
  .hero-txt { padding-bottom: 26px; }
  .hero-layers { position: relative; left: auto; bottom: auto; margin: auto 0 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
  .legend-bar { position: relative; left: auto; bottom: auto; margin: 16px 0 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); min-height: 12px; }
}
/* A short laptop screen: the count, the way in and the layer chips all fit the first screen. */
@media (min-width: 820px) and (min-aspect-ratio: 1001/1000) and (max-height: 780px) {
  .hero-txt { padding-top: calc(var(--bar-h) + 3vh); padding-bottom: 14px; }
  #pulse .hero-txt h1 { font-size: clamp(40px, 10.5svh, 72px); margin-bottom: 12px; }
  .lede { font-size: 16px; margin-bottom: 14px; }
  .hero-txt .ecg { margin: 2px 0 6px; }
}
/* A landscape screen under the dock breakpoint keeps the last row clear of the dock. */
@media (min-width: 820px) and (max-width: 899px) and (min-aspect-ratio: 1001/1000) { #pulse { padding-bottom: 86px; } }
.nation { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--hero-bg); color: var(--hero-ink); border-top: 1px solid rgba(255, 255, 255, .1); }
.ns { padding: 22px 20px 26px; border-right: 1px solid rgba(255, 255, 255, .1); cursor: help; }
.ns:last-child { border-right: 0; }
.ns > b { display: block; font: 400 34px/1 var(--display); font-variant-numeric: var(--num, tabular-nums); }
.ns > b small { font: 500 13px var(--body); margin-left: 4px; color: var(--hero-ink2); }
.ns span { display: block; font-size: 13px; margin-top: 8px; }
.ns em { display: block; font: normal 400 12px/1.4 var(--body); color: var(--hero-ink2); margin-top: 4px; }
@media (max-width: 899px) { .nation { grid-template-columns: repeat(2, 1fr); } .ns:nth-child(2n) { border-right: 0; } .ns { border-bottom: 1px solid rgba(255, 255, 255, .1); } }

/* Trims between sections are drawn by the skin */
.trim { height: 0; position: relative; z-index: 5; }

/* The room of 100 */
#people { padding: 110px 0 60px; }
.p-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.p-stage { position: sticky; top: calc(var(--bar-h) + 10px); height: calc(100svh - var(--bar-h) - 30px); display: flex; flex-direction: column; }
.p-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.p-num { line-height: .82; }
.p-num { font: 400 clamp(64px, 8vw, 120px)/1 var(--display); font-variant-numeric: var(--num, tabular-nums); color: var(--accent); }
.p-num small { font: 500 18px var(--mono); color: var(--ink2); margin-left: 8px; }
.p-cap { font-size: 20px; max-width: 300px; line-height: 1.3; }
#crowd { flex: 1; width: 100%; min-height: 0; }
#crowd .fig { transition: transform .9s cubic-bezier(.22, .8, .2, 1), opacity .5s; }
#crowd .fig .shape { transition: fill .6s; }
#crowd .lab .gl { font: 600 11px var(--mono); letter-spacing: .1em; fill: var(--ink2); border: 0; }
#crowd .lab .gn { font: 400 24px var(--display); fill: var(--ink); }
.p-steps .step { min-height: 78svh; display: flex; align-items: center; opacity: .25; transition: opacity .4s; }
.p-steps .step.on { opacity: 1; }
.p-steps .step:first-child { min-height: 50svh; }
@media (min-width: 900px) {
  /* Only the card in view and its two neighbours show, so the text on screen is readable and none of it bleeds in at the top. */
  .p-steps .step:not(.on) { opacity: 0; }
  .p-steps .step.on + .step, .p-steps .step:has(+ .step.on) { opacity: .55; }
}
.p-steps .step:last-child { min-height: 90svh; }
.s-k { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin-bottom: 10px; }
.step h3 { font: 400 26px/1.25 var(--display); margin: 0 0 14px; }
.step h3 b { color: var(--accent-text, color-mix(in srgb, var(--accent) 80%, black)); font-weight: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip.cta { background: var(--accent); color: var(--accent-ink); border: 0; padding: 9px 14px; min-height: 44px; font-weight: 600; }
.step .src { font: 400 12px/1.5 var(--mono); color: var(--ink2); }
@media (max-width: 899px) {
  .p-grid { display: block; }
  .p-stage { height: 64svh; top: calc(var(--bar-h) + 4px); z-index: 1; background: var(--bg); }
  .p-steps { position: relative; z-index: 2; }
  .p-steps .step { min-height: 70svh; align-items: flex-end; padding-bottom: 12svh; opacity: 0; }
  .p-steps .step.on { opacity: 1; }
  .p-steps .step > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
  .step h3 { font-size: 21px; }
  .p-num { font-size: 60px; }
  .p-cap { font-size: 16px; }
}

/* Lives */
#lives { padding: 110px 0 70px; overflow: hidden; }
.dkey { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.dkey li { display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); cursor: help; }
.dkey li b { font-size: 14px; }
.dkey li span { display: none; }
@media (max-width: 899px) { .dkey li { padding: 7px 11px; } .dkey li b { font-size: 13px; } }
.rail-ctl { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.rail-ctl button, .y-btns button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 18px; }
.rail-ctl button:disabled { opacity: .35; cursor: default; }
.rail-ctl .hint { font-size: 13px; color: var(--ink2); margin-left: 8px; }
.rail { overflow: hidden; touch-action: pan-y; padding: 14px 0 26px; cursor: grab; user-select: none; -webkit-user-select: none; }
.rail.drag { cursor: grabbing; }
.track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.card { position: relative; flex: none; width: 300px; padding: 0; border: 0; background: none; text-align: left; transition: transform .45s cubic-bezier(.22, .8, .2, 1), opacity .45s; opacity: .55; transform: scale(.94); }
.card.active { opacity: 1; transform: none; }
.rail-dots { display: flex; justify-content: center; gap: 7px; }
.rail-dots { gap: 0; }
.rail-dots button { position: relative; width: 24px; height: 24px; border: 0; padding: 0; background: none; }
.rail-dots button::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--lc); opacity: .4; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 45%, transparent); transition: transform .3s, opacity .3s; }
.rail-dots button.on::after { opacity: 1; transform: scale(1.35); }
@media (max-width: 819px) { .card { width: min(78vw, 310px); } .rail-ctl { flex-wrap: wrap; } .rail-ctl .hint { font-size: 12px; flex-basis: 100%; margin: 4px 0 0; order: 3; } }

/* Profile */
.life { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.life.open { opacity: 1; pointer-events: auto; }
.life-in { position: absolute; inset: 18px; max-width: 1180px; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--ink); border-radius: 22px; padding: 0 40px 40px; transform: translateY(24px); transition: transform .35s cubic-bezier(.22, .8, .2, 1); outline: none; }
.life.open .life-in { transform: none; }
.life-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.lt-id { display: flex; align-items: center; gap: 8px; font: 500 13px var(--mono); }
.nav2 { display: flex; gap: 6px; }
.nav2 button { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.nav2 button[data-close] { width: 38px; padding: 0; justify-content: center; }
.l-hero { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 40px; align-items: center; padding: 34px 0 20px; }
.l-med .med { width: 100%; height: auto; }
.drive-ev { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink2); min-height: 44px; margin-top: 8px; }
.local { font: italic 400 26px/1.2 var(--display); color: var(--lc-ink, var(--lc)); }
.l-id h2 { font: 400 clamp(36px, 4.6vw, 64px)/1 var(--display); margin: 6px 0 14px; }
.l-id .tag { font-size: 19px; color: var(--ink2); margin: 0 0 20px; }
.l-size { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); cursor: help; }
.l-size .cnt { font: 400 40px/1 var(--display); color: var(--lc-ink, var(--lc)); }
.l-def { font-size: 13px; color: var(--ink2); margin-top: 8px; max-width: 520px; }
.l-sec { padding: 30px 0; border-top: 1px solid var(--line); }
.l-sec .kicker { margin-bottom: 16px; }
.insight { font: 400 clamp(24px, 2.8vw, 34px)/1.25 var(--display); margin: 0 0 12px; max-width: 900px; }
.l-sec .sub { max-width: 820px; }
.pass { display: flex; flex-wrap: wrap; gap: 10px; }
.ptile { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); cursor: help; }
.ptile i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--lc) 18%, transparent); color: var(--lc-ink, var(--lc)); }
.ckey { font-size: 13px; color: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stat { position: relative; padding: 16px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); cursor: help; }
.stat .badge { position: absolute; top: 12px; right: 12px; }
.stat b { display: block; font: 400 30px/1.05 var(--display); color: var(--lc-ink, var(--lc)); padding-right: 22px; }
.stat b.long { font-size: 22px; }
.stat em { display: block; font: normal 400 13px var(--body); color: var(--ink2); margin-top: 3px; }
.stat > span:last-child { display: block; font-size: 13px; margin-top: 8px; }
.voice { position: relative; padding: 26px 28px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.qmark { position: absolute; top: -14px; left: 22px; background: var(--bg); padding: 0 6px; }
#qBox { transition: opacity .2s; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font: italic 400 clamp(20px, 2.2vw, 27px)/1.35 var(--display); }
.quote.long blockquote { font-size: clamp(17px, 1.7vw, 21px); }
.quote .orig { font-size: 14px; color: var(--ink2); font-style: italic; margin: 10px 0 0; }
.quote .q-who { font-size: 13px; color: var(--ink2); margin-top: 12px; }
.qnav { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.qnav .qn { font-size: 12px; color: var(--ink2); margin-right: 6px; }
.qnav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (min-width: 820px) { .pair:has(.dream:not(:has(ul))) { grid-template-columns: 1.6fr 1fr; } }
.ph { display: flex; align-items: center; gap: 6px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin: 0 0 12px; }
.pair ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pair li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); }
.pair li[data-src] { cursor: help; }
.pair li .ri { color: var(--lc-ink, var(--lc)); margin-top: 2px; }
.pair li b { display: block; font-weight: 600; font-size: 15px; }
.pair li div > span:not(.gl) { display: block; font-size: 13px; color: var(--ink2); margin-top: 3px; }
.tl { position: relative; display: grid; gap: 6px; }
.tl-months, .tl-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.tl-months span { font: 500 12px var(--mono); color: var(--ink2); text-align: center; padding: 4px 0; }
.tl-months span.on { color: var(--ink); font-weight: 700; }
.tl-now { position: absolute; top: 0; bottom: 0; left: calc((var(--now) - .5) / 12 * 100%); width: 2px; background: var(--accent); opacity: .5; }
.tl-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 6px; background: color-mix(in srgb, var(--lc) 20%, var(--panel)); border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); font-size: 13px; white-space: nowrap; overflow: hidden; }
.tl-bar.short span { display: none; }
.tl-key { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tl-key li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 13px; }
.tl-key li b { font-weight: 600; } .tl-key li small { font-weight: 400; color: var(--ink2); }
.tl-key li span { grid-column: 2; color: var(--ink2); }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.move { padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--lc); }
.move .n { font: 500 12px var(--mono); color: var(--ink2); }
.move h3 { font: 400 23px/1.15 var(--display); margin: 8px 0; }
.move p { font-size: 14.5px; color: var(--ink2); margin: 0 0 14px; }
.kpi { display: flex; gap: 6px; font-size: 13px; padding-top: 12px; border-top: 1px dashed var(--line); }
.signals { display: flex; flex-wrap: wrap; gap: 8px; }
.signals > span, .chans > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.nh { display: flex; align-items: center; gap: 6px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin: 0 0 10px; }
.chans { display: flex; flex-wrap: wrap; gap: 8px; }
.nextlife { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; width: 100%; margin-top: 10px; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; }
.nextlife .nmed { width: 96px; height: 96px; }
.nextlife small { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.nextlife b { display: block; font: 400 26px/1.1 var(--display); margin: 4px 0; }
.nextlife em { font-size: 14px; color: var(--ink2); }
.l-foot { font-size: 12px; color: var(--ink2); padding: 22px 0 0; }
@media (max-width: 819px) {
  .life-in { inset: 0; border-radius: 0; padding: 0 16px 90px; }
  .nav2 button span { display: none; }
  .nav2 button { width: 44px; padding: 0; justify-content: center; }
  .l-hero { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
  .l-med { max-width: 380px; margin: 0 auto; width: 100%; }
  .pair, .notes { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr; }
  .tl-bar span { display: none; }
  .tl-bar { justify-content: center; padding: 0; }
  .tl-months span em { display: none; }
  .nextlife { grid-template-columns: 64px 1fr auto; }
  .nextlife .nmed { width: 64px; height: 64px; }
  .voice { padding: 22px 18px; }
}

/* Year */
#year { padding: 110px 0 80px; }
.y-grid { display: grid; grid-template-columns: minmax(320px, 600px) 1fr; gap: 40px; align-items: start; }
#wheel { width: 100%; height: auto; touch-action: pan-y; border-radius: 50%; cursor: grab; user-select: none; -webkit-user-select: none; }
#wheel.grab { cursor: grabbing; }
.y-btns { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; font-size: 11px; letter-spacing: .14em; color: var(--ink2); }
.y-panel { position: sticky; top: calc(var(--bar-h) + 20px); }
.mname { font: 400 clamp(40px, 5vw, 66px)/1 var(--display); margin-bottom: 18px; }
.mname small { display: block; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--ink2); margin-bottom: 10px; }
.mom { padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--mc); margin-bottom: 10px; }
.mom h3 { display: flex; align-items: center; gap: 10px; font: 400 22px/1.2 var(--display); margin: 0 0 6px; }
.mom .mi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--mc) 22%, transparent); }
.mom p { margin: 0 0 8px; color: var(--ink2); font-size: 15px; }
.mom .mstat { display: flex; gap: 6px; font-size: 13px; color: var(--ink); cursor: help; }
.who { display: flex; flex-wrap: wrap; gap: 6px; }
.who button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--lc) 60%, transparent); background: color-mix(in srgb, var(--lc) 12%, var(--panel)); font-size: 12.5px; }
.y-hint { font-size: 12.5px; color: var(--ink2); }
@media (max-width: 899px) { .y-grid { grid-template-columns: 1fr; } .y-panel { position: static; } }

/* Moves */
#moves { padding: 110px 0 80px; }
.m-ctl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; color: var(--ink2); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.board { position: relative; transition: height .6s cubic-bezier(.22, .8, .2, 1); }
.mt { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; overflow: hidden; transition: transform .7s cubic-bezier(.22, .8, .2, 1), width .7s cubic-bezier(.22, .8, .2, 1), height .7s cubic-bezier(.22, .8, .2, 1), opacity .4s, box-shadow .2s; }
.mt:hover { box-shadow: var(--shadow); }
.mt-top { display: flex; justify-content: space-between; width: 100%; font-size: 11px; color: var(--ink2); letter-spacing: .1em; }
.mt-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--mc) 20%, transparent); color: var(--ink); flex: none; }
.mt-name { font: 400 21px/1.12 var(--display); }
.mt-size { font-size: 13px; color: var(--ink2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mt-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-meter { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.mt-meter span, .mc-meters span { display: inline-flex; gap: 3px; }
.mt-meter i, .mc-meters i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--mc); }
.mt-meter i.on, .mc-meters i.on { background: var(--mc); }
.mt-meter small { font-size: 10px; color: var(--ink2); letter-spacing: .1em; }
.board.is-field .mt { flex-direction: row; align-items: center; padding: 4px 10px 4px 4px; border-radius: 999px; gap: 8px; }
.board.is-field .mt > :not(.mt-ico):not(.mt-name) { display: none; }
.board.is-field .mt-ico { width: 34px; height: 34px; }
.board.is-field .mt-name { flex: 1 1 0; min-width: 0; font: 600 12.5px/1.15 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 639px) { .board.is-field .mt { padding: 4px; justify-content: center; } .board.is-field .mt-name { display: none; } }
@media (max-width: 639px) { .mt { padding: 12px; } .mt-name { font-size: 17px; } .mt-size { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .mt-ico { width: 34px; height: 34px; } }
.m-axes { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--padT, 8px) 0 var(--padB, 40px) var(--padL, 46px); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: var(--gw, 20%) var(--gh, 20%); }
.m-axes span { position: absolute; font-size: 11px; letter-spacing: .12em; color: var(--ink2); }
.ax-y { left: -40px; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.ax-x { right: 0; bottom: -28px; }
.ax-q.q1 { left: 8px; top: 8px; color: var(--accent); }
.ax-q.q2 { right: 8px; top: 8px; }
@media (max-width: 639px) { .ax-y { left: -26px; } }
.m-card { position: fixed; z-index: 55; left: 50%; bottom: 24px; width: min(560px, calc(100vw - 24px)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.22, .8, .2, 1); }
.m-card.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (max-width: 899px) { .m-card { bottom: calc(84px + env(safe-area-inset-bottom)); } .mc-in { max-height: calc(100svh - 190px); } }
.mt > * { flex-shrink: 0; }
.mc-in { position: relative; padding: 22px 24px; border-radius: 18px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-top: 6px solid var(--mc); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); max-height: 76svh; overflow-y: auto; }
.mc-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.mc-k { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.mc-in h3 { font: 400 30px/1.1 var(--display); margin: 8px 40px 8px 0; }
.mc-move { font-size: 17px; margin: 0 0 14px; }
.mc-size { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--panel2); cursor: help; }
.mc-size b { font-weight: 600; }
.mc-calc { font-size: 12px; color: var(--ink2); margin: 8px 0 12px; }
.mc-why { font-size: 15px; color: var(--ink2); }
.mc-why b { color: var(--ink); }
.mc-meters { display: flex; gap: 24px; margin: 12px 0; }
.mc-meters div { display: grid; gap: 6px; }
.mc-meters small, .mc-lives small { font-size: 10.5px; letter-spacing: .12em; color: var(--ink2); }
.mc-lives { display: grid; gap: 8px; margin-top: 8px; }
@media (max-width: 899px) { .m-card { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Close */
#close { padding: 110px 0 140px; }
.take { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.take article { position: relative; padding: 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); cursor: help; }
.take .tn { position: absolute; top: 18px; right: 20px; font: 500 12px var(--mono); color: var(--ink2); }
.take article > .ico { color: var(--accent); }
.take h3 { font: 400 25px/1.18 var(--display); margin: 14px 0 8px; }
.take p { font-size: 15px; color: var(--ink2); margin: 0; }
.pulse-now { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pn { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); cursor: help; }
.pn span { font-size: 11px; color: var(--ink2); letter-spacing: .08em; }
.pn b { font: 400 32px/1 var(--display); }
.pn b small { font: 500 13px var(--body); color: var(--ink2); margin-left: 3px; }
.pn em { font-style: normal; font-size: 14px; }
.pn i { font-style: normal; font-size: 12.5px; color: var(--ink2); }
.dis { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.dis article { padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.dis h3 { font: 400 22px/1.2 var(--display); margin: 0 0 12px; }
.vals { display: grid; gap: 6px; margin-bottom: 12px; }
.vals div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.vals b { font-family: var(--mono); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.dis p { margin: 0; font-size: 14px; color: var(--ink2); }
.method { white-space: pre-line; }
.srcs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 30px; }
.srcs li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.srcs a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.srcs span { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.other-eds { margin-top: 70px; }
.other-eds:has(.oe:empty) { display: none; }
.oe { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.oe a { display: grid; gap: 4px; padding: 18px; border-radius: var(--r); text-decoration: none; background: var(--ec-bg); color: var(--ec-ink); border: 1px solid var(--line); transition: transform .2s; }
.oe a:hover { transform: translateY(-3px); }
.oe a b { font: italic 400 30px/1 var(--display); }
.oe a span { font-size: 14px; opacity: .8; }
.fine { font-size: 12.5px; color: var(--ink2); margin-top: 40px; max-width: 760px; }
.legal { margin-top: 18px; max-width: 78ch; font: 400 12px/1.7 var(--mono); color: var(--ink); }
.legal p { margin: 0; }
.legal p + p { margin-top: 8px; }
.legal a { color: inherit; }
@media (max-width: 899px) { .take, .pulse-now { grid-template-columns: 1fr 1fr; } .take { grid-template-columns: 1fr; } }

/* Tooltip */
.tip { position: fixed; z-index: 80; max-width: 320px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.4; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.tip.show { opacity: 1; transform: none; }
.tip b { display: block; margin-bottom: 3px; }
.tip small { display: block; opacity: .75; font-size: 12px; }

/* Review fixes: legible small meta, focus on the wheel, the mobile hero, field legend, inert steps */
.mt-hz, .mt-meter small, .lot-size, .m-axes span, .mc-k { font-size: 12px !important; }
#wheel:focus-visible { outline-offset: -6px; }
.p-steps .step:not(.on) .chip { color: var(--ink); }
.m-legend { display: none; }
.y-now { font: 600 13px var(--body); letter-spacing: 0; color: var(--ink); text-transform: none; min-width: 120px; text-align: center; }
@media (max-width: 639px) {
  .board.is-field + .m-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
  .m-legend button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); text-align: left; font-size: 12.5px; line-height: 1.2; }
  .m-legend button i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--mc) 25%, transparent); }
}
@media (max-width: 819px), (max-aspect-ratio: 1/1) {
  .hero-layers { position: absolute; top: calc(50svh - 8px); left: 0; right: 0; margin: 0; padding: 0 16px; flex-wrap: nowrap; overflow-x: auto; max-width: none; scrollbar-width: none; }
  .hero-layers button { flex: none; }
  .legend-bar { position: absolute; top: calc(50svh + 40px); left: 16px; right: 16px; margin: 0; }
  .hero-txt { padding-top: calc(50svh + 86px); }
  .y-wheel { max-width: 82vw; margin: 0 auto; }
}

.mt-meter { flex-wrap: wrap; row-gap: 4px; }
.mt-meter .eff { margin-left: 8px; }
.mt-meter .eff i { border-style: dashed; }
.board.is-field + .m-legend { margin-top: 14px; }
.mt-hz { opacity: .9; }

@media (max-width: 899px) {
  .p-steps .step > div { padding: 12px 14px; }
  .step h3 { font-size: 18px; margin-bottom: 8px; }
  .step .chips { gap: 4px; margin-bottom: 6px; }
  .step .chip { font-size: 11.5px; padding: 3px 8px; }
  .step .chip.cta { font-size: 13px; padding: 9px 14px; min-height: 44px; }
  .step .src { font-size: 10.5px; }
  #crowd .lab .gl { font-size: 10px; letter-spacing: .06em; }
  #crowd .lab .gn { font-size: 20px; }
}

/* Second review pass (engine) */
.p-num { white-space: nowrap; }
.mt-meter { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; width: 100%; }
.mt-meter .eff { margin-left: 0; }
@media (max-width: 819px) {
  .p-head { min-height: 104px; }
  .p-cap { min-height: 3.9em; }
  .p-num small { font-size: 14px; margin-left: 4px; }
  .dkey { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .dkey li { flex: none; }
}
@media (max-width: 899px) {
  .y-wheel { width: 80vw; margin: 0 auto; }
}
#pulse :focus-visible, .nation :focus-visible { outline-color: var(--hero-ink); }

/* ---------- Home Truths: homes, doors, the dial, six countries side by side ---------- */

/* Homes are drawn by the house kit. The door takes the life's colour and swings; the glass lights up. */
.house { width: 100%; height: auto; display: block; }
.house .glass { fill: #8FC1D4; transition: fill .5s; }
.hglow { opacity: 0; transition: opacity .45s; }
.hdoor { transition: transform .55s cubic-bezier(.3, .9, .3, 1); }
.card.active .hdoor { transform: scaleX(.62) skewY(-4deg); }
.card.active .hglow { opacity: .85; }
.card:hover .hdoor, .card:focus-visible .hdoor, .l-house .hdoor, a.sd:hover .hdoor, a.sd:focus-visible .hdoor { transform: scaleX(.2) skewY(-9deg); }
.card:hover .hglow, .card:focus-visible .hglow, .l-house .hglow, a.sd:hover .hglow, a.sd:focus-visible .hglow { opacity: 1; }
.card:hover .glass, .card:focus-visible .glass, .l-house .glass { fill: #FFE2A0; }

/* Who holds the keys */
.plaque { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; border-radius: 4px; background: var(--tc, var(--ink)); color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.plaque .ico { vertical-align: 0; }
.t-rent { --tc: #B4472A; } .t-mortgage { --tc: #1F6F80; } .t-own { --tc: #4A7A5B; } .t-social { --tc: #6B4F97; } .t-mixed { --tc: #8A6A1C; }

/* The door card: a home on its street, a number by the door, the drive portrait as a seal */
.dc { display: block; padding: 10px 10px 18px; border-radius: var(--r); background: var(--card, #FDF6E3); color: var(--card-ink, #17283B); box-shadow: 0 14px 30px rgba(0, 0, 0, .24); transition: transform .4s cubic-bezier(.22, .8, .2, 1), box-shadow .3s; }
.card:hover .dc { transform: translateY(-4px); }
.dc-sky { position: relative; display: block; border-radius: calc(var(--r) - 3px); background: var(--sky, #BFE3EA); }
.dc-sky::before { content: ''; position: absolute; top: 13%; right: 27%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.dc-sky > .house { position: relative; border-radius: inherit; }
.card:nth-child(4n+2) .dc-sky { --sky: var(--sky2, #F6D9B8); }
.card:nth-child(4n+3) .dc-sky { --sky: var(--sky3, #CDE6D0); }
.card:nth-child(4n+4) .dc-sky { --sky: var(--sky4, #F9E3A6); }
.dc-no { position: absolute; z-index: 2; top: 9px; left: 9px; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 5px; background: var(--card-ink, #17283B); color: var(--card, #FBF3DF); font: 700 14px/1 var(--mono); box-shadow: 0 0 0 2px var(--card, #FBF3DF); }
.dc-size { position: absolute; z-index: 2; top: 10px; right: 9px; padding: 5px 8px; border-radius: 4px; background: var(--card, #FBF3DF); color: var(--card-ink, #17283B); font: 500 11px/1.3 var(--mono); max-width: calc(100% - 62px); text-align: right; }
.dc-size b { font-weight: 700; }
.dc-seal { position: absolute; z-index: 3; right: 10px; bottom: -34px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 10px; background: var(--card, #FBF3DF); border: 2px solid var(--card-ink, #17283B); box-shadow: 0 4px 0 rgba(23, 40, 59, .18); }
.dc-seal .med { width: 86%; height: auto; }
.dc-cap { display: block; padding: 14px 6px 0; }
.dc-cap > b { display: block; font: 800 23px/1.1 var(--display); margin: 12px 0 0; padding-right: 0; }
.dc-cap .tag { display: block; font-size: 14px; line-height: 1.4; color: var(--card-ink2, #55606B); margin: 6px 0 12px; min-height: 4.2em; }
.dchips { display: flex; flex-wrap: wrap; gap: 5px; }
.dchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, var(--lc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 42%, transparent); }

/* The home in the profile, and the same door abroad */
.l-home { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.l-house { flex: none; width: 150px; border-radius: var(--r-sm); background: #BFE3EA; border: 1px solid var(--line); overflow: hidden; }
.l-home-t { display: grid; gap: 7px; justify-items: start; }
.l-home-t b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.sds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sd { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: transform .2s; }
a.sd:hover { transform: translateY(-3px); }
.sd-door { flex: none; width: 36px; }
.sd-t { display: grid; gap: 3px; min-width: 0; }
.sd-t small { font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.sd-t b { font: 600 17px/1.15 var(--display); }
.sd-t em { font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--ink2); }
.sd-t i { font: 400 11px/1.3 var(--mono); font-style: normal; }
.sd.none { background: none; border-style: dashed; opacity: .62; }
.sd.none .sd-t b { font: 500 13px/1.2 var(--body); color: var(--ink2); }

/* Six countries on one line */
.cmp { display: block; margin-top: 12px; cursor: help; }
.cmp-track { position: relative; display: block; height: 12px; margin: 0 6px; }
.cmp-track::before { content: ''; position: absolute; left: -6px; right: -6px; top: 5.5px; height: 1px; background: currentColor; opacity: .28; }
.cmp-track i { position: absolute; top: 2px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: currentColor; opacity: .42; }
.cmp-track i.me { top: 0; width: 12px; height: 12px; margin-left: -6px; opacity: 1; background: var(--pulse, var(--accent)); }
.cmp-txt { display: block; margin-top: 6px; font: 400 11px/1.4 var(--mono); opacity: .82; }
.cmp-txt b { font-weight: 700; }
.ns .cmp-txt b { display: inline; font: 700 11px/1.4 var(--mono); letter-spacing: 0; font-stretch: normal; }
.ns .cmp { margin-top: 12px; }
.ns .cmp-track { margin-top: 0; }
.ns .cmp-txt { font-size: 11px; margin-top: 6px; }
.step .cmp { margin: 12px 0; max-width: 320px; }
.step .cmp-track i.me { background: var(--accent); }

.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 44px; align-items: start; }
.sbs-g h3 { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 20px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.sbs-row { display: grid; grid-template-columns: 148px 1fr 104px; gap: 14px; align-items: center; min-height: 66px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: help; }
.sbs-row:hover, .sbs-row:focus-visible { background: var(--panel); }
.sbs-k { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.sbs-k small { display: block; font: 400 11.5px/1.3 var(--body); color: var(--ink2); margin-top: 2px; }
.sbs-track { position: relative; display: block; height: 48px; margin: 0 12px; }
.sbs-track::before { content: ''; position: absolute; left: -12px; right: -12px; top: 50%; height: 1px; background: var(--ink); opacity: .22; }
.sbs-track i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink2); }
.sbs-track i b { position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%); font: 500 9.5px/1 var(--mono); font-style: normal; color: var(--ink2); }
.sbs-track i.dn b { bottom: auto; top: 11px; }
.sbs-track i.me { z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--accent); border-color: var(--ink); }
.sbs-track i.me b { bottom: 15px; color: var(--ink); font-weight: 700; }
.sbs-track i.me.dn b { bottom: auto; top: 15px; }
.sbs-v { text-align: right; }
.sbs-v b { display: block; font: 400 24px/1 var(--display); font-variant-numeric: var(--num, tabular-nums); }
.sbs-v small { display: block; font: 400 10.5px/1.3 var(--mono); color: var(--ink2); margin-top: 4px; }
.sbs-row.none { grid-template-columns: 148px 1fr; }
.sbs-row.none .sbs-k { color: var(--ink2); }
.sbs-na { font-size: 13px; color: var(--ink2); }
@media (max-width: 1099px) { .sbs { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .sbs-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .sbs-track { grid-column: 1 / -1; grid-row: 2; }
  .sbs-row.none { grid-template-columns: 1fr; }
}

/* The wealth step: one hundred coins */
#crowd .coin { transition: transform .9s cubic-bezier(.22, .8, .2, 1), opacity .5s; }
#crowd .coin circle { fill: var(--coin, #E0A030); stroke: var(--coin-edge, #8A5A12); stroke-width: 1; vector-effect: non-scaling-stroke; }
#crowd .coin .in { fill: none; stroke: rgba(255, 255, 255, .65); }
#crowd .lab .gc { font: 600 11px var(--mono); letter-spacing: .08em; fill: var(--ink2); }

/* The dial */
#dial { padding: 110px 0 80px; }
/* What holds, said once, before the dial is turned */
.d-verdict { max-width: 66ch; margin: 22px 0 36px; padding: 12px 16px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--panel) 70%, transparent); border-radius: 0 8px 8px 0; font-size: 16.5px; line-height: 1.5; }
.d-verdict[hidden] { display: none; }
.d-grid { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 48px; align-items: center; }
.d-face { display: grid; gap: 14px; justify-items: center; min-width: 0; }
#dialSvg { width: 100%; max-width: 440px; height: auto; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.d-plate { fill: var(--panel); stroke: var(--ink); stroke-width: 3; }
.d-gen-arc { fill: none; stroke-width: 12; opacity: .5; transition: opacity .3s, stroke-width .3s; }
.d-gen-arc.on { opacity: 1; stroke-width: 18; }
.d-tick { stroke: var(--ink); stroke-width: 1; opacity: .4; }
.d-tick.dec { stroke-width: 2; opacity: .9; }
.d-lab { font: 500 12px var(--mono); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
#dPtr { transform-origin: 200px 200px; transition: transform .45s cubic-bezier(.22, .8, .2, 1); cursor: grab; touch-action: none; }
#dialSvg.drag, #dialSvg.drag #dPtr { cursor: grabbing; }
#dialSvg.drag #dPtr { transition: none; }
.d-arm { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.d-hit { fill: transparent; }
.d-knob { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.d-knob-in { fill: var(--panel); }
.d-hub { fill: var(--ink); }
.d-born { font: 500 11px var(--mono); letter-spacing: .22em; fill: var(--bg); opacity: .72; text-anchor: middle; }
.d-year { font: 400 60px var(--display); fill: var(--bg); text-anchor: middle; font-variant-numeric: var(--num, tabular-nums); }
.d-sub { font: 500 11px var(--mono); letter-spacing: .12em; fill: var(--pulse, var(--accent)); text-anchor: middle; }
.d-ctl { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; }
.d-ctl button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 18px; }
#dRange { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--accent); }
.d-gens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.d-gens button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.d-gens button i { width: 10px; height: 10px; border-radius: 50%; background: var(--gc); }
.d-gens button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.d-read { min-width: 0; }
.d-gen { padding: 2px 0 4px 18px; border-left: 6px solid var(--gc); margin-bottom: 22px; }
.d-gen .mono { font-size: 12px; letter-spacing: .1em; color: var(--ink2); }
.d-gen h3 { font: 400 clamp(30px, 3.6vw, 46px)/1.05 var(--display); margin: 8px 0; }
.d-gen h3 small { font: 500 13px var(--mono); letter-spacing: 0; color: var(--ink2); margin-left: 12px; white-space: nowrap; }
.d-gen p { margin: 0; font-size: 17px; color: var(--ink2); max-width: 620px; min-height: 3.1em; }
.d-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.d-card { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); cursor: help; }
.d-k { font: 500 11.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); min-height: 2.7em; }
.d-v { font: 400 44px/1 var(--display); color: var(--accent); font-variant-numeric: var(--num, tabular-nums); }
.d-v small { display: block; font: 400 12.5px/1.3 var(--body); color: var(--ink2); margin-top: 5px; }
.d-card.none .d-v { font-size: 26px; color: var(--ink2); }
.d-when { font: 500 11.5px/1.3 var(--mono); color: var(--ink2); }
.d-spark { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.d-spark path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .5; }
.d-spark .now { fill: var(--ink); }
.d-spark .you { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.d-axis { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--mono); color: var(--ink2); }
.d-axis i { font-style: normal; }
.d-now { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.d-now b { color: var(--ink); }
.d-aside { font-size: 12.5px; line-height: 1.35; color: var(--ink2); margin-top: 4px; }
.d-note { font-size: 13px; color: var(--ink2); max-width: 820px; margin: 28px 0 0; }
@media (max-width: 899px) {
  #dial { padding: 80px 0 60px; }
  .d-grid { grid-template-columns: 1fr; gap: 26px; }
  .d-face { width: 100%; max-width: 400px; margin: 0 auto; }
  .d-gens { justify-content: flex-start; width: 100%; }
  .d-gens button { flex: none; }
  .d-cards { grid-template-columns: 1fr; gap: 10px; }
  .d-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "k k" "v s" "w a" "n n" "x x"; gap: 2px 16px; align-items: center; padding: 14px; }
  .d-k { grid-area: k; min-height: 0; margin-bottom: 4px; }
  .d-v { grid-area: v; font-size: 38px; }
  .d-when { grid-area: w; }
  .d-spark { grid-area: s; margin-top: 0; }
  .d-axis { grid-area: a; }
  .d-now { grid-area: n; }
  .d-aside { grid-area: x; }
  .d-gen p { font-size: 15.5px; min-height: 4.6em; }
}
@media (max-width: 819px) {
  .l-home { margin-top: 14px; }
  .l-house { width: 120px; }
  .sds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) { .sds { grid-template-columns: 1fr; } }

/* ---------- Design review pass (Nov 2026) ---------- */

/* One source pattern. The confidence grade is a small real button inside its host: focus it or press it
   and the host's source note opens. Hosts themselves are not tab stops. */
.src-b { position: relative; padding: 0; border: 0; cursor: pointer; }
.src-b::after { content: ''; position: absolute; inset: -13px; }
.badge.i { border-radius: 50%; background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; font: italic 700 11px/1 Georgia, serif; opacity: .8; }
.badge.src-b:focus-visible { outline-offset: 3px; }
.ns, .pn, .d-card { position: relative; }
.ns > .src-b, .pn > .src-b, .d-card > .src-b { position: absolute; top: 12px; right: 12px; }
.take article > .src-b { position: absolute; right: 18px; bottom: 18px; }
.take article p { padding-right: 30px; }
.pn > span, .d-k { padding-right: 26px; }
.src-b.in { vertical-align: -3px; margin-left: 6px; }
.mom .mstat { align-items: flex-start; }
.mom .mstat > span { flex: 0 1 auto; }
.mom .mstat .src-b { flex: none; margin-top: 1px; }
button.ptile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pair li > .src-b, .l-size > .src-b, .mc-size > .src-b { align-self: center; }
.cmp { cursor: default; }
[data-src]:has(> .src-b), .gl, .sbs-row { cursor: pointer; }
@media (pointer: coarse) { .gl { padding-block: 10px; margin-block: -10px; } }

/* The drive key is a legend, not a row of filters: an icon and a word that explains itself like a glossary term. */
.dkey { gap: 4px 20px; }
.dkey li { padding: 0; border: 0; border-radius: 0; background: none; cursor: default; }
.dk-b { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.dk-b b { font-size: 14px; font-weight: 600; border-bottom: 1px dotted currentColor; }
.dk-b.src-b::after { display: none; }
@media (max-width: 899px) { .dkey li { padding: 0; } .dkey { gap: 0 18px; } }

/* Nation strip: paper and ink, like the rest of the page. The night map stays the one dark moment.
   A skin that wants a dark strip sets its own hero tokens on .nation, as before. */
.nation { --hero-bg: var(--bg); --hero-ink: var(--ink); --hero-ink2: var(--ink2); --pulse: var(--accent); border-top: 1px solid var(--line); }
.ns { display: flex; flex-direction: column; border-color: color-mix(in srgb, currentColor 18%, transparent); cursor: default; }
.ns > span:not(.cmp) { order: -1; margin: 0 0 10px; padding-right: 28px; font-weight: 600; line-height: 1.3; }
.ns > em { margin-top: 8px; }
.ns > .cmp { margin-top: auto; padding-top: 14px; }
.cmp.none .cmp-txt { margin-top: 0; opacity: .7; }
@media (max-width: 639px) {
  .ns { padding: 16px 16px 18px; }
  .ns > b { font-size: 28px; }
  .ns > em { display: none; }
  .ns > .cmp { padding-top: 12px; }
}

/* Hero on phones: the map takes the top two fifths, then the layer chips, the legend on its own row, the count
   and the way in. Everything is in the flow, so a caption that wraps pushes the text down and never sits on it. */
@media (max-width: 819px), (max-aspect-ratio: 1/1) {
  #pulse { display: flex; flex-direction: column; padding-bottom: 86px; }
  .hero-layers { position: relative; order: 1; top: auto; left: auto; right: auto; margin: calc(32svh + 4px) 0 0; padding: 0 16px; }
  .legend-bar { position: relative; order: 2; top: auto; left: auto; right: auto; margin: 10px 16px 0; min-height: 40px; align-content: flex-start; gap: 8px 14px; line-height: 1.35; }
  .hero-txt { order: 3; display: flex; flex-direction: column; align-items: flex-start; padding: 2px 20px 0; }
  /* The finding comes before the way in, so a phone reader meets it in the first screen. */
  .hero-txt .lede { order: 1; margin-bottom: 16px; font-size: 17px; }
  .hero-txt .go { order: 2; margin-bottom: 0; }
  .ecg { height: 22px; width: 204px; margin: 2px 0 4px; }
  #pulse h1 { margin-bottom: 10px; }
  /* The caption of a layer may run to three lines: its box is reserved, so a switch never moves the text below. */
  .legend-bar { min-height: 60px; }
  #pulse { padding-bottom: 96px; }
}

/* Side by side: codes that never collide, a taller line with its two ends named */
.sbs-row { min-height: 84px; }
.sbs-track { height: 64px; }
.sbs-track::before, .sbs-track i { top: 25px; }
.sbs-track i b { bottom: 12px; font-size: 11px; }
.sbs-track i.dn b { bottom: auto; top: 12px; }
.sbs-track i.me b { bottom: 16px; }
.sbs-track i.me.dn b { bottom: auto; top: 16px; }
.sbs-track i.nl b { display: none; }
.sbs-end { position: absolute; bottom: 0; font: 400 10.5px/1 var(--mono); color: var(--ink2); }
.sbs-end.lo { left: -12px; }
.sbs-end.hi { right: -12px; }
.sbs-row:focus-visible { outline-offset: -2px; }

/* Folds: long reference lists start closed on phones */
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -4px 8px 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.sbs-g .fold > summary { margin-top: 12px; border-bottom: 2px solid var(--ink); }
.sbs-g .fold > summary h3 { flex: 1; margin: 0; padding: 0; border: 0; }
.sbs-g .fold > summary .mono { font-size: 11px; color: var(--ink2); }
.dis .fold { grid-column: 1 / -1; }
.dis .fold > summary { padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); font-weight: 600; font-size: 15px; }
.dis .fold > article { margin-top: 14px; }
.src-fold > summary { padding: 0 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
@media (min-width: 640px) { .src-fold > summary { display: none; } }

/* The edition menu lists all six. A country that is not open yet is a quiet row marked "coming". */
.ed-menu { min-width: min(260px, calc(100vw - 24px)); }
.ed-menu a { min-height: 44px; }
.ed-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ed-menu a[aria-disabled] { color: var(--ink2); cursor: default; }
.ed-menu a[aria-disabled]:hover { background: none; }
.ed-menu a[aria-disabled] i { background: none; box-shadow: inset 0 0 0 2px var(--ec); opacity: .75; }
.ed-menu a em { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.ed-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.ed-all a { grid-template-columns: 18px 1fr; }
.ed-all a .ico { width: 16px; height: 16px; }

/* The way home: a full size target on the mark, and two plain buttons at the foot of the page */
.brand { min-width: 44px; min-height: 44px; }
@media (max-width: 899px) { .brand { justify-content: center; } }
.back { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 14px; text-decoration: none; }
.back a:hover { background: var(--panel2); }

/* Seven dock items share the row evenly, each a full touch target */
@media (max-width: 899px) {
  .dock { padding: 5px; }
  .dock a { flex: 1 1 0; min-width: 0; min-height: 46px; align-content: center; padding: 5px 0; font-size: 11px; }
}

/* The room on a phone: the crowd stays pinned at the top and the cards pass beneath it, so a card never
   covers the people it describes and never slides under the dock out of reach. */
@media (max-width: 899px) {
  .p-stage { top: var(--bar-h); height: 52svh; min-height: 300px; z-index: 3; margin: 0 -24px; padding: 8px 24px 6px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 14px -14px rgba(0, 0, 0, .5); }
  .p-head { margin-bottom: 8px; }
  .p-steps { z-index: 0; padding-top: 4px; }
  .p-steps .step, .p-steps .step:first-child, .p-steps .step:last-child { min-height: 0; align-items: stretch; padding: 10px 0; opacity: .55; }
  .p-steps .step:last-child { padding-bottom: 30px; }
  .p-steps .step.on { opacity: 1; }
  .p-steps .step > div { width: 100%; box-shadow: none; }
  .p-steps .step.on > div { border-color: color-mix(in srgb, var(--ink) 45%, transparent); box-shadow: var(--shadow); }
}

/* Moves: a tile keeps its rank and its place. One that the filter leaves out fades where it stands. */
.mt.off { opacity: .2; pointer-events: none; }
.mt.gone { opacity: 0; }
.m-legend button.off { opacity: .35; }
.ax-q.q1, .ax-q.q2 { top: -8px; padding: 0 6px; background: var(--bg); }
/* Coins: where a column of the field is too narrow for a name, the tile shows its rank and the key names it */
.board.is-coins .mt { padding: 4px; justify-content: center; }
.board.is-coins .mt-name, .board.is-coins .mt-ico svg { display: none; }
.board.is-coins .mt-ico::before { content: attr(data-n); font: 700 14px/1 var(--mono); }
.m-legend button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); text-align: left; font-size: 13px; line-height: 1.2; }
.m-legend button i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--mc) 25%, transparent); box-shadow: inset 0 0 0 1.5px var(--mc); font: 700 12px/1 var(--mono); font-style: normal; }
.board.is-coins + .m-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
@media (max-width: 639px) { .board.is-coins + .m-legend { grid-template-columns: 1fr 1fr; gap: 6px; } .m-legend button { font-size: 12.5px; } }

/* The move card: the close button stays in reach while the card scrolls */
.mc-x { position: sticky; top: 0; float: right; z-index: 2; margin: -10px -12px 4px 10px; box-shadow: 0 0 0 6px var(--panel); }
.mc-in h3 { margin-right: 0; padding-right: 52px; }
.mc-in { padding-bottom: 26px; }

/* The source button's touch halo must not reach past the page edge on the last nation tile. */
.ns > .src-b::after, .pn > .src-b::after, .d-card > .src-b::after { inset: -12px; }

/* The year (review 5 to 8): steppers above the wheel, a wheel that fits one screen with its panel,
   a key to the bands, a quiet month that points somewhere, and a phone layout with the steppers always at hand. */
.y-grid { grid-template-columns: minmax(300px, min(600px, 94vh - 180px, 46%)) 1fr; }
@supports (height: 1svh) { .y-grid { grid-template-columns: minmax(300px, min(600px, 94svh - 180px, 46%)) 1fr; } }
.y-wheel { position: sticky; top: calc(var(--bar-h) + 20px); }
.y-btns { margin: 0 0 8px; }
#wheel { display: block; }
#wheel:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
#wheel .mom-arc, #wheel .micon, #wheel .mseg, #wheel .mlab { cursor: pointer; }
.y-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.y-key span { display: inline-flex; align-items: center; gap: 6px; }
.y-key i { width: 22px; height: 9px; border-radius: 5px; flex: none; }
.y-key-t { flex-basis: 100%; justify-content: center; text-align: center; }
.y-quiet p { margin: 0 0 14px; font-size: 17px; color: var(--ink2); max-width: 520px; }
.y-near { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.y-near button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; font-size: 13px; color: var(--ink2); }
.y-near button b { display: block; font: 600 16px/1.2 var(--body); color: var(--ink); }
.y-near button:hover { border-color: var(--ink); }
@media (max-width: 899px) {
  .y-grid { grid-template-columns: 1fr; gap: 0; }
  .y-wheel { display: contents; }
  .y-btns { position: sticky; top: var(--bar-h); z-index: 3; margin: 0 -24px; padding: 6px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  #wheel { width: min(100%, 460px); margin: 14px auto 0; }
  .y-key { margin: 10px 0 22px; }
}
@media (max-width: 639px) {
  #wheel { width: calc(100% + 48px); max-width: none; margin: 0 -24px; border-radius: 0; border-bottom: 1px solid var(--line); }
  #wheel:focus-visible { outline-offset: -3px; }
  .y-key { justify-content: flex-start; }
  .y-key-t { justify-content: flex-start; text-align: left; }
}

/* The dial (review 24, 25): one time axis and a key for the three small charts; on a phone a smaller dial,
   its slider always at hand with the year beside it, and the three readings straight under it. */
.d-out { display: none; }
.d-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.d-key span { display: inline-flex; align-items: center; gap: 7px; }
.d-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none; }
.d-key i.you { width: 11px; height: 11px; background: var(--accent); }
.d-card.none .d-v { font-size: 24px; }
.d-card.none .d-v small { max-width: 26ch; }
.d-axis { font-size: 11px; }
@media (max-width: 899px) {
  .d-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .d-face { display: contents; }
  #dialSvg { width: min(74vw, 38vh, 400px); justify-self: center; }
  .d-ctl { position: sticky; top: var(--bar-h); z-index: 3; width: auto; max-width: none; margin: 10px -24px 0; padding: 6px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .d-out { display: grid; flex: none; min-width: 50px; font: 400 22px/1 var(--display); font-variant-numeric: var(--num, tabular-nums); color: var(--ink); text-align: center; }
  .d-out small { font: 500 9.5px/1.4 var(--mono); letter-spacing: .14em; color: var(--ink2); }
  /* reading order on a phone: dial, slider, the three readings, then the generation and what it met */
  .d-read { display: contents; }
  .d-cards { order: 1; margin-top: 14px; }
  .d-key { order: 1; margin: 8px 0 18px; }
  .d-gens { order: 2; margin: 0 0 12px; }
  .d-gens button { min-height: 44px; }
  .d-gen { order: 3; margin-bottom: 0; }
  .d-gen p { min-height: 0; }
}

/* Doors and profiles (review 26, 27, 28, 37, 55, 56). */
.nofig { display: grid; gap: 6px; margin: 12px 0 0; font-size: 14px; }
.nofig span { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.nofig b { font-weight: 600; padding: 2px 0 2px 12px; border-left: 2px solid var(--line); }
.rail-dots button { pointer-events: none; }
.life { background: rgba(0, 0, 0, .8); }
#qBox { display: grid; align-content: start; }
@media (max-width: 639px) {
  .stat { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px; }
  .stat b { grid-row: 1 / span 2; font-size: 25px; padding-right: 0; overflow-wrap: anywhere; }
  .stat b.long { font-size: 19px; }
  .stat em { grid-column: 2; margin-top: 0; padding-right: 30px; }
  .stat > span:last-child { grid-column: 2; margin-top: 4px; }
  .stat b + span:last-child { margin-top: 0; padding-right: 30px; }
  .l-fold { padding: 6px 0; }
  .l-fold > summary.kicker { display: flex; align-items: center; min-height: 48px; margin: 0; cursor: pointer; list-style: none; }
  .l-fold > summary::-webkit-details-marker { display: none; }
  .l-fold > summary > span { flex: 1; }
  .l-fold > summary svg { flex: none; margin-left: 12px; transition: transform .2s; }
  .l-fold[open] { padding-bottom: 26px; }
  .l-fold[open] > summary.kicker { margin-bottom: 8px; }
  .l-fold[open] > summary svg { transform: rotate(180deg); }
  .hint-x { display: none; }
  .rail-ctl { flex-wrap: nowrap; }
  .rail-ctl .hint { flex: 1 1 0; order: 0; margin: 0 0 0 8px; }
  .d-gen h3 small { display: block; margin: 6px 0 0; }
}

/* Polish (review 51, 53, 54, 59, 60, 63, 69) */
/* The top bar controls keep their size, and take a full 44 px of touch. */
.nav a, .ed-btn { position: relative; }
.nav a::after, .ed-btn::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.ecg .ecg-base { opacity: .3; }
.hero-layers button, .d-gens button, .m-ctl button, .mc-lives button { min-height: 44px; }
.d-axis { font-size: 12px; }
/* On wide screens the generation chips wrap as balanced lines, so no chip is ever left alone on a row,
   whatever the names are in each edition. */
/* Generation keys: an even keypad of three across on desktop, so the last key never hangs alone in the middle. */
@media (min-width: 900px) {
  .d-gens { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 440px; }
  .d-gens button { justify-content: flex-start; white-space: nowrap; }
}
.d-note p { margin: 0; }
.d-more { margin-top: 2px; }
.d-more > summary { justify-content: flex-start; font-weight: 600; color: var(--ink); }
.d-more > summary::after { margin-left: 12px; }
.d-more > p { margin: 0 0 8px; }
.mc-meters small, .mc-lives small { font-size: 12px; letter-spacing: .08em; }
.p-steps .step { scroll-margin-top: 72px; }
@media (max-width: 639px) { .mt-name { -webkit-line-clamp: 3; } .board.is-field .mt-name { -webkit-line-clamp: 2; } }
@media (max-width: 374px) { .mt-name { -webkit-line-clamp: 3; } .mt-size { -webkit-line-clamp: 2; } }
/* Under 900 px the bar sits on top and the dock at the bottom: keep focus and anchor jumps clear of both. */
@media (max-width: 899px) { html { scroll-padding-top: var(--bar-h); scroll-padding-bottom: 76px; } }

/* Move tiers: a small honest label on each tile and card. Beyond the mandate carries the tile colour; table stakes stays plain. */
.mt-tier { display: inline-block; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.mt-tier[data-tier="beyond"] { border-color: var(--mc); background: color-mix(in srgb, var(--mc) 16%, transparent); color: var(--ink); }
.mc-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.mc-tier small { font-size: 13px; color: var(--ink2); }
@media (max-width: 639px) { .mt-tier { padding: 2px 6px; font-size: 12px; letter-spacing: .02em; } .m-ctl .seg { max-width: 100%; flex-wrap: wrap; border-radius: 24px; } .m-ctl .seg-tier button { padding: 8px 9px; font-size: 13px; } }
