/* Impact page styles (components in src-patches/impact-page.js), plus the
   site-wide footer seal at the bottom. This file loads on every app page. */
.ed8 {
  --ed8-navy: #0e1b3a;
  --ed8-navy-2: #0a1530;
  --ed8-blue: #3b8fe6;
  --ed8-blue-deep: #1e5fb0;
  --ed8-blue-mid: #2e77c7;
  --ed8-ink-70: rgba(14, 27, 58, 0.72);
  --ed8-ink-55: rgba(14, 27, 58, 0.58);
  --ed8-line: rgba(14, 27, 58, 0.1);
  --ed8-paper: #f4f8ff;
  --ed8-serif: "Playfair Display", Georgia, serif;
  --ed8-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ed8-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ed8-shadow: 0 1px 2px rgba(30, 95, 176, 0.06), 0 12px 32px -8px rgba(30, 95, 176, 0.16);
  --ed8-shadow-lift: 0 2px 4px rgba(30, 95, 176, 0.08), 0 24px 48px -12px rgba(30, 95, 176, 0.28);
  font-family: var(--ed8-sans);
  color: var(--ed8-navy);
}
.ed8 *, .ed8 *::before, .ed8 *::after { box-sizing: border-box; }
.ed8 img { display: block; max-width: 100%; height: auto; }
.ed8 p { margin: 0; }
.ed8 figure { margin: 0; }
.ed8 ol, .ed8 ul { list-style: none; margin: 0; padding: 0; }

.ed8-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 768px) { .ed8-wrap { padding-inline: 32px; } }

.ed8-section { position: relative; padding-block: 72px; }
@media (min-width: 900px) { .ed8-section { padding-block: 112px; } }

/* Reveal */
.ed8-rise { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 0.7s var(--ed8-spring), transform 0.8s var(--ed8-spring); transition-delay: var(--d, 0ms); }
.ed8-rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ed8-rise { opacity: 1; transform: none; transition: none; }
}

/* Type */
.ed8-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px !important; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ed8-blue-mid); }
.ed8-kicker-n { padding: 4px 8px; border-radius: 6px; background: rgba(59, 143, 230, 0.1); border: 1px solid rgba(59, 143, 230, 0.22); letter-spacing: 0.12em; }
.ed8-h2 { margin: 0 0 20px; font-family: var(--ed8-serif); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--ed8-navy); text-wrap: balance; }
.ed8-h2 em { font-weight: 400; color: var(--ed8-blue); }
.ed8-h2-light { color: #fff; }
.ed8-h2-light em { color: #8cc2f5; }
.ed8-h3 { margin: 0 0 14px; font-family: var(--ed8-serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; }
.ed8-lede { max-width: 60ch; font-size: 1.08rem; line-height: 1.7; color: var(--ed8-ink-70); }
.ed8-lede-light { color: rgba(255, 255, 255, 0.74); }
.ed8-prose { display: grid; gap: 16px; font-size: 1.03rem; line-height: 1.7; color: var(--ed8-ink-70); }
.ed8-prose strong { color: var(--ed8-navy); font-weight: 700; }
.ed8-tag { display: inline-block; margin: 0 0 22px !important; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--ed8-blue-deep); background: rgba(59, 143, 230, 0.08); border: 1px solid rgba(59, 143, 230, 0.2); line-height: 1.4; }

/* Buttons & links */
.ed8-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ed8-actions-center { justify-content: center; }
.ed8-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: transform 0.35s var(--ed8-spring), opacity 0.2s ease; -webkit-tap-highlight-color: transparent; }
.ed8-btn:hover { transform: translate3d(0, -2px, 0); }
.ed8-btn:active { transform: scale(0.97); }
.ed8-btn:focus-visible, .ed8-link:focus-visible, .ed8-way:focus-visible, .ed8-img-btn:focus-visible, .ed8-video-cover:focus-visible { outline: 3px solid var(--ed8-blue); outline-offset: 3px; }
.ed8-btn-primary { background: var(--ed8-blue); color: #fff; box-shadow: 0 10px 24px -8px rgba(30, 95, 176, 0.55); }
.ed8-btn-outline { color: var(--ed8-blue-deep); border: 1px solid rgba(30, 95, 176, 0.32); background: #fff; }
.ed8-btn-light { background: #fff; color: var(--ed8-navy); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35); }
.ed8-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.ed8-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.92rem; color: var(--ed8-blue-deep); text-decoration: none; border-bottom: 1.5px solid rgba(30, 95, 176, 0.3); padding-bottom: 1px; transition: opacity 0.2s ease; }
.ed8-link:hover { opacity: 0.75; }
.ed8-link:active { opacity: 0.55; }

/* Record */
.ed8-record { position: relative; padding-block: 8px 64px; background: linear-gradient(180deg, #eef4ff 0%, var(--bg-soft, #f6f9ff) 100%); }
.ed8-record-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .ed8-record-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ed8-record-card { position: relative; padding: 28px 26px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--ed8-line); box-shadow: var(--ed8-shadow); overflow: hidden; }
.ed8-record-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--ed8-blue), var(--ed8-blue-deep)); }
.ed8-record-stat { font-family: var(--ed8-serif); font-weight: 800; font-size: clamp(3rem, 7vw, 4.2rem); line-height: 0.95; letter-spacing: -0.045em; color: var(--ed8-blue-deep); font-variant-numeric: tabular-nums; }
.ed8-record-label { margin-top: 8px !important; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ed8-ink-55); }
.ed8-record-text { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--ed8-line); font-size: 0.98rem; line-height: 1.65; color: var(--ed8-ink-70); }
.ed8-global { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px !important; }
.ed8-global-label { margin-right: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ed8-ink-55); }
.ed8-chip { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ed8-line); font-size: 0.86rem; font-weight: 600; color: var(--ed8-navy); }

/* School system */
.ed8-system { background: var(--bg-soft, #f6f9ff); }
.ed8-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ed8-split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.ed8-figure figcaption, .ed8-shot figcaption, .ed8-tile figcaption { margin-top: 10px; font-size: 0.84rem; line-height: 1.5; color: var(--ed8-ink-55); }
.ed8-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e8eef8; border-radius: 18px; overflow: hidden; box-shadow: var(--ed8-shadow); }
.ed8-img img { width: 100%; }
.ed8-img-btn { cursor: zoom-in; transition: transform 0.5s var(--ed8-spring); }
.ed8-img-btn img { transition: transform 0.7s var(--ed8-spring); }
@media (hover: hover) {
  .ed8-img-btn:hover { transform: translate3d(0, -3px, 0); }
  .ed8-img-btn:hover img { transform: scale(1.03); }
  .ed8-img-btn:hover .ed8-zoom { opacity: 1; transform: none; }
}
.ed8-img-btn:active { transform: scale(0.985); }
.ed8-zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(14, 27, 58, 0.78); color: #fff; font-size: 1.2rem; line-height: 1; opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.35s var(--ed8-spring); }
@media (hover: none) { .ed8-zoom { opacity: 0.9; transform: none; } }

.ed8-compare { margin-top: 64px; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--ed8-line); box-shadow: var(--ed8-shadow); }
.ed8-compare-head { display: none; }
.ed8-compare-row { display: grid; border-top: 1px solid var(--ed8-line); }
.ed8-compare-row:first-of-type { border-top: 0; }
.ed8-compare-row p { padding: 18px 22px; font-size: 0.98rem; line-height: 1.6; }
.ed8-before { color: var(--ed8-ink-55); background: #fafbfd; }
.ed8-after { color: var(--ed8-navy); font-weight: 500; }
.ed8-mlabel { display: block; margin-bottom: 4px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.ed8-before .ed8-mlabel { color: rgba(14, 27, 58, 0.42); }
.ed8-after .ed8-mlabel { color: var(--ed8-blue-mid); }
@media (min-width: 760px) {
  .ed8-compare-head { display: grid; grid-template-columns: 1fr 1fr; }
  .ed8-compare-head span { padding: 14px 26px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ed8-ink-55); background: #fafbfd; border-bottom: 1px solid var(--ed8-line); }
  .ed8-compare-head span:last-child { color: #fff; background: var(--ed8-blue-deep); border-bottom-color: var(--ed8-blue-deep); }
  .ed8-compare-row { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ed8-line); }
  .ed8-compare-row p { padding: 22px 26px; }
  .ed8-after { border-left: 1px solid var(--ed8-line); }
  .ed8-mlabel { display: none; }
}

.ed8-system .ed8-h3 { margin-top: 64px; }
.ed8-steps { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 600px) { .ed8-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ed8-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.ed8-step { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--ed8-line); }
.ed8-step-n { display: inline-block; margin-bottom: 10px; font-family: var(--ed8-serif); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--ed8-blue); }
.ed8-step-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px !important; }
.ed8-step-text { font-size: 0.93rem; line-height: 1.6; color: var(--ed8-ink-70); }

.ed8-shots { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 820px) { .ed8-shots { grid-template-columns: 1fr 1fr; } .ed8-shot.is-full { grid-column: 1 / -1; } }
.ed8-browser { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--ed8-line); box-shadow: var(--ed8-shadow-lift); }
.ed8-browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f8; border-bottom: 1px solid var(--ed8-line); }
.ed8-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8e6; }
.ed8-browser .ed8-img { border-radius: 0; box-shadow: none; background: #fff; }

/* Video */
.ed8-video-section { background: radial-gradient(80% 60% at 85% 0%, rgba(59, 143, 230, 0.28), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(30, 95, 176, 0.35), transparent 60%), var(--ed8-navy-2); color: #fff; overflow: hidden; }
.ed8-video-section .ed8-kicker { color: #8cc2f5; }
.ed8-video-section .ed8-kicker-n { background: rgba(140, 194, 245, 0.12); border-color: rgba(140, 194, 245, 0.3); }
.ed8-video-head { max-width: 780px; margin-bottom: 40px; }
.ed8-video { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ed8-video-el, .ed8-video-cover { display: block; width: 100%; height: 100%; }
.ed8-video-el { object-fit: contain; background: #000; }
.ed8-video-cover { position: relative; padding: 0; border: 0; cursor: pointer; background: #000; }
.ed8-video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.3s ease, transform 0.8s var(--ed8-spring); }
.ed8-video-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 21, 48, 0.55), rgba(10, 21, 48, 0.05) 55%); pointer-events: none; }
.ed8-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 82px; height: 58px; margin: -29px 0 0 -41px; display: grid; place-items: center; border-radius: 16px; background: #e5303b; color: #fff; box-shadow: 0 12px 30px -6px rgba(229, 48, 59, 0.6); transition: transform 0.4s var(--ed8-spring); }
.ed8-video-time { position: absolute; z-index: 1; right: 14px; bottom: 14px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ed8-video-cover:hover .ed8-play { transform: scale(1.08); }
.ed8-video-cover:hover img { opacity: 1; transform: scale(1.015); }
.ed8-video-cover:active .ed8-play { transform: scale(0.95); }

/* Access */
.ed8-access { background: var(--bg, #fff); }
.ed8-access-head { max-width: 760px; }
.ed8-ways { display: grid; gap: 12px; margin-top: 36px; }
@media (min-width: 820px) { .ed8-ways { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.ed8-way { position: relative; display: grid; gap: 6px; height: 100%; padding: 22px 24px 24px; border-radius: 20px; text-decoration: none; color: inherit; background: var(--ed8-paper); border: 1px solid var(--ed8-line); transition: transform 0.45s var(--ed8-spring); }
.ed8-way:hover { transform: translate3d(0, -4px, 0); }
.ed8-way:active { transform: scale(0.98); }
.ed8-way-n { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 10px; background: var(--ed8-blue-deep); color: #fff; font-weight: 800; font-size: 0.9rem; }
.ed8-way-title { font-family: var(--ed8-serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.ed8-way-text { font-size: 0.95rem; line-height: 1.6; color: var(--ed8-ink-70); padding-right: 24px; }
.ed8-way-arrow { position: absolute; right: 20px; bottom: 20px; color: var(--ed8-blue); font-weight: 700; transition: transform 0.4s var(--ed8-spring); }
.ed8-way:hover .ed8-way-arrow { transform: translate3d(0, 3px, 0); }

.ed8-channel { display: grid; gap: 32px; margin-top: 88px; scroll-margin-top: 90px; }
#school-system { scroll-margin-top: 70px; }
@media (min-width: 1000px) {
  .ed8-channel { grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
  .ed8-channel-copy { position: sticky; top: 110px; }
  .ed8-channel-flip { grid-template-columns: 1fr 360px; }
  .ed8-channel-flip .ed8-channel-copy { order: 2; }
}
.ed8-channel-copy { display: grid; gap: 14px; align-content: start; font-size: 1rem; line-height: 1.7; color: var(--ed8-ink-70); }
.ed8-channel-copy .ed8-h3 { color: var(--ed8-navy); margin-bottom: 0; }
.ed8-channel-copy .ed8-btn { justify-self: start; margin-top: 8px; }
.ed8-channel-n { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ed8-blue-mid); }

.ed8-collage { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; grid-auto-flow: dense; }
@media (min-width: 600px) { .ed8-collage { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 14px; } }
@media (min-width: 1000px) { .ed8-collage { grid-auto-rows: 140px; } }
.ed8-tile { position: relative; display: flex; flex-direction: column; min-height: 0; }
.ed8-tile .ed8-img { flex: 1; min-height: 0; }
.ed8-tile .ed8-img img { height: 100%; object-fit: cover; }
.ed8-tile.is-wide { grid-column: span 2; }
.ed8-tile.is-tall { grid-row: span 2; }
.ed8-tile.is-tall3 { grid-row: span 3; }
.ed8-tile.is-big { grid-column: span 2; grid-row: span 2; }
.ed8-tile.is-contain .ed8-img { background: #efe7dc; }
.ed8-tile.is-contain .ed8-img img { object-fit: contain; }
.ed8-tile figcaption { position: absolute; left: 10px; right: 54px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(14, 27, 58, 0.82); color: #fff; font-size: 0.76rem; line-height: 1.35; pointer-events: none; }
.ed8-collage-library .ed8-tile:nth-child(3) .ed8-img img { object-position: center 35%; }
.ed8-collage-library .ed8-tile:nth-child(5) .ed8-img img { object-position: center 70%; }
@media (max-width: 599px) {
  .ed8-collage-library .ed8-tile.is-tall3 { grid-row: span 2; }
  .ed8-collage-library .ed8-tile.is-contain { grid-column: span 2; grid-row: span 3; }
}

/* Partner */
.ed8-partner-section { background: var(--bg-soft, #f6f9ff); }
.ed8-partner { position: relative; display: grid; gap: 36px; padding: 40px 28px; border-radius: 28px; overflow: hidden; color: rgba(255, 255, 255, 0.8); background: radial-gradient(70% 80% at 100% 0%, rgba(109, 123, 255, 0.55), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(59, 143, 230, 0.4), transparent 60%), #111a4a; box-shadow: 0 40px 80px -30px rgba(67, 84, 249, 0.45); }
@media (min-width: 900px) { .ed8-partner { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 64px; gap: 56px; } }
.ed8-partner-copy p:not(.ed8-kicker) { font-size: 1.04rem; line-height: 1.7; max-width: 56ch; }
.ed8-partner .ed8-kicker { color: #b5beff; }
.ed8-partner .ed8-kicker-n { background: rgba(181, 190, 255, 0.12); border-color: rgba(181, 190, 255, 0.3); }
.ed8-partner-stat { display: grid; justify-items: start; gap: 6px; padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.ed8-partner-num { font-family: var(--ed8-serif); font-weight: 800; font-size: clamp(3.6rem, 9vw, 5.6rem); line-height: 0.9; letter-spacing: -0.05em; color: #fff; }
.ed8-partner-lbl { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ed8-partner-stat img { width: 120px; margin-top: 18px; opacity: 0.9; }

/* Reach & final */
.ed8-reach { background: var(--bg, #fff); }
.ed8-reach-inner { display: grid; gap: 24px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--ed8-line); }
@media (min-width: 820px) { .ed8-reach-inner { grid-template-columns: 1fr auto; } }
.ed8-reach-num { font-family: var(--ed8-serif); font-weight: 800; font-size: clamp(4rem, 13vw, 8.5rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--ed8-blue-deep); }
.ed8-reach-lbl { margin-top: 18px !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ed8-ink-55); }
.ed8-reach-side { color: var(--ed8-ink-70); }
.ed8-reach-side .ed8-actions { margin-top: 14px; }
.ed8-final { padding-top: 64px; text-align: center; }

/* Lightbox */
.ed8-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 16px 24px; background: rgba(6, 12, 28, 0.9); cursor: zoom-out; animation: ed8-fade 0.25s ease; }
.ed8-lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 12px; cursor: default; animation: ed8-pop 0.4s var(--ed8-spring); }
.ed8-lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ed8-lightbox-close:focus-visible { outline: 3px solid #8cc2f5; outline-offset: 2px; }
@keyframes ed8-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ed8-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ed8-lightbox, .ed8-lightbox img { animation: none; } }

/* Site footer: Candid transparency seal */
.e8-candid { display: inline-block; margin-top: 18px; border-radius: 4px; line-height: 0; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.e8-candid img { width: 80px; height: 80px; display: block; box-shadow: 0 6px 16px -6px rgba(14, 27, 58, 0.25); }
.e8-candid:hover { transform: translate3d(0, -2px, 0); }
.e8-candid:active { transform: scale(0.97); }
.e8-candid:focus-visible { outline: 3px solid #3b8fe6; outline-offset: 3px; }
