/* k12-kit-b.css
   Copyright © 2026 LexPro. All rights reserved.

   The editorial inner pages' shared pieces (sites/k12/pages/kit_b/): the
   covers, section heads, ruled lists, the pull note, the photo band, the
   coral closing and the contact form. Values are the Flutter ones in
   app/lib/web/site/sections/directions/a/ed_page_kit_c2/c3/c4.dart;
   clamp(min, vw, max) is context.fluid. Wide is over 900px (Ed.wide). */

/* ---- The two-weight headline with the coral highlighter (EdHeadline) ----
   Hanken Grotesk's box is 1.303em (ascent 1, descent .303); Flutter's
   stroke runs from .34em to .05em above the line box's foot, which for
   1.02 leading is .897em to 1.187em down this box. */
.edp-headline {
  display: flex; flex-direction: column; align-items: flex-start;
  font-size: var(--hl, 56px); line-height: 1.02; letter-spacing: -0.045em; color: var(--ed-ink);
}
.edp-headline__lead { font-weight: 400; }
.edp-headline__line { font-weight: 800; }
.edp-mark {
  background: linear-gradient(to bottom, transparent .897em, var(--ed-coral) .897em,
    var(--ed-coral) 1.187em, transparent 1.187em);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .05em 0 .04em; margin: 0 -.05em 0 -.04em;
}

/* ---- Covers ---- */
.edp-hero {
  position: relative; background: var(--ed-paper); container-type: inline-size; overflow: hidden;
  --measure: min(100cqw, 1320px);
  --col: calc((var(--measure) - 2 * var(--ed-gutter) - 11 * var(--ed-col-gap)) / 12);
  --left: calc((100cqw - var(--measure)) / 2 + var(--ed-gutter));
}
.edp-hero--navy { background: var(--ed-navy); }
.edp-hero__words { position: relative; z-index: 1; }
.edp-hero__visual { position: relative; overflow: hidden; container-type: size; }
.edp-hero__lede { font-weight: 500; letter-spacing: -0.2px; color: var(--ed-ink); }
.edp-hero--navy .edp-hero__lede, .edp-hero--navy .edp-headline { color: var(--ed-paper); }
.edp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.edp-hero--c2 .edp-headline, .edp-hero--c3 .edp-headline { color: var(--ed-navy); }
.edp-hero--c2 .edp-headline { line-height: 1; }
.edp-hero--c2 .edp-mark {
  background: linear-gradient(to bottom, transparent .893em, var(--ed-coral) .893em,
    var(--ed-coral) 1.183em, transparent 1.183em);
}

@media (min-width: 901px) {
  .edp-hero { --hl: clamp(48px, min(5.8vw, calc(var(--hero-h) * .11)), 96px); }
  .edp-hero--c4 { --hero-h: clamp(560px, calc(100vh - 64px), 900px); }
  .edp-hero--c2 { --hero-h: clamp(600px, calc(100vh - 64px), 940px); }
  .edp-hero--c3 { --hero-h: clamp(600px, calc(100vh - 64px), 900px); }

  /* c4: the words centred in the row, the visual to the window's edge. */
  .edp-hero--c4 .edp-hero__row {
    display: grid; align-items: center; min-height: var(--hero-h);
    grid-template-columns: var(--left) calc(6 * var(--col) + 5 * var(--ed-col-gap)) calc(2 * var(--ed-col-gap)) minmax(0, 1fr);
  }
  .edp-hero--c4 .edp-hero__words { grid-column: 2; padding: 48px 0; }
  .edp-hero--c4 .edp-hero__visual { grid-column: 4; height: var(--hero-h); }
  .edp-hero--c4 .ed-kicker { margin-bottom: 24px; }
  .edp-hero--c4 .edp-hero__lede { margin-top: 28px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; }
  .edp-hero--c4 .edp-hero__actions { margin-top: 30px; }

  /* c2: the words from 7% down, the visual from 10% down to the foot. The
     words stay in the flow and the row is at least the cover's height, so
     wider text spacing (WCAG 1.4.12) makes the cover taller, never cuts it. */
  .edp-hero--c2 .edp-hero__row { position: relative; min-height: var(--hero-h); --textw: calc(var(--text-cols) * var(--col) + (var(--text-cols) - 1) * var(--ed-col-gap)); }
  .edp-hero--c2 .edp-hero__words { margin-left: var(--left); padding: calc(var(--hero-h) * .07) 0 32px; width: var(--textw); }
  .edp-hero--c2 .edp-hero__visual {
    position: absolute; left: calc(var(--left) + var(--textw) + var(--ed-col-gap) * 1.5);
    top: calc(var(--hero-h) * .1); right: 0; bottom: 0;
  }
  .edp-hero--c2 .ed-kicker { margin-bottom: 24px; }
  .edp-hero--c2 .edp-hero__rule { margin-top: 28px; }
  .edp-hero--c2 .edp-hero__lede { margin-top: 20px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }
  .edp-hero--c2 .edp-hero__actions { margin-top: 26px; }

  /* c3: the words centred, the panel from column eight to the edge (the
     row grows with its words, as c2's). */
  .edp-hero--c3 .edp-hero__row { position: relative; display: flex; min-height: var(--hero-h); }
  .edp-hero--c3 .edp-hero__panel {
    position: absolute; top: 0; bottom: 0; right: 0;
    left: calc(var(--left) + 7 * (var(--col) + var(--ed-col-gap)) - var(--ed-col-gap) / 2);
  }
  .edp-hero--c3 .edp-hero__visual { position: absolute; inset: 0; }
  .edp-hero--c3 .edp-hero__words {
    margin-left: var(--left); width: calc(6 * var(--col) + 5 * var(--ed-col-gap));
    display: flex; flex-direction: column; justify-content: center; padding: 32px 0;
  }
  .edp-hero--c3 .ed-kicker { margin-bottom: 24px; }
  .edp-hero--c3 .edp-hero__lede { margin-top: 28px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.4; }
  .edp-hero--c3 .edp-hero__actions { margin-top: 28px; }
}

@media (max-width: 900px) {
  .edp-hero { --hl: clamp(52px, 8vw, 76px); }
  .edp-hero__words { max-width: 1320px; margin: 0 auto; padding: 44px var(--ed-gutter) 0; }
  .edp-hero .ed-kicker { margin-bottom: 24px; }
  .edp-hero--c4 .edp-hero__lede { margin-top: 28px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; }
  .edp-hero--c4 .edp-hero__actions { margin-top: 30px; }
  .edp-hero--c4 .edp-hero__visual { margin-top: 40px; height: 420px; }
  .edp-hero--c4.edp-hero--navy { padding-bottom: 48px; }

  .edp-hero--c2 .edp-hero__words { padding-top: 40px; }
  .edp-hero--c2 .edp-hero__rule { margin-top: 28px; }
  .edp-hero--c2 .edp-hero__lede { margin-top: 20px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }
  .edp-hero--c2 .edp-hero__actions { margin-top: 26px; }
  .edp-hero--c2 .edp-hero__visual { margin: 40px 0 0 var(--ed-gutter); height: calc(var(--phone-visual-h) * 1.4); }
  .edp-hero--c2.edp-hero--bleed .edp-hero__visual { margin-left: 0; }

  .edp-hero--c3 .edp-hero__words { padding-top: 40px; }
  .edp-hero--c3 .edp-hero__lede { margin-top: 28px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.4; }
  .edp-hero--c3 .edp-hero__actions { margin-top: 28px; }
  .edp-hero--c3 .edp-hero__panel { position: relative; margin-top: 36px; height: 440px; }
  .edp-hero--c3 .edp-hero__visual { position: absolute; inset: 0; }
}
@media (max-width: 600px) {
  .edp-hero { --hl: clamp(38px, 10.6vw, 54px); }
  .edp-hero .ed-kicker { margin-bottom: 16px; }
  .edp-hero__actions .btn--lg { --btn-h: 44px; --btn-pad: 18px; --btn-fs: 15px; }
  .edp-hero--c4 .edp-hero__words { padding-top: 28px; }
  .edp-hero--c4 .edp-hero__lede { margin-top: 20px; }
  .edp-hero--c4 .edp-hero__actions { margin-top: 20px; }
  .edp-hero--c4 .edp-hero__visual { margin-top: 28px; height: 300px; }
  .edp-hero--c4.edp-hero--navy { padding-bottom: 32px; }

  .edp-hero--c2 .edp-hero__words { padding-top: 24px; }
  .edp-hero--c2 .edp-hero__rule { margin-top: 18px; }
  .edp-hero--c2 .edp-hero__lede { margin-top: 14px; font-size: 18px; }
  .edp-hero--c2 .edp-hero__actions { margin-top: 18px; }
  .edp-hero--c2 .edp-hero__visual { margin-top: 28px; height: var(--phone-visual-h); }
  .edp-hero--c2 .edp-hero__actions .btn--lg { --btn-h: 50px; --btn-pad: 22px; --btn-fs: 16px; }

  .edp-hero--c3 .edp-hero__words { padding-top: 24px; }
  .edp-hero--c3 .edp-hero__lede { margin-top: 18px; font-size: 17px; }
  .edp-hero--c3 .edp-hero__actions { margin-top: 18px; }
  .edp-hero--c3 .edp-hero__actions .btn--lg { --btn-h: 50px; --btn-pad: 22px; --btn-fs: 16px; }
  .edp-hero--c3 .edp-hero__panel { margin-top: 24px; height: 300px; }
}
.edp-hero__panel--navy { background: var(--ed-navy); }

/* ---- Inks per band ---- */
.edp--paper, .edp--bone { --head: var(--ed-ink); --body: var(--ed-text); --muted: var(--ed-muted); --rule2: var(--ed-navy); --accent: var(--ed-coral); }
.edp--navy, .edp--navy-deep { --head: var(--ed-paper); --body: var(--ed-on-dark); --muted: var(--ed-on-dark-muted); --rule2: var(--ed-rule-on-dark); --accent: var(--ed-coral); }
.edp--coral { --head: var(--ed-navy-deep); --body: var(--ed-navy-deep); --muted: var(--ed-navy-deep); --rule2: var(--ed-navy-deep); --accent: var(--ed-navy-deep); }
/* c4's EdInk rules: a hairline on paper, the dark rule on navy. */
.edp--paper, .edp--bone { --rule4: var(--ed-rule); }
.edp--navy, .edp--navy-deep { --rule4: var(--ed-rule-on-dark); }
.edp--coral { --rule4: var(--ed-navy-deep); }
.ed-tone--ink { color: var(--ed-ink); }

/* ---- Section heads ---- */
.edp-head4 { margin-top: 24px; }
.edp-head4__title, .edp-head3__title, .edp-head2__title {
  font-size: clamp(36px, 5.2vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--head, var(--ed-ink));
}
.edp-head4__lede, .edp-head3__lede, .edp-head2__aside { font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--body, var(--ed-text)); }
.edp-head3 { margin-top: 24px; }
.edp-head2__row { margin-top: 28px; }
.edp-head2--split .edp-head2__row { --stack-gap: 24px; }
.edp-head2__title--huge { font-size: clamp(48px, 8.4vw, 124px); line-height: .94; }
.edp-head2__lede-row { margin-top: 40px; }
.edp-head2__lede { color: var(--body); }
@media (max-width: 900px) {
  .edp-head2__row { margin-top: 20px; }
  .edp-head2__lede-row { margin-top: 24px; }
  .edp-head2--split .edp-head2__aside {
    font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 500; letter-spacing: -0.2px;
  }
}

/* Outline numerals take the band's accent. */
.edp-entry__numeral, .edp-index__numeral { -webkit-text-stroke-color: var(--accent, var(--ed-coral)); }

/* ---- Ruled entries (c4 EdRuledEntry) ---- */
.edp-entries { border-bottom: 1px solid var(--rule4); }
.edp-entry { padding: 40px 0; border-top: 1px solid var(--rule4); }
.edp-entry__numeral { font-size: 72px; -webkit-text-stroke-color: var(--head); }
.edp-entry__title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--head); }
.edp-entry__body { font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--body); }
@media (max-width: 900px) {
  .edp-entry { padding: 28px 0; }
  .edp-entry__numeral { font-size: 52px; }
  .edp-entry__body { font-size: 17px; }
}

/* ---- The index (c2 EdIndex) ---- */
.edp-index { border-bottom: 1px solid var(--rule2); }
.edp-index__item { padding: 30px 0; border-top: 1px solid var(--rule2); scroll-margin-top: 96px; }
.edp-index__numeral { font-size: clamp(52px, 5.6vw, 84px); }
.edp-index__title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--head); }
.edp-index__body { font-size: 17px; line-height: 1.6; font-weight: 400; color: var(--body); }
.edp-index__link { margin-top: 8px; }
@media (min-width: 901px) {
  .edp-index__item .edp-index__title { padding-top: 8px; }
  .edp-index__words { padding-top: 12px; }
}
@media (max-width: 900px) { .edp-index__item { padding: 24px 0; } }
.edp-index--two .edp-index__row { padding-bottom: 8px; }
.edp-index__compact { padding-bottom: 28px; border-top: 1px solid var(--rule2); padding-top: 18px; scroll-margin-top: 96px; }
.edp-index__compact-head { display: flex; align-items: flex-start; gap: 16px; }
.edp-index__small-numeral {
  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(--accent); flex: none; padding-top: 2px;
}
.edp-index__compact-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--head); }
.edp-index__compact-body { margin-top: 12px; padding-left: 50px; }
.edp-index__compact-body .edp-index__body { font-size: 16px; }
@media (max-width: 900px) {
  .edp-index--two .edp-index__row { padding-bottom: 0; }
  .edp-index--two { border-bottom: 1px solid var(--rule2); }
}

/* ---- The pull note (c2 EdPullNote) ---- */
.edp-pull {
  padding: 4px 0 4px 24px; border-left: 6px solid var(--accent);
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; color: var(--head);
}

/* ---- A full-bleed photo between bands (c2 EdPhotoBand) ---- */
.edp-photo { height: clamp(360px, 38vw, 560px); background-color: var(--ed-navy-deep); background-size: cover; }
@media (max-width: 600px) { .edp-photo { height: 300px; } }

/* ---- The coral closing (EdPageClosing) ---- */
.edp-closing { color: var(--ed-navy-deep); }
.edp-bars { display: flex; flex-direction: column; align-items: flex-end; }
.edp-bars__bar { display: block; height: 22px; margin-bottom: 10px; border-radius: 20px; }
.edp-bars__bar--1 { width: 260px; background: var(--ed-navy-deep); }
.edp-bars__bar--2 { width: 190px; background: var(--ed-paper); }
.edp-bars__bar--3 { width: 120px; background: #ffc21a; }
.edp-closing__head { margin-top: 28px; }
.edp-closing__title { font-size: clamp(44px, 7.4vw, 112px); line-height: .96; font-weight: 800; letter-spacing: -0.045em; color: var(--ed-navy-deep); }
.edp-closing--c2 .edp-closing__title { font-size: clamp(42px, 7vw, 104px); line-height: .98; }
.edp-closing__rule { margin: 56px 0 28px; }
.edp-closing__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .edp-bars__bar { height: 14px; }
  .edp-bars__bar--1 { width: 150px; }
  .edp-bars__bar--2 { width: 110px; }
  .edp-bars__bar--3 { width: 70px; }
  .edp-closing__head { margin-top: 20px; }
  .edp-closing__rule { margin: 36px 0 28px; }
}

/* ---- The contact form (ContactFormCard) ---- */
.cform__card {
  display: block; padding: 24px; border: 1px solid var(--gray-200); border-radius: 20px; background: #fff;
  box-shadow: var(--shadow-card); color: var(--ink);
}
.cform__grid { display: grid; gap: 14px; }
@container (min-width: 480px) {
  .cform__grid { grid-template-columns: 1fr 1fr; }
  .cform__field--span { grid-column: 1 / -1; }
}
.cform { container-type: inline-size; }
.cform .field input, .cform .field textarea { min-height: 48px; }
.cform .field input::placeholder { color: var(--gray-500); }
.cform__helper { font-size: 13px; line-height: 1.45; color: var(--gray-600); padding: 0 8px; }
.cform__failure { margin-top: 16px; font-size: 15px; line-height: 1.6; color: #8e2410; }
.cform__send { margin-top: 18px; }
.cform__send.is-loading { opacity: .7; cursor: progress; }
.cform__sent { padding: 28px; }
.cform__tile {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--home-ice); color: var(--home-navy);
}
.cform__sent-title { margin-top: 16px; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.44px; color: var(--ink); }
.cform__sent-title:focus { outline: none; }

/* The Copy toast (showUiToast). */
.k12-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px);
  padding: 12px 18px; border-radius: 12px; background: var(--navy-900); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow-control-raised);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.k12-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .k12-toast { transition: none; } }
