/* The four pre-call article pages: video first, the short summary, then the article.
   Brand from the live library (Playfair Display, DM Sans, deep green) plus the paper
   documents, gold highlights and gain/loss colours of the matching cartoon videos.
   Loaded last and scoped to body.rh-article so the other local drafts are unchanged. */
.rh-article {
  --ink: #14201c; --ink-soft: #4a5652; --deep: #14533f; --deep-2: #0f4434;
  --mint: #e8f3ed; --wash: #f7f9f8; --rule: #e3e8e6; --line: #dde5e1;
  --note: #fbf6ea; --note-rule: #eadfc4;
  --doc: #114944; --paper: #fffdf7; --paper-rule: #e6dcc8; --gold: #d8a455; --gold-soft: #f6e9d0;
  --gain: #17784a; --gain-soft: #d9f0e2; --loss: #b23a2a; --loss-soft: #f8dcd4; --bank: #285a8a;
  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --green: var(--deep);
  --gutter: clamp(16px, 4vw, 48px);
  --sticky-top: 0px;
  margin: 0; background: #fff; color: var(--ink);
  font: 400 18px/1.62 var(--font);
  -webkit-text-size-adjust: 100%;
}
.rh-article h1, .rh-article h2, .rh-article h3, .rh-article blockquote, .rh-article .brand {
  font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.005em;
}
.rh-article h2, .rh-article h3 { text-wrap: balance; }
.rh-article a { color: var(--deep); }
.rh-article :focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
.rh-article button { font-family: var(--font); }
.rh-article img { max-width: 100%; }
.rh-article .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Top bar, as on the live library */
.rh-article > header, .rh-article > header.mast {
  max-width: none; margin: 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; padding: 12px var(--gutter);
  background: #fff; border-bottom: 1px solid var(--rule);
}
.rh-article > header .brand { width: auto; display: inline-flex; line-height: 0; }
.rh-article > header .brand img { width: 164px; height: auto; display: block; }
.rh-article > header nav { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-article > header nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 12px;
  border: 1px solid var(--rule); border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--ink); text-decoration: none; background: #fff;
}
.rh-article > header nav a:hover { border-color: var(--deep); color: var(--deep); }
.rh-article > header nav a[aria-current="page"] { background: var(--deep); border-color: var(--deep); color: #fff; }

/* 1. The video */
.rh-article .hero { background: var(--wash); border: 0; border-bottom: 1px solid var(--rule); }
.rh-article.video-guide .hero > div, .rh-article main.article > .hero {
  display: block; max-width: 980px; margin: 0 auto; padding: 30px var(--gutter) 28px;
}
.rh-article .hero h1 {
  max-width: 24ch; margin: 0 0 18px; font-size: clamp(2rem, 5.4vw, 3.05rem); line-height: 1.14; letter-spacing: -.01em;
}
.rh-article .hero-text { max-width: none; margin: 0; }
.rh-article .hero-text p { max-width: 60ch; margin: -6px 0 18px; color: var(--ink-soft); font-size: 1.08rem; }
.rh-article .hero-text small { margin: -10px 0 18px; color: var(--ink-soft); }
.rh-article figure.video { margin: 0; }
.rh-article figure.video video {
  display: block; width: 100%; aspect-ratio: 16/9; background: #c98d55; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 32, 28, .12), 0 18px 40px -22px rgba(20, 32, 28, .5);
}
.rh-article figure.video video::cue {
  font: 600 1em/1.35 var(--font); color: #fff; background-color: rgba(17, 73, 68, .92);
}
.rh-article figure.video figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.rh-article figure.video figcaption a { font-weight: 600; }

/* 2. The short summary */
.rh-article.video-guide .summary { max-width: 980px; margin: 0 auto; padding: 28px var(--gutter) 8px; }
.rh-article.video-guide .summary > div, .rh-article .takeaways {
  max-width: none; padding: 20px clamp(18px, 3vw, 30px) 18px; border: 0; border-left: 5px solid var(--deep);
  border-radius: 14px; background: var(--mint);
}
.rh-article.video-guide .summary h2, .rh-article .takeaways h2 {
  margin: 0 0 10px; font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.22;
}
.rh-article.video-guide .summary ul, .rh-article .takeaways ul { margin: 0; padding-left: 1.2em; }
.rh-article.video-guide .summary li, .rh-article .takeaways li { margin: 0; padding: 6px 0; }
.rh-article.video-guide .summary li::marker, .rh-article .takeaways li::marker { color: var(--deep); }

/* Paper documents, as in the videos: dark green strip on top, cream paper, gold highlights */
.rh-article .doc {
  background: var(--paper); border: 1px solid var(--paper-rule); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(42, 37, 34, .08), 0 14px 30px -24px rgba(42, 37, 34, .55);
}
.rh-article .doc-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap;
  margin: 0; padding: 10px 18px; background: var(--doc); color: #fff;
  font: 700 .78rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.rh-article .doc-head span:last-child { font-weight: 600; opacity: .82; }

/* The article: one readable column, contents on the side on wide screens */
.rh-article.video-guide .layout { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.rh-article .article h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.18; }
.rh-article .article .subtopic > h3:first-child { font-size: clamp(1.3rem, 2.8vw, 1.65rem); line-height: 1.25; }
.rh-article .article .chapter { border-top: 2px solid var(--deep); }
.rh-article .article blockquote {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.45; background: var(--note);
  border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0;
}
.rh-article .contents { border-radius: 12px; background: var(--wash); border: 1px solid var(--rule); }
.rh-article .contents nav a { color: var(--ink); }
.rh-article .explainer, .rh-article .graphic, .rh-article .tool {
  border-radius: 12px; border: 1px solid var(--line); background: var(--wash);
}
.rh-article details > summary { min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.rh-article .control input { accent-color: var(--deep); }

/* Transcript, written from the same captions the player shows */
.rh-article #transcript p { display: flex; gap: 12px; align-items: baseline; margin: 0; padding: 8px 0; max-width: 70ch; }
.rh-article #transcript .seek {
  flex: none; min-width: 3.6em; min-height: 32px; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 999px;
  background: #fff; color: var(--deep); font: 600 .8rem/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer;
}
.rh-article #transcript .seek:hover { border-color: var(--deep); }
.rh-article .transcript-section { max-width: 850px; }

/* Footer */
.rh-article > footer { max-width: none; padding: 28px var(--gutter) 48px; background: #eef2f0; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.rh-article > footer > * { max-width: 1120px; margin-inline: auto; }
.rh-article > footer p { max-width: 70ch; }
.rh-article > footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rh-article > footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Market drops: compare the four balances at a glance ---------- */
.page-market #market-comparison { max-width: 980px; padding: 22px var(--gutter) 6px; margin: 0 auto; }
.page-market .opening-chart { background: var(--paper); border: 1px solid var(--paper-rule); border-radius: 14px; padding: clamp(16px, 3vw, 28px); }
.page-market .opening-chart h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); line-height: 1.2; }
.page-market .scenario-picks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 520px; padding: 4px;
  border: 1px solid var(--paper-rule); border-radius: 999px; background: #fff;
}
.page-market .scenario-picks button {
  min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font-size: clamp(.8rem, 3.4vw, .95rem); font-weight: 700; padding: 6px 8px; white-space: nowrap;
}
.page-market .scenario-picks button::before { content: "▼" / ""; margin-right: 6px; color: var(--loss); }
.page-market .scenario-picks button[data-rate="12"]::before { content: "▲" / ""; color: var(--gain); }
.page-market .scenario-picks [aria-pressed="true"] { background: var(--doc); color: #fff; }
.page-market .scenario-picks [aria-pressed="true"]::before { color: #fff; }

.page-market .delta-chart li {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(120px, 1fr) auto;
  grid-template-areas: "name track result" "desc track result";
  column-gap: 18px; row-gap: 2px; align-items: center; padding: 14px 0; border-top: 1px solid var(--paper-rule);
}
.page-market .delta-chart .kind { display: contents; }
.page-market .delta-chart .kind strong { grid-area: name; align-self: end; font-size: 1.02rem; }
.page-market .delta-chart .kind small { grid-area: desc; align-self: start; color: var(--ink-soft); font-size: .84rem; }
.page-market .delta-chart .delta-track {
  grid-area: track; height: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--loss-soft) 50%, var(--gain-soft) 50%);
}
.page-market .delta-track i { height: 10px; top: 3px; border-radius: 999px; background: var(--gain); }
.page-market .delta-track .loss { background: var(--loss); }
.page-market .delta-track .flat { background: var(--ink); }
.page-market .delta-chart .delta-result {
  grid-area: result; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 4px; text-align: right;
}
.page-market .delta-result small { color: var(--ink-soft); font-size: .8rem; line-height: 1.2; }
.page-market .delta-result .ending-balance {
  display: block; font: 700 clamp(1.3rem, 3.4vw, 1.6rem)/1.1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums;
}
.page-market .delta-result .change-text {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .82rem; background: #eceeea; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.page-market .delta-chart li:has(.delta-track .gain) .ending-balance { color: var(--gain); }
.page-market .delta-chart li:has(.delta-track .loss) .ending-balance { color: var(--loss); }
.page-market .delta-chart li:has(.delta-track .gain) .change-text { background: var(--gain-soft); color: #0f5a37; }
.page-market .delta-chart li:has(.delta-track .loss) .change-text { background: var(--loss-soft); color: #8c2a1e; }
.page-market .opening-chart .figure-note { margin-top: 12px; }

.page-market .example-statement { padding: 0; border: 1px solid var(--paper-rule); border-radius: 12px; overflow: hidden; background: var(--paper); }
.page-market .example-statement figcaption {
  margin: 0; padding: 10px 18px; background: var(--doc); color: #fff; font: 700 .8rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.page-market .example-statement .statement-note { margin: 12px 18px; }
.page-market .example-statement dl > div { padding: 14px 18px; border-top: 1px solid var(--paper-rule); }
.page-market .example-statement dd:first-of-type { font-size: 1.25rem; }
.page-market .example-statement .marked { background: var(--gold-soft); border-left: 5px solid var(--gold); }
.page-market .loss-strip i { background: var(--gain); opacity: .85; }
.page-market .visual-key i { background: var(--gain); }
.page-market .loss-strip .owner, .page-market .visual-key .owner {
  opacity: 1; background: repeating-linear-gradient(135deg, var(--loss-soft) 0 5px, var(--loss) 5px 7px);
}
.page-market .stack i:first-child { background: var(--doc); }
.page-market .stack i:last-child { background: var(--gold); }
.page-market .stack { border-radius: 6px; overflow: hidden; }

/* ---------- Taking money out: follow the $50,000 to the bank ---------- */
.page-withdrawal .money-trail { max-width: 980px; margin: 0 auto; padding: 22px var(--gutter) 6px; }
.page-withdrawal .money-trail .doc { max-width: 640px; }
.page-withdrawal .money-trail h2 { margin: 18px 18px 4px; font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.22; }
.page-withdrawal .trail { list-style: none; margin: 8px 0 0; padding: 4px 18px 18px 18px; counter-reset: trail; }
.page-withdrawal .trail > li {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  margin: 0; padding: 11px 0 11px 40px; border-bottom: 1px dashed var(--paper-rule);
}
.page-withdrawal .trail > li::before {
  counter-increment: trail; content: counter(trail); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--doc); color: #fff; font: 700 .8rem/1 var(--font); z-index: 1;
}
.page-withdrawal .trail > li::after {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--paper-rule);
}
.page-withdrawal .trail > li:first-child::after { top: 50%; }
.page-withdrawal .trail > li:last-child::after { bottom: 50%; }
.page-withdrawal .trail .what { font-weight: 600; }
.page-withdrawal .trail .what small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
.page-withdrawal .trail .amount { font: 700 1.2rem/1.2 var(--font); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.page-withdrawal .trail .minus .amount { color: var(--loss); }
.page-withdrawal .trail .subtotal { background: var(--gain-soft); margin-inline: -18px; padding-inline: 58px 18px; }
.page-withdrawal .trail .subtotal::before { left: 18px; }
.page-withdrawal .trail .subtotal::after { left: 30px; }
.page-withdrawal .trail .ask .amount {
  min-width: 2.4em; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: #7a5414; font-size: .9rem; text-align: center;
}
.page-withdrawal .trail .bank { border-bottom: 0; }
.page-withdrawal .trail .bank::before { background: var(--bank); }
.page-withdrawal .trail .bank .what { color: var(--bank); }
.page-withdrawal .trail .split-bar { grid-column: 1 / -1; display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.page-withdrawal .trail .split-bar span {
  display: flex; align-items: center; justify-content: center; font: 700 .78rem/1 var(--font); font-variant-numeric: tabular-nums;
}
.page-withdrawal .trail .split-bar .free { width: 60%; background: var(--gain-soft); color: #0f5a37; }
.page-withdrawal .trail .split-bar .charged { width: 40%; background: var(--gold); color: #3b2a08; }
.page-withdrawal .stack { border-radius: 6px; overflow: hidden; }
.page-withdrawal .stack i:first-child { background: #7cbf9c; }
.page-withdrawal .stack i:last-child { background: var(--gold); }
.page-withdrawal .spread a { border-top-color: var(--doc); border-radius: 10px; background: var(--paper); }
.page-withdrawal .yeargrid > div { border-radius: 8px; background: var(--wash); }
.page-withdrawal .yeargrid .selected { background: var(--doc); }
.page-withdrawal .ledger > div:last-child dd { color: var(--loss); }
.page-withdrawal .rowchart dd span { background: linear-gradient(to right, var(--gold) var(--share), #efe7d6 var(--share)); }

/* The quote sheet: every line of the $50,000, top to bottom, ending at the bank */
.page-withdrawal .paper { padding: 0; border: 1px solid var(--paper-rule); border-radius: 12px; overflow: hidden; background: var(--paper); }
.page-withdrawal .paper > header { display: block; padding: 10px 18px; border: 0; background: var(--doc); }
.page-withdrawal .paper > header b { color: #fff; font-size: 1rem; }
.page-withdrawal .paper dl { position: relative; margin: 0; padding: 8px 18px 4px 58px; counter-reset: line; }
.page-withdrawal .paper dl::before { content: ""; position: absolute; left: 30px; top: 26px; bottom: 40px; width: 2px; background: var(--paper-rule); }
.page-withdrawal .paper dt { position: relative; margin-top: 12px; font-size: 1.02rem; }
.page-withdrawal .paper dt::before {
  counter-increment: line; content: counter(line); position: absolute; left: -41px; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--doc); color: #fff; font: 700 .8rem/1 var(--font);
}
.page-withdrawal .paper dd { margin: 2px 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--paper-rule); }
.page-withdrawal .paper dt:last-of-type { color: var(--bank); }
.page-withdrawal .paper dt:last-of-type::before { background: var(--bank); }
.page-withdrawal .paper dd:last-of-type { border: 0; margin-left: -58px; margin-right: -18px; margin-bottom: 0; padding: 4px 18px 16px 58px; background: #e9f0f7; }
.page-withdrawal .paper dt:last-of-type { margin-left: -58px; margin-right: -18px; padding: 14px 18px 0 58px; background: #e9f0f7; }
.page-withdrawal .paper dt:last-of-type::before { left: 17px; top: 14px; }

/* ---------- Annuity types: find the terms on a sample offer ---------- */
.page-types .offer-terms h2 { margin-bottom: 8px; }
.page-types .offer-terms > p { max-width: 70ch; margin-bottom: 18px; }
.page-types .offer-terms .doc { max-width: 860px; }
.page-types .offer-lines { margin: 0; padding: 0; list-style: none; }
.page-types .offer-lines > li { margin: 0; border-top: 1px solid var(--paper-rule); }
.page-types .offer-lines > li:first-child { border-top: 0; }
.page-types .offer-lines a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "term value" "means value";
  gap: 2px 16px; align-items: center; padding: 13px 18px; color: var(--ink); text-decoration: none;
}
.page-types .offer-lines a:hover { background: var(--gold-soft); }
.page-types .offer-lines .term { grid-area: term; font-weight: 700; }
.page-types .offer-lines .term::after { content: " ↓" / ""; color: var(--deep); font-weight: 600; }
.page-types .offer-lines .means { grid-area: means; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.page-types .offer-lines .value {
  grid-area: value; justify-self: end; padding: 4px 12px; border-radius: 8px; background: var(--gold-soft);
  border: 2px solid var(--gold); font: 700 1.05rem/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.page-types .offer-lines .type-name { display: block; color: var(--deep); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.page-types .doc-foot { margin: 0; padding: 10px 18px; border-top: 1px solid var(--paper-rule); font-size: .84rem; color: var(--ink-soft); }
.page-types .type h3 { scroll-margin-top: 16px; }
.page-types .type:target, .page-types .type:has(h3:target) { outline: 3px solid var(--gold); outline-offset: 2px; }
.page-types .type { border-top-color: var(--doc); border-radius: 10px; background: var(--paper); }
.page-types .paths a, .page-types .tiles > div { border-top-color: var(--doc); border-radius: 10px; }
.page-types .band { background: var(--doc); }
.page-types .band a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.page-types .compare-picker select { border-radius: 10px; border: 2px solid var(--doc); font-weight: 600; }

/* ---------- Five questions: five headings you can skim ---------- */
.page-five .wrap { counter-reset: question; }
.page-five .q-progress {
  position: sticky; top: var(--sticky-top); z-index: 5; display: flex; align-items: center; gap: 8px;
  margin: 24px 0 0; padding: 8px 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(4px);
}
.page-five .q-progress span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.page-five .q-progress a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--rule); color: var(--ink); font-weight: 700; text-decoration: none; background: #fff;
}
.page-five .q-progress a[aria-current="step"] { background: var(--doc); border-color: var(--doc); color: #fff; }
.page-five .takeaways ul { list-style: none; padding: 0; counter-reset: skim; }
.page-five .takeaways li { counter-increment: skim; padding: 0; border-top: 1px solid rgba(20, 83, 63, .14); }
.page-five .takeaways li:first-child { border-top: 0; }
.page-five .takeaways li a {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 0; color: var(--ink);
  font-weight: 600; text-decoration: none; line-height: 1.35;
}
.page-five .takeaways li a::before {
  content: counter(skim); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--doc); color: #fff; font-size: .85rem;
}
.page-five .takeaways li a:hover { color: var(--deep); text-decoration: underline; }
.page-five section.reading[id] {
  counter-increment: question; max-width: 760px; margin-block: 28px; padding: 22px clamp(18px, 3vw, 30px);
  background: var(--paper); border: 1px solid var(--paper-rule); border-top: 5px solid var(--gold); border-radius: 12px;
  scroll-margin-top: calc(var(--sticky-top) + 72px);
}
.page-five section.reading[id]::before {
  content: "Question " counter(question) " of 5"; display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--doc); color: #fff; font: 700 .76rem/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.page-five .reading h2 { max-width: 32ch; font-size: clamp(1.45rem, 3.6vw, 2rem); line-height: 1.2; margin-bottom: 14px; }
.page-five .reading p { max-width: 66ch; }

/* ---------- Phones ---------- */
@media (max-width: 780px) {
  .rh-article { font-size: 17px; }
  .rh-article > header .brand img { width: 136px; }
  .rh-article > header nav { width: 100%; gap: 6px; }
  .rh-article > header nav a { min-height: 44px; font-size: .82rem; padding: 4px 10px; }
  .rh-article.video-guide .hero > div, .rh-article main.article > .hero { padding: 18px var(--gutter) 20px; }
  .rh-article figure.video video { border-radius: 10px; }
  .rh-article.video-guide .summary { padding-top: 20px; }

  .page-market .delta-chart li {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name result" "track track" "desc desc";
    row-gap: 8px; padding: 14px 0;
  }
  .page-market .delta-chart .kind strong { align-self: center; }
  .page-market .delta-chart .delta-result { align-self: center; }

  .page-types .offer-lines a { grid-template-columns: minmax(0, 1fr) auto; }
  #comparison .scroll.single-type { overflow: visible; }
  #comparison .scroll.single-type table, #comparison .scroll.single-type tbody,
  #comparison .scroll.single-type thead, #comparison .scroll.single-type tr { display: block; width: 100%; }
  #comparison .scroll.single-type tr { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
  #comparison .scroll.single-type thead tr { background: var(--doc); border-color: var(--doc); }
  #comparison .scroll.single-type thead { border: 0; }
  #comparison .scroll.single-type tr > :first-child { display: block; width: auto; position: static; border: 0; padding: 10px 14px 0; background: transparent !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
  #comparison .scroll.single-type thead tr > :first-child { color: rgba(255, 255, 255, .8); }
  #comparison .scroll.single-type tr > .selected-type { display: block; padding: 2px 14px 12px; background: transparent !important; font-size: 1rem; }
  #comparison .scroll.single-type thead .selected-type { color: #fff; font: 600 1.3rem/1.25 var(--serif); }
  #comparison .scroll.single-type tbody tr:nth-child(odd) { background: #fff; }

  .page-five .q-progress { gap: 6px; }
  .page-five .q-progress span { display: none; }
  .page-five .q-progress a { width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .page-withdrawal .trail > li { padding-left: 36px; }
  .page-withdrawal .trail .amount { font-size: 1.08rem; }
  .page-types .offer-lines a { grid-template-columns: 1fr; grid-template-areas: "term" "value" "means"; }
  .page-types .offer-lines .value { justify-self: start; margin: 4px 0; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .page-five .q-progress, .rh-article #transcript .seek { display: none; }
  .rh-article figure.video { display: none; }
}
.rh-article #transcript .transcript-note { display: block; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Charts: one visual language, taken from the cartoon videos ----------
   Every chart sits on the same paper card. Green = money kept or earned, red = money lost,
   gold = a charge or the part to look at, deep green = the insurer's promise. */
.rh-article .explainer, .rh-article .graphic, .rh-article .tool {
  background: var(--paper); border: 1px solid var(--paper-rule); border-radius: 14px;
  padding: clamp(16px, 3.5vw, 26px); box-shadow: 0 10px 26px -22px rgba(20, 32, 28, .45);
}
.rh-article .explainer figcaption, .rh-article .graphic figcaption, .rh-article .tool > label {
  font: 600 clamp(1.08rem, 2.8vw, 1.25rem)/1.3 var(--serif); color: var(--ink); margin: 0 0 14px; letter-spacing: -.005em;
}
.rh-article .figure-note, .rh-article .tool .fine, .rh-article .explainer > p:last-child {
  color: var(--ink-soft); font-size: .84rem; line-height: 1.5;
}

/* Split bars: the two parts of one amount, with the numbers under each part */
.rh-article .stack { height: 18px; gap: 3px; border-radius: 999px; overflow: hidden; }
.rh-article .stack i:first-child { background: var(--deep); }
.rh-article .stack i:last-child { background: var(--gold); }
.page-withdrawal .stack i:first-child { background: #8cc7a6; }
.rh-article .legend { font-size: .84rem; color: var(--ink-soft); }
.rh-article .legend span:last-child { text-align: right; }
.rh-article .legend b { font: 700 clamp(1.15rem, 3vw, 1.35rem)/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Sliders: a big thumb you can grab with a thumb, the value large beside it */
.rh-article .control { gap: 14px; }
.rh-article .control input[type=range] {
  -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; min-width: 0;
}
.rh-article .control input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--gold-soft); }
.rh-article .control input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--gold-soft); }
.rh-article .control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%;
  background: var(--deep); border: 4px solid #fff; box-shadow: 0 1px 6px rgba(20, 32, 28, .35);
}
.rh-article .control input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--deep); border: 4px solid #fff; box-shadow: 0 1px 6px rgba(20, 32, 28, .35);
}
.rh-article .control input[type=range]:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
.page-market .control input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--loss-soft), #f1efe8 50%, var(--gain-soft)); }
.page-market .control input[type=range]::-moz-range-track { background: linear-gradient(90deg, var(--loss-soft), #f1efe8 50%, var(--gain-soft)); }
.rh-article .tool { --out: 4.4rem; }
.page-withdrawal .tool { --out: 7rem; }
.rh-article .control output { flex: 0 0 var(--out); width: var(--out); min-width: 0; font: 700 clamp(1.35rem, 4vw, 1.6rem)/1 var(--font); color: var(--ink); text-align: right; white-space: nowrap; }
.rh-article .ends { max-width: none; padding-right: calc(var(--out) + 14px); color: var(--ink-soft); font-size: .8rem; margin-bottom: 6px; }
.page-market #market-tool .delta-chart { margin-top: 10px; }

/* Row bars: one bar per case, the dollar figure at the end */
.rh-article .rowchart > div { padding: 10px 0; border-top: 1px dashed var(--paper-rule); }
.rh-article .rowchart > div:first-child { border-top: 0; }
.rh-article .rowchart dt { color: var(--ink-soft); }
.rh-article .rowchart dd { grid-template-columns: minmax(0, 1fr) max-content; }
.rh-article .rowchart dd span { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--share), var(--gold-soft) var(--share)); }
.rh-article .rowchart dd b { font-size: 1.12rem; }

/* Market drops: the $120,000 squares */
.page-market .loss-strip i { border-radius: 4px; }

/* "Jump to a section" on phones: a card that reads as a menu */
.rh-article .mobile-contents { border: 1px solid var(--rule); border-radius: 12px; background: var(--wash); padding: 0 16px; margin: 18px 0; }
.rh-article .mobile-contents summary { font-weight: 700; color: var(--deep); }
.rh-article .mobile-contents summary::after { content: "+" / ""; margin-left: auto; font-size: 1.3rem; font-weight: 400; }
.rh-article .mobile-contents[open] summary::after { content: "−" / ""; }
.rh-article .mobile-contents nav { gap: 0; padding: 0 0 8px; }
.rh-article .mobile-contents nav a { min-height: 44px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }

/* Annuity types: the "What to ask the advisor" band (its heading and link were dark on dark) */
.page-types .band h2, .page-types .band a { color: #fff; }
.page-types .band blockquote {
  margin: 0; padding: 18px 20px; background: var(--note); color: var(--ink); border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0; font-size: clamp(1.15rem, 3.6vw, 1.5rem); line-height: 1.4;
}

/* Desktop alignment: footer lines share one left edge; the title band runs edge to edge on every page */

.rh-article > footer > * { max-width: none; margin-inline: 0; }
.rh-article > footer > b { display: block; margin-bottom: 6px; font: 600 1.15rem/1.3 var(--serif); color: var(--ink); }
.rh-article > footer p { max-width: 70ch; margin: 0 0 6px; }
.rh-article main.article > .hero { box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax); border-bottom: 0; }

/* Alignment: the top bar, the page column and the footer share one centered 1120px column.
   The title area (title, subtitle, video, its caption) is centered over the video. */
.rh-article > header, .rh-article > header.mast, .rh-article > footer {
  padding-inline: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter)));
}
.rh-article .hero h1 { max-width: 22ch; margin-inline: auto; text-align: center; }
.rh-article .hero-text { text-align: center; }
.rh-article .hero-text p { margin-inline: auto; }
.rh-article .hero-text small { display: block; }
.rh-article figure.video figcaption { text-align: center; }
@media (max-width: 780px) {
  .rh-article > header, .rh-article > header.mast { justify-content: center; text-align: center; }
  .rh-article > header .brand { width: 100%; justify-content: center; }
  .rh-article > header nav { justify-content: center; }
}
.rh-article > footer > .mast { max-width: none; margin: 0; padding: 0; }

/* December 2026 films: phones held upright play the portrait cut (<source media>), so the player takes its shape */
@media (max-width: 700px) and (orientation: portrait) {
  .rh-article figure.video video, figure.video video {
    aspect-ratio: 9 / 16; width: auto; max-width: 100%; height: min(82vh, calc((100vw - 32px) * 16 / 9)); margin: 0 auto;
  }
}

/* Static comparisons in the three companion articles. */
.rh-article .guide-copy {
  box-sizing: border-box;
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rh-article .guide-copy .guide-grid {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(.94rem, 2vw, 1.06rem);
  line-height: 1.4;
}
.guide-copy .guide-grid :is(th, td) {
  text-align: left;
  vertical-align: top;
  white-space: normal;
  padding: clamp(6px, 1.5vw, 14px);
  border-bottom: 1px solid var(--rule);
}
.guide-copy .guide-grid thead { background: var(--wash); }
.guide-copy .guide-grid caption, .page-market .guide-copy figcaption {
  margin-bottom: .5rem;
  text-align: left;
  font-weight: 600;
}
.page-market .guide-copy :is(.sample-statement, .loss-chart) {
  margin: 1rem 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--wash);
}
.page-market .sample-statement dl { margin: 0; }
.page-market .sample-statement dl > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--rule);
}
.page-market .sample-statement dd { margin: 0; font-weight: 700; }
.page-market .splitbar {
  display: grid; grid-template-columns: 5fr 1fr; height: 20px; margin-block: 1rem;
}
.page-market .splitbar i { background: var(--deep); }
.page-market .splitbar b { background: repeating-linear-gradient(120deg, #9c7445 0 4px, #f1dfc7 4px 8px); }
.page-market .loss-chart .legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.page-market .loss-chart .legend div > :is(span, strong) { display: block; }
.page-market .loss-chart .legend i, .page-market .loss-chart .legend b {
  display: inline-block; width: .85rem; height: .85rem; margin-right: .4rem;
}
.page-market .loss-chart .legend i { background: var(--deep); }
.page-market .loss-chart .legend b { background: repeating-linear-gradient(120deg, #9c7445 0 3px, #f1dfc7 3px 6px); }
.page-market .loss-chart .legend div > strong { display: inline; }
.page-types .guide-grid th:first-child { width: 36%; }
.page-five .guide-grid { margin-block: 1rem; font-variant-numeric: tabular-nums; }
