/**
 * Print-friendly name worksheets (browser) — large type, generous touch targets, PreK–1.
 * Used by worksheets/partials/*.php (all keys except styles live in partials).
 */

.cnt-wv-sheet {
    /* Handwriting geometry — keep in sync with cnt-trace-detail.css + WorksheetPdfService::pdfHandwritingGuides */
    --cnt-hw-asc-y: 24%;
    --cnt-hw-mid-y: 50%;
    --cnt-hw-desc-y: 76%;
    --cnt-hw-dot-strong: rgba(51, 65, 85, 0.52);
    --cnt-hw-dot-soft: rgba(51, 65, 85, 0.3);
    --wv-ink: rgba(15, 23, 42, 0.88);
    --wv-muted: rgba(15, 23, 42, 0.55);
    --wv-guide: rgba(15, 23, 42, 0.22);
    --wv-guide-soft: rgba(15, 23, 42, 0.12);
    --wv-paper: #fffefc;
    --wv-accent: #581c87;
    max-width: 720px;
    margin: 0 auto;
    background: var(--wv-paper);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.35rem 1.5rem;
}

@media (min-width: 768px) {
    .cnt-wv-sheet {
        padding: 1.75rem 2rem 2rem;
    }
}

.cnt-wv-name-line {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--wv-muted);
    text-align: center;
    margin-bottom: 0.35rem;
}

.cnt-wv-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wv-accent);
    text-align: center;
    margin-bottom: 0.25rem;
}

.cnt-wv-title {
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    color: var(--wv-ink);
    margin: 0 0 0.5rem;
}

.cnt-wv-lead {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.55;
    color: var(--wv-muted);
    text-align: center;
    margin: 0 0 1.25rem;
}

.cnt-wv-foot {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
    font-size: 0.82rem;
    color: var(--wv-muted);
    text-align: center;
}

/* Raleway Dots tracing — print capture + pencil need clean edges */
.cnt-wv-dots {
    font-family: "Raleway Dots", cursive;
    font-weight: 400;
    letter-spacing: 0.035em;
    color: rgba(26, 32, 58, 0.94);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    font-feature-settings: "liga" 0, "clig" 0;
}

.cnt-wv-dots-lg {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    line-height: 1;
}

.cnt-wv-dots-md {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    line-height: 1.05;
}

.cnt-wv-dots-sm {
    font-size: clamp(1.15rem, 3vw, 1.85rem);
    line-height: 1.1;
}

/* Trace row: round-dot guides (even spacing in print + html2canvas; matches PDF triple lines) */
.cnt-wv-trace-row {
    position: relative;
    min-height: clamp(92px, 18vw, 124px);
    margin-bottom: 0.65rem;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.cnt-wv-trace-row::before,
.cnt-wv-trace-row::after {
    content: "";
    position: absolute;
    left: clamp(0.45rem, 1.4vw, 0.9rem);
    right: clamp(0.45rem, 1.4vw, 0.9rem);
    height: 3px;
    margin-top: -1px;
    pointer-events: none;
    border: none;
    background-repeat: repeat-x;
    background-size: 5px 3px;
    background-position: 0 50%;
}

.cnt-wv-trace-row::before {
    top: var(--cnt-hw-asc-y);
    background-image: radial-gradient(circle at 50% 50%, var(--cnt-hw-dot-strong) 0.72px, transparent 1.08px);
}

.cnt-wv-trace-row::after {
    top: var(--cnt-hw-desc-y);
    background-image: radial-gradient(circle at 50% 50%, var(--cnt-hw-dot-strong) 0.72px, transparent 1.08px);
}

.cnt-wv-trace-row .cnt-wv-band {
    position: absolute;
    left: clamp(0.45rem, 1.4vw, 0.9rem);
    right: clamp(0.45rem, 1.4vw, 0.9rem);
    top: var(--cnt-hw-mid-y);
    height: 3px;
    margin-top: -1px;
    border: none;
    pointer-events: none;
    background-image: radial-gradient(circle at 50% 50%, var(--cnt-hw-dot-soft) 0.65px, transparent 1px);
    background-repeat: repeat-x;
    background-size: 5px 3px;
    background-position: 0 50%;
}

.cnt-wv-trace-row .cnt-wv-trace-target {
    position: absolute;
    top: var(--cnt-hw-asc-y);
    right: clamp(0.45rem, 1.5vw, 1rem);
    bottom: calc(100% - var(--cnt-hw-desc-y));
    left: clamp(0.45rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

/* Letter box grid */
.cnt-wv-box-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin: 0.5rem 0 0.25rem;
}

.cnt-wv-box {
    width: clamp(3.5rem, 12vw, 4.75rem);
    height: clamp(4rem, 13vw, 5.25rem);
    border: 2px solid rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

.cnt-wv-box::before,
.cnt-wv-box::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    margin-top: -1px;
    border: none;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 4px 2px;
    background-position: 0 50%;
    background-image: radial-gradient(circle at 50% 50%, var(--cnt-hw-dot-soft) 0.6px, transparent 0.95px);
}

.cnt-wv-box::before {
    top: var(--cnt-hw-asc-y);
}

.cnt-wv-box::after {
    top: var(--cnt-hw-desc-y);
}

.cnt-wv-box .cnt-wv-dots {
    position: relative;
    z-index: 1;
}

/* Phonics two-line hero */
.cnt-wv-phonics-block {
    text-align: center;
    margin-bottom: 1.25rem;
}

.cnt-wv-phonics-line {
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.35rem, 4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.35;
    color: var(--wv-ink);
    margin: 0.35rem 0;
}

.cnt-wv-phonics-line .cnt-wv-letter {
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    color: var(--wv-accent);
    line-height: 1;
    vertical-align: -0.12em;
}

/* Vocabulary cards */
.cnt-wv-vocab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .cnt-wv-vocab-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cnt-wv-vocab-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    text-align: center;
}

.cnt-wv-vocab-card .cnt-wv-art {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.cnt-wv-vocab-card .cnt-wv-art svg {
    max-width: 100%;
    max-height: 130px;
    height: auto;
}

/* Alphabet match */
.cnt-wv-az-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    user-select: none;
    margin: 0.75rem 0;
}

.cnt-wv-az {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    background: #fff;
    border: 2px solid rgba(15, 23, 42, 0.12);
    color: var(--wv-ink);
}

.cnt-wv-az.cnt-wv-az--in-name {
    border-color: rgba(124, 77, 255, 0.55);
    background: rgba(124, 77, 255, 0.08);
    color: var(--wv-accent);
    box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.15);
}

/* Numbers row */
.cnt-wv-num-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 1rem 0;
    max-width: 100%;
}

.cnt-wv-num-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid rgba(15, 23, 42, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    font-weight: 800;
}

.cnt-wv-num-cell .cnt-wv-dots {
    font-size: clamp(1rem, 2.8vw, 1.45rem);
}

/* Counting shapes */
.cnt-wv-shapes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1rem 0;
}

.cnt-wv-shape {
    width: clamp(3.25rem, 10vw, 4.5rem);
    height: clamp(3.25rem, 10vw, 4.5rem);
    border-radius: 50%;
    border: 3px dashed rgba(124, 77, 255, 0.45);
    background: rgba(255, 193, 7, 0.12);
}

/* Case compare — studio layout (matches phonics / vocab rhythm) */
.cnt-wv-case-studio {
    display: grid;
    gap: 1.2rem;
    margin-top: 0.35rem;
}

@media (min-width: 768px) {
    .cnt-wv-case-studio {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.cnt-wv-panel--case .cnt-wv-panel-hd {
    text-align: center;
}

.cnt-wv-case-sample {
    margin: 0 0 0.65rem;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.65rem, 4.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--wv-ink);
    text-align: center;
    letter-spacing: 0.02em;
}

.cnt-wv-case-sample--upper {
    letter-spacing: 0.06em;
}

.cnt-wv-case-sample--lower {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.cnt-wv-panel-tip--case {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.86rem;
}

.cnt-wv-name-trace-stack--case {
    gap: 0.5rem;
}

.cnt-wv-trace-row--case-col {
    min-height: clamp(82px, 12vw, 108px);
    margin-bottom: 0;
}

.cnt-wv-panel--case-finish {
    margin-top: 1.35rem;
}

/* First letter spotlight */
.cnt-wv-spotlight {
    text-align: center;
    margin: 0.5rem 0 1.25rem;
}

.cnt-wv-spotlight-letter {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 22vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2.5px rgba(88, 28, 135, 0.92);
}

/* Check-me progression */
.cnt-wv-fade-1 {
    opacity: 0.35;
}

.cnt-wv-fade-2 {
    opacity: 0.65;
}

.cnt-wv-blank-line {
    border-bottom: 3px solid rgba(15, 23, 42, 0.14);
    min-height: 3.25rem;
    margin-top: 0.5rem;
}

/* —— Production layouts: phonics + vocabulary (browser sheet) —— */
.cnt-wv-sheet-head {
    text-align: center;
    margin: 0 auto 1.15rem;
    max-width: 40rem;
}

/* Strategy frame: exactly four beats (kicker → L for child → L for value → action). */
.cnt-wv-sheet-head--four {
    margin-bottom: 1.05rem;
}

.cnt-wv-sheet-head--four .cnt-wv-kicker {
    margin-bottom: 0.4rem;
}

.cnt-wv-sheet-head--four .cnt-wv-line {
    margin: 0;
}

.cnt-wv-sheet-head--four .cnt-wv-line--primary {
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.2rem, 3.2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--wv-ink);
}

.cnt-wv-sheet-head--four .cnt-wv-line--follow {
    margin-top: 0.35rem;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(0.98rem, 2.35vw, 1.14rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--wv-muted);
}

.cnt-wv-sheet-head--four .cnt-wv-line--follow .cnt-wv-line-key {
    color: var(--wv-accent);
    font-weight: 900;
}

.cnt-wv-sheet-head--four .cnt-wv-line--action {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.45;
    color: var(--wv-accent);
}

.cnt-wv-line-key {
    display: inline-block;
    min-width: 0.95em;
    text-align: center;
    font-weight: 900;
    color: var(--wv-accent);
}

.cnt-wv-line-for {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.45);
}

.cnt-wv-line-name {
    font-weight: 900;
    color: var(--wv-ink);
}

.cnt-wv-line-dot {
    color: rgba(15, 23, 42, 0.32);
    font-weight: 800;
    padding: 0 0.08em;
}

.cnt-wv-sheet-deck {
    margin: 0.35rem 0 0;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.62;
    font-weight: 500;
    color: var(--wv-muted);
}

.cnt-wv-sheet-deck strong {
    color: var(--wv-ink);
    font-weight: 800;
}

.cnt-wv-phonics-studio {
    display: grid;
    gap: 1.2rem;
    margin-top: 0.35rem;
}

@media (min-width: 768px) {
    .cnt-wv-phonics-studio {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.cnt-wv-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.3rem;
    background: linear-gradient(180deg, #ffffff 0%, #faf9fd 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 36px -20px rgba(15, 23, 42, 0.1);
}

.cnt-wv-panel-hd {
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wv-muted);
}

.cnt-wv-panel-tip {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--wv-muted);
}

.cnt-wv-panel--span {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.cnt-wv-panel--span .cnt-wv-panel-hd {
    border-bottom: none;
    padding-bottom: 0.4rem;
    margin-bottom: 0.65rem;
}

.cnt-wv-phonics-block--studio {
    margin-bottom: 0.85rem;
}

.cnt-wv-phonics-block--tight {
    margin-bottom: 0.5rem;
}

.cnt-wv-sheet--phonics .cnt-wv-phonics-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem 0.45rem;
}

.cnt-wv-phonics-line__rest {
    font-size: clamp(1.05rem, 3vw, 1.55rem);
    font-weight: 800;
    color: var(--wv-ink);
}

.cnt-wv-media-card {
    margin-top: 0.25rem;
}

.cnt-wv-media-card__caption {
    margin: 0.55rem 0 0;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--wv-ink);
}

.cnt-wv-art--framed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.cnt-wv-art--framed svg {
    max-width: 100%;
    max-height: 150px;
    height: auto;
}

.cnt-wv-art-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 170px;
    padding: 1rem;
    border-radius: 14px;
    border: 2px dashed rgba(88, 28, 135, 0.28);
    background: linear-gradient(160deg, rgba(124, 77, 255, 0.07) 0%, #ffffff 42%, #f8fafc 100%);
}

.cnt-wv-art-plate--sm {
    min-height: 128px;
    padding: 0.75rem;
}

.cnt-wv-art-plate__glyph {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 3.75rem);
    line-height: 1;
    color: rgba(76, 29, 149, 0.18);
    user-select: none;
}

.cnt-wv-art-plate__label {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--wv-ink);
}

.cnt-wv-trace-row--phonics {
    min-height: clamp(104px, 14vw, 138px);
    margin-bottom: 0;
}

.cnt-wv-trace-row--compact {
    min-height: 90px;
    margin-bottom: 0;
}

.cnt-wv-trace-target--compact {
    inset: 18% 0.45rem 18%;
}

.cnt-wv-trace-row--vocab-name {
    min-height: clamp(96px, 11vw, 118px);
    margin-bottom: 0.7rem;
}

.cnt-wv-trace-row--vocab-name:last-child {
    margin-bottom: 0;
}

.cnt-wv-vocab-studio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .cnt-wv-vocab-studio {
        grid-template-columns: 1fr 1fr;
        gap: 1.35rem;
    }
}

.cnt-wv-vocab-studio-card {
    position: relative;
    padding: 1.2rem 1.1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #faf9fc 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 38px -22px rgba(15, 23, 42, 0.11);
}

.cnt-wv-vocab-step {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: #fff;
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.35);
}

.cnt-wv-vocab-studio-card .cnt-wv-art--framed,
.cnt-wv-vocab-studio-card .cnt-wv-art-plate--sm {
    margin-top: 0.35rem;
}

.cnt-wv-vocab-studio-card__title {
    margin: 0.7rem 0 0.65rem;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.2rem, 3.2vw, 1.55rem);
    font-weight: 900;
    color: var(--wv-ink);
}

.cnt-wv-name-practice {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.cnt-wv-name-practice .cnt-wv-panel-hd {
    text-align: center;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

/* Initial phonics: stacked name lines (teacher expectation = several repetitions) */
.cnt-wv-name-trace-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.cnt-wv-name-trace-stack--wide {
    max-width: none;
    margin-top: 0.5rem;
}

.cnt-wv-trace-row--phonics-tight {
    min-height: clamp(88px, 11vw, 118px);
}

.cnt-wv-panel-tip--inline {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 0.75rem;
}

/* Emotional anchor: "{L} for child · {L} for anchor…" — every worksheet opens with the child centered */
.cnt-wv-heart-band {
    margin: 0 auto 1.1rem;
    max-width: 38rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.09) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(248, 250, 252, 1) 100%);
    border: 1px solid rgba(76, 29, 149, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
}

.cnt-wv-heart-band--soft {
    background: linear-gradient(180deg, rgba(253, 251, 255, 1) 0%, #ffffff 100%);
    border-color: rgba(15, 23, 42, 0.08);
}

.cnt-wv-heart-line {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--wv-ink);
    letter-spacing: -0.01em;
}

.cnt-wv-heart-pair {
    white-space: nowrap;
}

@media (max-width: 420px) {
    .cnt-wv-heart-pair {
        white-space: normal;
    }
}

.cnt-wv-heart-key {
    display: inline-block;
    min-width: 1.15em;
    text-align: center;
    font-weight: 900;
    color: var(--wv-accent);
}

.cnt-wv-heart-name {
    font-weight: 900;
    color: var(--wv-ink);
}

.cnt-wv-heart-dot {
    color: rgba(15, 23, 42, 0.35);
    font-weight: 800;
    padding: 0 0.1em;
}

.cnt-wv-heart-whisper {
    margin: 0;
    font-size: clamp(0.98rem, 2.2vw, 1.1rem);
    line-height: 1.55;
    font-weight: 600;
    color: var(--wv-muted);
}

.cnt-wv-heart-whisper .cnt-wv-heart-name {
    color: var(--wv-ink);
}

/* Classic worksheets: studio chrome without Bootstrap */
.cnt-wv-worksheet-section-hd {
    margin: 1.35rem 0 0.75rem;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--wv-muted);
}

.cnt-wv-block-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #fff;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 36px -20px rgba(15, 23, 42, 0.08);
    margin: 0 0 1rem;
}

.cnt-wv-sentence-headline {
    margin: 0 0 0.85rem;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.1rem, 2.8vw, 1.42rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    color: var(--wv-ink);
}

.cnt-wv-sentence-headline .cnt-wv-accent-name {
    color: var(--wv-accent);
    font-weight: 900;
}

.cnt-wv-trace-row--sentence {
    min-height: clamp(92px, 14vw, 118px);
    margin-bottom: 0;
}

.cnt-wv-spotlight-name {
    margin: 0.5rem 0 0;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    text-align: center;
    color: var(--wv-ink);
}

.cnt-wv-name-hero {
    margin: 0 0 1.1rem;
    text-align: center;
}

/*
 * worksheet_single.php — shell + variation grid are flex children in document order.
 * Direct children must not shrink (default min-height:auto lets flex items collapse to ~0
 * while overflow:visible content still paints — that caused the worksheet to draw over the cards).
 */
.worksheet-print-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

.worksheet-print-area > * {
    flex: 0 0 auto;
    min-height: max-content;
    align-self: stretch;
}

.worksheet-print-area .cnt-name-variations {
    position: relative;
    z-index: 1;
}
