/*
 * ADOM typography layer — Outfit headings + Plus Jakarta Sans text, sized to the Brand Kit scale
 * (see STANDARD TYPE SCALE below). Loaded last; font properties only — no layout, colour or spacing.
 * Locked Chapter I / DAP / What's Next funnels are not affected (no adom-chrome / course class).
 */

:root {
  --adom-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --adom-font-display: "Outfit", system-ui, sans-serif;
}

body.adom-chrome,
body.adom-course-cms {
  font-family: var(--adom-font-body);
}

/* Body copy: reference line-height 1.7 */
body.adom-chrome p,
body.adom-chrome li,
body.adom-course-cms p,
body.adom-course-cms li {
  font-family: var(--adom-font-body);
}
body.adom-chrome main p,
body.adom-course-cms main p {
  line-height: 1.7;
}

/* ==========================================================================
   STANDARD TYPE SCALE (2026-10-25) — Brand Kit scale, Outfit + Plus Jakarta Sans,
   client minimums from 2026-10-12 (body 17px, labels ≥ 13px, buttons ≥ 15px).
   One scale for every chrome page, course/event page, post and lecturer page.
   Only exception: the Home hero H1 (see below). Header and footer keep their own chrome styles.

   Role          Font                 Size                       Weight  LH    Tracking
   H1            Outfit               clamp(36px, 4.4vw, 56px)   700     1.16  -0.02em
   H2            Outfit               clamp(32px, 3.4vw, 48px)   700     1.1   -0.015em
   H3            Outfit               23px                       600     1.25  -0.005em
   H4            Outfit               19px                       600     1.3   0
   H5/H6         Outfit               17px                       600     1.4   0
   Subtitle      Outfit               clamp(22px, 2.4vw, 30px)   400     1.25  -0.01em
   Lead          Plus Jakarta Sans    clamp(19px, 1.5vw, 20px)   400     1.6   0
   Body (p, li)  Plus Jakarta Sans    17px                       400     1.7   0
   Small / meta  Plus Jakarta Sans    15px                       400     1.5   0
   Label         Plus Jakarta Sans    14px UPPERCASE             500     1.4   0.18em
   Text link     Plus Jakarta Sans    14px UPPERCASE             500     1.4   0.16em
   Button        Plus Jakarta Sans    15px UPPERCASE             500     1.2   0.1em
   Chip / tab    Plus Jakarta Sans    15px                       500     1.2   0
   ========================================================================== */

:root {
  --adom-t-h1: clamp(36px, 4.4vw, 56px);
  --adom-t-h2: clamp(32px, 3.4vw, 48px);
  --adom-t-h3: 23px;
  --adom-t-h4: 19px;
  --adom-t-h5: 17px;
  --adom-t-sub: clamp(22px, 2.4vw, 30px);
  --adom-t-lead: clamp(19px, 1.5vw, 20px);
  --adom-t-body: 17px;
  --adom-t-small: 15px;
  --adom-t-label: 14px;
  --adom-t-btn: 15px;
}

body.adom-chrome,
body.adom-course-cms {
  word-spacing: normal;
}

/* Headings — Outfit (header/footer excluded) */
:is(body.adom-chrome, body.adom-course-cms) :is(h1, .adom-h1):not(.adom-site-footer *) {
  font-family: var(--adom-font-display) !important;
  font-size: var(--adom-t-h1) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

:is(body.adom-chrome, body.adom-course-cms) :is(h2, .adom-h2):not(.adom-site-footer *) {
  font-family: var(--adom-font-display) !important;
  font-size: var(--adom-t-h2) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
}

:is(body.adom-chrome, body.adom-course-cms) :is(h3, .adom-h3):not(.adom-site-footer *) {
  font-family: var(--adom-font-display) !important;
  font-size: var(--adom-t-h3) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
}

:is(body.adom-chrome, body.adom-course-cms) h4:not(.adom-site-footer *) {
  font-family: var(--adom-font-display) !important;
  font-size: var(--adom-t-h4) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

:is(body.adom-chrome, body.adom-course-cms) :is(h5, h6):not(.adom-site-footer *) {
  font-family: var(--adom-font-display) !important;
  font-size: var(--adom-t-h5) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* funnel.css sets `body.adom-course-cms #top h1 { font-weight: 800 !important }` (ID specificity) */
body.adom-course-cms #top h1 {
  font-size: var(--adom-t-h1) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
}

/* Pull quotes / statements set in the display face (course testimonials, persona statements) */
body.adom-course-cms p[style*="font-display"]:not(.adom-hero-split > p) {
  font-size: clamp(20px, 1.8vw, 22px) !important;
  line-height: 1.45 !important;
  letter-spacing: -0.005em !important;
}

/* Reading column (posts, legal): H2 sits at the scale's floor so section heads don't overpower body text */
:is(body.adom-chrome, body.adom-course-cms) :is(.adom-article-prose, .adom-legal-prose) h2:not(.adom-site-footer *) {
  font-size: 32px !important;
}

/* Exception: Home hero H1 keeps its display size (client-approved hero). */
body.adom-chrome .adom-hero :is(h1, .adom-h1) {
  font-size: clamp(41.6px, 5.6vw, 80px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

/* Body copy — paragraphs and list items in content. Zero specificity (:where) so the lead,
   meta, label and chip roles below override it; !important still beats inline styles. */
:where(body.adom-chrome main, body.adom-course-cms) :where(p, li):where(:not(.adom-site-footer *):not(.adom-site-header *)) {
  font-size: var(--adom-t-body) !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

/* Old editor content in posts/legal pages often carries inline sizes on spans */
:is(.adom-article-prose, .adom-legal-prose, .adom-lecturer-bio) :is(span, strong, b, em, i, font)[style*="font-size"],
:is(.adom-article-prose, .adom-legal-prose, .adom-lecturer-bio) font[size] {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Inline links take the size of the text they sit in */
:is(body.adom-chrome main, body.adom-course-cms) :is(p, li) a:not(.adom-btn) {
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* Subtitle under a hero H1 (course pages) */
body.adom-course-cms .adom-hero-split > p[style*="font-display"] {
  font-family: var(--adom-font-display) !important;
  font-size: var(--adom-t-sub) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

/* Lead paragraphs */
:is(body.adom-chrome main, body.adom-course-cms) :is(p[class*="lead"], p[class*="__desc"], p[class*="__intro"], .adom-lead, .adom-hero-split > p:not([style*="font-display"])) {
  font-size: var(--adom-t-lead) !important;
  line-height: 1.6 !important;
}

/* Small / meta text */
:is(body.adom-chrome main, body.adom-course-cms) :is(p, li, span, time, div)[class*="__meta"],
:is(body.adom-chrome main, body.adom-course-cms) :is(p, span, time, div)[class*="__date"],
:is(body.adom-chrome main, body.adom-course-cms) :is(p, span, div)[class*="__role"],
:is(body.adom-chrome main, body.adom-course-cms) :is(p, span, figcaption)[class*="caption"],
:is(body.adom-chrome main, body.adom-course-cms) p[class*="__note"] {
  font-size: var(--adom-t-small) !important;
  line-height: 1.5 !important;
}

/* Text links (standalone, uppercase tracked — Brand Kit "Text link →") */
/* Chip lists (lecturer focus areas) — label size, not body size */
:is(body.adom-chrome main, body.adom-course-cms) :is(.adom-lecturer-focus, [class*="focus"] > li) {
  font-size: var(--adom-t-label) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.12em !important;
}

/* FAQ questions — one style on Home, Story and course pages */
:is(body.adom-chrome, body.adom-course-cms) .adom-home-faq__q {
  font-size: var(--adom-t-body) !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

/* Links placed directly in post/legal content (not wrapped in a paragraph) */
:is(.adom-article-prose, .adom-legal-prose) a:not(.adom-btn) {
  font-size: inherit !important;
  line-height: inherit !important;
}

:is(body.adom-chrome main, body.adom-course-cms) a:is([class*="__more"], [class*="back__link"], [class*="hero__link"], [class*="aside__cta"], [class*="courses__all"], .adom-blog-feature__cta) {
  font-family: var(--adom-font-body) !important;
  font-size: var(--adom-t-label) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

/* Buttons — Brand Kit: pill, uppercase tracked label, Medium 500, never wrapping */
body.adom-chrome .adom-btn,
body.adom-chrome button[type="submit"],
body.adom-chrome .adom-survey-submit,
body.adom-chrome .adom-contact-submit,
body.adom-chrome .adom-cal-form__submit,
body.adom-chrome input[type="submit"],
body.adom-chrome a[class*="__submit"],
body.adom-chrome a.adom-survey-landing__cta,
body.adom-chrome .adom-survey-landing__cta,
body.adom-chrome [class*="cta__btn"],
body.adom-chrome .adom-cal-aside__btn,
body.adom-course-cms .adom-btn,
body.adom-course-cms .adom-btn-stripe,
body.adom-course-cms button[data-next],
body.adom-course-cms button[data-back],
body.adom-course-cms input[type="submit"],
body.adom-course-cms .adom-hero-ctas a,
body.adom-course-cms .adom-funnel-calendar.addeventatc.custom_add_to_cal,
body.adom-course-cms [data-bar] a {
  font-family: var(--adom-font-body) !important;
  font-size: var(--adom-t-btn) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  white-space: nowrap;
}

/* Pill links built inline in the course template (mailto / tel / "see all") are buttons too */
body.adom-course-cms a[style*="border-radius: 999px"]:not(.adom-site-header *) {
  font-family: var(--adom-font-body) !important;
  font-size: var(--adom-t-btn) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
}

/* Chips, tabs, toggles, share and pagination controls — sentence case */
body.adom-chrome :is(.adom-cal-view, .adom-cal-chip, .adom-blog-chip, .adom-article-share__btn, .adom-blog-page, .adom-story-round),
body.adom-course-cms :is(.adom-persona, button[data-day]) {
  font-family: var(--adom-font-body) !important;
  font-size: var(--adom-t-btn) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Eyebrows / kickers / breadcrumbs / card kinds — Brand Kit label: Medium 500, uppercase, tracked */
:is(body.adom-chrome, body.adom-course-cms) :is(.adom-eyebrow, [class*="__eyebrow"], [class*="__kicker"], [data-eyebrow], [class*="-breadcrumb"], [class*="-breadcrumb"] :is(a, span), [class*="card__kind"], :is(p, span, div, dt)[class*="__label"]:not([class*="field"])):not(.adom-site-footer *) {
  font-family: var(--adom-font-body) !important;
  font-size: var(--adom-t-label) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
}

/* Navigation — desktop menu: Plus Jakarta Sans 600 uppercase (reference) */
body.adom-chrome .adom-site-header__nav,
body.adom-course-cms .adom-site-header__nav,
.adom-site-header .adom-lang a {
  font-family: var(--adom-font-body);
}
@media (min-width: 1320px) {
  .adom-site-header__nav > a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}
.adom-site-header .adom-lang a {
  font-weight: 700;
}

/* Header & footer on the same scale: nav = label size/weight (tighter tracking to fit the bar),
   footer column titles = label, footer copy = body, legal line = small. */
.adom-site-header__nav > a:not(.adom-btn),
.adom-site-header .adom-lang a {
  font-weight: 500 !important;
}
.adom-site-footer__label {
  font-size: var(--adom-t-label) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
.adom-site-footer p,
.adom-site-footer address {
  font-size: var(--adom-t-body) !important;
  line-height: 1.6 !important;
}
.adom-site-footer a:not(.adom-site-footer__logo) {
  line-height: 1.55 !important;
}
.adom-site-footer__bottom,
.adom-site-footer__bottom :is(a, span) {
  font-size: var(--adom-t-small) !important;
  letter-spacing: 0 !important;
}

/* Course pages: funnel.css hard-codes Jost / Cardo on a few shared components */
body.adom-course-cms,
body.adom-course-cms .adom-persona,
body.adom-course-cms .adom-funnel-calendar.addeventatc.custom_add_to_cal {
  font-family: var(--adom-font-body) !important;
}
body.adom-course-cms .adom-course-related strong {
  font-family: var(--adom-font-display) !important;
  font-weight: 600 !important;
}

/* Native form controls follow the body font */
body.adom-chrome input,
body.adom-chrome select,
body.adom-chrome textarea,
body.adom-course-cms input,
body.adom-course-cms select,
body.adom-course-cms textarea {
  font-family: var(--adom-font-body);
}

/* Touch targets ≥ 44px on phones (invisible hit area — visuals unchanged) */
.adom-team-ticks button,
.adom-home-testimonials__dots button,
.adom-cal-chip,
.adom-cal-view {
  position: relative;
}
.adom-team-ticks button::before,
.adom-home-testimonials__dots button::before,
.adom-cal-chip::before,
.adom-cal-view::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

/* Course pages: lecturer card names fit the 2-column phone grid */
@media (max-width: 600px) {
  body.adom-course-cms .adom-lcard__name {
    font-size: 18px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }
}

/* Add-to-calendar: hide AddEvent's data fields before its CDN CSS/JS arrives
   (otherwise the button first renders dates, title and description as text). */
.addeventatc > .start,
.addeventatc > .end,
.addeventatc > .timezone,
.addeventatc > .title,
.addeventatc > .description,
.addeventatc > .location,
.addeventatc > .organizer,
.addeventatc > .organizer_email,
.addeventatc > .all_day_event,
.addeventatc > .date_format,
.addeventatc > .alarm_reminder,
.addeventatc > .recurring {
  display: none !important;
}

/* Lecturer cards: long roles (e.g. Start-Up) are capped at 3 lines on narrow cards so they never
   run into the day badge; the full role is shown in the profile panel when the card is tapped. */
@media (max-width: 1024px) {
  body.adom-course-cms .adom-lcard__role {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Course testimonials: 20% smaller and lighter than the pull-quote scale */
body.adom-course-cms .adom-course-testimonials blockquote p[style*="font-display"] {
  font-size: clamp(16px, 1.44vw, 17.6px) !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
}

/* Testimonials: up to 3 per row, last row centred; 1-2 cards take wider shares */
.adom-course-testimonials__grid { --tg: clamp(16px, 2vw, 24px); }
.adom-course-testimonials__grid > blockquote { flex: 0 0 calc((100% - 2 * var(--tg)) / 3); max-width: calc((100% - 2 * var(--tg)) / 3); }
.adom-course-testimonials__grid > blockquote:only-child { flex-basis: min(100%, 720px); max-width: min(100%, 720px); }
.adom-course-testimonials__grid > blockquote:first-child:nth-last-child(2),
.adom-course-testimonials__grid > blockquote:first-child:nth-last-child(2) ~ blockquote { flex-basis: calc((100% - var(--tg)) / 2); max-width: calc((100% - var(--tg)) / 2); }
@media (max-width: 900px) {
  .adom-course-testimonials__grid > blockquote,
  .adom-course-testimonials__grid > blockquote:first-child:nth-last-child(2),
  .adom-course-testimonials__grid > blockquote:first-child:nth-last-child(2) ~ blockquote { flex-basis: calc((100% - var(--tg)) / 2); max-width: calc((100% - var(--tg)) / 2); }
}
@media (max-width: 640px) {
  .adom-course-testimonials__grid > blockquote,
  .adom-course-testimonials__grid > blockquote:first-child:nth-last-child(2),
  .adom-course-testimonials__grid > blockquote:first-child:nth-last-child(2) ~ blockquote { flex-basis: 100%; max-width: 100%; }
}
