@import url("/reader.css");
:root {
    --bg: #FAF7F5;
    --surface: #FFFFFF;
    --surface-soft: #F1E8E8;
    --primary: #8C5A6B;
    --primary-soft: #C8A7AE;
    --deep: #2E2529;
    --text: #3C3437;
    --muted: #786B70;
    --accent: #A96572;
    --line: #E4D7D8;
    --shadow: 0 18px 50px rgba(75, 49, 58, 0.09);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shell: min(1180px, calc(100% - 40px));
    font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 10%, rgba(200,167,174,.12), transparent 28%), radial-gradient(circle at 80% 70%, rgba(140,90,107,.07), transparent 32%);
    z-index: -1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--primary); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(169,101,114,.35); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 40px)); }
.skip-link { position: fixed; left: 16px; top: 12px; transform: translateY(-150%); padding: 10px 14px; background: var(--deep); color: #fff; border-radius: 10px; z-index: 999; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(250,247,245,.92); border-bottom: 1px solid rgba(228,215,216,.85); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-size: 1.14rem; letter-spacing: .08em; color: var(--deep); }
.brand small { margin-top: 5px; color: var(--muted); font-size: .76rem; letter-spacing: .03em; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { padding: 9px 12px; text-decoration: none; border-radius: 999px; color: var(--muted); font-size: .93rem; }
.primary-nav a:hover, .primary-nav a.is-active { background: var(--surface-soft); color: var(--deep); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 8px 14px; color: var(--deep); }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(36px, 7vw, 96px); padding-block: 70px; }
.hero h1, .page-intro h1, .chapter-page h1 { margin: 0; color: var(--deep); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.hero h1 { max-width: 680px; font-size: clamp(2.7rem, 5.3vw, 5.8rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.27rem); color: var(--muted); max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: .78rem; font-family: system-ui, sans-serif; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(140,90,107,.18); }
.btn.primary:hover { background: #774858; color: #fff; }
.btn.secondary { border-color: var(--primary-soft); background: rgba(255,255,255,.58); color: var(--deep); }
.text-link { color: var(--primary); font-weight: 700; text-decoration-thickness: 1px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 38px 0 0; }
.hero-facts div { padding: 15px 16px; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: .77rem; font-family: system-ui, sans-serif; }
.hero-facts dd { margin: 6px 0 0; color: var(--deep); font-weight: 700; }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: 7% -6% -6% 9%; border-radius: 45% 45% 18px 18px; background: var(--surface-soft); z-index: -1; }
.hero-media img { width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: 52% 52% 24px 24px; box-shadow: var(--shadow); }
.hero-media figcaption { margin-top: 12px; color: var(--muted); font-size: .84rem; text-align: center; }

.section-block { padding-block: 84px; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2, .version-note h2, .audio-item h2, .reading-card h2 { margin: 0; color: var(--deep); font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.3; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.compact-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.chapter-list { border-top: 1px solid var(--line); }
.chapter-row { display: grid; grid-template-columns: 56px 1fr 44px; gap: 20px; align-items: center; padding: 24px 2px; border-bottom: 1px solid var(--line); }
.chapter-row h3 { margin: 0 0 6px; color: var(--deep); font-size: 1.12rem; }
.chapter-row h3 a { text-decoration: none; }
.chapter-row p { margin: 0; color: var(--muted); }
.chapter-number { color: var(--primary-soft); font-size: 1.65rem; font-style: italic; }
.row-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; }
.row-arrow:hover { background: var(--surface-soft); }
.chapter-meta { display: flex; gap: 9px; margin-bottom: 8px; font: 600 .72rem/1.2 system-ui, sans-serif; color: var(--primary); }
.chapter-meta span { padding: 4px 8px; background: var(--surface-soft); border-radius: 999px; }
.feature-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.feature-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.feature-card-body { padding: 28px; }
.feature-card h3 { margin: 12px 0 10px; font-size: 1.6rem; color: var(--deep); }
.feature-card p { color: var(--muted); }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--primary); font: 700 .72rem/1.2 system-ui, sans-serif; }
.split-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding-block: 0; margin-block: 40px 110px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.split-band > div { padding: clamp(28px, 5vw, 58px); background: rgba(255,255,255,.82); }
.split-band h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.32; color: var(--deep); }
.split-band p { color: var(--muted); }

.page-main { padding-block: 30px 90px; }
.breadcrumbs { margin-bottom: 40px; font: .82rem/1.4 system-ui, sans-serif; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--primary-soft); }
.page-intro { display: grid; grid-template-columns: 1.05fr .65fr; align-items: center; gap: 54px; margin-bottom: 66px; }
.page-intro h1 { font-size: clamp(2.2rem, 4.5vw, 4.7rem); }
.page-intro img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.plain-intro { display: block; max-width: 780px; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 54px; align-items: start; }
.reading-aside { position: relative; }
.sticky-note { position: sticky; top: 112px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.sticky-note h2 { margin: 0 0 12px; font-size: 1.28rem; color: var(--deep); }
.sticky-note p { color: var(--muted); }

.reading-card { padding: clamp(28px, 5vw, 58px); background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.chapter-page { margin-top: 20px; }
.chapter-page h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.chapter-lead { font-size: 1.25rem; color: var(--muted); }
.chapter-page section { margin-top: 44px; }
.chapter-page section h2 { margin-bottom: 12px; font-size: 1.45rem; color: var(--deep); }
.chapter-page section p { font-size: 1.06rem; }
.chapter-context { padding-top: 28px; border-top: 1px solid var(--line); }
.chapter-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 38px; padding: 22px 0; border-top: 1px solid var(--line); }
.chapter-nav > div { display: grid; gap: 5px; }
.chapter-nav > div.next { text-align: right; }
.chapter-nav span { color: var(--muted); font: .74rem/1.2 system-ui, sans-serif; }
.chapter-nav a { font-weight: 700; }
.chapter-nav em { color: var(--muted); font-style: normal; font-size: .9rem; }
.chapter-index { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

.wide-page { width: min(1280px, calc(100% - 40px)); }
.comic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.comic-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.comic-image { position: relative; display: block; text-decoration: none; overflow: hidden; background: var(--surface-soft); }
.comic-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.comic-image:hover img { transform: scale(1.025); }
.comic-image span { position: absolute; left: 16px; bottom: 16px; padding: 6px 11px; border-radius: 999px; background: rgba(46,37,41,.86); color: #fff; font: 700 .75rem/1.2 system-ui, sans-serif; }
.comic-card-body { padding: 23px; }
.comic-card h2 { margin: 0 0 10px; font-size: 1.25rem; color: var(--deep); }
.comic-card h2 a { text-decoration: none; }
.comic-card p { color: var(--muted); }
.comic-reader { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 78px); align-items: start; }
.comic-reader-copy { position: sticky; top: 116px; }
.comic-reader-copy h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.2; color: var(--deep); }
.small-card { margin-top: 30px; padding: 26px; box-shadow: none; }
.small-card h2 { font-size: 1.35rem; }
.comic-reader-media { margin: 0; }
.comic-reader-media img { width: 100%; max-height: 980px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.comic-reader-media figcaption { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 10px; }

.version-stack { display: grid; gap: 0; border-top: 1px solid var(--line); }
.version-note { display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.version-note > span { color: var(--primary-soft); font-size: 2rem; font-style: italic; }
.version-note h2 { font-size: 1.45rem; }
.version-note p { color: var(--muted); }
.compare-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 50px; }
.compare-card > div { max-width: 600px; }
.audio-list { display: grid; gap: 18px; max-width: 900px; margin-inline: auto; }
.audio-item { display: grid; grid-template-columns: 58px 1fr; gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.audio-mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--primary); font-size: 1.35rem; }
.audio-item h2 { font-size: 1.4rem; }
.audio-summary { color: var(--deep); font-weight: 700; }
.audio-item p:last-child { color: var(--muted); }
.linked-card { max-width: 900px; margin: 46px auto 0; box-shadow: none; }

.search-form { margin: 20px 0 56px; }
.search-form label { display: block; margin-bottom: 9px; color: var(--deep); font-weight: 700; }
.search-form > div { display: flex; gap: 10px; }
.search-form input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 10px 18px; color: var(--deep); }
.result-list { display: grid; gap: 16px; }
.result-list article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.72); }
.result-list h3 { margin: 10px 0 8px; color: var(--deep); }
.result-list p { margin: 0; color: var(--muted); }
.empty-state { padding: 36px; text-align: center; border: 1px dashed var(--primary-soft); border-radius: var(--radius-lg); background: var(--surface-soft); }
.error-page { padding-block: 90px; }
.muted { color: var(--muted); font-size: .9rem; }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(241,232,232,.55); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .8fr 1fr; gap: 44px; padding-block: 48px; color: var(--muted); }
.footer-brand { margin: 0 0 8px; color: var(--deep); font-size: 1.35rem; font-weight: 700; }
.footer-grid nav { display: grid; gap: 7px; align-content: start; }
.footer-grid nav a, .footer-note a { color: var(--deep); }
.footer-note p:first-child { margin-top: 0; }

@media (max-width: 980px) {
    .header-inner { min-height: 70px; }
    .menu-toggle { display: inline-flex; }
    .primary-nav { position: fixed; inset: 70px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 12px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px 14px; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 54px 84px; }
    .hero-media { max-width: 650px; margin-inline: auto; }
    .page-intro { grid-template-columns: 1fr; gap: 30px; }
    .page-intro img { max-width: 720px; }
    .reading-layout { grid-template-columns: 1fr; }
    .reading-aside { order: -1; }
    .sticky-note { position: static; }
    .comic-grid { grid-template-columns: repeat(2, 1fr); }
    .comic-reader { grid-template-columns: 1fr; }
    .comic-reader-copy { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    :root { --shell: min(100% - 28px, 1180px); }
    .narrow, .wide-page { width: min(100% - 28px, 1180px); }
    .brand small { display: none; }
    .hero { gap: 42px; padding-top: 38px; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts div { display: flex; justify-content: space-between; gap: 12px; }
    .section-block { padding-block: 56px; }
    .compact-heading { align-items: start; flex-direction: column; gap: 12px; }
    .chapter-row { grid-template-columns: 42px 1fr 36px; gap: 12px; }
    .chapter-row p { font-size: .93rem; }
    .feature-pair, .split-band { grid-template-columns: 1fr; }
    .split-band { margin-bottom: 72px; }
    .page-main { padding-block: 22px 65px; }
    .breadcrumbs { margin-bottom: 26px; }
    .page-intro { margin-bottom: 46px; }
    .comic-grid { grid-template-columns: 1fr; }
    .comic-card { display: grid; grid-template-columns: 42% 1fr; }
    .comic-image img { height: 100%; aspect-ratio: auto; }
    .comic-card-body { padding: 20px; }
    .chapter-nav { grid-template-columns: 1fr 1fr; }
    .chapter-index { grid-column: 1 / -1; grid-row: 2; text-align: center; }
    .compare-card { align-items: flex-start; flex-direction: column; }
    .search-form > div { align-items: stretch; flex-direction: column; }
    .search-form .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-note { grid-column: auto; }
}

@media (max-width: 480px) {
    .header-inner { gap: 12px; }
    .brand img { width: 40px; height: 40px; }
    .brand strong { font-size: 1rem; }
    .menu-toggle { padding: 7px 12px; }
    .comic-card { grid-template-columns: 1fr; }
    .comic-image img { aspect-ratio: 4/5; }
    .audio-item { grid-template-columns: 1fr; }
    .audio-mark { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* FAQ and expandable reading reference */
.faq-section { margin-top: 76px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; padding: 20px 48px 20px 0; color: var(--deep); font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); font: 500 1.1rem/1 system-ui, sans-serif; }
.faq-item[open] summary::after { content: "−"; background: var(--surface-soft); }
.faq-item > div { padding: 0 48px 20px 0; color: var(--muted); }
.faq-item p { margin: 0; max-width: 78ch; }

/* Utility components used by long-form authorized content and future editorial expansion. */
.section-divider { height: 1px; border: 0; background: var(--line); margin-block: 46px; }
.inline-note { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--primary); font: 700 .72rem/1.2 system-ui, sans-serif; }
.kicker-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font: .8rem/1.4 system-ui, sans-serif; }
.kicker-line::before { content: ""; width: 28px; height: 1px; background: var(--primary-soft); }
.prose-columns { columns: 2 320px; column-gap: 44px; }
.prose-columns p { break-inside: avoid; margin-top: 0; }
.figure-frame { margin: 32px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.7); }
.figure-frame img { width: 100%; border-radius: calc(var(--radius-lg) - 8px); }
.figure-frame figcaption { padding: 10px 8px 2px; color: var(--muted); font-size: .82rem; }
.index-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.index-links a { display: inline-flex; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.65); }
.index-links a:hover { background: var(--surface-soft); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(169,101,114,.12); }
.quote-panel { margin: 34px 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--deep); color: #f9f2f2; }
.quote-panel p { margin: 0; font-size: 1.12rem; }
.quote-panel cite { display: block; margin-top: 10px; color: #d9c9ce; font-size: .8rem; font-style: normal; }
.content-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.content-grid .span-4 { grid-column: span 4; }
.content-grid .span-5 { grid-column: span 5; }
.content-grid .span-6 { grid-column: span 6; }
.content-grid .span-7 { grid-column: span 7; }
.content-grid .span-8 { grid-column: span 8; }
.soft-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.64); }
.soft-card > :first-child { margin-top: 0; }
.soft-card > :last-child { margin-bottom: 0; }
.label-pair { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 10px 18px; }
.label-pair strong { color: var(--deep); }
.label-pair span { color: var(--muted); }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 7px; bottom: 7px; width: 1px; background: var(--line); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: .65em; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--bg); }
.timeline-item h3 { margin: 0 0 6px; color: var(--deep); }
.timeline-item p { margin: 0; color: var(--muted); }
.pill-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.pill-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.notice-bar { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface-soft); color: var(--text); }
.notice-bar::before { content: "i"; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font: 700 .78rem/1 system-ui, sans-serif; }
.number-list { counter-reset: item; display: grid; gap: 16px; list-style: none; padding: 0; }
.number-list li { counter-increment: item; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.number-list li::before { content: counter(item, decimal-leading-zero); color: var(--primary-soft); font-style: italic; font-size: 1.2rem; }
.metadata-strip { display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 14px 0; border-block: 1px solid var(--line); color: var(--muted); font: .8rem/1.4 system-ui, sans-serif; }
.metadata-strip strong { color: var(--deep); font-weight: 700; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.reader-actions a, .reader-actions button { min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--deep); text-decoration: none; }
.reader-actions a:hover, .reader-actions button:hover { background: var(--surface-soft); }
.stacked-cards { display: grid; gap: 12px; }
.stacked-cards > article { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.stacked-cards h3 { margin: 0 0 6px; color: var(--deep); }
.stacked-cards p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-grid .span-4, .content-grid .span-5, .content-grid .span-6, .content-grid .span-7, .content-grid .span-8 { grid-column: auto; }
    .prose-columns { columns: 1; }
    .faq-item summary { padding-right: 40px; }
    .faq-item > div { padding-right: 40px; }
}

/* Reading guide */
.guide-page { width: min(980px, calc(100% - 40px)); }
.guide-block { margin-top: 78px; }
.guide-block:first-of-type { margin-top: 30px; }
.guide-block .content-grid { margin-top: 26px; }
.guide-block .soft-card h3 { margin: 0 0 8px; color: var(--deep); font-size: 1.12rem; }
.guide-block .soft-card p { color: var(--muted); }
.guide-block .number-list { margin-top: 30px; }
.guide-block .number-list strong { color: var(--deep); }
.guide-block .number-list p { margin: 5px 0 0; color: var(--muted); }
.guide-block .definition-list { margin-top: 26px; }

/* Dense reading mode classes available for authorized long-form text. */
.reading-density-comfortable { --reader-line: 1.9; --reader-size: 1.08rem; }
.reading-density-compact { --reader-line: 1.65; --reader-size: 1rem; }
.reading-density-large { --reader-line: 2; --reader-size: 1.18rem; }
.reading-surface { font-size: var(--reader-size, 1.06rem); line-height: var(--reader-line, 1.85); }
.reading-surface p { margin: 0 0 1.25em; }
.reading-surface h2 { margin: 2.2em 0 .75em; line-height: 1.3; }
.reading-surface h3 { margin: 1.8em 0 .65em; line-height: 1.35; }
.reading-surface hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.reading-surface a { color: var(--primary); }
.reading-surface mark { background: #f1dfe3; color: inherit; padding: 0 .15em; }
.reading-surface code { padding: .14em .35em; border-radius: 6px; background: var(--surface-soft); font: .9em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.reading-surface pre { overflow-x: auto; padding: 18px; border-radius: 14px; background: var(--deep); color: #fff; }
.reading-surface pre code { padding: 0; background: transparent; color: inherit; }

/* Fine responsive adjustments for smaller tablets and phones. */
@media (max-width: 820px) {
    .guide-page { width: min(100% - 28px, 980px); }
    .guide-block { margin-top: 60px; }
    .metadata-strip { gap: 9px 14px; }
    .quote-panel { padding: 22px; }
}
@media (max-width: 520px) {
    .guide-block { margin-top: 48px; }
    .reader-actions { flex-direction: column; }
    .reader-actions a, .reader-actions button { width: 100%; justify-content: center; text-align: center; }
    .number-list li { grid-template-columns: 32px 1fr; }
    .definition-list > div { padding-block: 14px; }
}

/* Additional reusable page primitives for maintained deployments. */
.anchor-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.anchor-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); text-decoration: none; }
.anchor-card:hover { background: var(--surface-soft); }
.anchor-card strong { display: block; margin-bottom: 5px; color: var(--deep); }
.anchor-card span { display: block; color: var(--muted); font-size: .9rem; }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font: 700 .76rem/1.3 system-ui, sans-serif; letter-spacing: .08em; }
.section-label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.reading-summary { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(241,232,232,.55)); }
.reading-summary h3 { margin: 0 0 8px; color: var(--deep); }
.reading-summary p { margin: 0; color: var(--muted); }
.two-column-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note-card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.66); }
.note-card h3 { margin: 0 0 8px; color: var(--deep); }
.note-card p { margin: 0; color: var(--muted); }
.compact-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.compact-list li { position: relative; padding-left: 18px; color: var(--muted); }
.compact-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-soft); }
.flow > * + * { margin-top: var(--flow-space, 1.2em); }
.flow-tight { --flow-space: .72em; }
.flow-loose { --flow-space: 1.7em; }
.centered-copy { max-width: 720px; margin-inline: auto; text-align: center; }
.centered-copy .button-row { justify-content: center; }
.surface-panel { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,.72); }
.surface-panel.deep { background: var(--deep); color: #f8f2f3; border-color: var(--deep); }
.surface-panel.deep h2, .surface-panel.deep h3 { color: #fff; }
.surface-panel.deep p { color: #d9cdd0; }
.iconless-list { list-style: none; padding: 0; margin: 0; }
.iconless-list > li + li { border-top: 1px solid var(--line); }
.iconless-list > li { padding-block: 14px; }
.meta-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: 700 .7rem/1 system-ui, sans-serif; }
.progress-line { position: relative; height: 4px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.progress-line > span { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: var(--primary); border-radius: inherit; }
.frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.frame-grid figure { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.66); }
.frame-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.frame-grid figcaption { padding: 8px 4px 2px; color: var(--muted); font-size: .8rem; }
.pull-quote { margin: 34px 0; padding-left: 24px; border-left: 4px solid var(--primary-soft); color: var(--deep); font-size: 1.22rem; line-height: 1.65; }
.inline-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; vertical-align: middle; }
.inline-actions a { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--surface-soft); text-decoration: none; font-size: .86rem; }
.scroll-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 34%); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding-bottom: 8px; }
.scroll-strip > * { scroll-snap-align: start; }
.key-value { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.key-value dt { color: var(--muted); }
.key-value dd { margin: 0; color: var(--deep); }
.soft-separator { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); margin-block: 40px; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 15; display: flex; justify-content: center; pointer-events: none; }
.sticky-actions > div { display: inline-flex; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250,247,245,.94); box-shadow: var(--shadow); backdrop-filter: blur(10px); pointer-events: auto; }
.sticky-actions a, .sticky-actions button { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--deep); text-decoration: none; }
.sticky-actions a:hover, .sticky-actions button:hover { background: var(--surface-soft); }

@media (max-width: 760px) {
    .two-column-notes { grid-template-columns: 1fr; }
    .frame-grid { grid-template-columns: 1fr; }
    .scroll-strip { grid-auto-columns: 82%; }
    .key-value { grid-template-columns: 1fr; gap: 2px; }
}

/* Print and high-contrast adaptations */
@media print {
    .site-header, .site-footer, .menu-toggle, .button-row, .reader-actions, .sticky-actions { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    body::before { display: none; }
    .shell, .narrow, .wide-page, .guide-page { width: 100%; max-width: none; margin: 0; }
    .page-main { padding: 0; }
    a { color: #000; text-decoration: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
    .chapter-nav a[href]::after, .breadcrumbs a[href]::after { content: ""; }
    .reading-card, .soft-card, .feature-card, .comic-card, .audio-item { box-shadow: none; break-inside: avoid; }
    img { max-height: 55vh; object-fit: contain; }
}

@media (forced-colors: active) {
    .btn, .primary-nav a, .tag, .meta-badge, .chapter-index, .row-arrow { border: 1px solid ButtonText; }
    .btn.primary { background: ButtonFace; color: ButtonText; }
    .chapter-number, .eyebrow, .text-link { color: LinkText; }
}
