/* k12-dismissal.css
   Copyright © 2026 LexPro. All rights reserved.

   Carline's /dismissal (sites/k12/pages/dismissal/), from
   app/lib/web/site/sections/dismissal/. */

/* ---- The cover's drawn car line (EdCarLineScene(height:)): the drawing
   fits the box and sits on its foot, right-aligned (the wide composition,
   1440×760 at the bottom right of a 2160×1160 still) or centred (the
   compact one, 390×470, in a box under 720 wide). ---- */
.dismissal-scene { position: absolute; inset: 0; }
.dismissal-scene .island__view { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.dismissal-scene.is-live .island__view { opacity: 1; }
/* Once the live scene is up the still goes: the two are not drawn at the
   same place in every box, so both at once showed the car line twice. */
.dismissal-scene__still { transition: opacity .4s ease; }
.dismissal-scene.is-live .dismissal-scene__still { opacity: 0; }
.dismissal-scene__still img {
  position: absolute; right: 0; bottom: 0; max-width: none; height: auto;
  width: calc(min(100cqw / 1440, 100cqh / 760) * 2160);
}
@media (max-width: 719.98px), (min-width: 901px) and (max-width: 1287.98px) {
  .dismissal-scene__still img {
    right: auto; left: 50%; transform: translateX(-50%);
    width: calc(min(100cqw / 390, 100cqh / 470) * 1170);
  }
}

/* ---- The afternoon as it runs today ---- */
.dis-problem__row { margin-top: 72px; }
.dis-problem__body { margin-bottom: 18px; font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ed-text); }
.dis-problem__closer {
  margin-top: 28px; padding-left: 22px; border-left: 6px solid var(--ed-coral);
  font-size: clamp(21px, 2vw, 28px); line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-ink);
}
.dis-list { margin-top: 16px; border-bottom: 1px solid var(--rule2); }
.dis-list li { display: flex; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--rule2); }
.dis-list__n {
  flex: none; width: 48px; font-family: var(--font-numeral); font-size: 26px; line-height: .9; font-weight: 800;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ed-coral-ink); padding-top: 2px;
}
.dis-list__text { font-size: 19px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--ed-ink); }
@media (max-width: 900px) { .dis-problem__row { margin-top: 40px; } }

/* ---- What changes ---- */
.dis-changes__index { margin-top: 64px; }
.dis-changes__note { margin-top: 40px; }
@media (max-width: 900px) {
  .dis-changes__index { margin-top: 36px; }
  .dis-changes__note { margin-top: 24px; }
}

/* ---- The four steps ---- */
.dis-steps__index { margin-top: 72px; }
@media (max-width: 900px) { .dis-steps__index { margin-top: 40px; } }

/* ---- The dashboard big on coral ---- */
.dis-screen { background: var(--ed-coral); padding: var(--ed-band-pad) 0; container-type: inline-size; color: var(--ed-navy-deep); }
.dis-screen__title { margin-top: 24px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.dis-screen__rule { margin: 36px 0 20px; }
.dis-screen__lede { font-size: 18px; line-height: 1.6; font-weight: 400; }
.dis-screen__caption { margin-top: 18px; font-size: 14px; line-height: 1.6; font-weight: 400; font-style: italic; }
.dis-screen__frame { padding: 22px 0 22px 22px; border-radius: 20px 0 0 0; background: var(--ed-navy-deep); }
.dis-screen__ground { padding: 20px 0 20px 20px; background: #f4f7fb; overflow: hidden; }
.dis-screen__ground img { max-width: none; width: 1141px; height: auto; }
@media (min-width: 901px) {
  .dis-screen__inner {
    --measure: min(100cqw, 1320px);
    --col: calc((var(--measure) - 2 * var(--ed-gutter) - 11 * var(--ed-col-gap)) / 12);
    display: flex; align-items: center;
    padding-left: calc((100cqw - var(--measure)) / 2 + var(--ed-gutter));
  }
  .dis-screen__text { flex: none; width: calc(4 * var(--col) + 3 * var(--ed-col-gap)); margin-right: calc(var(--col) + 2 * var(--ed-col-gap)); }
  .dis-screen__frame { flex: 1; min-width: 0; }
}
@media (max-width: 900px) {
  .dis-screen__text { max-width: 1320px; margin: 0 auto; padding: 0 var(--ed-gutter); }
  .dis-screen__rule { margin-top: 24px; }
  .dis-screen__frame { margin: 40px 0 0 var(--ed-gutter); }
  .dis-screen__ground img { width: 744px; }
}

/* ---- The record ---- */
.dis-record__row { margin-top: 64px; }
.dis-record__body { margin-top: 16px; font-size: 17px; line-height: 1.6; font-weight: 400; color: var(--ed-on-dark); }
.dis-record .ed-standfirst + .dis-record__body { margin-top: 22px; }
.dis-record__label { color: var(--ed-on-dark-muted); }
.dis-list--record { margin-top: 14px; }
.dis-list--record li { padding: 11px 0; }
.dis-list--record .dis-list__n { width: 42px; font-size: 20px; color: var(--ed-coral); }
.dis-list--record .dis-list__text { font-size: 16px; line-height: 1.6; letter-spacing: 0; color: var(--ed-paper); }
.dis-record__note { margin-top: 56px; }
@media (max-width: 900px) {
  .dis-record__row { margin-top: 36px; }
  .dis-record__note { margin-top: 36px; }
}

/* ---- Setting it up ---- */
.dis-setup__index { margin-top: 56px; }
@media (max-width: 900px) { .dis-setup__index { margin-top: 32px; } }
