/* Raven v7 detail pages: the "Learn more about …" pages. They use the landing's design system (../raven-v7.css: colours,
   type, cards, glass, the mini screens, the button, footnotes, the nav and footer) plus the few page pieces below:
   a two-column hero, numbered sections with a sticky heading, fact cards, a plain table, questions that open, a dashed box
   for answers Tom hasn't given yet, and "keep reading". Every page ends with the landing's blue band and footer.
   Page-only visuals go in a <style> block in that page, scoped under its body class; nothing else is added here. */

body.doc-page { background: var(--page); }
.doc { padding-top: clamp(124px, 17vh, 176px); }

/* ── Hero: words left, one coloured card right (it shows the thing) ──────────── */
.doc-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.doc-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.doc-title { margin-top: clamp(16px, 2vw, 26px); font-size: clamp(46px, 6vw, 96px); line-height: .94; letter-spacing: -0.055em; font-weight: 700; text-wrap: balance; max-width: 13ch; }
.doc-lede { margin-top: 18px; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.4; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.doc-hero .sec-cta { margin-top: clamp(24px, 3.6vh, 36px); }
.doc-visual { position: relative; padding: var(--pad); min-height: clamp(340px, 42vh, 470px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.doc-visual > .glass { width: 100%; }
/* a raven standing on the card's top edge (a still image; birds only fly on the landing) */
.perch-img { position: absolute; z-index: 3; right: 12%; top: 8px; height: clamp(92px, 8.4vw, 124px); width: auto; translate: 0 -100%; pointer-events: none; }

/* ── Sections: number + heading on the left (it stays while you read), the body right ── */
.doc-sec { padding-top: clamp(80px, 12vh, 140px); }
.doc-row { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.doc-side { position: sticky; top: 112px; }
.doc-n { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(36px, 3vw, 52px); letter-spacing: -0.05em; line-height: 1; }
.doc-h { margin-top: 14px; font-size: clamp(30px, 3.1vw, 50px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; max-width: 13ch; }
.doc-body { display: grid; gap: 20px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; min-width: 0; }
.doc-body p { max-width: 58ch; color: var(--ink-2); text-wrap: pretty; }
.doc-body p strong { color: var(--ink); font-weight: 600; }
.doc-body > .glass, .doc-body > .card, .doc-body > .bc { max-width: 640px; }
.doc-wide { margin-top: clamp(28px, 4vh, 44px); }   /* a full-width block after a doc-row (cards, a table) */

/* A list where each line starts with an ASCII mark: + ✓ -> x */
.ticks { border-top: 1px solid rgba(18, 18, 18, .14); }
.ticks li { display: grid; grid-template-columns: 2.6ch minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(18, 18, 18, .14); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.42; }
.ticks li > i { font-style: normal; font-family: var(--mono); font-weight: 500; }
.ticks li b { font-weight: 600; }
.ticks li span { color: var(--ink-2); }

/* Fact cards: one big number, a few words */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--gap); }
.fact { border-radius: var(--r); background: var(--bg, var(--white)); color: var(--fg, var(--ink)); padding: clamp(20px, 2vw, 30px); display: grid; gap: 10px; align-content: start; }
.fact b { font-size: clamp(42px, 4.2vw, 70px); font-weight: 700; letter-spacing: -0.055em; line-height: .92; }
.fact span { font-size: 16px; line-height: 1.38; }
.fact.lime { --bg: var(--lime); } .fact.pink { --bg: var(--pink); } .fact.sky { --bg: var(--sky); } .fact.blue { --bg: var(--blue); --fg: #fff; } .fact.ink { --bg: var(--ink); --fg: var(--page); }
.fact.ink b { color: var(--lime); }

/* A plain table (compare two things, list outcomes) */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; }
.table td { padding: 13px 12px 13px 0; border-top: 1px solid rgba(18, 18, 18, .14); vertical-align: top; line-height: 1.4; }
.table td:first-child { font-weight: 600; }
.table .mono { font-family: var(--mono); font-size: 14px; }
.table .yes { background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 12.5px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* Questions that open */
.qa { border-top: 1px solid rgba(18, 18, 18, .16); }
.qa details { border-bottom: 1px solid rgba(18, 18, 18, .16); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 0; font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { font-style: normal; font-family: var(--mono); font-size: 18px; font-weight: 500; width: 1.4ch; text-align: center; transition: rotate .35s var(--ease-out-slow); }
.qa details[open] summary i { rotate: 45deg; }
.qa .a { padding: 0 0 24px; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); display: grid; gap: 10px; }
.qa .a a { text-decoration: underline; text-underline-offset: 3px; }

/* An answer only Tom can give: shown, never guessed */
.tbd { border: 1.5px dashed rgba(18, 18, 18, .42); border-radius: 14px; padding: 13px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.55; background: rgba(255, 255, 255, .45); color: var(--ink); }
.tbd b { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--lime); font-weight: 500; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

/* A line said big (a message, a promise) */
.say { font-size: clamp(30px, 3.4vw, 54px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; max-width: 22ch; }
.say q { quotes: "“" "”"; }
.say small { display: block; margin-top: 12px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }

/* Keep reading: two or three other pages */
.doc-next { padding: clamp(96px, 14vh, 150px) 0 clamp(90px, 13vh, 140px); }
.doc-next h2 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.04em; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap); margin-top: 22px; }
.next-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r); background: rgba(255, 255, 255, .72); transition: translate .3s var(--ease-out-slow), background .3s; }
.next-card:hover { translate: 0 -3px; background: #fff; }
.next-card b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.next-card small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.next-card em { font-style: normal; font-family: var(--mono); font-size: 14px; }

/* Every section ends with the button (Tom, 2026-10-05), in the body column, so it reads as that section's last line */
.doc-cta { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 96px); margin-top: clamp(30px, 4.4vh, 44px); }
.doc-cta .sec-cta { grid-column: 2; margin-top: 0; }

/* The closing band: the landing's blue start, shorter */
.start.start-mini { min-height: 0; padding-top: clamp(96px, 15vh, 160px); }
.start-mini .sec-cta { justify-content: center; }
.start-mini .fns { margin-top: 18px; }

/* Wide windows: room above the hero card, so the raven standing on it stays clear of the nav pill */
@media (min-width: 981px) { .doc-hero .doc-visual { margin-top: 56px; } }
@media (max-width: 980px) {
  .doc-hero .wrap, .doc-row, .doc-cta { grid-template-columns: minmax(0, 1fr); }
  .doc-cta .sec-cta { grid-column: 1; }
  .doc-side { position: static; }
  .doc-visual { margin-top: 70px; }
}
@media (max-width: 734px) {
  .doc { padding-top: 110px; }
  .doc-sec { padding-top: 72px; }
  .doc-visual { min-height: 0; padding-top: 70px; }
  .table { font-size: 15px; }
}
