/* =========================================================================
   Components
   Header, navigation, search, buttons, hero, cards, rails, forms, footer,
   assistant. The system is dark-first; every surface here steps up from the
   page ground rather than sitting on white.
   ========================================================================= */

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--rs-z-header);
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0) 100%);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--rs-duration) var(--rs-ease),
    border-color var(--rs-duration) var(--rs-ease),
    backdrop-filter var(--rs-duration) var(--rs-ease);
}

/* Transparent over the hero, solid the moment the page moves — the header has
   to be readable over a video without ever hiding it. */
.site-header.is-scrolled {
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--rs-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--rs-space-5);
  min-height: var(--rs-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-3);
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand__logo {
  height: 2.25rem;
  width: auto;
  transition: transform var(--rs-duration) var(--rs-ease);
}

.brand:hover .brand__logo {
  transform: scale(1.04) rotate(-3deg);
}

/* The mark carries the robot, the wordmark carries the name — set in the
   display face so the logo belongs to the same system as the headings. */
.brand__name {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-bold);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.drawer__head .brand__name,
.site-footer .brand__name {
  font-size: 1.5rem;
}

.main-nav {
  margin-left: var(--rs-space-4);
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--rs-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__link {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  font-family: var(--rs-font-display);
  font-size: 1.0625rem;
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--rs-duration-fast) var(--rs-ease);
}

/* An underline that grows from the middle: the same "it responds to me"
   feedback the reference site gives, at a fraction of the weight. */
.main-nav__link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--rs-lime);
  transform: scaleX(0);
  transition: transform var(--rs-duration) var(--rs-ease-out);
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: #fff;
}

.main-nav__link:hover::after,
.main-nav__link[aria-current='page']::after {
  transform: scaleX(1);
}

.main-nav__link[aria-current='page'] {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  margin-left: auto;
}

.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.8);
  transition:
    background-color var(--rs-duration-fast) var(--rs-ease),
    color var(--rs-duration-fast) var(--rs-ease);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-border-strong);
  color: #fff;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 68rem) {
  .main-nav,
  .header-actions .lang-switcher,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ----------------------------------------------------------------- drawer */
/* Full-screen on a phone: large targets, one column, the CTA never buried. */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--rs-z-drawer);
  visibility: hidden;
}

.drawer[data-open='true'] {
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--rs-duration) var(--rs-ease);
}

.drawer[data-open='true'] .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(30rem, 100vw);
  background: var(--rs-surface);
  border-left: 1px solid var(--rs-border);
  box-shadow: var(--rs-shadow-lg);
  padding: var(--rs-space-5) var(--rs-space-5) calc(var(--rs-space-8) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--rs-duration) var(--rs-ease-out);
}

.drawer[data-open='true'] .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-4);
  color: #fff;
}

.drawer__close {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--rs-border-strong);
  color: #fff;
}

.drawer__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--rs-space-4) var(--rs-space-1);
  border-bottom: 1px solid var(--rs-border);
  font-family: var(--rs-font-display);
  font-size: 1.75rem;
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  transition: color var(--rs-duration-fast) var(--rs-ease);
}

.drawer__list a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--rs-duration-fast) var(--rs-ease),
    transform var(--rs-duration-fast) var(--rs-ease);
}

.drawer__list a:hover,
.drawer__list a:focus-visible {
  color: var(--rs-lime);
}

.drawer__list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------------------------------------------------- language */

.lang-switcher {
  position: relative;
}

.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
  font-family: var(--rs-font-display);
  font-size: 0.95rem;
  font-weight: var(--rs-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    color var(--rs-duration-fast) var(--rs-ease),
    background-color var(--rs-duration-fast) var(--rs-ease);
}

.lang-switcher__button:hover {
  border-color: var(--rs-lime);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 12rem;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow-md);
  padding: var(--rs-space-2);
  list-style: none;
  margin: 0;
  display: none;
}

.lang-switcher[data-open='true'] .lang-switcher__menu {
  display: block;
  animation: rs-pop var(--rs-duration) var(--rs-ease-out);
}

@keyframes rs-pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lang-switcher__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-3);
  padding: var(--rs-space-3);
  border-radius: var(--rs-radius-sm);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--rs-text-sm);
}

.lang-switcher__menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-switcher__menu a[aria-current='true'] {
  color: var(--rs-lime);
  font-weight: var(--rs-weight-semibold);
}

.lang-switcher__code {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  color: var(--rs-text-subtle);
}

.drawer .lang-switcher__menu {
  position: static;
  display: block;
  box-shadow: none;
  border: none;
  background: none;
  padding: 0;
  min-width: 0;
}

/* --------------------------------------------------------------- search */

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--rs-z-dialog);
  visibility: hidden;
}

.search-dialog[data-open='true'] {
  visibility: visible;
}

.search-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--rs-duration) var(--rs-ease);
}

.search-dialog[data-open='true'] .search-dialog__backdrop {
  opacity: 1;
}

.search-dialog__panel {
  position: relative;
  width: min(60rem, calc(100vw - 2rem));
  margin: min(12vh, 6rem) auto 0;
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-lg);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition:
    transform var(--rs-duration) var(--rs-ease-out),
    opacity var(--rs-duration) var(--rs-ease-out);
  max-height: min(76vh, 44rem);
  display: flex;
  flex-direction: column;
}

.search-dialog[data-open='true'] .search-dialog__panel {
  transform: none;
  opacity: 1;
}

.search-dialog__bar {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  padding: var(--rs-space-4) var(--rs-space-5);
  border-bottom: 1px solid var(--rs-border);
  color: var(--rs-text-muted);
}

.search-dialog__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--rs-font-display);
  font-size: 1.6rem;
  font-weight: var(--rs-weight-semibold);
  color: #fff;
  padding-block: 0.35rem;
}

.search-dialog__input::placeholder {
  color: var(--rs-text-subtle);
}

.search-dialog__input:focus {
  outline: none;
}

/* The browser's own clear button sat beside the dialog's close control and
   read as a second, competing X. */
.search-dialog__input::-webkit-search-cancel-button,
.filters__search input::-webkit-search-cancel-button {
  display: none;
}

.search-dialog__results {
  overflow-y: auto;
  padding: var(--rs-space-3);
  display: grid;
  gap: 2px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: var(--rs-space-4);
  padding: var(--rs-space-3);
  border-radius: var(--rs-radius);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--rs-duration-fast) var(--rs-ease);
}

.search-result:hover,
.search-result[data-active='true'] {
  background: var(--rs-surface-3);
  color: #fff;
}

.search-result__thumb {
  width: 5.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rs-radius-sm);
  background: var(--rs-surface-3);
  flex-shrink: 0;
}

.search-result__body {
  min-width: 0;
}

.search-result__kind {
  display: block;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-xs);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
  color: var(--rs-lime);
}

.search-result__title {
  display: block;
  font-family: var(--rs-font-display);
  font-size: 1.25rem;
  font-weight: var(--rs-weight-bold);
  line-height: 1.2;
}

.search-result__summary {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-dialog__empty,
.search-dialog__hint {
  padding: var(--rs-space-6);
  text-align: center;
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rs-space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--rs-radius-pill);
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-bold);
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition:
    transform var(--rs-duration-fast) var(--rs-ease),
    background-color var(--rs-duration-fast) var(--rs-ease),
    border-color var(--rs-duration-fast) var(--rs-ease),
    color var(--rs-duration-fast) var(--rs-ease),
    box-shadow var(--rs-duration-fast) var(--rs-ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* One dominant action on the site, and it is always this colour. */
.btn--primary {
  background: var(--rs-lime);
  color: #05070c;
  box-shadow: 0 6px 24px rgba(214, 251, 35, 0.24);
}

.btn--primary:hover {
  background: var(--rs-lime-bright);
  color: #05070c;
  box-shadow: 0 10px 30px rgba(214, 251, 35, 0.38);
}

.btn--secondary {
  background: var(--rs-blue);
  color: #05070c;
}

.btn--secondary:hover {
  background: var(--rs-blue-bright);
  color: #05070c;
}

.btn--outline {
  border-color: var(--rs-border-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline:hover {
  border-color: var(--rs-lime);
  color: var(--rs-lime);
  background: rgba(214, 251, 35, 0.08);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--text {
  padding: 0.4rem 0;
  color: var(--rs-lime);
  border: none;
}

.btn--text:hover {
  color: var(--rs-lime-bright);
  transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.25rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--rs-font-display);
  font-size: 1.0625rem;
  font-weight: var(--rs-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rs-lime);
  text-decoration: none;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--rs-duration-fast) var(--rs-ease);
}

.link-arrow:hover {
  color: var(--rs-lime-bright);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------- hero */
/*
 * The site's one full-bleed moment: a video or photograph edge to edge, the
 * copy anchored bottom-left over a scrim, and the slides advancing on their
 * own until someone touches them.
 */

.hero {
  position: relative;
  background: var(--rs-grad-hero);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  /* Pulled under the transparent header. */
  margin-top: calc(var(--rs-header-h) * -1);
}

.hero__viewport {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  /* An `auto` grid track is sized to max-content, and a slide's copy is a long
     unbroken paragraph -- without this the hero widened the whole document on
     a phone and pushed the header controls off screen. */
  grid-template-columns: minmax(0, 1fr);
}

.hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  position: relative;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--rs-duration-slow) var(--rs-ease),
    visibility var(--rs-duration-slow) var(--rs-ease);
}

.hero-slide[data-active='true'] {
  opacity: 1;
  visibility: visible;
}

.hero__media,
.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media video,
.hero__media img,
.hero-slide__media video,
.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

/* A slow drift on the still slides so a photograph is never quite static. */
.hero-slide[data-active='true'] .hero-slide__media img {
  animation: rs-kenburns 14s var(--rs-ease) forwards;
}

@keyframes rs-kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide[data-active='true'] .hero-slide__media img {
    animation: none;
  }
}

.hero__overlay,
.hero-slide__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 7, 12, 0.9) 0%,
      rgba(5, 7, 12, 0.4) 55%,
      rgba(5, 7, 12, 0.2) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 7, 12, 0.95) 0%,
      rgba(5, 7, 12, 0.1) 45%,
      rgba(5, 7, 12, 0.55) 100%
    );
}

.hero__inner,
.hero-slide__inner {
  padding-block: calc(var(--rs-header-h) + var(--rs-space-8)) var(--rs-space-10);
  max-width: 54rem;
  width: 100%;
}

.hero__title,
.hero-slide__title {
  font-size: var(--rs-text-5xl);
  color: #fff;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero__title em {
  font-style: normal;
  color: var(--rs-lime);
}

.hero__tagline,
.hero-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
  font-size: var(--rs-text-sm);
  color: var(--rs-lime);
  margin-bottom: var(--rs-space-4);
}

.hero__subtitle,
.hero-slide__text {
  font-size: var(--rs-text-lg);
  color: rgba(255, 255, 255, 0.86);
  margin-top: var(--rs-space-5);
  max-width: 40rem;
}

.hero__actions,
.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-4);
  margin-top: var(--rs-space-7);
}

/* Slide controls sit on the same baseline as the copy on desktop and move
   below it on a phone, where a thumb — not a cursor — drives them. */
.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--rs-space-6);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--rs-space-3);
  padding-inline: var(--rs-gutter);
  max-width: var(--rs-container);
  margin-inline: auto;
  pointer-events: none;
}

.hero__dots {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.hero__dot {
  width: 2.25rem;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color var(--rs-duration) var(--rs-ease);
}

.hero__dot[aria-current='true'] {
  background: var(--rs-lime);
}

.hero__arrows {
  display: none;
  gap: var(--rs-space-2);
  pointer-events: auto;
}

@media (hover: hover) and (min-width: 48rem) {
  .hero__arrows {
    display: flex;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-6);
  margin-top: var(--rs-space-8);
  padding-top: var(--rs-space-6);
  border-top: 1px solid var(--rs-border-dark);
}

.hero__meta-item strong {
  display: block;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-2xl);
  color: #fff;
}

.hero__meta-item span {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

@media (max-width: 48rem) {
  .hero__viewport {
    min-height: min(86vh, 40rem);
  }

  .hero__inner,
  .hero-slide__inner {
    padding-block: calc(var(--rs-header-h) + var(--rs-space-6)) calc(var(--rs-space-10) + 1rem);
  }

  .hero__controls {
    justify-content: center;
  }
}

/* ------------------------------------------------------------- page header */

.page-header {
  position: relative;
  background: var(--rs-grad-hero);
  color: #fff;
  padding-block: calc(var(--rs-header-h) * 0.5 + var(--rs-space-7)) var(--rs-space-7);
  overflow: hidden;
  isolation: isolate;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rs-glow-blue), var(--rs-glow-lime);
}

.page-header h1 {
  color: #fff;
  font-size: var(--rs-text-3xl);
}

.page-header__lead {
  margin-top: var(--rs-space-3);
  font-size: var(--rs-text-lg);
  color: var(--rs-text-muted);
  max-width: 46rem;
}

/* Detail pages: copy on the left, the entity's own photograph on the right —
   the breadcrumbs stay a full-width row above both. */
.page-header__entity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-6) var(--rs-space-8);
  justify-content: space-between;
}

.page-header__entity > div {
  order: 1;
  flex: 1 1 min(100%, 30rem);
  min-width: 0;
}

.page-header__entity > .page-header__image,
.page-header__entity > .page-header__icon {
  order: 2;
}

.page-header__icon {
  color: var(--rs-lime);
}

.page-header__image {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rs-radius-lg);
  border: 1px solid var(--rs-border);
  flex-shrink: 0;
}

.breadcrumbs ol {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--rs-space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--rs-space-3);
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.breadcrumbs a {
  color: var(--rs-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--rs-lime);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--rs-space-2);
  opacity: 0.5;
}

/* ------------------------------------------------------------------ cards */
/*
 * The discovery card: image first and large, a tight metadata line a parent
 * can read at a glance, and a heading in the display face. The whole card is
 * the target, it lifts on hover, and the image pushes in behind the frame.
 */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  height: 100%;
  transition:
    transform var(--rs-duration) var(--rs-ease-out),
    border-color var(--rs-duration) var(--rs-ease),
    box-shadow var(--rs-duration) var(--rs-ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--rs-shadow-lift);
}

.card__media,
.card__tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, var(--accent, var(--rs-blue)), var(--rs-surface-3));
  border-radius: 0;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--rs-duration-slow) var(--rs-ease-out);
}

.card:hover .card__media img {
  transform: scale(1.07);
}

/* The image is only ever half the card's contrast budget; the scrim keeps the
   badge and the frame's own edge readable over any photograph. */
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.35) 0%, rgba(5, 7, 12, 0) 45%);
  pointer-events: none;
}

.card__icon {
  color: #fff;
  opacity: 0.9;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-3);
  padding: var(--rs-space-5);
  flex: 1;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-2) var(--rs-space-3);
  margin: 0;
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.card__meta > span:not(.card__tag) {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__tag {
  font-family: var(--rs-font-display);
  font-size: 0.8125rem;
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  color: #05070c;
  background: var(--accent, var(--rs-lime));
  padding: 0.15rem 0.6rem;
  border-radius: var(--rs-radius-pill);
}

.card__title {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: 1.6rem;
  line-height: 1.05;
  color: #fff;
  transition: color var(--rs-duration-fast) var(--rs-ease);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card--linked .card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card:hover .card__title {
  color: var(--rs-lime);
}

.card__summary {
  margin: 0;
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  margin: auto 0 0;
  padding-top: var(--rs-space-3);
  border-top: 1px solid var(--rs-border);
  font-family: var(--rs-font-display);
  font-size: 1.35rem;
  font-weight: var(--rs-weight-bold);
  color: var(--rs-lime);
}

.card__price span {
  font-family: var(--rs-font-sans);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-regular);
  color: var(--rs-text-muted);
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--rs-space-3);
  margin-top: auto;
  padding-top: var(--rs-space-3);
  border-top: 1px solid var(--rs-border);
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.card__badge {
  position: absolute;
  top: var(--rs-space-3);
  left: var(--rs-space-3);
  z-index: 1;
  padding: 0.25rem 0.7rem;
  border-radius: var(--rs-radius-pill);
  background: rgba(5, 7, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: 0.8125rem;
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__media img {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
  .card:hover .card__media img {
    transform: none;
  }
}

/* ------------------------------------------------------------ video cards */

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-3);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: #fff;
  width: 100%;
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--rs-radius);
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border);
  transition:
    border-color var(--rs-duration) var(--rs-ease),
    transform var(--rs-duration) var(--rs-ease-out),
    box-shadow var(--rs-duration) var(--rs-ease);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rs-duration-slow) var(--rs-ease-out);
}

.video-card:hover .video-card__thumb {
  border-color: var(--rs-lime);
  transform: translateY(-4px);
  box-shadow: var(--rs-shadow-lift);
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.06);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(5, 7, 12, 0.55), rgba(5, 7, 12, 0.05));
}

.video-card__play span {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 12, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  transition:
    background-color var(--rs-duration) var(--rs-ease),
    border-color var(--rs-duration) var(--rs-ease),
    color var(--rs-duration) var(--rs-ease),
    transform var(--rs-duration) var(--rs-ease-out);
}

.video-card:hover .video-card__play span {
  background: var(--rs-lime);
  border-color: var(--rs-lime);
  color: #05070c;
  transform: scale(1.08);
}

.video-card__title {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: 1.25rem;
  font-weight: var(--rs-weight-bold);
  line-height: 1.15;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card:hover .video-card__title {
  color: var(--rs-lime);
}

.video-card__source {
  font-size: var(--rs-text-xs);
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  color: var(--rs-text-subtle);
}

/* -------------------------------------------------------------- video modal */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--rs-z-dialog);
  visibility: hidden;
  display: grid;
  place-items: center;
  padding: var(--rs-space-5);
}

.video-modal[data-open='true'] {
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--rs-duration) var(--rs-ease);
}

.video-modal[data-open='true'] .video-modal__backdrop {
  opacity: 1;
}

.video-modal__panel {
  position: relative;
  width: min(72rem, 100%);
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform var(--rs-duration) var(--rs-ease-out),
    opacity var(--rs-duration) var(--rs-ease-out);
}

.video-modal[data-open='true'] .video-modal__panel {
  transform: none;
  opacity: 1;
}

.video-modal__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rs-border-strong);
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal__title {
  margin-top: var(--rs-space-4);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-xl);
  color: #fff;
}

.video-modal__close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rs-border-strong);
  background: var(--rs-surface-2);
  color: #fff;
}

.video-modal__close:hover {
  background: var(--rs-lime);
  color: #05070c;
  border-color: var(--rs-lime);
}

@media (max-width: 48rem) {
  .video-modal {
    padding: var(--rs-space-3);
  }

  .video-modal__close {
    top: -3rem;
    right: 0;
  }
}

/* ---------------------------------------------------------------- tiles */
/*
 * The four-concept and eight-discipline blocks. Not an icon grid: a tile with
 * its own ground, an accent glow that answers the pointer, and the icon large
 * enough to read as a graphic rather than a bullet.
 */

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-3);
  padding: var(--rs-space-6);
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--rs-duration) var(--rs-ease-out),
    border-color var(--rs-duration) var(--rs-ease),
    background-color var(--rs-duration) var(--rs-ease);
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    80% 80% at 0% 0%,
    color-mix(in srgb, var(--accent, var(--rs-blue)) 22%, transparent),
    transparent 70%
  );
  opacity: 0.5;
  transition: opacity var(--rs-duration) var(--rs-ease);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent, var(--rs-blue)) 55%, transparent);
}

.feature:hover::before {
  opacity: 1;
}

.feature__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--rs-radius);
  display: grid;
  place-items: center;
  background: var(--accent-grad, var(--rs-grad-blue));
  color: #05070c;
}

.feature__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}

.feature p {
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
}

.section--dark .feature,
.section--subtle .feature {
  background: var(--rs-surface-2);
}

.section--dark .feature p {
  color: var(--rs-text-muted);
}

.feature--compact {
  padding: var(--rs-space-4);
  gap: var(--rs-space-2);
}

.feature--compact .feature__icon {
  width: 2.25rem;
  height: 2.25rem;
}

.feature--compact .feature__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.feature--compact h3 {
  font-size: 1.25rem;
}

.feature--compact p {
  font-size: var(--rs-text-sm);
  margin: 0;
}

/* A calmer variant for the parents' section: same system, lower motion. */
.feature--calm {
  background: var(--rs-surface-1);
}

.feature--calm:hover {
  transform: none;
}

.feature--calm p {
  color: var(--rs-text-muted);
  font-size: var(--rs-text-base);
}

/* --------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--rs-radius-pill);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rs-border);
  color: #fff;
  white-space: nowrap;
}

.badge--beginner,
.badge--open {
  background: var(--rs-success-bg);
  color: var(--rs-success);
  border-color: rgba(88, 224, 139, 0.35);
}

.badge--intermediate,
.badge--waitlist {
  background: var(--rs-warning-bg);
  color: var(--rs-warning);
  border-color: rgba(255, 200, 87, 0.35);
}

.badge--advanced,
.badge--full,
.badge--closed {
  background: var(--rs-danger-bg);
  color: var(--rs-danger);
  border-color: rgba(255, 107, 107, 0.35);
}

.badge--brand {
  background: var(--rs-info-bg);
  color: var(--rs-blue-bright);
  border-color: rgba(41, 182, 246, 0.35);
}

.badge--accent {
  background: rgba(255, 107, 53, 0.16);
  color: #ff9a6b;
  border-color: rgba(255, 107, 53, 0.35);
}

.badge--lime {
  background: rgba(214, 251, 35, 0.16);
  color: var(--rs-lime);
  border-color: rgba(214, 251, 35, 0.35);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.empty-state {
  padding: var(--rs-space-8) var(--rs-space-5);
  text-align: center;
  color: var(--rs-text-muted);
  border: 2px dashed var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
}

/* ------------------------------------------------------- search affordance */
/* Worn by the search button in the mobile menu. */

.filters__search {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  padding: 0.6rem 1.1rem;
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
  color: var(--rs-text-muted);
  max-width: 28rem;
}

.filters__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding-block: 0.3rem;
}

.filters__search input:focus {
  outline: none;
}

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--rs-space-5);
}

.stat {
  text-align: center;
  padding: var(--rs-space-5) var(--rs-space-3);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border);
}

.stat__value {
  display: block;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-3xl);
  font-weight: var(--rs-weight-bold);
  color: var(--rs-lime);
  line-height: 1;
}

.stat__label {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

/* -------------------------------------------------------------- ecosystem */

.pillar {
  position: relative;
  padding: var(--rs-space-6);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border);
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--accent-grad, var(--rs-grad-blue));
}

.pillar__step {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wider);
  color: var(--accent, var(--rs-lime));
  text-transform: uppercase;
}

.pillar h3 {
  margin-block: var(--rs-space-2) var(--rs-space-3);
}

.pillar p {
  color: var(--rs-text-muted);
}

/* ------------------------------------------------------------------ steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--rs-space-5);
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rs-lime);
  color: #05070c;
  font-family: var(--rs-font-display);
  font-size: 1.25rem;
  font-weight: var(--rs-weight-bold);
}

.steps h3 {
  font-size: var(--rs-text-lg);
  margin-bottom: var(--rs-space-2);
}

.steps p {
  color: var(--rs-text-muted);
}

.steps--compact {
  gap: var(--rs-space-4);
}

/* ---------------------------------------------------------------- details */

.accordion {
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: var(--rs-surface-1);
  overflow: hidden;
}

.accordion + .accordion {
  margin-top: var(--rs-space-3);
}

.accordion summary {
  cursor: pointer;
  padding: var(--rs-space-4) var(--rs-space-5);
  font-family: var(--rs-font-display);
  font-size: 1.25rem;
  font-weight: var(--rs-weight-bold);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-4);
  color: #fff;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rs-lime);
  transition: transform var(--rs-duration) var(--rs-ease);
}

.accordion[open] summary::after {
  transform: rotate(45deg);
}

.accordion__body {
  padding: 0 var(--rs-space-5) var(--rs-space-5);
  color: var(--rs-text-muted);
}

/* ------------------------------------------------------------------ table */

.spec-list {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  overflow: hidden;
}

.spec-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--rs-space-3);
  padding: var(--rs-space-3) var(--rs-space-4);
  background: var(--rs-surface-1);
}

.spec-list li:nth-child(odd) {
  background: var(--rs-surface-2);
}

.spec-list dt,
.spec-list__key {
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
}

.spec-list__value {
  font-weight: var(--rs-weight-semibold);
  text-align: right;
  color: #fff;
}

.table-scroll,
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
}

.stage-table,
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 22rem;
}

.stage-table th,
.stage-table td,
.table th,
.table td {
  padding: var(--rs-space-3) var(--rs-space-4);
  vertical-align: top;
  font-weight: var(--rs-weight-regular);
}

.stage-table thead th,
.table thead th {
  background: var(--rs-surface-2);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--rs-tracking-wide);
  color: var(--rs-text-muted);
}

.stage-table tbody tr + tr,
.stage-table tfoot tr,
.table tbody tr + tr {
  border-top: 1px solid var(--rs-border);
}

.stage-table tbody th strong {
  display: block;
  font-weight: var(--rs-weight-semibold);
  color: #fff;
}

.stage-table tbody th span {
  display: block;
  margin-top: var(--rs-space-1);
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
}

.stage-table__minutes {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stage-table tfoot th,
.stage-table tfoot td {
  font-weight: var(--rs-weight-semibold);
  background: var(--rs-surface-2);
}

.stage-list__heading {
  margin: 0;
}

/* ------------------------------------------------------------------ forms */
/*
 * The booking form is the one place on the site that must feel calm rather
 * than loud: large fields on a lifted surface, a loud focus ring, and nothing
 * required hidden behind a disclosure.
 */

.form {
  display: grid;
  gap: var(--rs-space-6);
}

.form__grid {
  display: grid;
  gap: var(--rs-space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.form__section {
  display: grid;
  gap: var(--rs-space-4);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface-1);
  margin: 0;
  padding: var(--rs-space-5);
}

.form__section > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: var(--rs-space-2);
  font-family: var(--rs-font-display);
  font-size: 1.35rem;
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

.form__section > legend + * {
  clear: both;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-2);
}

.field label,
.field__label {
  display: block;
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-semibold);
  color: rgba(255, 255, 255, 0.9);
}

.field__required,
.field__req {
  color: var(--rs-lime);
}

.field__optional {
  color: var(--rs-text-subtle);
  font-weight: var(--rs-weight-regular);
}

.field__hint {
  font-size: var(--rs-text-xs);
  color: var(--rs-text-subtle);
}

.field__error {
  font-size: var(--rs-text-sm);
  color: var(--rs-danger);
  min-height: 1.25rem;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: #fff;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius);
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    box-shadow var(--rs-duration-fast) var(--rs-ease),
    background-color var(--rs-duration-fast) var(--rs-ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--rs-text-subtle);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.input:focus,
.select:focus,
.textarea:focus,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--rs-lime);
  box-shadow: var(--rs-shadow-focus);
  background: var(--rs-surface-3);
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--rs-danger);
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239daec6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}

.select option {
  background: var(--rs-surface-2);
  color: #fff;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-4);
}

.form-hint {
  font-size: var(--rs-text-xs);
  color: var(--rs-text-subtle);
  margin: 0;
}

.form-hint a {
  color: inherit;
  text-decoration: underline;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-3);
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  accent-color: var(--rs-lime);
  flex-shrink: 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.form-status {
  padding: var(--rs-space-4) var(--rs-space-5);
  border-radius: var(--rs-radius);
  border: 1px solid transparent;
  font-size: var(--rs-text-sm);
}

.form-status[data-state='success'] {
  background: var(--rs-success-bg);
  border-color: rgba(88, 224, 139, 0.4);
  color: var(--rs-success);
}

.form-status[data-state='error'] {
  background: var(--rs-danger-bg);
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--rs-danger);
}

.form-status[data-state='info'] {
  background: var(--rs-info-bg);
  border-color: rgba(41, 182, 246, 0.4);
  color: var(--rs-blue-bright);
}

.form-card {
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

.form-card__price {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-2xl);
  color: var(--rs-lime);
}

.form-card__note {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.form-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--rs-space-2) var(--rs-space-3);
  margin: 0 0 var(--rs-space-5);
  padding: var(--rs-space-4) var(--rs-space-5);
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
}

.form-summary__label {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

/* --------------------------------------------------------------- callout */

.callout {
  padding: var(--rs-space-5);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-info-bg);
  border: 1px solid rgba(41, 182, 246, 0.25);
  border-left: 4px solid var(--rs-blue);
}

.callout--accent {
  background: rgba(214, 251, 35, 0.08);
  border-color: rgba(214, 251, 35, 0.25);
  border-left-color: var(--rs-lime);
}

.callout__title {
  margin: 0 0 var(--rs-space-3);
  font-size: var(--rs-text-lg);
}

/* A heading inside a sidebar card is a label, not a page title: the display
   scale would otherwise set it at hero size in a 20rem column. */
.callout h2,
.form-card h2 {
  font-size: var(--rs-text-xl);
  margin-bottom: var(--rs-space-3);
}

.callout > * + * {
  margin-top: var(--rs-space-3);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-3);
}

.contact-list li > svg {
  color: var(--rs-lime);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rs-space-2);
}

/* ------------------------------------------------------------- resources */

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rs-space-3);
}

.resource {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-4);
  padding: var(--rs-space-4) var(--rs-space-5);
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    background-color var(--rs-duration-fast) var(--rs-ease);
}

.resource:hover {
  border-color: var(--rs-border-strong);
  background: var(--rs-surface-2);
}

.resource__icon {
  color: var(--rs-lime);
  flex-shrink: 0;
}

.resource__body {
  min-width: 0;
}

.resource__meta {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rs-space-4);
}

.contact-list__label {
  display: block;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
  color: var(--rs-text-subtle);
}

/* ------------------------------------------------------------------- cta */

.cta-band {
  position: relative;
  background:
    var(--rs-glow-lime), linear-gradient(135deg, var(--rs-surface-2) 0%, var(--rs-surface-1) 100%);
  border: 1px solid var(--rs-border-strong);
  color: #fff;
  border-radius: var(--rs-radius-xl);
  padding: clamp(2rem, 1.4rem + 3vw, 4rem);
  display: grid;
  gap: var(--rs-space-5);
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
  font-size: var(--rs-text-3xl);
}

.cta-band p {
  color: var(--rs-text-muted);
  max-width: 44rem;
  margin-inline: auto;
  font-size: var(--rs-text-lg);
}

.cta-band .cluster {
  justify-content: center;
}

/* An editorial band — the AI section — that has to feel like a statement. */
.editorial {
  position: relative;
  border-radius: var(--rs-radius-xl);
  border: 1px solid var(--rs-border-strong);
  background:
    var(--rs-glow-blue), linear-gradient(120deg, var(--rs-surface-2) 0%, var(--rs-navy-deep) 100%);
  padding: clamp(2rem, 1.4rem + 3vw, 4.5rem);
  overflow: hidden;
}

.editorial h2 {
  font-size: var(--rs-text-3xl);
  max-width: 22ch;
}

.editorial h2 em {
  font-style: normal;
  color: var(--rs-lime);
}

.editorial p {
  margin-top: var(--rs-space-5);
  font-size: var(--rs-text-lg);
  color: var(--rs-text-muted);
  max-width: 52rem;
}

/* --------------------------------------------------------------- partners */

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-5);
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.partner-logos li {
  padding: var(--rs-space-3) var(--rs-space-5);
  color: var(--rs-text-subtle);
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-semibold);
}

.partner-logos img {
  display: block;
  height: 2.5rem;
  width: auto;
}

/* The trust strip. The marks are dark ink on transparency, so they keep their
   own light chip rather than being inverted into something they are not. */
.partner-band {
  background: var(--rs-surface);
  border-top: 1px solid var(--rs-border);
  border-bottom: 1px solid var(--rs-border);
  padding-block: var(--rs-space-7);
}

.partner-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-5) var(--rs-space-9);
}

.partner-band__label {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--rs-tracking-wider);
  color: var(--rs-text-subtle);
}

.partner-band__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-5) var(--rs-space-9);
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-band__list li {
  display: grid;
  place-items: center;
  opacity: 0.78;
  transition:
    opacity var(--rs-duration) var(--rs-ease),
    transform var(--rs-duration) var(--rs-ease-out);
}

.partner-band__list li:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partner-band__list img {
  display: block;
  height: 2.75rem;
  width: auto;
}

.partner-band__name {
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--rs-navy-deep);
  border-top: 1px solid var(--rs-border);
  color: var(--rs-text-muted);
  padding-block: var(--rs-space-9) var(--rs-space-6);
  margin-top: auto;
}

.site-footer a {
  color: var(--rs-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rs-lime);
}

.site-footer__grid {
  display: grid;
  gap: var(--rs-space-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.site-footer__brand {
  max-width: 22rem;
}

.site-footer__brand .brand {
  color: #fff;
  margin-bottom: var(--rs-space-4);
}

.site-footer__brand .brand__logo {
  height: 2.1rem;
}

.site-footer h2 {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--rs-tracking-wider);
  color: #fff;
  margin-bottom: var(--rs-space-4);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--rs-space-3);
  font-size: var(--rs-text-sm);
}

.site-footer__bottom {
  margin-top: var(--rs-space-8);
  padding-top: var(--rs-space-5);
  border-top: 1px solid var(--rs-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-4);
  justify-content: space-between;
  font-size: var(--rs-text-sm);
}

/* `.site-footer ul` sets a grid, and it out-specifies a bare `.social-links`,
   which is how these ended up stacked in a column. */
.site-footer .social-links,
.social-links {
  display: flex;
  flex-direction: row;
  gap: var(--rs-space-3);
  list-style: none;
  padding: 0;
  margin: var(--rs-space-4) 0 0;
}

.social-links a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rs-border-strong);
  transition:
    background-color var(--rs-duration-fast) var(--rs-ease),
    color var(--rs-duration-fast) var(--rs-ease);
}

.social-links a:hover {
  background: var(--rs-lime);
  border-color: var(--rs-lime);
  color: #05070c;
}

.social-links svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ---------------------------------------------------------------- cookies */

.cookie-bar {
  position: fixed;
  inset-inline: var(--rs-space-4);
  /* The assistant bar owns the bottom of the screen, so the notice sits above
     it rather than on top of it. */
  bottom: calc(5rem + env(safe-area-inset-bottom));
  z-index: var(--rs-z-toast);
  max-width: 34rem;
  margin-inline: auto;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  color: #fff;
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-lg);
  padding: var(--rs-space-5);
  display: none;
  gap: var(--rs-space-4);
  flex-direction: column;
}

.cookie-bar[data-visible='true'] {
  display: flex;
}

/* A dialog owns the screen while it is open; the notice waits its turn. */
body.has-modal .cookie-bar,
body.has-drawer .cookie-bar {
  display: none;
}

.cookie-bar p {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

/* ------------------------------------------------------------------- misc */

.prose > * + * {
  margin-top: var(--rs-space-4);
}

.prose h2 {
  margin-top: var(--rs-space-8);
  font-size: var(--rs-text-2xl);
}

.prose h3 {
  margin-top: var(--rs-space-6);
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: var(--rs-space-2);
}

.prose p,
.prose li {
  color: var(--rs-text-muted);
}

.error-page {
  text-align: center;
  padding-block: var(--rs-space-11);
}

.error-page__code {
  font-family: var(--rs-font-display);
  font-size: clamp(6rem, 3rem + 16vw, 14rem);
  line-height: 0.85;
  color: var(--rs-lime);
  opacity: 0.22;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--rs-duration-slow) var(--rs-ease-out),
    transform var(--rs-duration-slow) var(--rs-ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--rs-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-2);
}

.team-member__photo,
.team-member__initial {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rs-radius-lg);
  display: block;
  border: 1px solid var(--rs-border);
  filter: saturate(0.9);
  transition:
    filter var(--rs-duration) var(--rs-ease),
    transform var(--rs-duration) var(--rs-ease-out);
}

.team-member:hover .team-member__photo {
  filter: none;
  transform: translateY(-4px);
}

.team-member__initial {
  display: grid;
  place-items: center;
  background: var(--rs-grad-blue);
  color: #05070c;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-3xl);
  font-weight: var(--rs-weight-bold);
}

.team-member__name {
  margin: var(--rs-space-3) 0 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.team-member__role {
  margin: 0;
  color: var(--rs-lime);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
}

.team-member__bio {
  margin: 0;
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
}

.team-member__link {
  font-size: var(--rs-text-sm);
  align-self: start;
}

/* -------------------------------------------------------- site assistant */
/*
 * Present on every page. A bar on desktop that opens into a panel above it; a
 * bottom sheet on a phone, where it must never sit over a CTA.
 */

.ask-ai {
  position: fixed;
  left: 50%;
  bottom: max(var(--rs-space-4), env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: min(40rem, calc(100vw - 2rem));
  display: grid;
  gap: var(--rs-space-3);
}

.has-ask-ai .site-footer {
  padding-bottom: calc(var(--rs-space-6) + 5rem);
}

.ask-ai__bar {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  padding: var(--rs-space-2) var(--rs-space-2) var(--rs-space-2) var(--rs-space-4);
  background: rgba(23, 31, 49, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
  box-shadow: var(--rs-shadow-md);
  transition: border-color var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__bar:focus-within {
  border-color: var(--rs-lime);
}

.ask-ai__avatar {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.ask-ai__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: #fff;
  padding-block: var(--rs-space-2);
}

.ask-ai__input::placeholder {
  color: var(--rs-text-subtle);
}

.ask-ai__input:focus {
  outline: none;
}

.ask-ai__send {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--rs-lime);
  color: #05070c;
  cursor: pointer;
  transition: background-color var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__send:hover {
  background: var(--rs-lime-bright);
}

.ask-ai__send:disabled {
  opacity: 0.5;
  cursor: default;
}

.ask-ai__card {
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-lg);
  padding: var(--rs-space-4);
  display: grid;
  gap: var(--rs-space-3);
  max-height: min(60vh, 32rem);
  overflow-y: auto;
}

.ask-ai__head {
  display: flex;
  align-items: center;
  gap: var(--rs-space-2);
}

.ask-ai__title {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-bold);
  font-size: 1.15rem;
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  color: #fff;
}

.ask-ai__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: var(--rs-text-xl);
  line-height: 1;
  color: var(--rs-text-muted);
  cursor: pointer;
}

.ask-ai__close:hover {
  color: #fff;
}

.ask-ai__body {
  display: grid;
  gap: var(--rs-space-3);
  justify-items: start;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--rs-text-sm);
}

.ask-ai__answer {
  margin: 0;
  white-space: pre-wrap;
}

.ask-ai__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2);
}

.ask-ai__chip {
  border: 1px solid var(--rs-border-strong);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--rs-radius-pill);
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: var(--rs-text-xs);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    background-color var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__chip:hover {
  border-color: var(--rs-lime);
  background: rgba(214, 251, 35, 0.1);
}

/* An assistant that can be wrong has to say so where the answer is read. */
.ask-ai__note {
  margin: 0;
  font-size: var(--rs-text-xs);
  color: var(--rs-text-subtle);
}

@media (max-width: 40rem) {
  .ask-ai {
    width: calc(100vw - 1rem);
  }
}

@media print {
  .ask-ai {
    display: none;
  }
}

/* ------------------------------------------------------------ card action */

.card__cta {
  /* The whole card is a stretched link; this button has to sit above it to
     stay a target of its own. */
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
}

.card__price + .card__cta {
  margin-top: var(--rs-space-3);
}

/* --------------------------------------------------------- course picker */
/*
 * The booking form's course list. A select box made people leave the form to
 * check an age band or a price and then come back; here every course opens its
 * own facts in place, and more than one can be asked about at once.
 */

.course-pick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rs-space-2);
}

.course-pick__item {
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: var(--rs-surface-2);
  overflow: hidden;
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    background-color var(--rs-duration-fast) var(--rs-ease);
}

.course-pick__item:hover {
  border-color: var(--rs-border-strong);
}

.course-pick__item:has(:checked) {
  border-color: var(--rs-lime);
  background: var(--rs-surface-3);
}

.course-pick__row {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-3);
  padding: var(--rs-space-3) var(--rs-space-4);
  cursor: pointer;
}

.course-pick__row input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--rs-lime);
  flex-shrink: 0;
}

.course-pick__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.course-pick__title {
  font-family: var(--rs-font-display);
  font-size: 1.25rem;
  font-weight: var(--rs-weight-bold);
  line-height: 1.15;
  color: #fff;
}

.course-pick__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-3);
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.course-pick__detail {
  display: grid;
  gap: var(--rs-space-4);
  padding: 0 var(--rs-space-4) var(--rs-space-4) 3.25rem;
  border-top: 1px solid var(--rs-border);
  padding-top: var(--rs-space-4);
}

@media (min-width: 40rem) {
  .course-pick__detail {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: start;
  }
}

.course-pick__detail img {
  width: 100%;
  border-radius: var(--rs-radius-sm);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-pick__detail p {
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
  margin-bottom: var(--rs-space-3);
}

.course-pick__facts {
  list-style: none;
  margin: 0 0 var(--rs-space-3);
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: var(--rs-text-sm);
}

.course-pick__facts li {
  display: flex;
  gap: var(--rs-space-3);
  justify-content: space-between;
  border-bottom: 1px dashed var(--rs-border);
  padding-bottom: 0.35rem;
}

.course-pick__facts span {
  color: var(--rs-text-subtle);
}

/* ------------------------------------------------------------ course finder */
/*
 * A chat with one job. It never books anything: the end of a good conversation
 * here is a card whose button opens the booking form with that course ticked.
 */

.advisor {
  position: fixed;
  inset: 0;
  z-index: var(--rs-z-dialog);
  visibility: hidden;
  display: grid;
  place-items: end center;
  padding: var(--rs-space-4);
}

.advisor[data-open='true'] {
  visibility: visible;
}

@media (min-width: 48rem) {
  .advisor {
    place-items: center;
  }
}

.advisor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--rs-duration) var(--rs-ease);
}

.advisor[data-open='true'] .advisor__backdrop {
  opacity: 1;
}

.advisor__panel {
  position: relative;
  width: min(44rem, 100%);
  max-height: min(88vh, 46rem);
  display: flex;
  flex-direction: column;
  background: var(--rs-surface-1);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-lg);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform var(--rs-duration) var(--rs-ease-out),
    opacity var(--rs-duration) var(--rs-ease-out);
}

.advisor[data-open='true'] .advisor__panel {
  transform: none;
  opacity: 1;
}

.advisor__head {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  padding: var(--rs-space-4) var(--rs-space-5);
  border-bottom: 1px solid var(--rs-border);
  background: var(--rs-surface-2);
}

.advisor__avatar {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.advisor__title {
  font-family: var(--rs-font-display);
  font-size: 1.35rem;
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.1;
}

.advisor__subtitle {
  font-size: var(--rs-text-xs);
  color: var(--rs-text-muted);
}

.advisor__close {
  margin-left: auto;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rs-border-strong);
  color: #fff;
}

.advisor__close:hover {
  background: var(--rs-lime);
  border-color: var(--rs-lime);
  color: #05070c;
}

.advisor__thread {
  flex: 1;
  /* Without this the thread refuses to shrink and the hand-over form pushes
     the panel's own footer off the bottom of the dialog. */
  min-height: 4rem;
  overflow-y: auto;
  padding: var(--rs-space-5);
  display: grid;
  gap: var(--rs-space-3);
  align-content: start;
  justify-items: start;
}

.advisor__msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: var(--rs-radius-lg);
  font-size: var(--rs-text-sm);
  line-height: 1.5;
  white-space: pre-wrap;
}

.advisor__msg--bot {
  background: var(--rs-surface-3);
  color: rgba(255, 255, 255, 0.94);
  border-bottom-left-radius: var(--rs-radius-sm);
}

.advisor__msg--user {
  justify-self: end;
  background: var(--rs-lime);
  color: #05070c;
  font-weight: var(--rs-weight-medium);
  border-bottom-right-radius: var(--rs-radius-sm);
}

.advisor__msg.is-pending {
  opacity: 0.65;
}

.advisor__picks {
  width: 100%;
  display: grid;
  gap: var(--rs-space-3);
}

.advisor__picks-title {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
  color: var(--rs-lime);
}

.advisor__pick {
  display: grid;
  gap: var(--rs-space-2);
  padding: var(--rs-space-4);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius);
  background: var(--rs-surface-2);
}

.advisor__pick h4 {
  font-size: 1.3rem;
  color: #fff;
}

.advisor__pick-meta {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rs-text-muted);
}

.advisor__pick-summary {
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.advisor__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2);
  padding: 0 var(--rs-space-5);
}

.advisor__chips:empty {
  display: none;
}

.advisor__bar {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  margin: var(--rs-space-4) var(--rs-space-5) 0;
  padding: var(--rs-space-2) var(--rs-space-2) var(--rs-space-2) var(--rs-space-4);
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
}

.advisor__bar:focus-within {
  border-color: var(--rs-lime);
}

.advisor__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: #fff;
  padding-block: var(--rs-space-2);
}

.advisor__input:focus {
  outline: none;
}

.advisor__input::placeholder {
  color: var(--rs-text-subtle);
}

.advisor__send {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--rs-lime);
  color: #05070c;
}

.advisor__send:hover {
  background: var(--rs-lime-bright);
}

.advisor__handover {
  flex-shrink: 0;
  max-height: 55vh;
  overflow-y: auto;
  display: grid;
  gap: var(--rs-space-3);
  margin: var(--rs-space-4) var(--rs-space-5) 0;
  padding: var(--rs-space-4);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius);
  background: var(--rs-surface-2);
}

.advisor__handover h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
}

.advisor__foot {
  display: flex;
  align-items: center;
  gap: var(--rs-space-4);
  padding: var(--rs-space-3) var(--rs-space-5) var(--rs-space-4);
}

.advisor__note {
  font-size: var(--rs-text-xs);
  color: var(--rs-text-subtle);
  margin-left: auto;
  text-align: right;
}

/* The advisor's offer inside the booking form: a panel, not a fieldset, so it
   reads as an aside rather than another thing to fill in. */
.form__aside {
  display: grid;
  gap: var(--rs-space-3);
  justify-items: start;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
  padding: var(--rs-space-5);
}

.form__aside h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
}

.form__aside p {
  margin: 0;
}
