/* /celpip/sample-test on the CELPIP guide shell. Builds on celpip-study-guide.css (sg-*) and
   celpip-resource-guides.css (cr-*); colours come from the celpip-seo.css tokens, light and dark. */
.cst-page>section,.cst-page>aside{scroll-margin-top:90px}
.cst-page{overflow-wrap:break-word}
.cst-page audio{display:block;width:100%;max-width:100%}
.cst-page th[scope=row]{overflow-wrap:normal}
.cst-page .cst-answer{font-size:1.06em}
.cst-hero-note{max-width:62ch}
.cst-hero-note a{font-weight:650}
.cst-page .sg-drill.cst-part{margin:18px 0;scroll-margin-top:90px}
.cst-page .cst-part h3{margin-top:0!important}
.cst-qnum{color:var(--seo-muted);font-weight:650}
.cst-page .sg-item legend{line-height:1.5}

.cst-passage{margin:14px 0;padding:18px 20px;border:1px solid var(--seo-line);border-radius:10px;background:var(--seo-bg);font-size:15.5px}
.cst-page .cst-passage h4{margin:4px 0 8px;font-size:16.5px}
.cst-page .cst-passage section+section{margin-top:16px;padding-top:12px;border-top:1px dashed var(--seo-line)}
.cst-page .cst-passage p{margin:8px 0}
.cst-page .cr-diagram{margin:0 0 16px}
.cst-page .cr-diagram table{font-size:14.5px;table-layout:auto}
.cst-page .cr-diagram th,.cst-page .cr-diagram td{border-color:var(--seo-line)}
.cst-page .cr-blank{min-width:48px}
.cst-byline{margin:4px 0 0;font-size:13.5px;color:var(--seo-muted)}

.cst-page .cst-figure{margin:12px 0;max-width:720px}
.cst-page .cst-figure img{display:block;width:100%;height:auto;border-radius:12px;aspect-ratio:3/2;object-fit:cover;background:var(--seo-soft)}
.cst-page .cst-figure figcaption{margin-top:6px;font-size:13.5px;color:var(--seo-muted)}
.cst-spoken{margin:6px 0 0;font-size:14.5px;color:var(--seo-muted)}
.cst-page .cst-spoken audio{height:40px;margin:6px 0 0}

.cst-key-label{margin:14px 0 4px!important;font-weight:700;font-size:13.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--seo-muted)}
.cst-evidence{margin:10px 0;padding:6px 14px;border-left:3px solid var(--seo-accent);background:var(--seo-soft);border-radius:0 8px 8px 0}
.cst-evidence p{margin:4px 0}
.cst-evidence cite{font-size:13px;font-style:normal;color:var(--seo-text)}
.cst-page .cst-wrong{list-style:disc;padding-left:1.2em}
.cst-page .cst-wrong li{margin:6px 0}
.cst-page .sg-key .cr-transcript{font-size:14.5px}
.cst-page .sg-key .cr-transcript,.cst-page .sg-key .sg-transcript{max-width:72ch;color:var(--seo-text)}
.cst-more{margin:14px 0 0;font-size:15px}
.cst-more a{font-weight:600}

.cst-prompt{margin:12px 0;padding:16px 18px;border:1px solid var(--seo-line);border-radius:10px;background:var(--seo-bg)}
.cst-prompt p{margin:6px 0}
.cst-page .cst-prompt ul{list-style:disc;padding-left:1.2em;margin:6px 0}
.cst-prompt-text{font-weight:600}
.cst-page .cst-note{margin:10px 0 0;font-size:15px}
.cst-sample{padding:4px 16px;border-left:3px solid var(--seo-line)}
.cst-page .sg-tool-wrap .cpg-textarea{min-height:200px}

.cst-timer .cpg-label,.cst-timer .cpg-select{display:none!important}
.cst-page .cst-timer .cpg-tool{margin:12px 0}
.cst-page .cst-timer .cpg-clock output{font-size:clamp(2.6rem,8vw,3.6rem)}
.cst-page .cst-timer-open:not([hidden]),.cst-page [data-sg-show-third]:not([hidden]){display:block;margin:6px 0}
/* One question per card: the feedback says right or wrong, so the 1-of-1 tally is for screen readers only. */
.cst-page .sg-score{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* A wrong answer must not look like a right one: the chosen option goes dashed and plain, and the
   key (data-answer = option index; the labels are the only label siblings in the fieldset) is marked. */
.cst-page .sg-item.sg-wrong .sg-option:has(input:checked){border-style:dashed;border-color:var(--seo-muted);background:none}
.cst-page .sg-item.sg-wrong[data-answer="0"] label.sg-option:nth-of-type(1),
.cst-page .sg-item.sg-wrong[data-answer="1"] label.sg-option:nth-of-type(2),
.cst-page .sg-item.sg-wrong[data-answer="2"] label.sg-option:nth-of-type(3),
.cst-page .sg-item.sg-wrong[data-answer="3"] label.sg-option:nth-of-type(4),
.cst-page .sg-item.sg-wrong[data-answer="4"] label.sg-option:nth-of-type(5){border-color:var(--seo-accent);background:var(--seo-soft)}
.cst-page .sg-feedback.sg-wrong{border-color:var(--seo-muted)}

.cst-cta{margin:26px 0!important;border-left:4px solid var(--seo-accent)!important}
.cst-cta .sg-next{margin-bottom:0}
.cst-cta .sg-next a:not(.seo-button){font-size:15px}

.cst-download{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 28px;align-items:end;margin:18px 0!important}
.cst-download h3{margin:0 0 8px!important}
.cst-page .cst-contents{list-style:disc;padding-left:1.2em;margin:0;font-size:15px}
.cst-contents li{margin:4px 0}
.cst-download .sg-download-links{flex-direction:column;align-items:stretch;text-align:center}
.cst-label{margin:18px 0 6px!important;font-weight:650}

.cst-score-table{max-width:560px;max-height:440px;overflow:auto}
.cst-score-table thead th{position:sticky;top:0;background:var(--seo-panel);z-index:1}
.cst-score-table td,.cst-score-table th{padding-top:6px!important;padding-bottom:6px!important}
.cst-compare tbody td:nth-child(2){background:var(--seo-soft)}

@media(max-width:700px){
  .cst-download{grid-template-columns:1fr}
  .cst-passage{padding:14px 14px;font-size:15px}
  .cst-page .cr-diagram th,.cst-page .cr-diagram td{padding:8px;font-size:13.5px}
  .cst-prompt{padding:14px}
}
@media(max-width:600px){
  .cst-page .sg-drill.cst-part{padding:16px 12px}
  .cst-passage{padding:12px 10px}
  .cst-page .cr-diagram{overflow-x:auto}
  .cst-page .cr-diagram th,.cst-page .cr-diagram td{padding:6px;font-size:13px}
  .cst-compare tbody td:nth-child(2){background:none}
  .cst-compare tbody td:nth-child(2)::before{color:var(--seo-accent)}
}
/* Phones: bring the first button (the PDF download) above the fold. The page's own hero only;
   this stylesheet loads on /celpip/sample-test alone. The byline moves below the buttons. */
@media(max-width:600px){
  .celpip-seo-page .seo-breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .celpip-seo-page .seo-hero{padding-top:20px;display:flex;flex-direction:column}
  .celpip-seo-page .seo-hero .seo-lede{font-size:16.5px;line-height:1.55;margin:12px 0 0}
  .celpip-seo-page .sg-hero-actions{margin-top:16px}
  .celpip-seo-page .seo-hero .seo-byline{order:1;margin:16px 0 0}
  .celpip-seo-page .seo-hero .seo-jumps{order:2}
}
@media(max-width:360px){
  .cst-page .sg-drill.cst-part{padding:14px 8px}
  .cst-passage{padding:10px 6px}
}
@media print{.cst-timer,.cst-timer-open,.cst-cta,[data-celpip-word-counter],.cst-hero-note{display:none!important}.cst-part{break-inside:avoid}}
