/* CEJ Experts v13 — base layer.
   Locked brand tokens (Brand Guidelines v1.0):
   Paper #F7F9FC · Ink #0B1220 · Accent #2F6BE4 · Accent-2 #A8C0E8 · Poppins.
   Scale: display 64/700 · h1 48/700 · h2 36/600 · h3 28/600 ·
   body_l 20/400 · body 16/400 · caption 13/500. */

:root {
  --paper: #F7F9FC;
  --ink: #0B1220;
  --accent: #2F6BE4;
  --accent-2: #A8C0E8;
  --line: rgb(11 18 32 / 0.12);
  --white-card: #ffffff;
  --font-brand: "Poppins", "Segoe UI", sans-serif;
  --frame: 75rem;
  --radius: 14px;
}

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

html,
body { margin: 0; overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 1rem;              /* body — 16px / 400 */
  line-height: 1.7;
}

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

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

/* The single content rail: a var(--frame) (1200px) content box, centered,
   with 1.5rem gutters on smaller screens. Plain Elementor containers and
   nested containers are forced onto this exact geometry at the bottom of
   this file — every section on every page shares one left edge. */
.wrap {
  max-width: calc(var(--frame) + 3rem);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }   /* h1 — 48px cap */
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 600; }  /* h2 — 36px / 600 */
h3 { font-size: 1.75rem; font-weight: 600; }     /* h3 — 28px / 600 */

/* Even between-section rhythm: two adjacent .section blocks produce
   ~96-104px of air, and a .section next to a plain container stays under
   that. Doubled-up padding at section seams is what read as dead space. */
.section { padding: clamp(2.5rem, 5vh, 3.25rem) 0; }

.section-lede {
  font-size: 1.25rem;           /* body_l — 20px */
  line-height: 1.65;
  color: rgb(11 18 32 / 0.75);
  max-width: 44rem;
  margin: 0 0 2.25rem;
}

.content { max-width: 46rem; }
.content p { margin: 0 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  transition: transform 160ms ease, background 160ms ease;
}

.btn:hover { transform: translateY(-2px); background: #2459c4; color: #fff; }

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

.btn-quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-small { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* Core Elementor buttons inherit the theme .btn look (locked accent). */
.elementor-button {
  display: inline-block;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  transition: transform 160ms ease, background 160ms ease;
}

.elementor-button:hover,
.elementor-button:focus { transform: translateY(-2px); background: #2459c4; color: #fff; }

/* ---------- Eyebrow (caption 13px / 500) ---------- */
.eyebrow {
  font-size: 0.8125rem;               /* caption — 13px / 500 */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.eyebrow-light { color: var(--accent-2); }

.page-banner .eyebrow { color: var(--accent-2); }

/* Core Elementor headings follow theme ink (the Elementor kit defaults them to blue).
   Scoped to h1-h4 titles so p-tag eyebrow headings keep .eyebrow styling. */
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title,
.elementor-widget-heading h3.elementor-heading-title,
.elementor-widget-heading h4.elementor-heading-title { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

body.admin-bar .site-header { top: 32px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand img { height: 52px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.75rem 0;
  background: var(--ink);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  color: rgb(247 249 252 / 0.6);
  max-width: 26rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-cookie-preferences {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover,
.footer-cookie-preferences:hover { color: var(--paper); }

.site-footer small { color: rgb(247 249 252 / 0.6); font-size: 0.8125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }

  .nav,
  .header-cta { display: none; }

  .header-inner.is-open { flex-wrap: wrap; }

  .header-inner.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 4;
    padding-bottom: 0.75rem;
  }

  .header-inner.is-open .nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner.is-open .header-cta { display: inline-block; order: 5; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Homepage (university-catalogue layout) ---------- */
.hero:not(.hero-split) {
  background-size: cover;
  background-position: center;
  color: var(--paper);
}

.hero-inner {
  padding-top: clamp(4rem, 14vh, 8rem);
  padding-bottom: clamp(4rem, 14vh, 8rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);  /* display — 64px / 700 */
  font-weight: 700;
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

.hero:not(.hero-split) h1 .accent { color: var(--accent-2); }

.hero:not(.hero-split) .lede {
  font-size: 1.25rem;                     /* body_l — 20px */
  line-height: 1.6;
  color: var(--accent-2);
  max-width: 36rem;
  margin: 0 0 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0; }

.hero:not(.hero-split) .btn-hero-quiet {
  background: transparent;
  color: var(--paper);
  border-color: rgb(247 249 252 / 0.6);
}

.hero:not(.hero-split) .btn-hero-quiet:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* USP trio */
.usp-band {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.usp h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.usp p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: rgb(247 249 252 / 0.85); }

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white-card);
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.category-tabs a:hover { border-color: var(--accent); color: var(--accent); }

.category-icon { width: 22px; height: 22px; flex: none; }

.category-icon svg { display: block; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; }

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: var(--white-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-media {
  position: relative;
  display: block;
  aspect-ratio: 900 / 640;
  overflow: hidden;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
}

.course-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.course-instructor {
  margin: 0;
  font-size: 0.8125rem;                   /* caption — 13px / 500 */
  font-weight: 500;
  color: rgb(11 18 32 / 0.6);
}

.course-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.course-body h3 a { color: var(--ink); text-decoration: none; }
.course-body h3 a:hover { color: var(--accent); }

.course-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(11 18 32 / 0.72);
}

.course-meta {
  margin: auto 0 0;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;                   /* caption */
  font-weight: 500;
  color: rgb(11 18 32 / 0.6);
}

/* Compact homepage cards (template-style) — opt-in via the widget's
   "Compact cards" switch so inner pages keep the roomy card. */
.course-grid-compact .course-body { padding: 1rem 1.1rem 1.15rem; gap: 0.4rem; }

.course-grid-compact .course-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-grid-compact .course-summary { display: none; }

.course-grid-compact .course-instructor { font-size: 0.78rem; }

.course-grid-compact .course-meta {
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  justify-content: center;
}

.course-grid-compact .course-card { transition: border-color 0.18s ease; }

.course-grid-compact .course-card:hover { border-color: var(--accent); }

/* CTA pair — two open columns with a thin divider (template style). */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.cta-panel + .cta-panel {
  border-left: 1px solid var(--line);
  padding-left: clamp(2.5rem, 6vw, 4.5rem);
}

.cta-panel h3 { margin-bottom: 0.5rem; }
.cta-panel p { margin: 0 0 1.5rem; color: rgb(11 18 32 / 0.72); font-size: 0.95rem; }

.cta-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--ink);
}

.cta-icon svg { display: block; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; }

@media (max-width: 760px) {
  .cta-panel + .cta-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 2.5rem 0 0;
  }
}

/* Newsletter band */
.newsletter-band {
  background: var(--accent);
  color: #fff;
  padding: 3.5rem 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-band h2 { color: #fff; margin-bottom: 0.35rem; }
.newsletter-band p { margin: 0; color: rgb(247 249 252 / 0.85); }

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  min-width: min(20rem, 100%);
  color: var(--ink);
}

.newsletter-form .btn {
  background: var(--ink);
  border-color: var(--ink);
}

.newsletter-form .btn:hover { background: #1a2540; }

.newsletter-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-status { color: #fff; font-weight: 500; margin: 1rem 0 0; }

.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Homepage responsive */
@media (max-width: 760px) {
  .usp-grid,
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .course-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ---------- Page banner + course detail ---------- */
.page-banner {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 9vh, 5.5rem) 0;
}

.page-banner h1 {
  color: var(--paper);
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.page-banner p {
  color: var(--accent-2);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgb(247 249 252 / 0.4);
  color: var(--accent-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.chip:hover { border-color: var(--accent-2); color: var(--paper); }

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

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.course-side {
  background: var(--white-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 6rem;
}

.course-side img {
  width: 100%;
  aspect-ratio: 900 / 640;
  object-fit: cover;
  display: block;
}

.course-side-body { padding: 1.4rem 1.5rem 1.6rem; }

.side-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
}

.side-row strong { font-weight: 600; }
.side-row span { color: rgb(11 18 32 / 0.7); text-align: right; }

.side-note {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  color: rgb(11 18 32 / 0.6);
}

.course-cta {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
}

@media (max-width: 860px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-side { position: static; }
}

/* ---------- Contact form ---------- */
.contact-form-card {
  background: var(--white-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 46rem;
}

.contact-form-card h2 { margin-bottom: 0.5rem; }

.contact-form-intro {
  margin: 0 0 1.75rem;
  color: rgb(11 18 32 / 0.72);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}

.contact-form .field-full { grid-column: 1 / -1; }

.contact-form p { margin: 0; }

.contact-form .consent label { margin: 0; font-weight: 400; }

.contact-form label {
  display: block;
  font-size: 0.8125rem;                 /* caption — 13px / 500 */
  font-weight: 500;
  color: rgb(11 18 32 / 0.75);
  margin: 0 0 0.4rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 9rem; resize: vertical; }

.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgb(11 18 32 / 0.72);
}

.contact-form .consent input { margin-top: 0.3rem; }

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-submit { grid-column: 1 / -1; margin: 0.25rem 0 0; }

.contact-form .form-submit .btn { cursor: pointer; font-family: inherit; }

.contact-status {
  max-width: 46rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--white-card);
  border: 1px solid var(--line);
}

.contact-status.is-success { border-color: var(--accent); color: var(--accent); }
.contact-status.is-error { border-color: #c43d3d; color: #c43d3d; }

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* Cookie consent banner (ported from v12, mapped onto v13 tokens). */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(760px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid rgba(168, 192, 232, 0.42);
  border-radius: 18px;
  color: #fff;
  background: rgba(11, 18, 32, 0.97);
  box-shadow: 0 24px 70px rgba(2, 8, 20, 0.34);
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-copy { display: grid; gap: 6px; }

.cookie-banner-copy strong { font-family: var(--font-brand); font-size: 18px; }

.cookie-banner-copy p { margin: 0; color: var(--accent-2); font-size: 14px; line-height: 1.55; }

.cookie-banner-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner-actions { display: flex; gap: 10px; }

.cookie-banner-actions .btn { white-space: nowrap; }

.cookie-banner .btn-quiet { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.cookie-banner .btn-quiet:hover { background: #fff; color: var(--ink); border-color: #fff; }

.footer-cookie-preferences {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    padding: 18px;
  }

  .cookie-banner-actions { display: grid; grid-template-columns: 1fr; }

  .cookie-banner-actions .btn { width: 100%; }
}

/* Homepage router, founding line, Compass strip, audience, teams (design brief §3). */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.route-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.route-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgb(11 18 32 / 0.10);
}

.route-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.route-question { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }

.route-gets { color: rgb(11 18 32 / 0.72); font-size: 0.95rem; line-height: 1.55; }

.route-proof { margin-top: 0.35rem; color: rgb(11 18 32 / 0.72); font-size: 0.82rem; line-height: 1.5; }

.founding-line { border-top: 1px solid var(--line); }

.founding-inner { max-width: 52rem; }

.founding-inner p {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.section-dark { background: var(--ink); color: var(--paper); }

.compass-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.compass-copy h2 { margin: 0 0 1rem; color: var(--paper); }

.compass-copy > p { margin: 0 0 1.75rem; color: var(--accent-2); line-height: 1.65; }

.destination-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.destination-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(168 192 232 / 0.25);
  border-radius: 10px;
}

.destination-name { font-weight: 600; color: var(--paper); }

.destination-exam { color: var(--accent-2); font-size: 0.9rem; }

.destination-status { margin-left: auto; color: var(--accent-2); font-size: 0.8rem; font-style: italic; }

.compass-media { margin: 0; }

.compass-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(168 192 232 / 0.25);
  border-radius: var(--radius);
}

.compass-route {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgb(168 192 232 / 0.28);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 100% 0%, rgb(39 111 242 / 0.22), transparent 42%),
    rgb(255 255 255 / 0.035);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.18);
}

.compass-route-label {
  margin: 0 0 1.5rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.compass-route-list {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: compass-route;
}

.compass-route-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.compass-route-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.55rem;
  bottom: -1.1rem;
  left: 1.13rem;
  width: 1px;
  background: linear-gradient(var(--accent), rgb(168 192 232 / 0.16));
}

.compass-route-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgb(125 181 255 / 0.75);
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.compass-route h3 {
  margin: 0 0 0.35rem;
  color: var(--paper);
  font-size: 1.08rem;
}

.compass-route-list p {
  margin: 0;
  color: rgb(220 232 252 / 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
}

.audience-heading { margin: 0 0 2rem; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.audience-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-card);
}

.audience-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 600; }

.audience-card p { margin: 0; color: rgb(11 18 32 / 0.72); font-size: 0.92rem; line-height: 1.55; }

.teams-block { background: var(--white-card); }

.teams-inner { max-width: 52rem; }

.teams-inner h2 { margin: 0 0 1rem; }

.teams-inner p { margin: 0 0 1.75rem; color: rgb(11 18 32 / 0.72); line-height: 1.65; }

@media (max-width: 900px) {
  .route-grid { grid-template-columns: 1fr; }
  .compass-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Insights (ported from v12 onto v13 tokens). */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.insight-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-card);
  overflow: hidden;
}

.insight-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Date badge overlapping the card image (template style). */
.insight-media { position: relative; }

.insight-media .insight-card-date {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--white-card);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(11 18 32 / 0.08);
}

.insight-card-body { padding: 1.25rem 1.5rem 1.5rem; }

.insight-card-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }

.insight-card-body h3 a { color: var(--ink); text-decoration: none; }

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

.insight-card-body p { margin: 0 0 0.75rem; color: rgb(11 18 32 / 0.72); font-size: 0.92rem; line-height: 1.55; }

.insight-card-date { color: rgb(11 18 32 / 0.72); font-size: 0.8rem; }

.article-hero { text-align: left; }

.article-hero .article-meta { color: var(--accent-2); font-size: 0.9rem; }

.article-image { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.5rem 0; }

.article-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.article-content { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; line-height: 1.75; }

.article-back { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem 3.5rem; }

/* Single course marketing layout (MasterStudy-style, CEJ tokens). */
.course-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--accent-2);
  font-size: 0.92rem;
}

.course-facts-row li { display: flex; align-items: center; gap: 0.4rem; }

.course-facts-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.course-block { margin-bottom: 3rem; }

.course-block h2 { margin: 0 0 1.25rem; }

.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-grid li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.55;
}

.learn-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: none;
}

.learn-grid li::after {
  content: "";
  position: absolute;
  left: 0.31rem;
  top: 0.55rem;
  width: 0.36rem;
  height: 0.2rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.module-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cej-module;
}

.module-list li {
  counter-increment: cej-module;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.25rem 1rem 3.5rem;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white-card);
}

.module-list li::before {
  content: counter(cej-module, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.module-list li span { color: rgb(11 18 32 / 0.72); font-size: 0.92rem; line-height: 1.5; }

.audience-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.55;
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-2);
}

div.course-instructor { border-top: 1px solid var(--line); padding-top: 2rem; }

.instructor-name { margin: 0; font-size: 1.15rem; font-weight: 600; }

.instructor-role { margin: 0.35rem 0 0; color: rgb(11 18 32 / 0.72); }

.course-side-sticky { position: sticky; top: 5.5rem; }

.course-side .course-cta { width: 100%; text-align: center; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .learn-grid { grid-template-columns: 1fr; }
  .course-side-sticky { position: static; }
}

/* Video feature (click-to-play, no autoplay). */
.video-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.video-feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-feature-media img,
.video-feature-media iframe,
.video-feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-feature-media iframe,
.video-feature-media video { position: absolute; inset: 0; }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: rgb(11 18 32 / 0.15);
  cursor: pointer;
  transition: background 0.18s ease;
}

.video-play:hover { background: rgb(11 18 32 / 0.3); }

.video-play span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  transition: transform 0.18s ease;
}

.video-play:hover span { transform: scale(1.08); }

.video-play span::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 21px;
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.video-feature-copy h2 { margin: 0 0 1rem; }

.video-feature-copy p { margin: 0 0 1.75rem; color: rgb(11 18 32 / 0.72); line-height: 1.65; }

@media (max-width: 900px) {
  .video-feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Loop carousel for course rails (transform-only, pauses on hover). */
.course-loop { overflow: hidden; }

.course-loop-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: cej-course-loop 36s linear infinite;
}

.course-loop:hover .course-loop-track,
.course-loop:focus-within .course-loop-track { animation-play-state: paused; }

.course-loop-track .course-card { width: 260px; flex: none; }

.course-loop-dup { display: contents; }

@keyframes cej-course-loop {
  to { transform: translateX(calc(-50% - 0.75rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .course-loop { overflow-x: auto; }
  .course-loop-track { animation: none; }
}

/* Insights rail heading row. */
.insights-rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.insights-rail-head h2 { margin: 0; }

.insights-rail-head .section-lede { margin-bottom: 0; }

.insights-rail-head .btn { flex: none; }

@media (max-width: 720px) {
  .insights-rail-head { flex-direction: column; align-items: flex-start; }
}

/* Hero: background video layer, overlay, draw-once swash underline. */
.hero { position: relative; overflow: hidden; }

.hero:not(.hero-split) .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero:not(.hero-split) .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(11 18 32 / 0.88) 0%, rgb(11 18 32 / 0.55) 55%, rgb(11 18 32 / 0.25) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 .accent { position: relative; display: inline-block; }

.hero h1 .swash {
  position: absolute;
  left: -3%;
  bottom: -0.3em;
  width: 106%;
  height: 0.34em;
  overflow: visible;
}

.hero h1 .swash path {
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: cej-swash-draw 0.9s ease-out 0.6s forwards;
}

@keyframes cej-swash-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .swash path { animation: none; stroke-dashoffset: 0; }
  .hero-bg-video { display: none; }
}

/* ==========================================================================
   Homepage restyle (ui-restyle-spec.md) — MasterStudy layout language,
   CEJ tokens only. Appended layer; legacy rules above stay scoped to
   .hero:not(.hero-split) so inner pages keep their look.
   ========================================================================== */

/* Section background utilities — applied to Elementor container wrappers
   on the homepage canvas so bands alternate white / paper / ink. */
.cej-band-white { background: var(--white-card); }

.cej-band-ink { background: var(--ink); }

/* Centered section headers (categories, course grids, testimonials). */
.section-head-center { text-align: center; }

.section-head-center .section-lede { margin-left: auto; margin-right: auto; }

/* Pill buttons (homepage only — global .btn keeps its 10px radius). */
.btn-pill,
.btn-pill.elementor-button { border-radius: 999px; }

/* Split hero: bright, copy left / photo right on white. */
.hero-split { background: var(--white-card); color: var(--ink); }

.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3.5rem, 10vh, 6.5rem);
  padding-bottom: clamp(3.5rem, 10vh, 6.5rem);
}

.hero-split h1 { color: var(--ink); }

.hero-split h1 .accent { color: var(--accent); }  /* accent-2 fails AA on light bg */

.hero-split .lede {
  font-size: 1.25rem;                     /* body_l — 20px */
  line-height: 1.6;
  color: rgb(11 18 32 / 0.75);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 70% center;  /* keeps the subject's head in frame */
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* Testimonials (new widget — placeholder content until real, consented
   quotes exist; never launch with placeholders). */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--white-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  margin: 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.testimonial-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-avatar-mono {
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.4rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgb(11 18 32 / 0.75);
}

.testimonial-card figcaption { display: grid; gap: 0.15rem; }

.testimonial-name { font-weight: 600; font-size: 1rem; }

.testimonial-role { font-size: 0.8125rem; color: rgb(11 18 32 / 0.6); }

.testimonial-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px dashed var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* Visible focus state on homepage interactive pills/cards. */
.category-tabs a:focus-visible,
.route-card:focus-visible,
.insight-card a:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   One content rail — Elementor reconciliation layer.
   Every section's content resolves to the same rail: a var(--frame) (1200px)
   content box, centered, with 1.5rem gutters. CEJ widget sections own the
   rail via .wrap; the rules below force plain and nested Elementor
   containers onto the identical geometry, and normalize the vertical seams.
   ========================================================================== */

/* Plain Elementor containers (core widgets): boxed onto the rail — outer
   box = frame + 2 gutters, padding = the gutter, so the content box lands
   on exactly the same left edge and max width as .wrap.
   Opt-out: top-level containers carrying .cej-band are full-bleed bands
   (tinted heroes, white/paper section bands) whose own Elementor padding,
   boxed inners, and card padding apply untouched. */
.elementor > .e-con-full:not(:has(.wrap)):not(.cej-band) {
  width: auto !important;
  max-width: calc(var(--frame) + 3rem) !important;
  margin-inline: auto !important;
  left: auto !important;
  right: auto !important;
  padding-inline: 1.5rem !important;
  padding-block: 1.25rem;
}

/* CEJ widget sections carry their own .wrap and section padding, so their
   host containers stay full-bleed with zero Elementor padding — dark bands
   and heroes reach the screen edge, and nothing doubles up at the seams.
   Band sections embedding a CEJ widget (e.g. cej-newsletter's inner .wrap)
   keep their own padding via the .cej-band opt-out. */
.elementor > .e-con-full:has(.wrap):not(.cej-band) { padding: 0 !important; }

/* Nested Elementor containers (e.g. e-con-boxed groups inside a railed
   parent) must not re-apply the kit content width, center themselves, or
   add their own gutters — they inherit the rail from their parent.
   Containers inside a .cej-band section keep their Elementor geometry. */
.elementor .e-con .e-con:not(.cej-band *) {
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

/* Dead-space killers: empty containers and spacer/icon-only containers
   render nothing but gap, so they are removed from the flow. Containers
   with real content (headings, text, media, forms, lists, buttons) stay. */
.elementor > .e-con-full:not(:has(.wrap)):not(.cej-band):empty,
.elementor > .e-con-full:not(:has(.wrap)):not(.cej-band):not(:has(h1,h2,h3,h4,h5,h6,p,img,form,ul,ol,table,video,.elementor-button,.btn)) { display: none; }

/* Band grid cards: pin a trailing child container (card footers such as
   "Included in every track" / route links) to the card bottom so footers
   align across a row of equal-height cards, matching the card pattern. */
.cej-band .e-grid > .e-con > .e-con:last-child { margin-block-start: auto; }

/* Course page banner: light and contained (MasterStudy course-page reference),
   not a full dark band. Ink-on-paper per the brand combinations. */
.single-cej_course .course-banner {
  background: transparent;
  color: var(--ink);
  padding: clamp(2.5rem, 6vh, 4rem) 0 0;
}

.single-cej_course .course-banner h1 { color: var(--ink); }

.single-cej_course .course-banner > .wrap > p { color: rgb(11 18 32 / 0.72); max-width: 60ch; }

.single-cej_course .course-banner .chip {
  border-color: var(--accent);
  color: var(--accent);
}

.single-cej_course .course-banner .chip-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.single-cej_course .course-facts-row { color: rgb(11 18 32 / 0.72); }

/* ---------- Critique fixes (2026-08-19) ---------- */

/* Reduced-motion: beat .hero-media video specificity so the hero video stops. */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg-video { display: none; }
}

/* Contrast: cookie banner link on Ink (Accent-2 = 10.1:1, was Accent 3.87:1). */
.cookie-banner-copy a { color: var(--accent-2); }

/* Contrast: newsletter lede to full Paper (4.6:1, was 0.85 alpha 3.96:1). */
.newsletter-band p { color: rgb(247 249 252 / 1); }

/* Touch targets: mobile nav links and footer links meet 44px. */
@media (max-width: 860px) {
  .header-inner.is-open .nav a { display: block; padding: 12px 0; }
}

.site-footer nav a,
.footer-cookie-preferences { display: inline-block; padding: 10px 2px; }

.menu-toggle { min-height: 44px; }

/* Focus-visible everywhere interactive, not just cards. */
.site-header a:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.elementor-button:focus-visible,
.site-footer a:focus-visible,
.footer-cookie-preferences:focus-visible,
.destination-list a:focus-visible,
.video-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Compass rows: status wraps consistently on narrow screens. */
@media (max-width: 720px) {
  .destination-status { margin-left: 0; flex-basis: 100%; }
}

/* Lone course: wide feature card instead of one card in an empty grid. */
.section-courses-single .course-grid { display: block; }

.section-courses-single .course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  max-width: 46rem;
  margin-inline: auto;
}

.section-courses-single .course-media img { height: 100%; object-fit: cover; }

@media (max-width: 720px) {
  .section-courses-single .course-card { grid-template-columns: 1fr; }
}

/* Course instructor heading matches sibling h2s. */
.course-instructor h2 { color: var(--ink); }

/* ==========================================================================
   cej-nacc — numbered accordion (Compass page + UK ORE/LDS guide).
   Mock-faithful restyle of the core Elementor accordion widget: CSS-counter
   numbers (titles stay plain editable text), right-side circle +/× button,
   hairline row borders, body text indented under the question. Scoped to
   .cej-nacc so no other accordion on the site changes.
   ========================================================================== */

.cej-nacc .elementor-accordion { counter-reset: cej-nacc; }

.cej-nacc .elementor-accordion-item {
  background: #fff;
  border: none !important;
  border-bottom: 1px solid #DDE4F0 !important;
}

.cej-nacc .elementor-accordion-item:first-child { border-top: 1px solid #DDE4F0 !important; }

.cej-nacc .elementor-tab-title {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 24px !important;
  counter-increment: cej-nacc;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
}

/* Number column: 01..0N via CSS counter, 48px wide, 16px/600 Accent-2. */
.cej-nacc .elementor-tab-title::before {
  content: counter(cej-nacc, decimal-leading-zero);
  flex: none;
  width: 48px;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-2);
}

/* Default Elementor icon (left) is replaced by the circle treatment. */
.cej-nacc .elementor-accordion-icon { display: none !important; }

.cej-nacc .elementor-tab-title .elementor-accordion-title {
  flex: 1;
  font-family: var(--font-brand);
  font-size: clamp(19px, 2.6vw, 24px) !important;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink) !important;
}

/* Compass page (post 4): its approved mock caps the accordion question
   size at 26px (compass-mock-v1.html .nacc .q), whereas the destination
   guide pages (57/63/65/66) cap at 24px (uk-ore-lds-mock-v2.html).
   Elementor's per-post CSS (font-size:20px) has higher specificity than
   the base .cej-nacc rule, so the mock values are enforced here with
   !important — this is what makes the live accordion match each mock. */
body.page-id-4 .cej-nacc .elementor-accordion-title,
body.page-id-4 .cej-nacc .elementor-tab-title .elementor-accordion-title {
  font-size: clamp(19px, 2.6vw, 26px) !important;
}

/* Circle +/× button on the right. */
.cej-nacc .elementor-tab-title::after {
  content: "+";
  flex: none;
  width: 40px;
  height: 40px;
  border: 2px solid #DDE4F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.cej-nacc .elementor-tab-title.elementor-active::after {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: rotate(45deg);
}

/* Body text aligns under the question: 24px row padding + 48px number
   column + 20px gap = 92px from the row's left edge. */
.cej-nacc .elementor-tab-content {
  border: none !important;
  padding: 0 24px 30px 92px !important;
  font-family: var(--font-brand);
  font-size: 16px;
  line-height: 1.6;
  color: #3D4A63 !important;
  max-width: 780px;
}

/* ==========================================================================
   Mock fidelity layer — Compass (page 4) + UK ORE/LDS (page 57) +
   UAE licensing (page 63) only.
   Aligns the approved prototype metrics with the live Elementor render:
   mock line-height 1.6 (theme default is 1.7), no heading letter-spacing or
   text-wrap balancing, no theme heading/paragraph margins (spacing is set
   explicitly per widget in Elementor), no default 20px widget spacing, and
   2px button borders (mock .btn). Scoped to body.page-id-* + .cej-band so
   the homepage, course pages and Dashboard are untouched.
   ========================================================================== */

body.page-id-4 .cej-band,
body.page-id-57 .cej-band,
body.page-id-63 .cej-band,
body.page-id-65 .cej-band,
body.page-id-66 .cej-band { line-height: 1.6; }

body.page-id-4 .cej-band h1,
body.page-id-4 .cej-band h2,
body.page-id-4 .cej-band h3,
body.page-id-4 .cej-band h4,
body.page-id-57 .cej-band h1,
body.page-id-57 .cej-band h2,
body.page-id-57 .cej-band h3,
body.page-id-57 .cej-band h4,
body.page-id-63 .cej-band h1,
body.page-id-63 .cej-band h2,
body.page-id-63 .cej-band h3,
body.page-id-63 .cej-band h4,
body.page-id-65 .cej-band h1,
body.page-id-65 .cej-band h2,
body.page-id-65 .cej-band h3,
body.page-id-65 .cej-band h4,
body.page-id-66 .cej-band h1,
body.page-id-66 .cej-band h2,
body.page-id-66 .cej-band h3,
body.page-id-66 .cej-band h4 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: wrap;
}

body.page-id-4 .cej-band h1,
body.page-id-57 .cej-band h1,
body.page-id-63 .cej-band h1,
body.page-id-65 .cej-band h1,
body.page-id-66 .cej-band h1 { line-height: 1.12; }

body.page-id-4 .cej-band h2,
body.page-id-57 .cej-band h2,
body.page-id-63 .cej-band h2,
body.page-id-65 .cej-band h2,
body.page-id-66 .cej-band h2 { line-height: 1.2; }

body.page-id-4 .cej-band h3,
body.page-id-4 .cej-band h4,
body.page-id-57 .cej-band h3,
body.page-id-57 .cej-band h4,
body.page-id-63 .cej-band h3,
body.page-id-63 .cej-band h4,
body.page-id-65 .cej-band h3,
body.page-id-65 .cej-band h4,
body.page-id-66 .cej-band h3,
body.page-id-66 .cej-band h4 { line-height: 1.6; }

body.page-id-4 .cej-band p,
body.page-id-57 .cej-band p,
body.page-id-63 .cej-band p,
body.page-id-65 .cej-band p,
body.page-id-66 .cej-band p { margin: 0; }

/* Mock .btn: 2px border, 15px/600 on a 1.6 line (56px tall with 14px padding). */
body.page-id-4 .cej-band .elementor-button,
body.page-id-57 .cej-band .elementor-button,
body.page-id-63 .cej-band .elementor-button,
body.page-id-65 .cej-band .elementor-button,
body.page-id-66 .cej-band .elementor-button {
  border-width: 2px;
  line-height: 1.6;
}

/* Container-level spacing (Elementor 4 does not generate container margins
   from _elementor_data, so band containers carry marker classes instead). */
body.page-id-4 .cej-band .cej-btnrow,
body.page-id-57 .cej-band .cej-btnrow,
body.page-id-63 .cej-band .cej-btnrow,
body.page-id-65 .cej-band .cej-btnrow,
body.page-id-66 .cej-band .cej-btnrow { margin-block-start: 34px; }

body.page-id-4 .cej-band .cej-mode { margin-block-start: 14px; }

/* Compass service-card footers: full-bleed inside the padded card, matching
   the mock's edge-to-edge footer hairline (card padding is 36/32/28). */
body .elementor .e-con.cej-svc-foot {
  width: calc(100% + 64px) !important;
  margin-inline: -32px !important;
  margin-block-end: -28px !important;
}

/* Disclaimer boxes: centered 640px card (mock .disclaimer in the CTA bands).
   Beats the rail reconciliation's nested-container max-width/margin rules. */
body .elementor .e-con.cej-disclaimer {
  width: min(640px, 100%) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

body.page-id-4 .cej-band .cej-disclaimer { margin-block-start: 40px; }

body.page-id-57 .cej-band .cej-disclaimer,
body.page-id-63 .cej-band .cej-disclaimer,
body.page-id-65 .cej-band .cej-disclaimer,
body.page-id-66 .cej-band .cej-disclaimer { margin-block-start: 28px; }

body.page-id-57 .cej-band .cej-mfds,
body.page-id-63 .cej-band .cej-mfds,
body.page-id-65 .cej-band .cej-mfds,
body.page-id-66 .cej-band .cej-mfds { margin-block-start: 28px; }

/* Small print and ledes: mock max-widths (720px / 680px), centered.
   Must out-specify Elementor's `.elementor.elementor .e-con > .elementor-widget`. */
body .elementor .e-con .elementor-widget.cej-smallprint { max-width: 720px !important; margin-inline: auto !important; }

body .elementor .e-con .elementor-widget.cej-lede { max-width: 680px !important; }

/* UK routes footnote: mock caps it at 820px. */
body .elementor .e-con .elementor-widget.cej-note { max-width: 820px !important; }

/* Service-card foot text fills the full-bleed footer. */
body .elementor .e-con.cej-svc-foot > .elementor-widget { width: 100% !important; }

/* Compass service-card icons: inline mock SVGs (stroke color baked in). */
body.page-id-4 .cej-band .cej-svc-ico svg { display: block; width: 44px; height: 44px; }

/* ---------- UK "Where Compass fits": light centered CTA (mock .cta-box) ---------- */
/* Marker class on the tinted container in post 57's _elementor_data. The working
   cej-newsletter widget keeps its markup and form mechanics (action, nonce,
   honeypot, admin-post.php) — only its presentation is restyled here. Scoped to
   the marker so the homepage newsletter band is untouched. */
.cej-cta-light .newsletter-band {
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.cej-cta-light .newsletter-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 0;
}

.cej-cta-light .newsletter-band h2 { color: var(--ink); margin-bottom: 12px; }

.cej-cta-light .newsletter-band p {
  color: #3d4a63;
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 28px;
}

.cej-cta-light .newsletter-form {
  justify-content: center;
  gap: 10px;
  margin: 0;
  width: 100%;
}

.cej-cta-light .newsletter-form input[type="email"] {
  font-size: 16px;
  padding: 14px 20px;
  background: #fff;
  border: 2px solid #dde4f0;
  border-radius: 48px;
  min-width: min(300px, 100%);
}

.cej-cta-light .newsletter-form .btn {
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 48px;
  color: #fff;
}

.cej-cta-light .newsletter-form .btn:hover { background: #2459c4; border-color: #2459c4; }

.cej-cta-light .newsletter-status { color: #3d4a63; }
