/* Practical information is grouped around choosing, checking and arranging a class.
   Unslop by Damir Sokolovsky — https://heydamir.design/unslop — CC BY 4.0. */
.education-page {
  --header-h: var(--school-header-h);
  --space-section: clamp(64px, 7vw, 104px);
  --space-block: clamp(32px, 4vw, 56px);
}
html:has(.education-page) {
  --school-header-h: 72px;
  --school-nav-h: 56px;
  scroll-padding-top: calc(var(--school-header-h) + var(--school-nav-h) + 20px);
}
.education-page .site-header { height: var(--header-h); }
.education-page .site-header:not(.menu-active) { background: var(--white); }
.education-page .site-header::after { content: none; }
.education-page .breadcrumb { display: none; }
.education-page #main { padding-top: calc(var(--header-h) + var(--school-nav-h)); }

/* Keep the introduction on one quiet, aligned surface. */
.education-page .page-hero-flow { min-height: 0; padding-top: 64px; padding-bottom: 40px; background: var(--white); }
.education-page .page-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.education-page .page-hero-content > .eyebrow { display: none; }
.education-page .page-hero h1.site-title { grid-column: 1; grid-row: 1; font-size: clamp(40px, 4vw, 56px); line-height: 1.5; text-shadow: none; }
.education-page .hero-detail { display: contents; }
.education-page .hero-detail-text { grid-column: 2; grid-row: 1 / 3; padding: 0; border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.education-page .hero-detail-text p { line-height: 1.9; }
.education-page .hero-actions { grid-column: 1; grid-row: 2; align-self: end; gap: 16px 24px; margin-top: 32px; }
.education-page .hero-actions .button { background: var(--blue-text); }
.education-page .hero-actions .button::before { background: var(--ink); }
.education-page .school-facts { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr .8fr; max-width: none; margin-top: 40px; background: transparent; }
.education-page .school-facts div { grid-template-columns: 40px minmax(0,1fr); gap: 8px; padding: 16px 24px; border-left: 0; }
.education-page .school-facts div:first-child { padding-left: 0; }
.education-page .school-facts dt { font-size: 14px; letter-spacing: 0; }
.education-page .school-facts dd { color: var(--ink); }

/* The page navigation stays directly under the shared header at every size. */
.school-subheader {
  position: fixed;
  z-index: 90;
  inset: var(--header-h) 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--school-nav-h);
  padding-inline: var(--side);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.school-subheader-title { flex-shrink: 0; margin: 0; font-family: var(--jp); font-size: 16px; font-weight: 500; }
.education-page .page-nav { position: static; min-width: 0; padding: 0; border: 0; background: transparent; }
.education-page .page-nav ul { display: flex; flex-wrap: nowrap; gap: 28px; padding: 0; overflow: visible; }
.education-page .page-nav a { justify-content: center; min-height: var(--school-nav-h); padding: 0; gap: 0; font-size: 14px; }
.education-page .page-nav a span { color: inherit; font-size: inherit; transform: none; transition: none; }
.education-page .page-nav .school-nav-short { display: none; }
.menu-open .school-subheader { visibility: hidden; }

/* ---- Page body --------------------------------------------------------
   One rail runs through every section: the heading sits in the narrow left
   column and the content in the wide right column. Full-width rows (the
   cycle, the programme cards, the steps) break out of it. */
.education-page .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.education-page .edu-philosophy,
.education-page .edu-educators,
.education-page .school-conditions { background: var(--white); }
.education-page .edu-philosophy { border-top: 1px solid var(--line); }
.edu-rail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 24px 48px; align-items: start; }
.edu-rail > * { min-width: 0; }
.education-page .section h2:not(.edu-kicker) { margin: 0; font-family: var(--display); font-size: var(--fs-display-m); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.edu-head { margin-bottom: 40px; align-items: end; }
.edu-head > p,
.edu-rail > div > h3 + p,
.edu-process-intro > p,
.edu-cycle-intro > p { margin: 0; max-width: 40em; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.edu-rail > div > h3 + p { margin-top: 16px; }
.edu-head > p { padding-bottom: .35em; }
.edu-block { margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(32px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.edu-rail > h3,
.edu-rail > div > h3 { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.5; letter-spacing: .01em; }
.edu-kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--blue-text); font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; line-height: 1.6; letter-spacing: .06em; }
.edu-kicker::before { content: ""; flex: 0 0 28px; height: 1px; background: var(--blue); }

/* The philosophy is the page's main statement, so it is set largest. */
.edu-philosophy .edu-kicker { padding-top: 1.3em; }
.edu-statement .lead { font-size: clamp(32px, 4vw, 56px); line-height: 1.5; }
.edu-statement .intro-body { max-width: 40em; margin-top: clamp(32px, 3.4vw, 48px); }
.edu-statement .intro-body p { color: var(--ink-soft); }
.edu-cycle { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(32px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.edu-cycle-intro { align-items: end; margin-bottom: 32px; }
.edu-cycle-intro .edu-kicker { margin-bottom: 20px; }
.edu-cycle-intro > p { padding-bottom: .3em; }
/* The cycle and the steps to a class share one look: ruled columns, no boxes. */
.education-page .learning-cycle { gap: 0; border-top: 1px solid var(--line); }
.education-page .learning-cycle li { min-height: 0; padding: 24px 24px 8px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.education-page .learning-cycle li:first-child { padding-left: 0; border-left: 0; }
.education-page .learning-cycle li:last-child { padding-right: 0; }
.education-page .learning-cycle li::after { content: none; }
.education-page .learning-cycle li > span { font-weight: 400; letter-spacing: .12em; }
.education-page .learning-cycle h4 { margin: 20px 0 12px; font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.45; }
.education-page .learning-cycle p { font-size: var(--fs-small); line-height: 1.9; }

/* Programmes */
.education-page .program-paths-compact .program-path { min-height: 0; padding: 28px; background: var(--white); }
.education-page .program-path h3 { margin: 20px 0 16px; font-size: var(--fs-display-xs); line-height: 1.5; }
.education-page .program-path > p:not(.program-path-label) { margin-bottom: 24px; }
.education-page .program-common { max-width: 56em; margin-top: 28px; }
.education-page .program-related { justify-content: flex-start; margin-top: 28px; }
.education-page .usecase-list li { display: block; padding: 16px 0; }
.education-page .usecase-list p { font-family: var(--jp); font-size: var(--fs-body-lg); font-weight: 400; line-height: 1.8; letter-spacing: 0; }
.education-page .usecase-note { max-width: 48em; margin-top: 20px; padding-left: 0; color: var(--muted); font-size: var(--fs-body); }
.education-page .usecase-note::before { content: none; }
.edu-forms article { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.edu-forms h4 { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.6; }
.edu-forms p { grid-column: 2; margin: 0; color: var(--ink-soft); font-family: var(--jp); font-size: var(--fs-body); line-height: 1.9; }
.edu-forms ul { grid-column: 2; display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: var(--muted); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.8; }
.edu-forms li:not(:last-child)::after { content: "／"; margin-inline: .5em; color: var(--line-strong); }
/* A block's heading and its first row start on the same line, under one rule. */
.edu-rail > :is(.spec, .edu-forms),
.edu-rail .usecase-list { border-top: 0; }
.education-page .edu-rail > :is(.spec, .edu-forms) > :first-child,
.education-page .edu-rail .usecase-list > li:first-child { padding-top: 0; }
.education-page .edu-rail > .spec > div { align-items: baseline; }

/* For teachers */
.education-page .value-grid { gap: 32px; }
.education-page .value-grid article { padding-top: 24px; }
.education-page .value-grid h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.5; }
.edu-prose { max-width: 44em; }
.edu-prose p { margin: 0 0 20px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.edu-prose p:last-child { margin-bottom: 0; }

/* Case */
/* The case lines up with the rail used by the rest of the page. */
.education-page .bunri-feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 24px 48px; }

/* Conditions, roles and the steps to a class */
.education-page .outline-lead { max-width: 26em; margin-top: 24px; color: var(--muted); }
.education-page .school-conditions .spec div { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 20px 0; }
.education-page .school-conditions .spec dt { color: var(--blue-text); font-weight: 500; }
.education-page .school-conditions .spec dd { color: var(--ink-soft); }
.education-page .school-conditions .price-detail-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 8px; color: var(--blue-text); }
.education-page .edu-process-intro { align-items: end; margin-bottom: 32px; }
.education-page .school-process .process-steps li { min-height: 0; padding-top: 24px; padding-bottom: 24px; }
.education-page .school-process .process-steps li > div { margin-top: 20px; }
.education-page .school-process .process-steps h4 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: .01em; }
.education-page .school-process .process-steps p { font-size: var(--fs-small); line-height: 1.9; }
.education-page .school-inline-consult { margin: 40px 0 0; }
.education-page .school-inline-consult .button { background: var(--blue-text); }
.education-page .school-inline-consult .button::before { background: var(--ink); }
.education-page .faq-list summary { min-height: 64px; padding-block: 20px; }

@media (max-width: 1100px) {
  .education-page .page-nav ul { gap: 20px; }
  .education-page .page-hero-content { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 32px; }
  .education-page .hero-actions { flex-direction: column; align-items: stretch; }
  .education-page .hero-actions .text-link { width: 100%; }
  .education-page .school-facts { grid-template-columns: 1.25fr 1fr 1fr; }
  .education-page .school-facts div { padding-inline: 16px; }
  .edu-rail,
  .education-page .bunri-feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 32px; }
  /* Five steps never fill two or three columns evenly, so they become rows. */
  .education-page .learning-cycle { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line); }
  .education-page .learning-cycle li,
  .education-page .learning-cycle li:first-child,
  .education-page .learning-cycle li:last-child { display: grid; grid-template-columns: 132px minmax(0,1fr); grid-template-rows: auto 1fr; gap: 6px 24px; padding: 20px 0; border: 0; border-top: 1px solid var(--line); }
  .education-page .learning-cycle li:first-child { border-top: 0; }
  .education-page .learning-cycle li > span { grid-column: 1; }
  .education-page .learning-cycle h4 { grid-column: 1; margin: 0; font-size: 20px; }
  .education-page .learning-cycle p { grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-body); }
}

@media (max-width: 760px) {
  html:has(.education-page) { --school-nav-h: 48px; }
  .education-page { --space-section: 56px; }
  .education-page .page-hero-flow { padding-top: 40px; padding-bottom: 24px; }
  .education-page .page-hero-content { display: block; }
  .education-page .page-hero-content > .eyebrow { margin-bottom: 24px; }
  .education-page .page-hero h1.site-title { font-size: clamp(34px,9.6vw,46px); line-height: 1.38; }
  .education-page .hero-detail { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
  .education-page .hero-detail-text p { font-size: 15px; }
  .education-page .hero-detail-text .hero-detail-note { font-size: 14px; }
  .education-page .hero-actions { width: 100%; margin-top: 0; gap: 12px; }
  .education-page .school-facts { display: block; margin-top: 24px; }
  .education-page .school-facts div,
  .education-page .school-facts div:first-child { grid-template-columns: 40px minmax(0,1fr); padding: 12px 0; border-left: 0; }
  .school-subheader { gap: 0; }
  .school-subheader-title { display: none; }
  .education-page .page-nav { width: 100%; }
  .education-page .page-nav ul { justify-content: space-between; gap: 8px; }
  .education-page .page-nav a { min-height: var(--school-nav-h); font-size: 13px; white-space: nowrap; }
  .education-page .page-nav .school-nav-full { display: none; }
  .education-page .page-nav .school-nav-short { display: inline; }
  .edu-rail,
  .education-page .bunri-feature { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .edu-head { margin-bottom: 28px; }
  .edu-head > p, .edu-cycle-intro > p { padding-bottom: 0; }
  .edu-block { margin-top: 40px; padding-top: 28px; }
  .edu-philosophy .edu-kicker { padding-top: 0; }
  .edu-statement .lead { font-size: clamp(28px, 7.6vw, 36px); }
  .edu-statement .intro-body { margin-top: 24px; }
  .edu-cycle { margin-top: 40px; padding-top: 28px; }
  .edu-cycle-intro { margin-bottom: 20px; }
  .edu-cycle-intro .edu-kicker { margin-bottom: 12px; }
  .education-page .learning-cycle li,
  .education-page .learning-cycle li:first-child,
  .education-page .learning-cycle li:last-child { grid-template-columns: 96px minmax(0,1fr); gap: 6px 16px; padding: 16px 0; }
  .education-page .learning-cycle li > span { font-size: 10px; letter-spacing: 0; }
  .education-page .learning-cycle h4 { font-size: 18px; }
  .education-page .program-paths-compact .program-path { padding: 24px; }
  .education-page .program-path h3 { margin: 16px 0 12px; }
  .education-page .program-path ul { margin-top: 0; }
  .edu-forms article { display: block; padding: 20px 0; }
  .edu-forms h4 { margin: 0 0 8px; }
  .edu-forms ul { margin-top: 8px; }
  .education-page .edu-rail > :is(.spec, .edu-forms) > :first-child,
  .education-page .edu-rail .usecase-list > li:first-child { padding-top: 8px; }
  .education-page .value-grid { gap: 0; }
  .education-page .value-grid article { padding: 20px 0 24px; }
  .education-page .learning-cycle { border-bottom: 0; }
  .education-page .school-conditions .spec div { grid-template-columns: 5.5em minmax(0,1fr); gap: 16px; padding: 16px 0; }
  .education-page .school-process .process-steps li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 16px; padding: 20px 0; }
  .education-page .school-process .process-steps li > div { margin: 0; }
  .education-page .school-process .step-no { padding-top: 8px; }
  .education-page .school-inline-consult { margin-top: 28px; }
  .education-page .school-inline-consult .button { width: 100%; }
  .education-page .faq-list summary { font-size: 16px; }
  .education-page .faq-list .faq-body { padding-right: 24px; }
}

@media (max-width: 359px) {
  .education-page .page-nav ul { gap: 4px; }
  .education-page .page-nav a { font-size: 12px; }
  .education-page .school-conditions .spec div { grid-template-columns: 1fr; gap: 8px; }
}

@media print {
  .school-subheader { display: none; }
  .education-page #main { padding-top: 0; }
  .education-page .page-hero-content { display: block; }
}
