:root {
  --ink: #15212b;
  --ink-2: #22333f;
  --paper: #fbf7f0;
  --surface: #fffdf9;
  --orange: #e8732e;
  --orange-dark: #c85a1d;
  --pink: #cf4f7c;
  --green: #2e7a5f;
  --blue: #2f5e86;
  --muted: #6d645a;
  --line: #e5ddd1;
  --line-dark: rgba(255, 255, 255, 0.16);
  --radius: 8px;
  --shadow: 0 14px 36px rgba(21, 33, 43, 0.1);
  --container: 1200px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  /* The legacy variable remains for compatibility, but the interface uses one modern family. */
  --serif: var(--sans);
}

/* v0.8 legacy-inspired homepage */
:root {
  --action: #f36b21;
  --action-hover: #d94f08;
  --orange: #f36b21;
  --orange-dark: #d94f08;
  --paper: #fffaf4;
  --surface: #fff;
  --line: #eadbc8;
  --legacy-orange: #ff7400;
  --legacy-red: #f4511e;
  --legacy-cream: #fff7ea;
}

#page-home > :not(.legacy-home-page) {
  display: none !important;
}

.brand-legacy {
  min-width: 225px;
}

.brand-wordmark {
  width: 225px;
  height: auto;
}

.brand-mark-mobile,
.brand-name-mobile {
  display: none;
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--legacy-orange);
  box-shadow: 0 4px 18px rgba(153, 74, 13, 0.08);
  backdrop-filter: none;
}

.nav-wrap {
  min-height: 82px;
}

.nav-links {
  gap: 22px;
}

.nav-link {
  color: #4d443c;
  font-size: 15px;
}

.nav-link::after {
  bottom: -2px;
  height: 3px;
  background: var(--legacy-orange);
}

.header-quick-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 4px;
  line-height: 1.2;
}

.header-quick-contact span {
  color: #908276;
  font-size: 10px;
}

.header-quick-contact strong {
  color: var(--legacy-orange);
  font-size: 17px;
  white-space: nowrap;
}

.header-contact-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-wechat-contact {
  margin: 0;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 1px solid #eee7df;
  background: transparent;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.header-wechat-contact:hover strong,
.header-wechat-contact:focus-visible strong {
  color: var(--action);
}

.header-wechat-contact:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 4px;
}

.legacy-register-btn {
  min-height: 42px;
  border: 1px solid #e95e08;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff8a16, #ff6900);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 5px 14px rgba(243, 107, 33, 0.2);
}

.legacy-register-btn:hover {
  background: linear-gradient(180deg, #ff7d00, #e75d00);
}

.site-footer {
  background: linear-gradient(135deg, #ff9b00 0%, #ff7900 54%, #f25a08 100%);
}

.site-footer .footer-col a,
.site-footer .footer-brand p,
.site-footer .footer-note,
.site-footer .footer-bottom {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
  color: #fff;
}

.site-footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.legacy-home-page {
  overflow: clip;
}

.mobile-hero-break {
  display: none;
}

.legacy-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #f3a800;
}

.legacy-hero-image,
.legacy-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.legacy-hero-image {
  object-fit: cover;
  object-position: center 54%;
}

.legacy-hero-shade {
  background:
    linear-gradient(180deg, rgba(79, 44, 10, 0.4) 0%, rgba(96, 54, 11, 0.12) 46%, rgba(81, 45, 8, 0.34) 100%),
    linear-gradient(90deg, rgba(80, 42, 4, 0.26), transparent 68%);
}

.legacy-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 76px;
}

.legacy-hero-copy {
  max-width: 760px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(87, 46, 8, 0.26);
}

.legacy-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  background: rgba(255, 116, 0, 0.84);
  font-size: 13px;
  font-weight: 700;
}

.legacy-hero-copy h1 {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: clamp(46px, 5.3vw, 76px);
  font-weight: 800;
  line-height: 1.08;
}

.legacy-hero-copy h1 span {
  display: block;
}

.legacy-hero-lead {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
}

.legacy-hero-copy > strong {
  display: block;
  margin-top: 10px;
  color: #fff1b8;
  font-size: 18px;
}

.legacy-hero-copy > p:last-of-type {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.legacy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.legacy-btn-white,
.legacy-btn-orange {
  min-height: 48px;
  border-radius: 2px;
  padding: 0 28px;
}

.legacy-btn-white {
  border-color: #fff;
  background: #fff;
  color: #a94600;
}

.legacy-btn-white:hover {
  border-color: #fff4d9;
  background: #fff4d9;
}

.legacy-btn-orange {
  border-color: #e95b00;
  background: linear-gradient(180deg, #ff8a16, #ff6400);
  color: #fff;
}

.legacy-btn-orange:hover {
  background: linear-gradient(180deg, #ff7c00, #e55400);
}

.legacy-hero-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 74px;
}

.legacy-panel {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px;
  padding: 26px 28px;
  color: #fff;
  box-shadow: 0 15px 34px rgba(99, 46, 2, 0.2);
}

.legacy-panel-service {
  background: linear-gradient(145deg, rgba(255, 86, 20, 0.95), rgba(239, 72, 13, 0.9));
}

.legacy-panel-schedule {
  background: linear-gradient(145deg, rgba(255, 126, 0, 0.96), rgba(242, 85, 5, 0.92));
}

.legacy-panel-title > span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
}

.legacy-panel-title h2 {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
}

.legacy-panel-service ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legacy-panel-service li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.55;
}

.legacy-panel-service li .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.legacy-mini-schedule {
  display: grid;
  margin-top: 12px;
}

.legacy-mini-schedule a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.legacy-mini-schedule a:first-child {
  border-top: 0;
}

.legacy-mini-schedule time {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.legacy-mini-schedule time strong {
  font-size: 16px;
}

.legacy-mini-schedule time span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.legacy-mini-schedule a > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-mini-schedule b {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.legacy-panel-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.legacy-section {
  padding: 92px 0;
  background: #fffaf4;
}

.legacy-section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.legacy-section-head > span,
.legacy-section-kicker,
.legacy-location-kicker {
  display: block;
  color: var(--legacy-orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.legacy-section-head h2 {
  margin-top: 8px;
  color: #842c00;
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
}

.legacy-section-head p {
  margin-top: 12px;
  color: #75685c;
  font-size: 15px;
}

.legacy-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.legacy-course-card {
  position: relative;
  min-height: 320px;
  padding: 38px 42px 34px;
  border: 1px solid #ead6bf;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(119, 75, 33, 0.06);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.legacy-course-card:hover {
  border-color: #f3b27a;
  box-shadow: 0 18px 34px rgba(129, 74, 24, 0.1);
  transform: translateY(-3px);
}

.legacy-course-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 66px;
  border: 3px solid #f6a56a;
  color: var(--legacy-orange);
}

.legacy-course-icon .icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.4;
}

.legacy-course-card h3 {
  margin-top: 18px;
  color: var(--legacy-orange);
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 800;
}

.legacy-course-card > p {
  max-width: 590px;
  margin: 12px auto 0;
  color: #6d6258;
  font-size: 14px;
  line-height: 1.75;
}

.legacy-course-card ul {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  color: #8a4b1f;
  font-size: 12px;
  list-style: none;
}

.legacy-card-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1e6d9;
}

.legacy-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7c3b13;
  font-size: 13px;
  font-weight: 700;
}

.legacy-card-links a:first-child {
  color: var(--legacy-orange);
}

.legacy-learning {
  background: #fff3e3;
  border-top: 1px solid #f4dfc7;
  border-bottom: 1px solid #f1dfca;
}

.legacy-learning .section-title,
.legacy-journal .section-title {
  color: #842c00;
  font-family: var(--sans);
  font-weight: 800;
}

.legacy-learning .learning-tool-card {
  border-radius: 2px;
  box-shadow: 0 7px 20px rgba(127, 73, 24, 0.06);
}

.legacy-journal {
  background: #fff;
}

.legacy-journal .journal-feature,
.legacy-journal .journal-side {
  border-radius: 2px;
}

.legacy-why {
  padding: 96px 0;
  background:
    linear-gradient(180deg, #fffaf4, #fff4e6);
  border-top: 1px solid #f1dfca;
}

.legacy-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 54px;
  align-items: stretch;
}

.legacy-why-copy h2 {
  margin-top: 8px;
  color: #842c00;
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 800;
}

.legacy-why-lead {
  margin-top: 10px;
  color: #807267;
  font-size: 15px;
}

.legacy-benefits {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.legacy-benefits li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #eadbc8;
}

.legacy-benefits li > span {
  color: #f2a068;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.legacy-benefits strong {
  color: #6e2d07;
  font-size: 15px;
}

.legacy-benefits p {
  margin-top: 5px;
  color: #7a6c60;
  font-size: 13px;
  line-height: 1.65;
}

.legacy-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.legacy-contact-row a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 215px;
  padding: 12px 15px;
  border: 1px solid #efd5ba;
  background: #fff;
}

.legacy-contact-row .icon {
  width: 24px;
  height: 24px;
  color: var(--legacy-orange);
}

.legacy-contact-row span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.legacy-contact-row small {
  color: #9a8170;
  font-size: 10px;
}

.legacy-contact-row strong {
  color: #a54508;
  font-size: 17px;
}

.legacy-location-card {
  display: grid;
  grid-template-rows: minmax(245px, 1fr) auto;
  min-width: 0;
  border: 1px solid #e8d4bd;
  background: #fff;
  box-shadow: 0 18px 38px rgba(109, 66, 28, 0.11);
}

.legacy-map-link {
  position: relative;
  display: block;
  min-height: 290px;
  overflow: hidden;
  background: #f5f0e8;
}

.legacy-map-link img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.legacy-map-link > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
  color: #8a3d08;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(44, 28, 15, 0.12);
}

.legacy-location-info {
  padding: 26px 28px 28px;
}

.legacy-location-info h3 {
  margin-top: 5px;
  color: #6e2d07;
  font-size: 23px;
}

.legacy-location-info > p {
  margin-top: 10px;
  color: #74675b;
  font-size: 14px;
}

.legacy-location-info > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 20px;
  color: #a0470b;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .brand-legacy {
    min-width: 190px;
  }

  .brand-wordmark {
    width: 190px;
  }

  .nav-links {
    gap: 15px;
  }

  .header-contact-group {
    display: none;
  }

  .legacy-hero-panels {
    grid-template-columns: 1fr 1fr;
  }

  .legacy-why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .brand-legacy {
    min-width: 0;
  }

  .brand-wordmark {
    display: none;
  }

  .brand-mark-mobile,
  .brand-name-mobile {
    display: block;
  }

  .brand-mark-mobile {
    width: 40px;
    height: 40px;
  }

  .brand-name-mobile {
    font-size: 18px;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .legacy-hero {
    min-height: 0;
  }

  .legacy-hero-image {
    object-position: 54% center;
  }

  .legacy-hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .legacy-hero-copy h1 {
    max-width: 600px;
    font-size: clamp(40px, 9vw, 60px);
  }

  .legacy-hero-panels {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .legacy-course-grid {
    grid-template-columns: 1fr;
  }

  .legacy-course-card {
    padding: 32px 28px;
  }

  .legacy-why {
    padding: 70px 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    border-bottom-width: 2px;
  }

  .legacy-register-btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .legacy-hero-inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .legacy-hero-copy h1 {
    margin-top: 15px;
    font-size: 42px;
  }

  .legacy-hero-lead {
    font-size: 16px;
  }

  .legacy-hero-copy > strong {
    font-size: 14px;
    line-height: 1.55;
  }

  .legacy-hero-copy > p:last-of-type {
    font-size: 12px;
  }

  .legacy-hero-actions .btn {
    flex: 1 1 auto;
    padding: 0 16px;
  }

  .legacy-hero-panels {
    margin-top: 34px;
  }

  .legacy-panel {
    padding: 22px 18px;
  }

  .legacy-mini-schedule a {
    grid-template-columns: 53px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }

  .legacy-mini-schedule b {
    grid-column: 2;
    justify-self: start;
  }

  .legacy-section {
    padding: 68px 0;
  }

  .legacy-section-head {
    margin-bottom: 30px;
    text-align: left;
  }

  .legacy-section-head h2 {
    font-size: 34px;
  }

  .legacy-course-card {
    min-height: 0;
    padding: 28px 20px 24px;
  }

  .legacy-course-icon {
    width: 62px;
    height: 58px;
  }

  .legacy-course-icon .icon {
    width: 36px;
    height: 36px;
  }

  .legacy-course-card h3 {
    font-size: 22px;
  }

  .legacy-card-links {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .legacy-why-grid {
    gap: 30px;
  }

  .legacy-why-copy h2 {
    font-size: 34px;
  }

  .legacy-benefits li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .legacy-contact-row a {
    width: 100%;
  }

  .legacy-location-card {
    grid-template-rows: 220px auto;
  }

  .legacy-map-link,
  .legacy-map-link img {
    min-height: 220px;
  }

  .legacy-location-info {
    padding: 22px 20px 24px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
  line-height: 1.18;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.draft-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 34px;
  text-align: center;
}

.draft-bar strong {
  color: #fff;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: #3d4a53;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transition: right 0.24s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  padding: 22px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.mobile-menu-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

#page-home.active {
  display: flex;
  flex-direction: column;
}

.home-legacy-learn,
.home-legacy-news,
.home-legacy-trust,
.home-legacy-enroll,
.courses-legacy {
  display: none;
}

#page-home > .hero {
  order: 1;
}

#page-home > .home-schedule {
  order: 2;
}

#page-home > .home-programs {
  order: 3;
}

#page-home > .home-learning {
  order: 4;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-ink {
  background: var(--ink);
  color: #fff;
}

.section-surface {
  background: var(--surface);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.section-kicker .icon {
  width: 16px;
  height: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
}

.section-lead {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head .section-lead {
  margin-top: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--orange);
}

.hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--paper);
}

.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--paper) 0%,
    var(--paper) 38%,
    rgba(251, 247, 240, 0.92) 50%,
    rgba(251, 247, 240, 0.12) 72%,
    rgba(251, 247, 240, 0) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 0;
  color: var(--ink);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(21, 33, 43, 0.28);
  font-size: 12px;
  font-weight: 600;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7b267;
}

.hero h1 {
  max-width: 560px;
  font-family: var(--serif);
  font-size: 68px;
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
  margin-top: 16px;
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 23px;
  font-style: normal;
  font-weight: 600;
}

.hero-lead {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero .btn-light {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.78);
  color: var(--ink);
}

.hero .btn-light:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
}

.hero-fact span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.finder {
  position: relative;
  z-index: 2;
  margin-top: -76px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#page-home > .container {
  display: none;
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.finder-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.finder-note {
  color: var(--muted);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #48555e;
  font-size: 13px;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.finder-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 115, 46, 0.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-system {
  border-bottom: 1px solid var(--line);
}

.course-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-family {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-family-mvv {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.course-family-integration {
  background: var(--surface);
}

.course-family-beginner {
  border-color: #e7d2a8;
  background: #fbf3e4;
}

.family-rank {
  align-self: flex-start;
  margin-bottom: 20px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.course-family-mvv .family-rank {
  color: #f2b077;
}

.course-family h2 {
  max-width: 520px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
}

.course-family p {
  max-width: 590px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.course-family-mvv p {
  color: rgba(255, 255, 255, 0.68);
}

.family-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.course-family-mvv .family-facts {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.family-facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.family-facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.course-family-mvv .family-facts span {
  color: rgba(255, 255, 255, 0.5);
}

.course-family .btn,
.course-family .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.level-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.level-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4e4d4;
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.level-path i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.route-planner {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.route-planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.route-planner-head h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
}

.route-planner-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.planner-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e2efe9;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.route-controls {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) 30px minmax(180px, 0.8fr) minmax(240px, 1.3fr);
  align-items: end;
  gap: 14px;
  margin-top: 24px;
}

.route-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--orange-dark);
}

.route-result {
  display: grid;
  gap: 3px;
  min-height: 88px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: #fff;
}

.route-result > span {
  color: var(--muted);
  font-size: 11px;
}

.route-result strong {
  font-family: var(--serif);
  font-size: 18px;
}

.route-result .text-link {
  margin-top: 4px;
  font-size: 12px;
}

.route-reason {
  margin-top: 16px;
  color: #4f5b63;
  font-size: 13px;
}

.route-catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.route-item {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 16px;
  border: 0;
  background: var(--surface);
  text-align: left;
}

.route-item:hover,
.route-item.active {
  background: #fff;
}

.route-item.active {
  box-shadow: inset 0 3px var(--orange);
}

.route-item > span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.route-item strong {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 16px;
}

.route-item small {
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.result-summary {
  min-height: 24px;
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  border-color: #cfc3b2;
  box-shadow: 0 12px 28px rgba(21, 33, 43, 0.07);
  transform: translateY(-2px);
}

.home-course-grid .course-card:first-child {
  border-top: 3px solid var(--orange);
}

.home-course-grid .course-card:nth-child(2) {
  border-top: 3px solid var(--green);
}

.home-course-grid .course-card:nth-child(3) {
  border-top: 3px solid #c18a2c;
}

.home-course-grid .course-card:nth-child(4) {
  border-top: 3px solid var(--blue);
}

.course-tag {
  align-self: flex-start;
  margin-bottom: 13px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #f6e7d8;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.course-tag.green {
  background: #e2efe9;
  color: var(--green);
}

.course-tag.blue {
  background: #e3ebf2;
  color: var(--blue);
}

.course-tag.gold {
  background: #f5e6c8;
  color: #8b5c12;
}

.home-course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-programs {
  padding-top: 72px;
}

.home-programs .section-title {
  font-size: 32px;
}

.home-programs .course-card {
  min-height: 238px;
  padding: 20px;
}

.home-programs .course-desc {
  display: none;
}

.home-programs .meta-list {
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
}

.home-programs .card-foot {
  justify-content: flex-end;
  padding-top: 14px;
}

.home-programs .price {
  display: none;
}

.course-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.course-desc {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #50606b;
  font-size: 13px;
}

.meta-row .icon {
  color: #8b8175;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.price small {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
}

.round-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.round-link:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.class-band {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.class-band .section-kicker {
  color: var(--orange-dark);
}

.class-band .section-lead {
  color: var(--muted);
}

.class-band .section-title {
  font-size: 32px;
}

.class-band .text-link {
  color: var(--orange-dark);
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.schedule-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.schedule-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f0e6;
  color: #6c6258;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.schedule-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: #3d4a53;
  font-size: 13px;
  vertical-align: middle;
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.schedule-table td:first-child {
  width: 110px;
}

.schedule-table td:nth-child(2) {
  width: 30%;
}

.schedule-table td:nth-child(3) {
  width: 16%;
}

.schedule-table td:nth-child(4) {
  width: 9%;
}

.schedule-table td:nth-child(5) {
  width: 11%;
}

.schedule-table td:nth-child(6) {
  width: 125px;
  text-align: right;
}

.schedule-table td strong,
.schedule-table td span {
  display: block;
}

.schedule-table td strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.schedule-table td span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-table .status-open {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 700;
}

.class-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.class-row {
  display: grid;
  grid-template-columns: 100px minmax(220px, 1.5fr) minmax(100px, 0.7fr) 90px 110px;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.date-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 82px;
  min-height: 54px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  text-align: center;
}

.date-badge strong {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
}

.date-badge span {
  color: var(--muted);
  font-size: 11px;
}

.class-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.class-meta {
  color: var(--muted);
  font-size: 13px;
}

.seat {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
}

.compact-head {
  align-items: center;
  margin-bottom: 24px;
}

.compact-head .section-title {
  font-size: 32px;
}

.home-learning {
  padding: 72px 0;
}

.home-learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.learning-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.learning-tool-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.learning-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4e5d4;
  color: var(--orange-dark);
}

.learning-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.learning-tool-head h3 {
  font-family: var(--serif);
  font-size: 21px;
}

.learning-tool-head span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2efe9;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.learning-tool-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.learning-tool-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.home-news-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.home-news-strip > div span,
.home-news-strip > div strong {
  display: block;
}

.home-news-strip > div span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.home-news-strip > div strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 19px;
}

.home-tool-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.home-tool-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.home-tool-row:hover strong {
  color: var(--orange-dark);
}

.home-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4e5d4;
  color: var(--orange-dark);
}

.home-tool-row strong,
.home-tool-row small {
  display: block;
}

.home-tool-row strong {
  font-size: 15px;
}

.home-tool-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.home-feature-news {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.home-feature-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-news > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.home-feature-news small {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.home-feature-news strong {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
}

.home-feature-news em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--orange-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.program-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.program-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.program-hub-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--orange);
}

.program-hub-card.social::after {
  background: var(--green);
}

.program-hub-card.work::after {
  background: #b47a20;
}

.program-hub-card.cnavt::after {
  background: var(--blue);
}

.program-hub-card.nt2::after {
  background: var(--green);
}

.program-hub-card.translation::after {
  background: #9a6c43;
}

.program-hub-card > span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

.program-hub-card h2 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 27px;
}

.program-hub-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.program-hub-card > .icon {
  margin-top: auto;
  align-self: flex-end;
  width: 22px;
  height: 22px;
  color: var(--orange-dark);
}

.program-hub-card:hover {
  border-color: #cfc3b2;
  box-shadow: 0 12px 28px rgba(21, 33, 43, 0.07);
  transform: translateY(-2px);
}

.social-planner {
  margin-top: 0;
  background: var(--surface);
}

.social-planner h2 {
  font-family: var(--serif);
  font-size: 28px;
}

.social-route-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.route-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.route-summary-card:hover,
.route-summary-card.active {
  border-color: var(--green);
  box-shadow: inset 0 3px var(--green);
}

.route-summary-card > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.route-summary-card strong {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
}

.route-summary-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.route-summary-card em {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.section-action {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.learn-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.learn-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.learn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #f2b077;
  color: var(--ink);
}

.learn-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.learn-card p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-live {
  background: rgba(46, 122, 95, 0.22);
  color: #8fd6b6;
}

.status-soon {
  background: rgba(232, 115, 46, 0.2);
  color: #f2b077;
}

.learn-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

.featured-story {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.featured-cover {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #d9c7aa;
}

.featured-cover img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 46%;
  transition: transform 0.6s ease;
}

.featured-story:hover .featured-cover img {
  transform: scale(1.03);
}

.featured-body {
  padding: 24px;
}

.story-kicker {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.featured-body h3 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.featured-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: #8b8175;
  font-size: 12px;
}

.story-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.story-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.story-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 6px;
  background: #e9dfd0;
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-thumb.tone-1 {
  background: #c96a45;
}

.story-thumb.tone-2 {
  background: #2e7a5f;
}

.story-thumb.tone-3 {
  background: #2f5e86;
}

.story-item h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.story-item .story-meta {
  margin-top: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-num {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.trust-story {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.trust-story h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.trust-story p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  padding: 28px;
  background: var(--surface);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.page-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 700;
}

.page-hero p {
  max-width: 700px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-label {
  min-width: 46px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.search-line {
  display: flex;
  gap: 10px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box .icon {
  position: absolute;
  top: 13px;
  left: 12px;
  color: #8b8175;
}

.search-box .input {
  padding-left: 38px;
}

.empty-state {
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state .btn {
  margin-top: 16px;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.detail-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-panel h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.detail-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.outcome-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.outcome-list > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: #46545e;
  font-size: 14px;
  line-height: 1.75;
}

.outcome-list .icon {
  margin-top: 4px;
  color: var(--green);
}

.course-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.course-service-grid > div {
  min-height: 130px;
  padding: 18px;
  background: #fff;
}

.course-service-grid span,
.course-service-grid strong {
  display: block;
}

.course-service-grid span {
  color: var(--muted);
  font-size: 11px;
}

.course-service-grid strong {
  margin-top: 5px;
  font-size: 14px;
}

.course-service-grid p {
  margin-top: 7px;
  font-size: 12px;
}

.translation-file-tags {
  margin-top: 18px;
}

.translation-file-tags span {
  padding: 6px 11px;
  background: #fff;
  font-size: 12px;
}

.translation-process {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.translation-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.translation-step > span {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.translation-step h3 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.translation-step p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.85;
}

.course-end-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6ecdf;
}

.course-end-cta span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.course-end-cta strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 25px;
}

.course-end-cta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.course-end-cta .btn {
  flex: 0 0 auto;
}

.social-course-detail {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin-top: 28px;
}

.social-course-detail > .detail-panel {
  min-width: 0;
}

.route-compare-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.route-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.route-compare-table th,
.route-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}

.route-compare-table th {
  background: #f7f0e6;
  color: var(--muted);
  font-size: 11px;
}

.route-compare-table td {
  color: #4c5a63;
}

.route-compare-table tr:last-child td {
  border-bottom: 0;
}

.route-compare-table strong {
  color: var(--ink);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.fact {
  padding: 16px;
  background: #fff;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.fact strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.syllabus {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.syllabus-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.syllabus-item strong {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 16px;
}

.syllabus-item h4 {
  font-size: 15px;
  font-weight: 700;
}

.syllabus-item p {
  margin-top: 5px;
  font-size: 13px;
}

.sticky-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sticky-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.sticky-card .price {
  margin-top: 12px;
  font-size: 32px;
}

.sticky-card .meta-list {
  margin-bottom: 20px;
}

.divider {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.notice {
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  background: #fbf0e5;
  color: #75513a;
  font-size: 12px;
}

.article-wrap {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px) 210px;
  gap: 34px;
  align-items: start;
  justify-content: center;
}

.article-toc {
  position: sticky;
  top: 100px;
  padding-top: 8px;
}

.article-toc h4 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.article-toc a {
  display: block;
  padding: 7px 0;
  color: #5d666d;
  font-size: 13px;
}

.article-toc a:hover {
  color: var(--orange-dark);
}

.article-body h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
}

.article-body .story-meta {
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  margin-top: 38px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.article-body h3 {
  margin-top: 26px;
  font-size: 19px;
  font-weight: 700;
}

.article-body p {
  margin-top: 16px;
  color: #36434c;
  font-size: 16px;
  line-height: 1.95;
}

.article-body ul {
  margin: 16px 0 0;
  padding-left: 22px;
  color: #36434c;
  font-size: 16px;
  line-height: 1.9;
}

.article-lead {
  font-family: var(--serif);
  font-size: 20px !important;
  line-height: 1.8 !important;
}

.pull-quote {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--orange);
  background: #fbf0e5;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
}

.article-cover {
  width: 100%;
  max-height: 360px;
  margin-top: 24px;
  border-radius: var(--radius);
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.article-side {
  position: sticky;
  top: 100px;
}

.article-side .sticky-card {
  position: static;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.step-tab {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 14px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.step-tab span {
  font-size: 11px;
}

.step-tab strong {
  font-size: 14px;
}

.step-tab.active {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.form-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-panel h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.span-2 {
  grid-column: span 2;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.pay-option input {
  accent-color: var(--orange);
}

.pay-option strong {
  display: block;
  font-size: 14px;
}

.pay-option span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  color: #4d5a63;
  font-size: 13px;
}

.summary-line strong {
  color: var(--ink);
}

.summary-total {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: #4d5a63;
  font-size: 12px;
  line-height: 1.6;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--orange);
}

.success-box {
  display: none;
  padding: 30px;
  border: 1px solid #bcd9ca;
  border-radius: var(--radius);
  background: #eef7f2;
  text-align: center;
}

.success-box.show {
  display: block;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.success-box h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.success-box p {
  max-width: 520px;
  margin: 12px auto 0;
  color: #4f6259;
  font-size: 14px;
}

.contract-doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contract-doc h1 {
  font-family: var(--serif);
  font-size: 30px;
  text-align: center;
}

.contract-doc .contract-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.contract-doc h2 {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
}

.contract-doc p {
  margin-top: 8px;
  color: #3d4a53;
  font-size: 13px;
  line-height: 1.9;
}

.privacy-doc {
  max-width: 900px;
}

.privacy-doc .privacy-meta {
  margin-top: 10px;
  color: #7d766e;
  font-size: 12px;
  text-align: center;
}

.privacy-doc .privacy-summary {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--action);
  background: #f8f2e9;
  color: #4d4741;
  font-size: 13px;
  line-height: 1.75;
}

.privacy-doc .privacy-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.privacy-doc .privacy-section h2 {
  margin-top: 0;
  color: #2f3733;
  font-size: 19px;
}

.privacy-doc ul {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-left: 21px;
  color: #3d4a53;
  font-size: 13px;
  line-height: 1.85;
}

.privacy-doc a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-privacy-consent {
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid #e1dbd2;
  background: #faf8f4;
}

.legacy-privacy-consent a {
  color: var(--action);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.signature-box {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signature-box span {
  color: var(--muted);
  font-size: 11px;
}

.signature-box strong {
  display: block;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 20px;
}

.signed-stamp {
  display: none;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.signed .signed-stamp {
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f2b077;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.team-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.team-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.teacher-profile-list {
  display: grid;
  gap: 16px;
}

.teacher-profile {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.teacher-profile-head {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #f7f2e9;
}

.teacher-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.teacher-profile-head span:not(.teacher-initials) {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.teacher-profile-head h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}

.teacher-profile-copy {
  display: grid;
  gap: 12px;
  padding: 26px 30px;
  align-content: start;
}

.teacher-profile-copy p {
  color: #5e6461;
  font-size: 13px;
  line-height: 1.9;
}

.online-classroom {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(243, 107, 33, 0.055), transparent 46%),
    var(--paper);
}

.online-classroom-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
}

.online-classroom-intro .section-lead {
  max-width: 760px;
}

.online-classroom-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.online-classroom-note > .icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--orange-dark);
}

.online-classroom-note strong,
.online-classroom-note span {
  display: block;
}

.online-classroom-note strong {
  font-size: 14px;
}

.online-classroom-note span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.online-classroom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.equipment-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.equipment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff0e2;
  color: var(--orange-dark);
}

.equipment-icon .icon {
  width: 20px;
  height: 20px;
}

.equipment-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 20px;
}

.equipment-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item .icon {
  margin-top: 3px;
  color: var(--orange-dark);
}

.contact-item strong {
  display: block;
  font-size: 14px;
}

.contact-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.map-panel {
  min-height: 340px;
  padding: 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(21, 33, 43, 0.55), rgba(21, 33, 43, 0.78)),
    url("assets/banner-02.webp") center/cover;
  color: #fff;
}

.map-panel h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.map-panel p {
  max-width: 360px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer {
  padding: 54px 0 24px;
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .home-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learning-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-row {
    grid-template-columns: 110px 1.3fr 1fr 1fr;
  }

  .class-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .course-detail-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .article-wrap {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .article-side {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-family-grid {
    grid-template-columns: 1fr;
  }

  .route-controls {
    grid-template-columns: 1fr 30px 1fr;
  }

  .route-result {
    grid-column: 1 / -1;
  }

  .route-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-learning-grid {
    grid-template-columns: 1fr;
  }

  .course-end-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .course-detail-grid,
  .checkout-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .online-classroom-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .online-classroom-grid {
    grid-template-columns: 1fr;
  }

  .sticky-card,
  .summary-card {
    position: static;
  }

  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding: 44px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .online-classroom-note {
    padding: 18px;
  }

  .equipment-card {
    padding: 22px;
  }

  .hero {
    min-height: 520px;
    background: var(--paper);
  }

  .hero-image {
    inset: auto 0 0;
    width: 100%;
    height: 52%;
    object-position: center;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      rgba(251, 247, 240, 0.98) 48%,
      rgba(251, 247, 240, 0.58) 63%,
      rgba(251, 247, 240, 0.08) 100%
    );
  }

  .hero-inner {
    justify-content: flex-start;
    padding: 54px 0 236px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero h1 span {
    font-size: 19px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-facts {
    gap: 18px;
    margin-top: 36px;
  }

  .hero-fact strong {
    font-size: 21px;
  }

  .finder {
    margin-top: -64px;
    padding: 18px;
  }

  .finder-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .finder-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .learn-grid,
  .team-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .program-hub-grid,
  .social-route-grid {
    grid-template-columns: 1fr;
  }

  .learning-tool-grid {
    grid-template-columns: 1fr;
  }

  .learning-tool-card {
    min-height: 230px;
  }

  .program-hub-card {
    min-height: 190px;
  }

  .home-feature-news {
    grid-template-columns: 1fr;
  }

  .home-feature-news img {
    height: 190px;
  }

  .home-feature-news > span {
    padding: 22px;
  }

  .home-news-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .schedule-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .schedule-table {
    display: block;
    min-width: 0;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    display: grid;
    gap: 10px;
  }

  .schedule-table tr {
    display: grid;
    grid-template-columns: 74px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .schedule-table td {
    display: block;
    width: auto !important;
    padding: 4px 12px;
    border: 0;
    text-align: left;
  }

  .schedule-table td:first-child {
    grid-column: 1;
    grid-row: 1 / span 6;
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    background: #f8f1e7;
    text-align: center;
  }

  .schedule-table td:not(:first-child) {
    grid-column: 2;
  }

  .schedule-table td:nth-child(2) {
    padding-top: 12px;
  }

  .schedule-table td:last-child {
    padding-bottom: 12px;
  }

  .schedule-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    width: auto;
    margin-bottom: 2px;
    color: #91867a;
    font-size: 10px;
  }

  .schedule-table td strong,
  .schedule-table td span {
    display: block;
    font-size: 12px;
  }

  .schedule-table td strong {
    font-size: 15px;
  }

  .course-service-grid {
    grid-template-columns: 1fr;
  }

  .course-end-cta {
    padding: 22px;
  }

  .course-end-cta .btn {
    width: 100%;
  }

  .course-family {
    min-height: 0;
    padding: 24px;
  }

  .course-family h2 {
    font-size: 31px;
  }

  .family-facts {
    gap: 18px;
    margin: 22px 0;
  }

  .level-path {
    gap: 6px;
  }

  .level-path span {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .route-planner {
    padding: 20px;
  }

  .route-planner-head {
    flex-direction: column;
  }

  .route-controls {
    grid-template-columns: 1fr;
  }

  .route-connector {
    min-height: 20px;
    transform: rotate(90deg);
  }

  .route-catalog {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .class-row {
    grid-template-columns: 84px 1fr;
    gap: 14px;
  }

  .class-row .class-meta,
  .class-row .seat {
    grid-column: 2;
  }

  .class-row .btn {
    grid-column: 2;
  }

  .fact-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-tab {
    padding-bottom: 10px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .article-body h1 {
    font-size: 34px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .contract-doc {
    padding: 28px 22px;
  }

  .signature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* v0.7 refinement layer */
:root {
  --action: #294f67;
  --action-hover: #1b3c52;
  --pink: #c75d7b;
  --pink-soft: #f6e7e9;
  --paper: #fbf9f5;
  --surface: #fffefa;
  --muted: #6d6761;
  --line: #e5dfd6;
  --status-open: #2f745d;
  --status-open-bg: #e8f3ed;
  --status-tight: #b86728;
  --status-tight-bg: #fbeedf;
  --status-full: #a54444;
  --status-full-bg: #f8e7e7;
  --status-expired: #716c67;
  --status-expired-bg: #eeebe7;
}

.btn-primary {
  background: var(--action);
  color: #fff;
}

.btn-primary:hover {
  background: var(--action-hover);
}

.nav-link::after {
  background: var(--pink);
}

.text-link {
  color: var(--action);
}

.hero {
  min-height: 560px;
}

.hero::after {
  background: linear-gradient(
    90deg,
    rgba(251, 249, 245, 0.99) 0%,
    rgba(251, 249, 245, 0.96) 39%,
    rgba(251, 249, 245, 0.56) 62%,
    rgba(251, 249, 245, 0.05) 100%
  );
}

.hero-image {
  object-position: center 48%;
}

.hero-inner {
  min-height: 560px;
  align-items: flex-start;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--action);
  font-size: 12px;
  font-weight: 700;
}

.hero-overline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--pink);
}

.hero h1 {
  font-size: clamp(54px, 5vw, 76px);
}

.hero-subtitle {
  max-width: 650px;
  margin-top: 18px;
  color: #283d49;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-support {
  max-width: 560px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.hero-audience {
  max-width: 520px;
  margin-top: 22px;
  color: #77706a;
  font-size: 12px;
}

.hero .btn-light {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.hero .btn-light:hover {
  border-color: var(--action);
  background: #fff;
}

.finder,
.home-news-strip,
#page-home > .home-legacy-learn,
#page-home > .home-legacy-news,
#page-home > .home-legacy-trust,
#page-home > .home-legacy-enroll {
  display: none;
}

#page-home > .home-schedule {
  order: 2;
}

#page-home > .home-programs {
  order: 3;
}

#page-home > .home-learning {
  order: 4;
}

#page-home > .home-journal {
  order: 5;
}

.home-schedule {
  background: #fff;
}

.home-learning {
  background: #f7f3ec;
}

.home-journal {
  background: #fff;
}

.home-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-course-grid .course-card,
.home-course-grid .course-card:first-child,
.home-course-grid .course-card:nth-child(2),
.home-course-grid .course-card:nth-child(3),
.home-course-grid .course-card:nth-child(4) {
  border-top-color: var(--line);
}

.home-course-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 22px;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--action);
}

.course-chip-list,
.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.course-chip-list span,
.program-tags span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #635d57;
  font-size: 11px;
}

.course-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.course-facts {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}

.home-course-card .btn {
  flex: 0 0 auto;
}

.learning-tool-head {
  align-items: flex-start;
}

.external-badge {
  padding: 3px 7px;
  border: 1px solid #d9e4eb;
  border-radius: 999px;
  background: #f2f7fa;
  color: var(--action) !important;
  font-size: 10px !important;
  white-space: nowrap;
}

.schedule-table {
  min-width: 1080px;
}

.schedule-table td:first-child {
  width: 130px;
}

.schedule-table td:nth-child(2) {
  width: 25%;
}

.schedule-table td:nth-child(3) {
  width: 15%;
}

.schedule-table td:nth-child(4) {
  width: 13%;
}

.schedule-table td:nth-child(5) {
  width: 9%;
}

.schedule-table td:nth-child(6) {
  width: 92px;
  text-align: left;
}

.schedule-table td:nth-child(7) {
  width: 120px;
  text-align: right;
}

.schedule-table tr[data-class-status="tight"] {
  background: #fffdf9;
}

.class-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.class-tags b {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f3f0eb;
  color: #69625c;
  font-size: 10px;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.status-open {
  background: var(--status-open-bg);
  color: var(--status-open);
}

.status-tight {
  background: var(--status-tight-bg);
  color: var(--status-tight);
}

.status-full {
  background: var(--status-full-bg);
  color: var(--status-full);
}

.status-expired {
  background: var(--status-expired-bg);
  color: var(--status-expired);
}

.schedule-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-history {
  position: relative;
}

.schedule-history summary {
  color: var(--action);
  cursor: pointer;
  list-style: none;
}

.schedule-history summary::-webkit-details-marker {
  display: none;
}

.history-list {
  position: absolute;
  right: 0;
  z-index: 10;
  width: min(520px, calc(100vw - 32px));
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.history-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.history-list > div:last-child {
  border-bottom: 0;
}

.history-list a {
  color: var(--action);
  font-weight: 600;
}

.home-journal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

#homeJournalFeature,
#legacyHomeJournalFeature {
  min-width: 0;
}

#homeJournalFeature > .journal-feature,
#legacyHomeJournalFeature > .journal-feature {
  height: 100%;
}

.journal-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.journal-cover {
  min-height: 300px;
  overflow: hidden;
}

.journal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.journal-feature:hover .journal-cover img {
  transform: scale(1.03);
}

.journal-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.journal-feature-body h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.35;
}

.journal-feature-body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.journal-side {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.journal-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.journal-index {
  color: var(--pink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.journal-item strong,
.journal-item span {
  display: block;
}

.journal-item strong {
  font-size: 14px;
}

.journal-item div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.journal-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: #f6f1ea;
}

.journal-more strong,
.journal-more small {
  display: block;
}

.journal-more strong {
  font-size: 14px;
}

.journal-more small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.program-hub-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 24px;
  border-top: 3px solid var(--action);
  background: var(--surface);
}

.program-hub-card > span:not(.program-icon) {
  display: none;
}

.program-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--action);
}

.program-hub-card h2 {
  margin-top: 20px;
  font-size: 25px;
}

.program-hub-card p {
  min-height: 68px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--action);
  font-size: 12px;
}

.program-hub-card.nt2 {
  border-top-color: #6f927f;
}

.program-hub-card.translation {
  border-top-color: #9a6c43;
}

.program-hub-card.nt2 .program-icon {
  background: #e9f2ec;
  color: #4f715d;
}

.program-hub-card.translation .program-icon {
  background: #f4ede5;
  color: #85582f;
}

.class-compare-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.class-compare-table,
.route-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.class-compare-table th {
  padding: 10px 12px;
  background: #f6f1ea;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.class-compare-table td {
  padding: 12px;
  border-top: 1px solid var(--line);
  color: #4a545b;
  font-size: 12px;
}

.table-note {
  font-size: 11px !important;
}

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.faq-item summary {
  position: relative;
  padding: 14px 38px 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--action);
  font-size: 18px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-course-cta {
  display: none;
}

.course-detail-grid > *,
.detail-panel,
.checkout-grid > *,
.summary-card {
  min-width: 0;
}

.demo-boundary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #d8e2e8;
  border-radius: var(--radius);
  background: #f3f8fa;
}

.demo-boundary .icon {
  margin-top: 2px;
  color: var(--action);
}

.demo-boundary strong,
.demo-boundary span {
  display: block;
}

.demo-boundary strong {
  font-size: 12px;
}

.demo-boundary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.stepper {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-tab {
  min-width: 0;
}

.step-tab.active {
  border-bottom-color: var(--action);
}

.step-tab.complete {
  color: var(--status-open);
}

.step-tab:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.form-panel h2,
.waitlist-panel h2 {
  font-family: var(--serif);
  font-size: 27px;
}

.form-intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.enroll-filter {
  margin-top: 18px;
}

.enroll-filter .chip:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.enroll-class-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.class-option {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.class-option:hover {
  transform: translateY(-1px);
  border-color: #bccbd4;
}

.class-option:has(input:checked) {
  border-color: var(--action);
  box-shadow: 0 0 0 2px rgba(41, 79, 103, 0.11);
}

.class-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.class-option-head,
.class-option-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.class-option-head > span {
  display: grid;
  gap: 5px;
}

.class-option-head b {
  color: var(--action);
  font-size: 10px;
  font-weight: 700;
}

.class-option-head strong {
  font-family: var(--serif);
  font-size: 18px;
}

.class-option-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.class-option-foot {
  align-items: flex-end;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.class-option-foot > strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--status-full);
  font-size: 11px;
  line-height: 1.5;
}

.field-error.show,
p.field-error.show {
  display: block;
}

.form-hint {
  display: block;
  margin-top: 4px;
  color: #8b837b;
  font-size: 10px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.form-actions.centered {
  justify-content: center;
}

.draft-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.pay-option .icon {
  color: var(--action);
}

.pay-option:has(input:checked) {
  border-color: var(--action);
  box-shadow: 0 0 0 2px rgba(41, 79, 103, 0.1);
}

.contract-preview {
  max-height: 320px;
  margin-top: 18px;
  padding: 22px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contract-preview h3 {
  font-family: var(--serif);
  font-size: 20px;
}

.contract-preview p {
  margin-top: 10px;
  color: #4f5b62;
  font-size: 12px;
  line-height: 1.8;
}

.contract-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.signature-field {
  margin-top: 20px;
}

.consent input {
  accent-color: var(--action);
}

.consent a {
  color: var(--action);
  text-decoration: underline;
}

.waitlist-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.waitlist-panel > p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.receipt-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 680px;
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid #c6ded1;
  border-radius: var(--radius);
  background: #c6ded1;
  text-align: left;
}

.receipt-card > div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
}

.receipt-card span,
.receipt-card strong {
  display: block;
}

.receipt-card span {
  color: #61786b;
  font-size: 10px;
}

.receipt-card strong {
  margin-top: 4px;
  color: #31483d;
  font-size: 12px;
  line-height: 1.55;
}

.summary-card h3 {
  font-family: var(--serif);
  font-size: 22px;
}

.summary-body {
  margin-top: 14px;
}

.summary-next {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.contract-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #e8d9b9;
  border-radius: 6px;
  background: #fdf7e9;
  color: #766546;
  font-size: 11px;
}

.contract-sign-input {
  max-width: 360px;
  margin: 22px auto 0;
}

.contract-sign-input label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.contract-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 104px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-nav a {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: #4d5961;
  font-size: 13px;
}

.legal-nav a:last-child {
  border-bottom: 0;
}

.legal-nav a:hover {
  background: #f6f1ea;
  color: var(--action);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-content article {
  scroll-margin-top: 110px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-content h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 27px;
}

.legal-content p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.legal-content .text-link {
  margin-top: 16px;
}

.footer-grid-rich {
  grid-template-columns: 1.4fr repeat(4, 1fr);
}

.footer-note {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

@media (max-width: 1100px) {
  .home-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid-rich {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid-rich .footer-brand {
    grid-column: 1 / -1;
  }

  .journal-feature {
    grid-template-columns: 1fr;
  }

  .journal-cover {
    min-height: 230px;
  }
}

@media (max-width: 920px) {
  .home-journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-feature {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .legal-nav a {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }

  .legal-nav a:last-child {
    border-right: 0;
  }

  .enroll-class-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 590px;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      rgba(251, 249, 245, 0.98) 55%,
      rgba(251, 249, 245, 0.56) 70%,
      rgba(251, 249, 245, 0.05) 100%
    );
  }

  .hero-inner {
    min-height: 590px;
    padding: 48px 0 250px;
  }

  .hero-overline {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    margin-top: 13px;
    font-size: 16px;
  }

  .hero-support {
    font-size: 12px;
  }

  .hero-audience {
    margin-top: 14px;
    font-size: 10px;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .home-course-card {
    min-height: 0;
  }

  .home-course-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    max-width: 100%;
  }

  .schedule-table tr {
    grid-template-columns: 82px 1fr;
  }

  .schedule-table td:first-child {
    grid-row: 1 / span 7;
  }

  .schedule-table td:nth-child(6) {
    text-align: left;
  }

  .schedule-table td:nth-child(7) {
    padding-top: 8px;
    text-align: left;
  }

  .schedule-table td:nth-child(7) .btn {
    width: 100%;
  }

  .schedule-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-list {
    right: auto;
    left: 0;
  }

  .history-list > div {
    grid-template-columns: 1fr auto;
  }

  .history-list a,
  .history-list > div > span:last-child {
    grid-column: 1 / -1;
  }

  .journal-feature {
    grid-template-columns: 1fr;
  }

  .journal-cover {
    min-height: 210px;
  }

  .journal-feature-body {
    padding: 24px;
  }

  .journal-feature-body h3 {
    font-size: 25px;
  }

  .program-hub-card {
    min-height: 220px;
  }

  .program-hub-card p {
    min-height: 0;
  }

  .stepper {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .step-tab {
    min-width: 116px;
    flex: 0 0 116px;
    scroll-snap-align: start;
  }

  .form-panel,
  .waitlist-panel {
    width: 100%;
    max-width: 100%;
    padding: 22px 18px;
  }

  .checkout-grid,
  .checkout-grid > * {
    width: 100%;
    max-width: 100%;
  }

  .class-compare-wrap,
  .route-compare-wrap {
    max-width: 100%;
  }

  .payment-grid,
  .receipt-card {
    grid-template-columns: 1fr;
  }

  .contract-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .btn {
    flex: 1 1 auto;
  }

  .legal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-nav a:nth-child(2) {
    border-right: 0;
  }

  .legal-nav a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .legal-content article {
    padding: 24px 20px;
  }

  .footer-grid-rich {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid-rich .footer-brand {
    grid-column: 1 / -1;
  }

  .mobile-course-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: var(--radius);
    background: var(--action);
    color: #fff;
    box-shadow: 0 12px 28px rgba(21, 33, 43, 0.24);
    font-size: 14px;
    font-weight: 700;
  }

  #page-course.active,
  #page-social.active,
  #page-beginner.active,
  #page-cnavt.active {
    padding-bottom: 76px;
  }

  .toast {
    bottom: 78px;
    max-width: calc(100% - 32px);
    text-align: center;
  }
}

/* v0.8 final theme overrides */
:root {
  --action: #f36b21;
  --action-hover: #d94f08;
  --orange: #f36b21;
  --orange-dark: #d94f08;
  --paper: #fffaf4;
  --surface: #fff;
  --line: #eadbc8;
}

body {
  background: var(--paper);
}

.site-header {
  background: #fff;
  border-bottom: 3px solid #ff7400;
  box-shadow: 0 4px 18px rgba(153, 74, 13, 0.08);
  backdrop-filter: none;
}

.nav-wrap {
  min-height: 82px;
}

.nav-links {
  gap: 22px;
}

.nav-link {
  color: #4d443c;
  font-size: 15px;
}

.nav-link::after {
  bottom: -2px;
  height: 3px;
  background: #ff7400;
}

.site-footer {
  background: linear-gradient(135deg, #ff9b00 0%, #ff7900 54%, #f25a08 100%);
}

.site-footer .footer-col a,
.site-footer .footer-brand p,
.site-footer .footer-note,
.site-footer .footer-bottom {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    min-height: 68px;
  }

  .brand-wordmark {
    display: none;
  }

  .brand-mark-mobile,
  .brand-name-mobile {
    display: block;
  }
}

@media (max-width: 620px) {
  .site-header {
    border-bottom-width: 2px;
  }
}

/* v0.9 light hybrid: preserve legacy content, reduce visual weight */
:root {
  --action: #ad5426;
  --action-hover: #8b4018;
  --orange: #c86a32;
  --orange-dark: #98451e;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --line: #e4dfd7;
  --muted: #686761;
  --legacy-orange: #c56a32;
  --legacy-red: #b35a32;
  --legacy-cream: #faf4ea;
}

body {
  background: var(--paper);
}

.site-header {
  color: #f8f3ed;
  background: rgba(92, 80, 69, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(63, 51, 41, 0.1);
  backdrop-filter: blur(12px);
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #fff;
}

.site-header .nav-link::after {
  background: #f29a57;
}

.site-header .header-quick-contact span {
  color: rgba(255, 255, 255, 0.56);
}

.site-header .header-quick-contact strong {
  color: #ffb171;
}

.site-header .header-wechat-contact {
  border-left-color: rgba(255, 255, 255, 0.16);
}

.site-header .brand-name-mobile {
  color: #fff;
}

.site-header .menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.legacy-register-btn {
  border-color: var(--action);
  border-radius: 6px;
  background: var(--action);
  box-shadow: 0 5px 12px rgba(113, 57, 25, 0.13);
}

.legacy-register-btn:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.legacy-home-page .legacy-hero {
  min-height: 0;
  background: #e6bd5c;
}

.legacy-home-page .legacy-hero-image {
  filter: saturate(0.95) brightness(1.04);
}

.legacy-home-page .legacy-hero-shade {
  background:
    radial-gradient(ellipse at 50% 25%, rgba(255, 255, 255, 0.2), transparent 54%),
    linear-gradient(180deg, rgba(255, 251, 239, 0.04), rgba(255, 255, 255, 0.16));
}

.legacy-home-page .legacy-hero-inner {
  padding-top: 80px;
  padding-bottom: 72px;
}

.legacy-home-page .legacy-hero-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.legacy-home-page .legacy-hero-badge {
  min-height: 0;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #82411d;
  font-size: 13px;
  box-shadow: 0 5px 18px rgba(85, 55, 19, 0.08);
  backdrop-filter: blur(5px);
}

.legacy-home-page .legacy-hero-title {
  margin: 18px auto 0;
  color: #332d27;
  font-family: var(--sans);
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.34;
}

.legacy-home-page .legacy-hero-copy .legacy-hero-lead {
  margin-top: 14px;
  color: #453a2f;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
}

.legacy-home-page .legacy-hero-actions {
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.legacy-home-page .legacy-btn-white,
.legacy-home-page .legacy-btn-orange {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 6px;
}

.legacy-home-page .legacy-btn-white {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.9);
  color: #82411d;
  box-shadow: 0 5px 16px rgba(82, 54, 19, 0.08);
}

.legacy-home-page .legacy-btn-white:hover {
  border-color: #fff;
  background: #fff;
}

.legacy-home-page .legacy-btn-orange {
  border-color: var(--action);
  background: var(--action);
}

.legacy-home-page .legacy-btn-orange:hover {
  background: var(--action-hover);
}

.legacy-home-page .legacy-hero-panels {
  gap: 20px;
  margin-top: 50px;
}

.legacy-home-page .legacy-panel {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  padding: 26px 28px;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(88, 61, 25, 0.12);
  backdrop-filter: blur(8px);
}

.legacy-home-page .legacy-panel-service {
  background: rgba(255, 250, 242, 0.95);
}

.legacy-home-page .legacy-panel-schedule {
  background: rgba(255, 255, 255, 0.96);
}

.legacy-home-page .legacy-panel-title h2 {
  color: #383630;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.legacy-home-page .legacy-panel-service ul {
  gap: 8px;
  margin-top: 16px;
}

.legacy-home-page .legacy-panel-service li {
  gap: 9px;
  color: #5b5852;
  font-size: 13px;
  line-height: 1.55;
}

.legacy-home-page .legacy-panel-service li .icon {
  margin-top: 3px;
  color: var(--orange-dark);
}

.legacy-home-page .legacy-schedule-group {
  margin-top: 14px;
}

.legacy-home-page .legacy-schedule-group + .legacy-schedule-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee7de;
}

.legacy-home-page .legacy-schedule-group h3 {
  margin-bottom: 4px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.legacy-home-page .legacy-schedule-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 40px;
  border-top: 1px dashed #eee8df;
  color: #5d5953;
  font-size: 13px;
}

.legacy-home-page .legacy-schedule-row span {
  color: #8d8378;
  font-size: 12px;
  white-space: nowrap;
}

.legacy-home-page .legacy-schedule-row strong {
  color: #343632;
  font-size: 14px;
  font-weight: 700;
}

.legacy-home-page .legacy-schedule-row:hover strong {
  color: var(--orange-dark);
}

.legacy-home-page .legacy-schedule-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 5px;
  background: #f7f6f2;
  color: #77756f;
  font-size: 11px;
}

.legacy-home-page .legacy-schedule-note strong {
  color: var(--orange-dark);
}

.legacy-home-page .legacy-panel-more {
  margin-top: 13px;
  color: var(--orange-dark);
}

.legacy-home-page .legacy-section {
  padding: 78px 0;
  background: #f8f7f3;
}

.legacy-home-page .legacy-section-head {
  margin-bottom: 34px;
}

.legacy-home-page .legacy-section-head h2 {
  margin-top: 0;
  color: #29302d;
  font-size: clamp(32px, 3.5vw, 42px);
}

.legacy-home-page .legacy-course-grid {
  gap: 18px;
}

.legacy-home-page .legacy-course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 354px;
  padding: 30px 34px 28px;
  border-color: #e3ddd4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(57, 52, 45, 0.04);
  text-align: center;
}

.legacy-home-page .legacy-course-card:hover {
  border-color: #d9c4b0;
  box-shadow: 0 14px 28px rgba(74, 58, 42, 0.07);
  transform: translateY(-2px);
}

.legacy-home-page .legacy-course-image {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.legacy-home-page .legacy-course-card h3 {
  margin-top: 14px;
  color: var(--orange-dark);
  font-size: 24px;
  line-height: 1.35;
}

.legacy-home-page .legacy-course-title-link {
  color: inherit;
  text-decoration: none;
}

.legacy-home-page .legacy-course-title-link:hover,
.legacy-home-page .legacy-course-title-link:focus-visible {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legacy-home-page .legacy-source-lines {
  width: 100%;
  margin-top: 14px;
  color: #696761;
}

.legacy-home-page .legacy-source-lines a {
  display: inline-block;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-home-page .legacy-course-card > .legacy-source-lines p {
  max-width: none;
  margin: 5px 0 9px;
  color: #77736c;
  font-size: 12px;
  line-height: 1.6;
}

.legacy-home-page .legacy-course-cta {
  min-width: 132px;
  margin-top: auto;
  border-radius: 6px;
}

.legacy-home-page .legacy-learning {
  border-top: 1px solid #dfe8e2;
  border-bottom: 1px solid #dfe8e2;
  background: #eff4f1;
}

.legacy-home-page .legacy-learning .section-head,
.legacy-home-page .legacy-journal .section-head {
  align-items: center;
  margin-bottom: 28px;
}

.legacy-home-page .legacy-learning .section-title,
.legacy-home-page .legacy-journal .section-title {
  color: #29312d;
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 800;
}

.legacy-home-page .legacy-learning .learning-tool-card {
  min-height: 268px;
  border-color: #dde5df;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.legacy-home-page .legacy-learning .learning-tool-card:nth-child(1) .learning-tool-icon {
  background: #fbede7;
  color: #a64e2d;
}

.legacy-home-page .legacy-learning .learning-tool-card:nth-child(2) .learning-tool-icon {
  background: #e8f2ec;
  color: #356f59;
}

.legacy-home-page .legacy-learning .learning-tool-card:nth-child(3) .learning-tool-icon {
  background: #e9f0f5;
  color: #3e6887;
}

.legacy-home-page .legacy-learning .learning-tool-card:nth-child(4) .learning-tool-icon {
  background: #f7f0df;
  color: #8a6b2c;
}

.legacy-home-page .legacy-journal {
  background: #fff;
}

.legacy-home-page .legacy-journal .journal-feature,
.legacy-home-page .legacy-journal .journal-side {
  overflow: hidden;
  border: 1px solid #e7e4de;
  border-radius: 8px;
  background: #fafaf8;
  box-shadow: none;
}

.legacy-home-page .legacy-journal .journal-item {
  background: #fff;
}

.legacy-home-page .legacy-journal .journal-more {
  background: #f3f6f3;
}

.legacy-home-page .legacy-why {
  padding: 82px 0;
  border-top: 1px solid #e3e7e2;
  background: #f2f5f2;
}

.legacy-home-page .legacy-why-copy h2 {
  margin-top: 0;
  color: #29302d;
  font-family: var(--sans);
  font-size: clamp(32px, 3.7vw, 44px);
  line-height: 1.3;
}

.legacy-home-page .legacy-why-lead {
  margin-top: 10px;
  color: #666c68;
  font-size: 15px;
}

.legacy-home-page .legacy-benefits {
  gap: 0;
  margin-top: 22px;
}

.legacy-home-page .legacy-benefits li {
  align-items: start;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top-color: #dfe5e0;
}

.legacy-home-page .legacy-benefits li > span {
  color: #ba7b58;
  font-size: 15px;
}

.legacy-home-page .legacy-benefits strong {
  color: #414743;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.legacy-home-page .legacy-contact-row {
  gap: 10px;
}

.legacy-home-page .legacy-contact-row a {
  min-width: 200px;
  border-color: #dce3de;
  border-radius: 6px;
  background: #fff;
}

.legacy-home-page .legacy-contact-row .icon {
  color: var(--orange-dark);
}

.legacy-home-page .legacy-contact-row small {
  color: #85877f;
}

.legacy-home-page .legacy-contact-row strong {
  color: #373d39;
}

.legacy-home-page .legacy-location-card {
  overflow: hidden;
  border-color: #dce3de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(47, 61, 52, 0.08);
}

.legacy-home-page .legacy-location-info {
  padding: 24px 26px 26px;
}

.legacy-home-page .legacy-location-info h3 {
  margin-top: 0;
  color: #2d3531;
}

.legacy-home-page .legacy-location-info > p {
  color: #686e69;
}

.legacy-home-page .legacy-location-info > div {
  color: #6f5a4d;
}

.site-footer {
  border-top: 1px solid #dfe4e0;
  background: #edf1ee;
  color: #29312d;
}

.footer-brand .brand-name {
  color: #29312d;
}

.footer-brand .brand-sub {
  color: #7e8781;
}

.site-footer .footer-col h4 {
  color: #323936;
}

.site-footer .footer-col a,
.site-footer .footer-brand p,
.site-footer .footer-note,
.site-footer .footer-bottom {
  color: #68716c;
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
  color: var(--orange-dark);
}

.site-footer .footer-bottom {
  border-top-color: #d7ded9;
}

@media (max-width: 1100px) {
  .legacy-home-page .legacy-hero-panels {
    grid-template-columns: 1fr 1fr;
  }

  .legacy-home-page .legacy-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-home-page .legacy-panel {
    padding: 24px 22px;
  }

  .legacy-home-page .legacy-why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .legacy-home-page .legacy-hero-inner {
    padding-top: 56px;
    padding-bottom: 52px;
  }

  .legacy-home-page .legacy-hero-panels {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .legacy-home-page .legacy-course-grid {
    grid-template-columns: 1fr;
  }

  .legacy-home-page .legacy-course-card {
    min-height: 0;
  }

  .legacy-home-page .legacy-course-cta {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .site-header {
    border-bottom-width: 1px;
  }

  .legacy-home-page .legacy-hero-inner {
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .legacy-home-page .legacy-hero-badge {
    font-size: 11px;
  }

  .legacy-home-page .legacy-hero-title {
    margin-top: 14px;
    font-size: 25px;
  }

  .legacy-home-page .legacy-hero-copy .legacy-hero-lead {
    margin-top: 10px;
    font-size: 17px;
  }

  .legacy-home-page .legacy-hero-actions {
    margin-top: 20px;
  }

  .legacy-home-page .legacy-hero-actions .btn {
    flex: 1 1 140px;
  }

  .legacy-home-page .legacy-hero-panels {
    margin-top: 30px;
  }

  .legacy-home-page .legacy-panel {
    padding: 21px 17px;
  }

  .legacy-home-page .legacy-panel-title h2 {
    font-size: 18px;
  }

  .legacy-home-page .legacy-panel-service li {
    font-size: 12.5px;
  }

  .legacy-home-page .legacy-schedule-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
    min-height: 42px;
  }

  .legacy-home-page .legacy-schedule-row strong {
    font-size: 13px;
  }

  .legacy-home-page .legacy-section {
    padding: 56px 0;
  }

  .legacy-home-page .legacy-section-head {
    margin-bottom: 26px;
    text-align: left;
  }

  .legacy-home-page .legacy-section-head h2 {
    font-size: 31px;
  }

  .legacy-home-page .legacy-course-card {
    padding: 26px 18px 24px;
  }

  .legacy-home-page .legacy-course-card h3 {
    font-size: 21px;
  }

  .legacy-home-page .legacy-source-lines a {
    font-size: 12.5px;
  }

  .legacy-home-page .legacy-course-card > .legacy-source-lines p {
    font-size: 11.5px;
  }

  .legacy-home-page .legacy-learning .section-title,
  .legacy-home-page .legacy-journal .section-title {
    font-size: 29px;
  }

  .legacy-home-page .legacy-why {
    padding: 58px 0;
  }

  .legacy-home-page .legacy-why-copy h2 {
    font-size: 29px;
  }

  .legacy-home-page .legacy-why-lead {
    font-size: 13px;
  }

  .legacy-home-page .legacy-benefits li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .legacy-home-page .legacy-benefits strong {
    font-size: 13px;
  }

  .legacy-home-page .legacy-contact-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legacy-home-page .legacy-contact-row a {
    width: 100%;
    min-width: 0;
  }

  .legacy-home-page .legacy-location-info {
    padding: 22px 20px 24px;
  }
}

/* v0.10 course clarity and lighter hero */
.legacy-home-page .legacy-hero {
  min-height: 780px;
  overflow: hidden;
  background: #e8bd59;
}

.legacy-home-page .legacy-hero-image {
  width: 100%;
  height: 100%;
  object-position: center 48%;
  filter: saturate(0.92) brightness(1.06);
}

.legacy-home-page .legacy-hero-shade {
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.2), rgba(255, 255, 255, 0.04) 48%, rgba(255, 242, 205, 0.06)),
    linear-gradient(90deg, rgba(255, 248, 231, 0.18), transparent 28%, transparent 72%, rgba(255, 248, 231, 0.14));
}

.legacy-home-page .legacy-hero-inner {
  display: flex;
  flex-direction: column;
  min-height: 780px;
  padding-top: 58px;
  padding-bottom: 30px;
}

.legacy-home-page .legacy-hero-copy {
  max-width: 780px;
}

.legacy-home-page .legacy-hero-title {
  margin-top: 16px;
  font-size: clamp(30px, 3vw, 39px);
  line-height: 1.32;
}

.legacy-home-page .legacy-hero-copy .legacy-hero-lead {
  margin-top: 12px;
  font-size: clamp(17px, 1.65vw, 22px);
}

.legacy-home-page .legacy-hero-panels {
  grid-template-columns: repeat(2, minmax(0, 400px));
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: auto;
  padding-top: 38px;
}

.legacy-home-page .legacy-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 18px 20px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(88, 61, 25, 0.1);
  backdrop-filter: blur(9px);
}

.legacy-home-page .legacy-panel-title h2 {
  font-size: 17px;
  line-height: 1.4;
}

.legacy-home-page .legacy-panel-service ul {
  flex: 1;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 7px;
  margin-top: 12px;
}

.legacy-home-page .legacy-panel-service li {
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.52;
}

.legacy-home-page .legacy-panel-service li .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.legacy-home-page .legacy-schedule-group {
  margin-top: 10px;
}

.legacy-home-page .legacy-schedule-group + .legacy-schedule-group {
  margin-top: 12px;
  padding-top: 10px;
}

.legacy-home-page .legacy-schedule-row {
  min-height: 32px;
  font-size: 12px;
}

.legacy-home-page .legacy-schedule-row strong {
  font-size: 12.5px;
}

.legacy-home-page .legacy-schedule-note {
  margin-top: 10px;
  padding: 8px 10px;
}

.legacy-home-page .legacy-panel-more {
  margin-top: 9px;
  font-size: 12px;
}

.mvv-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.mvv-summary-head h2 {
  margin-top: 3px;
}

.mvv-summary-head .planner-badge {
  margin-top: 2px;
}

.mvv-table-panel {
  margin-top: 18px;
}

.course-info-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.course-info-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.course-info-table th,
.course-info-table td {
  padding: 12px 14px;
  border-right: 1px solid #eee8df;
  border-bottom: 1px solid #eee8df;
  font-size: 12.5px;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.course-info-table th {
  background: #f6f2ec;
  color: #67635c;
  font-size: 11px;
  font-weight: 700;
}

.course-info-table td {
  color: #4f5552;
}

.course-info-table th:last-child,
.course-info-table td:last-child {
  border-right: 0;
}

.course-info-table tbody tr:last-child td {
  border-bottom: 0;
}

.course-info-table strong {
  color: #2f3532;
}

.course-info-table td > span {
  display: block;
  margin-top: 3px;
  color: #817c74;
  font-size: 11px;
}

.course-info-table em {
  color: #71431f;
  font-style: normal;
  font-weight: 700;
}

.exam-info-table {
  min-width: 680px;
}

.mvv-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 18px;
}

.mvv-note-grid > div {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.mvv-note-grid h3 {
  color: #343936;
  font-size: 15px;
}

.mvv-note-grid p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.7;
}

.mvv-enroll-card .legacy-price {
  margin-top: 15px;
  color: #343936;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}

.mvv-enroll-card .legacy-price small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
}

.mvv-enroll-card .btn-block + .btn-block {
  margin-top: 8px;
}

.single-route-card {
  min-width: 0;
  max-width: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.single-route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.single-route-head > div {
  max-width: 760px;
}

.single-route-head h2 {
  font-family: var(--serif);
  font-size: 31px;
}

.single-route-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.single-route-head > .btn {
  flex: 0 0 auto;
}

.route-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.route-detail-facts > div {
  min-width: 0;
  padding: 14px 16px;
  background: #faf8f4;
}

.route-detail-facts span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.route-detail-facts strong {
  display: block;
  margin-top: 4px;
  color: #343936;
  font-size: 14px;
}

.route-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 24px;
}

.route-detail-columns > section {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.route-detail-columns h3,
.route-schedule-section h3 {
  color: #343936;
  font-size: 16px;
}

.route-detail-columns p {
  margin-top: 9px;
  color: #626863;
  font-size: 13px;
  line-height: 1.75;
}

.route-schedule-section {
  min-width: 0;
  max-width: 100%;
  margin-top: 24px;
}

.route-schedule-table {
  min-width: 700px;
}

.route-schedule-table th:first-child,
.route-schedule-table td:first-child {
  width: 24%;
}

.route-schedule-table th:nth-child(2),
.route-schedule-table td:nth-child(2) {
  width: 14%;
}

.route-detail-bottom {
  align-items: start;
}

.route-focus-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #626863;
  font-size: 13px;
  line-height: 1.65;
}

.route-focus-list li::marker {
  color: var(--orange-dark);
}

.route-learning-mode {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-left: 3px solid #b8cfbf;
  background: #f4f8f5;
}

.route-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.route-detail-footer > div {
  display: grid;
  gap: 4px;
}

.route-detail-footer span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 700;
}

.route-detail-footer strong {
  color: #3d4441;
  font-size: 13px;
  font-weight: 600;
}

.legacy-registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}

.legacy-registration-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legacy-form-head h2 {
  font-family: var(--serif);
  font-size: 30px;
}

.legacy-form-head p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.legacy-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 24px;
}

.legacy-form-grid .field label {
  color: #3f4642;
  font-size: 13px;
  font-weight: 600;
}

.legacy-form-grid .input,
.legacy-form-grid .select,
.legacy-form-grid .textarea {
  min-height: 46px;
  border-color: #ded8cf;
  border-radius: 5px;
}

.legacy-form-grid .textarea {
  min-height: 104px;
}

.enrollment-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legacy-form-full {
  grid-column: 1 / -1;
}

.legacy-social-fields {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr) minmax(205px, 0.58fr);
  gap: 12px 18px;
  align-items: end;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  background: #fbf7f0;
}

.legacy-social-fields[hidden] {
  display: none;
}

.legacy-social-current {
  min-height: 46px;
  padding: 7px 0 5px;
}

.legacy-social-current span {
  display: block;
  color: #81786e;
  font-size: 12.5px;
  line-height: 1.5;
}

.legacy-social-current strong {
  display: block;
  margin-top: 2px;
  color: #343936;
  font-size: 15px;
  line-height: 1.55;
}

.legacy-social-policy {
  align-self: stretch;
  padding: 2px 0 2px 16px;
  border-left: 1px solid #e3d6c5;
  color: #6b6259;
  font-size: 12.5px;
  line-height: 1.58;
}

.legacy-social-policy strong,
.legacy-social-policy span,
.legacy-social-policy small {
  display: block;
}

.legacy-social-policy strong {
  margin-bottom: 3px;
  color: #343936;
  font-size: 13px;
}

.legacy-social-policy b {
  color: #75411f;
  font-weight: 700;
}

.legacy-social-policy small {
  margin-top: 4px;
  color: #8a8178;
  font-size: 11.5px;
  line-height: 1.55;
}

.legacy-social-route {
  grid-column: 1 / -1;
  margin-top: 0;
  color: #6b6259;
  line-height: 1.65;
}

.legacy-form-error {
  min-height: 20px;
  margin-top: 12px;
}

.legacy-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legacy-form-actions .btn-primary {
  min-width: 180px;
}

.legacy-form-note {
  margin-top: 14px;
  color: #8a857d;
  font-size: 11px;
  line-height: 1.65;
}

.legacy-form-success {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #cfded4;
  border-radius: 6px;
  background: #f3f8f4;
}

.legacy-form-success .success-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.legacy-form-success .success-icon .icon {
  width: 18px;
  height: 18px;
}

.legacy-form-success strong {
  color: #294737;
  font-size: 14px;
}

.legacy-form-success p {
  margin-top: 5px;
  color: #657169;
  font-size: 12px;
  line-height: 1.65;
}

.legacy-form-success .btn {
  margin-top: 10px;
}

.legacy-registration-form.is-submitted .legacy-form-grid {
  opacity: 0.62;
}

.legacy-enroll-aside {
  padding: 26px;
  border: 1px solid #dce3de;
  border-radius: 8px;
  background: #f3f7f4;
}

.legacy-enroll-aside h3 {
  color: #303733;
  font-family: var(--serif);
  font-size: 25px;
}

.legacy-enroll-aside > p {
  margin-top: 10px;
  color: #68706b;
  font-size: 13px;
  line-height: 1.75;
}

.legacy-contact-lines {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid #d8e0da;
}

.legacy-contact-lines a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid #d8e0da;
}

.legacy-contact-lines span,
.legacy-enroll-hours span {
  color: #828983;
  font-size: 10px;
}

.legacy-contact-lines strong {
  color: #39423d;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.legacy-enroll-hours {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d8e0da;
}

.legacy-enroll-hours strong {
  color: #39423d;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .legacy-home-page .legacy-hero {
    min-height: 730px;
  }

  .legacy-home-page .legacy-hero-inner {
    min-height: 730px;
  }

  .legacy-home-page .legacy-hero-panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .legacy-registration-layout {
    grid-template-columns: 1fr;
  }

  .legacy-enroll-aside {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .legacy-home-page .legacy-hero {
    min-height: 0;
  }

  .legacy-home-page .legacy-hero-inner {
    min-height: 0;
    padding-top: 46px;
    padding-bottom: 36px;
  }

  .legacy-home-page .legacy-hero-image {
    object-position: center 42%;
  }

  .legacy-home-page .legacy-hero-panels {
    grid-template-columns: 1fr;
    margin-top: 34px;
    padding-top: 0;
  }

  .legacy-home-page .legacy-panel-service ul {
    grid-template-columns: 1fr;
  }

  .single-route-head,
  .route-detail-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-registration-form {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .teacher-profile {
    grid-template-columns: 1fr;
  }

  .teacher-profile-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .teacher-profile-head,
  .teacher-profile-copy {
    padding: 22px;
  }

  .legacy-home-page .legacy-hero-title {
    font-size: 26px;
  }

  .legacy-home-page .legacy-hero-copy .legacy-hero-lead {
    font-size: 17px;
  }

  .legacy-home-page .legacy-hero-panels {
    margin-top: 26px;
  }

  .legacy-home-page .legacy-panel {
    padding: 17px 16px;
  }

  .mvv-summary-head,
  .single-route-head {
    flex-direction: column;
  }

  .mvv-note-grid,
  .route-detail-columns,
  .legacy-form-grid {
    grid-template-columns: 1fr;
  }

  .legacy-form-full {
    grid-column: auto;
  }

  .legacy-social-fields {
    grid-template-columns: 1fr;
  }

  .legacy-social-policy {
    padding: 10px 0 0;
    border-top: 1px solid #e3d6c5;
    border-left: 0;
  }

  .legacy-social-route {
    grid-column: auto;
  }

  .single-route-card,
  .legacy-registration-form,
  .legacy-enroll-aside {
    padding: 20px 17px;
  }

  .single-route-head h2 {
    font-size: 27px;
  }

  .route-detail-facts {
    grid-template-columns: 1fr 1fr;
  }

  .route-detail-facts > div {
    padding: 12px;
  }

  #page-course.active,
  #page-social.active,
  #page-beginner.active,
  #page-cnavt.active {
    padding-bottom: 0;
  }

  .mobile-course-cta {
    display: none;
  }

  .route-schedule-table {
    min-width: 0;
    table-layout: fixed;
  }

  .route-schedule-table th,
  .route-schedule-table td {
    padding: 10px 9px;
    font-size: 10.5px;
    overflow-wrap: anywhere;
  }

  .legacy-form-actions .btn {
    width: 100%;
  }
}

/* v0.14: restore the complete legacy school wordmark at every breakpoint. */
.brand-legacy {
  min-width: 227px;
}

.brand-legacy .brand-wordmark {
  display: block;
  width: 227px;
  height: auto;
  object-fit: contain;
}

.brand-legacy .brand-mark-mobile,
.brand-legacy .brand-name-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .brand-legacy {
    min-width: 200px;
  }

  .brand-legacy .brand-wordmark {
    width: 200px;
  }
}

@media (max-width: 860px) {
  .brand-legacy {
    min-width: 0;
  }

  .brand-legacy .brand-wordmark {
    display: block;
    width: 168px;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    gap: 12px;
  }

  .brand-legacy .brand-wordmark {
    width: 154px;
  }
}

@media (max-width: 380px) {
  .nav-wrap {
    gap: 8px;
  }

  .brand-legacy .brand-wordmark {
    width: 140px;
  }
}

/* v0.15: unified hero panels, dedicated grammar library, and news-only journal. */
.legacy-home-page .legacy-panel-service,
.legacy-home-page .legacy-panel-schedule {
  background: #fffaf5;
}

.grammar-hero {
  background: #f3f6f1;
}

.grammar-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.grammar-hero-row > div:first-child {
  max-width: 760px;
}

.grammar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  min-width: 340px;
  border-top: 1px solid #cad6cd;
  border-bottom: 1px solid #cad6cd;
}

.grammar-summary > div {
  padding: 16px 18px;
  border-left: 1px solid #cad6cd;
}

.grammar-summary > div:first-child {
  border-left: 0;
}

.grammar-summary strong,
.grammar-summary span {
  display: block;
}

.grammar-summary strong {
  color: #315d4c;
  font-family: var(--serif);
  font-size: 21px;
}

.grammar-summary span {
  margin-top: 4px;
  color: #6f7e75;
  font-size: 11px;
}

.grammar-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.grammar-nav {
  position: sticky;
  top: 110px;
  padding-left: 20px;
  border-left: 2px solid #cfd9d1;
}

.grammar-nav > span {
  display: block;
  margin-bottom: 12px;
  color: #7b857f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grammar-nav > a:not(.text-link) {
  display: block;
  padding: 7px 0;
  color: #4e5b54;
  font-size: 13px;
}

.grammar-nav > a:not(.text-link):hover {
  color: var(--orange-dark);
}

.grammar-nav p {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dfe5e0;
  color: #77827b;
  font-size: 11px;
  line-height: 1.75;
}

.grammar-nav .text-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 12px;
}

.grammar-list {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.grammar-module {
  scroll-margin-top: 108px;
  padding: 32px;
  border: 1px solid #e2e4de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(48, 58, 52, 0.05);
}

.grammar-module-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
}

.grammar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d9dfda;
  border-radius: 50%;
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.grammar-module-head h2 {
  margin-top: 5px;
  color: #28332d;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.35;
}

.grammar-module-head h2 i,
.grammar-compare i,
.grammar-rule i {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.grammar-module-head p {
  max-width: 760px;
  margin-top: 12px;
  color: #5f6963;
  font-size: 14px;
  line-height: 1.8;
}

.grammar-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e8e3;
}

.grammar-rule > span {
  color: #8a948d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grammar-rule > strong {
  display: block;
  margin-top: 7px;
  color: #334139;
  font-size: 15px;
  line-height: 1.55;
}

.grammar-rule > p {
  margin-top: 8px;
  color: #6b746e;
  font-size: 13px;
  line-height: 1.75;
}

.grammar-mini-example {
  color: #385f50 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px !important;
}

.grammar-example {
  display: grid;
  grid-template-columns: 42px repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid #4a765f;
  background: #f1f6f2;
}

.grammar-example > span {
  color: #4a765f;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.grammar-example strong {
  color: #284638;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.grammar-example p {
  margin-top: 5px;
  color: #66756d;
  font-size: 12px;
  line-height: 1.7;
}

.grammar-compare {
  margin-top: 28px;
  border-top: 1px solid #e5e8e3;
}

.grammar-compare-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e8e3;
}

.grammar-compare-row > strong {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.grammar-compare-row > div > span {
  color: #38453e;
  font-size: 14px;
  line-height: 1.7;
}

.grammar-compare-row p {
  margin-top: 5px;
  color: #6b746e;
  font-size: 13px;
  line-height: 1.75;
}

.grammar-module-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e5e8e3;
}

.grammar-module-foot > span {
  color: #7a817c;
  font-size: 12px;
  line-height: 1.65;
}

.grammar-module-foot .btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .grammar-hero-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .grammar-summary {
    width: 100%;
    min-width: 0;
  }

  .grammar-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .grammar-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid #dfe5e0;
  }

  .grammar-nav > span,
  .grammar-nav p {
    width: 100%;
  }

  .grammar-nav > span {
    margin-bottom: 0;
  }

  .grammar-nav p {
    margin-top: 6px;
    border-top: 0;
    padding-top: 0;
  }

  .grammar-nav .text-link {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .grammar-summary {
    grid-template-columns: 1fr;
  }

  .grammar-summary > div {
    padding: 12px 15px;
    border-top: 1px solid #cad6cd;
    border-left: 0;
  }

  .grammar-summary > div:first-child {
    border-top: 0;
  }

  .grammar-module {
    padding: 24px 20px;
  }

  .grammar-module-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .grammar-number {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .grammar-module-head h2 {
    font-size: 24px;
  }

  .grammar-rule-grid,
  .grammar-example {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .grammar-example > span {
    margin-bottom: -8px;
  }

  .grammar-compare-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .grammar-module-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v0.16: migrated article library, filters, and article reader. */
.featured-category {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #39483f;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.article-index-head,
.grammar-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.article-index-head {
  margin: 42px 0 18px;
}

.article-index-head h2,
.grammar-archive-head h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 700;
}

.article-index-head > span,
.grammar-archive-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.course-tag.orange {
  background: #f6e7d8;
  color: var(--orange-dark);
}

.article-card {
  min-height: 280px;
}

.article-card h3 {
  font-size: 20px;
  line-height: 1.45;
}

.article-card h3 a {
  display: block;
}

.article-card .course-desc {
  flex: 1;
}

.article-card .story-meta {
  margin-top: 18px;
}

.article-toc .toc-sub {
  padding-left: 12px;
  color: #78817c;
  font-size: 12px;
}

.article-page-section {
  padding-top: 52px;
}

.article-wrap > *,
.migrated-article-body,
.migrated-content {
  min-width: 0;
}

.migrated-article-body h2,
.migrated-article-body h3 {
  scroll-margin-top: 110px;
}

.migrated-article-body .migrated-content > h2:first-child,
.migrated-article-body .migrated-content > h3:first-child {
  margin-top: 30px;
}

.article-body ol {
  margin: 16px 0 0;
  padding-left: 24px;
  color: #36434c;
  font-size: 16px;
  line-height: 1.9;
}

.article-body li + li {
  margin-top: 7px;
}

.article-body a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--orange);
}

.article-table-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid #dde3de;
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.article-body table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #3d4942;
  font-size: 14px;
  line-height: 1.65;
}

.article-body th,
.article-body td {
  padding: 11px 13px;
  border-right: 1px solid #e4e8e4;
  border-bottom: 1px solid #e4e8e4;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: #f2f6f3;
  color: #315c4b;
  font-weight: 700;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body th:last-child,
.article-body td:last-child {
  border-right: 0;
}

.article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 6px;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid #4a765f;
  background: #f1f6f2;
  color: #33473d;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-end strong {
  color: #2f3d35;
  font-family: var(--serif);
  font-size: 18px;
}

.article-end p {
  margin-top: 6px;
  font-size: 13px;
}

.article-end .btn {
  flex: 0 0 auto;
}

.grammar-archive {
  margin-top: 72px;
  padding-top: 58px;
  border-top: 1px solid #dfe5e0;
}

.grammar-archive-head {
  margin-bottom: 24px;
}

.grammar-archive-head p {
  max-width: 680px;
  margin-top: 10px;
  color: #68756d;
  font-size: 14px;
}

.grammar-archive .filter-bar {
  margin-bottom: 22px;
  background: #f7f9f6;
}

.grammar-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grammar-archive-card {
  min-width: 0;
  border: 1px solid #e1e5e0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.grammar-archive-card:hover {
  border-color: #bfcabf;
  box-shadow: 0 10px 24px rgba(48, 58, 52, 0.06);
  transform: translateY(-2px);
}

.grammar-archive-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
}

.archive-topic {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eaf2ed;
  color: #36614f;
  font-size: 10px;
  font-weight: 700;
}

.grammar-archive-card h3 {
  margin-top: 12px;
  color: #28352e;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.grammar-archive-card p {
  margin-top: 9px;
  color: #69736d;
  font-size: 13px;
  line-height: 1.7;
}

.archive-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  color: #858d88;
  font-size: 11px;
}

.archive-foot > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-dark);
  font-weight: 700;
}

.archive-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 1100px) {
  #newsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .grammar-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .article-index-head,
  .grammar-archive-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .article-index-head {
    margin-top: 34px;
  }

  .article-card {
    min-height: 0;
  }

  .article-page-section {
    padding-top: 32px;
  }

  .article-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-end .btn {
    width: 100%;
  }

  .grammar-archive {
    margin-top: 52px;
    padding-top: 42px;
  }

  .grammar-archive-head h2,
  .article-index-head h2 {
    font-size: 27px;
  }

  .grammar-archive .filter-bar {
    padding: 16px;
  }

  .grammar-archive-card > a {
    padding: 19px;
  }
}

@media (max-width: 380px) {
  .chip {
    padding: 0 11px;
    font-size: 12px;
  }

  .archive-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* v0.17: accessibility, course hierarchy, CEFR guidance, and consultation flow. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  background: #22333f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(20, 31, 39, 0.22);
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-menu-links a[aria-current="page"] {
  color: var(--orange-dark);
  font-weight: 800;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #2b6f8f;
  outline-offset: 3px;
}

main:focus-visible {
  outline: 2px solid #2b6f8f;
  outline-offset: -2px;
}

.page h1[tabindex="-1"]:focus {
  outline: 0;
}

.legacy-section-head-wide {
  max-width: 860px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.legacy-home-page .legacy-course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legacy-home-page .course-direction-primary {
  min-height: 260px;
}

.legacy-course-divider {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid #e4ded5;
}

.legacy-course-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #eee8df;
}

.legacy-course-divider span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
}

.legacy-home-page .course-direction-secondary {
  grid-column: span 2;
  min-height: 300px;
  background: #fbf8f2;
}

.legacy-home-page .legacy-course-level {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 7px;
  padding: 3px 9px;
  border: 1px solid #e7d4bf;
  border-radius: 4px;
  background: #fbf5ec;
  color: #8e4a25;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.legacy-home-page .legacy-schedule-row strong small {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f1ede7;
  color: #766d65;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  vertical-align: 1px;
  white-space: nowrap;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cefr-guide {
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid #dbe1dc;
  border-radius: 8px;
  background: #fff;
}

.cefr-guide > div {
  min-width: 0;
  padding: 17px 18px;
  border-left: 1px solid #e2e7e3;
}

.cefr-guide > div:first-child {
  border-left: 0;
}

.cefr-guide-head {
  background: #23343f;
  color: #fff;
}

.cefr-guide-head span,
.cefr-guide-head strong,
.cefr-guide > div b,
.cefr-guide > div span {
  display: block;
}

.cefr-guide-head span {
  color: #efb188;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cefr-guide-head strong {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.5;
}

.cefr-guide > div b {
  color: #315d4c;
  font-family: var(--serif);
  font-size: 17px;
}

.cefr-guide > div span {
  margin-top: 5px;
  color: #6b746e;
  font-size: 11px;
  line-height: 1.65;
}

.program-hub-grid.program-primary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-primary-grid .program-hub-card {
  min-height: 262px;
}

.program-tags .level {
  border-color: #e4cdb8;
  background: #fbefe3;
  color: #8f451d;
  font-weight: 800;
}

.program-tags .not-course {
  border-color: #cfdcd4;
  background: #eef4f0;
  color: #3e6856;
  font-weight: 800;
}

.program-secondary {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.program-secondary-heading {
  align-self: center;
  padding: 4px 12px 4px 0;
}

.program-secondary-heading > span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
}

.program-secondary-heading h2 {
  margin-top: 6px;
  color: #313b36;
  font-family: var(--serif);
  font-size: 28px;
}

.program-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.program-secondary .program-hub-card {
  min-height: 178px;
  padding: 20px;
  border-top-width: 2px;
  background: #faf8f4;
}

.program-secondary .program-hub-card h2 {
  margin-top: 14px;
  font-size: 21px;
}

.program-secondary .program-hub-card p {
  min-height: 0;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.65;
}

.program-secondary .program-icon {
  width: 36px;
  height: 36px;
}

.program-secondary .program-icon .icon {
  width: 17px;
  height: 17px;
}

.course-fit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 4px solid var(--action);
  background: #f8f2e9;
}

.course-fit-banner > div {
  min-width: 0;
}

.course-fit-banner span,
.course-fit-banner strong {
  display: block;
}

.course-fit-banner span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
}

.course-fit-banner strong {
  margin-top: 5px;
  color: #343a36;
  font-size: 15px;
  line-height: 1.55;
}

.course-fit-banner .btn {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .program-hub-grid.program-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-home-page .legacy-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-home-page .course-direction-secondary {
    grid-column: span 1;
  }

  .cefr-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cefr-guide-head {
    grid-column: 1 / -1;
  }

  .cefr-guide > div:nth-child(2),
  .cefr-guide > div:nth-child(4) {
    border-left: 0;
  }

  .cefr-guide > div:nth-child(n + 3) {
    border-top: 1px solid #e2e7e3;
  }
}

@media (max-width: 920px) {
  .program-secondary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-secondary-heading {
    padding-right: 0;
  }
}

@media (max-width: 680px) {
  .legacy-section-head-wide {
    text-align: left;
  }

  .legacy-home-page .legacy-course-grid {
    grid-template-columns: 1fr;
  }

  .legacy-home-page .course-direction-primary,
  .legacy-home-page .course-direction-secondary {
    grid-column: auto;
    min-height: 0;
  }

  .program-hub-grid.program-primary-grid,
  .program-secondary-grid,
  .cefr-guide {
    grid-template-columns: 1fr;
  }

  .program-primary-grid .program-hub-card {
    min-height: 220px;
  }

  .program-secondary {
    margin-top: 24px;
    padding-top: 22px;
  }

  .program-secondary-heading h2 {
    font-size: 25px;
  }

  .program-secondary .program-hub-card {
    min-height: 170px;
  }

  .cefr-guide-head {
    grid-column: auto;
  }

  .cefr-guide > div {
    border-top: 1px solid #e2e7e3;
    border-left: 0;
  }

  .cefr-guide > div:first-child {
    border-top: 0;
  }

  .course-fit-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-fit-banner .btn,
  .page-hero-actions .btn {
    width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(30px, 8.4vw, 34px);
    line-height: 1.25;
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  .legacy-home-page .legacy-schedule-row strong small {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }

  .course-fit-banner {
    padding: 18px 16px;
  }

  .page-hero h1 {
    font-size: 27px;
  }
}

@media (min-width: 861px) {
  body {
    font-size: 16px;
  }

  .nav-link {
    font-size: 16px;
  }

  .section-kicker {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .section-lead {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.85;
  }

  .text-link {
    font-size: 15px;
  }

  .page-hero {
    padding-block: 72px 60px;
  }

  .page-hero p {
    max-width: 800px;
    font-size: 18px;
    line-height: 1.85;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .detail-panel {
    padding: 34px;
  }

  .detail-panel h2 {
    font-size: 28px;
  }

  .detail-panel p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.9;
  }

  .outcome-list > div,
  .faq-item p,
  .course-service-grid p {
    font-size: 15px;
    line-height: 1.85;
  }

  .fact span {
    font-size: 12.5px;
  }

  .fact strong {
    font-size: 15px;
  }

  .meta-row {
    font-size: 14px;
    line-height: 1.7;
  }

  .class-compare-table th {
    font-size: 13px;
    line-height: 1.55;
  }

  .class-compare-table td,
  .route-compare-table th,
  .route-compare-table td,
  .schedule-table th,
  .schedule-table td {
    font-size: 14px;
    line-height: 1.75;
  }

  .table-note {
    font-size: 13px !important;
    line-height: 1.75;
  }

  .course-card h3 {
    font-size: 24px;
  }

  .course-desc {
    font-size: 15px;
    line-height: 1.8;
  }

  .course-chip-list span,
  .program-tags span {
    font-size: 12.5px;
  }

  .course-facts {
    font-size: 12.5px;
  }

  .learning-tool-card p,
  .program-hub-card p {
    font-size: 15px;
    line-height: 1.8;
  }

  .program-link {
    font-size: 14px;
  }

  .story-meta {
    font-size: 13px;
  }

  .form-intro {
    font-size: 14px;
    line-height: 1.8;
  }

  .class-option-head b {
    font-size: 12px;
  }

  .class-option-meta,
  .class-option-foot {
    font-size: 13px;
    line-height: 1.65;
  }

  .form-hint,
  .draft-note {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 17px;
    line-height: 2;
  }

  .article-body h2 {
    font-size: 30px;
  }

  .legacy-home-page .legacy-hero-title {
    font-size: 44px;
  }

  .legacy-home-page .legacy-hero-copy .legacy-hero-lead {
    font-size: 24px;
  }

  .legacy-home-page .legacy-panel-service li {
    font-size: 15px;
    line-height: 1.7;
  }

  .legacy-home-page .legacy-schedule-group h3 {
    font-size: 13px;
  }

  .legacy-home-page .legacy-schedule-row {
    font-size: 14px;
  }

  .legacy-home-page .legacy-schedule-row span {
    font-size: 13px;
  }

  .legacy-home-page .legacy-schedule-row strong {
    font-size: 15px;
  }

  .legacy-home-page .legacy-schedule-row strong small {
    font-size: 11.5px;
  }

  .legacy-home-page .legacy-section-head p {
    max-width: 760px;
    font-size: 16.5px;
    line-height: 1.8;
  }

  .legacy-home-page .legacy-source-lines a {
    font-size: 14px;
    line-height: 1.75;
  }

  .legacy-home-page .legacy-course-card > .legacy-source-lines p {
    font-size: 13px;
    line-height: 1.75;
  }

  .legacy-home-page .learning-tool-head span {
    font-size: 11.5px;
  }

  .legacy-home-page .learning-tool-card p {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .legacy-home-page .journal-feature-body h3 {
    font-size: 31px;
    line-height: 1.45;
  }

  .legacy-home-page .journal-feature-body p {
    font-size: 15px;
    line-height: 1.85;
  }

  .legacy-home-page .journal-item strong,
  .legacy-home-page .journal-more strong {
    font-size: 15px;
  }

  .legacy-home-page .journal-item div > span,
  .legacy-home-page .journal-more small {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .legacy-home-page .legacy-why-lead {
    font-size: 17px;
    line-height: 1.8;
  }

  .legacy-home-page .legacy-benefits strong {
    font-size: 15px;
    line-height: 1.75;
  }

  .legacy-home-page .legacy-location-info > p {
    font-size: 15px;
    line-height: 1.8;
  }

  .site-footer .footer-col a,
  .site-footer .footer-brand p,
  .site-footer .footer-note,
  .site-footer .footer-bottom {
    font-size: 13.5px;
    line-height: 1.8;
  }
}

/* Give the desktop hero copy more breathing room so the tulips lead the page. */
@media (min-width: 861px) {
  .legacy-home-page .legacy-hero-inner {
    padding-top: clamp(94px, 11vh, 112px);
  }
}

/* Align desktop card copy to a consistent left edge and prevent orphaned last lines. */
@media (min-width: 681px) {
  .legacy-home-page .legacy-course-card {
    align-items: flex-start;
    text-align: left;
  }

  .legacy-home-page .legacy-course-card h3 {
    display: flex;
    width: 100%;
    min-height: 2.7em;
    align-items: flex-start;
  }

  .legacy-home-page .legacy-source-lines {
    text-align: left;
  }

  .legacy-home-page .legacy-source-lines a {
    display: block;
    width: 100%;
    font-size: 12.5px;
    line-height: 1.55;
    text-wrap: balance;
  }

  .legacy-home-page .legacy-journal .journal-feature-body h3 {
    font-size: clamp(27px, 2.05vw, 30px);
    line-height: 1.42;
    text-wrap: balance;
  }
}

@media (min-width: 861px) {
  .legacy-home-page .legacy-section-head h2,
  .legacy-home-page .legacy-why-copy h2 {
    text-wrap: balance;
  }
}

/* Keep the mobile homepage hero unobstructed before the information panels. */
@media (max-width: 680px) {
  .legacy-home-page .legacy-hero {
    --mobile-hero-height: 720px;
    --mobile-hero-height: clamp(560px, calc(100svh - 68px), 760px);
    min-height: 0;
    background: #f6f2ea;
  }

  .legacy-home-page .legacy-hero-image,
  .legacy-home-page .legacy-hero-shade {
    height: var(--mobile-hero-height);
  }

  .legacy-home-page .legacy-hero-image {
    object-position: center 56%;
  }

  .legacy-home-page .legacy-hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(74, 43, 10, 0.34) 0%,
        rgba(74, 43, 10, 0.16) 34%,
        rgba(74, 43, 10, 0.08) 56%,
        rgba(74, 43, 10, 0.28) 100%
      ),
      linear-gradient(90deg, rgba(74, 43, 10, 0.16), transparent 76%);
  }

  .legacy-home-page .legacy-hero-inner {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 34px;
  }

  .legacy-home-page .legacy-hero-copy {
    display: flex;
    min-height: var(--mobile-hero-height);
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 108px;
  }

  .legacy-home-page .legacy-hero-badge {
    align-self: flex-start;
  }

  .mobile-hero-break {
    display: block;
  }

  .legacy-home-page .legacy-hero-panels {
    gap: 16px;
    margin-top: 34px;
    padding-top: 0;
  }
}

@media (max-width: 380px) {
  .legacy-home-page .legacy-hero-copy {
    padding: 64px 0 96px;
  }

  .legacy-home-page .legacy-hero-title {
    font-size: 23px;
    line-height: 1.42;
  }

  .legacy-home-page .legacy-hero-copy .legacy-hero-lead {
    font-size: 15.5px;
    line-height: 1.72;
  }
}

.page[data-status="draft"] {
  display: none !important;
}

@media (max-width: 680px), (pointer: coarse) {
  .legacy-home-page .legacy-source-lines a,
  .legacy-home-page .legacy-course-title-link,
  .legacy-home-page .legacy-location-info a,
  .program-link,
  .text-link,
  .breadcrumb a,
  .site-footer .footer-col a,
  .site-footer .footer-bottom a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
  }

  .site-footer .footer-col a {
    display: flex;
  }

  .breadcrumb a {
    min-width: 40px;
    justify-content: center;
  }

  .card-foot .text-link,
  .journal-more,
  .program-link {
    min-height: 44px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography pass: consistent Chinese sans-serif hierarchy and comfortable reading sizes. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-family: inherit;
  letter-spacing: 0;
}

:is(h1, h2, h3, h4) {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.34;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.section-title,
.legacy-home-page .legacy-section-head h2,
.legacy-home-page .legacy-learning .section-title,
.legacy-home-page .legacy-journal .section-title,
.legacy-home-page .legacy-why-copy h2 {
  font-weight: 700;
  line-height: 1.36;
}

.legacy-home-page .legacy-courses .legacy-section-head h2 {
  font-size: 36px;
  line-height: 1.34;
}

.page-hero h1 {
  font-size: clamp(42px, 4vw, 50px);
  line-height: 1.24;
}

.detail-panel h2,
.single-route-head h2 {
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.42;
}

.legacy-home-page .legacy-hero-title {
  font-weight: 700;
}

.legacy-home-page .legacy-hero-copy .legacy-hero-lead {
  font-weight: 600;
  line-height: 1.65;
}

.learning-tool-card h3 {
  font-family: var(--sans);
}

@media (max-width: 680px) {
  .legacy-home-page .legacy-hero-badge {
    font-size: 12px;
    line-height: 1.55;
  }

  .legacy-home-page .legacy-hero-title {
    font-size: 28px;
    line-height: 1.38;
  }

  .legacy-home-page .legacy-hero-copy .legacy-hero-lead {
    font-size: 17px;
    line-height: 1.68;
  }

  .legacy-home-page .legacy-panel-title h2 {
    font-size: 18px;
    line-height: 1.45;
  }

  .legacy-home-page .legacy-panel-service li {
    font-size: 14px;
    line-height: 1.7;
  }

  .legacy-home-page .legacy-schedule-group h3 {
    font-size: 13px;
    line-height: 1.5;
  }

  .legacy-home-page .legacy-schedule-row {
    min-height: 44px;
    font-size: 13px;
  }

  .legacy-home-page .legacy-schedule-row span {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .legacy-home-page .legacy-schedule-row strong {
    font-size: 14px;
    line-height: 1.58;
  }

  .legacy-home-page .legacy-section-head h2,
  .legacy-home-page .legacy-why-copy h2,
  .legacy-home-page .legacy-learning .section-title,
  .legacy-home-page .legacy-journal .section-title,
  .section-title {
    font-size: 30px;
    line-height: 1.4;
  }

  .legacy-home-page .legacy-courses .legacy-section-head h2 {
    font-size: 28px;
    line-height: 1.42;
  }

  .learning-tool-card h3 {
    font-size: 21px;
    line-height: 1.4;
  }

  .learning-tool-card p,
  .legacy-home-page .legacy-learning .learning-tool-card p {
    font-size: 14px;
    line-height: 1.72;
  }

  .legacy-home-page .legacy-why-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .legacy-home-page .legacy-benefits strong {
    font-size: 14px;
    line-height: 1.72;
  }

  .site-footer .footer-col a,
  .site-footer .footer-brand p,
  .site-footer .footer-note,
  .site-footer .footer-bottom {
    font-size: 14px;
    line-height: 1.78;
  }
}

@media (min-width: 861px) {
  .legacy-home-page .legacy-courses .legacy-section-head h2 {
    font-size: 44px;
    line-height: 1.34;
  }
}
