/* Alberta Transition Council — site stylesheet
   Design system per CLAUDE.md: near-black navy, bone type, antique gold accents.
   Cormorant Garamond for display, Inter for body and UI. */

:root {
  --ink: #0a0e1a;
  --ink-2: #0f1525;
  --ink-3: #141b2e;
  --bone: #f4ede0;
  --gold: #c89248;
  --gold-bright: #e8b87a;
  --gold-glow: #d4a45c;
  --rule: rgba(244, 237, 224, 0.10);
  --rule-2: rgba(244, 237, 224, 0.18);
  --mute: rgba(244, 237, 224, 0.55);
  --mute-2: rgba(244, 237, 224, 0.72);
  --tax-continue: #7BAE88;
  --tax-transfer: #DCBE7C;
  --tax-agree: #6BA6D0;
  --tax-build: #D08A6E;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --measure: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--bone); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; color: var(--bone); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-glow); margin-bottom: 0.7rem;
}

/* ---------- header ---------- */
.site-head { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); background: rgba(10,14,26,0.92); backdrop-filter: blur(8px); }
.site-head__row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: block; line-height: 0; }
.brand img { height: 62px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav a { font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-2); }
.site-nav a:hover { color: var(--bone); }
.site-nav .nav-cta { color: var(--gold-bright); border: 1px solid rgba(200,146,72,0.45); padding: 9px 16px; border-radius: 2px; }
.site-nav .nav-cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.status { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-2); border-radius: 2px; width: 42px; height: 38px; padding: 9px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; margin-left: auto; }
.nav-toggle span { display: block; height: 1.5px; background: var(--bone); transition: transform .25s, opacity .25s; }

@media (max-width: 900px) {
  .site-head__row { min-height: 68px; gap: 14px; }
  .brand img { height: 46px; }
  .status { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--rule-2); padding: 8px 0 14px;
  }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--rule); }
  .site-nav .nav-cta { margin: 12px 24px 0; text-align: center; }
  body.nav-open .site-nav { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 2px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn--ghost { color: var(--bone); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.textlink { display: inline-block; margin-top: 0.4rem; font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); border-bottom: 1px solid rgba(200,146,72,0.4); padding-bottom: 3px; }
.textlink:hover { color: var(--bone); border-color: var(--bone); }

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.quote-block { max-width: var(--measure); border-left: 2px solid var(--gold); padding-left: 28px; }
.quote-block p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--bone); margin-bottom: 1em; }

/* ---------- home hero additions (globe.css carries the rest) ---------- */
.home { overflow-x: clip; }
.home.page { min-height: 0; display: block; }
.home .hero-main { padding-bottom: clamp(2.5rem, 6vh, 5rem); }
@media (min-width: 960px) { .home .hero-main { padding-bottom: clamp(5rem, 12vh, 9rem); } }
.home .pillars { position: relative; z-index: 6; margin-bottom: 0; padding-bottom: 3.5rem; }
.home .hero-main { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .home .hero-main { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.home .globe-wrap, .home .lede { min-width: 0; max-width: 100%; }
.home .hero-btns { margin: 0 0 1.8rem; }
.home .lede h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
.home .lede .tagline { margin-bottom: 1.2rem; }

/* ---------- static globe (replaces the animated SVG) ---------- */
.home .globe-wrap--static { opacity: 1; animation: none; max-width: 600px; }
.home .globe-static { position: relative; z-index: 2; border-radius: 50%; overflow: hidden; }
.home .globe-static img { width: 100%; display: block; }
.home .globe-stars {
  position: absolute; z-index: 0; inset: -34%;
  background: url("/assets/img/brand/stars.png") center / 100% 100% no-repeat;
  -webkit-mask: radial-gradient(circle at center, #000 30%, transparent 72%);
  mask: radial-gradient(circle at center, #000 30%, transparent 72%);
  opacity: 0.9; pointer-events: none;
}
.home .globe-wrap--static::before {
  content: ""; position: absolute; z-index: 1; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(72,120,210,0.28) 0%, rgba(30,60,140,0.14) 42%, transparent 66%);
  pointer-events: none;
}
.home .globe-wrap--static .callout { opacity: 1 !important; animation: none !important; transform: none !important; transition: none; }
@media (min-width: 761px) {
  .home .globe-wrap--static .callout[data-idx="4"] { top: auto; bottom: -3.2rem; left: 50%; right: auto; transform: translateX(-50%) !important; }
  .home .globe-wrap--static .globe-meta { display: none; }
}

/* ---------- parts grid ---------- */
.parts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.part-card { position: relative; display: grid; grid-template-rows: 150px auto; background: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.part-card__art { background: var(--part-img) center 68% / cover no-repeat; position: relative; }
.part-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,0) 30%, var(--ink-2) 100%); }
.part-card__body { padding: 8px 28px 28px; position: relative; }
.part-card__numeral { position: absolute; right: 24px; top: -62px; font-family: var(--serif); font-size: 4.2rem; color: var(--gold-bright); opacity: 0.85; line-height: 1; }
.part-card h3 { font-size: 1.75rem; margin: 0 0 0.6rem; max-width: 22ch; }
.part-card__lead { font-size: 0.95rem; color: var(--mute-2); margin-bottom: 1.1rem; }
.part-card__chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.part-card__chapters li { border-bottom: 1px solid var(--rule); }
.part-card__chapters a { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 10px 0; font-size: 0.95rem; color: var(--bone); }
.part-card__chapters a:hover { color: var(--gold-bright); }
.part-card__chapters .n { font-family: var(--serif); color: var(--gold-glow); font-size: 1.05rem; }
.parts-grid .part-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.parts-grid .part-card:last-child:nth-child(odd) .part-card__art { min-height: 100%; }
.parts-grid .part-card:last-child:nth-child(odd) .part-card__art::after { background: linear-gradient(90deg, rgba(10,14,26,0) 30%, var(--ink-2) 100%); }
.parts-grid .part-card:last-child:nth-child(odd) .part-card__body { padding-top: 28px; }
.parts-grid .part-card:last-child:nth-child(odd) .part-card__numeral { top: 18px; }
.front-links { margin-bottom: 26px; }
.front-links ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.front-links a { font-family: var(--serif); font-size: 1.25rem; color: var(--bone); border-bottom: 1px solid transparent; }
.front-links a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- download card ---------- */
.dl-card { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; background: linear-gradient(160deg, var(--ink-2), var(--ink)); border: 1px solid rgba(200,146,72,0.28); border-radius: 3px; padding: 36px; position: relative; }
.dl-card::before { content: ""; position: absolute; top: 0; left: 36px; right: 36px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,146,72,0.7), transparent); }
.dl-card__cover { width: 100%; border: 1px solid var(--rule-2); box-shadow: 0 30px 60px rgba(0,0,0,0.55); border-radius: 2px; }
.dl-card h3 { font-size: 2.1rem; margin-bottom: 0.3rem; }
.dl-card__sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--mute-2); margin-bottom: 1.2rem; }
.dl-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 1.6rem; }
.dl-card__meta div { border-top: 1px solid var(--rule); padding-top: 10px; }
.dl-card__meta dt { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-glow); }
.dl-card__meta dd { margin: 3px 0 0; font-size: 0.95rem; }
.dl-card--compact { grid-template-columns: 150px 1fr; gap: 26px; padding: 26px; }
.dl-card--compact h3 { font-size: 1.6rem; }
.dl-card--compact .dl-card__meta { grid-template-columns: repeat(2, 1fr); }

/* ---------- plan hero ---------- */
.plan-hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.plan-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 40%, rgba(200,146,72,0.12), transparent 55%); pointer-events: none; }
.plan-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; position: relative; }
.plan-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: 1rem; }
.plan-hero__sub { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--mute-2); max-width: 34ch; }
.plan-hero__lede { max-width: 56ch; color: var(--bone); margin-bottom: 1.6rem; }
.plan-hero__cover img { width: 100%; max-width: 440px; margin-inline: auto; display: block; border: 1px solid var(--rule-2); box-shadow: 0 40px 80px rgba(0,0,0,0.6); border-radius: 2px; transform: rotate(-1.5deg); }
.plan-hero--about { padding-bottom: 8px; }
.reader-grid--single { padding-top: 12px; }
.contact-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.contact-card h2 { font-size: 2.2rem; margin-bottom: 0.8rem; }

/* ---------- reader ---------- */
.reader-hero { position: relative; background: var(--ink-2) center/cover no-repeat; min-height: 420px; display: flex; align-items: flex-end; padding: 120px 0 44px; border-bottom: 1px solid var(--rule); }
.reader-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,0.35) 0%, rgba(10,14,26,0.72) 55%, var(--ink) 100%); }
.reader-hero--plain { min-height: 0; padding: 64px 0 36px; }
.reader-hero .wrap { position: relative; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-glow); margin-bottom: 1rem; }
.crumb a { color: var(--gold-glow); }
.crumb a:hover { color: var(--bone); }
.crumb__sep { width: 22px; height: 1px; background: var(--gold-glow); opacity: 0.6; }
.reader-title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 18ch; }
.reader-sub { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--mute-2); margin: 0.6rem 0 0; max-width: 40ch; }
.reader-lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--bone); margin: 1.1rem 0 0; max-width: 60ch; }
.reader-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding: 48px 0 80px; }
.reader-grid--single { grid-template-columns: minmax(0, 1fr); }
.reader-side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; scrollbar-width: thin; }
.toc-drawer summary { cursor: pointer; list-style: none; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-glow); padding: 0 0 12px; border-bottom: 1px solid var(--rule-2); margin-bottom: 14px; }
.toc-drawer summary::-webkit-details-marker { display: none; }
.toc-nav__label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin: 16px 0 6px; }
.toc-nav__list { list-style: none; margin: 0; padding: 0; }
.toc-nav__list a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 5px 0; font-size: 0.86rem; line-height: 1.35; color: var(--mute-2); }
.toc-nav__list--plain a { grid-template-columns: 1fr; }
.toc-nav__list a:hover { color: var(--bone); }
.toc-nav__list .n { font-family: var(--serif); color: var(--gold-glow); }
.toc-nav__list li.is-current a { color: var(--gold-bright); font-weight: 400; }
.toc-nav__list li.is-current .n { color: var(--gold-bright); }
.side-dl { display: block; margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(200,146,72,0.35); border-radius: 2px; color: var(--bone); font-size: 0.9rem; }
.side-dl .eyebrow { margin-bottom: 4px; }
.side-dl:hover { border-color: var(--gold); color: var(--gold-bright); }

.reader-body { max-width: var(--measure); font-size: 1.06rem; line-height: 1.72; }
.reader-body > p:first-child em { font-family: var(--serif); font-size: 1.28rem; line-height: 1.45; }
.reader-body h2.section { font-size: 1.9rem; margin: 2.6rem 0 0.9rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.reader-body h2.section .num { font-family: var(--serif); color: var(--gold-bright); font-size: 1.15rem; display: block; margin-bottom: 0.2rem; letter-spacing: 0.02em; }
.reader-body h3.subhead { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-glow); margin: 2rem 0 0.7rem; }
.reader-body h3.subhead strong { font-weight: 500; color: inherit; }
.reader-body p { margin-bottom: 1.15em; }
.reader-body em { color: var(--bone); }
.reader-body ul.bullets, .reader-body ol.numbered { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.reader-body ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 0.5em; }
.reader-body ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.reader-body ol.numbered li { display: grid; grid-template-columns: 34px 1fr; margin-bottom: 0.5em; }
.reader-body ol.numbered .n { font-family: var(--serif); color: var(--gold-bright); font-size: 1.1rem; }
.reader-body .source-note { font-size: 0.86rem; color: var(--mute); font-style: italic; border-left: 1px solid var(--rule-2); padding-left: 14px; }
.reader-body .beat { margin: 2rem 0; padding: 20px 24px 8px; background: var(--ink-2); border-radius: 0 3px 3px 0; border-left: 3px solid #3E7BA8; }
.reader-body .beat--after { border-left-color: var(--gold); }
.reader-body .beat__label { display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: #8ec2ea; margin-bottom: 12px; }
.reader-body .beat--after .beat__label { color: var(--gold-glow); }
.reader-body .beat__label::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.reader-body .beat p:last-child { margin-bottom: 0.6em; }
.reader-body .beat h3.subhead { margin-top: 1rem; }
.reader-body .principle { margin: 2rem 0; padding: 22px 26px; background: var(--ink-2); border-left: 3px solid var(--gold); border-radius: 0 3px 3px 0; }
.reader-body .principle__label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-glow); margin-bottom: 8px; }
.reader-body .principle__body { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; margin: 0; }
.reader-body .tbl-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--rule); border-radius: 3px; }
.reader-body table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.45; }
.reader-body table.data th { text-align: left; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-glow); font-weight: 500; padding: 12px 14px; background: var(--ink-2); border-bottom: 1px solid var(--rule-2); }
.reader-body table.data td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--mute-2); }
.reader-body table.data td:first-child { color: var(--bone); }
.reader-body table.data tr:last-child td { border-bottom: 0; }
.reader-body .lens { margin: 2rem 0; border: 1px solid var(--rule-2); border-radius: 3px; overflow: hidden; }
.reader-body .lens__caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink-2); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-glow); }
.reader-body .lens__row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.reader-body .lens__term { font-weight: 500; color: var(--bone); position: relative; padding-left: 14px; }
.reader-body .lens__term::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 4px; height: 1.05em; background: var(--gold); border-radius: 1px; }
.reader-body .lens__row[data-tax="continue"] .lens__term::before { background: var(--tax-continue); }
.reader-body .lens__row[data-tax="transfer"] .lens__term::before { background: var(--tax-transfer); }
.reader-body .lens__row[data-tax="agree"] .lens__term::before { background: var(--tax-agree); }
.reader-body .lens__row[data-tax="build"] .lens__term::before { background: var(--tax-build); }
.reader-body .lens__meaning { color: var(--mute-2); }
.reader-body .tax-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.8rem 0; }
.reader-body .tax-card { padding: 16px 18px; background: var(--ink-2); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 3px; }
.reader-body .tax-card[data-tax="continue"] { border-top-color: var(--tax-continue); }
.reader-body .tax-card[data-tax="transfer"] { border-top-color: var(--tax-transfer); }
.reader-body .tax-card[data-tax="agree"] { border-top-color: var(--tax-agree); }
.reader-body .tax-card[data-tax="build"] { border-top-color: var(--tax-build); }
.reader-body .tax-card__key { font-size: 11px; letter-spacing: 0.22em; font-weight: 500; margin-bottom: 6px; }
.reader-body .tax-card__body { margin: 0; font-size: 0.92rem; color: var(--mute-2); }
.reader-body .figblock { margin: 2.2rem 0; }
.reader-body figure { margin: 0; }
.reader-body .fig-gen { position: relative; }
.reader-body .fig-gen img { width: 100%; display: block; border: 1px solid var(--rule-2); border-radius: 2px; }
.reader-body .fig-gen--tall { max-width: 640px; margin-inline: auto; }
.reader-body .fig-patch { position: absolute; display: block; }
.reader-body .fig-gen::before {
  content: ""; position: absolute; display: var(--sil-display, none);
  left: calc(var(--sil-x) - 1.4%); top: calc(var(--sil-y) - 1.6%);
  width: calc(var(--sil-w) + 2.8%); height: calc(var(--sil-h) + 3.2%);
  background: var(--navy, #16255C);
}
.reader-body .fig-gen::after {
  content: ""; position: absolute; display: var(--sil-display, none);
  left: var(--crest-x); top: var(--crest-y);
  height: var(--crest-h); width: auto; aspect-ratio: 1140 / 1550;
  background: url("/assets/img/brand/crest-reversed.png") no-repeat center / contain;
  pointer-events: none;
}
.reader-body .chapter__end { text-align: center; margin: 3rem 0 1rem; }
.reader-body .chapter__end img { width: 44px; filter: brightness(0) invert(1); opacity: 0.55; }
.reader-body .chapter__end::before, .reader-body .chapter__end::after { content: ""; display: inline-block; width: 60px; height: 1px; background: var(--rule-2); vertical-align: middle; margin: 0 16px; }
.reader-body--about h3.subhead:first-child { margin-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3rem; border-top: 1px solid var(--rule-2); padding-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 4px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; color: var(--bone); }
.pager a:hover { color: var(--gold-bright); }
.pager__next { text-align: right; align-items: flex-end; }
.pager .eyebrow { margin: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); margin-top: 40px; background: var(--ink-2); }
.site-foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-foot__crest { width: 48px; height: auto; margin-bottom: 14px; }
.site-foot__name { font-family: var(--serif); font-size: 1.5rem; }
.site-foot__tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-glow); margin-top: 6px; }
.site-foot__links, .site-foot__contact { display: flex; flex-direction: column; gap: 10px; }
.site-foot__links a, .site-foot__contact a { color: var(--mute-2); font-size: 0.95rem; }
.site-foot__links a:hover, .site-foot__contact a:hover { color: var(--gold-bright); }
.site-foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0 28px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--mute); }
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: 3rem; margin-bottom: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .reader-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .reader-side { position: static; max-height: none; }
  .toc-drawer:not([open]) summary { margin-bottom: 0; }
  .toc-drawer { border: 1px solid var(--rule-2); border-radius: 3px; padding: 14px 16px; }
  .toc-drawer summary { border: 0; padding: 0; }
  .toc-drawer[open] summary { margin-bottom: 8px; }
  .side-dl { display: none; }
  .plan-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .plan-hero__cover img { max-width: 320px; transform: none; }
  .contact-card { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .section { padding: 52px 0; }
  .parts-grid { grid-template-columns: 1fr; }
  .parts-grid .part-card:last-child:nth-child(odd) { grid-template-columns: 1fr; grid-template-rows: 150px auto; }
  .parts-grid .part-card:last-child:nth-child(odd) .part-card__art::after { background: linear-gradient(180deg, rgba(10,14,26,0) 30%, var(--ink-2) 100%); }
  .parts-grid .part-card:last-child:nth-child(odd) .part-card__numeral { top: -62px; }
  .parts-grid .part-card:last-child:nth-child(odd) .part-card__body { padding-top: 8px; }
  .dl-card, .dl-card--compact { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
  .dl-card__cover { max-width: 200px; }
  .dl-card__meta { grid-template-columns: 1fr 1fr; }
  .reader-hero { min-height: 300px; padding: 80px 0 30px; }
  .reader-title { font-size: 2.1rem; }
  .reader-body { font-size: 1rem; }
  .reader-body .lens__row { grid-template-columns: 1fr; gap: 4px; }
  .reader-body .tax-grid { grid-template-columns: 1fr; }
  .reader-body h2.section { font-size: 1.6rem; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { text-align: left; align-items: flex-start; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .quote-block p { font-size: 1.15rem; }
  .section-head h2 { font-size: 1.9rem; }
  .plan-hero { padding: 48px 0 40px; }
  .plan-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 380px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .btn { width: 100%; }
  .dl-card__meta { grid-template-columns: 1fr; }
}
