/* =========================================================
   Children Voices Journey Redesign v0.2
   Scope: /voices/children/ only
   Concept: Notebook x Voice Journey
   ========================================================= */
.children-voices-page {
    --cv-ink: #17243a;
    --cv-text: #334155;
    --cv-muted: #64748b;
    --cv-accent: #0d7c73;
    --cv-accent-dark: #095f59;
    --cv-line: #d9e5e3;
    --cv-paper: #fffefa;
    --cv-blue: #eaf6fb;
    --cv-blue-accent: #256f8a;
    --cv-mint: #edf8f1;
    --cv-mint-accent: #2f7654;
    --cv-yellow: #fff8df;
    --cv-yellow-accent: #8a5a00;
    --cv-orange: #fff0e4;
    --cv-orange-accent: #9a4b22;
    --cv-shadow: 0 18px 48px rgba(23, 36, 58, .08);
    overflow: clip;
    background: #fff;
    color: var(--cv-text);
}

.children-voices-page *,
.children-voices-page *::before,
.children-voices-page *::after { box-sizing: border-box; }

.cv-shell {
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
}

/* Hero ---------------------------------------------------- */
.cv-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(4.9rem, 7vw, 6.8rem) 0 clamp(4.1rem, 6vw, 5.5rem);
    overflow: hidden;
    border-bottom: 1px solid var(--cv-line);
    background:
        radial-gradient(circle at 82% 20%, rgba(89, 177, 184, .17), transparent 21rem),
        radial-gradient(circle at 95% 86%, rgba(241, 165, 77, .13), transparent 19rem),
        radial-gradient(circle at 8% 92%, rgba(105, 164, 202, .08), transparent 18rem),
        linear-gradient(145deg, #fffefa 0%, #f6fbfa 56%, #f4f9fc 100%);
}

.cv-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .26;
    background-image: repeating-linear-gradient(
        0deg,
        transparent 0 31px,
        rgba(23, 36, 58, .05) 31px 32px
    );
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0, rgba(0,0,0,.52) 68%, transparent 100%);
}

.cv-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: clamp(8rem, 16vw, 12rem);
    right: clamp(-6rem, -3vw, -2rem);
    width: clamp(17rem, 34vw, 30rem);
    aspect-ratio: 1;
    border: 1px solid rgba(13, 124, 115, .10);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 clamp(2.8rem, 6vw, 5.5rem) rgba(255,255,255,.18),
        0 0 0 clamp(1rem, 2vw, 2rem) rgba(13, 124, 115, .025);
    pointer-events: none;
}

.cv-breadcrumb { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.cv-breadcrumb a:focus-visible {
    outline: 3px solid rgba(13, 124, 115, .34);
    outline-offset: 4px;
    border-radius: 4px;
}

.cv-hero-layout {
    display: block;
    position: relative;
}

.cv-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.cv-nav-title,
.cv-teacher-note-head > span,
.cv-closing-copy > span {
    display: block;
    color: var(--cv-accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.cv-hero h1 {
    margin: 0;
    color: var(--cv-accent-dark);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.cv-hero-statement {
    margin: clamp(1.15rem, 2vw, 1.6rem) 0 0;
    color: var(--cv-ink);
    font-size: clamp(2.75rem, 5.2vw, 4.85rem);
    font-weight: 950;
    line-height: 1.24;
    letter-spacing: -.045em;
}

.cv-statement-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

.cv-statement-line + .cv-statement-line { margin-top: .12em; }

.cv-hero-statement mark {
    position: relative;
    display: inline;
    padding: 0 .04em;
    color: inherit;
    background: none;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.cv-word-before {
    background-image: linear-gradient(transparent 69%, rgba(84, 153, 183, .18) 69% 91%, transparent 91%) !important;
}

.cv-word-after {
    background-image: linear-gradient(transparent 66%, rgba(242, 162, 63, .28) 66% 92%, transparent 92%) !important;
}

.cv-hero-substatement {
    max-width: 720px;
    margin: clamp(1.5rem, 3vw, 2.1rem) 0 0;
    color: #304157;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 850;
    line-height: 1.58;
    letter-spacing: -.018em;
    text-wrap: balance;
}

.cv-hero-note {
    max-width: 620px;
    margin: clamp(1.15rem, 2.2vw, 1.55rem) 0 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(13, 124, 115, .30);
    color: #5c6878;
    font-size: clamp(.94rem, 1.25vw, 1.04rem);
    font-weight: 600;
    line-height: 1.8;
}

/* Journey navigation ------------------------------------- */
.cv-journey-nav {
    border-bottom: 1px solid var(--cv-line);
    background: #fff;
}

.cv-journey-nav .cv-shell { padding-block: 1.45rem 1.6rem; }
.cv-nav-title { margin: 0 0 .85rem; }

.cv-journey-nav ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-journey-nav a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .72rem;
    align-items: center;
    min-height: 58px;
    padding: .65rem .8rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.cv-journey-nav a > span {
    color: var(--cv-accent);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .06em;
}

.cv-journey-nav a > strong {
    color: #2f4054;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.45;
}

.cv-journey-nav a:hover {
    border-color: #dceae7;
    background: #f7fbfa;
}

.cv-journey-nav a:focus-visible {
    outline: 3px solid rgba(13, 124, 115, .34);
    outline-offset: 2px;
}

/* Chapters ------------------------------------------------ */
.cv-journey { background: #fff; }

.cv-chapter {
    --chapter-bg: #f7fbfd;
    --chapter-accent: var(--cv-blue-accent);
    position: relative;
    scroll-margin-top: 88px;
    padding: clamp(4.8rem, 8vw, 7.3rem) 0;
    overflow: hidden;
    background: var(--chapter-bg);
}

.cv-chapter + .cv-chapter { border-top: 1px solid rgba(23, 36, 58, .07); }
.cv-chapter--01 { --chapter-bg: var(--cv-blue); --chapter-accent: var(--cv-blue-accent); }
.cv-chapter--02 { --chapter-bg: var(--cv-mint); --chapter-accent: var(--cv-mint-accent); }
.cv-chapter--03 { --chapter-bg: var(--cv-yellow); --chapter-accent: var(--cv-yellow-accent); }
.cv-chapter--04 { --chapter-bg: var(--cv-orange); --chapter-accent: var(--cv-orange-accent); }

.cv-chapter::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image: repeating-linear-gradient(
        0deg,
        transparent 0 34px,
        rgba(23, 36, 58, .045) 34px 35px
    );
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    pointer-events: none;
}

.cv-chapter .cv-shell { position: relative; z-index: 1; }

.cv-chapter-head {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: clamp(1.1rem, 3vw, 2rem);
    align-items: center;
    max-width: 860px;
    margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.cv-chapter-number {
    color: var(--chapter-accent);
    font-size: clamp(4.8rem, 9vw, 7rem);
    font-weight: 950;
    line-height: .8;
    letter-spacing: -.08em;
    opacity: .26;
}


.cv-chapter-head h2 {
    margin: .55rem 0 0;
    color: var(--cv-ink);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.cv-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.45rem);
    align-items: stretch;
}

.cv-voice-note {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 250px;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.15rem) clamp(1.45rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.9rem) clamp(2.15rem, 4vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(23, 36, 58, .10);
    border-radius: 20px;
    background:
        linear-gradient(rgba(255, 254, 250, .96), rgba(255, 254, 250, .96)),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 36, 58, .08) 31px 32px);
    box-shadow: 0 12px 34px rgba(23, 36, 58, .055);
}

.cv-voice-note:nth-child(3) {
    grid-column: 1 / -1;
    width: min(72%, 720px);
    min-height: 220px;
    justify-self: center;
}

.cv-voice-note::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.15rem;
    width: 3px;
    background: var(--chapter-accent);
    opacity: .45;
}

.cv-voice-note::after {
    content: "";
    position: absolute;
    top: 18px;
    left: .52rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(23, 36, 58, .11);
    box-shadow: 0 28px 0 rgba(23,36,58,.11), 0 56px 0 rgba(23,36,58,.11);
}

.cv-note-index {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 1.15rem;
    color: var(--chapter-accent);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .10em;
}

.cv-voice-note blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #26364a;
    font-size: clamp(1.02rem, 1.55vw, 1.16rem);
    font-weight: 680;
    line-height: 1.95;
    letter-spacing: .005em;
    text-wrap: pretty;
}

.cv-voice-note blockquote::before {
    content: "「";
    color: var(--chapter-accent);
    font-weight: 950;
}

.cv-voice-note blockquote::after {
    content: "」";
    color: var(--chapter-accent);
    font-weight: 950;
}

.cv-voice-note figcaption {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-top: 1.45rem;
    padding: .46rem .72rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--chapter-accent) 10%, #fff 90%);
    color: #36475a;
    font-size: .78rem;
    font-weight: 850;
}

/* Teacher note ------------------------------------------- */
.cv-teacher-note {
    padding: clamp(5rem, 8vw, 7.5rem) 0;
    background: #f8faf9;
}

.cv-teacher-note-sheet {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid #dce7e5;
    border-radius: 28px;
    background:
        linear-gradient(rgba(255, 254, 250, .96), rgba(255, 254, 250, .96)),
        repeating-linear-gradient(0deg, transparent 0 35px, rgba(23, 36, 58, .07) 35px 36px);
    box-shadow: var(--cv-shadow);
}

.cv-teacher-note-sheet::before {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(1.5rem, 4vw, 3.5rem);
    width: 76px;
    height: 22px;
    border-radius: 0 0 6px 6px;
    background: rgba(13, 124, 115, .12);
}

.cv-teacher-note-head { max-width: 760px; }
.cv-teacher-note-head h2 {
    margin: .7rem 0 0;
    color: var(--cv-ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.cv-principles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1.2rem;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}

.cv-principles-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    min-height: 64px;
    padding: .7rem .9rem;
    border-bottom: 1px solid #dfe9e7;
}

.cv-principles-list li > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e8f5f2;
    color: var(--cv-accent-dark);
    font-size: .9rem;
    font-weight: 950;
}

.cv-principles-list p {
    margin: 0;
    color: #2d3e52;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 800;
    line-height: 1.65;
}

/* Closing / conversion ----------------------------------- */
.cv-closing {
    padding: clamp(4.8rem, 8vw, 7rem) 0 clamp(6rem, 9vw, 8rem);
    background: #fff;
}

.cv-closing-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid #dce7e5;
    border-radius: 30px;
    background: linear-gradient(135deg, #f1faf7 0%, #fff9ef 100%);
}

.cv-closing-copy h2 {
    margin: .7rem 0 0;
    max-width: 700px;
    color: var(--cv-ink);
    font-size: clamp(1.8rem, 3.7vw, 2.9rem);
    font-weight: 950;
    line-height: 1.45;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.cv-closing-copy p {
    margin: 1rem 0 0;
    color: #536174;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.8;
}

.cv-consult-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 76px;
    padding: 1.15rem 1.3rem 1.15rem 1.55rem;
    border-radius: 18px;
    background: var(--cv-ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(23, 36, 58, .16);
}

.cv-consult-cta strong { font-size: 1.12rem; font-weight: 950; }
.cv-consult-cta > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--cv-ink);
    font-size: 1.05rem;
}

.cv-consult-cta:hover { background: #223450; }
.cv-consult-cta:focus-visible {
    outline: 3px solid rgba(13, 124, 115, .42);
    outline-offset: 4px;
}

.cv-next-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding-top: .2rem;
}

.cv-next-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    min-height: 58px;
    padding: .85rem 1rem;
    border-bottom: 1px solid #cddbd8;
    color: #2f4054;
    font-size: .92rem;
    font-weight: 850;
    text-decoration: none;
}

.cv-next-links b { color: var(--cv-accent); font-size: 1rem; }
.cv-next-links a:hover { color: var(--cv-accent-dark); border-color: var(--cv-accent); }
.cv-next-links a:focus-visible {
    outline: 3px solid rgba(13, 124, 115, .34);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: no-preference) {
    .cv-journey-nav a,
    .cv-consult-cta,
    .cv-next-links a { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
    .cv-consult-cta:hover { transform: translateY(-2px); }
}

@media (max-width: 900px) {
    .cv-shell { width: min(760px, calc(100% - 36px)); }
    .cv-note-grid { grid-template-columns: 1fr; }
    .cv-voice-note:nth-child(3) { grid-column: auto; width: 100%; }
    .cv-principles-list { grid-template-columns: 1fr; }
    .cv-closing-panel { grid-template-columns: 1fr; }
    .cv-consult-cta { width: min(100%, 380px); }
}

@media (max-width: 767px) {
    .cv-shell { width: min(620px, calc(100% - 32px)); }
    .cv-hero { padding-top: 4.55rem; padding-bottom: 3.9rem; }
    .cv-hero::after {
        top: 10.5rem;
        right: -9rem;
        width: 20rem;
        opacity: .72;
    }
    .cv-breadcrumb { margin-bottom: 1.9rem; }
    .cv-hero h1 { font-size: 1.5rem; }
    .cv-hero-statement {
        margin-top: 1.05rem;
        font-size: clamp(2.15rem, 8.1vw, 2.8rem);
        line-height: 1.3;
        letter-spacing: -.04em;
    }
    .cv-hero-substatement {
        margin-top: 1.45rem;
        font-size: clamp(1.22rem, 5.2vw, 1.55rem);
        line-height: 1.6;
    }
    .cv-hero-note {
        max-width: 34rem;
        margin-top: 1.15rem;
        font-size: .94rem;
        line-height: 1.75;
    }

    .cv-journey-nav .cv-shell { padding-block: 1.3rem; }
    .cv-journey-nav ol { grid-template-columns: 1fr; gap: .15rem; }
    .cv-journey-nav a { min-height: 50px; padding: .45rem .35rem; border-radius: 8px; }

    .cv-chapter { scroll-margin-top: 74px; padding: 4.3rem 0 4.8rem; }
    .cv-chapter::before { opacity: .30; }
    .cv-chapter-head { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; margin-bottom: 1.9rem; }
    .cv-chapter-number { font-size: 4.1rem; }
    .cv-chapter-head h2 { font-size: clamp(1.55rem, 7.2vw, 2.15rem); }

    .cv-note-grid { gap: .9rem; }
    .cv-voice-note,
    .cv-voice-note:nth-child(3) {
        min-height: 0;
        padding: 1.35rem 1.2rem 1.25rem 2rem;
        border-radius: 17px;
    }
    .cv-voice-note::before { left: .9rem; width: 2px; }
    .cv-voice-note::after { left: .38rem; }
    .cv-note-index { margin-bottom: .85rem; }
    .cv-voice-note blockquote { font-size: 1rem; line-height: 1.9; }
    .cv-voice-note figcaption { margin-top: 1.15rem; }

    .cv-teacher-note { padding: 4.5rem 0; }
    .cv-teacher-note-sheet { padding: 1.6rem 1.35rem; border-radius: 22px; }
    .cv-teacher-note-sheet::before { right: 1.3rem; width: 58px; height: 17px; }
    .cv-principles-list { margin-top: 1.6rem; gap: .2rem; }
    .cv-principles-list li { min-height: 58px; padding-inline: .2rem; }

    .cv-closing { padding: 4.5rem 0 5.8rem; }
    .cv-closing-panel { gap: 1.7rem; padding: 1.6rem 1.3rem; border-radius: 22px; }
    .cv-closing-copy h2 { font-size: clamp(1.55rem, 7vw, 2.1rem); }
    .cv-consult-cta { width: 100%; min-height: 70px; }
    .cv-next-links { grid-template-columns: 1fr; gap: .25rem; }
}


@media (max-width: 420px) {
    .cv-hero-statement { font-size: 1.85rem; }
}

@media (max-width: 340px) {
    .cv-hero-statement { font-size: 1.70rem; }
}

@media (max-width: 380px) {
    .cv-shell { width: calc(100% - 24px); }
    .cv-hero h1 { font-size: 1.4rem; }
    .cv-hero-substatement { font-size: 1.18rem; }
    .cv-chapter-head { grid-template-columns: 58px minmax(0, 1fr); }
    .cv-chapter-number { font-size: 3.5rem; }
    .cv-voice-note,
    .cv-voice-note:nth-child(3) { padding-right: 1rem; }
    .cv-consult-cta { padding-left: 1.15rem; }
}
