/* CELPIP Speaking product demo (components/celpip_speaking_product_demos.html).
   The frame follows the host page theme through the --seo-* tokens of celpip-seo.css; the
   screenshots themselves stay light because the public task pages are light-only. */
.celpip-speaking-demos {
    /* Never narrower than the text column (phones), up to 1100px on wide screens. */
    --csd-wide: max(100%, min(1100px, calc(100vw - 48px)));
    --csd-paper: var(--seo-panel, #fffefa);
    --csd-ink: var(--seo-text, #1c2520);
    --csd-muted: var(--seo-muted, #5d6a63);
    --csd-line: var(--seo-line, #dedbd2);
    --csd-accent: var(--seo-accent, #2d5f4d);
    --csd-stage: #eef3ef;
    --csd-shadow: 0 10px 28px rgb(10 30 20 / 10%);
    /* Wider than the 800px reading column so the screens stay legible; centred on the column. */
    width: var(--csd-wide);
    margin: 56px 0 56px calc((100% - var(--csd-wide)) / 2);
    color: var(--csd-ink);
    scroll-margin-top: 100px;
    min-width: 0;
}
html.dark-mode .celpip-speaking-demos {
    --csd-stage: #171b19;
    --csd-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 12px 30px rgb(0 0 0 / 35%);
}
.celpip-speaking-demos *,
.celpip-speaking-demos *::before,
.celpip-speaking-demos *::after { box-sizing: border-box; }
.celpip-speaking-demos-heading { max-width: 800px; margin: 0 auto 24px; }
.celpip-speaking-demos .celpip-speaking-demos-kicker {
    color: var(--csd-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.celpip-speaking-demos .celpip-speaking-demos-heading h2 {
    color: var(--csd-ink);
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 12px 0;
}
.celpip-speaking-demos .celpip-speaking-demos-heading p { color: var(--csd-muted); font-size: 15px; line-height: 1.7; margin: 0; max-width: 640px; }
.celpip-speaking-demos-views { border: 1px solid var(--csd-line); border-radius: 12px; overflow: hidden; background: var(--csd-paper); }
.celpip-speaking-demo + .celpip-speaking-demo { border-top: 1px solid var(--csd-line); }
.celpip-speaking-demo > summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.celpip-speaking-demo > summary::-webkit-details-marker { display: none; }
.celpip-speaking-demo > summary::marker { content: ''; }
.celpip-speaking-demo > summary:hover,
.celpip-speaking-demo[open] > summary { background: var(--csd-stage); }
.celpip-speaking-demos :is(summary, a):focus-visible { outline: 2px solid var(--csd-accent); outline-offset: -4px; border-radius: 4px; }
.celpip-speaking-demo-number { color: var(--csd-accent); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.celpip-speaking-demo-label { flex: 1; min-width: 0; }
.celpip-speaking-demo-label strong { display: block; color: var(--csd-ink); font-size: 17px; font-weight: 600; line-height: 1.4; }
.celpip-speaking-demo-label > span { display: block; color: var(--csd-muted); font-size: 13px; font-weight: 400; line-height: 1.5; margin-top: 4px; }
.celpip-speaking-demo-toggle { position: relative; width: 20px; height: 20px; flex: 0 0 20px; }
.celpip-speaking-demo-toggle::before,
.celpip-speaking-demo-toggle::after { position: absolute; content: ''; background: var(--csd-accent); top: 9px; left: 4px; width: 12px; height: 1.5px; }
.celpip-speaking-demo-toggle::after { transform: rotate(90deg); }
.celpip-speaking-demo[open] .celpip-speaking-demo-toggle::after { display: none; }
.celpip-speaking-demo figure { margin: 0; }
.celpip-speaking-demo-stage { padding: 24px; background: var(--csd-stage); }
.celpip-speaking-demos .celpip-speaking-demo-image { display: block; max-width: 1050px; margin: auto; color: var(--csd-muted); text-decoration: none; border: 0; }
/* One full-size link per viewport; a lazy image in the hidden link isn't fetched. */
.celpip-speaking-demos .celpip-speaking-demo-image-mobile { display: none; }
.celpip-speaking-demo-image img { display: block; width: 100%; height: auto; }
.celpip-speaking-demo-image img { border-radius: 10px; box-shadow: var(--csd-shadow); background: #f3f1ea; }
.celpip-speaking-demo-zoom { display: flex; justify-content: flex-end; gap: 8px; font-size: 12px; line-height: 1.6; margin-top: 12px; color: var(--csd-muted); }
.celpip-speaking-demo figcaption { padding: 20px 24px 24px; font-size: 14px; line-height: 1.7; color: var(--csd-muted); }
.celpip-speaking-demo figcaption > span { display: block; max-width: 760px; }
.celpip-speaking-demos .celpip-speaking-demo figcaption > a {
    display: inline-block;
    color: var(--csd-accent);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 4px;
    padding: 10px 0;
}
.celpip-speaking-demos .celpip-speaking-demos-date { margin: 12px 0 0; color: var(--csd-muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 640px) {
    .celpip-speaking-demos { margin-block: 40px; }
    .celpip-speaking-demos .celpip-speaking-demo-image-desktop { display: none; }
    .celpip-speaking-demos .celpip-speaking-demo-image-mobile { display: block; }
    .celpip-speaking-demo > summary { padding: 16px; gap: 12px; }
    .celpip-speaking-demo-label strong { font-size: 16px; }
    .celpip-speaking-demo-label > span { font-size: 12px; }
    .celpip-speaking-demo-stage { padding: 12px; }
    .celpip-speaking-demo-image img { border-radius: 8px; }
    .celpip-speaking-demo figcaption { padding: 16px; }
}
@media print {
    .celpip-speaking-demos { width: auto; margin-inline: 0; }
}
