/* Elmenta Academy v2.2 - dark navy bookends with teal glow, light reading sections.
   Fluid system: type, space, gutter and container interpolate between a 360px and a 2560px viewport
   (clamp), so the page scales continuously; breakpoints only change layout. See DESIGN.md. */

:root {
  /* Colour */
  --navy-950: #050C18; --navy-900: #07101F; --navy-800: #0A1628; --navy-700: #10213A; --navy-600: #1A2F4C;
  --teal: #0D7377; --teal-strong: #0A5C5F; --teal-400: #14A5AB; --teal-300: #2CC9CF;
  --teal-soft: #E3F1F1; --teal-tint: #F2F8F8;
  --navy: var(--navy-800); --ink: #1A2A3A; --muted: #546577;
  --on-dark: #E6EEF3; --on-dark-muted: #9FB3C4; --line-dark: rgba(255,255,255,.09); --line-dark-strong: rgba(255,255,255,.16);
  --line: #E2E8EE; --line-strong: #C9D3DD; --bg: #FFFFFF; --bg-soft: #F3F7F7;
  --open-bg: #DCF3EA; --open-ink: #0B5E43; --full-bg: #FDEFD8; --full-ink: #8A4B0A; --closed-bg: #EDF0F3; --closed-ink: #4A5868;
  --error: #B42318; --error-bg: #FEF3F2; --success: #0B5E43; --success-bg: #ECFDF3;

  /* Shape and depth: controls 10px, cards 16px, panels 24px, pills 999px */
  --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow: 0 1px 2px rgba(10,22,40,.05), 0 14px 32px -18px rgba(10,22,40,.26);
  --shadow-lift: 0 2px 4px rgba(10,22,40,.06), 0 26px 48px -24px rgba(10,22,40,.34);

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --step--2: clamp(0.7813rem, 0.7659rem + 0.0682vw, 0.875rem);
  --step--1: clamp(0.875rem, 0.8545rem + 0.0909vw, 1rem);
  --step-0: clamp(1rem, 0.9795rem + 0.0909vw, 1.125rem);
  --step-1: clamp(1.0938rem, 1.058rem + 0.1591vw, 1.3125rem);
  --step-2: clamp(1.1875rem, 1.1261rem + 0.2727vw, 1.5625rem);
  --step-3: clamp(1.375rem, 1.2727rem + 0.4545vw, 2rem);
  --step-4: clamp(1.625rem, 1.4409rem + 0.8182vw, 2.75rem);
  --step-5: clamp(1.875rem, 1.6091rem + 1.1818vw, 3.5rem);
  --step-6: clamp(2.125rem, 1.7773rem + 1.5455vw, 4.25rem);

  /* Space */
  --space-3xs: clamp(0.25rem, 0.2295rem + 0.0909vw, 0.375rem);
  --space-2xs: clamp(0.5rem, 0.4591rem + 0.1818vw, 0.75rem);
  --space-xs: clamp(0.75rem, 0.6886rem + 0.2727vw, 1.125rem);
  --space-s: clamp(1rem, 0.9182rem + 0.3636vw, 1.5rem);
  --space-m: clamp(1.5rem, 1.3773rem + 0.5455vw, 2.25rem);
  --space-l: clamp(2rem, 1.7545rem + 1.0909vw, 3.5rem);
  --space-xl: clamp(3rem, 2.5909rem + 1.8182vw, 5.5rem);
  --space-2xl: clamp(4rem, 3.3455rem + 2.9091vw, 8rem);
  --space-3xl: clamp(5rem, 4.0182rem + 4.3636vw, 11rem);

  /* Layout: page width grows with the viewport (1240px at 1440, 1760px at 2560, cap 1840px) */
  --gutter: clamp(1.25rem, 0.7182rem + 2.3636vw, 4.5rem);
  --page-max: min(calc(35.75rem + 46.4vw), 115rem);
  --read-max: 46rem;
  --header-h: clamp(4rem, 3.7955rem + 0.9091vw, 5.25rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: #B9C6D2 transparent; }
body { margin: 0; word-spacing: .04em; font-family: var(--font); font-size: var(--step-0); line-height: 1.62; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: #9CC9CA; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--teal-strong); text-decoration-color: currentColor; }
::selection { background: #BFE3E4; color: var(--navy); }
.section-dark ::selection, .hero ::selection, .site-footer ::selection, .band ::selection { background: rgba(44,201,207,.35); color: #fff; }
input, textarea, select { caret-color: var(--teal); accent-color: var(--teal); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); text-wrap: balance; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-weight: 600; font-size: var(--step-0); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--teal); padding-right: .04em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); } .small { font-size: var(--step--1); }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-l) 0; }
:focus-visible { outline: 3px solid #1E8E93; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .price, .facts dd, .intake-table td, .cal-date, .panel-summary dd, .summary-card dd, .overview-facts dd, .next-date, .next-fee, time { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #B9C6D2; border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; }
.container-read { width: min(100% - 2 * var(--gutter), var(--read-max)); }
.section { padding-block: var(--space-2xl); }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--teal-tint); }
.section-dark { background: var(--navy-800); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark h2 em { color: var(--teal-300); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-muted); }
.section-dark a:not(.btn) { color: var(--teal-300); text-decoration-color: rgba(44,201,207,.4); }
.section-head { max-width: 60ch; margin-bottom: var(--space-l); }
.section-head h2 { margin-bottom: .32em; }
.section-head p { color: var(--muted); font-size: var(--step-0); margin: 0; max-width: 56ch; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-s) var(--space-l); flex-wrap: wrap; }
.section-head-row > div { max-width: 60ch; }
.row-end { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-s); flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 1.1em; font-size: var(--step--2); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 var(--space-xs); text-decoration: none; }
.eyebrow::before { content: ""; width: 2.6em; height: 2px; border-radius: 2px; background: var(--teal-400); }
.eyebrow-after { color: var(--teal-strong); }
.eyebrow-after::before { display: none; }
.eyebrow-after::after { content: ""; width: 6em; height: 1px; background: var(--line-strong); }
.section-dark .eyebrow, .band-head .eyebrow, .course-hero .eyebrow { color: #D5E3EA; }
.eyebrow-rule { display: block; width: 3em; height: 2px; border-radius: 2px; background: var(--teal-400); margin-bottom: var(--space-s); }
.grid { display: grid; gap: var(--space-m); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } .split-wide { grid-template-columns: 7fr 5fr; } }
.split-top { align-items: start; }

/* Header (dark) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid var(--line-dark); box-shadow: 0 10px 30px -24px rgba(0,0,0,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--space-s); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: clamp(36px, 30px + 0.9vw, 50px); width: auto; }
.brand-text { font-family: var(--serif); font-size: var(--step-2); color: #fff; }
.primary-nav { display: none; align-items: center; gap: var(--space-xs); }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0px, -1.4rem + 1.6vw, 14px); }
.primary-nav .menu a { display: block; padding: .55em .75em; color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: var(--step--1); border-radius: var(--radius); position: relative; transition: color .15s; }
.primary-nav .menu a:hover { color: #fff; }
.primary-nav .menu .current-menu-item > a, .primary-nav .menu .current-menu-ancestor > a, .primary-nav .menu .current-menu-parent > a { color: #fff; }
.primary-nav .menu .current-menu-item > a::after, .primary-nav .menu .current-menu-ancestor > a::after, .primary-nav .menu .current-menu-parent > a::after { content: ""; position: absolute; left: .75em; right: .75em; bottom: .2em; height: 2px; background: var(--teal-300); border-radius: 2px; }
.header-cta { margin-left: var(--space-2xs); }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line-dark-strong); border-radius: var(--radius); padding: 10px 14px; min-height: 44px; font: inherit; font-size: var(--step--1); font-weight: 500; color: #fff; cursor: pointer; }
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: block; transition: background-color .15s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1099px) {
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 24px; box-shadow: 0 30px 50px -24px rgba(0,0,0,.7); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .primary-nav.is-open .menu { flex-direction: column; gap: 0; }
  .primary-nav.is-open .menu a { padding: 15px 2px; font-size: var(--step-1); border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .primary-nav.is-open .menu a::after { display: none; }
  .primary-nav.is-open .header-cta { margin: 18px 0 0; }
}
@media (min-width: 1100px) { .primary-nav { display: flex; } .nav-toggle { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.35em; min-height: 44px; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: var(--step--1); line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, transform .12s, border-color .2s, box-shadow .25s var(--ease); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: var(--step-0); padding: .9em 1.5em; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(10,22,40,.18), 0 10px 24px -12px rgba(13,115,119,.75); }
.btn-primary:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 4px rgba(10,22,40,.18), 0 16px 30px -14px rgba(13,115,119,.85); }
.btn-secondary { background: #fff; color: var(--teal-strong); border-color: #BFD9DA; }
.btn-secondary:hover { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-strong); }
.btn-ghost-light { background: rgba(255,255,255,.03); color: #fff; border-color: rgba(255,255,255,.26); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-sm { padding: .6em 1em; min-height: 40px; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .65; cursor: progress; }
.btn:focus-visible { outline-offset: 3px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.text-link svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translateX(3px); }

/* Pills and chips */
.pill { display: inline-flex; align-items: center; padding: .2em .75em; border-radius: 999px; font-size: var(--step--2); font-weight: 600; line-height: 1.5; white-space: nowrap; letter-spacing: .01em; }
.pill.is-open { background: var(--open-bg); color: var(--open-ink); gap: .45em; }
.pill.is-open::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #12A06A; }
.pill.is-full { background: var(--full-bg); color: var(--full-ink); }
.pill.is-closed, .pill.is-muted { background: var(--closed-bg); color: var(--closed-ink); }
.chip { display: inline-flex; align-items: center; padding: .45em .95em; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark-strong); color: var(--on-dark); font-size: var(--step--1); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

/* Hero (dark) */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: var(--on-dark); padding: var(--space-xl) 0 var(--space-l); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(min(64vw, 1300px) min(56vw, 1100px) at 76% 44%, rgba(20,165,171,.20) 0%, rgba(20,165,171,.06) 38%, transparent 66%),
    radial-gradient(min(50vw, 900px) min(40vw, 640px) at 0% 100%, rgba(13,115,119,.16) 0%, transparent 62%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: clamp(40px, 2.6vw + 30px, 96px) clamp(40px, 2.6vw + 30px, 96px); background-position: center top; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 10%, transparent 72%); }
.hero-grid { display: grid; gap: var(--space-l); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy { padding-top: var(--space-l); container-type: inline-size; --hero-max: 4.25rem; --hero-fit: 7.4cqi; }
.hero h1 { color: #fff; font-size: var(--step-6); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 0; text-wrap: balance; }
/* Three fixed lines from 640px: the size follows the copy column so the longest line always fits. */
.hero h1 { font-size: min(var(--hero-max), var(--hero-fit)); text-wrap: nowrap; } .hero h1 .hl { display: block; white-space: nowrap; }
.hero h1 em { color: var(--teal-300); }
.hero .lead { color: #AFC2CF; }
.hero .lead { color: var(--on-dark-muted); font-size: var(--step-1); margin: var(--space-m) 0 var(--space-l); max-width: min(96cqi, 44ch); text-wrap: balance; }
/* From 640px the lead and badges span the same width as the headline's longest line (about 10 x its font size). */
@media (min-width: 640px) { .hero .lead { max-width: min(82cqi, 36rem); text-wrap: pretty; } }
.hero-badges { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) 0; }
.hero-badges li { display: inline-flex; align-items: center; gap: .65em; color: #C6D4DD; font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.hero-badges li + li { margin-left: var(--space-m); padding-left: var(--space-m); border-left: 1px solid rgba(255,255,255,.16); }
.hero-badges svg { width: 1.55em; height: 1.55em; color: var(--teal-300); flex: none; stroke-width: 1.5; }
@media (max-width: 479px) { .hero-badges { flex-direction: column; align-items: flex-start; gap: var(--space-xs); } .hero-badges li + li { margin-left: 0; padding-left: 0; border-left: 0; } }
.hero-actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.hero-visual { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, 440px); }
.hero-globe { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-globe canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-globe.is-ready canvas { opacity: 1; }
.hero-globe.is-ready .globe-static, .hero-globe.is-ready .globe-fallback { opacity: 0; }
.globe-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .8s var(--ease); -webkit-mask-image: radial-gradient(circle closest-side, #000 84%, transparent 99%); mask-image: radial-gradient(circle closest-side, #000 84%, transparent 99%); }
.globe-fallback { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #16304f 0%, #0b1a2e 55%, #07101F 100%); box-shadow: 0 0 0 1px rgba(44,201,207,.12), 0 0 120px rgba(20,165,171,.18), inset -30px -30px 80px rgba(0,0,0,.45); transition: opacity .8s var(--ease); }
.globe-fallback::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 55% 48%, rgba(44,201,207,.35) 0, rgba(44,201,207,.15) 12%, transparent 30%); }
/* Instrument rings around the globe: a fine graduated dial and a hairline orbit (static, the globe moves) */
.hero-orbit { position: absolute; inset: -6%; border-radius: 50%; pointer-events: none; border: 1px solid rgba(44,201,207,.10); }
.hero-orbit::before { content: ""; position: absolute; inset: 3.5%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(44,201,207,.38) 0deg .35deg, transparent .35deg 5deg); -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px), #000 100%, transparent calc(100% + 1px)); mask: radial-gradient(circle closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px), #000 100%, transparent calc(100% + 1px)); opacity: .7; }
.hero-orbit::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(159,179,196,.12); }
.globe-caption { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: .7em; white-space: nowrap; font-size: var(--step--2); letter-spacing: .02em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.globe-caption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 0 4px rgba(44,201,207,.16); }
.globe-caption span { color: #fff; font-weight: 600; }
@media (min-width: 1024px) {
  .hero { min-height: min(calc(100svh - var(--header-h)), 1600px); display: flex; flex-direction: column; padding-top: var(--space-l); }
  .hero > .hero-grid { flex: 1; }
  .hero > .container:last-child { margin-top: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; }
  .hero-copy { margin-right: -6%; }
  .hero-visual { width: min(100%, 64svh, 820px); justify-self: end; margin-right: calc(var(--space-s) * -1); }
}

/* Next intake bar (in the hero, real data) */
.next-intake { position: relative; z-index: 1; margin-top: var(--space-xl); display: grid; gap: var(--space-xs) var(--space-l); grid-template-columns: 1fr; align-items: center; padding: var(--space-s) var(--space-m); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(16,33,58,.92), rgba(10,22,40,.92)); border: 1px solid var(--line-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -36px rgba(0,0,0,.8); }
.next-intake p { margin: 0; }
.next-label { font-size: var(--step--2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); }
.next-date { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.1; color: #fff; white-space: nowrap; }
.next-course { display: grid; gap: 2px; min-width: 0; }
.next-course a { color: #fff; font-weight: 600; font-size: var(--step-0); text-decoration: none; line-height: 1.3; }
.next-course a:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.next-course span { color: var(--on-dark-muted); font-size: var(--step--1); }
.next-fee { display: grid; gap: 2px; color: #fff; font-weight: 600; font-size: var(--step-0); white-space: nowrap; }
.next-fee span { font-size: var(--step--2); color: var(--on-dark-muted); font-weight: 500; letter-spacing: .02em; }
.next-actions { display: flex; align-items: center; gap: var(--space-s); flex-wrap: wrap; }
.next-all { color: var(--on-dark-muted); font-size: var(--step--1); font-weight: 500; text-decoration-color: rgba(159,179,196,.4); white-space: nowrap; }
.next-all:hover { color: #fff; }
@media (min-width: 640px) { .next-intake { grid-template-columns: auto minmax(0, 1fr) auto; } .next-label { grid-column: 1 / -1; } .next-fee { text-align: right; } .next-actions { grid-column: 1 / -1; padding-top: var(--space-xs); border-top: 1px solid var(--line-dark); } }
@media (min-width: 1280px) {
  .next-intake { grid-template-columns: auto auto minmax(0, 1fr) auto auto; padding: var(--space-s) var(--space-s) var(--space-s) var(--space-m); }
  .next-label { grid-column: auto; writing-mode: horizontal-tb; padding-right: var(--space-s); border-right: 1px solid var(--line-dark); }
  .next-actions { grid-column: auto; padding-top: 0; border-top: 0; }
  .next-fee { text-align: left; }
}

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.course-card { position: relative; display: flex; flex-direction: column; height: 100%; border-color: rgba(10,22,40,.06); box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 18px 40px -28px rgba(10,22,40,.28); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10,22,40,.05), 0 30px 56px -30px rgba(10,22,40,.38); }
.course-card-media { aspect-ratio: 16 / 10; background: var(--navy-700); overflow: hidden; display: block; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course-card:hover .course-card-media img { transform: scale(1.045); }
.course-card-body { padding: var(--space-s); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.course-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 10px; align-items: flex-start; }
.course-card-cat { flex: 1 1 15em; min-width: 0; display: flex; align-items: flex-start; gap: .55em; font-size: var(--step--2); color: var(--muted); font-weight: 600; line-height: 1.45; letter-spacing: .05em; text-transform: uppercase; }
.course-card-cat svg { width: 1.6em; height: 1.6em; flex: none; color: var(--teal); margin-top: -.1em; }
.course-card h3 { font-size: var(--step-2); margin: 0; line-height: 1.2; }
.course-card h3 a { color: var(--navy); text-decoration: none; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card h3 a:hover { color: var(--teal-strong); }
.course-card p { color: var(--muted); font-size: var(--step--1); margin: 0; line-height: 1.55; }
.facts { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: var(--space-xs) 12px; margin: auto 0 0; padding: var(--space-xs) 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 0; display: grid; grid-template-columns: 1.15em minmax(0, 1fr); column-gap: .5em; align-items: start; }
.facts div > svg { grid-row: span 2; width: 1.15em; height: 1.15em; color: var(--teal); margin-top: .2em; }
.facts dt { font-size: var(--step--2); color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 700; font-size: var(--step--1); color: var(--navy); line-height: 1.35; }
.facts div:nth-child(n+3) dd { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1599px) { .grid-4 .course-card-body { padding: 18px; } .grid-4 .facts dd { font-size: var(--step--2); } }
.course-card-actions { padding-top: var(--space-2xs); position: relative; z-index: 1; }
/* Compact card (homepage): text only, teal type, the whole card is the link */
.course-card.is-compact { cursor: pointer; border: 1px solid #D3E6E7; background: linear-gradient(180deg, #fff 0%, #FBFDFD 100%); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s, background-color .25s; }
.course-card.is-compact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-300)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.course-card.is-compact .course-card-body { padding: var(--space-m) var(--space-s) var(--space-s); gap: var(--space-s); }
.course-card.is-compact .course-card-cat, .course-card.is-compact .course-card-cat svg { color: var(--teal); }
.course-card.is-compact h3 { font-size: var(--step-2); }
.course-card.is-compact h3 a { color: var(--teal-strong); }
.course-card.is-compact .facts dt { color: #4F7476; }
.course-card.is-compact .facts dd { color: var(--teal-strong); }
.course-card.is-compact .facts { margin-top: auto; }
.course-card.is-compact p { color: #4F6B6E; }
.course-card.is-compact:hover, .course-card.is-compact:focus-within { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 2px 4px rgba(13,115,119,.08), 0 30px 56px -28px rgba(13,115,119,.45); }
.course-card.is-compact:hover::before, .course-card.is-compact:focus-within::before { transform: scaleX(1); }
.course-card.is-compact:hover h3 a { color: var(--teal); }
.course-card.is-compact:hover .btn-secondary, .course-card.is-compact:focus-within .btn-secondary { background: var(--teal); border-color: var(--teal); color: #fff; }
.course-card.is-compact h3 a:focus-visible { outline: none; }
.course-card.is-compact:has(h3 a:focus-visible) { outline: 3px solid #1E8E93; outline-offset: 3px; }
.course-card.is-compact:active { transform: translateY(-3px); }
.price { font-weight: 700; color: var(--navy); font-size: var(--step-1); }
.price small { font-weight: 500; color: var(--muted); font-size: var(--step--1); }

/* Shared section decoration: soft organic shapes and a dot field (light sections) */
.home-upcoming, .home-how, .home-mentor { position: relative; overflow: hidden; isolation: isolate; }
.home-upcoming { background: linear-gradient(180deg, #F3F8F8 0%, #F8FBFB 100%); }
.home-upcoming::before { content: ""; position: absolute; z-index: -1; left: -12vw; top: -20%; width: 46vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(13,115,119,.06), transparent 70%); }
.home-upcoming::after { content: ""; position: absolute; z-index: -1; right: var(--gutter); top: var(--space-l); width: clamp(120px, 10vw, 220px); height: clamp(90px, 7vw, 160px); background-image: radial-gradient(circle, rgba(13,115,119,.22) 1.4px, transparent 1.8px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 85%); mask-image: linear-gradient(225deg, #000 30%, transparent 85%); }
.home-how { background: #fff; }
.home-how::before { content: ""; position: absolute; z-index: -1; right: -14vw; top: -40%; width: 52vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(13,115,119,.055), transparent 68%); }
.home-mentor { background: #FAFBFA; }
.home-mentor::before { content: ""; position: absolute; z-index: -1; right: -18vw; top: -30%; width: 48vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(13,115,119,.07); background: radial-gradient(circle, rgba(13,115,119,.045), transparent 70%); }
.home-mentor::after { content: ""; position: absolute; z-index: -1; left: 30%; right: -10%; bottom: -55%; height: 90%; border-radius: 50%; border-top: 1px solid rgba(13,115,119,.12); }

/* Topic cards (home) */
.home-topics { background: #FBFBF9; }
.topics { display: grid; gap: var(--space-l); }
@media (min-width: 1024px) { .topics { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl); align-items: start; } .topics .section-head { position: sticky; top: calc(var(--header-h) + var(--space-m)); } }
.topic-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.topic-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-s); align-items: center; padding: var(--space-s); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.topic-card:hover { border-color: #B9D9DA; box-shadow: 0 22px 44px -30px rgba(10,22,40,.35); transform: translateY(-2px); color: var(--ink); }
.topic-icon { display: grid; place-items: center; width: clamp(56px, 3vw + 44px, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); }
.topic-icon svg { width: 44%; height: 44%; }
.topic-text { display: grid; gap: .35em; min-width: 0; }
.topic-name { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.2; color: var(--navy); letter-spacing: -0.01em; transition: color .25s; }
.topic-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.55; max-width: 52ch; }
.topic-count { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); font-weight: 700; font-size: var(--step--1); color: var(--teal-strong); white-space: nowrap; padding-top: var(--space-xs); border-top: 1px solid var(--line); }
.round-arrow { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); transition: background-color .25s, color .25s, transform .35s var(--ease); }
.round-arrow svg { width: 1.15em; height: 1.15em; }
.topic-card:hover .topic-name { color: var(--teal-strong); }
.topic-card:hover .round-arrow { background: var(--teal); color: #fff; transform: translateX(3px); }
@media (min-width: 720px) {
  .topic-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0; padding: var(--space-s) var(--space-m); }
  .topic-icon { margin-right: var(--space-m); }
  .topic-text { padding-left: var(--space-m); border-left: 1px solid var(--line); }
  .topic-count { grid-column: auto; border-top: 0; padding: 0 0 0 var(--space-m); margin-left: var(--space-m); border-left: 1px solid var(--line); align-self: stretch; }
}
/* Legacy tiles */
.cat-list { display: grid; gap: var(--space-s); }
@media (min-width: 900px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { display: block; padding: var(--space-m); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); background: #fff; }
.cat-tile p, .cat-tile .count { color: var(--muted); font-size: var(--step--1); }

/* Why learn (deep teal) */
.section-why { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #082230 0%, #0B3440 55%, #0E3E48 100%); }
.section-why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(min(60vw, 1100px) min(40vw, 700px) at 85% 0%, rgba(44,201,207,.12), transparent 62%), radial-gradient(min(40vw, 700px) min(30vw, 500px) at 0% 100%, rgba(7,16,31,.5), transparent 70%); pointer-events: none; }
.why { position: relative; display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 1024px) { .why { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl); } }
.why-media { margin: 0; }
.why-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
@media (min-width: 1024px) { .why-media img { aspect-ratio: 1 / 0.95; } }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; }
.why-list li { padding: var(--space-m) 0; border-top: 1px solid rgba(255,255,255,.12); }
.why-list li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) {
  .why-list { grid-template-columns: 1fr 1fr; }
  .why-list li { padding: var(--space-m) var(--space-m) var(--space-m) 0; border-top: 0; }
  .why-list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .why-list li:nth-child(even) { padding-left: var(--space-m); padding-right: 0; }
  .why-list li:nth-child(-n+2) { padding-top: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}
.why-list .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(44,201,207,.14); color: var(--teal-300); margin-bottom: var(--space-xs); }
.why-list .icon svg { width: 24px; height: 24px; }
.why-list h3 { color: #fff; font-size: var(--step-2); margin-bottom: .4em; }
.why-list p { color: #B6CAD3; font-size: var(--step--1); margin: 0; max-width: 40ch; }
.media-frame { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; position: relative; margin: 0; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.dark-cards { display: grid; gap: var(--space-s); }
.dark-card { background: var(--navy-700); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: var(--space-m); }

/* Steps (a sequence: the numbers carry the order) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-m); counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding-left: calc(56px + var(--space-s)); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1.5px solid #4FB8BC; color: var(--navy); font-family: var(--font); font-weight: 600; font-size: 1.15rem; line-height: 1; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.steps li::after { content: ""; position: absolute; left: 28px; top: 56px; bottom: calc(var(--space-m) * -1); width: 1.5px; background: #4FB8BC; }
.steps li:last-child::after { background: linear-gradient(#4FB8BC, transparent); bottom: 0; }
.steps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--navy); margin-bottom: .35em; line-height: 1.25; padding-top: .55em; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 40ch; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-l); }
  .steps li { padding-left: 0; padding-top: calc(56px + var(--space-m)); }
  .steps li::after { left: 56px; right: calc(var(--space-l) * -1); top: 28px; bottom: auto; width: auto; height: 1.5px; }
  .steps li:last-child::after { display: block; right: 0; background: linear-gradient(90deg, #4FB8BC, transparent); }
  .steps strong { padding-top: 0; }
}
.course-main .steps li::before { box-shadow: 0 0 0 6px #fff; }

/* Mentorship (home, light) */
.mentor { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 1024px) { .mentor { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-xl); } }
.mentor-copy h2 { max-width: 20ch; }
.mentor-copy p:not(.eyebrow) { color: var(--ink); font-size: var(--step-0); max-width: 52ch; margin-bottom: var(--space-m); }
.mentor-points { list-style: none; margin: 0; padding: var(--space-s) var(--space-m); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 30px 60px -40px rgba(10,22,40,.35); }
.mentor-points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-s); align-items: center; padding: var(--space-s) 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: var(--step-1); color: var(--navy); line-height: 1.35; }
.mentor-points li:first-child { border-top: 0; }
.tick { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); }
.tick svg { width: 20px; height: 20px; stroke-width: 2.2; }
/* Legacy band (other templates) */
.band { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; border-radius: var(--radius-xl); padding: var(--space-l) var(--space-m); display: grid; gap: var(--space-m); }
.band h2 { color: #fff; } .band p { color: var(--on-dark-muted); margin: 0; }

/* Articles */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-top: 1px solid var(--line-strong); padding: var(--space-s) 0; }
.article-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.article-list time { font-size: var(--step--2); color: var(--muted); }
.article-list h3 { font-size: var(--step-1); margin: .2em 0 .3em; }
.article-list h3 a { color: var(--navy); text-decoration: none; }
.article-list h3 a:hover { color: var(--teal-strong); text-decoration: underline; }
.article-list p { color: var(--muted); font-size: var(--step--1); margin: 0; max-width: 60ch; }
.list-more { margin: var(--space-s) 0 0; }
.article-card { display: flex; flex-direction: column; height: 100%; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-card-media { aspect-ratio: 16 / 10; background: var(--bg-soft); display: block; overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .article-card-media img { transform: scale(1.04); }
.article-card-body { padding: var(--space-s); }
.article-card h3 { font-size: var(--step-1); margin-bottom: .35em; }
.article-card h3 a { color: var(--navy); text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card h3 a:hover { color: var(--teal-strong); }
.article-card time { font-size: var(--step--2); color: var(--muted); }
.article-card p { font-size: var(--step--1); }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; padding: var(--space-s) 0; font-weight: 600; font-size: var(--step-0); color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); transition: color .15s; }
.faq summary:hover { color: var(--teal-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: linear-gradient(var(--teal), var(--teal)) center / 10px 1.5px no-repeat, linear-gradient(var(--teal), var(--teal)) center / 1.5px 10px no-repeat; transition: transform .3s var(--ease), background-color .2s, border-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--teal); }
.faq details p { margin: 0 0 var(--space-s); color: var(--muted); max-width: 64ch; font-size: var(--step--1); }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 var(--space-s); display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--2); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.band-head .crumbs ol, .course-hero .crumbs ol { color: var(--on-dark-muted); }
.band-head .crumbs a, .course-hero .crumbs a { color: var(--on-dark-muted); text-decoration-color: rgba(159,179,196,.4); }
.band-head .crumbs a:hover, .course-hero .crumbs a:hover { color: #fff; }
.band-head .crumbs li + li::before, .course-hero .crumbs li + li::before { color: rgba(255,255,255,.25); }

/* Page heads */
.page-head { padding: var(--space-xl) 0 var(--space-l); }
.page-head h1 { margin-bottom: .25em; max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.page-head .lead p:last-child { margin-bottom: 0; }
.band-head, .course-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: var(--on-dark); padding: var(--space-xl) 0 var(--space-l); }
.band-head::before, .course-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(min(70vw, 1200px) min(30vw, 520px) at 92% 0%, rgba(20,165,171,.22), transparent 62%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); pointer-events: none; }
.band-head::after, .course-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: clamp(40px, 2.6vw + 30px, 96px) clamp(40px, 2.6vw + 30px, 96px); -webkit-mask-image: radial-gradient(ellipse 50% 90% at 90% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 50% 90% at 90% 0%, #000, transparent 70%); }
.band-head h1, .course-hero h1 { color: #fff; max-width: 24ch; }
.band-head .lead, .course-hero .lead { color: var(--on-dark-muted); margin-bottom: 0; }
.band-head .lead p { margin: 0; }
.course-hero .lead { margin-bottom: var(--space-m); }
.course-hero .eyebrow { color: var(--teal-300); }
.course-hero-grid { display: grid; gap: var(--space-l); align-items: center; }
.course-hero-media { margin: 0; display: none; }
.course-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--line-dark); box-shadow: 0 40px 80px -40px rgba(0,0,0,.85); }
@media (min-width: 1024px) { .course-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--space-xl); } .course-hero-media { display: block; } }
.band-head + .section { padding-top: var(--space-xl); }

/* Catalogue */
.catalogue { display: grid; gap: var(--space-l); }
@media (min-width: 1000px) { .catalogue { grid-template-columns: clamp(250px, 14vw + 100px, 360px) minmax(0, 1fr); align-items: start; gap: var(--space-xl); } .filters { position: sticky; top: calc(var(--header-h) + var(--space-s)); } }
@media (min-width: 1600px) { .catalogue .grid-2 { grid-template-columns: repeat(3, 1fr); } }
.filters { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-s); }
.filters h2 { font-family: var(--font); font-weight: 600; font-size: var(--step-0); margin-bottom: var(--space-xs); }
.filters .field { margin-bottom: var(--space-xs); }
.filters-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.filters-toggle { display: none; }
@media (max-width: 999px) { .filters-toggle { display: inline-flex; margin-bottom: 12px; } .filters { display: none; } .filters.is-open { display: block; } }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--space-s); }
.results-head p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.empty { padding: var(--space-xl) var(--space-m); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.empty h3 { margin-bottom: 6px; } .empty p { color: var(--muted); margin: 0 auto var(--space-s); max-width: 52ch; }

/* Catalogue: compact layout with the filter bar on top */
.filters-bar { display: grid; gap: var(--space-xs) var(--space-s); grid-template-columns: 1fr; align-items: end; padding: var(--space-s); margin-bottom: var(--space-m); background: #fff; border: 1px solid #D3E6E7; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -32px rgba(13,115,119,.45); }
.filters-bar .field { margin: 0; }
.filters-bar input, .filters-bar select { height: 48px; min-height: 48px; }
.filters-bar label { font-size: var(--step--2); color: #4F7476; }
.filters-bar-actions { display: flex; align-items: center; gap: var(--space-s); }
.filters-bar-actions .btn { min-height: 48px; }
@media (min-width: 640px) { .filters-bar { grid-template-columns: 1fr 1fr; } .filters-bar .field-search { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .filters-bar { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) auto; } .filters-bar .field-search { grid-column: auto; } }
.catalogue-list .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .catalogue-list .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalogue-list .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .catalogue-list .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* Layout switch (shown when both catalogue layouts are live) */
.view-switch { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; }
.view-switch a { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em; min-height: 40px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--muted); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.view-switch a svg { width: 1.1em; height: 1.1em; }
.view-switch a:hover { color: var(--teal-strong); }
.view-switch a.is-active { background: #fff; color: var(--teal-strong); box-shadow: 0 1px 2px rgba(10,22,40,.08), 0 6px 14px -8px rgba(13,115,119,.4); }

/* Course single */
.course-layout { display: grid; gap: var(--space-l); padding: var(--space-xl) 0 var(--space-2xl); align-items: start; }
@media (min-width: 1000px) { .course-layout { grid-template-columns: minmax(0, 1fr) clamp(340px, 12vw + 200px, 480px); gap: var(--space-xl); } .course-panel { position: sticky; top: calc(var(--header-h) + var(--space-s)); } }
.course-main > section { margin-bottom: var(--space-xl); }
.course-main h2 { font-size: var(--step-4); margin-bottom: var(--space-s); }
.course-main h3 { margin-top: var(--space-m); }
.course-main .prose { max-width: 68ch; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2xs); }
@media (min-width: 700px) { .list-check.two { grid-template-columns: 1fr 1fr; gap: var(--space-2xs) var(--space-m); } }
.list-check li { padding-left: 1.85em; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--teal-soft); }
.list-check li::after { content: ""; position: absolute; left: .38em; top: .52em; width: .34em; height: .56em; border: solid var(--teal-strong); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.overview-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-s) var(--space-m); padding: var(--space-m); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 0 0 var(--space-m); }
@media (min-width: 700px) { .overview-facts { grid-template-columns: repeat(3, 1fr); } }
.overview-facts dt { font-size: var(--step--2); color: var(--muted); font-weight: 500; }
.overview-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.syllabus { display: grid; gap: var(--space-xs); }
.syllabus-group { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-s) var(--space-m); background: #fff; }
.syllabus-group h3 { font-family: var(--font); font-size: var(--step--1); color: var(--teal-strong); margin: 0 0 var(--space-2xs); text-transform: uppercase; letter-spacing: .06em; }
.syllabus-group ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.syllabus-group ol span { display: block; color: var(--muted); font-size: var(--step--1); }
.intake-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.intake-table th, .intake-table td { text-align: left; padding: var(--space-xs) var(--space-2xs); border-bottom: 1px solid var(--line); vertical-align: top; }
.intake-table th { font-size: var(--step--2); color: var(--muted); font-weight: 600; }
.intake-table tbody tr { transition: background-color .15s; }
.intake-table tbody tr:hover { background: var(--bg-soft); }
.intake-table .sched { display: block; }
.local-time { display: block; color: var(--muted); font-size: var(--step--2); }
@media (max-width: 640px) {
  .intake-table thead { display: none; }
  .intake-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .intake-table td { display: block; border: 0; padding: 2px 0; }
  .intake-table td::before { content: attr(data-label); display: block; font-size: var(--step--2); color: var(--muted); font-weight: 600; }
}
.pricing-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-m); display: grid; gap: var(--space-m); background: #fff; }
@media (min-width: 760px) { .pricing-box { grid-template-columns: 1fr 1fr; } }
.pricing-box h3 { font-size: var(--step-0); margin: 0 0 6px; }
.pricing-box ul { margin: 0; padding-left: 1.2em; }
.pricing-box .price { font-size: var(--step-4); font-family: var(--serif); font-weight: 400; line-height: 1.1; }
.instructor { display: flex; gap: var(--space-s); align-items: flex-start; }
.instructor img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }

/* Registration panel */
.course-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-m); box-shadow: var(--shadow); }
.course-panel h2 { font-family: var(--font); font-weight: 600; font-size: var(--step-1); margin-bottom: var(--space-xs); letter-spacing: -0.01em; }
.intake-options { display: grid; gap: var(--space-2xs); margin: 0 0 var(--space-s); }
.intake-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.intake-option:hover { border-color: #9CC9CA; }
.intake-option:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal); }
.intake-option:has(input:focus-visible) { box-shadow: 0 0 0 3px #BFE3E4; }
.intake-option input { margin-top: 4px; width: 18px; height: 18px; }
.intake-option strong { display: block; color: var(--navy); }
.intake-option span { display: block; font-size: var(--step--1); color: var(--muted); }
.intake-option .pill { justify-self: start; margin-top: 4px; }
.intake-option.is-disabled { opacity: .7; cursor: not-allowed; }
.panel-summary { display: grid; gap: 8px; font-size: var(--step--1); margin: 0 0 var(--space-s); padding-top: var(--space-xs); border-top: 1px solid var(--line); }
.panel-summary div { display: flex; justify-content: space-between; gap: 12px; }
.panel-summary dt { color: var(--muted); } .panel-summary dd { margin: 0; font-weight: 600; text-align: right; color: var(--navy); }
.panel-note { font-size: var(--step--2); color: var(--muted); margin: var(--space-xs) 0 0; }
.mobile-bar { display: none; }
@media (max-width: 999px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -12px 30px -20px rgba(10,22,40,.4); }
  .mobile-bar .price { font-size: var(--step-0); } .mobile-bar .btn { padding: 10px 16px; }
  body.has-mobile-bar { padding-bottom: 80px; }
}

/* Calendar */
.cal-controls { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: flex-end; margin: 0 0 var(--space-l); padding: var(--space-s); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cal-controls .field { margin: 0; min-width: 200px; flex: 1 1 200px; }
.cal-controls .btn { flex: none; }
.cal-month { margin-bottom: var(--space-xl); }
.cal-month h2 { font-size: var(--step-3); padding-bottom: var(--space-2xs); margin-bottom: 0; border-bottom: 1px solid var(--navy); }
.cal-row { display: grid; gap: var(--space-2xs); padding: var(--space-s) 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
@media (min-width: 900px) { .cal-row { grid-template-columns: clamp(170px, 7vw + 90px, 280px) minmax(0, 1fr) clamp(150px, 4vw + 100px, 220px) auto; align-items: center; gap: var(--space-m); } }
.cal-date { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); color: var(--navy); line-height: 1.2; }
.cal-date span { display: block; font-family: var(--font); font-weight: 500; color: var(--muted); font-size: var(--step--1); }
.cal-course h3 { font-size: var(--step-1); margin-bottom: 4px; }
.cal-course h3 a { color: var(--navy); text-decoration: none; }
.cal-course h3 a:hover { color: var(--teal-strong); text-decoration: underline; }
.cal-course .meta { color: var(--muted); font-size: var(--step--1); }
.cal-course .sched { display: block; font-size: var(--step--1); }
.cal-course .cal-note { margin: var(--space-3xs) 0 0; padding: 6px 10px; font-size: var(--step--1); color: var(--teal-strong); background: var(--teal-tint); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--read-max); }
.cal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) { .cal-actions { justify-content: flex-end; } }
.past-list { margin: var(--space-l) 0 var(--space-xl); }
.past-list summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 0; }

/* Forms */
.form { display: grid; gap: var(--space-s); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 600; color: var(--navy); font-size: var(--step--1); }
.field .help { font-size: var(--step--2); color: var(--muted); margin: 0; }
.field-row { display: grid; gap: var(--space-s); }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea { width: 100%; font: inherit; font-size: max(16px, var(--step--1)); padding: .72em .85em; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #6B7886; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #A7B4C2; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); box-shadow: 0 0 0 5px rgba(13,115,119,.14); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.16); }
textarea { min-height: 128px; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 3px; }
.check label { font-weight: 400; }
.field-error { color: var(--error); font-size: var(--step--2); margin: 0; font-weight: 500; }
.form-error, .alert { padding: var(--space-xs) var(--space-s); border-radius: var(--radius); border: 1px solid; font-size: var(--step--1); }
.form-error, .alert-error { background: var(--error-bg); border-color: #FDA29B; color: var(--error); }
.alert-info { background: var(--teal-tint); border-color: #B5DADB; color: var(--teal-strong); }
.alert-success { background: var(--success-bg); border-color: #A6E4C6; color: var(--success); }
.elmenta-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.country-select { position: relative; }
.country-select.is-combo > input { padding-right: 2.6em; }
.country-select.is-combo::after { content: ""; position: absolute; right: 14px; top: 24px; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.country-select.is-combo:has(input[aria-expanded="true"])::after { transform: rotate(-135deg); margin-top: -2px; }
.country-native { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; left: 0; top: 0; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.combo-list[hidden] { display: none; }
.combo-group { padding: 10px 14px 4px; font-size: var(--step--2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.combo-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 14px; cursor: pointer; font-size: var(--step--1); color: var(--ink); }
.combo-option.is-active { background: var(--teal-tint); }
.combo-option[aria-selected="true"] { font-weight: 700; color: var(--teal-strong); }
.combo-option[aria-selected="true"]::after { content: ""; flex: none; width: 5px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); margin-right: 4px; }
.combo-empty { padding: 12px 14px; color: var(--muted); font-size: var(--step--1); }
/* Phone field: dial-code button joined to the number input (one bordered control), popup with search + listbox */
.phone-field { position: relative; }
.phone-control { display: flex; align-items: stretch; width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .2s; }
.phone-control:hover:not(:focus-within) { border-color: #A7B4C2; }
.phone-control:focus-within { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); box-shadow: 0 0 0 5px rgba(13,115,119,.14); }
.phone-control.is-invalid { border-color: var(--error); }
.phone-control.is-invalid:focus-within { outline-color: var(--error); box-shadow: 0 0 0 4px rgba(180,35,24,.16); }
.phone-control input[type="tel"] { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: none; outline: 0; background: transparent; min-height: 46px; }
.phone-control input[type="tel"]:focus, .phone-control input[type="tel"]:hover:not(:focus) { border: 0; box-shadow: none; outline: 0; }
.phone-code { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; margin: 0; font: inherit; font-size: max(16px, var(--step--1)); color: var(--ink); background: var(--bg-soft, #F4F7F9); border: 0; border-right: 1px solid var(--line-strong); border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); cursor: pointer; white-space: nowrap; }
.phone-code:hover { background: var(--teal-tint); }
.phone-code:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.phone-dial { font-variant-numeric: tabular-nums; font-weight: 600; }
.phone-chev { width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.phone-code[aria-expanded="true"] .phone-chev { transform: rotate(-135deg); margin-top: 3px; }
.flag { flex: none; width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; background: var(--line, #E1E7ED); }
.phone-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); min-width: min(280px, 100%); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.phone-pop[hidden] { display: none; }
.phone-search { display: block; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 46px; }
.phone-search:focus { outline: 0; box-shadow: none; border-color: var(--teal); }
.combo-list.phone-list { position: static; max-height: 260px; border: 0; border-radius: 0; box-shadow: none; padding: 4px 0; }
.phone-list .combo-option { justify-content: flex-start; }
.phone-name { flex: 1 1 auto; min-width: 0; }
.phone-opt-dial { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .phone-code { padding: 0 8px 0 10px; gap: 5px; } }
.error-summary { margin-bottom: var(--space-s); }
.error-summary:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.error-summary-title { margin: 0; font-weight: 700; }
.error-summary ul { margin: 8px 0 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); text-decoration: underline; text-underline-offset: 2px; }
.required { color: var(--error); }
.form-layout { display: grid; gap: var(--space-l); padding-bottom: var(--space-2xl); }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1fr) clamp(320px, 10vw + 200px, 440px); align-items: start; gap: var(--space-xl); } .summary-card { position: sticky; top: calc(var(--header-h) + var(--space-s)); } }
.form-layout > :first-child { max-width: 56rem; }
.summary-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-m); }
.summary-card h2 { font-family: var(--font); font-weight: 600; font-size: var(--step-1); margin-bottom: var(--space-xs); letter-spacing: -0.01em; }
.summary-card dl { margin: 0; display: grid; gap: 8px; }
.summary-card dt { font-size: var(--step--2); color: var(--muted); font-weight: 500; }
.summary-card dd { margin: 0 0 4px; font-weight: 600; color: var(--navy); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-m); box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: var(--space-l); } }
.form-card h2 { font-family: var(--font); font-weight: 600; font-size: var(--step-2); letter-spacing: -0.01em; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form fieldset { display: grid; gap: var(--space-s); }
legend { font-weight: 600; color: var(--navy); margin-bottom: 10px; padding: 0; }

/* Confirmation */
.confirm { max-width: 50rem; }
.confirm .ref { font-family: var(--font); font-size: var(--step-2); font-weight: 700; color: var(--navy); background: var(--teal-tint); border: 1px solid #B5DADB; display: inline-block; padding: .35em .7em; border-radius: var(--radius); letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* Prose pages */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose img { border-radius: var(--radius-lg); }
.prose blockquote { margin: var(--space-m) 0; padding-left: var(--space-s); border-left: 1px solid var(--line-strong); color: var(--navy); font-family: var(--serif); font-size: var(--step-2); line-height: 1.3; }
.prose .wp-block-list { margin-bottom: 1.2em; }
.prose li + li { margin-top: .35em; }
.page-body { padding-bottom: var(--space-2xl); }
.elmenta-draft-notice { background: #FFF7E6; border: 1px solid #F5D08C; color: #7A4E00; padding: 12px 14px; border-radius: var(--radius); font-weight: 500; }
.notice-band { background: #FFF7E6; color: #7A4E00; text-align: center; padding: 8px var(--gutter); font-size: var(--step--1); font-weight: 500; border-bottom: 1px solid #F5D08C; }
.article-head { padding: var(--space-xl) 0 var(--space-m); }
.article-head h1 { max-width: 24ch; }
.article-head time { color: var(--muted); font-size: var(--step--1); }
.article-media { margin: var(--space-s) 0 var(--space-l); max-width: 60rem; }
.related { padding: var(--space-xl) 0 var(--space-2xl); margin-top: var(--space-xl); border-top: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); } }
.contact-item { padding: var(--space-m) 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; }
@media (min-width: 800px) { .contact-item { padding: var(--space-m); border-top: 0; border-left: 1px solid var(--line); } .contact-item:first-child { border-left: 0; padding-left: 0; } }
.contact-item h3 { font-family: var(--font); font-size: var(--step--1); color: var(--muted); font-weight: 500; margin-bottom: 6px; letter-spacing: 0; }
.contact-item > a, .contact-item h3 + p { font-weight: 600; font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; text-decoration: none; color: var(--navy); }
.contact-item > a:hover { color: var(--teal-strong); }
.contact-cta p { max-width: 62ch; }
.contact-cta { padding: var(--space-l); border-radius: var(--radius-xl); background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: var(--space-2xl); }

/* Pagination */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-l); }
.pagination .page-numbers { padding: 8px 14px; min-width: 44px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* 404 / 410 */
.gone { text-align: center; padding: var(--space-3xl) 0; }
.gone h1 { max-width: 18ch; margin-inline: auto; }
.gone p { color: var(--muted); max-width: 55ch; margin: 0 auto var(--space-m); }
.gone .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer (dark): brand + three link columns + subscribe, hairline-divided columns, bottom bar */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 0 0 var(--space-s); position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(min(70vw, 1200px) 480px at 8% 0%, rgba(20,165,171,.12), transparent 60%); }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.footer-cta { display: grid; gap: var(--space-m); padding: var(--space-2xl) 0 var(--space-xl); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-xl); } }
.footer-cta h2 { color: #fff; font-size: var(--step-4); margin-bottom: .25em; max-width: 24ch; }
.footer-cta h2 em { color: var(--teal-300); }
.footer-cta p { margin: 0; max-width: 56ch; font-size: var(--step-0); }
.footer-cta-actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; }

.footer-main { display: grid; gap: var(--space-l) var(--space-m); padding: var(--space-xl) 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand-col, .footer-subscribe { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand-col { grid-column: 1 / 2; } .footer-subscribe { grid-column: 2 / -1; } }
@media (min-width: 1280px) {
  .footer-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; }
  .footer-brand-col, .footer-subscribe { grid-column: auto; }
  .footer-main > * { padding: 0 clamp(16px, 1.6vw, 40px); border-left: 1px solid var(--line-dark); }
  .footer-main > :first-child { padding-left: 0; border-left: 0; }
  .footer-main > :last-child { padding-right: 0; }
}
.footer-logo-link { display: inline-block; }
.footer-logo { height: clamp(48px, 40px + 1vw, 66px); width: auto; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: var(--step-2); }
.footer-about { margin: var(--space-s) 0 0; font-size: var(--step--1); line-height: 1.75; color: #C2D0DA; max-width: 34ch; }
.footer-rule { display: block; width: 3em; height: 2px; border-radius: 2px; background: var(--teal-400); margin: var(--space-m) 0 var(--space-s); }
.footer-motto { margin: 0; color: var(--teal-300); font-size: var(--step--2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.8; max-width: 30ch; }

.footer-col h3 { font-family: var(--font); color: #fff; font-size: var(--step--2); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; margin: 0 0 var(--space-s); }
.footer-col h3::after { content: ""; display: block; width: 2.4em; height: 2px; border-radius: 2px; background: var(--teal-400); margin-top: .9em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { border-top: 1px solid rgba(255,255,255,.07); }
.footer-col a { display: flex; align-items: flex-start; gap: .6em; padding: .72em 0; color: #C9D6DF; text-decoration: none; font-size: var(--step--1); line-height: 1.45; transition: color .2s; }
.footer-col a svg { width: 1em; height: 1em; flex: none; margin-top: .22em; color: var(--teal-400); transition: transform .3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col a:hover svg { transform: translateX(3px); }

.footer-subscribe p { margin: 0 0 var(--space-s); font-size: var(--step--1); line-height: 1.7; color: #C2D0DA; max-width: 40ch; }
.footer-sub-form { display: grid; gap: var(--space-xs); max-width: 28rem; }
.footer-sub-field { position: relative; }
.footer-sub-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--teal-300); pointer-events: none; }
.footer-sub-field input { min-height: 52px; padding-left: 48px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: var(--radius); }
.footer-sub-field input::placeholder { color: #8FA4B6; }
.footer-sub-field input:hover:not(:focus) { border-color: rgba(255,255,255,.26); }
.footer-sub-field input:focus { border-color: var(--teal-300); outline: 2px solid var(--teal-300); outline-offset: 1px; box-shadow: 0 0 0 5px rgba(44,201,207,.12); }
.footer-sub-form .btn { min-height: 52px; font-size: var(--step-0); }
.footer-sub-form .btn svg { width: 1em; height: 1em; }
.footer-subscribe .footer-sub-note { margin: var(--space-xs) 0 0; font-size: var(--step--2); color: #8FA4B6; }
.footer-sub-msg { padding: .7em .9em; border-radius: var(--radius); font-size: var(--step--1); font-weight: 500; }
.footer-sub-msg.is-ok { background: rgba(18,160,106,.14); border: 1px solid rgba(18,160,106,.4); color: #B9F0D6; }
.footer-sub-msg.is-error { background: rgba(240,68,56,.12); border: 1px solid rgba(240,68,56,.4); color: #FECDCA; }

.footer-bottom { display: grid; gap: var(--space-s); align-items: center; padding: var(--space-m) 0 var(--space-s); border-top: 1px solid var(--line-dark); font-size: var(--step--1); }
@media (min-width: 768px) { .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; } .footer-copy { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .footer-bottom { grid-template-columns: auto 1fr auto; } .footer-copy { grid-column: auto; white-space: nowrap; } .footer-values { justify-self: center; } .footer-bottom-end { justify-self: end; } }
.footer-copy { margin: 0; color: #A9BBC8; }
.footer-copy a { color: #DCE6EC; text-decoration-color: rgba(220,230,236,.4); }
.footer-copy a:hover { color: #fff; }
.footer-sep { margin: 0 .5em; color: rgba(255,255,255,.3); }
.footer-values { margin: 0; display: inline-flex; align-items: center; gap: .6em; color: #fff; font-weight: 600; font-size: var(--step-0); white-space: nowrap; }
.footer-values svg { width: 1.2em; height: 1.2em; color: var(--teal-300); }
.footer-bottom-end { display: flex; align-items: center; gap: var(--space-s); flex-wrap: wrap; }
.footer-legal-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-s); }
.footer-legal-menu a { color: #A9BBC8; text-decoration: none; font-size: var(--step--1); }
.footer-legal-menu a:hover { color: #fff; text-decoration: underline; }
.footer-mail { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: border-color .2s, background-color .2s, color .2s; }
.footer-mail svg { width: 20px; height: 20px; }
.footer-mail:hover { border-color: var(--teal-300); background: rgba(44,201,207,.1); color: var(--teal-300); }
.footer-legal { margin: 0; padding-top: var(--space-2xs); font-size: var(--step--2); color: rgba(159,179,196,.7); }

/* Motion: one hero moment, scroll reveals, nothing loops but the globe */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-visual { animation: hero-media 1.4s var(--ease) both; animation-delay: .1s; }
  .hero-orbit { animation: orbit-in 2s var(--ease) both; animation-delay: .3s; }
  .next-intake { animation: hero-rise 1s var(--ease) both; animation-delay: .32s; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-group > * { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .js .reveal-group.is-in > * { opacity: 1; transform: none; }
  .js .reveal-group.is-in > :nth-child(2) { transition-delay: .07s; } .js .reveal-group.is-in > :nth-child(3) { transition-delay: .14s; } .js .reveal-group.is-in > :nth-child(4) { transition-delay: .21s; }
}
@keyframes hero-rise { from { opacity: .001; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hero-media { from { opacity: .001; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes orbit-in { from { opacity: 0; transform: scale(.92) rotate(-12deg); } to { opacity: 1; transform: none; } }
.skeleton { display: inline-block; min-width: 80px; height: .9em; border-radius: 4px; background: linear-gradient(90deg, #E6ECF1 0%, #F3F6F9 50%, #E6ECF1 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; vertical-align: middle; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-footer, .mobile-bar, .filters, .nav-toggle, .hero-visual { display: none !important; } }
@media (min-width: 700px) and (max-width: 1023px) { .home-upcoming .grid-3 > :nth-child(3):last-child { grid-column: 1 / -1; } }
.section-cta { display: flex; justify-content: center; margin-top: var(--space-l); }
h1, h2, h3 { word-spacing: normal; }
@media (max-width: 639px) { .hero-copy { --hero-fit: 8.6cqi; padding-top: var(--space-xs); } }

/* Mentorship plans (prices from Console > Settings) */
.plans { margin-bottom: var(--space-xl); }
.plans-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-s); margin-bottom: var(--space-m); }
.plans-head h2 { margin-bottom: .2em; }
.plans-head p { margin: 0; }
.billing-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.billing-switch label { position: relative; cursor: pointer; }
.billing-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.billing-switch span { display: block; padding: .5em 1.1em; border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.billing-switch em { font-style: normal; color: var(--teal); font-weight: 700; }
.billing-switch input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(10,22,40,.08), 0 6px 14px -8px rgba(13,115,119,.4); }
.billing-switch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.plan-grid { display: grid; gap: var(--space-s); }
@media (min-width: 720px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan-card { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.plan-card.is-featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 30px 60px -34px rgba(13,115,119,.55); }
.plan-flag { position: absolute; top: -12px; left: var(--space-m); padding: .25em .8em; border-radius: 999px; background: var(--teal); color: #fff; font-size: var(--step--2); font-weight: 700; letter-spacing: .02em; }
.plan-audience { margin: 0; font-size: var(--step--2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-strong); }
.plan-card h3 { margin: 0; font-size: var(--step-2); }
.plan-price { margin: 0 0 var(--space-2xs); color: var(--navy); }
.plan-price strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-5); line-height: 1; letter-spacing: -0.01em; }
.plan-price span span { color: var(--muted); font-size: var(--step--1); }
.plan-price .when-year { display: none; }
.plans:has(input[value="year"]:checked) .plan-price .when-year { display: inline; }
.plans:has(input[value="year"]:checked) .plan-price .when-month { display: none; }
.plan-card .list-check { margin-bottom: var(--space-s); font-size: var(--step--1); }
.plan-card .btn { margin-top: auto; }
.plan-terms { list-style: none; margin: var(--space-s) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); color: var(--muted); font-size: var(--step--1); }
.plan-terms li { display: inline-flex; align-items: center; gap: .45em; }
.plan-terms svg { width: 1.1em; height: 1.1em; color: var(--teal); }
.course-main .overview-facts { margin-top: var(--space-m); }
.plan-price span span { white-space: nowrap; }

/* Mentorship page: single-column content + full-width application band (theme 1.7.0) */
.mentor-content { padding: var(--space-xl) 0 var(--space-l); }
.mentor-content .course-main > section:last-child { margin-bottom: 0; }
.mentor-content .faq { max-width: 68ch; }
.apply { background: var(--teal-tint); border-top: 1px solid var(--line); padding-block: var(--space-xl) var(--space-2xl); }
.apply [hidden] { display: none !important; }
.apply-head { max-width: 62ch; margin-bottom: var(--space-l); }
.apply-head h2 { margin-bottom: .3em; }
.apply-head .lead { margin: 0; }
.apply-layout { display: grid; gap: var(--space-m); align-items: start; }
@media (min-width: 1024px) {
  .apply-layout { grid-template-columns: minmax(0, 860px) clamp(280px, 26vw, 380px); gap: var(--space-l); }
  .apply-summary-aside { position: sticky; top: calc(var(--header-h) + var(--space-s)); }
}

/* Numbered sections */
.apply-form { display: grid; }
.apply-step { min-width: 0; padding-block: var(--space-l); border-top: 1px solid var(--line); }
.apply-step:first-of-type { border-top: 0; padding-top: 0; }
.apply-step:last-child { padding-bottom: 0; }
.apply-summary-compact + .apply-step { border-top: 0; padding-top: 0; }
.step-head { display: flex; align-items: flex-start; gap: var(--space-xs); margin-bottom: var(--space-s); }
.step-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.step-head h3 { margin: 0; font-size: var(--step-2); line-height: 1.2; }
.step-hint { margin: .25em 0 0; color: var(--muted); font-size: var(--step--1); }
.apply-fields { display: grid; gap: var(--space-s); }
.apply-group, .apply-common { display: grid; gap: var(--space-s); }
.apply-form .field, .apply-form .field-row > * { min-width: 0; }
.js .apply-group:not(.is-active) { display: none; }
.apply-empty { display: none; margin: 0 0 var(--space-s); padding: var(--space-xs) var(--space-s); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: var(--step--1); }
.js .apply-empty:not([hidden]) { display: block; }
@media (prefers-reduced-motion: no-preference) { .apply-group.is-revealed { animation: group-in .24s var(--ease) both; } }
@keyframes group-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Type cards */
.type-picker { margin: 0; }
.type-cards { display: grid; gap: var(--space-s); }
@media (min-width: 560px) { .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-card { position: relative; display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-m); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.type-card:hover { transform: translateY(-2px); border-color: var(--teal-400); box-shadow: var(--shadow); }
.type-card:has(.type-input:checked), .type-card.is-selected { border-color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.type-card:has(.type-input:focus-visible) { outline: 3px solid #1E8E93; outline-offset: 3px; }
.type-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.type-label { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: var(--navy); cursor: pointer; }
.type-label::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.type-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong); }
.type-icon svg { width: 24px; height: 24px; }
.type-eyebrow { margin-top: var(--space-3xs); font-size: var(--step--2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-strong); }
.type-check { position: absolute; top: var(--space-s); right: var(--space-s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s var(--ease); }
.type-check svg { width: 16px; height: 16px; stroke-width: 2.6; }
.type-card:has(.type-input:checked) .type-check, .type-card.is-selected .type-check { opacity: 1; transform: none; }
.type-price { margin: 0; color: var(--navy); }
.type-price strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-4); line-height: 1; letter-spacing: -0.01em; }
.type-price span span { display: block; margin-top: 6px; color: var(--muted); font-size: var(--step--1); }
.type-price .when-year { display: none; }
.apply-layout:has(input[name="billing"][value="year"]:checked) .type-price .when-year { display: inline; }
.apply-layout:has(input[name="billing"][value="year"]:checked) .type-price .when-month { display: none; }
.type-facts { margin: var(--space-2xs) 0 0; padding-top: var(--space-xs); border-top: 1px solid var(--line); font-size: var(--step--1); }
.type-card.is-selected .type-facts, .type-card:has(.type-input:checked) .type-facts { border-color: #B5DADB; }

/* Billing and choice controls */
.billing-field { margin: var(--space-s) 0 0; }
.billing-field legend, .choice-group legend { font-weight: 600; color: var(--navy); font-size: var(--step--1); margin-bottom: 8px; padding: 0; }
.billing-switch-form { display: flex; width: 100%; max-width: 26rem; }
.billing-switch-form label { flex: 1; }
.billing-switch-form span { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .4em; min-height: 44px; text-align: center; }
.choice-group { margin: 0; }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option { position: relative; cursor: pointer; }
.pill-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill-option span { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.1em; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: var(--step--1); font-weight: 600; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.pill-option:hover input:not(:checked) + span { border-color: #A7B4C2; }
.pill-option input:checked + span { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-strong); box-shadow: 0 0 0 1px var(--teal); }
.pill-option input:focus-visible + span { outline: 3px solid #1E8E93; outline-offset: 2px; }

/* Summary */
.apply-summary { display: grid; gap: var(--space-s); padding: var(--space-m); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.sum-title { margin: 0; font-weight: 600; color: var(--navy); font-size: var(--step-0); }
.sum-live { display: grid; gap: 4px; }
.sum-audience { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--teal-strong); }
.sum-name { margin: 0; font-family: var(--serif); font-size: var(--step-3); line-height: 1.15; color: var(--navy); }
.sum-price { margin: 0; color: var(--muted); font-size: var(--step--1); }
.sum-price strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-4); line-height: 1.1; color: var(--navy); margin-right: .15em; }
.sum-price [data-sum="unit"] { display: block; margin-top: 4px; }
.sum-list { margin: var(--space-2xs) 0 0; padding-top: var(--space-xs); border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: var(--step--1); }
.sum-list > div { display: flex; justify-content: space-between; gap: 12px; }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.sum-quote { margin: var(--space-2xs) 0 0; padding: .7em .9em; border-radius: var(--radius); background: var(--teal-tint); border: 1px solid #B5DADB; color: var(--teal-strong); font-size: var(--step--1); }
.sum-next { padding-top: var(--space-s); border-top: 1px solid var(--line); }
.sum-subtitle { margin: 0 0 8px; font-weight: 700; color: var(--navy); font-size: var(--step--1); }
.sum-next ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.sum-note { display: flex; align-items: center; gap: .6em; margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--teal-strong); }
.sum-note svg { flex: none; width: 20px; height: 20px; }
.apply-summary-compact { margin-bottom: var(--space-l); padding: var(--space-s); background: var(--bg-soft); box-shadow: none; border-radius: var(--radius-lg); }
.apply-summary-compact .sum-name { font-size: var(--step-2); }

/* Consent and submit */
.apply-submit { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-s); margin-top: var(--space-s); }
.apply-submit .help { margin: 0; color: var(--muted); font-size: var(--step--2); }
@media (max-width: 559px) { .apply-submit .btn { width: 100%; } }
@media (min-width: 1024px) { .apply-summary-compact { display: none; } }
@media (max-width: 1023px) { .apply-summary-aside { display: none; } }

/* About page */
.about-statement { font-family: var(--serif); font-size: var(--step-5); line-height: 1.15; color: var(--navy); max-width: 26ch; margin: 0 0 var(--space-s); }
.about-motto { font-size: var(--step--2); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-strong); margin: 0; }
.about-team { font-size: var(--step-1); gap: var(--space-xs); }
.about-note { margin-top: var(--space-s); }
@media (min-width: 900px) { .about-offer { grid-template-columns: 1fr 1fr; } }
.about-offer .topic-count { justify-self: end; }
.pricing-box p { margin: 0; }


/* Resources listing */
.chip { text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
a.chip:hover { border-color: var(--teal-300); color: #fff; }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-count { opacity: .7; margin-left: .35em; font-variant-numeric: tabular-nums; }
.resources-head .lead { max-width: 60ch; }
.resources-topics { margin-top: var(--space-m); }
.resources-feature { margin-bottom: var(--space-xl); }
.resources-sub { font-size: var(--step-3); margin-bottom: var(--space-m); }
.resources-cta { margin-top: var(--space-xl); margin-bottom: 0; }
.article-card-body { display: flex; flex-direction: column; flex: 1; }
.article-card-body > p { color: var(--muted); margin: 0 0 var(--space-s); }
.article-card-body > p.article-meta { display: flex; flex-wrap: wrap; gap: .3em 1em; font-size: var(--step--2); margin: 0 0 .6em; }
.article-cat { color: var(--teal-strong); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.article-card-body > p.article-foot { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 1em; font-size: var(--step--2); padding-top: var(--space-xs); border-top: 1px solid var(--line); }
.article-go { display: inline-flex; align-items: center; gap: .4em; color: var(--teal-strong); font-weight: 600; }
.article-go svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.article-card:hover .article-go svg { transform: translateX(3px); }
.article-card-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-700), var(--teal-strong)); color: var(--teal-300); }
.article-card-fallback svg { width: 56px; height: 56px; opacity: .7; }
.article-card.is-feature { overflow: hidden; }
.article-card.is-feature .article-card-body { padding: var(--space-m); justify-content: center; }
.article-card.is-feature h2 { font-size: var(--step-4); margin: 0 0 .4em; line-height: 1.15; }
.article-card.is-feature h2 a { color: var(--navy); text-decoration: none; }
.article-card.is-feature h2 a::after { content: ""; position: absolute; inset: 0; }
.article-card.is-feature h2 a:hover { color: var(--teal-strong); }
@media (min-width: 900px) {
  .article-card.is-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .article-card.is-feature .article-card-media { aspect-ratio: auto; min-height: 100%; }
  .article-card.is-feature .article-card-body { padding: var(--space-l); }
}

/* Resource article */
.article-hero { padding-bottom: calc(var(--space-l) * 2); }
.article-hero .eyebrow { color: var(--teal-300); }
.article-hero h1 { max-width: 28ch; }
.article-hero .lead { max-width: 64ch; margin-top: .4em; }
.article-byline { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin: var(--space-s) 0 0; font-size: var(--step--1); color: var(--on-dark-muted); }
.article-wrap { padding-bottom: var(--space-xl); }
.article-cover { margin: calc(var(--space-l) * -1) 0 var(--space-l); aspect-ratio: 21 / 9; box-shadow: var(--shadow-lift); z-index: 1; }
.article-layout { display: grid; gap: var(--space-l); }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 68ch) minmax(240px, 300px); justify-content: space-between; gap: var(--space-xl); }
  .article-aside { position: sticky; top: calc(var(--header-h) + var(--space-s)); }
}
@media (max-width: 1023px) {
  .article-aside { order: -1; }
  .article-promo { display: none; }
}
.article-aside { display: grid; gap: var(--space-s); align-content: start; align-self: start; }
.article-toc, .article-promo { padding: var(--space-s); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.article-promo { background: var(--teal-tint); border-color: #D3E6E7; }
.article-toc-title { font-size: var(--step--2); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7em; }
.article-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; font-size: var(--step--1); counter-reset: toc; }
.article-toc li { counter-increment: toc; display: grid; grid-template-columns: 2em 1fr; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--teal); font-variant-numeric: tabular-nums; font-size: .85em; padding-top: .15em; }
.article-toc a { color: var(--navy); text-decoration: none; }
.article-toc ol.is-numbered li { grid-template-columns: 1fr; }
.article-toc ol.is-numbered li::before { content: none; }
.article-toc a:hover { color: var(--teal-strong); text-decoration: underline; }
.article-promo p { margin: 0 0 .5em; }
.article-promo-course { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); text-decoration: none; line-height: 1.2; }
.article-promo-course:hover { color: var(--teal-strong); }
.article-body h2 { scroll-margin-top: calc(var(--header-h) + var(--space-s)); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-top: var(--space-l); padding-top: var(--space-s); border-top: 1px solid var(--line); }
.article-share .article-share-label { margin: 0 .5em 0 0; font-weight: 600; color: var(--navy); font-size: var(--step--1); }
.chip-light { display: inline-flex; padding: .4em .95em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--navy); font-size: var(--step--1); text-decoration: none; transition: border-color .2s, color .2s; }
.chip-light:hover { border-color: var(--teal); color: var(--teal-strong); }


/* Contact page */
.contact-layout { display: grid; gap: var(--space-l); align-items: start; margin-bottom: var(--space-xl); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--space-xl); } }
.contact-fields { display: grid; gap: var(--space-s); margin-top: var(--space-s); }
.contact-fields input, .contact-fields select, .contact-fields textarea { width: 100%; }
.contact-side { display: grid; gap: var(--space-xs); }
.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-s); align-items: start; padding: var(--space-s); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); }
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-family: var(--font); font-size: var(--step--2); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.contact-card > div > a:first-of-type, .contact-strong { display: inline-block; font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; color: var(--navy); text-decoration: none; margin: 0; overflow-wrap: anywhere; }
.contact-card > div > a:first-of-type:hover { color: var(--teal-strong); }
.contact-card p.small { margin: 4px 0 0; }
.contact-done { text-align: left; }
.contact-done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: var(--space-s); }
.contact-done-icon svg { width: 24px; height: 24px; }
.contact-done p { margin: 0 0 .6em; }
.contact-quick { margin-bottom: var(--space-xl); }
/* Article content components (SEO / AEO) */
.answer-box { background: var(--teal-tint); border: 1px solid #B5DADB; border-left: 4px solid var(--teal); border-radius: var(--radius-lg); padding: var(--space-s) var(--space-m); margin: 0 0 var(--space-l); }
.answer-box p { margin: 0 0 .6em; color: var(--ink); }
.answer-box ul { margin: 0; padding-left: 1.2em; }
.answer-box li + li { margin-top: .3em; }
.article-cta { background: var(--navy-800); color: var(--on-dark); border-radius: var(--radius-lg); padding: var(--space-m); margin: var(--space-l) 0; }
.article-cta p { margin: 0 0 .5em; color: var(--on-dark); }
.article-cta p:last-child { margin: 0; }
.article-cta strong { color: #fff; }
.article-cta a { color: var(--teal-300); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: var(--space-s) 0 var(--space-m); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .65em .8em; text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg-soft); color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; } }
.article-faq { margin-top: var(--space-l); }
.article-faq h2 { scroll-margin-top: calc(var(--header-h) + var(--space-s)); }
/* Course panel: format switch and always-visible register button */
.format-switch { display: flex; gap: 4px; padding: 4px; margin: 0 0 var(--space-xs); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; }
.format-switch label { flex: 1; position: relative; cursor: pointer; }
.format-switch input { position: absolute; opacity: 0; pointer-events: none; }
.format-switch span { display: block; text-align: center; padding: .5em .8em; border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.format-switch input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(10,22,40,.08), 0 4px 12px -6px rgba(10,22,40,.25); }
.format-switch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.intake-option[hidden] { display: none; }
@media (min-width: 1000px) {
  .course-panel { display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - var(--space-s) * 2); }
  .course-panel .intake-options { flex: 0 1 auto; min-height: 96px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; margin-left: -2px; }
  .course-panel .panel-summary, .course-panel [data-panel-cta], .course-panel .panel-note { flex: none; }
}
.course-panel .intake-option { padding: 10px 12px; }
.course-panel .intake-option > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
.course-panel .intake-option > div > span:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.course-panel .intake-option > div > span:last-child .pill { margin: 0; }
.course-panel .panel-summary { gap: 6px; }
@media (min-width: 1000px) and (max-height: 860px) {
  .course-panel { padding: var(--space-s); }
  .course-panel .intake-options { min-height: 150px; }
  .course-panel .panel-summary div:nth-child(2) { display: none; }
  .course-panel .panel-note { display: none; }
}
/* ---------- Homepage on phones ---------- */
.home-stickybar { display: none; }
@media (max-width: 699px) {
  .home .section { padding-block: var(--space-l); }
  /* Hero */
  .hero { min-height: 0; padding-top: var(--space-s); }
  .hero-copy { padding-top: var(--space-s); }
  .hero h1 { font-size: clamp(1.8rem, 7.4vw, 2.25rem); line-height: 1.1; text-wrap: balance; }
  .hero h1 .hl { display: inline; white-space: normal; }
  .hero .lead { max-width: none; font-size: var(--step-0); margin: var(--space-s) 0 var(--space-m); text-wrap: pretty; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: var(--space-2xs); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { margin-top: var(--space-m); }
  .hero-visual { display: none; }
  .next-intake { margin-top: var(--space-m); }
  /* Upcoming courses: swipe */
  .home-upcoming .grid-3 { display: flex; gap: var(--space-xs); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--space-s); scrollbar-width: none; }
  .home-upcoming .grid-3::-webkit-scrollbar { display: none; }
  .home-upcoming .grid-3 > * { flex: 0 0 84%; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .home-upcoming .course-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .home-upcoming .section-head-row .btn { display: none; }
  .home-upcoming .section-cta { margin-top: var(--space-s); }
  .home-upcoming .section-cta .btn { width: 100%; justify-content: center; }
  /* Topics */
  .home-topics .topic-card { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-s); padding: var(--space-s); }
  .home-topics .topic-icon { width: 44px; align-self: start; }
  .home-topics .topic-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .home-topics .topic-count { padding-top: var(--space-2xs); }
  /* Why Elmenta */
  .why { gap: var(--space-m); }
  .why-media img { aspect-ratio: 16 / 9; }
  .why-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-s); padding: var(--space-s) 0; }
  .why-list .icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .why-list .icon svg { width: 20px; height: 20px; }
  .why-list h3 { font-size: var(--step-1); margin: .35em 0 .25em; }
  /* How registration works */
  .home-how .steps { gap: var(--space-s); }
  .home-how .steps li { padding-left: calc(44px + var(--space-s)); }
  .home-how .steps li::before { width: 44px; height: 44px; }
  .home-how .steps li::after { left: 22px; top: 44px; bottom: calc(var(--space-s) * -1); }
  .home-how .steps strong { font-size: var(--step-1); padding-top: .45em; }
  /* Mentorship */
  .home-mentor .btn { width: 100%; justify-content: center; }
  .mentor-points { padding: var(--space-2xs) var(--space-s); }
  .mentor-points li { font-size: var(--step-0); }
  /* Sticky bar */
  .home-stickybar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(7,16,31,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.08); transform: translateY(110%); transition: transform .35s var(--ease); }
  .home-stickybar .btn { justify-content: center; padding: 11px 12px; font-size: var(--step--1); }
  .home-stickybar.is-on { transform: none; }
}
@media (max-width: 699px) {
  .home-upcoming .course-card .facts { column-gap: var(--space-xs); }
  .home-upcoming .course-card .facts dd { white-space: normal; overflow-wrap: anywhere; font-size: var(--step--1); line-height: 1.3; }
}
/* ---------- Course catalogue filters ---------- */
.topic-chips, .filters-toggle { display: none; }
@media (max-width: 699px) {
  .topic-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) var(--space-xs); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .topic-chips::-webkit-scrollbar { display: none; }
  .topic-chips a { flex: none; white-space: nowrap; padding: .5em 1em; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--navy); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
  .topic-chips a.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
  [class*="catalogue-"] .filters-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs); align-items: end; padding: var(--space-xs); }
  .filters-bar .field-search { order: 1; }
  .filters-bar .field-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .filters-toggle { order: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
  .filters-toggle svg { width: 18px; height: 18px; }
  .filters-toggle[aria-expanded="true"] { border-color: var(--teal); color: var(--teal-strong); }
  .filters-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; }
  .filters-bar .field:not(.field-search), .filters-bar .filters-bar-actions { order: 3; grid-column: 1 / -1; display: none; }
  .filters-bar.is-open .field:not(.field-search) { display: grid; }
  .filters-bar.is-open .filters-bar-actions { display: flex; }
  .filters-bar.has-chips .field-topic { display: none !important; }
  .filters-bar-actions .btn { flex: 1; justify-content: center; }
  .results-head { margin-top: var(--space-xs); }
}
@media (max-width: 699px) {
  [class*="catalogue-"] .filters-bar { align-items: center; }
  .filters-bar .field-search { display: block; margin: 0; align-self: center; }
  .filters-bar .field-search input { height: 48px; margin: 0; }
  .filters-toggle { height: 48px; min-height: 48px; margin: 0; align-self: center; box-sizing: border-box; }
}
/* WhatsApp quick enquiry button */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 600; font-size: var(--step--1); text-decoration: none; box-shadow: 0 10px 24px -8px rgba(7,16,31,.45), 0 2px 6px rgba(7,16,31,.18); transition: transform .25s var(--ease), box-shadow .25s var(--ease), bottom .3s var(--ease); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 30px -10px rgba(7,16,31,.5), 0 2px 6px rgba(7,16,31,.2); }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #128C7E; }
@media (max-width: 699px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body:has(.mobile-bar) .wa-float, body:has(.home-stickybar.is-on) .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media print { .wa-float { display: none; } }
@media (min-width: 1000px) {
  body.single-elmenta_course .course-panel { max-height: calc(100vh - var(--header-h) - var(--space-s) * 2 - 76px); }
  body.single-elmenta_course .wa-float { width: 56px; padding: 0; justify-content: center; }
  body.single-elmenta_course .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
