/* Layout: dark photographic hero, floating quick-facts, Klook-style photo cards with filter chips, then a reading column with a sticky chapter rail. */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #E9EDF5;
  --ink: #0F1B33;
  --ink-2: #4B576F;
  --line: #DBE1EC;
  --gold: #C4A05A;
  --gold-ink: #7C5D20;
  --gold-soft: #F2E8D3;
  --navy: #0A1428;
  --navy-2: #13233F;
  --on-navy: #F4F6FB;
  --on-navy-2: #B4BFD3;
  --call-bg: #0F1B33;
  --call-ink: #F4F6FB;
  --call-gold: #D9BC7F;
  --pos: #17704A;
  --shadow: 0 1px 2px rgba(15,27,51,.06), 0 8px 24px rgba(15,27,51,.07);
  --shadow-lg: 0 2px 4px rgba(15,27,51,.08), 0 24px 60px rgba(15,27,51,.18);
  --nav: 64px;
  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081020; --surface: #0F1B33; --surface-2: #16264A; --ink: #EDF0F7; --ink-2: #A8B3C8; --line: #22345A;
    --gold: #C9A45C; --gold-ink: #DDBF84; --gold-soft: #2A2A2E; --call-bg: #16264A; --call-ink: #F4F6FB; --call-gold: #D9BC7F;
    --pos: #5CC596; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081020; --surface: #0F1B33; --surface-2: #16264A; --ink: #EDF0F7; --ink-2: #A8B3C8; --line: #22345A;
  --gold: #C9A45C; --gold-ink: #DDBF84; --gold-soft: #2A2A2E; --call-bg: #16264A; --call-ink: #F4F6FB; --call-gold: #D9BC7F;
  --pos: #5CC596; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ph { background-repeat: no-repeat; background-color: var(--navy); }
.ia { background-image: url(img/a.webp); }
.ib { background-image: url(img/b.webp); }

/* progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C4A05A, #E8D3A0); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 70; background: color-mix(in srgb, var(--navy) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(196,160,90,.22); }
.nav .wrap { height: var(--nav); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--on-navy-2); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { text-decoration: none; background: var(--gold); color: #1A1405; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: #E0C384; }
.menu-btn { display: none; margin-left: auto; background: rgba(255,255,255,.08); color: var(--on-navy); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }

/* chapter sheet (mobile) */
.sheet { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--on-navy); overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-top h2 { font-family: var(--f-display); font-size: 28px; margin: 0; font-weight: 600; }
.sheet a { display: flex; gap: 14px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.09); text-decoration: none; }
.sheet a b { color: var(--call-gold); font-variant-numeric: tabular-nums; min-width: 24px; }

/* hero */
.hero { background: radial-gradient(900px 500px at 85% 10%, rgba(196,160,90,.18), transparent 60%), linear-gradient(180deg, #0A1428, #0C1A33); color: var(--on-navy); padding-block: 56px 112px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance; }
.hero .tag { font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--call-gold); font-weight: 700; margin: 0 0 22px; }
.hero .sub { color: var(--on-navy-2); font-size: 1.08rem; max-width: 34em; margin: 0 0 30px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 7px 7px 20px; max-width: 540px; box-shadow: var(--shadow-lg); }
.search svg { flex: none; color: #5B6785; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: #0F1B33; font-size: 15px; padding: 10px 4px; }
.search input::placeholder { color: #6A7590; }
.search button { border: 0; background: var(--gold); color: #1A1405; font-weight: 700; padding: 11px 22px; border-radius: 999px; font-size: 14px; }
.search button:hover { background: #E0C384; }
.search:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.quick span { font-size: 13px; color: var(--on-navy-2); margin-right: 4px; }
.quick button { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: var(--on-navy); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.quick button:hover { background: rgba(255,255,255,.15); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: var(--on-navy-2); font-size: 14px; }
.byline b { color: var(--on-navy); font-weight: 700; }
.byline i { width: 36px; height: 1px; background: var(--gold); }
.collage { position: relative; aspect-ratio: 5 / 6; max-width: 460px; width: 100%; margin-left: auto; }
.collage .big { position: absolute; inset: 0 0 0 12%; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.collage .small { position: absolute; width: 52%; aspect-ratio: 4 / 3; left: 0; bottom: 8%; border-radius: 20px; border: 4px solid #0C1A33; box-shadow: var(--shadow-lg); }
.collage .pill { position: absolute; right: 6%; top: 6%; background: rgba(10,20,40,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.collage .pill b { color: var(--call-gold); }

/* quick facts */
.facts-row { margin-top: -64px; position: relative; z-index: 5; }
.facts-row .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fact strong { display: block; font-family: var(--f-display); font-size: 2.5rem; line-height: 1; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.fact em { display: block; margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold-ink); }

/* contents */
.contents { padding-block: 72px 24px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 26px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.02; margin: 0; text-wrap: balance; }
.sec-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 36em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; position: sticky; top: calc(var(--nav) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); padding-top: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
:root[data-theme="dark"] .chip.on { background: var(--gold); color: #1A1405; border-color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: var(--gold); color: #1A1405; border-color: var(--gold); } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 12px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img .ph { position: absolute; inset: 0; transition: transform .6s; }
.card:hover .card-img .ph { transform: scale(1.05); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,32,.1) 35%, rgba(8,16,32,.55)); }
.badge { position: absolute; z-index: 2; left: 14px; top: 14px; background: rgba(10,20,40,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #E8D3A0; font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.mins { position: absolute; z-index: 2; right: 14px; bottom: 12px; color: #fff; font-size: 12px; font-weight: 600; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-label { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .04em; }
.card-body h3 { margin: 0; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.12; font-weight: 700; text-wrap: balance; }
.card[hidden] { display: none; }
.empty { display: none; padding: 40px 0; color: var(--ink-2); text-align: center; }
.empty.show { display: block; }
.empty button { margin-top: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 18px; font-weight: 600; }

/* reader */
.reader { padding-block: 56px 24px; }
.reader .wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.rail { position: sticky; top: calc(var(--nav) + env(safe-area-inset-top, 0px) + 20px); max-height: calc(100vh - var(--nav) - 60px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.rail h2 { font-family: var(--f-display); font-size: 1.4rem; margin: 0 0 10px; font-weight: 700; }
.rail a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); border-left: 2px solid transparent; }
.rail a b { font-variant-numeric: tabular-nums; color: var(--gold-ink); min-width: 20px; }
.rail a:hover { background: var(--surface-2); color: var(--ink); }
.rail a.on { background: var(--surface); color: var(--ink); border-left-color: var(--gold); font-weight: 600; box-shadow: var(--shadow); }
.chapters { display: grid; gap: 36px; min-width: 0; }
.chapter { scroll-margin-top: calc(var(--nav) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.ch-head { position: relative; height: clamp(150px, 22vw, 230px); }
.ch-head .ph { position: absolute; inset: 0; }
.ch-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,32,.15), rgba(8,16,32,.7)); }
.ch-meta { position: absolute; left: clamp(20px, 4vw, 44px); right: clamp(20px, 4vw, 44px); bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ch-no { background: var(--gold); color: #1A1405; font-weight: 800; font-size: 13px; padding: 5px 13px; border-radius: 999px; }
.ch-label { color: #fff; font-weight: 600; font-size: 14px; }
.ch-time { margin-left: auto; color: rgba(255,255,255,.85); font-size: 13px; }
.ch-body { padding: clamp(24px, 4.4vw, 52px); display: grid; gap: 34px; min-width: 0; }
.ch-body h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.04; margin: 0; text-wrap: balance; }
.lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); margin: -10px 0 0; max-width: 46em; }
.sec { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 12px 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.sec h3 { margin: 0; font-family: var(--f-display); font-size: 1.55rem; line-height: 1.12; font-weight: 700; text-wrap: balance; }
.sec-body { min-width: 0; max-width: 40em; }
.sec-body p { margin: 0 0 14px; color: var(--ink-2); }
.sec-body p:last-child { margin-bottom: 0; }
.ticks, .facts, .steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.42em + 4px); width: 4px; height: 7px; border: solid var(--gold-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.facts { margin-top: 0; }
.facts li { display: grid; gap: 2px; padding: 12px 16px; background: var(--surface-2); border-radius: 14px; }
.facts strong { font-size: .95rem; }
.facts span { color: var(--ink-2); font-size: .95rem; }
.steps { counter-reset: s; margin-top: 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; background: var(--surface-2); border-radius: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-2); color: #E8D3A0; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 1px; font-variant-numeric: tabular-nums; }
.buckets { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bucket { background: var(--surface-2); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.bk-top { display: flex; justify-content: space-between; align-items: baseline; }
.bk-l { font-size: 12px; font-weight: 700; color: var(--gold-ink); }
.bk-p { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.bucket h4 { margin: 0; font-size: 1rem; }
.bucket p { margin: 0; font-size: .9rem; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: auto; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

.tbl { min-width: 0; }
.cap { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th { background: var(--navy-2); color: #E8D3A0; text-align: left; font-weight: 700; font-size: 13px; padding: 14px 18px; white-space: nowrap; }
td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-2); }
td.first { color: var(--ink); font-weight: 600; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tr.total td { background: var(--gold-soft); color: var(--ink); font-weight: 700; }
.pos { color: var(--pos); font-weight: 700; }
.yb { display: inline-block; width: 64px; height: 6px; border-radius: 99px; background: var(--line); margin-right: 10px; vertical-align: middle; overflow: hidden; }
.yb i { display: block; height: 100%; background: var(--gold); }

.takeaway { background: var(--call-bg); color: var(--call-ink); border-radius: 22px; padding: clamp(22px, 3.4vw, 34px); position: relative; }
.takeaway::before { content: "\201C"; position: absolute; right: 24px; top: -6px; font-family: var(--f-display); font-size: 110px; line-height: 1; color: var(--call-gold); opacity: .28; }
.tk-h { font-size: 13px; font-weight: 700; color: var(--call-gold); }
.takeaway p { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 600; max-width: 34em; position: relative; }
.check { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--bg); }
.ck-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ck-top h4 { margin: 0; font-family: var(--f-display); font-size: 1.5rem; }
.ck-count { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ck-bar { height: 6px; border-radius: 99px; background: var(--line); margin: 12px 0 14px; overflow: hidden; }
.ck-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check label { display: flex; gap: 14px; align-items: flex-start; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
.check label:hover { background: var(--surface-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--gold); background: var(--surface); margin-top: 2px; display: grid; place-items: center; transition: background .15s; }
.check input:checked + .box { background: var(--gold); }
.check input:checked + .box::after { content: ""; width: 5px; height: 10px; border: solid #1A1405; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check input:checked ~ .tx { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--gold); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 8px; }
.pn { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s, background .2s; min-width: 0; }
.pn:hover { border-color: var(--gold); background: var(--surface-2); }
.pn small { font-size: 12px; color: var(--gold-ink); font-weight: 700; }
.pn b { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.2; }
.pn.next { text-align: right; grid-column: 2; }
.pn.prev { grid-column: 1; }

/* sources */
.sources { padding-block: 64px 24px; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.src { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.src h3 { margin: 0; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.src p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.src a, .src .portal { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--gold-ink); text-decoration: none; }
.src a:hover { text-decoration: underline; }
.note { margin-top: 20px; padding: 20px 24px; border-radius: 18px; background: var(--gold-soft); color: var(--ink); font-size: .95rem; }

/* contact */
.contact { padding-block: 40px 72px; }
.contact-card { background: linear-gradient(135deg, #0A1428, #13233F); color: var(--on-navy); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(196,160,90,.28), transparent); pointer-events: none; }
.contact-card h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; margin: 0 0 14px; text-wrap: balance; }
.contact-card p { margin: 0; color: var(--on-navy-2); max-width: 32em; }
.lines { display: grid; gap: 12px; position: relative; z-index: 1; }
.line { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 18px; min-width: 0; }
.line div { min-width: 0; }
.line small { display: block; font-size: 12px; color: var(--on-navy-2); }
.line span { display: block; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.line button { flex: none; border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.line button:hover { background: rgba(255,255,255,.12); }
.lic { font-size: 13px; color: var(--on-navy-2); margin-top: 4px; }

/* footer */
.foot { background: var(--navy); color: var(--on-navy-2); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.foot img { width: 120px; }
.foot h2 { margin: 0; font-family: var(--f-display); font-size: 1.7rem; color: var(--on-navy); font-weight: 600; }
.foot p { margin: 0; max-width: 40em; font-size: 14px; }
.foot .legal { font-size: 12.5px; max-width: 56em; color: #8E9AB2; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: var(--call-gold); text-decoration: none; font-weight: 600; font-size: 14px; }
.foot nav a:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 1020px) {
  .reader .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 860px) {
  .hero { padding-block: 36px 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .collage { max-width: 420px; margin: 0 auto; aspect-ratio: 5 / 4.4; }
  .facts-row .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .buckets { grid-template-columns: minmax(0, 1fr); }
  .contact-card { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .search button { padding: 11px 16px; }
  .fact strong { font-size: 2rem; }
  .fact { padding: 16px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pn.next, .pn.prev { grid-column: 1; text-align: left; }
  .chapter { border-radius: 22px; }
  .ch-time { margin-left: 0; }
}
[hidden]{display:none!important}
