/* RadioDusk guides
   Brand (locked by the channel): black, paper, pink; Manrope + Instrument Serif italic for the one highlighted word in the title; sentence case.
   Same quiet language as the map: dark surfaces, paper for "selected", pink only for the title word, links and the main button.
   Type scale (only these sizes): 44 title, 26 section, 18 lead and box titles, 17 body, 15 secondary, 13 meta.
   Radius: boxes 16px, controls 12px, chips and tags full pill. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --black: #000; --paper: #F4EFE8; --pink: #F2448F;
  --text: rgba(244,239,232,.82); --grey: rgba(244,239,232,.62); --faint: rgba(244,239,232,.42);
  --line: rgba(244,239,232,.1); --line-2: rgba(244,239,232,.2);
  --s1: #0c0a0e; --s2: #141117; --s3: #1d1921;
  --box: rgba(244,239,232,.035); --box-2: rgba(244,239,232,.06);
  --r-box: 16px; --r-ctl: 12px;
  --sans: "Manrope", system-ui, -apple-system, sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--black); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: 32px; }
body { margin: 0; font: 500 17px/1.7 var(--sans); letter-spacing: -0.005em; }
a { color: var(--paper); text-decoration-color: rgba(242,68,143,.75); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--pink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid rgba(244,239,232,.6); outline-offset: 2px; }
h1, h2, h3, strong, b { color: var(--paper); }

/* ---------- shell content area (the sidebar comes from shell.css) ---------- */
.content { min-width: 0; display: flex; flex-direction: column; }
.content > main { flex: 1; width: 100%; }
.site-foot { padding: 22px 28px 30px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); }
.site-foot p { margin: 0; max-width: none; }
.yt { display: inline-flex; align-items: center; gap: 8px; background: #FF0033; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; transition: transform .2s var(--ease); }
.yt:hover { color: #fff; }
.yt:active { transform: scale(.97); }
.yt svg { width: 18px; height: 18px; }

/* ---------- article type ---------- */
main { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
main.narrow { max-width: 620px; }
.kicker { font-weight: 600; font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.kicker a { color: var(--faint); text-decoration: none; }
h1 { font-weight: 700; font-size: clamp(32px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; margin: 64px 0 16px; text-wrap: balance; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.hl { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; line-height: 1.1; padding-bottom: .04em; color: var(--pink); letter-spacing: 0; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text); margin: 0 0 24px; max-width: 58ch; }
p { margin: 0 0 16px; max-width: 66ch; }
strong { font-weight: 700; }
.note { font-size: 15px; color: var(--grey); }
.small { font-size: 13px; color: var(--faint); }
main > .note:last-child { font-size: 13px; line-height: 1.6; color: var(--faint); margin-top: 32px; }
.aside { font-size: 15px; color: var(--grey); padding-left: 16px; border-left: 2px solid var(--line-2); margin: 16px 0 0; }

/* hero: text left, cover right on wide screens */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 36px; align-items: start; }
.hero { border-radius: var(--r-box); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- icons (Phosphor, sprite at /assets/icons.svg) ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; color: currentColor; }
.i.big { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 0; cursor: pointer; font: 700 15px var(--sans); letter-spacing: -0.01em; color: var(--black); background: var(--pink); border-radius: var(--r-ctl); padding: 12px 18px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap; transition: transform .2s var(--ease), filter .2s; }
.btn:hover { color: var(--black); filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .i { color: var(--black); }
.link { appearance: none; display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; margin-top: 12px; font: 600 15px var(--sans); color: var(--paper); text-decoration: underline; text-decoration-color: rgba(242,68,143,.75); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; }

/* ---------- boxes: one surface for every box in the article ---------- */
.widget, .answer-grid > div, .lock { background: var(--box); border: 1px solid var(--line); border-radius: var(--r-box); }

/* short answer: the answer itself, then two side notes */
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 8px; }
.answer-grid > div { padding: 20px; display: grid; gap: 12px; align-content: start; }
.answer-grid p { margin: 0; }
.answer-grid .i { width: 22px; height: 22px; color: var(--grey); }
.ans-main { grid-column: 1 / -1; }
.ans-main p { font-size: 18px; line-height: 1.55; color: var(--paper); }
.ans-main .i { color: var(--paper); }
.ans-side { font-size: 15px; line-height: 1.6; color: var(--grey); }

/* ---------- widgets ---------- */
.widget { margin: 24px 0 32px; padding: 20px; }
.widget .q { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: var(--paper); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { appearance: none; display: inline-flex; align-items: center; gap: 7px; font: 600 15px var(--sans); color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { background: var(--box-2); color: var(--paper); }
.chip.on { background: var(--paper); color: var(--black); border-color: var(--paper); }
.chip.on .i { color: var(--black); }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.opt { appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; font: 600 15px/1.35 var(--sans); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .2s var(--ease); }
.opt .i { width: 20px; height: 20px; color: var(--grey); }
.opt:hover { background: var(--box-2); color: var(--paper); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--black); }
.opt[aria-pressed="true"] .i { color: var(--black); }
.answer { display: none; margin-top: 14px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.answer.show { display: block; animation: rise .35s var(--ease); }
.answer b { font-size: 17px; letter-spacing: -0.01em; }
.answer p { margin: 6px 0 0; font-size: 15px; color: var(--grey); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* old drawn map widget (kept for older guides) */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.map-frame { position: relative; border-radius: var(--r-ctl); overflow: hidden; border: 1px solid var(--line); background: #050407; }
.map { width: 100%; height: auto; display: block; aspect-ratio: 3 / 4; touch-action: manipulation; }
.pin { cursor: pointer; outline: none; }
.pin .dot { fill: var(--paper); stroke: #050407; stroke-width: 3; transition: fill .2s; }
.pin text { font-family: var(--sans); font-weight: 700; fill: #000; pointer-events: none; }
.pin .halo { fill: var(--paper); opacity: 0; transition: opacity .2s; }
.pin.approx .dot { stroke: var(--paper); stroke-dasharray: 3 2.5; stroke-width: 2; }
.pin:hover .halo, .pin:focus-visible .halo { opacity: .25; }
.pin.sel .halo { opacity: .35; }
.pin.dim { opacity: .15; pointer-events: none; }
.map-home { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 6px; align-items: center; font: 700 13px var(--sans); color: var(--black); background: var(--paper); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.map-home .i { color: var(--black); }
.map-home[hidden] { display: none; }
.map-credit { position: absolute; right: 0; bottom: 0; margin: 0; font-size: 13px; color: var(--faint); background: rgba(5,4,7,.8); padding: 3px 8px; border-top-left-radius: 8px; }
.map-card { position: sticky; top: 32px; border-radius: var(--r-ctl); padding: 16px; min-height: 150px; background: var(--box-2); }
.map-card.show { animation: rise .35s var(--ease); }
.map-card .hint { color: var(--grey); display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.card-head b { display: block; font-size: 18px; letter-spacing: -0.015em; line-height: 1.2; }
.card-head span { font-size: 13px; color: var(--grey); display: flex; gap: 5px; align-items: center; }
.map-card p { margin: 0 0 8px; font-size: 15px; }
.map-card .best { color: var(--paper); font-weight: 700; display: flex; gap: 6px; align-items: center; }

/* embedded interactive map (/map/?embed=1) */
.rd-embed { padding: 0; overflow: hidden; }
.rd-embed iframe { display: block; width: 100%; height: 560px; border: 0; background: #2f90b0; }
.rd-embed .note { margin: 0; padding: 12px 16px 14px; max-width: none; font-size: 13px; color: var(--faint); }

/* fence lists: two groups; the top payers get a small tag */
.fence-groups { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin: 8px 0 0; }
.fence-groups h3 .i { color: var(--grey); }
.fences { margin: 0; display: grid; }
.fences > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.fences dt { font-weight: 700; font-size: 15px; color: var(--paper); }
.fences dd { margin: 0; font-size: 15px; line-height: 1.55; }
.fences dd span { display: block; font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 2px; }
.fences .best dt::after { content: "Top payer"; display: table; margin-top: 6px; font-size: 13px; line-height: 1.5; font-weight: 700; color: var(--black); background: var(--paper); border-radius: 999px; padding: 0 8px; }

/* steps: a short vertical sequence with a joining line */
.steps { list-style: none; padding: 0; margin: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 0 0 22px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line-2); }
.steps .i { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--box-2); color: var(--paper); }
.steps b { display: block; font-size: 17px; letter-spacing: -0.01em; line-height: 1.4; margin: 6px 0 2px; }
.steps span { color: var(--grey); font-size: 15px; }

/* two short topics side by side */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.split p { font-size: 15px; line-height: 1.65; }

/* risk meter: segments light up to the level */
.meter { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin: 18px 0 8px; }
.meter i { height: 6px; border-radius: 999px; background: var(--box-2); transition: background .3s var(--ease); }
.meter i.on { background: var(--paper); }
.levels { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; font-size: 13px; color: var(--faint); }
.levels span.on { color: var(--paper); font-weight: 700; }

/* checklist (ticks look like the map's) */
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.check-head b { font-size: 18px; letter-spacing: -0.015em; }
.check-head .count { font-size: 13px; color: var(--grey); font-weight: 600; font-variant-numeric: tabular-nums; }
.pips { display: grid; grid-auto-flow: column; gap: 4px; margin: 12px 0 6px; }
.pips i { height: 3px; border-radius: 999px; background: var(--box-2); transition: background .25s; }
.pips i.on { background: var(--paper); }
.rd-check ul { list-style: none; padding: 0; margin: 0; }
.rd-check li { margin: 0; }
.rd-check label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 15px; color: var(--text); }
.rd-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-check .box { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; margin-top: 2px; transition: background .15s, border-color .15s; }
.rd-check .box .i { width: 13px; height: 13px; opacity: 0; color: #000; }
.rd-check input:checked + .box { background: var(--paper); border-color: var(--paper); }
.rd-check input:checked + .box .i { opacity: 1; }
.rd-check input:checked ~ span:last-child { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }
.rd-check input:focus-visible + .box { outline: 2px solid rgba(244,239,232,.6); outline-offset: 2px; }
.rd-check .done-msg { display: none; color: var(--paper); font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.rd-check.done .done-msg { display: block; animation: rise .35s var(--ease); }

/* versus: bars without tracks, the numbers count up */
.rd-vs { margin: 20px 0 8px; display: grid; gap: 10px; }
.vs-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.vs-row .who { font-weight: 600; font-size: 15px; color: var(--grey); }
.vs-row .bar { height: 40px; width: var(--w); min-width: 120px; border-radius: var(--r-ctl); background: var(--box-2); display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.vs-row.b .bar { background: var(--paper); }
.vs-row .num { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; color: var(--paper); }
.vs-row.b .num { color: var(--black); }
.rd-vs.in .bar { transform: scaleX(1); }
.rd-vs .note { margin: 4px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- the unlock box ---------- */
.lock { margin: 64px 0 12px; padding: 28px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px 28px; }
.lock > * { grid-column: 1; }
.lock .pdf-thumb { grid-column: 2; grid-row: 1 / span 4; align-self: start; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.lock h2 { margin-top: 0; }
.lock > p { font-size: 15px; color: var(--grey); }
.lock .files { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; }
.lock .files li { display: flex; gap: 10px; align-items: center; }
.lock form { display: grid; gap: 14px; }
.lock label.field { font-weight: 600; font-size: 15px; color: var(--paper); display: grid; gap: 8px; }
.lock input[type=email] { width: 100%; font: 600 16px var(--sans); color: var(--paper); background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 13px 14px; transition: border-color .15s; }
.lock input[type=email]::placeholder { color: var(--faint); }
.lock input[type=email]:focus { outline: none; border-color: var(--paper); }
.lock label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey); line-height: 1.55; }
.lock label.consent input { width: 18px; height: 18px; accent-color: var(--paper); flex: none; margin-top: 1px; }
.lock .btn { justify-self: start; }
.msg { min-height: 1.4em; font-size: 15px; margin: 0; }
.msg:empty { min-height: 0; }
.msg.err { color: #ff8ab8; }
.msg button { font: inherit; color: var(--paper); background: none; border: 0; text-decoration: underline; text-decoration-color: var(--pink); cursor: pointer; padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.unlocked .form-area { display: none; }
.lock .downloads { display: none; gap: 12px; justify-items: start; }
.unlocked .downloads { display: grid; animation: rise .4s var(--ease); }

.video { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 40px 0 0; }
.video p { margin: 0; font-size: 15px; color: var(--grey); }

/* ---------- guides list ---------- */
main.wide { max-width: 1180px; padding: 48px 32px 64px; }
.list-head { margin-bottom: 28px; }
.list-head h1 { margin-bottom: 10px; }
.list-head .lede { margin: 0; color: var(--grey); }
.gcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gcards li { margin: 0; }
.gcard { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: var(--paper); background: var(--box); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.gcard:hover { color: var(--paper); border-color: var(--line-2); transform: translateY(-3px); }
.gcard .cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--s2); }
.gcard .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gcard:hover .cover img { transform: scale(1.04); }
.gcard .body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
.gcard .topic { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--grey); }
.gcard .topic .i { width: 15px; height: 15px; color: var(--grey); }
.gcard b { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
.gcard .meta { font-size: 13px; color: var(--grey); }
.gcard .kw { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--grey); }
.gcard .kw b { font-size: 13px; color: #000; background: var(--paper); border-radius: 6px; padding: 1px 7px; letter-spacing: 0; }
.none { padding: 40px 0; color: var(--grey); }
main.narrow { padding-top: 48px; }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .app.site { grid-template-columns: 1fr; }
  .app.site .panel { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .app.site .panel-foot { display: none; }
  .app.site .toc, .app.site .toc-label, .app.site .side-actions, .app.site .side-more { display: none; }
  .app.site .topic-rows { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
  .app.site .topic-rows .row { width: auto; grid-template-columns: 17px auto auto; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
  .app.site .topic-rows .row .tick { display: none; }
  .app.site .topic-rows .row[aria-checked="true"] { background: var(--paper); color: #000; }
  .app.site .topic-rows .row[aria-checked="true"] > .i, .app.site .topic-rows .row[aria-checked="true"] .n { color: #000; }
  main { padding: 32px 18px 56px; }
  main.wide { padding: 26px 18px 48px; }
  .gcards { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  h2 { font-size: 24px; margin-top: 52px; }
  .hero-grid, .split, .fence-groups, .map-wrap, .answer-grid { grid-template-columns: 1fr; }
  .hero { display: none; }  /* phones: the title is the hero; the cover is the Short's thumbnail and pushed the article a screen down */
  .cta-row .btn, .lock .btn { width: 100%; }
  .answer-grid > div { padding: 16px; }
  .ans-side { grid-template-columns: 22px 1fr; gap: 12px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .map-card { position: static; min-height: 0; }
  .lock { grid-template-columns: 1fr; padding: 22px 18px; }
  .lock .pdf-thumb { display: none; }
  .widget { padding: 16px; }
  .rd-embed iframe { height: 480px; }
  .yt .label-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .vs-row .bar { transform: none; }
}
