/*
  MyDelta layout.
  Shared header, footer, and page skeletons. Uses tokens.css only for values.

  Session 2:
  - Hero slider: previous, next, dots, and Left/Right keys, plus a 5s
    autoplay that pauses on hover, focus, and a hidden tab. Desktop
    arrows are 48px with a 16px inset, with the 01 / 03 counter in the
    eyebrow. Below 1100px the arrows are hidden,
    dots sit under the photo, and an N / 3 chip sits on the photo.
    Swipe threshold is 40px. The crossfade is 450ms, or instant when
    prefers-reduced-motion is set.
  - The mobile menu traps Tab, marks the page inert, closes on Escape,
    returns focus to the toggle, and fades open and closed.
  - From 768px the content uses tablet columns. Six links do not fit
    beside the logo in the 768–900px band, so the menu button stays
    until 1000px. Horizontal nav starts there.

  TODO session 3 — responsive polish:
  - Spec frames are 1440 and 390 only. The tablet columns above are a working pass.
  - Desktop section waves are the traced 58px dividers. Mobile uses the 20px vector.
  - Flush columns, equal photo heights, card centres lined up across sections.
  - Match the mobile menu overlay to frame 191:3267 once it is exported.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-body-size);
  font-weight: 400;
  line-height: var(--text-body-line);
  color: var(--color-body);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-heading);
  margin: 0 0 var(--space-16);
}

h1,
.hero__title {
  font-size: var(--text-hero-size);
  line-height: var(--text-hero-line);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
}

h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line);
}

p {
  margin: 0 0 var(--space-16);
}

a {
  color: var(--color-heading);
}

:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: var(--space-8);
  transform: translateY(-150%);
  background: var(--color-white);
  color: var(--color-heading);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-tile);
  z-index: 40;
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--content-max), calc(100% - (var(--side-pad) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.lead {
  font-weight: 700;
  font-size: var(--text-lead-size);
  line-height: var(--text-lead-line);
}

.eyebrow {
  margin: 0 0 var(--space-8);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The wave sits in the bottom padding. Band colour uses background-color
   so a later .band--* rule cannot clear the image. */
.curve-to-white,
.curve-to-cream,
.curve-to-yellow,
.curve-to-orange,
.curve-to-navy,
.curve-to-footer {
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% var(--wave-height);
  padding-bottom: calc(var(--section-pad) + var(--wave-height));
}

.curve-to-white { background-image: url("../assets/waves/CLEAN-mobile-to-white.svg"); }
.curve-to-cream { background-image: url("../assets/waves/CLEAN-mobile-to-cream.svg"); }
.curve-to-yellow { background-image: url("../assets/waves/CLEAN-mobile-to-yellow.svg"); }
.curve-to-orange { background-image: url("../assets/waves/CLEAN-mobile-to-orange.svg"); }
.curve-to-navy { background-image: url("../assets/waves/CLEAN-mobile-to-navy.svg"); }
.curve-to-footer { background-image: url("../assets/waves/CLEAN-mobile-to-navy-20409a.svg"); }

.band--cream { background-color: var(--color-cream); }
.band--yellow { background-color: var(--color-yellow-band); }
.band--white { background-color: var(--color-white); }

.band--orange {
  background-color: var(--color-orange-band);
  color: var(--color-white);
}

.band--orange h2,
.band--orange p {
  color: var(--color-white);
}

/* Header */
.topbar {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: var(--text-topbar-size);
}

.topbar__inner,
.navbar__inner,
.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.topbar__inner {
  min-height: 40px;
}

.topbar__hours {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
}

.topbar__hours svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.navbar {
  background: var(--color-white);
}

.navbar__inner {
  min-height: 111px;
}

.logo img {
  display: block;
  width: auto;
  height: 64px;
}

.nav-primary ul,
.mobile-menu__links,
.social-list,
.trust,
.checks,
.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap.trust {
  margin-inline: auto;
}

.nav-primary ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
  justify-content: flex-end;
}

.nav-primary a,
.mobile-menu__links a {
  font-family: var(--font-nav);
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
}

.nav-primary a {
  font-size: var(--text-nav-size);
}

.nav-primary a:hover,
.nav-primary a.is-current,
.mobile-menu__links a:hover,
.mobile-menu__links a.is-current {
  color: var(--color-accent);
}

.nav-primary a:active,
.mobile-menu__links a:active {
  color: var(--color-accent-pressed);
}

.nav-toggle,
.menu-close {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--color-navy);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  place-items: center;
  border-radius: 12px;
  background: #f9f6ef;
  color: #20409a;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #20409a;
  border-radius: var(--radius-full);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.menu-close {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f9f6ef;
  color: #20409a;
  font-size: 32px;
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--color-cream);
  padding: var(--space-20) var(--space-24) var(--space-40);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu .logo img {
  height: 44px;
}

.mobile-menu__links {
  display: grid;
  gap: var(--space-8);
}

.mobile-menu__links a {
  font-size: 28px;
  color: var(--color-heading);
}

.mobile-menu__hours {
  margin: 0;
  font-family: var(--font-nav);
  font-weight: 500;
}

body.menu-open {
  overflow: hidden;
}

/* Social. Glyphs are Simple Icons (CC0). */
.social-list {
  display: flex;
  gap: var(--space-12);
  align-items: center;
}

.social-link {
  display: grid;
  place-items: center;
  color: var(--color-white);
}

.social-list--inline .social-link {
  width: 32px;
  height: 32px;
}

.social-list--inline .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-list--circles {
  justify-content: center;
}

.social-list--circles .social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-navy);
}

.social-list--circles .icon {
  width: 22px;
  height: 22px;
  fill: var(--color-white);
}

/* Desktop top bar. The wordmark is unreadable at 18×18, so its slot is 28×18 and the glyph is about 26×9. */
.social-list--inline .social-link--xiaohongshu {
  width: 28px;
  height: 18px;
}

.social-list--inline .icon--xiaohongshu {
  width: 26px;
  height: auto;
}

.social-list--circles .icon--xiaohongshu {
  width: 30px;
  height: auto;
}

.social-link:hover {
  opacity: 0.8;
}

.social-note {
  margin: 0 0 var(--space-12);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 52px;
  padding: var(--space-16) var(--space-40);
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-button-size);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn:hover,
.btn:active {
  background: var(--color-accent-pressed);
  color: var(--color-white);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  border-radius: var(--radius-whatsapp);
}

.btn--whatsapp:hover,
.btn--whatsapp:active {
  background: #0e756a;
}

.btn--navy {
  background: var(--color-heading);
  border-radius: var(--radius-whatsapp);
}

.btn--navy:hover,
.btn--navy:active {
  background: var(--color-navy);
  color: var(--color-white);
}

.band--orange .btn--accent {
  background: var(--color-white);
  color: var(--color-accent);
}

.band--orange .btn--accent:hover,
.band--orange .btn--accent:active {
  background: var(--color-cream);
  color: var(--color-accent-pressed);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

/* Hero. Three slides, manual controls, no autoplay. */
.hero {
  background: var(--color-cream);
  padding-top: var(--space-32);
}

.hero .wrap {
  width: min(1260px, calc(100% - (var(--side-pad) * 2)));
}

.hero__stage {
  position: relative;
}

.hero__slides {
  display: grid;
}

.hero__slide {
  grid-area: 1 / 1;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.hero__slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero__slide.is-active {
  z-index: 1;
}

.hero__layout {
  display: grid;
  gap: var(--space-24);
  height: 100%;
}

.hero__title,
.hero__sub {
  margin-top: 0;
}

.hero .eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: none;
}

.hero__title {
  min-height: 76px;
  margin-bottom: var(--space-12);
  font-size: 32px;
  line-height: 38px;
}

.hero__sub {
  min-height: 52px;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-24);
  padding: 0;
  list-style: none;
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(250, 92, 59, 0.33);
  border-radius: 999px;
  background: var(--color-white);
  color: #20409a;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.hero__badges svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: #fa5c3b;
}

.hero__badges .icon-outline {
  fill: none;
  stroke: #fa5c3b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 899px) {
  .hero__badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero .btn {
  padding: 13px 24px;
  font-size: 18px;
  line-height: 26px;
}

.draft-marker {
  display: inline-block;
  margin-right: var(--space-8);
  padding: 0 var(--space-8);
  border-radius: var(--radius-tile);
  background: var(--color-highlight);
  color: var(--color-heading);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 22px;
  vertical-align: 1px;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Controls sit on the photo. On small screens the box matches the
   full-bleed photo so the chip and the dots can use its edges. */
.hero__chrome {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(var(--side-pad) * -1);
  width: calc(100% + (var(--side-pad) * 2));
  aspect-ratio: 4 / 3;
  pointer-events: none;
}

.hero__controls {
  position: relative;
  height: 100%;
}

.hero__chip {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  z-index: 1;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  background: rgba(32, 32, 32, 0.72);
  color: var(--color-white);
  font-weight: 800;
  font-size: 14px;
  pointer-events: none;
}

.hero__arrow {
  display: none;
}

.hero__toggle {
  display: grid;
  place-items: center;
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-slider-arrow);
  cursor: pointer;
  pointer-events: auto;
}

.hero__toggle:hover {
  color: var(--color-heading);
}

.hero__toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero__toggle .icon-play {
  display: none;
}

.hero__toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.hero__toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.hero__dots {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-16);
  pointer-events: auto;
}

.hero__dots button {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: #d9d3c8;
  cursor: pointer;
}

.hero__dots button::after {
  content: "";
  position: absolute;
  inset: -12px;
}

.hero__dots button.is-active {
  width: 32px;
  height: 12px;
  background: var(--color-accent);
}

.trust {
  display: grid;
  gap: 12px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-heading);
}

.trust svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
}

.feature-band {
  padding-top: 8px;
}

.feature-row {
  display: grid;
  gap: 24px;
}

.feature-row article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.feature-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.feature-row h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 26px;
}

.feature-row p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

/* Cards, photos, reviews */
.card-grid,
.gallery,
.hof-featured,
.hof-grid,
.split,
.contact-cards,
.location-grid,
.schedule-grid {
  display: grid;
  gap: var(--space-24);
}

/* Four feature cards, two per row on desktop and on the 390px frame. */
.card-grid--pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* White fact tiles. Four across on a wide screen, two on a phone. */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.fact-tile {
  box-sizing: border-box;
  min-width: 0;
  padding: 18px 16px;
  background: var(--color-white);
  border: 0;
  border-radius: 12px;
  overflow-wrap: normal;
  hyphens: none;
}

.fact-tile__label {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-tile__value {
  margin: 0 0 6px;
  color: var(--color-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
}

.fact-tile__note {
  margin: 0;
  color: #595966;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

#life-heading {
  font-size: 28px;
  line-height: 34px;
}

#life .gallery__photo {
  aspect-ratio: auto;
  height: 140px;
  object-fit: cover;
}

/* Timetable chips at every width. Phone rows put the time on the left. */
.timetable-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timetable-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-tile);
}

.timetable-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}

.timetable-chips {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timetable-chips li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.timetable-chip__time {
  flex: 0 0 80px;
  width: 80px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.timetable-chip__activity {
  min-width: 0;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

@media (min-width: 1100px) {
  .fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
  }

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

  .fact-grid.fact-grid--3 .fact-tile:last-child {
    grid-column: auto;
  }

  .fact-tile {
    min-height: 149px;
  }

  #programme h2,
  #apart-heading {
    font-size: 36px;
    line-height: 40px;
  }

  #life .gallery__photo {
    height: 240px;
  }

  .timetable-row {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    width: 100%;
  }

  .timetable-card,
  .timetable-card--morning,
  .timetable-card--afternoon {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }

  .timetable-chips,
  .timetable-card--afternoon .timetable-chips {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  .timetable-chips li,
  .timetable-card--afternoon .timetable-chips li {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
  }

  .timetable-chip__time {
    flex: 0 0 auto;
    width: auto;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
  }

  .timetable-chip__activity {
    font-size: 14px;
    line-height: 19px;
  }
}

@media (max-width: 767px) {
  .hof-grid {
    gap: 12px;
  }

  .hof-featured .hof-card {
    width: calc(100% - 1px);
    justify-self: center;
  }

  .card-grid--pairs {
    gap: var(--space-12);
  }

  .card-grid--pairs .card {
    min-width: 0;
    padding: var(--space-16);
  }

  .card-grid--pairs .card h3,
  .tile-grid .card h3 {
    font-size: 15px;
    line-height: 20px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .card-grid--pairs .card p {
    overflow-wrap: normal;
    hyphens: none;
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-24) var(--space-24) var(--space-32);
}

.band--white .card,
.section.band--white .card {
  background: var(--color-cream);
}

.card h3 {
  margin-bottom: var(--space-8);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--color-accent);
}

.card p:last-child {
  margin-bottom: 0;
}

/* Daycare "What sets us apart" and Public Speaking benefits.
   White tiles, yellow border, radius 12. Other cards stay as they are. */
.tile-grid .card,
.section.band--white .tile-grid .card {
  min-width: 0;
  background: var(--color-white);
  border: 2px solid #ffdd98;
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
}

.tile-grid--speaking .card {
  border-width: 1.5px;
  padding: 22px;
}

.tile-grid .card h3 {
  margin-bottom: 8px;
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 767px) {
  .tile-grid .card h3,
  .card-grid--pairs .card h3 {
    font-size: 15px;
    line-height: 20px;
  }

  .schedule-rows__time {
    flex-basis: 108px;
  }

  .fact-tile__value {
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
  }

  .timetable-chip__time {
    flex-basis: 92px;
    width: auto;
    min-width: 92px;
    white-space: nowrap;
  }
}

@media (min-width: 1100px) {
  body.page-speaking #sat-heading,
  body.page-speaking #gain-heading,
  body.page-speaking #voices-heading,
  body.page-speaking #speaking-gallery-heading,
  body.page-speaking #know-heading {
    font-size: 36px;
    line-height: 40px;
  }

  #speaking-overview-heading {
    font-size: 40px;
    line-height: 40px;
  }

  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .voice-card {
    min-height: 160px;
    padding: 26px 22px;
  }

  .voice-card .voice-photo {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }

  .know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 28px;
  }
}

.tile-grid .card p {
  margin: 0;
  color: #595966;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

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

.photo-placeholder,
.review {
  border: 2px dashed var(--color-navy);
  background-color: var(--color-cream);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(56, 76, 134, 0.07) 10px,
    rgba(56, 76, 134, 0.07) 20px
  );
  color: var(--color-navy);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-8);
  min-height: 180px;
  padding: var(--space-16);
  border-radius: var(--radius-image);
  text-align: center;
}

.hero__photo {
  display: block;
  width: min(100%, var(--hero-native-m, 507px));
  height: auto;
  margin-inline: auto;
  /* The crop files already match the Figma frames, so they are not covered again. */
  object-fit: fill;
  aspect-ratio: 4 / 3;
  /* Mobile hero is full-bleed with no radius. Desktop radius is 38. */
  border-radius: 0;
  min-height: 0;
}

.frame-photo,
.photo-baked {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.photo-baked {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Mobile sizes are the 390 frame. Desktop overrides sit at 1100px.
   Boxes stay at or under each file's pixel size, so nothing is upscaled. */
.home-story { aspect-ratio: 342 / 256; border-radius: 20px; }
.home-collage { aspect-ratio: 342 / 321; }
.join-lounge__photo { aspect-ratio: 342 / 268; }
.gallery:not(.gallery--trio) { gap: 12px; }
.gallery__photo { aspect-ratio: 165 / 124; border-radius: 12px; }
.overview-photo { aspect-ratio: 342 / 220; border-radius: 12px; }
.about-story,
.about-mission { aspect-ratio: 342 / 200; border-radius: 16px; }
.history-photo { aspect-ratio: 342 / 220; border-radius: 16px; }

.photo-stack,
.history-photos {
  display: grid;
  gap: 16px;
}

.history-photos { margin-top: var(--space-24); }

.about-hero-sub--wide { display: none; }

.about-story-layout {
  display: grid;
  gap: 16px;
}

.about-story--extra { display: none; }

.history-photos .history-photo:not(:last-child) { display: none; }

.highlight-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 80px;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid #f0e6d2;
  border-radius: 16px;
}

.highlight-card__icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffdd98;
}

.highlight-card__icon img {
  width: 28px;
  height: 28px;
}

.highlight-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.highlight-card p {
  margin: 0;
  color: var(--color-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.values-heading {
  margin: 32px 0 12px;
  font-size: 28px;
  font-weight: 900;
  line-height: 34px;
}

.values-intro {
  max-width: 900px;
}

#history-heading {
  font-size: 32px;
  line-height: 38px;
}

.mvv-card {
  padding: 32px;
}

.gallery.gallery--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery.gallery--trio .gallery__photo {
  aspect-ratio: 322 / 420;
  border-radius: 12px;
}

.voice-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-12);
}

.review--voice {
  background: var(--color-white);
  border: 0;
  background-image: none;
}

.speaking-overview-layout {
  display: grid;
  gap: 16px;
}

.speaking-overview-layout h2,
.speaking-overview-layout .speaking-lead {
  margin: 0;
}

.daycare-overview-layout {
  display: grid;
  gap: 16px;
}

.daycare-overview-layout h2,
.daycare-overview-layout .speaking-lead {
  margin: 0;
}

@media (max-width: 1099px) {
  #daycare-overview-heading {
    font-size: 28px;
    line-height: 38px;
  }

  .daycare-overview-layout .speaking-lead {
    font-size: 16px;
    line-height: 24px;
  }

  .daycare-overview-layout .speaking-points {
    gap: 16px;
  }

  .daycare-overview-layout .outline-tile {
    padding: 18px;
  }

  .daycare-overview-layout .outline-tile h3 {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 24px;
  }
}

.speaking-lead {
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.speaking-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outline-tile {
  min-width: 0;
  background: var(--color-white);
  border: 1.5px solid #ffdd98;
  border-radius: 12px;
  padding: 16px 20px;
}

.outline-tile--roomy {
  padding: 20px 22px;
}

.outline-tile h3 {
  margin: 0 0 4px;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  overflow-wrap: normal;
  hyphens: none;
}

.outline-tile p {
  margin: 0;
  color: #595966;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.fact-grid--3 .fact-tile:last-child {
  grid-column: 1 / -1;
}

.schedule-card {
  box-sizing: border-box;
  background: var(--color-white);
  border-radius: 12px;
  padding: 20px;
}

.schedule-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  line-height: 28px;
}

.schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-rows li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.schedule-rows__time {
  flex: 0 0 130px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.schedule-rows__text {
  color: var(--color-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.sat-intro {
  margin: 0 0 24px;
  color: var(--color-body);
  font-size: 16px;
  line-height: 24px;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.slot-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-tile);
}

.slot-card__label,
.slot-card__time,
.slot-card__group,
.slot-card__dur {
  margin: 0;
}

.slot-card__label {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot-card__time {
  color: var(--color-heading);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
}

.slot-card__group {
  color: var(--color-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.slot-card__dur {
  display: inline-flex;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f5f0e6;
  color: #595966;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.sat-cta {
  margin: 24px 0 0;
}

.sat-cta .btn {
  width: 100%;
  min-height: 55px;
  padding: 0 24px;
}

@media (min-width: 1100px) {
  .slot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  #sat-heading {
    margin-bottom: 24px;
  }

  .sat-intro {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.5;
  }

  .slot-card {
    padding: 32px 40px;
    gap: 8px;
  }

  .slot-card__time {
    font-size: 44px;
  }

  .slot-card__group {
    font-size: 18px;
    line-height: 24px;
  }

  .sat-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }

  .sat-cta .btn {
    width: auto;
    min-width: 262px;
    padding-inline: 28px;
  }
}

@media (max-width: 767px) {
  #saturday-classes {
    padding-top: 32px;
  }

  .sat-intro {
    margin-bottom: 16px;
  }

  .slot-grid {
    gap: 12px;
  }
}

.voice-grid {
  display: grid;
  gap: 16px;
}

.voice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 20px;
  background: var(--color-white);
  border: 1.5px solid #ffdd98;
  border-radius: 12px;
}

.voice-card .voice-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0;
}

.voice-card p {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.voice-card footer {
  margin: 0;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.know-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tile-grid--speaking .card h3 {
  font-size: 16px;
  line-height: 22px;
}

.tile-grid--speaking .card p {
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 1099px) {
  .section.band--white .tile-grid--speaking .card,
  .outline-tile,
  .outline-tile--roomy {
    padding: 10px 12px;
  }

  .tile-grid--speaking .card h3,
  .outline-tile h3 {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 20px;
  }

  .tile-grid--speaking .card p,
  .outline-tile p {
    font-size: 14px;
    line-height: 20px;
  }

  .voice-card {
    gap: 10px;
    padding: 10px 12px;
  }

  body.page-speaking {
    --section-pad: 21px;
  }
}

.placeholder-label {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-placeholder p,
.review p {
  margin: 0;
}

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

#gallery-heading {
  text-align: center;
}

.band--gallery {
  position: relative;
}

.gallery-house,
.gallery-teddy {
  display: none;
}

/* Welcome band. Decor is positioned in the 1440 frame. On a phone the
   badge sits centred above the copy and the bird is a small corner mark. */
.band--welcome {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 28px 24px calc(28px + var(--wave-height));
}

.welcome-badge,
.welcome-basket,
.welcome-bird {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.welcome-badge {
  width: 132px;
  height: 181px;
  margin: 0 auto 16px;
}

.welcome-basket {
  display: none;
}

.welcome-bird {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 60px;
  height: 60px;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(508px, 100%);
  margin-inline: auto;
  text-align: center;
}

.band--welcome h2 {
  margin: 0;
  color: var(--color-accent);
  font-size: 24px;
  line-height: 30px;
}

.welcome-lead {
  margin: 0;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}

@media (min-width: 1100px) {
  .band--welcome {
    --welcome-wave: 80px;
    min-height: 322px;
    padding: 0;
    background-size: 100% var(--welcome-wave);
  }

  .welcome-badge {
    position: absolute;
    z-index: 2;
    /* 172x235, centred in the yellow, clear of both waves. */
    top: 22px;
    left: max(16px, calc(50% - 720px + 356px));
    width: 172px;
    height: 235px;
    margin: 0;
  }

  .welcome-basket {
    display: block;
    position: absolute;
    top: 67px;
    left: clamp(16px, calc(50% - 720px + 1200px), calc(100% - 130px - 16px));
    width: 130px;
    height: 130px;
  }

  .welcome-bird {
    top: 192px;
    left: max(0px, calc(50% - 720px + 70px));
    right: auto;
    width: 110px;
    height: 110px;
  }

  .welcome-copy {
    position: absolute;
    top: 138px;
    left: max(16px, calc(50% - 720px + 576px));
    width: 508px;
    margin: 0;
    text-align: left;
    transform: translateY(-50%);
  }
}

@media (min-width: 1100px) {
  .band--welcome h2 {
    font-size: 36px;
    line-height: 36px;
  }

  .welcome-lead {
    font-size: 20px;
    line-height: 26px;
  }
}

.checks {
  display: grid;
  gap: var(--space-12);
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 800;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-heading);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #20409a center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2 4.8 8.8 9.8 3.2'/%3E%3C/svg%3E");
}

.what-we-do {
  display: grid;
  gap: 16px;
}

.what-we-do h2,
.what-we-do-copy p {
  margin: 0;
}

.what-we-do-line {
  color: var(--color-heading);
  font-weight: 700;
}

/* Beats `.what-we-do-copy p { margin: 0 }` so the 16px gap is visible. */
.what-we-do-copy .what-we-do-line {
  margin-top: 16px;
}

.what-we-do-copy .checks {
  margin-top: 20px;
}

.home-story-layout {
  position: relative;
  display: grid;
  gap: 16px;
}

#story-heading {
  margin: 0;
  font-size: 40px;
  line-height: 40px;
}

.home-story-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}

.story-checks {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.story-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #202020;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.story-checks li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e14a2a center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2 4.8 8.8 9.8 3.2'/%3E%3C/svg%3E");
}

.home-story-copy .btn {
  justify-self: start;
  margin-top: 24px;
}

.review {
  border-radius: var(--radius-card);
  padding: var(--space-24);
}

.review footer {
  margin-top: var(--space-16);
  font-weight: 800;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--space-24);
}

.value-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 74px;
  padding: 14px 10px;
  border: 1px solid #f0e6d2;
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-heading);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: normal;
  hyphens: none;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffdd98;
}

.value-icon img {
  width: 16.8px;
  height: 16.8px;
}

/* Subpage heroes. Mobile matches the 390 frames: eyebrow 12, H1 36
   (Contact 40), sub 15 regular. Desktop is 14 / 56 / 18. */
.page-hero {
  background-color: var(--color-yellow-band);
  text-align: center;
  /* Side inset comes from .wrap. Extra padding here would shrink the 390 frame to 294px. */
  padding: 40px 0 32px;
}

.page-hero.curve-to-white,
.page-hero.curve-to-navy {
  padding-bottom: calc(32px + var(--wave-height));
}

.page-hero .wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.page-hero .eyebrow {
  margin: 0;
  color: #fa5c3b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 16px;
}

.page-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
}

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

.page-hero p {
  margin: 0;
  max-width: 342px;
  color: var(--color-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-image);
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 900;
  font-size: var(--text-h4-size);
  line-height: 1.3;
  color: var(--color-heading);
  padding-bottom: var(--space-12);
}

th,
td {
  text-align: left;
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid rgba(32, 32, 32, 0.1);
  vertical-align: top;
}

th {
  color: var(--color-heading);
  font-weight: 800;
}

.hof-block {
  text-align: center;
}

.hof-block .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hof-block h2 {
  font-size: 32px;
  line-height: 38px;
  text-align: center;
}

.hof-sub {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.hof-sub--wide { display: none; }

.hof-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hof-grid .hof-card {
  flex: 0 1 calc(50% - 6px);
  max-width: calc(50% - 6px);
}

.hof-card {
  min-width: 0;
  padding: 0 0 16px;
  border: 1.5px solid #ffecc7;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(32, 64, 154, 0.08);
  text-align: center;
}

.hof-card__photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  margin-bottom: var(--space-12);
  aspect-ratio: 1 / 1;
}

.hof-result {
  font-weight: 900;
  color: var(--color-accent);
  font-size: 14px;
  line-height: 20px;
}

.hof-featured .hof-result {
  font-size: 14px;
}

.hof-name {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 13px;
  line-height: 18px;
}

.hof-school {
  color: #737380;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
}

.hof-card p,
.hof-card .placeholder-label {
  overflow-wrap: normal;
  hyphens: none;
}

.hof-card p {
  margin: 0;
  padding-inline: 12px;
  text-align: center;
}

.hof-note {
  font-weight: 700;
}

/* Home testimonials. Orange band, three cards, middle one highlighted.
   Desktop uses the 1440x134 flourish rasters. Mobile keeps the plain 20px wave.
   Quote sentences stay labelled as placeholders. */
.quotes {
  position: relative;
}

.quotes__flourish {
  display: none;
}

.quotes__intro {
  text-align: center;
}

.quotes__kicker {
  margin: 0 0 8px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.quotes h2 {
  margin: 0;
  color: var(--color-white);
  font-size: 32px;
  line-height: 38px;
}

.quotes__scroller {
  display: flex;
  gap: 16px;
  max-width: 100%;
  margin-top: 24px;
  padding: 8px 24px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.quotes__item {
  flex: 0 0 290px;
  scroll-snap-align: start;
}

.quotes__card {
  min-height: 264px;
  margin: 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--color-white);
}

.quotes__card--highlight {
  background: var(--color-highlight);
}

.quotes__mark {
  display: block;
  width: 30px;
  height: 24px;
  margin-bottom: 12px;
  object-fit: contain;
}

.band--orange .quotes__card p {
  margin: 0;
  color: var(--color-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 26px;
}

.quotes__by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -22px 0 0;
  padding-left: 8px;
}

.quotes__avatar {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.quotes__name {
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 18px;
}

.quotes__hint {
  margin: 16px 0 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.cta-band {
  text-align: center;
}

.cta-band h2 {
  color: var(--color-heading);
}

.cta-band p {
  color: var(--color-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.cta-band .btn {
  border-radius: var(--radius-whatsapp);
  line-height: 23px;
  white-space: nowrap;
}

.cta-band .btn-row {
  justify-content: center;
  gap: 16px;
}

/* Contact */
.contact-intro,
.ways {
  text-align: center;
}

.contact-cards,
.location-grid {
  text-align: left;
}

.ways .btn {
  margin-top: 0;
  margin-bottom: 16px;
}

.ways-lead {
  margin-bottom: 16px;
}

.ways-lead--narrow {
  display: none;
}

.location-hours {
  margin: 28px 0 0;
  color: #384c86;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.reach-card {
  min-height: 90px;
  padding: 20px 24px;
}

.reach-card {
  background: var(--color-cream);
  border: 1px solid #d9d3c7;
  border-radius: 12px;
  padding: 20px 24px;
}

.reach-card h3 {
  margin-bottom: 4px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 16px;
  text-transform: uppercase;
}

.reach-card a,
.reach-card p {
  margin: 0;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 32px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.map-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 280px;
  border: 1px solid #d9d3c7;
  border-radius: 12px;
  background: #edf0f5;
}

.section.band--white .mvv-card--vision {
  background: #fff8eb;
  border-radius: 20px;
}

.mvv-card--vision h3,
.mvv-card--mission h3 {
  font-size: 24px;
  font-weight: 900;
  line-height: 30px;
}

.mvv-card--vision h3 {
  color: var(--color-accent);
}

.section.band--white .mvv-card--mission {
  background: var(--color-heading);
  border-radius: 20px;
}

.mvv-card--mission h3,
.mvv-card--mission p {
  color: var(--color-white);
}

.address {
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-heading);
  margin: 0;
}

#location-heading {
  font-size: 22px;
  line-height: 28px;
}

/* Footer. Home is #384C86. Subpages are #20409A. The home hours
   and social row is the 390 frame only. */
.footer-home {
  display: none;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 32px 24px 16px;
}

.page-home .footer-home {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.footer-home__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.footer-home__row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
}

.footer-home .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-home .social-list--circles .icon {
  width: 22px;
  height: 22px;
}

.footer-home .social-list--circles .icon--xiaohongshu {
  width: 30px;
  height: auto;
}

.footer-home .social-list--circles .social-link {
  background: #0d2659;
}

.footer-social {
  display: none;
}

.site-footer .footer-bar {
  background: var(--color-heading);
}

.page-home .site-footer .footer-bar {
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bar p {
  margin: 0;
  padding: 28px 16px;
  color: var(--color-white);
  font-family: var(--font-footer);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
}

/* Desktop layout. Breakpoint note is at the top of this file. */
@media (min-width: 1100px) {
  :root {
    --text-hero-size: 52px;
    --text-hero-line: 60px;
    --text-h2-size: 40px;
    --text-h2-line: 40px;
    --text-h3-size: 36px;
    --text-h3-line: 36px;
    --text-h4-size: 25px;
    --text-h4-line: 25px;
    --text-lead-size: 20px;
    --section-pad: var(--space-64);
    --wave-height: 58px;
  }

  body:not(.page-home) {
    --section-pad: 48px;
  }

  .curve-to-white { background-image: url("../assets/waves/TRACED-to-white.svg"); }
  .curve-to-cream { background-image: url("../assets/waves/TRACED-to-cream.svg"); }
  .curve-to-yellow { background-image: url("../assets/waves/TRACED-to-yellow.svg"); }
  .curve-to-orange { background-image: url("../assets/waves/TRACED-to-orange.svg"); }
  .curve-to-navy { background-image: url("../assets/waves/TRACED-to-navy.svg"); }
  .curve-to-footer { background-image: url("../assets/waves/TRACED-to-navy-20409a.svg"); }

  .topbar {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-primary {
    display: block;
  }

  .hero__layout,
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-40);
  }

  .gallery-house,
  .gallery-teddy {
    display: none;
  }

  .hero {
    padding: 40px 0;
    min-height: 520px;
  }

  .hero .wrap {
    width: min(1300px, calc(100% - 32px));
    margin-left: max(16px, calc(50% - 720px + 70px));
    margin-right: max(16px, calc(50% - 720px + 70px));
  }

  .hero__layout {
    grid-template-columns: minmax(0, 640px) 620px;
    column-gap: 40px;
    align-items: start;
  }

  .hero__photo {
    width: 620px;
    max-width: 100%;
    height: 440px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: var(--radius-photo);
  }

  .what-we-do {
    grid-template-columns: minmax(0, 1fr) 550px;
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    row-gap: 20px;
    align-items: start;
  }

  .what-we-do .home-collage {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .what-we-do h2,
  .what-we-do-copy {
    grid-column: 1;
  }

  .what-we-do-copy {
    align-self: start;
  }

  .home-story-layout::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -29px;
    top: -15px;
    width: 547px;
    height: 408px;
    background: #ccd4e5;
    border: 1.5px dashed rgba(32, 64, 154, 0.4);
    border-radius: 24px;
    pointer-events: none;
  }

  .home-story-layout .home-story {
    position: relative;
    z-index: 1;
  }

  .home-story-layout {
    grid-template-columns: 550px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
  }

  .home-story-layout .home-story {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .home-story-layout h2,
  .home-story-copy {
    grid-column: 2;
  }

  .split:has(> .join-lounge__photo) {
    grid-template-columns: minmax(0, 1fr) 547px;
  }

  .daycare-overview-layout {
    grid-template-columns: 536px minmax(0, 536px);
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
  }

  .daycare-overview-layout .daycare-overview {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .daycare-overview-layout h2,
  .daycare-overview-layout .speaking-lead,
  .daycare-overview-layout .speaking-points {
    grid-column: 2;
  }

  .daycare-overview-layout .speaking-points {
    gap: 16px;
  }

  .daycare-overview-layout .outline-tile {
    padding: 18px;
  }

  .daycare-overview-layout .outline-tile h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .speaking-overview-layout {
    grid-template-columns: 536px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
  }

  .speaking-overview-layout .speaking-overview {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .speaking-overview-layout h2,
  .speaking-overview-layout .speaking-lead,
  .speaking-overview-layout .speaking-points {
    grid-column: 2;
  }

  .know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .voice-card .voice-photo {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }

  .home-story { aspect-ratio: 550 / 434; border-radius: 38px; }
  .home-collage { aspect-ratio: 550 / 516; }
  .join-lounge__photo { aspect-ratio: 547 / 428; }
  .gallery:not(.gallery--trio) { gap: 30.5px; }
  .gallery__photo { aspect-ratio: 1059 / 795; border-radius: 20px; }
  .daycare-overview { aspect-ratio: 536 / 481; }
  .speaking-overview { aspect-ratio: 536 / 464; }
  .about-story,
  .about-mission { aspect-ratio: 536 / 260; border-radius: 24px; }
  .history-photo {
    aspect-ratio: auto;
    height: 300px;
    border-radius: 24px;
    object-fit: cover;
  }
  .history-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery.gallery--trio { gap: 16px; }
  .gallery.gallery--trio .gallery__photo { aspect-ratio: 1088 / 720; border-radius: 12px; }
  .voice-photo { width: 96px; height: 96px; }
  /* Card border is 1.5px. At 1x it uses 1px, so the gap leaves the manifest photo box. */
  .hof-featured { gap: 24px; }
  .hof-featured .hof-card__photo,
  .hof-grid .hof-card__photo { aspect-ratio: 1 / 1; }

  .hof-featured .hof-result { font-size: 16px; }
  .hof-featured .hof-name { font-size: 15px; }
  .hof-featured .hof-school { font-size: 13px; }

  .hof-grid { gap: 20px; }

  /* Chinese line-height: 1.6 overrides the Hall of Fame type metrics and
     opens the space between the two blocks. Restore the English metrics
     on desktop only; mobile sizes stay as they are. */
  html:lang(zh-Hans) .page-hof .hof-sub { line-height: 26px; }
  html:lang(zh-Hans) .page-hof .hof-result,
  html:lang(zh-Hans) .page-hof .hof-featured .hof-result { line-height: 20px; }
  html:lang(zh-Hans) .page-hof .hof-name { line-height: 18px; }
  html:lang(zh-Hans) .page-hof .hof-school { line-height: 16px; }

  .hof-grid .hof-card {
    flex: 0 0 208px;
    max-width: 208px;
  }

  .hof-grid .hof-result { font-size: 14px; }
  .hof-grid .hof-name { font-size: 13px; }
  .hof-grid .hof-school { font-size: 11px; }

  .hof-sub--narrow { display: none; }
  .hof-sub--wide { display: block; }

  .hero .eyebrow {
    padding: 0;
    background: none;
    font-size: 16px;
    line-height: 22px;
  }

  .hero__title {
    min-height: 120px;
    font-size: 52px;
    line-height: 60px;
  }

  .hero__sub {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
  }

  .hero__badges {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .hero__badges li {
    gap: 4px;
    padding: 6px 9px;
  }

  .hero .btn {
    padding: 16px 40px 16px 32px;
    font-size: 23px;
    line-height: 23px;
  }

  .trust svg {
    width: 20px;
    height: 20px;
  }

  .feature-band {
    padding-top: 36px;
    padding-bottom: calc(48px + var(--wave-height));
  }

  .feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .feature-row article {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
  }

  .feature-icon {
    width: 88px;
    height: 88px;
  }

  .feature-row h3 {
    font-size: 25px;
    line-height: 25px;
  }

  .feature-row p {
    line-height: 17px;
  }

  .hero__chip {
    display: none;
  }

  .hero__chrome {
    inset: 0;
    left: 0;
    width: auto;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 620px;
    align-items: center;
    column-gap: 40px;
  }

  .hero__controls {
    grid-column: 2;
    align-self: center;
    width: 100%;
    height: auto;
    aspect-ratio: 620 / 440;
    pointer-events: none;
  }

  .hero__arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-slider-arrow);
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
  }

  .hero__arrow:hover {
    color: var(--color-heading);
  }

  .hero__arrow--prev { left: 16px; }
  .hero__arrow--next { right: 16px; }

  .hero__arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .hero__dots {
    top: auto;
    bottom: 16px;
    margin: 0;
  }

  .hero__dots button {
    width: 10px;
    height: 10px;
  }

  .hero__dots button.is-active {
    width: 10px;
    height: 10px;
    background: var(--color-heading);
  }

  .trust {
    grid-template-columns: repeat(3, 340px);
    justify-content: center;
    gap: 40px;
  }

  .trust li {
    justify-content: center;
  }

  .trust li.trust__hours {
    display: none;
  }

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

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

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

  .about-hero-sub--narrow { display: none; }

  .about-hero-sub--wide { display: block; }

  .about-story-layout {
    grid-template-columns: 536px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
  }

  .about-story-layout .photo-stack {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .about-story-layout h2,
  .about-story-copy {
    grid-column: 2;
  }

  .about-story--extra { display: block; }

  .history-photos .history-photo:not(:last-child) { display: block; }

  .highlight-card { min-height: 104px; }

  #ways-heading {
    font-size: 32px;
    line-height: 40px;
  }

  .ways .btn {
    width: 360px;
    min-height: 64px;
    margin-bottom: 26px;
  }

  .reach-card {
    height: 110px;
    min-height: 110px;
    padding: 24px 24px 16px;
  }

  .reach-card h3 {
    margin-bottom: 5px;
  }

  .band--location {
    padding-top: 30px;
    padding-bottom: calc(30px + var(--wave-height));
  }

  .location-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
    align-items: center;
  }

  .reach-card a,
  .reach-card p {
    font-size: 32px;
    line-height: 40px;
  }

  .map-frame {
    height: 240px;
    max-width: 640px;
    justify-self: end;
  }

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

  .hof-grid {
    display: flex;
  }

  .value-list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
  }

  .value-list li {
    min-height: 132px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  .value-icon {
    width: 40px;
    height: 40px;
  }

  .value-icon img {
    width: 24px;
    height: 24px;
  }

  .page-hero {
    min-height: calc(256px + var(--wave-height));
    padding-top: 72px;
  }

  .page-hero.curve-to-white,
  .page-hero.curve-to-navy {
    padding-bottom: calc(40px + var(--wave-height));
  }

  .page-hero .wrap {
    gap: 12px;
  }

  .page-hero .eyebrow {
    font-size: 14px;
    letter-spacing: 1.12px;
    line-height: 20px;
  }

  .page-hero--contact .eyebrow {
    letter-spacing: 1.2px;
  }

  .page-hero h1,
  .page-hero--contact h1 {
    font-size: 56px;
    line-height: 76px;
  }

  .page-hero p {
    max-width: 900px;
    font-size: 18px;
    line-height: 26px;
  }

  .quotes__kicker {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
  }

  .quotes h2 {
    font-size: 40px;
    line-height: 40px;
  }

  .quotes__scroller {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 353px));
    justify-content: center;
    gap: 20px;
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
    padding: 32px 0 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .quotes__item {
    flex: none;
    min-width: 0;
  }

  .quotes.curve-to-white {
    background-image: none;
    padding-top: 164px;
    padding-bottom: 134px;
  }

  .band--white.curve-to-orange {
    background-image: none;
    padding-bottom: var(--section-pad);
  }

  .quotes__flourish {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    max-width: none;
    height: 134px;
    object-fit: fill;
    pointer-events: none;
  }

  .quotes__flourish--top { top: 0; }
  .quotes__flourish--bottom { bottom: 0; }

  .quotes__card {
    min-height: 231px;
    padding: 46px 36px 50px;
    border-radius: 44px;
  }

  .quotes__mark {
    width: 34px;
    height: 27px;
  }

  .band--orange .quotes__card p {
    line-height: 22.1px;
  }

  .quotes__by {
    gap: 23px;
    padding-left: 12px;
  }

  .quotes__avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .quotes__name {
    color: var(--color-white);
  }

  .quotes__hint {
    display: none;
  }

  .cta-band .btn {
    width: auto;
    min-width: 240px;
    max-width: 100%;
    white-space: nowrap;
  }

  .page-home .footer-home {
    display: none;
  }

  .page-home .site-footer .footer-bar {
    border-top: 0;
  }

  .page-home .footer-bar p {
    padding: 27px 16px;
  }

  .hero .btn,
  .mobile-menu .btn {
    width: auto;
  }
}

@media (min-width: 1400px) {
  .gallery-house,
  .gallery-teddy {
    display: block;
    position: absolute;
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
  }

  .gallery-house {
    top: 120px;
    left: calc(50% + 560px + 16px);
    width: 120px;
    height: 150px;
  }

  .gallery-teddy {
    top: 541px;
    left: calc(50% - 560px - 16px - 100px);
    width: 100px;
    height: 140px;
  }
}

@media (max-width: 767px) {
  body:not(.page-home) .footer-social {
    display: block;
    padding: 0 24px 28px;
  }

  body:not(.page-home) .footer-social .social-list--circles .social-link {
    background: #0d2659;
  }

  body:not(.page-home) .footer-bar p {
    padding-bottom: 16px;
  }

  .navbar {
    box-shadow: 0 2px 4px rgba(32, 64, 153, 0.12);
  }
}

@media (max-width: 1099px) {
  .topbar {
    display: none;
  }

  .nav-primary {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .navbar__inner {
    min-height: var(--header-height-mobile);
    padding-inline: 0;
  }

  .logo img {
    height: 44px;
  }

  .hero .btn,
  .mobile-menu .btn,
  .ways .btn {
    width: 100%;
  }

  .ways .btn {
    margin-bottom: 16px;
  }

  .hero {
    padding-top: 0;
    padding-bottom: 24px;
  }

  .quotes__item {
    display: grid;
  }

  .quotes__card,
  .quotes__by {
    grid-area: 1 / 1;
  }

  .quotes__card {
    padding-bottom: 84px;
  }

  .quotes__by {
    align-self: end;
    margin: 0;
    padding: 0 24px 24px;
    z-index: 1;
  }

  .hero__layout {
    gap: 0;
  }

  .hero__media {
    order: -1;
    width: calc(100% + (var(--side-pad) * 2));
    margin-left: calc(var(--side-pad) * -1);
    margin-bottom: 44px;
  }

  .hero__photo {
    border-radius: 0;
    min-height: 0;
    /* One photo size for all slides so the controls can sit on it. */
    width: min(100%, 507px);
  }

  /* Controls box matches the centred photo (full-bleed on phones), so the
     pause button and dots stay on/under the photo at 520-1099px too. */
  .hero__chrome {
    left: 50%;
    width: min(calc(100% + (var(--side-pad) * 2)), 507px);
    transform: translateX(-50%);
  }

  .hero__index {
    display: none;
  }
}

/* Tablet. The menu button stays through 999px. Six links beside this
   logo need about 852px in the row, and the 768–900px band is short of that. */
@media (min-width: 768px) and (max-width: 1099px) {
  :root {
    --text-hero-size: 44px;
    --text-hero-line: 50px;
    --text-h2-size: 36px;
    --text-h2-line: 42px;
    --section-pad: var(--space-48);
    --side-pad: var(--space-32);
  }

  .topbar {
    display: block;
  }

  .nav-primary {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .navbar__inner {
    min-height: 88px;
  }

  .logo img {
    height: 56px;
  }

  .hero .btn,
  .ways .btn,
  .cta-band .btn {
    width: auto;
  }

  .split,
  .schedule-grid,
  .contact-cards,
  .location-grid,
  .card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .split .photo-placeholder {
    min-height: 220px;
  }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
  }

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

}

@media (min-width: 900px) and (max-width: 1099px) {
  .card-grid--3,
  .hof-featured,
  .gallery,
  .hof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .tile-grid.card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .cta-band .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (min-width: 1000px) and (max-width: 1099px) {
  .navbar .logo,
  .nav-primary {
    flex: 0 0 auto;
  }

  .nav-primary {
    display: block;
  }

  .nav-primary ul {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }
}

/* Phone section headings. Home stays 32/38, including Our Story.
   Overview headings stay 28/38. Other subpage headings are 24/33. */
.join-whatsapp {
  display: none;
  margin: 12px 0 0;
  color: #20409a;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

@media (max-width: 767px) {
  .home-story-copy .btn {
    width: 100%;
  }

  .quotes__intro {
    display: flex;
    flex-direction: column;
  }

  .quotes__intro h2 {
    order: -1;
  }

  .ways-lead--wide { display: none; }
  .ways-lead--narrow { display: block; }

  .band--join .btn {
    width: 100%;
  }

  .join-whatsapp {
    display: block;
  }
}

@media (max-width: 767px) {
  body:not(.page-home) {
    --text-h2-size: 24px;
    --text-h2-line: 33px;
  }

  body:not(.page-home) h2,
  .hof-block h2,
  #history-heading,
  #life-heading {
    font-size: 24px;
    line-height: 33px;
  }

  #speaking-overview-heading,
  #daycare-overview-heading {
    font-size: 28px;
    line-height: 38px;
  }

  #story-heading {
    font-size: 32px;
    line-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .mobile-menu {
    transition: none;
    transform: none;
  }

  .hero__toggle {
    display: none;
  }
}

/* Round 8: Home mobile spacing. */
@media (max-width: 767px) {
  .feature-band {
    padding-top: 32px;
  }

  .quotes__scroller {
    padding-inline: 24px;
    scroll-padding-inline: 24px;
  }
}

/* Round 10: language switch, Chinese suggestion strip, Chinese typography.
   GAPS-round10.md sections 2, 3, 7 and 8. Noto Sans SC is self-hosted
   (css/fonts.css): "Noto Sans SC" is the full subset for /zh/ pages, and
   "Noto Sans SC UI" is a tiny subset for the 中文 label and the strip. Those
   two stacks must not list "Noto Sans SC": WebKit would fetch the full face
   on English pages too. */
.nav-primary {
  margin-left: auto;
}

.navbar .lang-switch {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 36px;
  margin-left: 24px;
  padding-left: 24px;
}

.navbar .lang-switch::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 1px;
  height: 24px;
  background: #e2dccd;
}

.navbar .lang-switch a {
  padding: 0 10px;
  color: #6b707a;
  font-weight: 500;
  line-height: 36px;
  text-decoration: none;
}

.navbar .lang-switch a:lang(en) {
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
}

.navbar .lang-switch a:lang(zh-Hans) {
  font-family: "Noto Sans SC UI", sans-serif;
  font-size: 15px;
}

.navbar .lang-switch a:hover {
  color: #20409a;
}

.navbar .lang-switch a[aria-current] {
  color: #20409a;
  font-weight: 700;
}

.navbar .lang-switch__sep {
  display: block;
  width: 1px;
  height: 16px;
  background: #c9c4b8;
}

/* 1000–1099px: the full nav stays, so tighten it to fit the switch. */
@media (min-width: 1000px) and (max-width: 1099px) {
  .nav-primary ul {
    gap: var(--space-8) var(--space-16);
  }

  .navbar .lang-switch {
    margin-left: 16px;
    padding-left: 0;
  }

  .navbar .lang-switch::before {
    display: none;
  }

  .navbar .lang-switch a {
    padding: 0 8px;
  }
}

/* Menu-button layouts: a cream pill just before the menu button. */
@media (max-width: 999px) {
  .navbar__inner {
    gap: var(--space-8);
  }

  .navbar .lang-switch {
    height: 48px;
    margin: 0 0 0 auto;
    padding: 0 4px;
    border-radius: 12px;
    background: #f9f6ef;
  }

  .navbar .lang-switch::before {
    display: none;
  }
}

/* The strip ships with the hidden attribute. site.js only removes it when
   this stylesheet is applied (it reads --lang-strip-ready), so a stale cached
   stylesheet, blocked CSS or no JS never shows it unstyled. */
.lang-strip {
  --lang-strip-ready: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 56px;
  background: #ffdd98;
  color: #202020;
  font-family: "Noto Sans SC UI", sans-serif;
}

.lang-strip[hidden] {
  display: none;
}

.lang-strip__text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.lang-strip__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: #20409a;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.lang-strip__btn:hover {
  background: #183380;
}

.lang-strip__close {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20409a;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767px) {
  .lang-strip {
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 48px 0 16px;
  }

  .lang-strip__text {
    font-size: 14px;
  }

  .lang-strip__btn {
    height: 36px;
  }
}

/* Chinese pages: Noto Sans SC first in every stack, no letter-spacing,
   ~1.6 line-height for body copy and 1.25 for headings. */
html:lang(zh-Hans) {
  --font-heading: "Noto Sans SC", "Nunito", sans-serif;
  --font-nav: "Noto Sans SC", "Baloo 2", sans-serif;
  --font-footer: "Noto Sans SC", "Catamaran", sans-serif;
}

html:lang(zh-Hans) body * {
  letter-spacing: 0 !important;
}

html:lang(zh-Hans) main p,
html:lang(zh-Hans) main li {
  line-height: 1.6;
}

html:lang(zh-Hans) h1,
html:lang(zh-Hans) h2,
html:lang(zh-Hans) h3 {
  line-height: 1.25;
}

@media (max-width: 767px) {
  html:lang(zh-Hans) #gallery-heading {
    font-size: 28px;
  }

  /* The full-width contact button is ~342px at 390. The label is one
     character too long for the default 40px side padding, so "们" wrapped.
     Keep the 23px button type; only the side padding gives way. */
  html:lang(zh-Hans) .ways .btn {
    padding-inline: 12px;
    white-space: nowrap;
  }
}

/* Round 9: footer Privacy Policy link (all pages). Desktop sits on the
   copyright line after a "·"; below 768px it is its own line. — Sage */
.site-footer__legal {
  display: inline;
}

.site-footer__legal a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__sep {
  margin-inline: 12px;
}

@media (max-width: 767px) {
  .site-footer__sep {
    display: none;
  }

  .site-footer__legal {
    display: block;
    margin-top: 6px;
  }
}

/* Round 9: /privacy (GAPS-round9.md). Hero reuses the Contact page hero;
   these classes are the reusable legal template for /app/privacy too. */
.legal-hero__date {
  margin-top: 2px;
}

.page-hero p.legal-hero__date {
  color: var(--color-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

/* Policy language pills. Scoped to .legal-hero because the header EN | 中文
   switch (round 10) uses .lang-switch too, scoped to .navbar. */
.legal-hero .lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  justify-self: stretch;
}

.legal-hero .lang-switch a,
.legal-hero .lang-switch__pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #e2dccd;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-body);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.legal-hero .lang-switch a[aria-current="true"] {
  border-color: var(--color-heading);
  background: var(--color-heading);
  color: var(--color-white);
}

/* Bahasa Malaysia stays grey, with the status in the pill. It is not a link. */
.legal-hero .lang-switch__pill[aria-disabled="true"] {
  gap: 6px;
  border-color: #d5d8de;
  background: var(--color-white);
  color: #6b707a;
  cursor: default;
  pointer-events: none;
}

.legal-hero .lang-switch__soon {
  color: #6b707a;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.page-hero p.lang-switch__note {
  font-size: 13px;
  line-height: 18px;
}

.legal-band {
  background-color: var(--color-white);
}

.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  padding: 32px 24px 48px;
}

.legal-toc {
  display: none;
}

.legal-article {
  max-width: 720px;
  min-width: 0;
  color: var(--color-body);
  font-family: var(--font-heading);
}

.legal-article > * + * {
  margin-top: 36px;
}

.legal-article h2 {
  margin: 0 0 14px;
  color: var(--color-heading);
  font-size: 22px;
  font-weight: 900;
  line-height: 28px;
  scroll-margin-top: 24px;
}

.legal-article h3 {
  margin: 14px 0;
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

.legal-article p,
.legal-article li {
  margin: 0;
  color: var(--color-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.legal-article strong {
  font-weight: 700;
}

.legal-article p + p,
.legal-article p + ul,
.legal-article p + ol,
.legal-article ul,
.legal-article ol {
  margin-top: 12px;
}

.legal-article ul,
.legal-article ol {
  margin-bottom: 0;
  padding-left: 24px;
}

.legal-article ul {
  list-style: disc;
}

.legal-article ol {
  list-style: decimal;
}

.legal-article li + li {
  margin-top: 8px;
}

.legal-article a {
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.legal-callout {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  background: rgba(255, 221, 152, 0.45);
}

.legal-article .legal-callout p {
  font-size: 15px;
  line-height: 22px;
}

.legal-article section > .legal-callout,
.legal-article section > .legal-info,
.legal-article section > .legal-table {
  margin-top: 14px;
}

.legal-article .legal-callout .legal-callout__label {
  margin: 0;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-article .legal-callout p + p {
  margin-top: 0;
}

.legal-info {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--color-cream);
}

.legal-contact {
  padding: 16px;
  border: 1px solid #e7e2d8;
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border: 1px solid #e7e2d8;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.legal-table caption {
  padding: 0 0 10px;
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  text-align: left;
}

.legal-table th {
  padding: 14px 16px;
  border-bottom: 0;
  background: var(--color-cream);
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-align: left;
}

.legal-table td {
  padding: 14px 16px;
  border-top: 1px solid #e7e2d8;
  border-bottom: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  vertical-align: top;
}

.legal-table td:nth-child(2) {
  font-weight: 700;
}

.legal-table col:nth-child(1) { width: 300px; }
.legal-table col:nth-child(2) { width: 190px; }

.legal-article p.legal-table__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 767px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: auto;
  }

  .legal-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .legal-table caption {
    display: block;
  }

  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .legal-table tr {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e7e2d8;
    border-radius: 12px;
  }

  .legal-table td {
    padding: 0;
    border: 0;
  }

  .legal-table td + td {
    margin-top: 10px;
  }

  .legal-table td:first-child {
    color: var(--color-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
  }

  .legal-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (min-width: 768px) {
  .page-hero p.legal-hero__date {
    font-size: 18px;
    line-height: 26px;
  }

  .page-hero p.lang-switch__note {
    font-size: 14px;
    line-height: 20px;
  }

  .legal-hero .lang-switch {
    margin-top: 12px;
  }

  .legal-body {
    padding: 64px 24px 96px;
  }

  .legal-article > * + * {
    margin-top: 48px;
  }

  .legal-article h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .legal-article h3 {
    font-size: 19px;
    line-height: 26px;
  }

  .legal-article p,
  .legal-article li {
    font-size: 17px;
    line-height: 28px;
  }

  .legal-article p + p,
  .legal-article p + ul,
  .legal-article p + ol,
  .legal-article ul,
  .legal-article ol {
    margin-top: 14px;
  }

  .legal-article .legal-callout p {
    font-size: 16px;
    line-height: 24px;
  }

  .legal-contact {
    padding: 20px 24px;
  }
}

@media (min-width: 1100px) {
  .legal-body {
    grid-template-columns: 240px minmax(0, 720px);
    gap: 64px;
  }

  .legal-toc {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 24px;
    border-radius: 12px;
    background: var(--color-cream);
    font-family: var(--font-heading);
  }

  .legal-toc__title {
    margin: 0;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0.06em;
  }

  .legal-toc a {
    display: block;
    margin-top: 12px;
    padding-left: 13px;
    border-left: 3px solid transparent;
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: none;
  }

  .legal-toc a[aria-current="true"] {
    border-left-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 800;
  }
}

.legal-article ul + p,
.legal-article ol + p {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .legal-article ul + p,
  .legal-article ol + p {
    margin-top: 14px;
  }
}

/* Round 10 feedback: cap Chinese text at weight 700. Every rule above that
   sets 800 or 900 is repeated here for Chinese pages. :where() keeps each
   override at the original selector's specificity, so it only replaces the
   heavy weight and never beats a more specific rule that sets a lighter one.
   English pages are untouched. */
:where(html:lang(zh-Hans)) :is(h1, h2, h3, h4),
:where(html:lang(zh-Hans)) .skip-link,
:where(html:lang(zh-Hans)) .eyebrow,
:where(html:lang(zh-Hans)) .hero .eyebrow,
:where(html:lang(zh-Hans)) .hero__chip,
:where(html:lang(zh-Hans)) .fact-tile__value,
:where(html:lang(zh-Hans)) .values-heading,
:where(html:lang(zh-Hans)) .schedule-card h3,
:where(html:lang(zh-Hans)) .slot-card__time,
:where(html:lang(zh-Hans)) .checks li,
:where(html:lang(zh-Hans)) .review footer,
:where(html:lang(zh-Hans)) .page-hero h1,
:where(html:lang(zh-Hans)) caption,
:where(html:lang(zh-Hans)) th,
:where(html:lang(zh-Hans)) .hof-result,
:where(html:lang(zh-Hans)) .quotes__name,
:where(html:lang(zh-Hans)) .mvv-card--vision h3,
:where(html:lang(zh-Hans)) .mvv-card--mission h3 {
  font-weight: 700;
}

/* 中文 /zh/privacy: English-only notice (Figma 298:1463 / 298:1471). */
.page-privacy .legal-zh {
  max-width: 512px;
  text-align: left;
}
.page-privacy .page-hero .legal-zh,
.page-privacy .page-hero .legal-zh > * { text-align: left; margin-left: 0; margin-right: 0; }
.page-privacy .page-hero .legal-zh { margin-left: auto; margin-right: auto; justify-items: start; }
.legal-zh-notice {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 56px;
}
.legal-zh-notice p { margin: 0; font-size: 16px; line-height: 1.6; }
.legal-zh-notice p + p { margin-top: 6px; }
.legal-zh-notice a {
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 1100px) {
  .page-privacy .section.band--white.curve-to-footer {
    padding-top: 8px;
    padding-bottom: var(--wave-height);
  }

  .legal-zh-notice {
    padding: 12px 14px;
    margin-bottom: 0;
  }

  .legal-zh-notice p {
    font-size: 14px;
  }
}
