/* =========================================================
   DEAF SPACES - High-Contrast Community Public Service Theme
   Inspired by Royal Association for Deaf People (RAD)
   ========================================================= */

/* Fonts are hosted here, not loaded from Google, so visitors' details are not sent to a third party.
   Licences: fonts/OFL-Outfit.txt and fonts/OFL-AtkinsonHyperlegible.txt */
/* Atkinson Hyperlegible 400 italic, latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Atkinson Hyperlegible 400 italic, latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Atkinson Hyperlegible 700 italic, latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Atkinson Hyperlegible 700 italic, latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Atkinson Hyperlegible 400, latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Atkinson Hyperlegible 400, latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Atkinson Hyperlegible 700, latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Atkinson Hyperlegible 700, latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit 400, latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/outfit-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit 400, latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/outfit-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit 600, latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/outfit-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit 600, latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/outfit-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit 700, latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/outfit-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit 700, latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/outfit-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit 800, latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/outfit-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit 800, latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/outfit-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rad-navy: #0A0E24;       /* Brand navy */
  --rad-blue: #6E27D6;       /* Brand violet (formerly action blue) */
  --rad-gold: #6E27D6;       /* Brand violet (formerly high-vis gold) */
  --rad-gold-hover: #561EB1; /* Darker violet for hover states */
  
  /* High-Contrast Light Backdrops */
  --rad-bg-page: #FFFFFF;
  --rad-bg-light: #F0F4F8;   /* Soft accessible blue-grey panel */
  --rad-bg-white: #FFFFFF;
  --rad-text: #0C1520;       /* Deep high-contrast body text */
  --rad-muted: #434D56;      /* Accessible secondary body text */
  --rad-line: #D0D8E0;       /* Structured borders */
  --rad-line-strong: #0A0E24;
  
  --rad-green: #1FA82C;      /* Brand green */
  --rad-magenta: #DD1888;    /* Brand magenta */
  --rad-charcoal: #333B4A;   /* Dark grey for solid dark buttons */
  
  --font-headings: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  
  --radius-sm: 4px;          /* Crisp structured corners */
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-thick: 4px;
  --maxw: 1200px;
  --transition: 0.2s ease-in-out;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Anything the page hides stays hidden, even when its own style sets a display (for example the
   booking form, which is a grid). Without this the empty booking form showed under "Dates coming soon". */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  background: var(--rad-navy);
  /* Room for the scrollbar is always kept, so pages never jump sideways when it appears. */
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--rad-text);
  background: var(--rad-bg-page);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--rad-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
a:hover {
  color: var(--rad-navy);
}

/* Accessibility Skip and Focus */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--rad-gold);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}
*:focus-visible {
  outline: 4px solid var(--rad-navy);
  outline-offset: 2px;
}

/* Notice at the top of every page, written by staff in the dashboard (js/site-text.js) */
.site-notice {
  background: var(--rad-blue);
  color: #fff;
  padding: 12px 0;
}
.site-notice p {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Brand stripe: the very top of every page, three equal solid colours */
.brand-stripe {
  display: flex;
  height: 5px;
}
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: #1FA82C; }
.brand-stripe span:nth-child(2) { background: #DD1888; }
.brand-stripe span:nth-child(3) { background: #6E27D6; }

/* Top bar: opening hours and the translation link, on the right */
.util-bar {
  background: #fff;
  border-bottom: 1px solid #EEF0F6;
  font-size: 13px;
}
.util-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  height: 34px;
}
.util-hours {
  color: #4A5169;
  font-weight: 500;
}
.util-link {
  color: #5419A8;
  font-weight: 700;
  text-decoration: none;
}
.util-link:hover {
  color: #5419A8;
  text-decoration: underline;
}

/* Layout Wrappers */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rad-line);
}
.section:last-of-type {
  border-bottom: 0;
}
.section.tight {
  padding: 48px 0;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--rad-navy);
  font-weight: 800;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
}
.lead {
  font-size: 1.2rem;
  color: var(--rad-muted);
  max-width: 68ch;
}
.eyebrow {
  display: inline-block;
  background: var(--rad-navy);
  color: #fff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.eyebrow.gold {
  background: var(--rad-gold);
  color: #fff;
}

.center {
  text-align: center;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Accessible Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), filter var(--transition), transform 0.1s ease;
  white-space: nowrap;
}
.btn-green, .btn-gold {
  background: var(--rad-gold);
  color: #fff;
  border-color: var(--rad-gold);
}
.btn-green:hover, .btn-gold:hover {
  background: var(--rad-gold);
  color: #fff;
  border-color: var(--rad-gold);
  filter: brightness(0.85);
}
.btn-violet, .btn-navy {
  background: var(--rad-charcoal);
  color: #fff;
  border-color: var(--rad-charcoal);
}
.btn-violet:hover, .btn-navy:hover {
  background: var(--rad-charcoal);
  border-color: var(--rad-charcoal);
  color: #fff;
  filter: brightness(1.3);
}
.btn-ghost {
  background: transparent;
  color: var(--rad-navy);
  border: 2px solid var(--rad-navy);
}
.btn-ghost:hover {
  background: rgba(10, 14, 36, 0.06);
  color: var(--rad-navy);
  filter: brightness(0.85);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Header & Navigation Area */
header {
  background: #fff;
  border-bottom: 1px solid #E3E5EF;
  box-shadow: 0 8px 24px rgba(19, 26, 61, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: #131A3D;
  text-decoration: none;
}
.gem {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.brand .gem {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-tab,
.nav-book {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.nav-tab { padding: 11px 18px; }
/* Tabs: a soft tint with darker text. The current page is solid with white text. */
.nav-tab.nav-green { background: #E6F6E8; color: #146B1C; }
.nav-tab.nav-pink { background: #FCE7F3; color: #A3105F; }
.nav-tab.nav-purple { background: #EFE7FC; color: #5419A8; }
.nav-tab.nav-green:hover { background: #D4F0D8; color: #146B1C; }
.nav-tab.nav-pink:hover { background: #F9D3E8; color: #A3105F; }
.nav-tab.nav-purple:hover { background: #E3D6FA; color: #5419A8; }
/* A darker green than the brand green, so white text on it is easy to read. */
.nav-tab.nav-green[aria-current="page"] { background: #157A20; color: #fff; box-shadow: 0 6px 16px rgba(21, 122, 32, 0.30); }
.nav-tab.nav-pink[aria-current="page"] { background: #DD1888; color: #fff; box-shadow: 0 6px 16px rgba(221, 24, 136, 0.30); }
.nav-tab.nav-purple[aria-current="page"] { background: #6E27D6; color: #fff; box-shadow: 0 6px 16px rgba(110, 39, 214, 0.30); }
.nav-divider {
  width: 1px;
  height: 32px;
  margin: 0 6px;
  background: #E3E5EF;
}
.nav-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #6E27D6;
  color: #fff;
  box-shadow: 0 6px 16px rgba(110, 39, 214, 0.30);
}
.nav-book:hover,
.nav-book:focus {
  background: #5A1FB0;
  color: #fff;
}
.nav-book svg { flex: 0 0 auto; }
.nav-tab:focus-visible,
.nav-book:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #6E27D6;
  outline-offset: 2px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #131A3D;
  margin: 5px 0;
}

/* Below 1024px: a menu button. Open, the tabs stack full width, with Book a course at the bottom. */
@media (max-width: 1023.98px) {
  .util-hours { display: none; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 24px 18px;
    background: #fff;
    border-bottom: 1px solid #E3E5EF;
    box-shadow: 0 8px 24px rgba(19, 26, 61, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-tab,
  .nav-book {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-book { justify-content: center; margin-top: 4px; }
  .nav-divider { display: none; }
}

/* Page Hero Header Block */
.page-hero {
  background: var(--rad-bg-light);
  border-bottom: 2px solid var(--rad-line);
  padding: 48px 0;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-top: 8px;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--rad-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs a {
  color: var(--rad-muted);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* RAD-Inspired Services Showcase Hero */
.hero {
  background: var(--rad-navy);
  color: #fff;
  padding: 64px 0;
  border-bottom: var(--border-thick) solid var(--rad-gold);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}
.hero-content h1 span.hi {
  border-bottom: 4px solid var(--rad-gold);
  color: #fff;
}
.hero-content p.lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rad-gold);
}

/* Image Showcase Pane */
.showcase-pane {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.showcase-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 36, 0.95);
  color: #fff;
  padding: 16px;
  font-size: 0.9rem;
}
.showcase-caption p {
  color: rgba(255, 255, 255, 0.85);
}

/* Trust Row Block */
.trust {
  background: var(--rad-bg-light);
  border-bottom: 2px solid var(--rad-line);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--rad-navy);
}
.trust-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.trust-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--rad-navy);
  border: 2px solid var(--rad-navy);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* Stat Grid */
.strip {
  background: var(--rad-bg-light);
  border-bottom: 1px solid var(--rad-line);
  padding: 36px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.strip .n {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--rad-navy);
  line-height: 1;
}
.strip .t {
  font-size: 0.9rem;
  color: var(--rad-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-points {
  display: grid;
  gap: 24px;
}
.point {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--rad-bg-light);
  border-left: 5px solid var(--rad-navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.point h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.point p {
  font-size: 0.95rem;
}

/* Service Blocks (Chunky & Structured) */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.serv {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.serv:nth-child(1) { border-top: 6px solid var(--rad-green); }
.serv:nth-child(2) { border-top: 6px solid var(--rad-magenta); }
.serv:nth-child(3) { border-top: 6px solid var(--rad-gold); }

.serv .ic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.serv:nth-child(1) .ic { color: var(--rad-green); }
.serv:nth-child(2) .ic { color: var(--rad-magenta); }
.serv:nth-child(3) .ic { color: var(--rad-gold); }

.serv h3 {
  margin-bottom: 10px;
}
.serv p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.serv .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Course Catalogue Grid */
.course-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.course .lvl {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.course.c1 { border-top: var(--border-thick) solid var(--rad-green); }
.course.c1 .lvl { color: var(--rad-green); }
.course.c2 { border-top: var(--border-thick) solid var(--rad-magenta); }
.course.c2 .lvl { color: var(--rad-magenta); }
.course.c3 { border-top: var(--border-thick) solid var(--rad-gold); }
.course.c3 .lvl { color: var(--rad-gold); }

.badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--rad-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rad-line-strong);
}
.course h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.price {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--rad-navy);
  margin-top: 8px;
}
.price .was {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--rad-muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.price-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rad-magenta);
  margin-bottom: 16px;
}
.course ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.course li {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}
.course li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}
.course .btn {
  margin-top: auto;
  justify-content: center;
}

/* Accessible Agenda List (Dates Preview) */
.dates-band {
  background: var(--rad-bg-light);
}
.date-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.date-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.date-when {
  display: flex;
  flex-direction: column;
}
.date-when .d {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rad-navy);
  line-height: 1;
}
.date-when .mo {
  font-size: 0.8rem;
  color: var(--rad-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}
.date-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.date-info .meta {
  font-size: 0.9rem;
  color: var(--rad-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.date-info .mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.date-info .mode .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mode.zoom .pip { background: var(--rad-navy); }
.mode.inperson .pip { background: var(--rad-green); }
.mode.advice .pip { background: var(--rad-magenta); }

/* Structured Organization Profiles */
.team-stack {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.member {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--rad-line);
  background: var(--rad-bg-white);
}
.member .row {
  display: grid;
  grid-template-columns: 1fr;
}
.member .info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.member .info h3 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.member .info .role {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--rad-magenta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.member .info .bio {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.member .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--rad-line);
  padding-top: 12px;
  font-size: 0.85rem;
}
.member .pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--rad-navy);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

/* Structured Testimonials */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.tm {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.tm .quote {
  font-family: var(--font-headings);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--rad-gold);
}
.tm p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
}
.tm .who {
  font-weight: 700;
  color: var(--rad-navy);
  font-size: 0.95rem;
}
.tm .who span {
  display: block;
  font-weight: 400;
  color: var(--rad-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Standardized accessible inputs */
form {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.field {
  margin-bottom: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-weight: 700;
  color: var(--rad-navy);
  margin-bottom: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--rad-text);
  padding: 10px 12px;
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-sm);
  background: var(--rad-bg-white);
}
input::placeholder, textarea::placeholder {
  color: var(--rad-muted);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--rad-navy);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A0E24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Call to Action Band */
.cta-band {
  background: var(--rad-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 55ch;
}

/* Clean, Organized Footer */
footer {
  background: var(--rad-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 54px 0 24px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
}
.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-headings);
}
.foot-col a, .foot-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.foot-col a:hover {
  text-decoration: underline;
  color: #fff;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.foot-bottom a {
  color: rgba(255, 255, 255, 0.85);
}
.foot-bottom a + a {
  margin-left: 18px;
}
.foot-bottom a:hover {
  color: #fff;
}

/* Courses detail styles */
.course-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.cd {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cd-top {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid var(--rad-line);
}
.cd-badge {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cd.l1 .cd-badge { background: var(--rad-green); }
.cd.l2 .cd-badge { background: var(--rad-magenta); }
.cd.l3 .cd-badge { background: var(--rad-gold); color: #fff; }

.cd-badge .lv {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.cd-badge .lb {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
}
.cd-head h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.cd-price {
  text-align: right;
}
.cd-price .p {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rad-navy);
}
.cd-price .was {
  color: var(--rad-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}
.cd-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 24px;
}
.cd-body h4 {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--rad-muted);
  margin-bottom: 12px;
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.topic {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
}
.topic svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  stroke: var(--rad-navy);
}
.cd-side {
  background: var(--rad-bg-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--rad-line);
}
.cd-accred {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-green);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rad-navy);
  margin-bottom: 14px;
}
.cd-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rad-line);
  font-size: 0.85rem;
}
.cd-fact:last-of-type {
  border-bottom: 0;
}
.cd-fact .k {
  color: var(--rad-muted);
}
.cd-fact .v {
  color: var(--rad-navy);
  font-weight: 700;
}
.cd-teacher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rad-line);
}
.cd-teacher .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rad-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
}
.cd-teacher .tn {
  color: var(--rad-navy);
  font-weight: 700;
  font-size: 0.9rem;
}
.cd-teacher .tr {
  color: var(--rad-muted);
  font-size: 0.75rem;
}
.cd-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--rad-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cd-foot .note {
  font-size: 0.85rem;
  color: var(--rad-muted);
}

/* Calendar page specifics */
.cal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cal-month {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
}
.cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.cal-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-legend .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cal {
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--rad-bg-white);
}
.cal-list {
  margin-top: 48px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-dow {
  padding: 10px;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--rad-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--rad-line);
  background: var(--rad-bg-light);
}
.cal-cell {
  min-height: 100px;
  border-right: 1px solid var(--rad-line);
  border-bottom: 1px solid var(--rad-line);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell:nth-child(7n) {
  border-right: 0;
}
.cal-cell.empty {
  background: var(--rad-bg-light);
}
.cal-cell .dn {
  font-size: 0.72rem;
  color: var(--rad-muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    padding: 48px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content h1 {
    line-height: 1.3;
  }
  .trust-row {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
    gap: 10px;
  }
  .trust-row .trust-badge {
    align-self: center;
    margin-top: 6px;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .serv-grid, .course-grid, .tm-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .date-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .date-row .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .cd-top {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .cd-price {
    text-align: left;
  }
  .cd-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .cal-cell {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Brand colour distribution + previously missing components
   ========================================================= */

/* Stat numbers cycle through the brand palette */
.strip div:nth-child(1) .n { color: var(--rad-green); }
.strip div:nth-child(2) .n { color: var(--rad-magenta); }
.strip div:nth-child(3) .n { color: var(--rad-gold); }
.strip div:nth-child(4) .n { color: var(--rad-navy); }

/* About points: a coloured left accent per item */
.about-points .point:nth-child(1) { border-left-color: var(--rad-green); }
.about-points .point:nth-child(2) { border-left-color: var(--rad-magenta); }
.about-points .point:nth-child(3) { border-left-color: var(--rad-gold); }

/* Testimonial quote marks cycle through the palette */
.tm:nth-child(1) .quote { color: var(--rad-green); }
.tm:nth-child(2) .quote { color: var(--rad-magenta); }
.tm:nth-child(3) .quote { color: var(--rad-gold); }

/* Calendar event chips (were completely unstyled) */
.ev {
  display: block;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition);
}
.ev:hover { transform: translateY(-1px); filter: brightness(0.94); }
.ev .t { display: block; }
.ev .h { display: block; font-weight: 400; opacity: 0.9; }
.ev.green { background: var(--rad-green); }
.ev.magenta { background: var(--rad-magenta); }
.ev.violet { background: var(--rad-gold); }

/* Contact page layout (grid + detail rows were undefined) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci .ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rad-bg-light);
  color: var(--rad-navy);
}
.ci .ic svg { width: 22px; height: 22px; }
.ci:nth-child(1) .ic { color: var(--rad-green); }
.ci:nth-child(2) .ic { color: var(--rad-magenta); }
.ci:nth-child(3) .ic { color: var(--rad-gold); }
.ci:nth-child(4) .ic { color: var(--rad-navy); }
.ci h3 { font-size: 1.05rem; margin-bottom: 2px; }
.ci p { font-size: 0.95rem; }

/* Prototype note flag (used across pages) */
.proto-flag {
  font-size: 0.8rem;
  color: var(--rad-muted);
  margin-top: 14px;
  text-align: center;
}

/* Keep the contact grid single-column on small screens
   (this must come after the base .contact-grid rule above) */
@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Team member colour accents (per-member tint was undefined) */
.member .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.member .row {
  position: relative;
  z-index: 1;
}
.member.r .bg { background: linear-gradient(120deg, rgba(31, 168, 44, 0.06), rgba(31, 168, 44, 0.13)); }
.member.j .bg { background: linear-gradient(120deg, rgba(221, 24, 136, 0.06), rgba(221, 24, 136, 0.13)); }
.member.f .bg { background: linear-gradient(120deg, rgba(110, 39, 214, 0.06), rgba(110, 39, 214, 0.13)); }
.member.r .info .role { color: var(--rad-green); }
.member.j .info .role { color: var(--rad-magenta); }
.member.f .info .role { color: var(--rad-gold); }

/* Course detail checkmarks tinted to match each level */
.cd.l1 .topic svg { stroke: var(--rad-green); }
.cd.l2 .topic svg { stroke: var(--rad-magenta); }
.cd.l3 .topic svg { stroke: var(--rad-gold); }

/* Embedded location map on the contact page */
.map-embed {
  margin-top: 46px;
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Shown in place of the map until the visitor chooses to load it */
.map-consent {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--rad-bg-light);
  color: var(--rad-text);
}
.map-consent p {
  margin: 0;
  max-width: 34em;
}
.map-consent-address {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
}
.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 4px;
}
.map-consent-link {
  color: var(--rad-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Dates page: the live calendar (filled by js/dates.js) */
.dates-status {
  background: var(--rad-bg-light);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 720px;
}
.dates-status h2 { margin-bottom: 10px; }
.dates-status p + p { margin-top: 10px; }
.cal-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.cal-nav .btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.cal-legend .pip.green { background: var(--rad-green); }
.cal-legend .pip.magenta { background: var(--rad-magenta); }
.cal-legend .pip.off { background: var(--rad-muted); }
.cal-cell.today { box-shadow: inset 0 0 0 3px var(--rad-navy); }
.cal-cell.today .dn { color: var(--rad-navy); }
.ev.cancelled { background: var(--rad-bg-light); color: var(--rad-muted); border: 1px dashed var(--rad-muted); }
.ev.cancelled:hover { transform: none; filter: none; }
.date-row.cancelled h3 { color: var(--rad-muted); }
/* Classes and events that have already happened: grey, so today and later stand out. */
.ev.past { background: var(--rad-bg-light); color: var(--rad-muted); border: 1px solid var(--rad-muted); }
.ev.past:hover { transform: none; filter: none; }
.cal-legend .pip.past { background: var(--rad-bg-light); border: 1px solid var(--rad-muted); }
.cal-cell.past .dn { color: var(--rad-muted); }
.date-row.past h3 { color: var(--rad-muted); }
.date-about { margin-top: 6px; font-size: 0.95rem; }
/* Phones: the month grid shows coloured dots only. The list below it has the details. */
@media (max-width: 600px) {
  .cal-cell { min-height: 54px; padding: 4px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
  .cal-cell .dn { flex-basis: 100%; }
  .cal .ev { width: 10px; height: 10px; padding: 0; border-radius: 50%; font-size: 0; }
  .cal .ev .t, .cal .ev .h { display: none; }
  .cal-dow { padding: 8px 2px; }
}

/* =========================================================
   Smooth page changes and loading: no jumps, no flashes
   ========================================================= */

/* Moving between pages fades gently (Chrome, Edge and Safari) and the header stays still.
   Other browsers simply change page as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
header { view-transition-name: site-header; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 160ms; }
::view-transition-group(site-header),
::view-transition-new(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }

/* Things the page fills in after it is on screen fade in, rather than appearing all at once. */
@keyframes fade-in { from { opacity: 0; } }
.fade-in,
.fill-in .ev,
.fill-in .date-row { animation: fade-in 200ms ease-out both; }

/* "Loading..." only shows if loading is slow, so a quick load shows nothing in between. */
@keyframes appear-late { from { visibility: hidden; } to { visibility: visible; } }
.loading-note { animation: appear-late 0s linear 800ms both; }

/* The staff notice slides open if it arrives after the page is on screen, so nothing jumps. */
@keyframes notice-in { from { max-height: 0; padding-top: 0; padding-bottom: 0; } to { max-height: 12em; } }
.site-notice.slide-in { overflow: hidden; animation: notice-in 300ms ease-out backwards; }

/* Dates page: the calendar keeps its size before js/dates.js has drawn it. The month name has a
   fixed width and the buttons sit next to it, so nothing moves when the colour key fills in. */
.cal-toolbar { justify-content: flex-start; }
.cal-month { min-width: 8.6em; }
.cal-legend { flex: 1 1 260px; justify-content: flex-end; }
.cal-grid:empty { min-height: 543px; }
.cal-month:empty::before,
.cal-legend:empty::before { content: "\00a0"; }
.date-list:empty { min-height: 200px; }
@media (max-width: 600px) {
  .cal-grid:empty { min-height: 309px; }
}

/* Book page: space is kept for the form while the courses load. */
.book-section.is-loading > .wrap { min-height: 640px; }

/* =========================================================
   Book page (book.html, design A): three step cards on the left, the booking summary on the
   right, register your interest below. Filled in by js/book.js.
   ========================================================= */
.book-page {
  background: #F6F7FB;
  color: #131A3D;
  font-size: 16px;
  line-height: 1.4;
}
.book-page h1,
.book-page h2 {
  color: #131A3D;
  font-weight: 700;
  margin: 0;
}
.book-page a { color: #5419A8; }
.book-page a:hover { color: #3E1280; }

/* Heading area */
.book-hero { padding: 48px 0 32px; }
.book-hero .crumbs {
  margin: 0 0 12px;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4A5169;
}
.book-hero .crumbs a { color: #4A5169; }
.book-hero h1 {
  font-size: clamp(34px, 8vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.book-hero .lead {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: #4A5169;
}

.book-section { padding: 0 0 72px; }
.book-section .loading-note { font-size: 18px; color: #4A5169; }

/* The two columns. Below 920px the summary goes under the step cards. */
form.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.book-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Step cards */
.book-card {
  background: #FFFFFF;
  border: 1px solid #E3E5EF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(19, 26, 61, 0.04);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step-head h2 { font-size: 21px; line-height: 1.25; }
.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.step-num.step-green { background: #E6F6E8; color: #146B1C; }
.step-num.step-pink { background: #FCE7F3; color: #A3105F; }
.step-num.step-purple { background: #EFE7FC; color: #5419A8; }

/* Course and group choices. The real radio buttons stay, for keyboards and screen readers. */
.course-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.group-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-page .opt {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 19px;
  border: 1px solid #CFD3E1;
  border-radius: 14px;
  background: #FFFFFF;
  color: #131A3D;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.book-page .opt:hover { border-color: #6E27D6; }
.book-page .opt.sel {
  padding: 18px;
  border: 2px solid #6E27D6;
  background: #F7F2FE;
}
.book-page .opt.disabled {
  padding: 18px;
  border: 1px dashed #CFD3E1;
  background: #F6F7FB;
  color: #4A5169;
  cursor: not-allowed;
}
.book-page .opt:has(input:focus-visible) {
  outline: 3px solid #6E27D6;
  outline-offset: 2px;
}
.book-page .opt input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #6E27D6;
  cursor: inherit;
}
.book-page .opt input:focus-visible { outline: none; }
.opt-course { flex-direction: column; }
.opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.opt-course .opt-title { font-size: 15px; font-weight: 700; }
.opt-price {
  font-family: var(--font-headings);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.opt-price .was,
.summary-total .was {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #4A5169;
  text-decoration: line-through;
}
.opt-course .opt-detail { font-size: 14px; color: #4A5169; }
.opt-pill {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EEF0F6;
  color: #4A5169;
  font-size: 12px;
  font-weight: 600;
}
.opt-pill.few { background: #FCE7F3; color: #A3105F; }
.opt-group {
  align-items: flex-start;
  gap: 14px;
}
.opt-group input { margin-top: 2px; }
.opt-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.opt-group .opt-title { font-size: 16px; font-weight: 700; }
.opt-group .opt-detail { font-size: 15px; color: #4A5169; }

/* Form fields (the booking form and the register-your-interest form) */
.book-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.book-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.book-field-row > .book-field { flex: 1 1 220px; }
.book-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.book-page .book-field label {
  margin: 0;
  color: #131A3D;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}
.book-field .optional { font-weight: 500; color: #4A5169; }
.book-page .hint,
.book-page .book-small {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4A5169;
}
.book-page input[type="text"],
.book-page input[type="email"],
.book-page input[type="tel"],
.book-page select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #CFD3E1;
  border-radius: 10px;
  background-color: #FFFFFF;
  color: #131A3D;
  font-size: 16px;
}
.book-page select { padding-right: 36px; }
.book-page input:focus,
.book-page select:focus {
  outline: 3px solid #C9B3F5;
  outline-offset: 1px;
  border-color: #6E27D6;
}
.book-page input[aria-invalid="true"],
.book-page select[aria-invalid="true"] { border-color: #B00020; }
.book-page .field-error {
  margin: 0;
  color: #B00020;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.book-card > .field-error { margin-top: 12px; }

/* Tickboxes: 18+, Booking Terms and starting early */
.book-tick-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.book-page .book-tick {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #F6F7FB;
  color: #131A3D;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-transform: none;
  cursor: pointer;
}
.book-page .book-tick input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  accent-color: #6E27D6;
}
.book-page .book-tick input:focus {
  outline: 3px solid #6E27D6;
  outline-offset: 2px;
}
.book-page .book-tick:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px #B00020; }

/* Summary card */
.book-summary {
  position: sticky;
  top: 112px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E3E5EF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(19, 26, 61, 0.06);
}
.summary-stripe {
  display: flex;
  height: 4px;
}
.summary-stripe span { flex: 1; }
.summary-stripe span:nth-child(1) { background: #1FA82C; }
.summary-stripe span:nth-child(2) { background: #DD1888; }
.summary-stripe span:nth-child(3) { background: #6E27D6; }
.summary-head { padding: 24px 24px 8px; }
.summary-head h2 { font-size: 21px; line-height: 1.25; }
.summary-head p { margin: 4px 0 0; font-size: 14px; color: #4A5169; }
.summary-list { margin: 0; padding: 8px 24px 16px; }
.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #EEF0F6;
  font-size: 15px;
}
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: #4A5169; }
.summary-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 24px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #F6F7FB;
}
.summary-total .tl { font-size: 16px; font-weight: 700; }
.summary-total .tv {
  font-family: var(--font-headings);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}
.summary-cta { padding: 20px 24px 24px; }
.turnstile-box:not(:empty) { margin-bottom: 12px; }
.book-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: #6E27D6;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(110, 39, 214, 0.30);
  transition: background var(--transition);
}
.book-pay:hover { background: #561EB1; }
.book-pay:focus-visible { outline: 4px solid #131A3D; outline-offset: 3px; }
.book-pay:disabled { opacity: 0.7; cursor: wait; }
.book-pay svg { flex: 0 0 auto; }
.summary-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4A5169;
}
.summary-notes li { display: flex; gap: 12px; }
.note-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-icon.note-green { background: #E6F6E8; color: #146B1C; }
.note-icon.note-pink { background: #FCE7F3; color: #A3105F; }
.note-icon.note-purple { background: #EFE7FC; color: #5419A8; }

/* Messages */
.book-page .book-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border: 2px solid #B00020;
  border-radius: 10px;
  background: #FFF0F2;
  color: #131A3D;
  font-size: 15px;
  font-weight: 700;
}
.book-page .book-notice {
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid #E3E5EF;
  border-left: 4px solid #6E27D6;
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
}
.book-status {
  max-width: 720px;
  padding: 28px;
  border: 1px solid #E3E5EF;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(19, 26, 61, 0.04);
}
.book-status h2 { font-size: 24px; margin-bottom: 10px; }
.book-status p + p { margin-top: 10px; }

/* Register your interest */
.book-interest {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  margin-top: 40px;
  padding: 32px;
  border: 1px solid #E3E5EF;
  border-radius: 16px;
  background-color: #FCE7F3C5;
}
.interest-intro { flex: 1 1 300px; min-width: 0; }
.interest-eyebrow {
  margin: 0 0 8px;
  color: #A3105F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.interest-intro h2 { font-size: 28px; line-height: 1.2; }
.interest-intro h2:focus { outline: none; }
.interest-intro p:last-child {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4A5169;
}
.interest-body { flex: 1.4 1 420px; min-width: 0; }
.book-interest form {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.book-interest .turnstile-box:not(:empty) { margin-bottom: 0; }
.book-interest .book-notice { margin: 0; }
.book-outline-btn {
  align-self: flex-start;
  height: 48px;
  padding: 0 22px;
  border: 2px solid #131A3D;
  border-radius: 12px;
  background: #FFFFFF;
  color: #131A3D;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.book-outline-btn:hover { background: #F6F7FB; }
.book-outline-btn:disabled { opacity: 0.7; cursor: wait; }
.book-interest .book-alert { margin-top: 0; }

@media (max-width: 920px) {
  form.book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-summary { position: static; }
}
@media (max-width: 600px) {
  .book-hero { padding: 32px 0 24px; }
  .book-card,
  .book-status { padding: 20px; }
  .book-interest { gap: 24px; padding: 24px 20px; }
  .interest-intro h2 { font-size: 24px; }
}
