/* PRISM Learning, Central design tokens. Single source of truth. */
:root {
  /* Brand palette (preserved from live site) */
  --prism-navy-950: #13213F;
  --prism-navy-900: #16223B;
  --prism-navy-800: #1F3A63;
  --prism-navy-700: #234A7D;
  --prism-navy-600: #2A4A7C;
  --prism-blue-muted: #4A6F9C;
  --prism-gold-700: #C09044;
  --prism-gold-600: #C39A4E;
  --prism-gold-500: #C8A45D;
  --prism-gold-300: #E3C181;
  --prism-gold-200: #ECD5A3;
  --prism-ink: #16223B;
  --prism-text: #111827;
  --prism-muted: #5B6472;
  --prism-white: #FFFFFF;
  --prism-ivory: #FAF8F3;
  --prism-ivory-soft: #FCF7EF;
  --prism-border: rgba(22, 34, 59, 0.12);
  --prism-success: #15805A;
  --prism-warning: #B7791F;
  --prism-danger: #D9534F;

  /* Semantic surfaces */
  --bg: var(--prism-white);
  --bg-soft: var(--prism-ivory);
  --bg-inverse: var(--prism-navy-900);
  --surface-card: var(--prism-white);
  --text: var(--prism-text);
  --text-muted: var(--prism-muted);
  --text-on-dark: #EAF0F8;
  --text-on-dark-muted: #AEBDD4;
  --accent: var(--prism-gold-600);
  --accent-strong: var(--prism-gold-700);
  --link: var(--prism-navy-700);
  --border: var(--prism-border);
  --border-strong: rgba(22, 34, 59, 0.22);

  /* Prismatic facet accents, used sparingly */
  --facet-1: #E8543F;
  --facet-2: #F2A93B;
  --facet-3: #3FA96A;
  --facet-4: #3D8BD6;
  --facet-5: #7A56C9;

  /* Typography */
  --font-display: "Sora", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "Barlow Condensed", var(--font-body);
  --font-arabic: "Amiri", "Segoe UI", Tahoma, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.73rem, 1.5rem + 1.15vw, 2.55rem);
  --step-4: clamp(2.07rem, 1.7rem + 1.85vw, 3.4rem);
  --step-5: clamp(2.49rem, 1.95rem + 2.7vw, 4.3rem);

  /* Spacing (fluid) */
  --space-2xs: clamp(0.5rem, 0.47rem + 0.15vw, 0.6rem);
  --space-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.95rem);
  --space-s: clamp(1rem, 0.92rem + 0.4vw, 1.3rem);
  --space-m: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --space-l: clamp(2.25rem, 2rem + 1.25vw, 3.25rem);
  --space-xl: clamp(3.5rem, 3rem + 2.5vw, 5.5rem);
  --space-2xl: clamp(5rem, 4rem + 5vw, 8rem);

  /* Structure */
  --container: 1200px;
  --container-narrow: 820px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(19, 33, 63, 0.06), 0 2px 6px rgba(19, 33, 63, 0.05);
  --shadow: 0 6px 20px rgba(19, 33, 63, 0.08), 0 2px 6px rgba(19, 33, 63, 0.05);
  --shadow-lg: 0 18px 48px rgba(19, 33, 63, 0.14);
  --ring: 0 0 0 3px rgba(35, 74, 125, 0.35);
  --header-h: 112px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* PRISM Learning, application styles */
@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }
  body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  .icon { width: 1.2em; height: 1.2em; flex: none; }
  input, button, textarea, select { font: inherit; color: inherit; }
  a { color: inherit; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  :focus-visible { outline: 3px solid var(--prism-navy-700); outline-offset: 2px; border-radius: 4px; }
}

@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; color: var(--prism-ink); letter-spacing: -0.02em; text-wrap: balance; }
  h1 { font-size: var(--step-5); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); }
  h4 { font-size: var(--step-1); }
  p { text-wrap: pretty; }
  a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
  .eyebrow {
    font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em;
    font-size: var(--step--1); font-weight: 600; color: var(--accent-strong);
    display: inline-flex; align-items: center; gap: 0.5rem;
  }
  .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
  [dir="rtl"] { font-family: var(--font-arabic); }
}

@layer layout {
  .container { width: min(100% - 2 * var(--space-s), var(--container)); margin-inline: auto; }
  .container-narrow { width: min(100% - 2 * var(--space-s), var(--container-narrow)); margin-inline: auto; }
  .section { padding-block: var(--space-xl); }
  .section-sm { padding-block: var(--space-l); }
  .section--ivory { background: var(--bg-soft); }
  .section--ivory-soft { background: var(--prism-ivory-soft); }
  .section--navy { background: var(--bg-inverse); color: var(--text-on-dark); }
  .section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--prism-white); }
  .section--navy .lead { color: var(--text-on-dark-muted); }
  .stack > * + * { margin-block-start: var(--flow, var(--space-s)); }
  .grid { display: grid; gap: var(--space-m); }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  .section-head { max-width: 760px; margin-bottom: var(--space-l); }
  .section-head.center { margin-inline: auto; text-align: center; }
  .lead { font-size: var(--step-1); color: var(--text-muted); line-height: 1.5; }
  .skip-link { position: absolute; left: 8px; top: -60px; background: var(--prism-navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .2s; }
  .skip-link:focus { top: 8px; }
}

@layer components {
  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    font-weight: 600; font-size: var(--step-0); line-height: 1; padding: 0.85em 1.4em; border-radius: var(--radius-pill);
    border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s; min-height: 46px; }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--prism-navy-800); color: #fff; box-shadow: var(--shadow-sm); }
  .btn-primary:hover { background: var(--prism-navy-900); box-shadow: var(--shadow); }
  .btn-gold { background: linear-gradient(135deg, var(--prism-gold-600), var(--prism-gold-700)); color: #241a08; }
  .btn-gold:hover { filter: brightness(1.04); box-shadow: var(--shadow); }
  .btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--prism-ink); }
  .btn-ghost:hover { border-color: var(--prism-navy-700); background: rgba(35,74,125,0.05); }
  .btn-on-dark { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.28); }
  .btn-on-dark:hover { background: rgba(255,255,255,0.18); }
  .btn-lg { font-size: var(--step-1); padding: 1em 1.7em; min-height: 54px; }
  .btn-block { width: 100%; }
  .btn .icon { width: 20px; height: 20px; }

  /* Cards */
  .card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--space-m); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; height: 100%; }
  .card.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(200,164,93,0.5); }
  .card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
  .card .card-meta { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--1); color: var(--accent-strong); font-weight: 600; }
  .card .card-cta { margin-top: var(--space-s); font-weight: 600; color: var(--link); display: inline-flex; gap: 0.4rem; align-items: center; }
  .card ul.ticks { margin-top: var(--space-s); display: grid; gap: 0.5rem; }
  .card ul.ticks li { position: relative; padding-inline-start: 1.6rem; color: var(--text-muted); font-size: var(--step--1); }
  .card ul.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 2px;
    background: linear-gradient(135deg, var(--facet-4), var(--facet-3)); }

  .icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-s);
    background: linear-gradient(160deg, rgba(35,74,125,0.1), rgba(200,164,93,0.14)); color: var(--prism-navy-700); border: 1px solid var(--border); }
  .icon-badge .icon { width: 26px; height: 26px; }

  /* Chips */
  .chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5em 1em; border-radius: var(--radius-pill);
    background: var(--prism-white); border: 1px solid var(--border-strong); font-size: var(--step--1); font-weight: 600; color: var(--prism-navy-800);
    text-decoration: none; transition: background .15s, border-color .15s, transform .15s; cursor: pointer; }
  .chip:hover { background: var(--prism-navy-800); color: #fff; border-color: var(--prism-navy-800); transform: translateY(-1px); }
  .section--navy .chip { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.22); }
  .section--navy .chip:hover { background: var(--prism-gold-600); color: #241a08; border-color: var(--prism-gold-600); }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); }
  .utility-bar { background: var(--prism-navy-950); color: var(--text-on-dark-muted); font-size: var(--step--1); }
  .utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; padding-block: 4px; }
  .utility-bar a { color: var(--text-on-dark); text-decoration: none; }
  .utility-bar a:hover { text-decoration: underline; }
  .utility-bar .u-left { display: flex; gap: 1.2rem; flex-wrap: wrap; }
  .utility-bar .u-right { display: flex; gap: 1rem; align-items: center; }
  .lang-switch a { padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; }
  .lang-switch a[aria-current="true"] { background: var(--prism-gold-600); color: #241a08; border-color: var(--prism-gold-600); }

  /* Utility bar scrolls away; only the nav bar stays sticky (it is now a body-level sibling). */
  @media (max-width: 999px) {
    .u-online { display: none; }
  }

  .navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
  .brand-logo { height: clamp(72px, 6.6vw, 92px); width: auto; }
  .brand-chip { background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow-sm); }
  .brand-chip img { height: 84px; width: auto; }

  .primary-nav { display: none; }
  @media (min-width: 1000px) {
    .primary-nav { display: flex; align-items: center; gap: 0.25rem; }
    .nav-item { position: relative; }
    .nav-link { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.6rem 0.85rem; border-radius: 10px; font-weight: 600; font-size: 0.96rem; color: var(--prism-navy-900); background: none; border: none; cursor: pointer; text-decoration: none; }
    .nav-link:hover, .nav-item:hover .nav-link, .nav-link[aria-expanded="true"] { background: rgba(35,74,125,0.07); color: var(--prism-navy-800); }
    .nav-link .caret { width: 14px; height: 14px; transition: transform .2s; }
    .nav-item:hover .nav-link .caret, .nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
    .mega { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 460px; background: #fff; border: 1px solid var(--border);
      border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-m); opacity: 0; visibility: hidden; transform: translateY(8px);
      transition: opacity .18s, transform .18s, visibility .18s; display: grid; grid-auto-flow: column; gap: var(--space-l); }
    .nav-item:hover .mega, .mega:focus-within { opacity: 1; visibility: visible; transform: translateY(0); }
    .mega h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.6rem; font-family: var(--font-label); }
    .mega a { display: block; padding: 0.4rem 0.5rem; border-radius: 8px; text-decoration: none; color: var(--prism-navy-900); font-weight: 500; font-size: 0.94rem; }
    .mega a:hover { background: var(--bg-soft); color: var(--prism-navy-700); }
  }
  .nav-actions { display: flex; align-items: center; gap: 0.6rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; }
  @media (min-width: 1000px) { .nav-toggle { display: none; } .nav-actions .btn-enquire { display: inline-flex; } }
  .nav-actions .btn-enquire { display: none; }

  /* Mobile drawer — full-screen navy grouped panel */
  .mobile-drawer { position: fixed; inset: 0; z-index: 150; background: var(--prism-navy-950); color: var(--text-on-dark);
    display: flex; flex-direction: column; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .mobile-drawer.open { visibility: visible; opacity: 1; transform: none; }
  .mobile-drawer .md-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: var(--space-s) var(--space-m); border-bottom: 1px solid rgba(255,255,255,0.12); position: sticky; top: 0; background: var(--prism-navy-950); z-index: 1; }
  .mobile-drawer .brand-chip { padding: 6px 10px; box-shadow: none; }
  .mobile-drawer .brand-chip img { height: 40px; }
  .md-close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .md-close .icon { width: 22px; height: 22px; }
  .md-body { padding: var(--space-m); overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
  .m-group { margin-bottom: var(--space-l); }
  .m-group-title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--step--1); color: var(--prism-gold-300); font-weight: 600; margin-bottom: 0.4rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .m-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
  .m-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.5rem; color: var(--text-on-dark); text-decoration: none; font-weight: 600; border-radius: 10px; min-height: 48px; transition: background .15s; }
  .m-links a:hover, .m-links a:focus-visible { background: rgba(255,255,255,0.08); color: #fff; }
  .m-arrow { color: var(--prism-gold-300); display: inline-flex; opacity: 0.55; }
  .m-arrow .icon { width: 18px; height: 18px; }
  .md-cta { display: grid; gap: 0.6rem; margin-top: var(--space-s); padding-top: var(--space-m); border-top: 1px solid rgba(255,255,255,0.12); }

  /* Bottom nav (mobile) */
  .bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 90; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; text-decoration: none; color: var(--prism-navy-800); font-size: 0.68rem; font-weight: 600; min-height: 56px; justify-content: center; }
  .bottom-nav a .icon { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--accent-strong); }
  @media (min-width: 1000px) { .bottom-nav { display: none; } }
  body { padding-bottom: 0; }
  @media (max-width: 999px) { body.has-bottom-nav { padding-bottom: 64px; } }

  /* Hero */
  .hero { position: relative; background: linear-gradient(180deg, var(--prism-ivory-soft), #fff 70%); overflow: clip; }
  .hero .container { position: relative; z-index: 2; }
  .hero-grid { display: grid; gap: var(--space-l); align-items: center; padding-block: var(--space-xl); }
  @media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
  .hero h1 { margin-block: 0.5rem 0.75rem; }
  .hero .lead { max-width: 46ch; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: var(--space-m); }
  .hero-trust { margin-top: var(--space-m); display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: var(--step--1); color: var(--text-muted); }
  .hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
  .prism-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }

  /* Route finder mini (hero) */
  .route-mini { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); box-shadow: var(--shadow); }
  .route-mini label { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: 0.5rem; }
  .route-mini .rm-field { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .route-mini input[type="text"] { flex: 1 1 220px; padding: 0.85rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius); font-size: 1rem; }
  .route-mini input[type="text"]:focus-visible { border-color: var(--prism-navy-700); outline: none; box-shadow: var(--ring); }
  .route-mini .hint { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.6rem; }

  /* Steps / journey */
  .journey { display: grid; gap: var(--space-m); counter-reset: step; }
  @media (min-width: 760px) { .journey { grid-template-columns: repeat(4, 1fr); } }
  .journey .step { position: relative; padding: var(--space-m); border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); }
  .journey .step .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--prism-gold-300), var(--prism-gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .journey .step h3 { margin: 0.5rem 0 0.4rem; color: #fff; font-size: var(--step-1); }
  .journey .step p { color: var(--text-on-dark-muted); font-size: var(--step--1); }

  /* Accordion (FAQ) */
  .accordion details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 0.75rem; overflow: hidden; }
  .accordion summary { cursor: pointer; padding: 1.1rem var(--space-m); font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; list-style: none; }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-strong); transition: transform .2s; }
  .accordion details[open] summary::after { transform: rotate(45deg); }
  .accordion .acc-body { padding: 0 var(--space-m) var(--space-m); color: var(--text-muted); }

  /* Breadcrumbs */
  .breadcrumbs { font-size: var(--step--1); color: var(--text-muted); padding-block: var(--space-s); }
  .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
  .breadcrumbs li::after { content: "/"; margin-inline-start: 0.4rem; color: var(--border-strong); }
  .breadcrumbs li:last-child::after { content: ""; }
  .breadcrumbs a { color: var(--link); text-decoration: none; }

  /* Page hero (interior) */
  .page-hero { background: linear-gradient(160deg, var(--prism-navy-900), var(--prism-navy-800)); color: #fff; padding-block: var(--space-xl) var(--space-l); position: relative; overflow: clip; }
  .page-hero h1 { color: #fff; max-width: 20ch; }
  .page-hero .lead { color: var(--text-on-dark-muted); max-width: 60ch; }
  .page-hero .eyebrow { color: var(--prism-gold-300); }
  .page-hero .facet-line { position: absolute; inset-inline-end: -40px; top: -40px; width: 320px; height: 320px; opacity: 0.5; pointer-events: none; }

  /* Callout / notes */
  .note { border-inline-start: 4px solid var(--accent); background: var(--prism-ivory-soft); padding: var(--space-s) var(--space-m); border-radius: var(--radius); color: var(--text-muted); }
  .note.integrity { border-color: var(--prism-navy-700); }

  /* Footer */
  .site-footer { background: var(--prism-navy-950); color: var(--text-on-dark-muted); padding-block: var(--space-xl) var(--space-l); }
  .site-footer a { color: var(--text-on-dark); text-decoration: none; }
  .site-footer a:hover { color: #fff; text-decoration: underline; }
  .footer-grid { display: grid; gap: var(--space-l); grid-template-columns: 1.4fr; }
  @media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
  .footer-brand .brand-word { color: #fff; }
  .footer-brand p { color: var(--text-on-dark-muted); font-size: var(--step--1); margin-top: var(--space-s); max-width: 34ch; }
  .footer-col h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-label); margin-bottom: var(--space-s); }
  .footer-col ul { display: grid; gap: 0.5rem; }
  .footer-col a { font-size: var(--step--1); }
  .footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-s); }
  .footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; }
  .footer-social a:hover { background: rgba(255,255,255,0.1); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--space-l); padding-top: var(--space-m); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--step--1); }

  /* Article / guides */
  .article h2 { font-size: var(--step-2); margin-top: var(--space-m); }
  .article h3 { font-size: var(--step-1); margin-top: var(--space-s); }
  .article p, .article li { color: var(--text); }
  .article .lead { color: var(--text-muted); }
  .article .byline { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: var(--space-s); }
  ol.ordered { display: grid; gap: 0.6rem; padding-inline-start: 1.2rem; }
  ol.ordered li { padding-inline-start: 0.3rem; }
  ol.ordered li::marker { color: var(--accent-strong); font-weight: 700; }
  .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
  .article table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: var(--step--1); }
  .article th, .article td { text-align: start; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
  .article thead th { background: var(--bg-soft); font-family: var(--font-display); color: var(--prism-ink); }
  .article tbody tr:last-child td { border-bottom: none; }

  /* ===== Homepage: prism motif + designed sections ===== */
  .hero-facets { position: absolute; inset-block-start: -50px; inset-inline-end: -70px; width: min(48vw, 540px); z-index: 0; pointer-events: none; }
  .hero-facets svg { width: 100%; height: auto; }
  @media (max-width: 760px) { .hero-facets { inset-inline-end: -34%; opacity: 0.7; } }

  .hero-trust { list-style: none; padding: 0; margin-block-start: var(--space-m); display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55em 0.95em; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 600; color: var(--prism-navy-800); box-shadow: var(--shadow-sm); }
  .hero-trust .icon { color: var(--accent-strong); width: 1.1em; height: 1.1em; }

  .route-mini.concierge { position: relative; overflow: hidden; padding-block-start: calc(var(--space-m) + 4px); }
  .route-mini.concierge::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--facet-5), var(--facet-4), var(--facet-3), var(--facet-2), var(--facet-1)); }
  .concierge-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); font-weight: 600; color: var(--accent-strong); margin-bottom: 0.5rem; }
  .concierge-tag .icon { width: 1.15em; height: 1.15em; }
  .concierge-paths { margin-block-start: 0.9rem; font-size: var(--step--1); color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
  .concierge-paths span { font-weight: 700; color: var(--prism-ink); }
  .concierge-paths a { color: var(--prism-navy-700); text-decoration: none; padding: 0.25em 0.7em; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); transition: background .15s, color .15s; }
  .concierge-paths a:hover { background: var(--prism-navy-800); color: #fff; border-color: var(--prism-navy-800); }

  .facts-section { padding-block: 0 var(--space-l); margin-block-start: calc(-1 * var(--space-m)); position: relative; z-index: 3; }
  .facts-strip { list-style: none; padding: 0; margin: 0; background: var(--bg-inverse); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
  @media (min-width: 760px) { .facts-strip { grid-template-columns: repeat(4, 1fr); } }
  .fact { padding: var(--space-m); text-align: center; display: flex; flex-direction: column; gap: 0.2rem; border-inline-start: 1px solid rgba(255,255,255,0.08); border-block-start: 1px solid rgba(255,255,255,0.08); }
  .fact .big { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; background: linear-gradient(135deg, var(--prism-gold-200), var(--prism-gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .fact .lbl { font-weight: 700; color: #fff; font-size: var(--step-0); }
  .fact .sub { font-size: var(--step--1); color: var(--text-on-dark-muted); }

  .service-grid .card { position: relative; overflow: hidden; }
  .service-grid .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
  .service-grid .card:nth-child(1)::before { background: var(--facet-1); }
  .service-grid .card:nth-child(2)::before { background: var(--facet-2); }
  .service-grid .card:nth-child(3)::before { background: var(--facet-3); }
  .service-grid .card:nth-child(4)::before { background: var(--facet-4); }
  .service-grid .card:nth-child(5)::before { background: var(--facet-5); }
  .service-grid .card:nth-child(6)::before { background: var(--prism-gold-600); }

  .route-section { position: relative; overflow: clip; }
  .route-section .container { position: relative; z-index: 1; }
  .cta-facets { position: absolute; inset-block-start: -70px; inset-inline-start: -80px; width: min(42vw, 460px); z-index: 0; pointer-events: none; }
  .cta-facets svg { width: 100%; height: auto; }
  .route-path { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-l); position: relative; }
  @media (min-width: 760px) {
    .route-path { grid-template-columns: repeat(4, 1fr); gap: var(--space-m); }
    .route-path::before { content: ""; position: absolute; inset-block-start: 34px; inset-inline: 14%; height: 2px; background: linear-gradient(90deg, rgba(227,193,129,0.15), var(--prism-gold-500), rgba(227,193,129,0.15)); }
  }
  .route-node { text-align: center; position: relative; z-index: 1; }
  .route-node .node { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto var(--space-s); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--prism-navy-900); background: #fff; border: 3px solid var(--prism-gold-500); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
  .route-node h3 { color: #fff; font-size: var(--step-1); margin-bottom: 0.3rem; }
  .route-node p { color: var(--text-on-dark-muted); font-size: var(--step--1); max-width: 26ch; margin-inline: auto; }

  .coverage-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); box-shadow: var(--shadow-sm); margin-block-start: var(--space-s); }
  .mode-card { background: linear-gradient(165deg, #fff, var(--prism-ivory-soft)); }
  .mode-card .icon-badge { background: linear-gradient(160deg, rgba(61,139,214,0.16), rgba(63,169,106,0.16)); color: var(--prism-navy-700); }

  .feature-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin-block: var(--space-s); }
  .feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
  .feature-list .fi { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(35,74,125,0.1), rgba(200,164,93,0.16)); color: var(--prism-navy-700); border: 1px solid var(--border); }
  .feature-list .fi .icon { width: 22px; height: 22px; }
  .feature-list strong { display: block; color: var(--prism-ink); margin-bottom: 0.1rem; }
  .feature-list div { color: var(--text-muted); font-size: var(--step--1); }

  .trust-panel { background: linear-gradient(165deg, var(--prism-navy-900), var(--prism-navy-800)); color: var(--text-on-dark); border-radius: var(--radius-lg); padding: var(--space-l); box-shadow: var(--shadow-lg); }
  .trust-panel h3 { color: #fff; }
  .trust-panel p { color: var(--text-on-dark-muted); }
  .trust-panel .card-meta { color: var(--prism-gold-300); }
  .tp-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4em 0.9em; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); font-size: var(--step--1); font-weight: 600; color: var(--prism-gold-300); margin-bottom: var(--space-s); }
  .tp-badge .icon { width: 1.1em; height: 1.1em; }
  .tp-placeholder { display: grid; gap: 0.8rem; margin-block: var(--space-m); }
  .tp-row { display: flex; align-items: center; gap: 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 0.8rem; }
  .tp-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: var(--prism-gold-300); flex: none; }
  .tp-lines { display: grid; gap: 0.5rem; flex: 1; }
  .tp-lines i { display: block; height: 8px; border-radius: 6px; background: rgba(255,255,255,0.14); }
  .tp-lines i:last-child { width: 60%; }

  .faq-help { margin-block-start: var(--space-s); display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  @media (min-width: 900px) { .faq-grid > .stack { position: sticky; top: calc(var(--header-h) + 20px); } }

  /* ===== "What this covers" card grid ===== */
  .cover-grid { display: grid; gap: var(--space-s); grid-template-columns: 1fr; }
  @media (min-width: 560px) { .cover-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 960px) { .cover-grid { grid-template-columns: repeat(3, 1fr); } }
  .cover-card { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--prism-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
  .cover-card:hover { border-color: rgba(200,164,93,0.5); box-shadow: var(--shadow); transform: translateY(-2px); }
  .cover-card .cover-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(35,74,125,0.1), rgba(200,164,93,0.16)); color: var(--prism-navy-700); border: 1px solid var(--border); }
  .cover-card .cover-ico .icon { width: 21px; height: 21px; }

  /* Enquiry band (below service cover grid) */
  .enquiry-band { margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; justify-content: space-between; padding: var(--space-m) var(--space-l); background: var(--prism-ivory-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .enquiry-band h3 { font-size: var(--step-1); }
  .enquiry-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

  /* ===== CambriLearn partnership ===== */
  .partner-grid .partner-cert { display: flex; justify-content: center; }
  .cert-figure { margin: 0; text-align: center; max-width: 340px; width: 100%; }
  .cert-thumb { display: block; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); position: relative; width: 100%; }
  .cert-thumb img { width: 100%; height: auto; display: block; }
  .cert-thumb .cert-zoom { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(0deg, rgba(19,33,63,0.88), rgba(19,33,63,0)); color: #fff; font-size: var(--step--1); font-weight: 600; padding: 1.6rem 0.8rem 0.7rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
  .cert-thumb .cert-zoom .icon { width: 1.15em; height: 1.15em; color: var(--prism-gold-300); }
  .cert-thumb:hover { border-color: var(--prism-gold-500); }
  .cert-thumb:hover .cert-zoom { padding-bottom: 0.9rem; }
  .cert-figure figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--text-muted); }
  .partner-grid .eyebrow .icon { width: 1.05em; height: 1.05em; }

  .trust-strip { background: var(--prism-navy-900); color: var(--text-on-dark); }
  .trust-strip .container { padding-block: 0.75rem; }
  .trust-strip p { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; font-size: var(--step--1); text-align: center; margin: 0; }
  .trust-strip strong { color: #fff; }
  .trust-strip > .container > p > .icon { color: var(--prism-gold-300); width: 1.2em; height: 1.2em; }
  .trust-strip a { color: var(--prism-gold-300); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; }
  .trust-strip a:hover { text-decoration: underline; }

  /* ===== Curriculum families ===== */
  .fam-grid { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
  @media (min-width: 680px) { .coverage-grid .fam-grid { grid-template-columns: 1fr; } .fam-grid { grid-template-columns: 1fr 1fr; } }
  .fam-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.95rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--prism-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
  .fam-card:hover { border-color: rgba(200,164,93,0.5); box-shadow: var(--shadow); transform: translateY(-2px); }
  .fam-card .fam-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(35,74,125,0.1), rgba(200,164,93,0.16)); color: var(--prism-navy-700); border: 1px solid var(--border); }
  .fam-card .fam-ico .icon { width: 20px; height: 20px; }
  .fam-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
  .fam-text strong { font-weight: 700; line-height: 1.2; }
  .fam-sub { font-size: var(--step--1); color: var(--text-muted); font-weight: 500; line-height: 1.3; }
  .fam-arrow { color: var(--accent-strong); flex: none; width: 18px; height: 18px; }

  /* Curricula hub family blocks */
  .fam-blocks { display: grid; gap: var(--space-m); }
  @media (min-width: 760px) { .fam-blocks { grid-template-columns: 1fr 1fr; } }
  .fam-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); box-shadow: var(--shadow-sm); }
  .fam-block-head { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: var(--space-s); }
  .fam-block-head .fam-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(35,74,125,0.1), rgba(200,164,93,0.16)); color: var(--prism-navy-700); border: 1px solid var(--border); }
  .fam-block-head .fam-ico .icon { width: 24px; height: 24px; }
  .fam-block-head h2 { font-size: var(--step-1); margin: 0; }

  /* ===== Recognition Through CambriLearn (styled text badges) ===== */
  .recog-grid { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); max-width: 900px; }
  @media (min-width: 620px) { .recog-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 900px) { .recog-grid { grid-template-columns: repeat(5, 1fr); } }
  .recog-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 1rem 0.8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .recog-role { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; }
  .recog-name { font-family: var(--font-display); font-weight: 700; color: var(--prism-navy-800); font-size: var(--step-0); }
  .recog-note { max-width: 720px; margin: var(--space-m) auto 0; text-align: center; font-size: var(--step--1); color: var(--text-muted); }
  .recog-note a { color: var(--link); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
  .recog-note a .icon { width: 1em; height: 1em; }

  /* ===== Image lightbox ===== */
  .lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,15,28,0.92); display: grid; place-items: center; padding: var(--space-m); opacity: 0; transition: opacity .2s var(--ease); }
  .lightbox.open { opacity: 1; }
  .lightbox img { max-width: min(92vw, 760px); max-height: 90vh; width: auto; height: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
  .lb-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .lb-close svg { width: 24px; height: 24px; }

  /* ===== Feature cards / steps (homeschooling) ===== */
  .feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); box-shadow: var(--shadow-sm); height: 100%; }
  .feature-card h3 { font-size: var(--step-1); margin: 0.3rem 0; }
  .feature-card p { color: var(--text-muted); font-size: var(--step--1); }
  .steps-3 { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-m); }
  @media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
  .steps-3 li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); box-shadow: var(--shadow-sm); }
  .steps-3 .step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--prism-navy-800); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.6rem; }
  .steps-3 h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
  .steps-3 p { color: var(--text-muted); font-size: var(--step--1); }

  /* ===== Blog ===== */
  .featured-article { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; background: #fff; }
  @media (min-width: 760px) { .featured-article { grid-template-columns: 1fr 1.3fr; } }
  .featured-article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .fa-media { background: linear-gradient(150deg, var(--prism-navy-800), var(--prism-navy-950)); min-height: 190px; display: grid; place-items: center; position: relative; }
  .fa-badge-icon { width: 84px; height: 84px; color: var(--prism-gold-300); }
  .fa-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--prism-gold-600); color: #241a08; font-size: var(--step--1); font-weight: 700; padding: 0.3em 0.8em; border-radius: var(--radius-pill); }
  .fa-body { padding: var(--space-l); }
  .fa-body h2 { font-size: var(--step-2); margin: 0.3rem 0 0.5rem; }
  .fa-body p { color: var(--text-muted); }

  /* ===== Testimonials ===== */
  .stars { display: inline-flex; gap: 2px; }
  .stars .icon { width: 18px; height: 18px; fill: rgba(22,34,59,0.12); stroke: none; }
  .stars .icon.on { fill: var(--prism-gold-500); }
  .reviews-aggregate { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; justify-content: center; text-align: center; background: var(--prism-ivory-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); margin-bottom: var(--space-l); }
  .reviews-aggregate .ra-score { display: inline-flex; align-items: center; gap: 0.6rem; }
  .reviews-aggregate .ra-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: var(--prism-ink); line-height: 1; }
  .reviews-aggregate .stars .icon { width: 22px; height: 22px; }
  .reviews-aggregate p { margin: 0; color: var(--text-muted); font-size: var(--step-0); }
  .reviews-aggregate a { color: var(--link); font-weight: 600; text-decoration: none; }
  .reviews-aggregate a:hover { text-decoration: underline; }
  .testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-l); box-shadow: var(--shadow-sm); margin: 0; display: flex; flex-direction: column; }
  .testimonial-card .tc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
  .testimonial-card .tc-source { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; }
  .testimonial-card .tc-highlight { font-family: var(--font-display); font-weight: 700; color: var(--prism-ink); margin-bottom: 0.2rem; }
  .testimonial-card blockquote { margin: 0 0 1rem; font-size: var(--step-0); color: var(--text); line-height: 1.55; border: none; padding: 0; }
  .testimonial-card figcaption { margin-top: auto; }
  .testimonial-card figcaption strong { display: block; color: var(--prism-ink); }
  .testimonial-card figcaption span { color: var(--text-muted); font-size: var(--step--1); }
  .tp-quote-real { border: none; padding: 0; margin: 0.5rem 0 0.6rem; font-size: var(--step-1); line-height: 1.5; color: #fff; }
  .tp-attr { color: var(--prism-gold-300); font-size: var(--step--1); font-weight: 600; margin-bottom: var(--space-s); }
  .empty-state { text-align: center; max-width: 580px; margin-inline: auto; }
  .empty-state .icon-badge { margin-inline: auto; color: var(--accent-strong); }
  .empty-state .hero-cta { justify-content: center; margin-top: var(--space-m); }

  /* Floating WhatsApp */
  .fab-whatsapp { position: fixed; inset-inline-end: 16px; bottom: 76px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
  @media (min-width: 1000px) { .fab-whatsapp { bottom: 24px; } }
  .fab-whatsapp .icon { width: 30px; height: 30px; color: #fff; }
}

@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .text-center { text-align: center; }
  .mt-0 { margin-top: 0; }
  .measure { max-width: 65ch; }
  .no-scroll { overflow: hidden; }
}

/* Revision Planner tool + print */
@layer components {
  .rp-plan-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: var(--space-s); }
  .note.err { border-inline-start-color: var(--prism-danger); color: var(--prism-danger); }
  #revision-planner .rf-nav { margin-top: var(--space-s); }
}
@media print {
  .site-header, .utility-bar, .site-footer, .bottom-nav, .fab-whatsapp, .cookie-banner, #revision-planner, .breadcrumbs, .section--navy, #rp-print { display: none !important; }
  .rp-plan { box-shadow: none; }
  a[href]::after { content: ""; }
  body { padding: 0; }
}

@layer components {
  /* Generic form fields */
  .field { display: grid; gap: 0.4rem; margin-bottom: var(--space-s); }
  .field label, .route-finder label.q-label { font-weight: 600; color: var(--prism-ink); }
  .field input, .field textarea, .field select, .route-finder input[type="text"], .route-finder textarea, .route-finder select {
    width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius); font-size: 1rem; background: #fff; }
  .field input:focus-visible, .field textarea:focus-visible, .route-finder input:focus-visible, .route-finder textarea:focus-visible, .route-finder select:focus-visible {
    outline: none; border-color: var(--prism-navy-700); box-shadow: var(--ring); }
  .field .error-msg, .route-finder .error-msg { color: var(--prism-danger); font-size: var(--step--1); }
  .field input[aria-invalid="true"], .route-finder [aria-invalid="true"] { border-color: var(--prism-danger); }
  label.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--text-muted); cursor: pointer; }
  label.consent input { margin-top: 0.25rem; width: 18px; height: 18px; flex: none; }
  #form-status:not(:empty), .rf-status:not(:empty) { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: var(--space-s); font-weight: 600; }
  #form-status.ok, .rf-status.ok { background: rgba(21,128,90,0.1); color: var(--prism-success); }
  #form-status.err, .rf-status.err { background: rgba(217,83,79,0.1); color: var(--prism-danger); }

  /* Route finder */
  .route-finder { padding: var(--space-l); }
  .rf-progress { display: flex; align-items: center; gap: 0.5rem; margin-bottom: var(--space-m); }
  .rf-progress .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
  .rf-progress .bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--prism-navy-700), var(--prism-gold-600)); transition: width .35s var(--ease); }
  .rf-progress .count { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; white-space: nowrap; }
  .rf-step { animation: rf-in .3s var(--ease); }
  @keyframes rf-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .rf-step { animation: none; } }
  .rf-step h3 { font-size: var(--step-2); margin-bottom: 0.35rem; }
  .rf-why { font-size: var(--step--1); color: var(--text-muted); margin-bottom: var(--space-s); display: flex; gap: 0.4rem; align-items: center; }
  .rf-why::before { content: "i"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--prism-navy-800); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; flex: none; }
  .rf-options { display: grid; gap: 0.6rem; margin: var(--space-s) 0; }
  @media (min-width: 520px) { .rf-options.cols { grid-template-columns: 1fr 1fr; } }
  .rf-option { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; font-weight: 600; }
  .rf-option:hover { border-color: var(--prism-navy-700); background: var(--bg-soft); }
  .rf-option input { position: absolute; opacity: 0; }
  .rf-option.selected { border-color: var(--prism-navy-800); background: rgba(35,74,125,0.06); box-shadow: inset 0 0 0 1px var(--prism-navy-800); }
  .rf-option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; margin-top: 1px; }
  .rf-option:has(.rf-opt-sub) { align-items: flex-start; }
  .rf-opt-sub { display: block; font-weight: 500; font-size: var(--step--1); color: var(--text-muted); margin-top: 3px; line-height: 1.35; }
  .rf-option.selected .dot { border-color: var(--prism-navy-800); background: var(--prism-navy-800); }
  .rf-option.selected .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
  .rf-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: var(--space-m); }
  .rf-summary { display: grid; gap: 0.5rem; margin: var(--space-s) 0; }
  .rf-summary .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; background: var(--bg-soft); border-radius: var(--radius-sm); }
  .rf-summary .row b { color: var(--prism-ink); }
  .rf-summary .row button { background: none; border: none; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: var(--step--1); }
  .rf-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5em 1em; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--prism-gold-200), var(--prism-gold-500)); color: #241a08; font-weight: 700; font-size: var(--step--1); }
  .rf-ref { font-family: var(--font-label); letter-spacing: 0.12em; font-size: 1.4rem; font-weight: 700; color: var(--prism-navy-800); }

  /* Cookie consent */
  .cookie-banner { position: fixed; inset-inline: 12px; bottom: 72px; z-index: 120; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-m); max-width: 460px; margin-inline: auto; }
  @media (min-width: 1000px) { .cookie-banner { bottom: 16px; inset-inline: auto; inset-inline-end: 16px; } }
  .cookie-banner p { font-size: var(--step--1); color: var(--text-muted); margin-bottom: var(--space-s); }
  .cookie-banner .cb-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .cookie-banner .cb-actions .btn { flex: 1 1 auto; }
}
