.education-home {
  --paper: #ffffff;
  --ink: #142842;
  --muted: #46576a;
  --green: #194794;
  --dark: #142842;
  --line: #d7e1eb;
  --ice: #edf3fa;
  --lime: #dbeaff;
  --home-display: "Avenir Next", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--paper);
}

.education-home h1,
.education-home h2 {
  font-family: var(--home-display);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.042em;
  text-wrap: balance;
}

html[lang^=zh] .education-home h1,
html[lang^=zh] .education-home h2 {
  font-family: var(--home-display);
  letter-spacing: -.025em;
}

.education-home h2 { font-size: clamp(1.75rem, 3.2vw, 2.85rem); }
.education-home h3 { font-family: var(--home-display); letter-spacing: -.025em; }
.education-home .home-section { padding-block: clamp(43px, 6vw, 82px); }
.home-section-intro { max-width: 61ch; }
.home-section-intro > p { margin-top: 12px; color: var(--muted); }
.education-home .masthead { gap: 14px; }
.education-home .brand small { letter-spacing: .07em; }
.education-home .masthead nav .nav-official {
  background: transparent;
  border: 0;
  color: var(--green);
  padding-inline: 0;
}
.education-home .masthead nav .nav-official:hover { background: transparent; text-decoration: underline; }
.education-home .lang { background: var(--ice); }
.education-home .learning-menu { background: var(--paper); box-shadow: 0 12px 24px #14284214; }
.education-home .learning-menu-inner > .label { display: none; }
.education-home .learning-menu-links { margin-top: 0; }
.education-home :focus-visible { outline-color: var(--green); }

.front-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  margin-top: 32px;
  background: var(--dark);
  color: white;
  border-radius: 4px;
  overflow: hidden;
}
.cover-copy { padding: clamp(30px, 4vw, 58px); align-self: center; }
.cover-audience { color: #dbeaff; font-size: .92rem; font-weight: 650; }
.front-cover h1 {
  font-size: clamp(2.2rem, 4.4vw, 4.1rem);
  margin: 14px 0 18px;
  white-space: pre-line;
}
.cover-intro { max-width: 48ch; color: #e1eaf4; line-height: 1.7; }
.cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 25px; }
.home-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: .91rem;
  font-weight: 730;
  text-decoration: none;
}
.home-button:hover { background: var(--lime); }
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 650;
  font-size: .9rem;
  text-underline-offset: 4px;
}
.home-link svg { flex: none; width: 16px; height: 16px; }
.cover-actions .home-link, .contact-options .home-link { color: #e1eaf4; }
.front-cover :focus-visible, .home-contact :focus-visible { outline-color: #ffdf83; }
.cover-photo { display: flex; flex-direction: column; min-width: 0; background: var(--ice); }
.cover-photo img { width: 100%; height: 100%; min-height: 0; flex: 1; object-fit: cover; object-position: center; }
.cover-photo figcaption { padding: 9px 14px; color: var(--muted); font-size: .78rem; }

.highlights-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px 22px; margin-bottom: 16px; }
.education-home .highlight-controls {
  flex: none;
  gap: 9px;
  padding: 0;
  background: none;
  border: 0;
}
.education-home .highlights .slide-count {
  color: var(--muted);
  font: 600 .85rem/1.4 var(--home-display);
  font-variant-numeric: tabular-nums;
}
.education-home .highlight-button {
  color: var(--ink);
  background: var(--ice);
  border-radius: 4px;
  min-width: 40px;
  min-height: 40px;
}
.education-home .highlight-button:hover { background: var(--lime); }
.education-home .highlight-slide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: auto;
  background: var(--ice);
  border-radius: 4px;
  overflow: hidden;
}
.education-home .highlight-photo { background: #dbe7f4; border: 0; }
.education-home .highlight-photo img { flex: 0 0 auto; aspect-ratio: auto; object-fit: contain; background: transparent; }
.education-home .highlights .highlight-photo figcaption { padding: 9px 14px; background: transparent; color: var(--muted); }
.education-home .highlight-copy { padding: clamp(19px, 3.2vw, 45px); }
.education-home .highlight-kicker { font: 650 .86rem/1.4 var(--home-display); color: var(--green); letter-spacing: 0; }
.education-home .highlight-copy h3 { font: 700 clamp(1.45rem, 2.85vw, 2.35rem)/1.15 var(--home-display); color: var(--ink); margin: 7px 0 10px; }
.education-home .highlight-description { color: var(--muted); font-size: .96rem; max-width: 55ch; }
.education-home .highlight-badges {
  display: flex;
  gap: 5px 11px;
  margin: 12px 0 13px;
}
.education-home .highlight-badges li, .education-home .highlight-badges li:first-child {
  color: var(--ink);
  font-size: .81rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.education-home .highlight-badges li+li { border-inline-start: 1px solid #9cadc0; border-radius: 0; padding-inline-start: 11px; }
.education-home .highlight-source, .education-home .press-clipping { color: var(--green); font-size: .83rem; }
.education-home .press-clipping { background: white; border-color: var(--line); }
.education-home .press-clipping:hover { background: var(--lime); }
.research-mark { display: grid; align-content: center; justify-items: center; min-height: 190px; padding: 22px; background: #dbe7f4; color: var(--dark); text-align: center; }
.research-mark strong { font: 700 clamp(3.2rem, 7vw, 6.6rem)/1 var(--home-display); letter-spacing: -.07em; }
.research-mark span { margin-top: 8px; }

.home-learning { background: var(--ice); }
.lesson { margin-top: 22px; background: var(--paper); border-radius: 4px; }
.lesson-tabs { display: flex; flex-wrap: wrap; column-gap: 8px; padding: 0 clamp(14px, 3vw, 38px); border-bottom: 1px solid var(--line); }
.lesson-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px clamp(6px, 1.3vw, 16px); cursor: pointer; font: 650 .92rem/1.35 var(--home-display); }
.lesson-tabs button[aria-selected=true] { border-bottom-color: var(--green); color: var(--green); }
.lesson-tabs button:hover { background: var(--ice); }
.lesson-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; padding: clamp(19px, 3vw, 39px); }
.lesson-platform { color: var(--green); font-size: .83rem; font-weight: 640; margin-bottom: 8px; }
.lesson-description h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); margin-bottom: 10px; }
.lesson-description > p:not(.lesson-platform) { color: var(--muted); max-width: 62ch; }
.lesson-description a { margin-top: 15px; }
.lesson-work { color: var(--muted); padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.lesson-work ol { padding-inline-start: 1.45em; color: var(--ink); }
.lesson-work li + li { margin-top: 3px; }
.lesson-work strong { display: block; color: var(--ink); margin-top: 10px; }
.sample-link { margin-top: 14px; }

.school-guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(24px, 6vw, 88px); }
.curriculum-fit { margin: 20px 0 0; }
.curriculum-fit dt { font-weight: 700; }
.curriculum-fit dd { margin: 3px 0 0; color: var(--muted); }
.school-options article { border-top: 1px solid var(--line); padding: 14px 0 18px; }
.school-options article:last-child { border-bottom: 1px solid var(--line); }
.school-options h3 { font-size: 1.24rem; }
.school-options p { margin-top: 5px; color: var(--muted); }
.school-options .option-duration { color: var(--green); font-size: .83rem; font-weight: 650; }
.school-options a { margin-top: 7px; }
.school-questions { margin-top: 14px; }
.school-questions details { padding: 9px 0; }
.school-questions summary { color: var(--ink); cursor: pointer; font-weight: 650; }
.school-questions p { margin-top: 6px; color: var(--muted); }
.home-funding { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 16px 45px; padding: clamp(20px, 4vw, 44px); background: var(--ice); border-radius: 4px; }
.home-funding h2 { font-size: clamp(1.4rem, 2.65vw, 2.1rem); margin-bottom: 9px; }
.home-funding p { color: var(--muted); }
.home-funding a { margin-top: 9px; }
.home-funding aside { padding-inline-start: 21px; border-inline-start: 1px solid #adc2dd; }
.home-funding h3 { font-size: 1.05rem; margin-bottom: 6px; }
.home-team { display: flex; align-items: center; gap: clamp(18px, 4vw, 54px); }
.home-team img { width: clamp(88px, 12vw, 156px); height: auto; }
.home-team a { margin-top: 10px; }
.home-contact { background: var(--dark); color: white; }
.contact-layout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 34px; padding-block: clamp(29px, 5vw, 60px); }
.contact-layout p { color: #e1eaf4; }
.contact-options { display: grid; justify-items: start; gap: 8px; }
.contact-options small { color: #e1eaf4; }
.home-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px 20px; padding-block: 21px; font-size: .85rem; }
.home-footer > div:last-child { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.home-footer p { color: var(--muted); }
.home-footer a { font-size: .85rem; }

@media (max-width: 960px) {
  .front-cover { grid-template-columns: 1fr; }
  .front-cover { margin-top: 18px; }
  .cover-copy { padding: 24px clamp(16px, 5vw, 30px); }
  .front-cover h1 { font-size: clamp(2rem, 7vw, 3.1rem); margin: 10px 0 12px; }
  .cover-actions { margin-top: 17px; }
  .cover-photo img { flex: none; height: auto; }
}

@media (max-width: 760px) {
  .education-home .highlight-slide, .school-guide, .home-funding, .lesson-panel { grid-template-columns: 1fr; }
  .highlights-heading { flex-wrap: wrap; }
  .education-home .highlight-photo img { aspect-ratio: 16 / 9; height: auto; }
  .lesson-work, .home-funding aside { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}

@media (max-width: 370px) {
  .lesson-tabs { padding-inline: 6px; column-gap: 0; }
  .lesson-tabs button { font-size: .76rem; }
}
