/* Shared typography, loaded LAST. Original block styles remain intact.
 * Montserrat: only the real 500 / 600 / 700 faces shipped with the theme.
 * Size tokens are rem-based so browser text-size preferences are respected.
 */
:root {
  --oz-type-family: "Montserrat", Arial, sans-serif;
  --oz-type-display: 2.375rem;
  --oz-type-heading: 2rem;
  --oz-type-card: 1.25rem;
  --oz-type-body: 1rem;
  --oz-type-small: .875rem;
  --oz-leading-body: 1.6;
}
body { font-family: var(--oz-type-family); font-size: 1rem; font-weight: 500; line-height: var(--oz-leading-body); }
:where(main, .oz-header, .footer-oz, .enrollment-modal) :where(button, input, textarea, select) { font-family: inherit; }
:where(main, .footer-oz, .enrollment-modal) :where(h1, h2, h3) { font-weight: 700; text-wrap: balance; }
:where(main, .footer-oz, .enrollment-modal) :where(p) { text-wrap: pretty; }

/* Headings: one rhythm across the homepage and all direction blocks. */
.hero__title, .oz-direction-hero .oz-direction-hero__title {
  font-size: var(--oz-type-display); line-height: 1.2; letter-spacing: 0;
}
.courses__title, .learning-environment__title, .why-us__title,
.teachers__title, .reviews__title, .promotions__title, .faq__title,
.contacts__intro h2, .enrollment-modal__form h2,
.oz-direction-audience .oz-direction-audience__heading,
.oz-direction-process .oz-direction-process__heading,
.oz-direction-learning .oz-direction-learning__heading,
.oz-direction-formats .oz-direction-formats__heading,
.oz-direction-faq .oz-direction-faq__heading {
  height: auto; font-size: var(--oz-type-heading); font-weight: 600;
  line-height: 1.3; letter-spacing: 0; text-wrap: balance;
}
.hero__eyebrow, .oz-direction-hero__eyebrow { font-size: .9375rem; line-height: 1.4; font-weight: 600; }
.hero__description, .oz-direction-hero .oz-direction-hero__description {
  font-size: var(--oz-type-body); line-height: 1.6; font-weight: 500;
}
.course-card h3, .teacher-card h3, .why-card h3,
.oz-direction-audience .oz-direction-audience__title,
.oz-direction-process .oz-direction-process__title {
  font-size: var(--oz-type-card); font-weight: 600; line-height: 1.4; letter-spacing: 0;
  overflow-wrap: anywhere;
}
.course-card__age { font-size: .875rem; line-height: 1.4; }
.course-card__copy p, .teacher-card p, .why-card p,
.oz-direction-audience .oz-direction-audience__description,
.oz-direction-process .oz-direction-process__description,
.oz-direction-learning .oz-direction-learning__description,
.oz-direction-formats .oz-direction-formats__description {
  font-size: var(--oz-type-body); font-weight: 500; line-height: 1.6;
}
.oz-direction-learning .oz-direction-learning__title {
  font-size: var(--oz-type-card); font-weight: 600; line-height: 1.55; letter-spacing: 0;
}
.oz-direction-formats .oz-direction-formats__card-title {
  font-size: var(--oz-type-card); font-weight: 600; line-height: 1.4; letter-spacing: 0;
}
.oz-direction-formats .oz-direction-formats__subtitle { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.oz-direction-formats__legacy, .oz-direction-formats .oz-direction-formats__note { font-size: .9375rem; line-height: 1.6; }
.teacher-card__tags span { font-size: .875rem; line-height: 1.4; white-space: normal; }
.environment-benefit h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: 0; }

/* Buttons can wrap instead of forcing text out of a fixed pill. */
.hero__button, .course-card__button, .trial-offer__button,
.promo-slide__button, .oz-direction-hero__cta, .oz-direction-formats__cta,
.oz-direction-promos__cta, .contact-form__footer button,
.course-page .direction-contact-cta {
  height: auto; min-height: 3.25rem; flex-basis: auto;
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  letter-spacing: 0; white-space: normal; text-align: center;
  overflow-wrap: anywhere; padding-block: .875rem;
}
.course-card__button { padding-inline: 1.5rem; }
.oz-direction-promos__title { font-size: var(--oz-type-heading); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.oz-direction-promos__description { font-size: var(--oz-type-body); line-height: 1.6; }
.oz-direction-promos__note { font-size: .875rem; line-height: 1.5; }
.trial-offer__title { height: auto; font-size: var(--oz-type-heading); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.promo-slide__copy h3 { font-size: var(--oz-type-heading); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.oz-direction-promos__badge strong, .promo-slide__badge { height: auto; min-height: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.3; white-space: normal; }
.promo-slide__copy p { font-size: var(--oz-type-body); line-height: 1.6; }
.promo-slide__note { font-size: .875rem; line-height: 1.5; }

/* Real names and reviews must not be truncated. */
.review-card__author { gap: 14px; overflow: visible; }
.review-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.review-card p { font-size: var(--oz-type-body); line-height: 1.6; }
.faq-question span, .oz-direction-faq__question-text { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.faq-answer, .faq-answer p, .oz-direction-faq .oz-direction-faq__answer p { font-size: var(--oz-type-body); line-height: 1.65; }

/* Inputs stay at least 16px, including mobile Safari. */
.contacts__intro p, .contact-form__copy p, .enrollment-modal__form-main > p,
.course-page .contacts__intro p { width: auto; max-width: 58ch; font-size: 1rem; line-height: 1.6; }
.contact-form__copy h3 { font-size: var(--oz-type-card); font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.contact-card__row span { font-size: .875rem; line-height: 1.5; }
.contact-card__row a, .contact-card__row address, .contact-card__row strong { font-size: 1.125rem; line-height: 1.45; overflow-wrap: anywhere; }
.contact-form input, .enrollment-modal__form input { font-size: 1rem; line-height: 1.5; }
.contact-form__consent, .contact-form__status { font-size: .875rem; line-height: 1.6; }
.contact-form__consent p { font-size: .875rem; line-height: 1.6; }
.contact-form__error, .contact-form__consent-error { font-size: .8125rem; line-height: 1.45; }

.oz-header__nav > a, .oz-header__directions-toggle { font-size: .9375rem; line-height: 1.4; }
.oz-header__dropdown > a { font-size: .875rem; line-height: 1.5; }
.oz-header__phone { line-height: 1.4; font-variant-numeric: lining-nums; }
.footer-oz__description { font-size: .9375rem; line-height: 1.65; }
.footer-oz__title { font-size: 1.0625rem; line-height: 1.4; }
.footer-oz__links a, .footer-oz__contacts a { font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.footer-oz__bottom { font-size: .8125rem; line-height: 1.6; }
.footer-oz__grid > * { min-width: 0; }

/* A readable measure for default WordPress content and legal pages. */
.oz-default-content { width: min(76ch, calc(100% - 48px)); margin: 3rem auto; font-size: var(--oz-type-body); line-height: 1.7; overflow-wrap: anywhere; }
.oz-default-content h1 { font-size: var(--oz-type-display); line-height: 1.2; letter-spacing: 0; }
.oz-default-content h2 { margin: 1.75em 0 .65em; font-size: var(--oz-type-heading); font-weight: 600; line-height: 1.3; }
.oz-default-content h3 { margin: 1.5em 0 .6em; font-size: var(--oz-type-card); font-weight: 600; line-height: 1.4; }
.oz-default-content p, .oz-default-content ul, .oz-default-content ol { margin: 0 0 1.1em; }
.oz-default-content li + li { margin-top: .45em; }
.oz-default-content a { text-decoration: underline; text-underline-offset: .2em; }

/* Natural card heights support larger type and text edited through ACF. */
.courses__slider, .courses__viewport, .courses__track { height: auto; }
.courses__track { align-items: stretch; }
.course-card { height: auto; min-height: 529px; }
.course-card__body { height: auto; flex: 1 0 auto; gap: 24px; }
.course-card__copy { height: auto; flex-basis: auto; }
.course-card__button { margin-top: auto; }
.contacts, .course-page .contacts { padding-inline: max(32px, calc((100% - 1240px) / 2)); }
.contacts__header, .contacts__content { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.contacts__header > *, .contacts__content > * { min-width: 0; }
.faq { padding-inline: max(32px, calc((100% - 1240px) / 2)); }

@media (min-width: 720px) {
  /* Fixed desktop artboards must not scale the text down on laptops. */
  .hero { min-height: clamp(590px, 38.8vw, 698px); height: auto; aspect-ratio: auto; padding-block: 64px; }
  .hero__content { position: relative; top: auto; left: max(32px, calc((100% - 1240px) / 2)); width: 46%; max-width: 600px; gap: 24px; }
  .hero__button { width: auto; max-width: 100%; padding-inline: 24px; }
  .hero__description span { display: inline; }
  .hero__student { top: auto; bottom: 1.77%; left: auto; right: 10%; width: 42%; max-width: 638px; height: auto; aspect-ratio: 638 / 669; }
  .courses__slider { width: min(1300px, calc(100% - 40px)); }
  .courses__viewport { width: 100%; }
  .courses__arrow--right { left: auto; right: -16px; }
  .learning-environment { min-height: 765px; height: auto; padding: 120px 40px 48px; }
  .learning-environment__background { bottom: 0; height: auto; }
  .learning-environment__child { left: 2%; bottom: 0; top: auto; width: min(35%, 498px); height: auto; aspect-ratio: 498 / 765; }
  .learning-environment__content { position: relative; inset: auto; width: 62%; margin-left: auto; }
  .environment-benefits { width: 100%; height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .environment-benefit { width: auto; height: auto; min-height: 225px; padding: 22px; }
  .environment-benefit h3 { width: auto; }
  .why-us { width: min(1240px, calc(100% - 40px)); height: auto; }
  .why-us__cards { width: 100%; height: auto; align-items: stretch; margin-left: 0; }
  .why-card, .why-card--purple { flex: 1 1 0; min-width: 0; height: auto; padding: 24px; }
  .why-card__content { width: 100%; }
  .trial-offer { height: auto; min-height: 470px; padding-top: 68px; }
  .trial-offer__panel { position: relative; top: auto; height: auto; min-height: 402px; padding: 40px max(32px, calc((100% - 1240px) / 2)); }
  .trial-offer__content { position: relative; inset: auto; width: 60%; }
  .trial-offer__title { width: 100%; }
  .trial-offer__boy { top: auto; bottom: 0; left: auto; right: 6%; width: 34%; max-width: 494px; height: auto; aspect-ratio: 494 / 469; }
  .trial-offer__gift--right { left: auto; right: 4%; }
  .trial-offer__gift--left { left: 54%; }
  .teachers { height: auto; }
  .teachers__title { width: min(1240px, 100%); margin-inline: auto; }
  .teachers__slider, .teachers__viewport { width: 100%; height: auto; }
  .teachers__track { height: auto; align-items: stretch; }
  .teacher-card { height: auto; }
  .teachers__arrow--right { left: auto; right: -15px; }
  .reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; height: auto; padding: 140px max(32px, calc((100% - 1240px) / 2)) 48px; overflow: hidden; border-radius: 44px; }
  .reviews__background { inset: 0; height: 100%; }
  .reviews__title { top: 36px; left: max(32px, calc((100% - 1240px) / 2)); right: 32px; width: auto; }
  .reviews__title span { display: inline; }
  .reviews__student { right: 8%; left: auto; opacity: .15; }
  .review-card-shell { position: relative; inset: auto; width: auto; height: auto; align-items: stretch; }
  .review-card-shell .review-card { width: 100%; transform: none; padding: 24px; }
  .reviews__decor { display: none; }
}
@media (min-width: 720px) and (max-width: 1100px) {
  :root { --oz-type-display: 2rem; --oz-type-heading: 1.75rem; --oz-type-card: 1.125rem; --oz-type-body: 1rem; }
  .environment-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-us__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .contacts__header, .contacts__content { grid-template-columns: minmax(0, 1fr); }
  .promo-slide__copy { left: 32px; width: 48%; }
  .promo-slide__copy h3, .promo-slide__copy p { width: 100%; }
  .promo-slide__button { left: 32px; max-width: 48%; }
}

@media (min-width: 1101px) and (max-width: 1350px) {
  .oz-header__inner { column-gap: 14px; }
  .oz-header__logo { width: 154px; }
  .oz-header__nav { gap: 10px; }
  .oz-header__nav > a, .oz-header__directions-toggle { font-size: .875rem; }
  .oz-header__cta { padding-inline: 18px; }
}
@media (max-width: 719px) {
  :root { --oz-type-display: 1.75rem; --oz-type-heading: 1.5rem; --oz-type-card: 1.125rem; --oz-type-body: 1rem; }
  .hero { height: auto; padding: 38px 24px 0; }
  .hero__background { height: 100%; }
  .hero__content { position: relative; top: auto; left: auto; width: 100%; gap: 22px; }
  .hero__eyebrow, .oz-direction-hero__eyebrow { font-size: .9375rem; line-height: 1.4; }
  .hero__button { position: static; width: 100%; padding-inline: 16px; }
  .hero__student { position: relative; top: auto; left: auto; width: 100%; height: 394px; margin: 30px auto 0; }
  .learning-environment { display: flex; flex-direction: column; height: auto; padding: 38px 24px 0; }
  .learning-environment__background { inset: 0; height: 100%; }
  .learning-environment__content { position: relative; inset: auto; width: 100%; }
  .environment-benefits { height: auto; grid-template-rows: none; grid-auto-rows: auto; }
  .environment-benefit { height: auto; min-height: 88px; }
  .environment-benefit:nth-child(-n + 2) { height: auto; min-height: 156px; }
  .environment-benefit h3 { font-size: .875rem; line-height: 1.4; }
  .learning-environment__child { position: relative; order: 1; inset: auto; width: 255px; height: 314px; max-width: 100%; margin: 20px auto 0; transform: none; }
  .why-us, .why-us__cards { height: auto; }
  .why-us__cards { grid-template-rows: none; align-items: stretch; }
  .why-card, .why-card--purple { height: auto; min-height: 280px; padding-inline: 14px; }
  .why-card h3 { font-size: 1rem; line-height: 1.35; }
  .why-card p { font-size: var(--oz-type-body); line-height: 1.6; }
  .trial-offer { height: auto; padding: 0; }
  .trial-offer__panel { position: relative; inset: auto; height: auto; padding: 32px 24px 390px; }
  .trial-offer__content { position: relative; inset: auto; width: 100%; gap: 24px; }
  .trial-offer__title { width: 100%; }
  .trial-offer__button { width: 100%; padding-inline: 16px; }
  .trial-offer__boy { position: absolute; top: auto; bottom: 0; left: 24px; width: calc(100% - 48px); height: 360px; margin: 0; }
  .review-card p { font-size: var(--oz-type-body); }
  .teachers__title { min-height: 0; }
  .teacher-card__info { min-height: 0; }
  .faq-question span, .oz-direction-faq__question-text { font-size: 1rem; line-height: 1.45; }
  .environment-benefit:nth-child(-n + 2) h3 { font-size: .875rem; line-height: 1.4; }
  .promo-slide__copy { position: relative; inset: auto; width: 100%; padding: 28px 24px 0; gap: 18px; }
  .promo-slide__copy h3, .promo-slide__copy p { width: 100%; }
  .promo-slide__copy h3 { font-size: var(--oz-type-heading); }
  .promo-slide__button { position: relative; inset: auto; width: calc(100% - 48px); margin: 22px 24px 0; padding-inline: 14px; font-size: .9375rem; }
  .promo-slide__note { position: relative; inset: auto; width: auto; margin: 16px 24px; }
  .promo-slide { height: auto; min-height: 640px; padding-bottom: 332px; }
  .promotions, .promotions__viewport, .promotions__track { height: auto; }
  .promotions__track { align-items: stretch; }
  .promotions__header { height: auto; gap: 16px; }
  .promotions__title { width: auto; }
  .promotions__controls { flex-shrink: 0; }
  .oz-direction-formats .oz-direction-formats__subtitle { font-size: 1rem; }
  .oz-direction-formats .oz-direction-formats__card-title { font-size: var(--oz-type-card); }
  .oz-direction-process .oz-direction-process__title { min-height: 0; }
  .oz-direction-hero__cta { font-size: 1rem; }
  .contacts, .course-page .contacts { padding-inline: 12px; }
  .contacts__header, .contacts__content { grid-template-columns: minmax(0, 1fr); }
  .enrollment-modal__form h2 { font-size: var(--oz-type-heading); }
  .oz-direction-promos__badge strong, .promo-slide__badge { font-size: 1.25rem; }
  .enrollment-modal__footer button { font-size: 1rem; }
  .footer-oz__bottom a { white-space: normal; }
}
@media (max-width: 540px) {
  .oz-header__inner { column-gap: 8px; }
  .oz-header__logo { width: 118px; }
  .oz-header__phone { font-size: .8125rem; letter-spacing: 0; gap: 4px; }
  .oz-header__phone img { display: none; }
  .oz-header__cta { font-size: .875rem; }
}
@media (max-width: 359px) {
  .oz-header__inner { padding-inline: 8px; column-gap: 6px; }
  .oz-header__logo { width: 98px; }
  .oz-header__phone { font-size: .75rem; }
  .oz-direction-formats .oz-direction-formats__card-title { font-size: var(--oz-type-card); }
}
