/* smmtp Schools */
@font-face {
  font-family: "TT Norms Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tt-norms-pro-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "TT Norms Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tt-norms-pro-700-normal.woff2") format("woff2");
}

:root {
  --bg: #fff;
  --ink: #20231d;
  --muted: #60655c;
  --line: #daddd4;
  --surface: #fff;
  --blue: #285dce;
  --radius: 6px;
  --section-padding: 48px;
  --section-heading-gap: 32px;
  color-scheme: light;
  font-family: "TT Norms Pro", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0px;
  background: var(--bg);
  color: var(--ink);
}

button, input {
  font: inherit;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button[hidden] {
  display: none;
}

button, input {
  border-radius: var(--radius);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

h1, h2, h3, p {
  margin: 0px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, ::before, ::after {
    transition: none !important;
    animation: auto ease 0s 1 normal none running none !important;
  }
}

/* Typography. */
.school-editor,
.school-editor :is(button, input, textarea) {
  font-family: "TT Norms Pro", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}
.school-editor :is(h1, h2, h3, strong),
.school-editor .school-metric-value,
.school-editor .school-price {
  font-weight: 700;
}
.school-editor h1 {
  font-size: 72px;
  line-height: 74px;
}
.school-editor h2 {
  font-size: 48px;
  line-height: 56px;
}
.school-editor h3,
.school-editor .school-lead {
  font-size: 20px;
  line-height: 28px;
}
.school-editor .school-small,
.school-editor .school-footer {
  font-size: 14px;
  line-height: 20px;
}
.school-editor .school-price {
  font-size: 32px;
  line-height: 40px;
}
.school-editor .school-price-period {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
}
.school-editor .school-metric-value {
  font-size: 72px;
  line-height: 74px;
}
@media (max-width: 1000px) {
  .school-editor h1,
  .school-editor .school-metric-value {
    font-size: 48px;
    line-height: 56px;
  }
  .school-editor h2 {
    font-size: 32px;
    line-height: 40px;
  }
}
@media (max-width: 720px) {
  .school-editor h1,
  .school-editor .school-metric-value {
    font-size: 32px;
    line-height: 40px;
  }
  .school-editor h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .school-editor h3 {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Header and hero typography. */
.school-editor .school-header-v2 .school-logo-suffix {
  font-weight: 700;
  font-size: 51px;
  line-height: 56px;
  letter-spacing: -2px;
}
.school-editor .school-hero-v2 .school-hero-description,
.school-editor .school-hero-v2-monthly {
  font-size: 20px;
  line-height: 28px;
}
.school-editor .school-hero-v2-prices > p + p {
  font-size: 16px;
  line-height: 24px;
}
@media (max-width: 720px) {
  .school-editor .school-header-v2 .school-logo-suffix {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
  }
}

/* Schematic course popup: no additional heading levels. */
.school-editor .school-course-page-title { font-weight: 700; font-size: 32px; line-height: 40px; }
.school-editor .school-course-code-lines { font-size: 14px; line-height: 20px; }
@media (max-width: 720px) {
  .school-editor .school-course-page-title { font-size: 20px; line-height: 28px; }
}

/* Page layout. */
.school-editor { --ink: #10151c; --muted: #444a5b; --blue: #05f; --radius: 6px; color: var(--ink); background: #fff; }
.school-editor img { display: block; max-width: 100%; height: auto; }
.school-editor a, .school-editor button { touch-action: manipulation; }
.school-editor .school-wrap { width: min(1464px, 87.5%); margin-inline: auto; }
.school-editor .school-section { padding-block: 48px; }
.school-editor .school-surface { background: #f4f5f7; }
.school-editor .school-muted { color: #6b7085; }
.school-editor .school-skip { position: fixed; left: 20px; top: -100px; z-index: 30; padding: 12px 20px; background: #fff; border: 1px solid var(--ink); }
.school-editor .school-skip:focus { top: 12px; }
.school-editor .school-header { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 112px; }
.school-editor .school-logo { display: block; flex-shrink: 0; width: 225px; }
.school-editor .school-nav { display: flex; align-items: baseline; gap: 42px; }
.school-editor .school-nav a:hover, .school-editor .school-footer a:hover { color: var(--blue); }
.school-editor .school-header-cta { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.school-editor .school-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 42px 48px; }
.school-editor .school-hero-copy { min-width: 0; }
.school-editor .school-hero h1 span { color: var(--blue); }
.school-editor .school-hero-description { max-width: 680px; margin-top: 24px; color: var(--muted); }
.school-editor .school-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 32px; margin-top: 30px; }
.school-editor .school-button { display: inline-flex; justify-content: center; align-items: center; min-width: 260px; min-height: 60px; padding: 14px 28px; border: 0; border-radius: 6px; background: #10151c; color: #fff; }
.school-editor .school-button:hover:not(:disabled) { background: #252c37; }
.school-editor .school-button:disabled { opacity: .55; cursor: default; }
.school-editor .school-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.school-editor .school-link:hover { color: var(--blue); }
.school-editor .school-link span { display: inline-block; margin-left: 6px; }
.school-editor .school-hero-visual { min-width: 0; margin: 0; }
.school-editor .school-section h2 { max-width: 1180px; }
.school-editor .school-section-heading { max-width: 1040px; margin-bottom: 32px; }
.school-editor .school-section-heading > .school-lead { max-width: 960px; margin-top: 24px; color: var(--muted); }
.school-editor .school-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.school-editor .school-three > * { min-width: 0; }
.school-editor .school-problems { margin-top: 32px; gap: 48px; }
.school-editor .school-problems p, .school-editor .school-outcomes article > p { margin-top: 12px; color: var(--muted); }
.school-editor .school-outcomes { margin-top: 32px; gap: 48px; }
.school-editor .school-metric-value { color: var(--blue); }
.school-editor .school-workflow {
  --workflow-gap: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--workflow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.school-editor .school-workflow > li {
  position: relative;
  padding: 24px;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  background: #fff;
}
.school-editor .school-workflow > .school-human-step {
  border-color: #b4cbff;
  background: #edf3ff;
}
.school-editor .school-workflow-arrow {
  position: absolute;
  top: 50%;
  left: calc(100% + var(--workflow-gap) / 2);
  transform: translate(-50%, -50%);
  color: #6b7085;
}
.school-editor .school-workflow p { margin-top: 12px; color: var(--muted); }
.school-editor .school-workflow-repeat { margin-top: 24px; color: var(--muted); }
.school-editor .school-platform {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(328px, 1fr);
  align-items: center;
  gap: 64px;
}
.school-editor .school-platform-copy > .school-lead { margin-top: 24px; color: var(--muted); }
.school-editor .school-platform-copy > .school-link { display: inline-block; margin-top: 32px; }
.school-editor .school-platform-networks {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 24px;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  background: #f4f5f7;
}
.school-editor .school-platform-network-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.school-editor .school-platform-network-list > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.school-editor .school-platform-network-logo {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
}
.school-editor .school-platform-network-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.school-editor .school-platform-network-logo-dark {
  padding: 10px;
  border-radius: 12px;
  background: var(--ink);
}
.school-editor .school-platform-network-logo-dark img { filter: brightness(0) invert(1); }
.school-editor .school-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
  margin-top: 24px;
}
.school-editor .school-pricing { display: grid; gap: 16px; margin: 0; }
.school-editor .school-price { margin: 4px 0 0; color: var(--blue); }
.school-editor .school-price-period { color: #6b7085; }
.school-editor .school-pricing-note { margin-top: 16px; color: var(--muted); }
.school-editor .school-form { display: grid; gap: 12px; width: 100%; max-width: 480px; }
.school-editor .school-field { display: grid; gap: 8px; min-width: 0; }
.school-editor .school-form :is(input, textarea) { width: 100%; min-width: 0; padding: 12px 16px; border: 1px solid #c7ceda; border-radius: 6px; background: #fff; color: var(--ink); }
.school-editor .school-form input { height: 52px; }
.school-editor .school-form textarea { resize: vertical; }
.school-editor .school-form :is(input, textarea)::placeholder { color: #7b8293; opacity: 1; }
.school-editor .school-form > .school-button { justify-self: start; }
.school-editor .school-footer { display: flex; align-items: center; gap: 32px; padding-block: 32px; }
.school-editor .school-footer-brand { display: flex; align-items: center; gap: 24px; margin-right: auto; }
.school-editor .school-footer .school-logo { width: 106px; }
.school-editor .school-footer p { color: #6b7085; }
.school-editor .school-footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
@media (max-width: 1250px) {
 .school-editor .school-hero { grid-template-columns: minmax(0,1fr); gap: 32px; }
 .school-editor .school-hero-visual { width: 100%; max-width: 560px; justify-self: start; }
 .school-editor .school-three { gap: 24px; }
}
@media (max-width: 1000px) {
 .school-editor .school-header { min-height: 104px; }
 .school-editor .school-logo { width: 190px; }
 .school-editor .school-nav { gap: 24px; }
 .school-editor .school-nav > a:not(.school-header-cta) { display: none; }
 .school-editor .school-hero { grid-template-columns: minmax(0,1fr); padding-top: 32px; }
 .school-editor .school-hero .school-actions { gap: 20px; }
 .school-editor .school-hero .school-button { min-width: 220px; }
 .school-editor .school-workflow { --workflow-gap: 32px; }
 .school-editor .school-workflow > li { padding: 20px; }
 .school-editor .school-platform { grid-template-columns: minmax(0, 1fr); gap: 40px; }
 .school-editor .school-platform-networks { justify-self: center; }
 .school-editor .school-start-grid { gap: 32px; }
 .school-editor .school-footer { flex-wrap: wrap; }
 .school-editor .school-footer-brand { flex-basis: 100%; }
}
@media (max-width: 720px) {
 .school-editor .school-wrap { width: calc(100% - 40px); }
 .school-editor .school-section { padding-block: 32px; }
 .school-editor .school-header { min-height: 88px; gap: 16px; }
 .school-editor .school-logo { width: 152px; }
 .school-editor .school-hero { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 28px 32px; }
 .school-editor .school-hero-description { margin-top: 20px; }
 .school-editor .school-actions { align-items: stretch; flex-direction: column; gap: 20px; margin-top: 24px; }
 .school-editor .school-hero .school-actions { align-items: stretch; }
 .school-editor .school-button { min-width: 0; min-height: 58px; width: 100%; padding: 12px 18px; }
 .school-editor .school-actions > .school-link { width: fit-content; }
 .school-editor .school-hero-visual { width: 100%; max-width: 440px; margin-inline: auto; }
 .school-editor .school-section-heading { margin-bottom: 24px; }
 .school-editor .school-section-heading > .school-lead { margin-top: 16px; }
 .school-editor .school-three { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .school-editor .school-problems { margin-top: 24px; }
 .school-editor .school-problems article { display: block; }
 .school-editor .school-problems p { margin-top: 8px; }
 .school-editor .school-outcomes { margin-top: 24px; gap: 24px; }
 .school-editor .school-outcomes article > p { margin-top: 8px; }
 .school-editor .school-workflow { grid-template-columns: minmax(0, 1fr); }
 .school-editor .school-workflow-arrow {
   top: calc(100% + var(--workflow-gap) / 2);
   left: 50%;
   transform: translate(-50%, -50%) rotate(90deg);
 }
 .school-editor .school-workflow p { margin-top: 8px; }
 .school-editor .school-platform { gap: 32px; }
 .school-editor .school-platform-copy > .school-lead { margin-top: 16px; }
 .school-editor .school-platform-copy > .school-link { margin-top: 24px; }
 .school-editor .school-platform-networks { padding: 20px 12px; }
 .school-editor .school-platform-network-list { gap: 20px 8px; margin-top: 20px; }
 .school-editor .school-platform-network-logo { width: 48px; height: 48px; }
 .school-editor .school-start-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
 .school-editor .school-footer { padding-block: 25px; gap: 24px; }
 .school-editor .school-footer-brand { align-items: flex-start; flex-direction: column; gap: 16px; }
 .school-editor .school-footer nav { gap: 16px; }
}
@media (max-width: 380px) {
 .school-editor .school-wrap { width: calc(100% - 32px); }
 .school-editor .school-logo { width: 130px; }
 .school-editor .school-header { gap: 12px; }
}

/* Header and hero layout. */
.school-editor .school-header-v2 .school-logo { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.school-editor .school-header-v2 .school-logo img { width: 225px; }
.school-editor .school-header-v2 .school-logo-suffix { position: relative; top: -4px; left: -10px; color: #a0a4b1; }
.school-editor .school-hero-v2 { grid-template-columns: minmax(640px, 1.1fr) minmax(0, 1fr); align-items: end; padding-block: 42px 48px; }
.school-editor .school-hero-v2 .school-hero-description { max-width: 640px; margin-top: 32px; }
.school-editor .school-hero-v2-prices { display: grid; gap: 12px; margin-top: 32px; }
.school-editor .school-hero-v2-prices > p + p { color: var(--muted); }
.school-editor .school-hero-v2 .school-actions { flex-wrap: nowrap; gap: 32px; margin-top: 32px; }
.school-editor .school-hero-v2 .school-hero-visual { width: 100%; max-width: 640px; justify-self: end; }
.school-editor .school-hero-scheme { display: block; width: 100%; aspect-ratio: 1; background: #fff; }
.school-editor .school-hero-scheme img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1250px) {
  .school-editor .school-hero-v2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .school-editor .school-hero-v2 .school-hero-visual { max-width: 560px; justify-self: start; }
}
@media (max-width: 1000px) {
  .school-editor .school-header-v2 .school-logo img { width: 190px; }
  .school-editor .school-hero-v2 { padding-top: 32px; }
}
@media (max-width: 720px) {
  .school-editor .school-header-v2 .school-logo img { width: 152px; }
  .school-editor .school-header-v2 .school-logo-suffix { top: -2px; left: -7px; }
  .school-editor .school-hero-v2 { padding-block: 28px 32px; }
  .school-editor .school-hero-v2 .school-hero-description { margin-top: 24px; }
  .school-editor .school-hero-v2-prices { margin-top: 24px; }
  .school-editor .school-hero-v2 .school-actions { gap: 20px; margin-top: 32px; }
  .school-editor .school-hero-v2 .school-hero-visual { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .school-editor .school-header-v2 { flex-wrap: wrap; min-height: 88px; padding-block: 16px; gap: 8px; }
  .school-editor .school-header-v2 .school-nav { width: 100%; justify-content: flex-end; }
}
@media (max-width: 380px) {
  .school-editor .school-header-v2 .school-logo img { width: 130px; }
}
@media (min-width: 1251px) and (max-height: 800px) {
  .school-editor .school-hero-v2 { padding-top: 32px; padding-bottom: 48px; }
}


/* Compare the source article and post above the preparation stages. */
.school-editor .school-editor-example-heading { max-width: none; }
.school-editor .school-editor-example-grid { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: start; gap: 20px; }
.school-editor .school-editor-example-source { display: flex; flex-direction: column; align-self: stretch; margin: 0; }
.school-editor .school-editor-example-frame { position: relative; flex: 1; overflow: hidden; border-radius: 12px; background: #fff; }
/* Keep the screenshot top and crop the SourceCraft footer. */
.school-editor .school-editor-example-frame img { position: absolute; inset: 0 auto auto 0; width: 100%; max-height: 100%; aspect-ratio: 640 / 840; object-fit: cover; object-position: top; }
.school-editor .school-editor-example-label { margin-bottom: 12px; }
.school-editor .school-editor-example-arrow { align-self: center; color: #626a7b; }
.school-editor .school-editor-message-group { min-width: 0; overflow: hidden; border-radius: 12px; }
.school-editor .school-editor-channel { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; }
.school-editor .school-editor-channel > img { width: 32px; height: 32px; flex-shrink: 0; }
.school-editor .school-editor-chat { padding: 16px 16px 20px 24px; background: linear-gradient(135deg, #a6c7bd, #d5dfa4); }
.school-editor .school-editor-message { position: relative; border-radius: 12px 12px 12px 0; background: #fff; box-shadow: 0 1px 2px #203d3026; }
.school-editor .school-editor-message::before { content: ""; position: absolute; bottom: 0; left: -8px; width: 9px; height: 16px; background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.school-editor .school-editor-message > img { width: 100%; height: auto; border-radius: 12px 12px 0 0; }
.school-editor .school-editor-caption { padding: 12px 14px 16px; }
.school-editor .school-editor-caption p + p { margin-top: 12px; }
.school-editor .school-editor-caption a { color: #2481cc; }
.school-editor .school-editor-caption a:hover { text-decoration: underline; }
.school-editor .school-editor-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.school-editor .school-editor-stages p { margin-top: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .school-editor .school-editor-example-grid { gap: 16px; }
  .school-editor .school-editor-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .school-editor .school-editor-example-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .school-editor .school-editor-example-arrow { display: none; }
  .school-editor .school-editor-example-frame { flex: none; aspect-ratio: 640 / 840; }
  .school-editor .school-editor-channel { padding: 12px; }
  .school-editor .school-editor-channel > img { width: 28px; height: 28px; }
  .school-editor .school-editor-chat { padding: 12px 12px 16px 20px; }
  .school-editor .school-editor-stages { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .school-editor .school-editor-stages p { margin-top: 8px; }
}

/* Isolated course preview: a schematic course page inside a native dialog. */
.school-editor .school-course-preview { width: min(1060px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dce1ea; border-radius: 12px; background: #fff; color: var(--ink); overflow: auto; }
.school-editor .school-course-preview::backdrop { background: rgb(16 21 28 / 72%); }
.school-editor:has(.school-course-preview[open]) { overflow: hidden; }
.school-editor .school-course-browser-bar { display: flex; align-items: center; gap: 16px; padding: 12px; background: #eef0f3; }
.school-editor .school-course-address { min-width: 0; flex: 1; padding: 8px 12px; border: 1px solid #dce1ea; border-radius: 6px; background: #fff; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.school-editor .school-course-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; flex-shrink: 0; padding: 8px 12px; border: 1px solid #dce1ea; background: #fff; color: var(--ink); }
@media (max-width: 720px) {
  .school-editor .school-course-preview { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .school-editor .school-course-browser-bar { gap: 8px; padding: 8px; }
  .school-editor .school-course-address { padding: 8px; }
  .school-editor .school-course-close { padding-inline: 8px; }
}

.school-editor .school-course-page { padding: 40px; }
.school-editor .school-course-page-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.school-editor .school-course-page-copy { min-width: 0; }
.school-editor .school-course-page-copy > p + p { max-width: 360px; margin-top: 16px; color: var(--muted); }
.school-editor .school-course-page-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; padding: 10px 20px; border-radius: 6px; background: #05f; color: #fff; }
.school-editor .school-course-code { min-width: 0; overflow: hidden; border: 1px solid #dce4f2; border-radius: 8px; background: #f1f5ff; }
.school-editor .school-course-code-bar { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid #dce4f2; background: #e8eef8; }
.school-editor .school-course-code-bar > span { width: 6px; height: 6px; border-radius: 50%; background: #aebed7; }
.school-editor .school-course-code-lines { display: grid; gap: 8px; padding: 20px; color: #315fba; }
.school-editor .school-course-program { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.school-editor .school-course-program > li { display: grid; gap: 4px; padding: 20px; border-radius: 8px; background: #f4f5f7; }
.school-editor .school-course-program .school-small { color: var(--muted); }
@media (max-width: 720px) {
  .school-editor .school-course-page { padding: 20px; }
  .school-editor .school-course-page-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .school-editor .school-course-page-copy > p + p { margin-top: 12px; }
  .school-editor .school-course-page-cta { margin-top: 16px; }
  .school-editor .school-course-code-lines { gap: 4px; padding: 12px; }
  .school-editor .school-course-code-bar { padding: 10px 12px; }
  .school-editor .school-course-program { gap: 8px; margin-top: 20px; }
  .school-editor .school-course-program > li { padding: 12px; }
}

@media (max-width: 380px) {
  .school-editor .school-course-program { grid-template-columns: minmax(0, 1fr); }
  .school-editor .school-course-program > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
}

/* Materials database and its native category disclosure. */
.school-editor .school-materials-stats {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 64px;
  margin-bottom: 24px;
}
.school-editor .school-materials-stats > div > p + p {
  margin-top: 8px;
  color: var(--muted);
}
.school-editor .school-materials-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.school-editor .school-materials-categories > li {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f4f5f7;
  overflow-wrap: anywhere;
}
.school-editor .school-materials-extra,
.school-editor .school-materials-extra .school-materials-categories,
.school-editor .school-materials-note {
  margin-top: 16px;
}
.school-editor .school-materials-extra summary {
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}
.school-editor .school-materials-extra summary > span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.school-editor .school-materials-extra:not([open]) .school-materials-hide,
.school-editor .school-materials-extra[open] .school-materials-show {
  display: none;
}
@media (max-width: 720px) {
  .school-editor .school-materials-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Compare the original posts with the two independent card fans. */
.school-editor .school-card-comparison > h3,
.school-editor .school-card-comparison-caption {
  text-align: center;
}
.school-editor .school-card-comparison + .school-card-comparison {
  margin-top: 48px;
}
.school-editor .school-card-comparison-pair {
  --comparison-visual-width: 84%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
  margin-top: 20px;
}
.school-editor .school-card-comparison-column {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-width: 0;
  align-items: start;
}
.school-editor .school-card-comparison-caption,
.school-editor .school-card-comparison-post {
  width: var(--comparison-visual-width);
  margin-inline: auto;
}
.school-editor .school-card-original-post {
  border: 1px solid #dce1ea;
  border-radius: 12px;
}
.school-editor .school-card-comparison-post.school-editor-message-group {
  border: 1px solid #dce1ea;
}
.school-editor .school-card-fan-stage {
  position: relative;
  isolation: isolate;
  padding-bottom: 16px;
}
.school-editor .school-card-fan-active,
.school-editor .school-card-fan-neighbor {
  width: var(--comparison-visual-width);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgb(16 21 28 / 16%);
}
.school-editor .school-card-fan-active {
  position: relative;
  z-index: 1;
  display: block;
  margin-inline: auto;
}
.school-editor .school-card-fan-neighbor {
  position: absolute;
  top: 0;
  left: calc((100% - var(--comparison-visual-width)) / 2);
  padding: 0;
  border: 0;
  background: transparent;
}
.school-editor .school-card-fan-left {
  transform: translateX(-8%) rotate(-4deg) scale(.93);
}
.school-editor .school-card-fan-right {
  transform: translateX(8%) rotate(4deg) scale(.93);
}
.school-editor .school-card-fan-stage img {
  width: 100%;
  border-radius: inherit;
}
.school-editor .school-card-fan-controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.school-editor .school-card-fan-controls > button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cbd2df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.school-editor .school-card-fan-controls > button:hover {
  background: #f4f5f7;
}
.school-editor .school-card-fan-counter {
  color: var(--muted);
}
.school-editor .school-card-effort-badge {
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eef3ff;
  text-align: center;
}
.school-editor .school-card-comparison-summary {
  margin-top: 40px;
  padding: 32px;
  border-radius: 12px;
  background: #eef3ff;
}
.school-editor .school-card-comparison-summary .school-lead {
  max-width: 920px;
  margin-top: 12px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .school-editor .school-card-comparison-pair {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .school-editor .school-card-comparison-column {
    grid-row: auto;
    grid-template-rows: none;
    gap: 16px;
  }
}
@media (720px < width <= 1100px) {
  .school-editor .school-card-comparison-pair {
    max-width: 620px;
    margin-inline: auto;
  }
}
@media (max-width: 720px) {
  .school-editor .school-card-comparison + .school-card-comparison { margin-top: 32px; }
  .school-editor .school-card-comparison-summary { margin-top: 32px; padding: 20px; }
  .school-editor .school-card-comparison-summary .school-lead { margin-top: 8px; }
}

/* HTML Academy case. */
.school-editor .school-academy-case {
  color: #fff;
  background: #142956;
}
.school-editor .school-academy-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.school-editor .school-academy-case-intro {
  max-width: 55ch;
  margin-top: 16px;
  color: #dce6ff;
}
.school-editor .school-academy-case-metrics,
.school-editor .school-academy-case-covers {
  padding: 0;
  list-style: none;
}
.school-editor .school-academy-case-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 28px;
}
.school-editor .school-academy-case-ratio {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 72px;
  line-height: 74px;
}
.school-editor .school-academy-case-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin: 0;
  justify-self: end;
}
.school-editor .school-academy-case-covers a {
  display: block;
  border-radius: 8px;
}
.school-editor .school-academy-case-covers img {
  width: 100%;
  border-radius: inherit;
}
.school-editor .school-academy-case-covers a:focus-visible {
  outline-color: #b9ccff;
}

@media (max-width: 1200px) {
  .school-editor .school-academy-case-grid { gap: 32px; }
  .school-editor .school-academy-case-ratio {
    font-size: 48px;
    line-height: 56px;
  }
}
@media (max-width: 900px) {
  .school-editor .school-academy-case-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .school-editor .school-academy-case-covers { justify-self: start; }
  .school-editor .school-academy-case-metrics {
    justify-content: start;
    column-gap: 32px;
  }
}
@media (max-width: 720px) {
  .school-editor .school-academy-case-grid { gap: 24px; }
  .school-editor .school-academy-case-metrics {
    gap: 12px 8px;
    justify-content: space-between;
    font-size: 16px;
    line-height: 24px;
  }
  .school-editor .school-academy-case-ratio {
    font-size: 32px;
    line-height: 40px;
  }
  .school-editor .school-academy-case-covers { gap: 12px; }
}
@media (max-width: 350px) {
  .school-editor .school-academy-case-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .school-editor .school-academy-case-metrics > li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }
  .school-editor .school-academy-case-ratio { margin-bottom: 0; }
}
