@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --archive-ink: #172033;
    --archive-navy: #10233f;
    --archive-blue: #244f7f;
    --archive-gold: #b78a45;
    --archive-paper: #f5f5dc;
    --archive-white: #ffffff;
    --archive-line: #dcd8ce;
    --archive-muted: #667085;
    --archive-green: #2f6548;
}

body { background: var(--archive-paper); }

.collection-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 72px;
}

.collection-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--archive-muted);
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 650;
}
.collection-breadcrumbs a { color: var(--archive-blue); text-decoration: none; }
.collection-breadcrumbs a:hover { text-decoration: underline; }
.collection-breadcrumbs span { opacity: 0.55; }

.collection-hero {
    padding: 24px 18px 30px;
    border: 0;
    border-bottom: 2px solid rgba(139, 111, 71, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.collection-kicker {
    color: var(--archive-blue);
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.collection-title {
    max-width: 820px;
    margin: 10px auto 12px;
    color: #111111;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.collection-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #6b6b6b;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.collection-original-title {
    max-width: 700px;
    color: #5f6977;
    font-size: clamp(0.92rem, 1.7vw, 1.12rem);
    font-weight: 500;
    line-height: 1.45;
}

.collection-meta,
.collection-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    justify-content: center;
}

.collection-badge,
.collection-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 7px;
    font-family: Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}
.collection-hero .collection-badge {
    color: #365675;
    background: #edf3f8;
    border: 1px solid #d7e3ec;
}
.collection-card .collection-badge, .collection-panel .collection-badge {
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #e1e5ea;
}
.collection-status { color: var(--archive-green); background: #e8f1eb; border: 1px solid #cbded1; }

.collection-section { margin-top: 42px; }
.collection-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.collection-section h2,
.collection-section-header h2 {
    margin: 0;
    color: #0f2f8c;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 760;
    letter-spacing: -0.03em;
}
.section-count { color: var(--archive-muted); font-size: 0.9rem; }

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.collection-card,
.collection-panel {
    display: block;
    padding: 26px;
    border: 1px solid var(--archive-line);
    border-radius: 20px;
    background: var(--archive-white);
    box-shadow: 0 8px 26px rgba(23, 32, 51, 0.055);
    color: inherit;
    text-decoration: none;
}
.collection-card { transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.collection-card:hover { transform: translateY(-3px); border-color: #a9b9c9; box-shadow: 0 15px 34px rgba(23, 32, 51, 0.11); }
.collection-card h2, .collection-card h3, .collection-panel h2, .collection-panel h3 {
    margin: 7px 0 9px;
    color: var(--archive-ink);
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 730;
    letter-spacing: -0.025em;
}
.collection-card p, .collection-panel p, .collection-panel li { color: #4b5565; line-height: 1.68; }

.project-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px 0 0;
    overflow: hidden;
    border: 1px solid var(--archive-line);
    border-radius: 14px;
    background: white;
}
.summary-item { padding: 18px 20px; border-right: 1px solid var(--archive-line); }
.summary-item:last-child { border-right: 0; }
.summary-label { display: block; color: var(--archive-muted); font-size: 0.72rem; font-weight: 760; letter-spacing: 0.07em; text-transform: uppercase; }
.summary-value { display: block; margin-top: 5px; color: var(--archive-ink); font-weight: 720; }

.chapter-list { display: grid; gap: 10px; }
.chapter-row {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid rgba(183, 138, 69, 0.3);
    border-radius: 12px;
    background: linear-gradient(100deg, #fffdf7 0%, #ffffff 55%, #f4f7fb 100%);
    box-shadow: 0 5px 16px rgba(16, 35, 63, 0.055);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.chapter-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--archive-navy), var(--archive-gold));
}
.chapter-row:hover {
    transform: translateX(3px);
    border-color: rgba(183, 138, 69, 0.65);
    background: linear-gradient(100deg, #fff9eb 0%, #ffffff 58%, #edf3f9 100%);
    box-shadow: 0 10px 24px rgba(16, 35, 63, 0.11);
}
.chapter-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(183, 138, 69, 0.72);
    border-radius: 9px;
    background: var(--archive-navy);
    color: #f1d49a;
    font-size: 0.88rem;
    font-weight: 800;
}
.chapter-copy { min-width: 0; }
.chapter-row h3 { margin: 0; color: var(--archive-navy); font-family: "Roboto Slab", Georgia, serif; font-size: 1.03rem; font-weight: 600; line-height: 1.35; }
.chapter-action { color: var(--archive-gold); font-size: 1.5rem; font-weight: 900; line-height: 1; white-space: nowrap; transition: transform 180ms ease; }
.chapter-row:hover .chapter-action { transform: translateX(3px); }

.credit-box {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #e8e0d8;
    border-radius: 16px;
    background: #ffffff;
    color: #4e402c;
    line-height: 1.65;
}
.credit-label { display: block; margin-bottom: 4px; color: #0f2f8c; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.credit-box strong { display: block; color: #2f261a; }
.credit-box p { margin: 5px 0 0; color: #66563f; }

/* Series landing pages use a lighter, editorial layout instead of stacked boxes. */
.series-landing { width: min(1080px, calc(100% - 40px)); }
.series-landing .collection-hero {
    padding-top: 34px;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(139, 111, 71, 0.22);
}
.series-landing .collection-title { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.series-hero-about {
    max-width: 720px;
    margin: 24px auto 0;
}
.series-hero-about h2 {
    margin: 0 0 7px;
    color: var(--archive-blue);
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.series-hero-about p {
    margin: 0;
    color: #536070;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 1.02rem;
    line-height: 1.65;
}
.series-hero-author {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 17px auto 0;
    color: #566273;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.94rem;
}
.series-hero-author span { color: var(--archive-blue); font-size: inherit; font-weight: 700; letter-spacing: 0; }
.series-hero-author strong { color: var(--archive-ink); font-weight: 700; }
.series-landing .collection-badges,
.volume-landing .collection-badges { margin-top: 18px; }
.series-landing .collection-badges,
.volume-landing .collection-badges {
    gap: 0;
    align-items: center;
}
.series-landing .collection-badge,
.volume-landing .collection-badge {
    position: relative;
    padding: 3px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #526176;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.035em;
    text-transform: none;
}
.series-landing .collection-badge + .collection-badge::before,
.volume-landing .collection-badge + .collection-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--archive-gold);
    transform: translate(-50%, -50%);
}
.volume-landing { width: min(1080px, calc(100% - 40px)); }
.volume-landing .collection-hero { padding-bottom: 38px; }
.volume-hero-description {
    max-width: 760px;
    margin: 24px auto 0;
    color: #536070;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 1.02rem;
    line-height: 1.68;
}
.series-landing .credit-box {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 9px 15px;
    align-items: baseline;
    margin-top: 24px;
    padding: 0 0 22px;
    border: 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.18);
    border-radius: 0;
    background: transparent;
}
.series-landing .credit-label { margin: 0; }
.series-landing .credit-box strong { color: var(--archive-ink); }
.series-landing .credit-box p { margin: 0; color: #667085; }
.series-landing .collection-panel {
    padding: 4px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.series-landing .collection-panel h2 { margin-bottom: 12px; }
.series-landing .collection-panel p {
    max-width: 820px;
    margin: 0;
    color: #4f5b6b;
    font-size: 1.05rem;
    line-height: 1.75;
}
.series-landing .collection-grid { grid-template-columns: 1fr; gap: 0; margin-top: 4px; }
.series-landing .collection-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 25px;
    align-items: center;
    padding: 28px 0;
    border: 0;
    border-top: 1px solid rgba(36, 79, 127, 0.13);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.series-landing .collection-card:last-child { border-bottom: 1px solid rgba(36, 79, 127, 0.13); }
.series-landing .collection-card:hover {
    transform: translateX(4px);
    border-color: rgba(36, 79, 127, 0.32);
    box-shadow: none;
}
.series-landing .collection-card h3 { margin: 7px 0 7px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.3; }
.series-landing .collection-card p { margin: 0; color: #667085; }
.volume-cover {
    display: grid;
    place-items: center;
    width: 86px;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(5, 16, 33, 0.34)),
        linear-gradient(145deg, var(--archive-blue), var(--archive-navy));
    color: #d2ae70;
    box-shadow: 0 8px 18px rgba(16, 35, 63, 0.16);
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
}
.collection-card-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    color: var(--archive-gold);
    font-size: 1.7rem;
    font-weight: 800;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.series-landing .collection-card:hover .collection-card-arrow { transform: translateX(3px); background: transparent; color: var(--archive-gold); }
.series-volumes-section {
    margin-top: 34px;
    padding: 34px 40px 38px;
    border: 0;
    border-top: 4px solid var(--archive-gold);
    border-radius: 0;
    background:
        radial-gradient(circle at 96% 8%, rgba(36, 79, 127, 0.09), transparent 30%),
        linear-gradient(145deg, #ffffff 0%, #fbfcfd 64%, #f2f6f9 100%);
    box-shadow: 0 13px 32px rgba(23, 32, 51, 0.065);
}
.series-volumes-section .collection-section-header { margin-bottom: 18px; }
.series-volumes-section .collection-section-header h2 { color: var(--archive-navy); }

/* Main collections library: cinematic, cover-led tiles. */
.collections-library { width: min(1180px, calc(100% - 40px)); }
.collections-library .collection-hero { padding-bottom: 34px; }
.collections-library .collection-section { margin-top: 34px; }
.collections-poster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 32px 24px;
    margin-top: 20px;
}
.collection-poster { display: block; min-width: 0; color: inherit; text-decoration: none; }
.collection-poster-art {
    --collection-cover: none;
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 13px;
    background-image:
        linear-gradient(180deg, rgba(6, 18, 36, 0.02) 20%, rgba(6, 18, 36, 0.92) 100%),
        var(--collection-cover),
        linear-gradient(135deg, #244f7f 0%, #10233f 56%, #091628 100%);
    background-position: center;
    background-size: cover;
    box-shadow: 0 11px 24px rgba(16, 35, 63, 0.18);
    transition: transform 210ms ease, box-shadow 210ms ease;
}
.collection-poster-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.07) 46.2% 46.8%, transparent 47%);
    pointer-events: none;
}
.collection-poster:hover .collection-poster-art { transform: translateY(-5px) scale(1.012); box-shadow: 0 18px 34px rgba(16, 35, 63, 0.25); }
.collection-poster-mark {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 5.5rem;
    font-weight: 600;
    letter-spacing: -0.08em;
    line-height: 1;
    white-space: nowrap;
}
.collection-poster-mark span:first-child { color: rgba(255, 255, 255, 0.78); }
.collection-poster-mark span:last-child { color: #d13b45; }
.collection-poster-type {
    position: absolute;
    top: 17px;
    left: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.collection-poster-copy { position: absolute; right: 20px; bottom: 24px; left: 20px; text-align: center; }
.collection-poster-copy h3 {
    margin: 0;
    color: white;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.collection-poster-copy p { margin: 7px 0 0; color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; }
.collection-poster-meta { padding: 13px 3px 0; text-align: center; }
.collection-poster-meta strong { display: block; color: var(--archive-ink); font-size: 0.98rem; }
.collection-poster-meta span { display: block; margin-top: 3px; color: var(--archive-muted); font-size: 0.82rem; }
.language-availability {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}
.language-availability span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    padding: 4px 9px;
    border: 1px solid #cddae5;
    border-radius: 999px;
    background: rgba(237, 243, 248, 0.9);
    color: #254d75;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
}
.series-language-availability { margin-top: 15px; }
.series-language-availability span {
    min-height: 27px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(39, 78, 116, 0.22);
}
.collection-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 auto 22px;
    padding: 4px;
    border: 1px solid rgba(139, 111, 71, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
}
.collection-language-switcher a {
    min-width: 88px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #596579;
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}
.collection-language-switcher a:hover { color: var(--archive-blue); }
.collection-language-switcher a[aria-current="page"] {
    background: var(--archive-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(23, 63, 112, 0.18);
}

.editorial-note {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 3px solid #8295aa;
    background: #eef2f6;
    color: #455468;
    line-height: 1.65;
}

.research-details {
    margin-top: 28px;
    border: 1px solid var(--archive-line);
    border-radius: 12px;
    background: white;
}
.research-details summary {
    padding: 17px 20px;
    cursor: pointer;
    color: var(--archive-ink);
    font-weight: 740;
    list-style-position: inside;
}
.research-details-content { padding: 0 20px 20px; color: #4b5565; line-height: 1.68; }

.source-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 19px;
    border: 1px solid var(--archive-line);
    border-radius: 12px;
    background: white;
    color: var(--archive-blue);
    text-decoration: none;
}
.source-link:hover { border-color: #9eb2c6; }
.source-meta { color: var(--archive-muted); font-size: 0.84rem; white-space: nowrap; }

.chapter-body {
    max-width: 900px;
    margin: 32px auto 0;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--archive-line);
    border-radius: 14px;
    background: white;
    color: #263142;
    font-family: Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.88;
}
.chapter-reader-layout {
    position: relative;
    display: block;
    margin-top: 32px;
}
.chapter-shell {
    width: min(calc(100% - 48px), 1760px);
}
.chapter-title-meta {
    width: fit-content;
    max-width: min(100%, 780px);
    margin: 18px auto 0;
    padding: 14px 26px 13px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.35));
    box-shadow: 0 8px 24px rgba(82, 70, 49, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.chapter-byline {
    width: fit-content;
    margin: 9px auto 0;
    color: #687386;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
    text-align: center;
}
.chapter-byline strong {
    color: #34445a;
    font-weight: 700;
}
.chapter-reader-main {
    width: min(100%, 900px);
    min-width: 0;
    margin: 0 auto;
}
.chapter-reader-main .chapter-body { margin-top: 0; }
.chapter-toc {
    position: absolute;
    top: 0;
    left: 0;
    width: 190px;
}
.chapter-toc-inner {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 18px 16px;
    border: 1px solid var(--archive-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}
.chapter-toc-label {
    display: block;
    margin-bottom: 18px;
    color: var(--archive-blue);
    font-family: Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.chapter-toc strong,
.chapter-mobile-toc-content strong {
    display: block;
    margin: 16px 0 8px;
    color: var(--archive-ink);
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
}
.chapter-toc ol,
.chapter-mobile-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.chapter-toc li + li,
.chapter-mobile-toc li + li { margin-top: 4px; }
.chapter-toc a,
.chapter-mobile-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 7px;
    color: #526071;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.84rem;
    line-height: 1.35;
    text-decoration: none;
}
.chapter-toc a:hover,
.chapter-toc a:focus-visible,
.chapter-mobile-toc a:hover,
.chapter-mobile-toc a:focus-visible {
    background: #edf3f8;
    color: var(--archive-blue);
    outline: none;
}
.chapter-toc a[aria-current="page"],
.chapter-mobile-toc a[aria-current="page"] {
    background: #e7eef5;
    color: var(--archive-blue);
    font-weight: 720;
}
.chapter-toc a span {
    display: block;
    margin-bottom: 2px;
    color: #778596;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.chapter-mobile-toc {
    display: none;
    margin-top: 26px;
    border: 1px solid var(--archive-line);
    border-radius: 11px;
    background: white;
}
.chapter-mobile-toc summary {
    padding: 15px 18px;
    color: var(--archive-blue);
    font-family: Inter, sans-serif;
    font-weight: 760;
    cursor: pointer;
}
.chapter-mobile-toc-content {
    padding: 0 12px 16px;
    border-top: 1px solid var(--archive-line);
}
.chapter-body h2 { scroll-margin-top: 112px; }
.chapter-media {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}
.chapter-media figure {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--archive-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}
.chapter-media img { display: block; width: 100%; height: auto; border-radius: 8px; }
.chapter-audio-copy { margin-bottom: 12px; font-family: "Source Sans 3", Inter, sans-serif; }
.chapter-audio-copy strong { color: var(--archive-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.chapter-media audio { display: none; }
.archive-audio-player {
    display: grid;
    grid-template-columns: 42px auto minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.archive-audio-toggle {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.archive-audio-toggle {
    width: 42px;
    height: 42px;
    background: var(--archive-blue);
    color: #fff;
    box-shadow: 0 5px 14px rgba(15, 47, 140, 0.18);
}
.archive-audio-toggle:hover { background: var(--archive-navy); }
.archive-audio-toggle span { margin-left: 2px; font-size: 0.87rem; line-height: 1; }
.archive-audio-time {
    color: #526176;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.archive-audio-progress {
    --audio-progress: 0%;
    width: 100%;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--archive-blue) 0 var(--audio-progress), rgba(15, 47, 140, 0.16) var(--audio-progress) 100%);
    cursor: pointer;
}
.archive-audio-progress::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--archive-gold);
    box-shadow: 0 1px 5px rgba(38, 38, 38, 0.25);
}
.archive-audio-progress::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--archive-gold);
    box-shadow: 0 1px 5px rgba(38, 38, 38, 0.25);
}
.chapter-media figcaption { margin-top: 10px; color: var(--archive-muted); font-size: 0.83rem; line-height: 1.5; }
.chapter-edition-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 3px solid rgba(15, 47, 140, 0.48);
    background: rgba(255, 255, 255, 0.48);
    color: #5d6877;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
}
.chapter-edition-note strong {
    display: block;
    margin-bottom: 3px;
    color: var(--archive-blue);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.chapter-edition-note p { margin: 0; }
.chapter-body p {
    margin: 0 0 1.5em;
}
.chapter-body p:last-child {
    margin-bottom: 0;
}
.chapter-body h2,
.chapter-body h3 {
    color: var(--archive-navy);
    font-family: "Roboto Slab", "Source Sans 3", serif;
    font-weight: 600;
    line-height: 1.25;
}
.chapter-body h2 {
    margin: 2.25em 0 0.8em;
    padding-top: 0.2em;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
}
.chapter-body h2:first-of-type {
    margin-top: 1.7em;
}
.chapter-body h3 {
    margin: 1.8em 0 0.7em;
}

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    max-width: 900px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--archive-line);
}
.chapter-nav > :last-child { text-align: right; }
.chapter-nav a { color: var(--archive-blue); font-weight: 730; text-decoration: none; }
.chapter-nav-link,
.chapter-nav-contents {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 2px;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.88rem;
}
.chapter-nav-contents { color: #657184 !important; font-weight: 650 !important; }
.empty-state { padding: 32px; text-align: center; color: var(--archive-muted); }

@media (max-width: 760px) {
    .collection-shell { width: min(100% - 28px, 1160px); padding-top: 22px; }
    .collection-hero { padding: 20px 8px 26px; }
    .collection-title { font-size: clamp(1.75rem, 8vw, 2.3rem); }
    .project-summary { grid-template-columns: 1fr; }
    .summary-item { border-right: 0; border-bottom: 1px solid var(--archive-line); }
    .summary-item:last-child { border-bottom: 0; }
    .collection-section { margin-top: 32px; }
    .collection-section-header { align-items: start; flex-direction: column; gap: 4px; }
    .chapter-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; }
    .chapter-number { width: 34px; height: 34px; }
    .source-link { align-items: flex-start; flex-direction: column; }
    .source-meta { white-space: normal; }
    .chapter-body { padding: 26px 22px; line-height: 1.78; }
    .chapter-body p { margin-bottom: 1.35em; }
    .chapter-body h2 { margin-top: 1.9em; }
    .series-landing .credit-box { grid-template-columns: 1fr; gap: 3px; }
    .series-landing .credit-box p { margin-top: 4px; }
    .series-landing .collection-card { grid-template-columns: 68px minmax(0, 1fr) auto; padding: 22px 0; gap: 14px; }
    .series-landing .collection-card h3 { font-size: 1.12rem; line-height: 1.38; }
    .series-landing .collection-card p { font-size: 0.87rem; line-height: 1.45; }
    .volume-cover { width: 68px; font-size: 1.75rem; }
    .collection-card-arrow { width: 22px; }
    .series-volumes-section { padding: 25px 22px 28px; border-radius: 0; }
    .collections-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .collection-poster-art { border-radius: 12px; }
    .collection-poster-type { top: 13px; left: 13px; font-size: 0.56rem; }
    .collection-poster-mark { top: 46%; left: 50%; font-size: clamp(3.2rem, 16vw, 4.5rem); }
    .collection-poster-copy { right: 13px; bottom: 16px; left: 13px; }
    .collection-poster-copy h3 { font-size: clamp(1rem, 5vw, 1.3rem); }
    .collection-poster-copy p { font-size: 0.72rem; line-height: 1.3; }
    .collection-poster-meta { padding-top: 9px; }
    .collection-poster-meta strong { font-size: 0.85rem; line-height: 1.25; }
    .collection-poster-meta span { font-size: 0.72rem; }
    .chapter-media figure { padding: 16px; }
    .archive-audio-player { grid-template-columns: 40px auto minmax(80px, 1fr) auto; gap: 9px; }
    .archive-audio-toggle { width: 40px; height: 40px; }
    .chapter-nav { grid-template-columns: 1fr 1fr; }
    .chapter-nav-contents { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .chapter-nav > :last-child { text-align: left; }
    .chapter-nav > :last-child { text-align: right; }
}

@media (max-width: 1450px) {
    .chapter-reader-layout { display: block; margin-top: 22px; }
    .chapter-toc { display: none; }
    .chapter-mobile-toc { display: block; }
}

@media (max-width: 760px) {
    .chapter-shell { width: min(100% - 28px, 1440px); }
    .chapter-title-meta { width: 100%; padding: 13px 16px 12px; }
}
