/* ---- shared subpage pieces (contact, research, articles, legal), built on core.css tokens ---- */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.here { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--or-text); }
.here::before { content: ""; width: 1px; height: 18px; background: #d6cec2; }
.m-menu a[aria-current="page"] { background: var(--or-soft); }
.site-footer nav a[aria-current="page"] { color: var(--or-text); }
.paper { background: var(--paper); }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* text links keep a tight underline but get a 48px tap area */
.link-u, a.u { position: relative; }
.link-u::after, a.u::after { content: ""; position: absolute; inset: -12px -6px; }
a.u { border-bottom: 1.5px solid var(--line); transition: border-color .25s; }
a.u:hover { border-color: var(--or); }

/* page hero */
.ph { position: relative; padding: clamp(132px, 14vw, 190px) var(--g) clamp(48px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ph h1 em { font-style: normal; color: var(--or); }
.ph .lede { max-width: 44ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.acts .link-u { margin-top: 0; }
.ph-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.ph-stair { position: absolute; inset: 0; margin: auto; width: min(92%, 400px); height: auto; overflow: visible; pointer-events: none; }
.ph-stair path { fill: none; }
.ph-stair .s-base { stroke: #e9e2d7; stroke-width: 14; }
.ph-stair .s-top { stroke: var(--or); stroke-width: 14; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 1.4s .5s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px var(--sans); border: 0; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(21,20,18,.16); }
.btn.or { background: var(--or-ink); }
.btn.or:hover { box-shadow: 0 12px 30px rgba(214,63,28,.24); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: rgba(245,80,43,.45); box-shadow: 0 10px 26px rgba(245,80,43,.12); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }
.copy { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 14px var(--sans); color: var(--body); white-space: nowrap; transition: border-color .25s, color .25s, background .25s; }
.copy:hover { border-color: rgba(245,80,43,.45); color: var(--ink); }
.copy:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.copy svg { width: 15px; height: 15px; flex: none; }
.copy.done { background: #e9f4ee; border-color: #b9dcc8; color: #1d7a4a; }

/* cards and chips */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(60,40,20,.07); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(60,40,20,.1); font-size: 14px; color: var(--body); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; }
.chip b { color: var(--ink); font-weight: 600; }

/* closing call to action */
.close { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.close h2 { max-width: 16ch; margin: 0 auto; }
.close .sub { margin: 0; }
.close .wl { margin: 8px 0 0; width: 100%; }
.close .wl-msg { margin: 0; }

/* scroll reveal (only with JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ph { grid-template-columns: minmax(0, 1fr); padding-top: 112px; }
  .ph-art { min-height: 280px; }
}
/* phones: big type, 48px+ targets, full-width main actions, forms that stack */
@media (max-width: 560px) {
  .here { display: none; }
  h1 span { white-space: normal; }
  section.blk { padding-top: 64px; padding-bottom: 64px; }
  .ph { padding: 104px var(--g) 40px; gap: 28px; }
  .ph .lede { font-size: 19px; line-height: 1.5; }
  .sub { font-size: 18px; line-height: 1.55; }
  h2 { font-size: clamp(30px, 9vw, 36px); line-height: 1.06; }
  .mono { font-size: 12px; }
  .acts { margin-top: 26px; gap: 6px 24px; }
  .acts .btn { width: 100%; min-height: 54px; font-size: 16px; }
  .btn { min-height: 52px; font-size: 16px; }
  .link-u { display: inline-flex; align-items: center; min-height: 48px; padding: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; font-size: 16px; }
  .link-u::after { inset: 0 -6px; }
  .copy { min-height: 48px; font-size: 15px; padding: 0 18px; }
  .wl { flex-direction: column; border-radius: 22px; padding: 8px; gap: 8px; }
  .wl input[type=email] { min-height: 52px; font-size: 17px; }
  .wl button { width: 100%; min-height: 52px; font-size: 16px; }
  .wl-msg { font-size: 16px; }
  .close { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .ph-stair .s-top { animation: none; stroke-dashoffset: 0; }
  .btn, .btn .arr { transition: none; }
}

/* ---- reading template: research articles and the legal pages ---- */
/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--or); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* hero */
.post-hero { padding: clamp(124px, 13vw, 176px) var(--g) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; max-width: 1360px; margin: 0 auto; }
.crumbs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 0; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #c9c0b3; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--or-text); min-height: 44px; }
.post-title { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.042em; max-width: 20ch; font-weight: 500; }
.meta { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; font: 400 13px var(--mono); letter-spacing: .04em; color: var(--mute); }
.meta span { white-space: nowrap; }
.meta span:not(:last-child)::after { content: "·"; margin: 0 10px; }
.hero-stat { padding: 24px; display: grid; gap: 12px; transform: rotate(1.2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero-stat:hover { transform: none; }
.hero-stat > b { font-size: clamp(72px, 7vw, 104px); font-weight: 500; letter-spacing: -.055em; line-height: .88; color: var(--or); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stat p { margin: 0; color: var(--body); line-height: 1.5; font-size: 16px; }

/* source line with a copy button, used on every figure */
.cite { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cite > span { font: 400 12px/1.5 var(--mono); letter-spacing: .02em; color: var(--mute); flex: 1 1 220px; }
.cite > span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--or); margin-right: 8px; vertical-align: 1px; }

/* body: sticky table of contents beside a 68ch column */
.post-body { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 68ch) minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 64px); padding: 0 var(--g) clamp(64px, 8vw, 120px); max-width: 1440px; margin: 0 auto; }
.toc { grid-column: 1; align-self: start; position: sticky; top: 112px; justify-self: end; width: 100%; max-width: 230px; }
.toc summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 16px 0 0; padding: 0; border-left: 1px solid var(--line); display: grid; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0 4px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.35; color: var(--mute); transition: color .25s, border-color .25s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--or); font-weight: 500; }
.toc-foot { margin-top: 18px; display: grid; gap: 8px; }
.toc-track { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.toc-track i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.toc-foot .mono, .toc summary .mono { font-size: 12px; }

.prose, .lg-doc { grid-column: 2; min-width: 0; font-size: 19px; line-height: 1.7; color: var(--body); }
.prose > *, .lg-doc > * { margin: 0; }
.prose > * + *, .lg-doc > * + * { margin-top: 1.1em; }
.prose .standfirst { font-size: clamp(22px, 2vw, 26px); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); font-weight: 400; }
.prose h2, .lg-doc h2 { margin-top: 2.2em; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.032em; color: var(--ink); max-width: none; scroll-margin-top: 104px; }
.prose h2 + *, .lg-doc h2 + * { margin-top: .7em; }
.prose strong, .lg-doc strong { color: var(--ink); font-weight: 600; }
.prose a, .lg-doc a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(245,80,43,.5); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color .25s; }
.prose a:hover, .lg-doc a:hover { text-decoration-color: var(--or); }
.prose > ul, .prose > ol, .lg-doc > ul, .lg-doc > ol { padding-left: 0; list-style: none; display: grid; gap: .55em; }
.prose > ul > li, .lg-doc > ul > li { position: relative; padding-left: 26px; }
.prose > ul > li::before, .lg-doc > ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.prose > ol { counter-reset: n; }
.prose > ol > li { counter-increment: n; position: relative; padding-left: 44px; }
.prose > ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; width: 32px; height: 28px; border-radius: 9px; background: var(--or-soft); color: var(--or-text); font: 500 12px/28px var(--mono); text-align: center; }

/* figures: white cards that animate in as you reach them */
.fig { margin: 1.8em 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(60,40,20,.06); }
.prose > .fig { margin-top: 1.6em; margin-bottom: 1.6em; }
.fig figcaption { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.fig-bars { display: grid; gap: 14px; }
.fb { display: grid; grid-template-columns: 52px 1fr 64px; align-items: center; gap: 14px; }
.fb-y { font: 500 13px var(--mono); color: var(--mute); }
.fb-t { height: 34px; border-radius: 10px; background: #f3eee6; overflow: hidden; }
.fb-t i { display: block; height: 100%; width: var(--w); border-radius: 10px; background: var(--ink); transform-origin: 0 50%; }
.fb.now .fb-t i { background: var(--or); }
.fb b { font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
/* bars with a written label above (longer labels than a year) */
.fig-bars.lbl .fb { grid-template-columns: 1fr 64px; row-gap: 8px; }
.fig-bars.lbl .fb-y { grid-column: 1 / -1; font: 500 15px/1.35 var(--sans); color: var(--body); }
.js .fig[data-fig] .fb-t i { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.2,.8,.2,1); }
.js .fig[data-fig] .fb + .fb .fb-t i { transition-delay: .25s; }
.js .fig.in .fb-t i { transform: none; }

.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #f6f2ec; font-size: 18px; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.ladder .lr { font: 500 12px var(--mono); color: var(--mute); }
.ladder .new { background: var(--or-soft); color: #6b2a17; }
.ladder .new .lr { color: var(--or-text); }
.ladder .tag { margin-left: auto; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--or-ink); color: #fff; padding: 4px 10px; border-radius: 999px; }
.js .fig[data-fig] .ladder .new { opacity: 0; transform: translateY(26px); transition: opacity .6s .5s, transform .8s .5s cubic-bezier(.34,1.4,.64,1); }
.js .fig.in .ladder .new { opacity: 1; transform: none; }

/* an AI answer with the business names blanked out */
.answer { display: grid; gap: 12px; }
.answer-q { margin: 0; display: grid; gap: 8px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.answer-q b { justify-self: end; max-width: 88%; font: 500 17px/1.45 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--ink); background: #f3eee6; border-radius: 16px 16px 4px 16px; padding: 12px 16px; }
.answer-a { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.redact { display: inline; padding: 1px 8px; border-radius: 6px; background: var(--or-soft); color: #6b2a17; font-weight: 600; white-space: nowrap; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.redact.other { background: #ebe6de; color: var(--ink); }

/* one dot per citation */
.dotgrid { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 5px; }
.dotgrid i { aspect-ratio: 1; border-radius: 50%; background: #e2dacd; transition: opacity .4s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.dotgrid i.hit { background: var(--or); box-shadow: 0 0 0 4px rgba(245,80,43,.16); }
.js .fig[data-fig] .dotgrid i { opacity: 0; transform: scale(.3); transition-delay: calc(var(--k, 0) * 1ms); }
.js .fig.in .dotgrid i { opacity: 1; transform: none; }
.js .fig[data-fig] .dotgrid i.hit { transition-delay: 1.3s; transform: scale(2.4); }
.js .fig.in .dotgrid i.hit { transform: scale(1.35); }
.dot-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; color: var(--body); }
.dot-key span { display: inline-flex; align-items: center; gap: 8px; }
.dot-key i { width: 10px; height: 10px; border-radius: 50%; background: #c9c1b3; }
.dot-key i.or { background: var(--or); }

.keynum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px 28px; background: var(--ink); border-color: var(--ink); color: #e7e1d8; box-shadow: 0 30px 70px rgba(21,20,18,.18); }
.keynum .kn-l b { display: block; font-size: clamp(76px, 8vw, 112px); font-weight: 500; letter-spacing: -.055em; line-height: .88; color: var(--or); font-variant-numeric: tabular-nums; }
.keynum .kn-l b.sm { font-size: clamp(60px, 6vw, 84px); white-space: nowrap; }
.keynum .kn-l p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: #d9d2c8; }
.kn-r { display: grid; gap: 14px; }
.kb { display: grid; gap: 6px; font-size: 13.5px; color: #bfb7ac; grid-template-columns: 1fr auto; }
.kb > span:first-child { grid-column: 1; }
.kb b { grid-column: 2; grid-row: 1; color: #fff; font-variant-numeric: tabular-nums; font-weight: 500; }
.kb-t { grid-column: 1 / -1; height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.kb-t i { display: block; height: 100%; width: var(--w); min-width: 4px; border-radius: 99px; background: #8a8278; transform-origin: 0 50%; }
.kb.ai .kb-t i { background: var(--or); }
.kb-note { color: #8a8278; font-size: 12px; }
.js .fig[data-fig] .kb-t i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.js .fig[data-fig] .kb + .kb .kb-t i { transition-delay: .3s; }
.js .fig.in .kb-t i { transform: none; }
.keynum .cite { grid-column: 1 / -1; border-top-color: rgba(255,255,255,.12); }
.keynum .cite > span { color: #a9a29a; }
.keynum .copy { background: transparent; border-color: rgba(255,255,255,.2); color: #e7e1d8; }
.keynum .copy:hover { border-color: var(--or); color: #fff; }
.keynum .copy.done { background: rgba(29,122,74,.25); border-color: rgba(29,122,74,.6); color: #bfe6cf; }

.pull { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 3px solid var(--or); }
.pull p { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.025em; color: var(--ink); font-weight: 500; }

/* the checklist */
.check { margin: 1.4em 0; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); padding: clamp(16px, 2.2vw, 24px); display: grid; gap: 12px; }
.check-top { display: flex; justify-content: space-between; gap: 10px; }
.check-top .mono:last-child { color: var(--or-text); font-variant-numeric: tabular-nums; }
.check-meter { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.check-meter i { display: block; height: 100%; width: 100%; background: var(--or); transform-origin: 0 50%; transform: scaleX(var(--k, 0)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.check ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.check label { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 17px; line-height: 1.55; transition: border-color .25s, background .25s; min-height: 48px; }
.check label:hover { border-color: #cfc5b7; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; border: 1.5px solid #cfc5b7; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.check .box::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.check input:checked + .box { background: var(--or-ink); border-color: var(--or-ink); transform: scale(1.06); }
.check input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--or); outline-offset: 2px; }
.check label:has(input:checked) { border-color: rgba(245,80,43,.35); }
.check-msg { margin: 2px 0 0; font-size: 14.5px; color: var(--mute); }

.sources { margin-top: 2.4em; padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; border: 1px dashed #d6cdbf; }
.sources h2 { margin: 0 0 .6em; font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sources ol, .sources ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.6; }
.sources li::marker { font: 500 12px var(--mono); color: var(--or-text); }
.sources ul li::marker { color: var(--or); }
.kicker { margin-top: 1.8em !important; font-size: 21px; line-height: 1.5; color: var(--ink); }
.post-end { margin-top: 2em !important; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* more research */
.more-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.next { position: relative; display: grid; gap: 10px; padding: 26px; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.next:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(60,40,20,.12); }
.next .mono { font-size: 12px; color: var(--or-text); }
.next b { font-size: 72px; font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.next .nt { font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.next .nd { color: var(--body); line-height: 1.55; }
.next .go { font-weight: 500; display: inline-flex; gap: 8px; }
.next .go i { font-style: normal; transition: transform .3s; }
.next:hover .go i { transform: translateX(4px); color: var(--or); }

/* legal pages: same reading layout, calmer */
.post-hero.legal { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(32px, 4vw, 56px); }
.legal .eyebrow { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.legal .post-title { font-size: clamp(44px, 5.6vw, 84px); }
.lg-switch { margin-top: 28px; display: inline-flex; flex-wrap: wrap; gap: 4px; background: #ece6dc; border-radius: 999px; padding: 4px; }
.lg-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--body); transition: background .25s, color .25s; }
.lg-switch a:hover { color: var(--ink); }
.lg-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.lg-doc h2 .n { display: block; margin-bottom: 10px; font: 500 12px var(--mono); letter-spacing: .1em; color: var(--or-text); }
.lg-doc h2 { font-size: clamp(26px, 2.3vw, 34px); }
.lg-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(28px, 5vw, 80px); align-items: end; }
.lg-help h2 { max-width: 16ch; }
.lg-help-act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lg-help-act .link-u { margin-top: 0; }

@media (min-width: 1101px) {
  .toc summary { pointer-events: none; }
  .toc summary [data-left-s] { display: none; }
}
@media (max-width: 1100px) {
  .post-body { grid-template-columns: minmax(0, 1fr); max-width: calc(68ch + 2 * var(--g)); }
  .prose, .lg-doc { grid-column: 1; }
  .toc { grid-column: 1; position: relative; top: auto; justify-self: stretch; max-width: none; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: 0 16px; }
  .toc summary { min-height: 56px; align-items: center; }
  .toc summary .mono:first-child { display: inline-flex; align-items: center; gap: 10px; }
  .toc summary .mono:first-child::after { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font: 400 16px/1 var(--sans); color: var(--ink); transition: transform .3s; }
  .toc[open] summary .mono:first-child::after { transform: rotate(45deg); }
  .toc ol { margin: 0 0 10px; }
  .toc-foot { display: none; }
}
@media (max-width: 900px) {
  .post-hero { grid-template-columns: minmax(0, 1fr); padding-top: 108px; align-items: start; }
  .hero-stat { transform: none; }
  .more-in { grid-template-columns: minmax(0, 1fr); }
  .lg-help { grid-template-columns: minmax(0, 1fr); }
}
/* phones: 18px body, a comfortable measure, readable figures, thumb-sized buttons */
@media (max-width: 600px) {
  .post-hero { padding: 100px var(--g) 32px; gap: 24px; }
  .crumbs { margin-bottom: 8px; font-size: 12px; }
  .crumbs a, .crumbs [aria-current] { min-height: 48px; }
  .post-title { font-size: clamp(34px, 9.4vw, 44px); line-height: 1.04; letter-spacing: -.04em; }
  .legal .post-title { font-size: clamp(42px, 12vw, 52px); }
  .meta { margin-top: 18px; font-size: 13px; }
  .hero-stat { padding: 20px; border-radius: 20px; }
  .hero-stat > b { font-size: 76px; }
  .hero-stat p { font-size: 17px; }
  .cite { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cite > span { font-size: 12.5px; flex: none; }
  .post-body { padding-bottom: 64px; }
  .toc { margin-bottom: 24px; padding: 0 14px; }
  .toc summary .mono { font-size: 12.5px; }
  .toc a { min-height: 48px; font-size: 16.5px; padding-left: 14px; }
  .prose, .lg-doc { font-size: 18px; line-height: 1.65; }
  .prose .standfirst { font-size: 21px; line-height: 1.45; }
  .prose h2, .lg-doc h2 { font-size: 28px; line-height: 1.12; margin-top: 1.9em; scroll-margin-top: 84px; }
  .fig { padding: 18px 16px; border-radius: 18px; gap: 14px; margin-left: calc(-1 * min(8px, var(--g) / 2)); margin-right: calc(-1 * min(8px, var(--g) / 2)); }
  .fig figcaption { font-size: 15.5px; }
  .fb { grid-template-columns: 44px 1fr 56px; gap: 10px; }
  .fig-bars.lbl .fb { grid-template-columns: 1fr 60px; }
  .fig-bars.lbl .fb-y { font-size: 15.5px; }
  .fb b { font-size: 22px; }
  .fb-t { height: 30px; }
  .ladder li { font-size: 17px; padding: 13px 14px; }
  .answer-q b, .answer-a { font-size: 17px; }
  .answer-q { font-size: 12px; }
  .dotgrid { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
  .dot-key { font-size: 15.5px; flex-direction: column; }
  .keynum { grid-template-columns: minmax(0, 1fr); }
  .keynum .kn-l p { font-size: 17px; }
  .kb { font-size: 14.5px; }
  .kb-note { font-size: 12px; }
  .pull p { font-size: 25px; }
  .check { padding: 16px 14px; }
  .check-top .mono { font-size: 12px; }
  .check label { font-size: 17px; padding: 14px; gap: 12px; }
  .check-msg { font-size: 16px; }
  .sources ol, .sources ul { font-size: 16.5px; }
  .sources h2 { font-size: 13px; }
  .kicker { font-size: 20px; }
  .post-end { flex-direction: column; align-items: stretch; gap: 12px; }
  .post-end .copy { width: 100%; }
  .next { padding: 22px 20px; }
  .next .nt { font-size: 23px; }
  .next .nd { font-size: 17px; }
  .next .mono { font-size: 12px; }
  .more-in .link-u { margin-top: 18px; }
  .lg-switch { display: flex; width: 100%; }
  .lg-switch a { flex: 1; justify-content: center; min-height: 48px; padding: 0 10px; font-size: 15px; }
  .lg-doc h2 .n { font-size: 12.5px; }
  .lg-help-act { align-items: stretch; width: 100%; gap: 6px; }
  .lg-help-act .btn { width: 100%; white-space: normal; text-align: center; }
  .lg-help-act .link-u { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .js .fig[data-fig] .fb-t i, .js .fig[data-fig] .kb-t i, .js .fig[data-fig] .ladder .new, .js .fig[data-fig] .dotgrid i { transform: none; opacity: 1; transition: none; }
  .js .fig[data-fig] .dotgrid i.hit { transform: scale(1.35); }
  .hero-stat, .next, .check .box, .check .box::after, .check-meter i, .toc summary .mono::after { transition: none; }
}

/* ---- phones, direction B: calm reading. Only at 900px and below; desktop is untouched. ---- */
@media (max-width: 900px) {
  .progress { height: 2px; }
  .progress i { background: var(--ink); opacity: .55; }
  .post-hero { padding-top: 104px; padding-bottom: 28px; gap: 28px; }
  .crumbs li:first-child { display: none; }
  .crumbs li:nth-child(2)::before { content: none; }
  .crumbs { font-size: 11.5px; letter-spacing: .12em; }
  .post-title { font-size: clamp(32px, 9vw, 40px); line-height: 1.06; letter-spacing: -.038em; }
  .legal .post-title { font-size: clamp(42px, 12.4vw, 50px); }
  .legal .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  .meta { font-size: 12px; margin-top: 16px; }
  .hero-stat { padding: 22px; border-radius: 20px; gap: 10px; box-shadow: 0 24px 50px -30px rgba(60,40,20,.3); }
  .hero-stat > b { font-size: clamp(72px, 22vw, 88px); }
  .hero-stat p { font-size: 16px; }

  /* quiet contents: one hairline row that opens a plain list */
  .toc { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; margin-bottom: 32px; }
  .toc summary .mono:first-child::after { content: "+"; background: transparent; border: 0; width: 20px; color: var(--mute); }
  .toc ol { border-left: 0; margin-bottom: 12px; }
  .toc a { padding-left: 0; border-left: 0; font-size: 16px; }
  .toc a.on { border-left: 0; }

  /* body: 17.5px, generous measure and spacing */
  .prose, .lg-doc { font-size: 17.5px; line-height: 1.65; }
  .prose .standfirst { font-size: 20px; line-height: 1.45; }
  .prose h2, .lg-doc h2 { font-size: 27px; line-height: 1.12; margin-top: 2em; }
  .lg-doc h2 .n { color: var(--mute); font-size: 11.5px; }
  .prose > ul > li::before, .lg-doc > ul > li::before { width: 6px; height: 6px; background: var(--mute); top: .72em; }
  .prose > ol > li::before { background: #efe9e0; color: var(--body); }
  .pull { border-left-color: var(--ink); padding-left: 18px; }
  .pull p { font-size: 23px; }
  .sources { border-style: solid; border-color: var(--line); background: var(--paper); }
  .sources ol, .sources ul { font-size: 15.5px; }
  .kicker { font-size: 19px; }

  /* figures: calm white cards; source line with a small round copy button */
  .fig { margin-left: 0; margin-right: 0; padding: 20px; border-radius: 20px; gap: 14px; box-shadow: 0 24px 50px -32px rgba(60,40,20,.3); }
  .fig figcaption { font-size: 14.5px; color: var(--mute); }
  .keynum { background: var(--card); border-color: var(--line); color: var(--body); box-shadow: 0 24px 50px -32px rgba(60,40,20,.3); }
  .keynum .kn-l b, .keynum .kn-l b.sm { font-size: clamp(64px, 20vw, 84px); }
  .keynum .kn-l p { color: var(--body); font-size: 16px; }
  .keynum .kn-r { display: none; }
  .keynum .cite { border-top-color: var(--line); }
  .keynum .cite > span { color: var(--mute); }
  .cite { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 12px; }
  .cite > span { flex: 1 1 auto; font-size: 11.5px; }
  .cite > span::before { background: var(--mute); }
  .fig .copy, .hero-stat .copy, .keynum .copy { flex: none; width: 46px; min-height: 46px; padding: 0; border-radius: 50%; gap: 0; background: var(--card); border-color: var(--line); color: var(--body); }
  .fig .copy span, .hero-stat .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fb-t { height: 26px; border-radius: 8px; }
  .fb-t i { border-radius: 8px; }
  .dotgrid i.hit { box-shadow: none; }
  .ladder li { background: var(--paper); }
  .ladder .tag { background: var(--ink); }
  .check { background: transparent; border: 0; padding: 0; }
  .check-meter i { background: var(--ink); }
  .check input:checked + .box { background: var(--ink); border-color: var(--ink); }
  .check label:has(input:checked) { border-color: var(--ink); }

  /* more research and closing */
  .next { padding: 24px 22px; border-radius: 22px; }
  .next .mono { color: var(--mute); }
  section.blk.more, section.blk.close { padding-top: 88px; padding-bottom: 88px; }
  .close h2 { font-size: clamp(30px, 8.8vw, 36px); }
  .close .sub { font-size: 17px; max-width: 30ch; }
  .lg-help h2 { font-size: clamp(30px, 8.8vw, 36px); }
}
@media (max-width: 900px) {
  .prose .sources h2 { margin-top: 0; font-size: 12px; line-height: 1.4; }
}
@media (max-width: 900px) {
  .lg-help-act .btn.or { background: var(--ink); }
}
