/* Inner pages in the homepage layout. The frame (header, footer, page hero, buttons) comes from frame.css,
   generated from the homepage stylesheet; this file maps the older pages' palette onto the homepage's and
   styles their content to match. Loaded last, so it wins. */
:root{--bg:#f6faf8;--surface:#ffffff;--sunk:#ebf3f0;--ink:#0c2421;--muted:#4b625e;--faint:#6b807b;--line:#dbe7e3;--fresh:#0a7a5c;--fresh-ink:#0a7a5c;
  --tint-mint:#e2f5ed;--tint-sky:#eaf3fb;--tint-sun:#f3f7f0;--cta:#0c2421;--cta-edge:#0c2421;--cta-ink:#fff;--wash:#e2f5ed;--radius:14px;
  --shadow:0 1px 2px #0c24210f,0 14px 34px -16px #0c242138;--body:"Hanken Grotesk",-apple-system,sans-serif}
:root[data-theme="dark"]{--bg:#0a1412;--surface:#122320;--sunk:#0f1c19;--ink:#e4f1ed;--muted:#a3b6b1;--faint:#8aa09a;--line:#21332f;--fresh:#35d6a6;--fresh-ink:#62e7bf;
  --tint-mint:#0e1f1a;--tint-sky:#0f1a22;--tint-sun:#141d17;--cta:#35d6a6;--cta-edge:#35d6a6;--cta-ink:#04211a;--wash:#103128;--shadow:0 1px 2px #0008,0 18px 40px -16px #000c}
body{background:var(--bg);color:var(--ink);font:400 16px/1.7 var(--body)}
.site-header a,.site-footer a{color:inherit;text-decoration:none}

/* Layout */
main.inner{max-width:none;margin:0;padding:0}
.inner-hero{padding:72px 0 44px;border-bottom:1px solid var(--line)}
.inner-hero .display{font-size:clamp(46px,6vw,76px);max-width:900px}
.inner-hero .lede{max-width:640px}
.inner-hero .actions .btn,.inner-hero .actions a.btn{margin:0}
.inner-body{padding:48px 0 104px}
.inner-body .narrow,.inner-body>section{max-width:none;margin:0}
.inner-body .narrow>*:not(.table-wrap):not(.verdict):not(.plans):not(.principles):not(.grid),
.inner-body>p,.inner-body>h2,.inner-body>ul,.inner-body>ol{max-width:760px}
main[data-frame-only]{padding-top:24px}

/* Type */
.inner-body h2{font:400 clamp(30px,3.4vw,40px)/1.08 "Instrument Serif",Georgia,serif;letter-spacing:-.015em;margin:56px 0 14px;color:var(--ink)}
.inner-body h2:first-child{margin-top:8px}
.inner-body h3{font:600 17px/1.35 var(--body);letter-spacing:0;margin:0 0 6px}
.inner-body p,.inner-body li{color:var(--muted);font-size:16.5px;line-height:1.75}
.inner-body strong{color:var(--ink)}
.inner-body p a,.inner-body li a,.inner-body .a a,.inner-body td a,.inner-body .small a{color:var(--fresh);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.inner-body .eyebrow{font:500 11px/1.4 "JetBrains Mono",monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--fresh);margin:48px 0 14px}
.small,.small-note,small{color:var(--faint)}
h1 em,h2 em,.display em{color:var(--fresh);font-style:italic}

/* Components from the older pages, in the homepage's style */
.card,.verdict .card,.principles .card,.note,.summary,.keybox,.beta,.table-wrap,.plan,.ex:has(.said),.passage{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.verdict{gap:14px}
.verdict .card b{font:400 28px/1.1 "Instrument Serif",Georgia,serif}
.table-wrap{overflow:auto}
table th{font:500 11px "JetBrains Mono",monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);background:var(--sunk)}
table td{font-size:15px}
tr.group td{background:var(--tint-mint);color:var(--fresh)}
.btn,a.btn,button.btn{background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:999px;box-shadow:none;font:600 14px/1 var(--body);padding:14px 20px}
:root[data-theme="dark"] .btn,:root[data-theme="dark"] a.btn{background:var(--fresh);border-color:var(--fresh);color:#04211a}
.btn:hover,.btn:active{box-shadow:none;transform:translateY(-1px)}
.btn.ghost,a.btn.ghost{background:transparent;color:var(--fresh);border-color:var(--line)}
a.cta{background:var(--ff-cta)!important;color:var(--ff-cta-ink)!important;border:1px solid var(--ff-cta-edge)!important;border-radius:14px!important;box-shadow:0 2px 0 var(--ff-cta-edge)!important;text-decoration:none!important}
:root[data-theme="dark"] a.cta{background:var(--fresh)!important;border-color:var(--fresh)!important;color:#04211a!important}
.cta{gap:12px}
details{border-radius:12px}
details summary{font-family:var(--body)}
input[type=search],input[type=text],input[type=email],textarea,select{border-radius:12px}
.chips a,.chips button,.chip{border-radius:999px}
.release{border-top:1px solid var(--line);padding:30px 0;max-width:820px}
.release h2{margin:0 0 6px}
@media (max-width:760px){.inner-hero{padding:48px 0 32px}.inner-body{padding:32px 0 72px}.inner-body h2{margin-top:44px}}
/* The homepage menu, untouched by the older pages' details/summary and link styles */
.site-header details,.site-header summary{border:0;background:none;box-shadow:none;padding:0;margin:0;border-radius:0}
.site-header .nav-more>summary{padding:10px 0;font:inherit;color:var(--muted)}
.site-header .nav-more>summary:after{position:static}
.site-header .nav-menu{border-radius:12px}
.site-header nav a,.site-footer a{text-decoration:none}
.inner-body .cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.inner-body a.cta{display:inline-flex;margin:8px 0 0}
/* Comfortable reading width; grids and tables may use more */
.inner-body>*{max-width:880px}
.inner-body>.narrow,.inner-body>.table-wrap,.inner-body>.verdict,.inner-body>.plans,.inner-body>.grid,.inner-body>.principles{max-width:none}
.inner-body .narrow>.plans,.inner-body .narrow>.table-wrap,.inner-body .narrow>.grid{max-width:1100px}

/* A soft wave under every page heading, echoing the homepage */
.inner-hero{position:relative;overflow:hidden;isolation:isolate;border-bottom:0}
.inner-hero:after{content:"";position:absolute;z-index:-1;left:-10%;right:-10%;bottom:0;height:120px;opacity:.55;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none' fill='none' stroke-width='1.2'%3E%3Cpath d='M0 70 C240 30 420 110 720 70 S1200 30 1440 66' stroke='%2322c99b' stroke-opacity='.55'/%3E%3Cpath d='M0 82 C260 44 440 118 720 82 S1180 44 1440 78' stroke='%2317a884' stroke-opacity='.4'/%3E%3Cpath d='M0 94 C280 60 460 124 720 94 S1160 58 1440 90' stroke='%235aa8ff' stroke-opacity='.3'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}
.inner-hero:before{content:"";position:absolute;z-index:-2;inset:0;background:radial-gradient(50% 80% at 85% 20%,var(--tint-mint),transparent 70%)}
.inner-hero{padding-bottom:96px}

/* ===== Same layout as the homepage =========================================================================
   The homepage centres its headings and keeps content in one centred column (1180px wide). Inner pages used a
   1220px frame with left-aligned text that stopped at 880px, which left a big empty strip on the right and a tall gap
   under the hero wave. These rules centre the hero, centre the reading column and tighten the spacing. */
:root { --max: 1180px; }
.inner-hero, .page-hero { text-align: center; padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3.5vw, 40px); }
.inner-hero .display, .page-hero .display { margin-inline: auto; max-width: 920px; line-height: .95; text-wrap: balance; }
.inner-hero .lede, .page-hero .lede, .inner-hero .small-note, .page-hero .small-note { margin-inline: auto; text-wrap: pretty; }
.inner-hero .actions, .page-hero .actions { justify-content: center; }
.inner-hero:after { height: 80px; opacity: .45; }
.inner-body { padding: clamp(20px, 3vw, 36px) 0 clamp(72px, 9vw, 112px); }
.inner-body > *, .inner-body .narrow > * { margin-inline: auto; }
.inner-body > .narrow { max-width: 1100px; }
.inner-body h2:first-child, .inner-body > .narrow > h2:first-child { margin-top: 0; }
@media (max-width: 760px) { .inner-hero, .page-hero { padding: 32px 0 20px; } .inner-body { padding-top: 16px; } }
/* Buttons inside pages look like the homepage's: mint with an ink edge (secondary ones stay white). */
.inner-body .btn, .inner-body a.btn, .inner-body button.btn, .inner-hero .btn { background: var(--ff-cta); color: var(--ff-cta-ink); border: 1px solid var(--ff-cta-edge);
  border-radius: 14px; box-shadow: 0 2px 0 var(--ff-cta-edge); font: 600 15px/1 var(--body); padding: 14px 20px; transition: transform .15s, box-shadow .15s; }
.inner-body .btn:hover, .inner-hero .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ff-cta-edge); }
.inner-body .btn.ghost, .inner-body .btn.secondary { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: none; }
.inner-body .release { margin-inline: auto; }
.inner-body > .cta, .inner-body > p:has(> .btn:only-child) { text-align: center; justify-content: center; }
/* Some older pages set their own column width with margin 0; centre them regardless. */
main.inner .inner-body > *, main.inner .inner-body > .narrow > *, main.inner .inner-body > section.release { margin-left: auto !important; margin-right: auto !important; }
main.inner .inner-body > .narrow { max-width: 1100px !important; }
main.inner .inner-body > .narrow > * { max-width: 760px; }
main.inner .inner-body > .narrow > :is(.plans, .grid, .table-wrap, .verdict, .principles) { max-width: 1100px; }
main.inner .inner-body a.cta { display: flex; width: fit-content; background: var(--ff-cta); color: var(--ff-cta-ink); border: 1px solid var(--ff-cta-edge); border-radius: 14px;
  box-shadow: 0 2px 0 var(--ff-cta-edge); font: 600 15px/1 var(--body); padding: 14px 20px; text-decoration: none; }
main.inner .inner-body a.cta:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ff-cta-edge); }

main.inner .inner-body > section.release { max-width: 820px !important; }
@media (max-width: 760px) { main.inner .inner-hero, main.inner .page-hero { padding-bottom: 44px; } .inner-hero:after { height: 36px; opacity: .3; } }
