/* deanprep.com/act only, loaded after site.css (act.mjs). The exam template in Dean's ACT's teal; every other page,
   including the /act-english guide that shares the exam-act class, keeps site.css alone. */
.exam-act {
  --accent: #0e7c78;        /* 5.0:1 on white, 4.7:1 on ivory */
  --accent-ink: #0e7c78;
  --on-accent: #ffffff;
  --navy: #0d5553;          /* the icon's ground: buttons, bands, footer (8.6:1 under white) */
  --navy-2: #0e7c78;
  --gold: #e3b24f;
  --tag-ink: #0a4f4c;
  --close-ink: #d6ebe9;
}
@media (prefers-color-scheme: dark) {
  .exam-act {
    --accent: #2fc4b8;      /* the same teal, lifted to read on the dark ground */
    --accent-ink: #5fd8cd;
    --on-accent: #062523;
    --tag-ink: #7fe3da;
    --bad: #f2867d;
    --ok: #6cc070;
    --on-ok: #0c2410;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hdr, .hdr-in { transition: none; }
}

/* The Dean Prep marks stay navy on light; only this exam's own logo is teal */
.exam-act .hdr .logo .wordmark { color: #1e2a5a; }
@media (prefers-color-scheme: dark) { .exam-act .hdr .logo .wordmark { color: #fff; } }

/* Colours site.css sets for gold, where teal needs white text (and dark text on the lighter teal in dark mode) */
.exam-act .loop li::before, .exam-act .cal i.review { color: var(--on-accent); }
.exam-act .cal i.test { color: var(--on-ok, #fff); }
.exam-act .btn.accent { background: var(--gold); color: #1a1406; }
.exam-act .tag { color: var(--tag-ink); }
.exam-act .opt.chosen { border-color: var(--accent); }
.exam-act .price.main { border-color: var(--accent); }
.exam-act .eyebrow { color: var(--accent-ink); }
.exam-act .proof .n { color: var(--accent); }
.exam-act .feature .ic svg { display: block; }
.exam-act .table-wrap:focus-visible { outline-color: var(--accent); }

/* Hero: the sign-up has to fit on a laptop's first screen, and the demo stays put as its panes grow */
.exam-act .hero { align-items: start; }
.exam-act .hero h1 { font-size: clamp(34px, 1.6rem + 2.2vw, 72px); max-width: 18ch; }
.act-logo { height: clamp(34px, 3vw, 48px); width: auto; margin-bottom: 18px; }
.hero h1 span { display: block; }
.hero h1 span[hidden] { display: none; }
html:not(.js) .aud { display: none; }

/* Sign-up form: email and button on a line where they fit, the age confirmation below */
html:not(.js) .act-notify { display: none; }
.act-notify { align-items: flex-start; max-width: 620px; }
.act-field { flex: 1 1 240px; min-width: 0; display: grid; gap: 4px; }
.act-field label { font-weight: 600; font-size: .92em; }
.act-notify .act-field input { width: 100%; flex: none; }
.act-notify .btn { margin-top: calc(1.6em * .92 + 4px); }
.act-notify input[aria-invalid="true"] { border-color: var(--bad); }
.act-age { flex: 1 1 100%; }
.act-age label { display: flex; gap: 10px; align-items: flex-start; font-size: .95em; cursor: pointer; padding-block: 4px; }
.act-age input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent); }
.act-notify .act-err { min-height: 0; font-size: .92em; font-weight: 600; }
.act-notify .act-err:empty { display: none; }
.act-sent, .act-confirmed { flex: 1 1 100%; margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, var(--white)); font-weight: 600; }
.act-confirmed { margin-top: 12px; }
@media (max-width: 599px) { .act-notify .btn { margin-top: 0; width: 100%; order: 3; } .act-age { order: 2; } }

/* The demo */
.act-meta { font-size: .85em; margin-bottom: .5em; }
.act-demo-h { font-size: clamp(22px, 5cqi, 34px); margin-bottom: .5em; }
.act-demo-h:focus, .act-rule:focus, .verdict:focus { outline: none; }
.act-wrong { font-size: clamp(18px, 3.8cqi, 24px); line-height: 1.45; padding: 12px 14px; border-left: 4px solid var(--bad); background: var(--tint); border-radius: 0 10px 10px 0; }
.act-rule { font-size: 1.08em; line-height: 1.35; margin-bottom: .5em; }
.act-back p:last-child { margin-bottom: 0; }
.act-para { font-size: clamp(17px, 3.2cqi, 21px); line-height: 1.65; }
.act-portion { white-space: normal; }
.act-portion u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.act-portion u.edited { color: var(--accent-ink); font-weight: 650; }
.act-portion u.ok { color: var(--ok); font-weight: 700; }
.act-num { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 .2em; margin-right: 3px; border-radius: 4px; background: var(--navy); color: #fff; font-size: .72em; font-weight: 700; vertical-align: .12em; line-height: 1; }
.act-opts { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; min-width: 0; }
.act-opts legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .95em; }
@container (min-width: 560px) { .act-opts { grid-template-columns: 1fr 1fr; } .act-opts legend { grid-column: 1 / -1; } }
.act-opts .opt { display: flex; gap: 10px; align-items: center; }
.act-opts input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.act-letter { font-weight: 700; color: var(--muted); }
.act-opts .opt:has(input:disabled) { cursor: default; }
.verdict p { margin: 0 0 .6em; }
.verdict p:last-child { margin-bottom: 0; }
.verdict p.muted { font-size: .92em; }
.exam-act .demo .row .btn { min-width: 0; }

/* Samples from the free set */
.act-mini { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--tint); font-size: .92em; line-height: 1.55; }
.act-sample .stem { font-size: 1em; }
.sample .act-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.exam-act .cal { max-width: 340px; }
.act-answer { margin-top: 12px; font-size: .95em; }
.act-answer summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.act-answer p { margin: 8px 0 0; }
.act-small { font-size: .9em; margin: 20px 0 0; max-width: 90ch; }
.act-off { margin: auto 0 0; padding-top: 8px; }
.act-after-faq { margin-top: 20px; }

/* The closing band: the form on deep teal */
.act-close { background: var(--navy); }
.act-close .act-field label, .act-close .act-age label { color: #fff; }
.act-close .act-notify input[type="email"] { background: #fff; color: #1f2430; border-color: #fff; }
.act-close .act-err { color: #ffdcd7; }
.act-close .act-age input { accent-color: var(--gold); }
.act-close .act-sent { background: rgba(255, 255, 255, .14); color: #fff; }
.act-close .notify-note { color: var(--close-ink); }
.act-close a { color: #fff; }
.exam-act .foot .marks { color: #d3e4e2; }

/* Inside Dean's ACT: the laptop shot, then four phone shots (two rows on small screens) */
#screens > .shot { display: block; width: 100%; height: auto; }
.act-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(16px, 2.4vw, 32px); }
@media (min-width: 760px) { .act-phones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.act-phones .shot.phone { width: 100%; height: auto; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; border-radius: 20px; }
