/* LoanTape public design system.
   Opt-in: public pages extend templates/public/base.html, which loads only this sheet.
   Logged-in dashboards keep vault.css / layout.css / hero.css / gallery.css and never load this file.

   The page is a cool grey paper and the ink is a graphite close to the slides' own near-black, so a
   dark slide sits on the page like a printed plate. Colour comes from the decks: the gold mark for
   actions and section rules, slate blue for links, red and green only inside the slides, where they
   mean worse and better. The "Depth and colour" layer at the end of this file sets the current palette. */

@font-face { font-family: "Source Serif Pro"; src: url("/static/fonts/source-serif-pro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("/static/fonts/source-serif-pro-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("/static/fonts/source-serif-pro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/static/fonts/source-sans-pro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/static/fonts/source-sans-pro-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/static/fonts/source-sans-pro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/static/fonts/source-sans-pro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #E5E8EB;        /* page */
  --paper-deep: #D9DDE1;   /* alternate band */
  --sheet: #F3F4F5;        /* tables, form fields, the viewer */
  --ink: #0B0E14;          /* text, rules, plate colour */
  --ink-2: #353E48;
  --ink-3: #56606B;
  --hair: #BEC5CC;
  --hair-soft: #CDD3D8;
  --accent: #1C44C2;       /* ink blue: links, buttons, figure numbers */
  --accent-deep: #142F8A;
  --accent-wash: #D3DBF2;
  --worse: #A3261C;        /* status only */
  --better: #19663B;       /* status only */
  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1280px;
  --gutter: 24px;
  --pad: 32px;
  --masthead: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--masthead) + 16px); }
body {
  margin: 0; min-width: 320px;
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
strong { font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.band { padding: 48px 0 56px; }
.band__head { grid-column: 1 / span 3; }
.band__body { grid-column: 4 / -1; min-width: 0; }
.band__full { grid-column: 1 / -1; min-width: 0; }
.band__head .section__title { margin-bottom: 10px; }
.band__head p { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.band__head p + p { margin-top: 8px; }
.band__links { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.band__links li { padding: 8px 0; border-bottom: 1px solid var(--hair-soft); color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* ── Type ───────────────────────────────────────────────── */
.headline {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.012em;
  max-width: 20ch; text-wrap: balance;
}
.standfirst {
  margin-top: 16px; max-width: 54ch;
  font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.42; color: var(--ink-2);
  text-wrap: pretty;
}
.section__title { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.12; letter-spacing: -0.006em; text-wrap: balance; }
.subhead { font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.dateline { font-size: 14px; color: var(--ink-3); }
.dateline strong { color: var(--ink); font-weight: 600; }
.source { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.source a { color: inherit; }
.fine { font-size: 14px; color: var(--ink-3); }
.num { font-variant-numeric: lining-nums tabular-nums; }
.figure-num { font-weight: 700; color: var(--accent); }

/* ── Buttons and links ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; cursor: pointer;
}
.btn:hover { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); text-decoration: none; }
.btn--quiet { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--quiet:hover { color: var(--ink); background: var(--sheet); border-color: var(--ink); }
.btn--full { width: 100%; }
.more { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

/* ── Masthead ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--ink);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: var(--masthead); }
.nav__brand { font: 600 1.35rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav__brand:hover { color: var(--ink); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__link { color: var(--ink-2); font-size: 16px; text-decoration: none; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav__cta { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.nav__menu { display: none; margin-left: auto; }
.nav__menu > summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 2px;
  font-weight: 600; font-size: 15px;
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__drawer {
  position: absolute; left: 0; right: 0; top: var(--masthead);
  display: grid; padding: 8px var(--pad) 20px; background: var(--paper); border-bottom: 1px solid var(--ink);
}
.nav__drawer a { padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-size: 17px; }
.nav__drawer a.btn { margin-top: 14px; border-bottom: 1px solid var(--accent); color: #fff; }


/* ── Figures (slides as printed plates) ─────────────────── */
.fig { margin: 0; min-width: 0; }
.fig__label { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.fig__title { margin-top: 4px; font: 600 1.12rem/1.25 var(--serif); color: var(--ink); text-wrap: balance; }
.fig__plate {
  display: block; position: relative; margin-top: 10px; padding: 0; border: 0; width: 100%;
  background: var(--ink); color: inherit; cursor: zoom-in; line-height: 0;
  box-shadow: 0 0 0 1px var(--ink);
}
.fig__plate img { width: 100%; height: auto; }
.fig__plate:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fig__note { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.fig__note strong { color: var(--ink); }
.fig__open { margin-top: 6px; font-size: 14px; font-weight: 600; }
.fig__source { margin-top: 6px; }

/* ── Home video: a looping plate across the measure ─────── */
.herovideo { grid-column: 1 / -1; margin-top: 36px; }
.herovideo__frame { margin-top: 10px; background: var(--paper-deep); box-shadow: 0 0 0 1px var(--ink); }
.herovideo__frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.herovideo__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.herovideo__bar .fig__note { max-width: 90ch; }
.herovideo__toggle {
  flex: none; margin-top: 10px; min-width: 88px; min-height: 44px; padding: 8px 14px;
  font: 600 15px/1 var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
}
.herovideo__toggle:hover { background: #fff; }
html:not(.has-js) .herovideo__toggle { display: none; }
/* Phones play the square cut so the slide text stays legible. */
@media (max-width: 767px) {
  .herovideo__frame video { aspect-ratio: 1 / 1; object-fit: cover; }
}
.pagehead__aside.pagehead__aside--signup { align-self: end; padding-top: 0; border-top: 0; }
.pagehead__aside--signup .newsletter-signup { margin-top: 0; }

/* ── Plans (comparison, not cards) ──────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.plan { display: flex; flex-direction: column; padding: 20px 22px 24px; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--hair); }
.plan--lead { background: var(--sheet); }
.plan__name { font: 600 1.35rem/1.15 var(--serif); }
.plan__for { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 4px; }
.plan__amount { font: 600 2.5rem/1 var(--sans); letter-spacing: -0.02em; }
.plan__period { color: var(--ink-3); font-size: 15px; }
.plan__list { list-style: none; margin: 16px 0 20px; border-top: 1px solid var(--hair); flex: 1; }
.plan__list li { padding: 7px 0; border-bottom: 1px solid var(--hair-soft); font-size: 15px; line-height: 1.35; }
.plan__list li:first-child { font-weight: 600; }
.plan__extra { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.plan > .btn { margin-top: auto; }
.plans__lead-in { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.plans__after { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; color: var(--ink-2); }

/* ── Data facts (numbers woven into sentences) ──────────── */
.facts { font: 400 1.3rem/1.45 var(--serif); max-width: 46ch; color: var(--ink); text-wrap: pretty; }
.facts b { font-family: var(--sans); font-weight: 700; font-size: 1.05em; letter-spacing: -0.005em; white-space: nowrap; }
.facts + .source { margin-top: 10px; }
.lenders { margin-top: 20px; columns: 4 160px; column-gap: var(--gutter); list-style: none; font-size: 15px; border-top: 1px solid var(--hair); padding-top: 10px; }
.lenders li { padding: 2px 0; break-inside: avoid; }
.lenders .tag { color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.aside-note { margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--ink); font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 78ch; }
.aside-note strong { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: start; }
.split .facts { font-size: 1.22rem; }
.split > div + div { padding-left: 24px; border-left: 1px solid var(--hair); }

/* ── Data table ─────────────────────────────────────────── */
.dtable-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--sheet); }
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.dtable th { position: sticky; top: 0; padding: 10px 12px 8px; background: var(--sheet); text-align: right; vertical-align: bottom; font-weight: 600; font-size: 13px; line-height: 1.25; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.dtable td { padding: 7px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--hair-soft); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable td:first-child { font-weight: 600; white-space: normal; }
.dtable tbody tr:hover td { background: var(--paper); }
.dtable tfoot td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; }
.dtable .tag { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.dtable .lag { color: var(--ink-3); }
.dtable .lag::after { content: " *"; }
.dtable .lbl-short { display: none; }
.defs { margin-top: 14px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; color: var(--ink-2); max-width: 100ch; }
.defs dt { font-weight: 700; color: var(--ink); }
.defs--wide { max-width: none; margin-top: 0;grid-template-columns: minmax(180px, 3fr) 9fr; gap: 0; font-size: 16px; border-top: 2px solid var(--ink); }
.defs--wide dt, .defs--wide dd { padding: 11px 0; border-bottom: 1px solid var(--hair); }
.defs--wide dt { font: 600 1.08rem/1.3 var(--serif); padding-right: 16px; }

/* ── Prose ──────────────────────────────────────────────── */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose h3 { margin: 28px 0 8px; font: 600 1.25rem/1.25 var(--serif); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-3); }

/* ── Showcase (figure grid) ─────────────────────────────── */
.showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px var(--gutter); }
.showcase .fig__title { font-size: 1.02rem; }
.showcase .fig__note { font-size: 14px; }
.showcase__intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.showcase__intro p { max-width: 70ch; color: var(--ink-2); margin-top: 6px; }
.showcase__sheet { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--ink); }

/* ── Viewer dialog (click to zoom, pan to the annotated number) ── */
.viewer {
  width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--sheet); color: var(--ink);
  overflow: hidden;
}
.viewer::backdrop { background: rgb(11 14 20 / 0.72); }
.viewer__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; max-height: calc(100dvh - 34px); }
.viewer__stage { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 1 / 1; max-height: calc(100dvh - 34px); }
.viewer__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transform-origin: 0 0; transform: translate(0, 0) scale(1);
  transition: transform 900ms cubic-bezier(0.22, 0.7, 0.18, 1);
}
.viewer__mark {
  position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink), 0 0 0 9999px rgb(11 14 20 / 0.45);
  opacity: 0; transition: opacity 300ms ease 650ms; pointer-events: none;
}
.viewer[data-zoomed="true"] .viewer__mark { opacity: 1; }
.viewer__side { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; overflow-y: auto; border-left: 1px solid var(--ink); }
.viewer__label { font-size: 14px; color: var(--ink-3); }
.viewer__title { font: 600 1.35rem/1.2 var(--serif); }
.viewer__callout { padding-top: 12px; border-top: 2px solid var(--ink); }
.viewer__number { font: 700 2.6rem/1 var(--sans); letter-spacing: -0.02em; }
.viewer__number-label { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.viewer__note { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.viewer__controls { margin-top: auto; display: grid; gap: 8px; }
.viewer__row { display: flex; gap: 8px; }
.viewer__row .btn { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 15px; }
.viewer__close { position: absolute; top: 10px; right: 10px; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .viewer__img, .viewer__mark { transition: none; }
}
::view-transition-group(plate) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.22, 0.7, 0.18, 1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── Contact sheet ──────────────────────────────────────── */
.sheet__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 16px; }
.sheet__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.sheet__page { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 5px; align-items: start; }
.sheet__page img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sheet__no { margin-top: 5px; font-weight: 700; font-size: 12px; line-height: 1.25; color: var(--ink); }
.sheet__cap { margin-top: 5px; font-size: 12px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet--compact .sheet__grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px 6px; }
.sheet--wide .sheet__page img { aspect-ratio: 16 / 9; }
.sheet--compact .sheet__no { font-size: 11px; margin-top: 3px; }
.sheet--compact .sheet__cap { display: none; }

/* ── Q&A ────────────────────────────────────────────────── */
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--hair); }
.qa summary { cursor: pointer; padding: 14px 28px 14px 0; position: relative; font-weight: 600; font-size: 17px; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.qa details[open] summary::after { content: "\2212"; }
.qa__answer { padding: 0 0 16px; max-width: 72ch; color: var(--ink-2); }
.qa__answer p + p { margin-top: 10px; }

/* ── Cost rows ──────────────────────────────────────────── */
.costs { border-top: 2px solid var(--ink); }
.cost { display: grid; grid-template-columns: 200px minmax(0, 1fr) 110px; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.cost__tier { font-weight: 700; }
.cost__what { font: 600 1.1rem/1.3 var(--serif); }
.cost__desc { margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cost__price { text-align: right; font-weight: 700; font-size: 18px; }
.cost__price span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }

/* ── Page heads ─────────────────────────────────────────── */
.pagehead { padding: 40px 0 44px; }
.pagehead__text { grid-column: 1 / span 6; align-self: start; }
.pagehead__fig { grid-column: 8 / -1; }
.pagehead__text--wide { grid-column: 1 / span 7; }
.pagehead__text--narrow { grid-column: 1 / span 4; }
.pagehead__fig--wide { grid-column: 6 / -1; }
.pagehead__aside { grid-column: 8 / -1; align-self: end; padding-top: 14px; border-top: 2px solid var(--ink); }
.pagehead__aside .facts { font-size: 1.15rem; }
.pagehead__meta { margin-top: 20px; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }

/* Plans at a glance (page head) */
.glance { margin-top: 32px; width: 100%; max-width: 560px; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.glance th, .glance td { padding: 9px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: baseline; }
.glance th { font-weight: 600; padding-right: 16px; white-space: nowrap; }
.glance th a { color: var(--ink); text-decoration: none; }
.glance th a:hover { text-decoration: underline; }
.glance td { color: var(--ink-2); padding-right: 16px; }
.glance td.glance__price { text-align: right; color: var(--ink); font-weight: 700; padding-right: 0; white-space: nowrap; }
.glance caption { caption-side: bottom; text-align: left; padding-top: 8px; font-size: 13px; color: var(--ink-3); }

/* ── Checkout step ──────────────────────────────────────── */
.subscribe-back { font-weight: 600; }
.checkout { grid-column: 1 / span 7; }
.checkout__aside { grid-column: 9 / -1; }
.order { margin-top: 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.order__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.order__row:last-child { border-bottom: 0; }
.order__k { color: var(--ink-2); font-size: 15px; }
.order__v { font-weight: 700; text-align: right; }
.order__v--plan { font: 600 1.35rem/1.2 var(--serif); }
.order__v--price { font-size: 1.6rem; }
.order__v--price span { font-size: 15px; font-weight: 400; color: var(--ink-3); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--ink-2); }
.steps li::before { content: counter(step); font-weight: 700; color: var(--ink-3); }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps li[aria-current="step"]::before { color: var(--accent); }

/* ── Home ───────────────────────────────────────────────── */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: var(--gutter); padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.row__title { font: 600 1.3rem/1.2 var(--serif); }
.row__body { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.row__link { text-align: right; font-weight: 600; }

/* Newsletter partial, restyled in place. */
.newsletter-signup { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--ink); max-width: 520px; }
.newsletter-signup__heading { font-weight: 700; }
.newsletter-signup__sub { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.newsletter-signup__form { margin-top: 10px; }
.newsletter-signup__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter-signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-signup__row { display: flex; gap: 8px; }
.newsletter-signup__input { flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 8px 12px; font: 16px var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; }
.newsletter-signup__btn { min-height: 44px; padding: 8px 16px; font: 600 16px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; }
.newsletter-signup__btn:hover { background: var(--sheet); }
.newsletter-signup--done, .newsletter-signup__success { color: var(--better); }

/* ── Article (blog) ─────────────────────────────────────── */
.article__head { grid-column: 1 / span 8; padding: 36px 0 28px; }
.article__crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.article__crumbs a { color: inherit; }
.article__byline { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; color: var(--ink-2); }
.article__byline strong { color: var(--ink); }
.article__body { grid-column: 1 / span 8; }
.article__rail { grid-column: 10 / -1; padding-top: 4px; }
.article__rail-box { grid-template-columns: minmax(0, 1fr); position: sticky; top: calc(var(--masthead) + 20px); border-top: 2px solid var(--ink); padding-top: 12px; font-size: 15px; color: var(--ink-2); display: grid; gap: 10px; }
.article__rail-box .subhead { color: var(--ink); }
.article__tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-3); }

.blog-content { font-family: var(--serif); font-size: 19px; line-height: 1.62; color: var(--ink); }
.blog-content > p, .blog-content > ul, .blog-content > ol, .blog-content > h2, .blog-content > h3, .blog-content > blockquote { max-width: 66ch; }
.blog-content > * + * { margin-top: 18px; }
.blog-content h2 { margin-top: 40px; font: 600 1.6rem/1.2 var(--serif); }
.blog-content h3 { margin-top: 30px; font: 700 1.1rem/1.3 var(--sans); }
.blog-content ul, .blog-content ol { padding-left: 1.2em; }
.blog-content li + li { margin-top: 6px; }
.blog-content blockquote { padding-left: 16px; border-left: 1px solid var(--ink); color: var(--ink-2); }
code { overflow-wrap: anywhere; }
.blog-content code {font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; background: var(--sheet); padding: 1px 4px; }
.blog-content img { width: 100%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); margin-top: 6px; }
.blog-content p:has(> img:only-child) { max-width: none; }
.blog-content em:only-child { display: block; }
.blog-content p > em:only-child, .blog-content figcaption { font-family: var(--sans); font-style: normal; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.blog-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.blog-content th, .blog-content td { padding: 7px 10px; border-bottom: 1px solid var(--hair-soft); text-align: left; }
.blog-content th { font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--ink); }
.blog-content td:not(:first-child), .blog-content th:not(:first-child) { text-align: right; }
.blog-content a { color: var(--accent); }
.related { list-style: none; border-top: 2px solid var(--ink); }
.related li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.related time { font-size: 14px; color: var(--ink-3); }
.related a { font: 600 1.1rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.related a:hover { text-decoration: underline; }
.related p { margin-top: 2px; font-size: 15px; color: var(--ink-2); }

/* ── Deep-dive index ────────────────────────────────────── */
.decks { list-style: none; border-top: 2px solid var(--ink); }
.deck { display: grid; grid-template-columns: 96px 110px minmax(0, 1fr) 150px; gap: var(--gutter); padding: 14px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.deck__cover { width: 96px; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.deck__cover--type { display: flex; flex-direction: column; justify-content: space-between; padding: 8px; color: #F2F3F4; font: 600 13px/1.15 var(--serif); }
.deck__cover--type span + span { font: 400 11px/1 var(--sans); color: #AEB6BF; }
.deck__date { font-size: 14px; color: var(--ink-3); }
/* A library row opens as a whole: the title link stretches over the row; a file link sits above it. */
.deck { position: relative; }
.deck__cover { object-fit: contain; }
.deck__link { color: var(--ink); text-decoration: none; }
.deck__link::after { content: ""; position: absolute; inset: 0; }
.deck:hover .deck__link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.deck:hover { background: var(--sheet); }
.deck__go { font-weight: 600; color: var(--accent); }
.deck__file { position: relative; z-index: 1; }
.deck__link:focus-visible { outline: none; }
.deck__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.website-view-toggle { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; font-size: 14px; }
.website-view-toggle__label { color: var(--ink-3); }
.website-view-toggle__item--active { font-weight: 700; color: var(--ink); }
.deck__title { font: 600 1.15rem/1.25 var(--serif); }
.deck__desc { margin-top: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.deck__meta { font-size: 14px; color: var(--ink-3); text-align: right; }

/* ── Explainers: the series as numbered rows, each page a video plate over the worked text ── */
.xlist { list-style: none; border-top: 2px solid var(--ink); }
.xrow {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 200px;
  grid-template-areas: "no text thumb" "no meta thumb";
  column-gap: var(--gutter); padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: start;
}
.xrow__no { grid-area: no; font: 600 1.25rem/1.25 var(--serif); color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
.xrow--live .xrow__no { color: var(--accent); }
.xrow__text { grid-area: text; min-width: 0; }
.xrow__title { font: 600 1.25rem/1.25 var(--serif); text-wrap: balance; }
.xrow__title a { color: var(--ink); text-decoration: none; }
.xrow__title a:hover { text-decoration: underline; }
.xrow__desc { margin-top: 4px; max-width: 64ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.xrow__meta { grid-area: meta; margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.xrow--live .xrow__meta { color: var(--ink); font-weight: 600; }
.xrow__thumb { grid-area: thumb; display: block; line-height: 0; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.xrow__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.xrow--soon { padding: 12px 0; grid-template-areas: "no text meta"; }
.xrow--soon .xrow__meta { margin-top: 4px; text-align: right; }
.xrow--soon .xrow__title { font-size: 1.1rem; color: var(--ink-2); }
.xrow--soon .xrow__desc { color: var(--ink-3); }

.xvideo { grid-column: 1 / -1; margin-bottom: 36px; }
.xvideo__frame { background: var(--paper-deep); box-shadow: 0 0 0 1px var(--ink); }
.xvideo__frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.xcontent .xtable { overflow-x: auto; }
.xcontent table { width: auto; min-width: min(100%, 26rem); }
.xcontent th, .xcontent td { padding-left: 12px; padding-right: 16px; }
.xcontent td:not(:first-child), .xcontent th:not(:first-child) { text-align: left; } /* markdown's own column alignment applies */
.xcontent td { vertical-align: top; }
.xcontent ol { padding-left: 1.4em; }
.xpager { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair); }
.xpager a { display: grid; gap: 2px; padding: 12px 0 14px; color: var(--ink); text-decoration: none; }
.xpager a:hover .xpager__title { text-decoration: underline; }
.xpager__next { grid-column: 2; text-align: right; }
.xpager__label { font-size: 14px; color: var(--ink-3); }
.xpager__title { font: 600 1.12rem/1.3 var(--serif); }
.xseries { list-style: none; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.35; }
.xseries li { display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 5px 0; border-bottom: 1px solid var(--hair-soft); color: var(--ink-3); }
.xseries a { color: var(--ink); text-decoration: none; }
.xseries a:hover { text-decoration: underline; }
.xseries em { font-style: normal; font-size: 12px; }
.xseries li[aria-current="page"] { color: var(--ink); font-weight: 700; }
.xseries li[aria-current="page"] > span:first-child { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   Long-form page vocabulary. The data, SBA, guide and legal pages are written as stacked sections
   (.section > .section__title, .section__subtitle, content). These rules set them in the same
   system: full-width bands on the 1280px measure, hairline rows instead of cards, tables on sheet.
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Older markup refers to these names in inline styles; they resolve to system tokens. */
  --text-primary: var(--ink); --text-secondary: var(--ink-2); --text-dim: var(--ink-3); --text-faint: var(--ink-3);
  --bg-panel: var(--sheet); --bg-surface: var(--sheet); --bg-charcoal: var(--paper); --bg-obsidian: var(--paper);
  --grid: var(--hair); --grid-15: var(--hair-soft); --accent-light: var(--accent); --accent-hover: var(--accent-deep);
  --font-display: var(--serif); --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cyan: var(--ink-2); --teal: var(--ink-2); --sky: var(--ink-2); --violet: var(--ink-2); --rose: var(--ink-2); --ice: var(--ink-2);
  --emerald: var(--better); --red: var(--worse); --orange: var(--worse);
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 32px; --space-xl: 56px; --space-2xl: 80px;
  --radius-sm: 2px; --radius-md: 2px; --radius-lg: 2px;
  --bleed: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
}
.section { padding: 44px var(--bleed) 52px; border-top: 1px solid var(--ink); }
.section > .section__title { margin-bottom: 8px; }
.section__subtitle { max-width: 62ch; margin-bottom: 24px; font: 400 1.12rem/1.45 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.section__more, .seo-left-cta { margin-top: 24px; }
.section h1.section__title { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.04; max-width: 22ch; }
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: end; padding: 40px var(--bleed) 36px; }
.hero > .hero__overlay { grid-column: 1; }
.hero > :not(.hero__overlay) { grid-column: 2; margin: 0 !important; padding-top: 12px; border-top: 2px solid var(--ink); }
.hero > :not(.hero__overlay) .facts { font-size: 1.15rem; }
.hero__overlay { max-width: 860px; }
.seo-eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hero__headline { font: 600 clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem)/1.04 var(--serif); letter-spacing: -0.012em; max-width: 20ch; text-wrap: balance; }
.hero__subhead { margin-top: 16px; max-width: 58ch; font: 400 clamp(1.1rem, 1rem + 0.35vw, 1.3rem)/1.42 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.hero__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hero__cta-note { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.btn--solid { }
.btn--outline, .btn--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--outline:hover, .btn--ghost:hover { color: var(--ink); background: var(--sheet); border-color: var(--ink); }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: var(--gutter); border-top: 2px solid var(--ink); }
.feature-card { display: block; padding: 14px 0 18px; border-bottom: 1px solid var(--hair); color: inherit; text-decoration: none; }
.feature-card__icon { display: none; }
.feature-card h3 { margin-bottom: 6px; font: 600 1.15rem/1.25 var(--serif); color: var(--ink); }
.feature-card p, .feature-card li { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.feature-card p + p { margin-top: 8px; }
.feature-card ul { margin-top: 8px; padding-left: 1.1em; }
a.feature-card:hover { color: inherit; text-decoration: none; }
a.feature-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a.feature-card h3::after { content: " \2192"; color: var(--accent); }
.feature-card .btn { display: none; }
.feature-card time { display: block; margin-bottom: 4px; font-size: 14px; color: var(--ink-3); }

.data-table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--sheet); }
.data-table-wrap--narrow { max-width: 980px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.data-table th { padding: 10px 12px 8px; text-align: left; vertical-align: bottom; font-weight: 600; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink); background: var(--sheet); }
.data-table td { padding: 8px 12px; vertical-align: top; border-bottom: 1px solid var(--hair-soft); line-height: 1.45; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .col-field { font-weight: 600; white-space: nowrap; }
.data-table .col-dim { color: var(--ink-3); }
.data-table code { font-family: var(--font-mono); font-size: 0.86em; }
.data-table + .data-table, .section h3 + .data-table { margin-top: 8px; }

.seo-prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.seo-prose { padding: 14px 0 18px; border-bottom: 1px solid var(--hair); }
.seo-prose h3 { margin-bottom: 6px; font: 600 1.15rem/1.25 var(--serif); }
.seo-prose p, .seo-prose li { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.seo-prose p + p, .seo-prose p + ul, .seo-prose ul + p { margin-top: 10px; }
.seo-prose ul, .seo-prose ol { padding-left: 1.2em; }
.seo-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.seo-check-list, .seo-numbered-list { padding-left: 1.2em; }
.seo-check-list li, .seo-numbered-list li { margin-top: 8px; color: var(--ink-2); line-height: 1.5; }
.seo-check-list li::marker, .seo-numbered-list li::marker { color: var(--ink-3); }
.seo-source-note, .seo-disclosure { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--ink); max-width: 80ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.seo-source-note strong, .seo-disclosure strong { color: var(--ink); }
.seo-caption { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-3); max-width: 100ch; }
.seo-comparison-table td:first-child { white-space: nowrap; }
.keyline { display: flex; flex-wrap: wrap; gap: 4px 22px; max-width: 860px; margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 15px; color: var(--ink-2); }
.keyline b { color: var(--ink); font-weight: 700; }

/* Plain fields: the access-link form and newsletter use these. */
.ui-input { min-height: 44px; padding: 8px 12px; font: 16px var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; }
.ui-input--full { width: 100%; }
.ui-button { min-height: 44px; padding: 10px 18px; font: 600 16px/1.2 var(--sans); color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; cursor: pointer; }
.ui-button:hover { background: var(--accent-deep); }
.ui-button--full { width: 100%; }

/* Small form pages: access link, thank-you, errors. */
.formpage { padding: 48px var(--bleed) 64px; }
.formpage__body { max-width: 560px; }
.formpage form { margin-top: 24px; display: grid; gap: 10px; }
.formpage label { font-weight: 600; font-size: 15px; }
.formpage .aside-note { max-width: 560px; }
.legal { max-width: 74ch; }
.legal h2 { margin: 28px 0 8px; font: 600 1.25rem/1.25 var(--serif); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; }
.legal p + p { margin-top: 12px; }

/* Blog index */
.posts { list-style: none; border-top: 2px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--gutter); padding: 16px 0; border-bottom: 1px solid var(--hair); }
.post-row__meta { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.post-row__title { font: 600 1.3rem/1.22 var(--serif); }
.post-row__title a { color: var(--ink); text-decoration: none; }
.post-row__title a:hover { text-decoration: underline; }
.post-row__desc { margin-top: 4px; max-width: 80ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* Gallery: thumbnails as plates in a grid, details on their own page or in the modal. */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px var(--gutter); }
.card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.card:hover { color: inherit; text-decoration: none; }
.card:hover .card__title { text-decoration: underline; }
.card__img-wrap { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__preview-badge, .access-badge--card { display: none; }
.card__body { padding-top: 10px; }
.card__cat { font-size: 14px; color: var(--ink-3); }
.card__title { margin-top: 2px; font: 600 1.08rem/1.25 var(--serif); }
.card__desc { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.card__access { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.access-badge { font-size: 14px; font-weight: 600; color: var(--ink); }
.gallery-grid__empty { color: var(--ink-3); }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgb(11 14 20 / 0.72); }
.modal-backdrop--open { display: flex; }
.modal { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; width: min(1200px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--sheet); border: 1px solid var(--ink); }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 36px; min-height: 36px; font: 400 24px/1 var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; }
.modal__img-wrap { position: relative; background: var(--ink); }
.modal__img { width: 100%; height: 100%; object-fit: contain; }
.modal__animation-label { position: absolute; left: 10px; bottom: 10px; font-size: 13px; color: #E5E8EB; }
.modal__info { display: grid; align-content: start; gap: 12px; padding: 52px 20px 20px; border-left: 1px solid var(--ink); }
.modal__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-3); }
.modal__title { font: 600 1.35rem/1.2 var(--serif); }
.modal__desc, .modal__cta { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.modal__cta .btn { margin-top: 8px; }

/* Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__head { grid-column: 1 / -1; margin-bottom: 20px; }
  .band__head p { max-width: 70ch; }
  .band__body { grid-column: 1 / -1; }
  .pagehead__text { grid-column: 1 / span 7; }
  .pagehead__fig { grid-column: 8 / -1; }
  .viewer__layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 860px) {
  :root { --pad: 20px; --gutter: 16px; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .pagehead__text, .pagehead__fig, .pagehead__aside, .checkout, .checkout__aside, .article__head, .article__body, .article__rail { grid-column: 1 / -1; }
  .pagehead__fig, .pagehead__aside { margin-top: 28px; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--hair); }
  .glance td:nth-child(2) { display: none; }
  .checkout__aside { margin-top: 32px; }
  .article__rail { margin-top: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--ink); }
  .plan__for { min-height: 0; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row__link { text-align: left; }
  .cost { grid-template-columns: 1fr auto; }
  .cost__tier { grid-column: 1 / -1; }
  .deck { grid-template-columns: 72px minmax(0, 1fr); }
  .deck__cover { width: 72px; grid-row: span 3; }
  .deck__meta { text-align: left; }
  .viewer { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; }
  .viewer__layout { grid-template-columns: 1fr; max-height: 100dvh; height: 100%; overflow-y: auto; }
  .viewer__stage { max-height: none; }
  .viewer__side { border-left: 0; border-top: 1px solid var(--ink); overflow: visible; }
  .viewer__keys { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .band { padding: 36px 0 40px; }
  .pagehead { padding: 28px 0 32px; }
  .showcase { gap: 28px 14px; }
  .showcase .fig__title { font-size: 0.95rem; }
  .showcase .fig__note { font-size: 13px; }
  .facts { font-size: 1.15rem; }
  .lenders { columns: 2; }
  .dtable { font-size: 13px; }
  .dtable th, .dtable td { padding: 6px 6px; }
  .dtable th { font-size: 12px; }
  .dtable .col-active { display: none; }
  .dtable .lbl-long { display: none; }
  .dtable .lbl-short { display: inline; }
  .dtable .tag { display: block; margin: 0; }
  .defs { grid-template-columns: 1fr; gap: 2px; }
  .defs dd { margin-bottom: 8px; }
  .defs--wide { gap: 0; }
  .defs--wide dt { border-bottom: 0; padding-bottom: 2px; }
  .defs--wide dd { margin-bottom: 0; padding-top: 0; }
  .sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet--compact .sheet__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .blog-content { font-size: 18px; }
  .related li { grid-template-columns: 1fr; gap: 2px; }
  .actions .btn { width: 100%; }
}
@media (max-width: 860px) {
  .seo-prose-grid, .seo-split, .hero { grid-template-columns: 1fr; }
  .hero > :not(.hero__overlay) { grid-column: 1; margin-top: 24px !important; }
  .modal { grid-template-columns: 1fr; }
  .modal__info { border-left: 0; border-top: 1px solid var(--ink); padding-top: 16px; }
  .post-row { grid-template-columns: 1fr; gap: 2px; }
  .data-table .col-field { white-space: normal; }
}
@media (max-width: 560px) {
  .section { padding-top: 32px; padding-bottom: 40px; }
  .hero { padding-top: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 6px 8px; }
  .hero__cta-row .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card__title { font-size: 0.98rem; }
  .card__desc { font-size: 13px; }
  .blog-content table { display: block; overflow-x: auto; font-size: 13px; }
  .blog-content th, .blog-content td { padding: 6px 5px; }
}
/* Touch: every control at least 44px tall on phones and tablets. */
@media (max-width: 860px) {
  .nav__menu > summary { min-height: 44px; display: flex; align-items: center; }
  .more, .fig__open a, .row__link, .subscribe-back { display: inline-flex; align-items: center; min-height: 44px; }
  .actions > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Slides read at full width on phones: one figure per row. */
@media (max-width: 600px) {
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase .fig__title { font-size: 1.1rem; }
  .showcase .fig__note { font-size: 15px; }
}
@media (max-width: 860px) {
  .deck__cover--type { overflow: hidden; padding: 6px; font-size: 11px; }
  .xrow { grid-template-columns: 32px minmax(0, 1fr) 160px; }
  .xseries li { padding: 0; }
  .xseries li > * { display: flex; align-items: center; min-height: 40px; }
}
/* Phones play the square cut. */
@media (max-width: 767px) {
  .xvideo__frame video { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .xrow, .xrow--soon { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "no text" "no meta" "no thumb"; }
  .xrow--soon .xrow__meta { text-align: left; }
  .xrow__thumb { margin-top: 10px; max-width: 280px; }
  .xvideo { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .xpager { grid-template-columns: 1fr; }
  .xpager__next { grid-column: 1; text-align: left; border-top: 1px solid var(--hair); }
}

/* ═══════════════════════════════════════════════════════════
   Depth and colour (2026-11-06). Graphite and gold. The ink is close to the slides' own
   near-black, the gold is the LoanTapeData mark, and links take the deck's slate blue for labels.
   Red and green stay inside the slides, where they mean worse and better. Proportions run roughly
   60 paper, 30 graphite (text, the ink bands, the footer), 10 gold. Depth comes from tone, a mat
   and a soft shadow, never glow or gradient.
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper: #ECEDEE;          /* cool grey paper: not white and not cream */
  --paper-deep: #DFE2E5;     /* second band tone */
  --sheet: #F6F7F8;          /* tables, mats, the viewer */
  --ink: #15171C;            /* graphite for type */
  --ink-2: #3A3F47;
  --ink-3: #5A606A;
  --hair: #C3C8CD;
  --hair-soft: #D3D6DA;
  --gold: #F9B400;           /* the deck mark: section rules, buttons, gold on dark grounds */
  --gold-ink: #7A5700;       /* gold dark enough for small text on paper (5.6:1) */
  --band-ink: #1B1E24;       /* the dark band: lighter than the slides so they read as plates */
  --plate: #0B0E14;          /* the slides' own background */
  --on-ink: #F1F2F3;
  --on-ink-2: #C3C7CD;
  --on-ink-3: #959BA4;
  --accent: #24508A;         /* slate blue: links and labels */
  --accent-deep: #183A66;
  --accent-wash: #DCE4EF;
  --plan-wash: #E1E3E6;      /* the lead plan */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --lift: 0 1px 2px rgb(21 23 28 / 0.10), 0 14px 30px -14px rgb(21 23 28 / 0.38);
}

/* Paper with a faint, static grain. One small tile, painted once. */
html, body, .nav, .nav__drawer { background-color: var(--paper); background-image: var(--grain); }
main { overflow-x: clip; }

/* ═══════════════════════════════════════════════════════════
   Page anatomy. Every page that extends public/base.html gets the same skeleton from its markup, with no
   per-page band classes:
   - the blocks directly inside <main> (section, header, article) alternate: odd ones on the tinted band,
     even ones on paper, so the page head (the first block) is always tinted and long pages get rhythm;
   - an article keeps its body on paper; its head carries the tint and the block after it is tinted;
   - any block that holds slides (a figure showcase, a contact sheet, a gallery grid, the deck viewer, the
     home hero) sits on the graphite band, where the dark slides are at home.
   ═══════════════════════════════════════════════════════════ */
main > :nth-child(odd of section, header, article) { background-color: var(--paper-deep); background-image: var(--grain); }
main > :nth-child(even of section, header, article) { background-color: var(--paper); background-image: var(--grain); }
main > :is(section, header, article) { border-top: 0; }
main > .band + .band, main > .section { border-top: 0; }
main > article.article { background: none; }
main > article.article + section { background-color: var(--paper-deep); background-image: var(--grain); }

/* An article's head is a full-width tinted band, painted behind the grid column it sits in. */
.article { isolation: isolate; }
main > .article { padding-bottom: 56px; }
main > .article:not(:has(.article__head)) { padding-top: 48px; }
.article__head { position: relative; margin-bottom: 36px; padding-bottom: 32px; }
.article__head::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -100vmax;
  background-color: var(--paper-deep); background-image: var(--grain);
}
/* An explainer's video gets the graphite band behind it. */
.xvideo { position: relative; padding: 0 0 36px; }
.xvideo::before {
  content: ""; position: absolute; z-index: -1; inset: -36px -100vmax 0;
  background-color: var(--band-ink); background-image: var(--grain-light);
}
.article__head + .xvideo { margin-top: 0; }
.article__head:has(+ .xvideo) { margin-bottom: 36px; }

/* Small form pages (sign-in link, thank you, errors): heading on the left, the form on a sheet on the right. */
.formpage { min-height: 52vh; }
.formpage form { padding: 20px; background: var(--sheet); box-shadow: var(--lift); }
@media (min-width: 1080px) {
  .formpage__body { max-width: none !important; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-auto-flow: dense; column-gap: 72px; align-items: start; }
  .formpage__body > * { grid-column: 1; }
  .formpage__body > :is(form, .aside-note, .fine, .actions:has(.btn)) { grid-column: 2; }
  .formpage__body > form { margin-top: 0; }
  .formpage__body > .aside-note { margin-top: 0; margin-bottom: 20px; }
}

/* Wide screens: the measure grows a little; prose keeps its reading width inside it. */
@media (min-width: 1700px) {
  :root { --wrap: 1320px; }
}

/* Section openers: a short gold rule above each section title, as print sections are marked. */
.section__title { font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.3rem); line-height: 1.08; letter-spacing: -0.012em; }
.section__title::before {
  content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; background: var(--gold);
}
.pagehead .section__title::before, .article .section__title::before, .legal .section__title::before { display: none; }
.headline { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.9rem); line-height: 1.02; }
.dateline strong { color: var(--ink); }
.band { padding: 60px 0 68px; }

/* Figures sit on a mat with a soft lift: one depth cue, no hairline on top of the shadow. */
.fig__plate, .card__img-wrap, .blog-content img, .deck__cover, .herovideo__frame {
  background: var(--plate); box-shadow: var(--lift);
}
.sheet__page img { background: var(--plate); box-shadow: 0 1px 2px rgb(21 23 28 / 0.18); }
.herovideo__frame { background: var(--sheet); }
.figure-num { color: var(--gold-ink); }
.fig__plate:hover { box-shadow: 0 1px 2px rgb(21 23 28 / 0.12), 0 20px 40px -16px rgb(21 23 28 / 0.45); }

/* Numbers a sentence carries: graphite with a gold underline. */
.facts b, .plan__amount, .order__v--price { color: var(--ink); }
.facts b { box-shadow: inset 0 -0.18em 0 rgb(249 180 0 / 0.55); }

/* Buttons: gold with a graphite edge, so the edge holds 3:1 against the paper. */
.btn, .ui-button { color: var(--ink); background: var(--gold); border-color: var(--ink); }
.btn:hover, .ui-button:hover { color: var(--ink); background: #E5A600; border-color: var(--ink); }
.nav__drawer a.btn { color: var(--ink); border-bottom-color: var(--ink); }
.btn--quiet, .btn--outline, .btn--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--quiet:hover, .btn--outline:hover, .btn--ghost:hover { color: var(--ink); background: var(--sheet); border-color: var(--ink); }

/* The lead plan sits on a light wash. */
.plan--lead { background: var(--plan-wash); }

/* ── The graphite band, chosen by what the block holds. ── */
main > :is(section, header):is(.homehero, .deckviewer, :has(.showcase, .sheet__grid, .gallery-grid, .plates)) {
  --ink: var(--on-ink); --ink-2: var(--on-ink-2); --ink-3: var(--on-ink-3);
  --hair: rgb(255 255 255 / 0.16); --hair-soft: rgb(255 255 255 / 0.10);
  --accent: var(--gold); --accent-deep: #FFD25C; --gold-ink: var(--gold); --sheet: #262A31;
  background-color: var(--band-ink); background-image: var(--grain-light); color: var(--on-ink);
}
:is(.homehero, .deckviewer, main > :has(.showcase, .sheet__grid, .gallery-grid, .plates)) :is(.fig__plate, .sheet__page img, .card__img-wrap, .plates img) {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 18px 36px -18px rgb(0 0 0 / 0.7);
}
:is(.homehero, .deckviewer, main > :has(.showcase, .sheet__grid, .gallery-grid, .plates)) .fig__note strong { color: var(--gold); }
:is(.homehero, .deckviewer, main > :has(.showcase, .sheet__grid, .gallery-grid, .plates)) .btn { color: var(--band-ink); background: var(--gold); border-color: var(--gold); }
:is(.homehero, .deckviewer, main > :has(.showcase, .sheet__grid, .gallery-grid, .plates)) .btn:hover { color: var(--band-ink); background: #FFD25C; border-color: #FFD25C; }
:is(.homehero, .deckviewer, main > :has(.showcase, .sheet__grid, .gallery-grid, .plates)) :is(.btn--quiet, .btn--outline, .btn--ghost) { color: var(--on-ink); background: transparent; border-color: var(--on-ink-2); }
:is(.homehero, .deckviewer, main > :has(.showcase, .sheet__grid, .gallery-grid, .plates)) a:not(.btn):hover { color: #FFD25C; }

/* A set of slide images anywhere (sample pages, figure lists) marks its block for the graphite band. */
.plates img { background: var(--plate); box-shadow: var(--lift); }

/* ── Deck viewer: the deck is the hero of its page, one slide at a time, as large as the screen allows. ── */
.deckviewer { padding: 32px 0 40px; outline: none; }
.deckviewer:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.deckviewer__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.deckviewer__stage { display: grid; justify-items: center; min-width: 0; }
.deckviewer__slide {
  width: min(100%, calc(100vh - var(--masthead) - 96px)); min-width: min(100%, 520px);
  aspect-ratio: 1 / 1; object-fit: contain; background: var(--plate);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 24px 48px -24px rgb(0 0 0 / 0.8);
}
.deckviewer__rail { position: sticky; top: calc(var(--masthead) + 24px); display: grid; gap: 14px; padding-top: 12px; border-top: 2px solid var(--gold); font-size: 15px; color: var(--ink-2); }
.deckviewer__count { font: 600 2.6rem/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.deckviewer__count span { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.deckviewer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deckviewer__button {
  min-height: 48px; font: 600 16px var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--ink-2); border-radius: 2px; cursor: pointer;
}
.deckviewer__button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.deckviewer__button:disabled { opacity: 0.35; cursor: default; }
.deckviewer__keys { font-size: 13px; color: var(--ink-3); }
.deckviewer__parts { list-style: none; border-top: 1px solid var(--hair); }
.deckviewer__parts li { border-bottom: 1px solid var(--hair-soft); }
.deckviewer__parts a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.deckviewer__parts a:hover { color: var(--gold); }
.deckviewer__parts a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.deckviewer__parts span { color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .deckviewer { padding: 0 0 28px; }
  .deckviewer > .wrap { padding: 0; }
  .deckviewer__grid { grid-template-columns: 1fr; gap: 16px; }
  .deckviewer__slide { width: 100%; min-width: 0; box-shadow: none; }
  .deckviewer__rail { position: static; margin: 0 var(--pad); }
}
@media (max-width: 560px) {
  .band { padding: 44px 0 48px; }
  .article__head { margin-bottom: 28px; padding-bottom: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   Long-form layout. Articles (blog posts, guides, explainers, deck notes): prose at a reading measure in the
   left eight columns, a sticky rail on the right with "On this page" (built from the h2s by public-page.js)
   and the page's own facts and links. Tables, figures and code use the full body column. Long data pages
   written as stacked sections: the section title and subtitle sit in a left column, the content beside it.
   ═══════════════════════════════════════════════════════════ */
.article__head { padding-top: 32px; padding-bottom: 28px; margin-bottom: 32px; }
.article__body { grid-column: 1 / span 8; min-width: 0; }
.article__rail { grid-column: 10 / -1; min-width: 0; }
.blog-content > :is(p, ul, ol, h2, h3, h4, blockquote, dl) { max-width: 70ch; }
.blog-content > :is(table, figure, pre, .data-table-wrap, .xtable, div) { max-width: none; }
.blog-content th, .blog-content td { text-align: left; vertical-align: top; }
.blog-content td:not(:first-child), .blog-content th:not(:first-child) { text-align: left; }
:is(.blog-content, .data-table) :is(td, th).is-num { text-align: right; white-space: nowrap; }
.blog-content table, .data-table { width: 100%; }
.blog-content td { line-height: 1.45; }

.toc ol { list-style: none; border-top: 1px solid var(--hair); }
.toc li { border-bottom: 1px solid var(--hair-soft); }
.toc a { display: block; padding: 6px 0 6px 10px; border-left: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.3; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }
.toc + * { margin-top: 18px; }
.toc__more { display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid var(--ink); }
.article__rail-box { max-height: calc(100vh - var(--masthead) - 40px); overflow-y: auto; }

@media (min-width: 1000px) {
  main > .section {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: calc(var(--gutter) * 2);
    grid-auto-flow: dense; align-items: start;
  }
  main > .section > * { grid-column: 2; min-width: 0; }
  main > .section > :is(.section__title, .section__subtitle, .seo-eyebrow) { grid-column: 1; }
  main > .section > .section__subtitle { margin-bottom: 0; font: 400 15px/1.45 var(--sans); }
  main > .section > .section__title { margin-bottom: 10px; }
  main > .section > h1.section__title { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .article__body, .article__rail { grid-column: 1 / -1; }
  .article__rail { margin-top: 32px; }
  .toc { display: none; }
  .article__rail-box { max-height: none; overflow: visible; }
}
/* ═══════════════════════════════════════════════════════════
   Home. The first screen is the product on graphite: the headline, the deck video large beside it, and a
   strip of small charts drawn from the release (website/home_charts.py). Then the deck covers as a shelf.
   ═══════════════════════════════════════════════════════════ */
.homehero { padding: 44px 0 36px; }
.homehero__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text video" "data data";
  gap: 28px 48px; align-items: center;
}
.homehero__text { grid-area: text; }
.homehero .headline { font-size: clamp(2.2rem, 1.2rem + 2.3vw, 3.4rem); }
.homehero .standfirst { color: var(--on-ink-2); }
.homehero__video { grid-area: video; margin-top: 0; }
.homehero__video .herovideo__frame { margin-top: 0; }
.homehero__video .herovideo__bar .fig__note { font-size: 14px; }
.homedata {
  grid-area: data; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  column-gap: 32px; padding-top: 18px; border-top: 1px solid var(--hair); align-items: start;
}
.spark { margin: 0; min-width: 0; }
.spark + .spark { padding-left: 32px; border-left: 1px solid var(--hair); }
.spark__label { margin-bottom: 10px; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.spark__svg { display: block; width: 100%; height: auto; overflow: visible; }
.spark--bars rect { fill: #7D8794; }
.spark--bars rect.spark__last { fill: var(--gold); }
.spark__axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.spark__note { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.spark__note b, .spark__ends b { color: var(--ink); font-weight: 700; }
.spark__row + .spark__row { margin-top: 10px; }
.spark__name { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.spark--lines polyline { fill: none; stroke: #9DB7D5; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark--lines rect { fill: #9DB7D5; }
.spark__row--sub polyline { stroke: var(--gold); }
.spark__row--sub rect { fill: var(--gold); }
.spark__ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.strip { display: flex; gap: 2px; height: 22px; }
.strip__seg { min-width: 2px; background: #6E7886; }
.strip__seg:nth-child(even) { background: #576070; }
.strip__seg.strip__seg--sub { background: var(--gold); }
.strip__names { list-style: none; margin-top: 8px; columns: 2; column-gap: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.strip__names b { font-weight: 600; color: var(--ink); }
.strip__name--sub { color: var(--gold); }
.strip__key { color: var(--gold); font-weight: 600; }

.shelf {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px;
}
.shelf__item { scroll-snap-align: start; min-width: 0; }
.shelf__link { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.shelf__cover { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--plate); box-shadow: var(--lift); margin-bottom: 8px; }
.shelf__date { font-size: 13px; color: var(--ink-3); }
.shelf__title { font: 600 1rem/1.25 var(--serif); text-wrap: balance; }
.shelf__link:hover .shelf__title { text-decoration: underline; }

@media (max-width: 1080px) {
  .homedata { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 20px; }
  .spark--bars { grid-column: 1 / -1; }
  .spark--lines { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .homehero { padding: 28px 0 28px; }
  .homehero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "video" "data"; gap: 24px; }
  .homedata { grid-template-columns: minmax(0, 1fr); }
  .spark + .spark { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--hair); }
  .shelf { grid-auto-columns: 40%; }
}
/* "Most Popular": a small gold label set on the plan's top rule, square-cornered like a print tab. */
.plan { position: relative; }
.plan-badge {
  display: inline-block; padding: 3px 8px 2px; font: 700 12px/1.2 var(--sans); letter-spacing: 0.02em; white-space: nowrap;
  color: var(--band-ink); background: var(--gold); vertical-align: 0.15em;
}
.plan > .plan-badge { position: absolute; top: -11px; left: 22px; }
.glance .plan-badge, .order__v .plan-badge { margin-left: 6px; font-size: 11px; }
.order__v .plan-badge { margin: 0 8px 0 0; vertical-align: 0.3em; }
/* Viewer: a hidden control is gone, never a dead button; the count says where you are in the set. */
.viewer [hidden] { display: none !important; }
.viewer__count { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.blog-content img.is-zoomable { cursor: zoom-in; }
.plates__link { display: block; line-height: 0; cursor: zoom-in; }
@media (min-width: 1400px) {
  .blog-content > :is(p, ul, ol, h2, h3, h4, blockquote, dl) { max-width: 72ch; }
}

/* ═══════════════════════════════════════════════════════════
   Filters, defined once. .seg: a segmented choice of a few options with a line of description each
   (gallery plans). .chips: a row of short options (gallery categories, blog categories). Both are real
   buttons with aria-pressed; the selected one is filled graphite with gold text.
   ═══════════════════════════════════════════════════════════ */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; border: 1px solid var(--ink); }
.seg__item {
  display: grid; gap: 4px; align-content: start; min-height: 64px; padding: 12px 14px; text-align: left;
  font: inherit; color: var(--ink); background: var(--sheet); border: 0; cursor: pointer;
}
.seg__item + .seg__item { border-left: 1px solid var(--ink); }
.seg__label { font-weight: 700; font-size: 16px; }
.seg__count { font-weight: 400; color: var(--ink-3); }
.seg__desc { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.seg__item:hover { background: var(--paper); }
.seg__item:hover .seg__label { text-decoration: underline; text-underline-offset: 0.2em; }
.seg__item[aria-pressed="true"] { color: var(--gold); background: var(--band-ink); }
.seg__item[aria-pressed="true"] :is(.seg__count, .seg__desc) { color: var(--on-ink-2); }
.seg__item:focus-visible, .chip:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; position: relative; z-index: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 600 15px/1 var(--sans);
  color: var(--ink); background: var(--sheet); border: 1px solid var(--hair); border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--gold); background: var(--band-ink); border-color: var(--band-ink); }
@media (max-width: 860px) {
  .seg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .chip { scroll-snap-align: start; }
}
/* On a graphite band the gallery's controls keep their light faces. */
:is(main > :has(.gallery-grid)) :is(.seg__item, .chip) { color: var(--band-ink); background: #E6E8EB; border-color: #E6E8EB; }
:is(main > :has(.gallery-grid)) .seg { border-color: rgb(255 255 255 / 0.3); }
:is(main > :has(.gallery-grid)) .seg__item + .seg__item { border-color: rgb(255 255 255 / 0.3); }
:is(main > :has(.gallery-grid)) .seg__item :is(.seg__count, .seg__desc) { color: #4A505A; }
:is(main > :has(.gallery-grid)) :is(.seg__item, .chip)[aria-pressed="true"] { color: var(--band-ink); background: var(--gold); border-color: var(--gold); }
:is(main > :has(.gallery-grid)) .seg__item[aria-pressed="true"] :is(.seg__count, .seg__desc) { color: #3A3020; }
:is(main > :has(.gallery-grid)) :is(.seg__item, .chip):hover:not([aria-pressed="true"]) { background: #FFFFFF; }

/* Viewer: large Previous and Next on the stage itself, always visible when there is more than one image. */
.viewer__step {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 72px; margin-top: -36px; display: grid; place-items: center;
  font: 400 34px/1 var(--sans); color: #F1F2F3; background: rgb(21 23 28 / 0.72); border: 1px solid rgb(255 255 255 / 0.25); cursor: pointer;
}
.viewer__step:hover { background: rgb(21 23 28 / 0.92); color: var(--gold); }
.viewer__step--prev { left: 10px; }
.viewer__step--next { right: 10px; }
.viewer__stage { touch-action: pan-y; }
.viewer__note a { white-space: nowrap; }@media (max-width: 560px) {
  .seg__desc { display: none; }
  .seg__item { min-height: 52px; padding: 10px; align-content: center; }
  .seg__label { font-size: 15px; }
  .seg__count { display: block; }
}

/* ── Brand: the gold tile mark beside the serif wordmark, on a graphite masthead (the footer is partials/site_footer.html).
   Gold on graphite is 9.2:1; the nav links on graphite are 9.8:1. ── */
.nav, .nav__drawer {
  --ink: var(--on-ink); --ink-2: var(--on-ink-2); --ink-3: var(--on-ink-3); --hair: rgb(255 255 255 / 0.16);
  background-color: var(--band-ink); background-image: var(--grain-light); color: var(--on-ink);
}
.nav { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); }
.nav__brand:hover { color: #FFD25C; }
.brand-mark { flex: none; display: block; }
.nav__link { color: var(--on-ink-2); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--on-ink); text-decoration-color: var(--gold); }
.nav .btn, .nav__drawer a.btn { color: var(--band-ink); background: var(--gold); border-color: var(--gold); }
.nav .btn:hover { color: var(--band-ink); background: #FFD25C; border-color: #FFD25C; }
.nav__menu > summary { color: var(--on-ink); border-color: rgb(255 255 255 / 0.4); }
.nav__drawer { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.nav__drawer a { color: var(--on-ink); }
.nav :focus-visible { outline-color: var(--gold); }

/* ── SBA product context (public/base.html: /sba-* pages, /subscribe/sba_* and SBA blog posts) ── */
.nav__product {
  padding: 3px 6px; border: 1px solid var(--gold); border-radius: 2px; color: var(--gold);
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav__link--switch { font-size: 14px; color: var(--on-ink-3); }
.nav__drawer a.nav__drawer-switch { color: var(--on-ink-2); font-size: 15px; }
.pricing-switch { margin: 12px 0 0; font-size: 17px; }
.pricing-switch a { display: inline-block; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); text-decoration: none; }
.pricing-switch a:hover { border-color: var(--gold-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.pricing-switch strong { font-weight: 700; }
.sba-preview-link { margin: 14px 0 0; font-size: 17px; font-weight: 600; }