/* ==========================================================================
   Rainbow Bridge — theme.css · preschool theme · prefix rb- · plain CSS, no build step
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --accent: #E8558A;
  --accent-ink: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --rb-fill: color-mix(in srgb, var(--accent) 78%, #000);
  --rb-fill-ink: var(--accent-ink);
  --rb-accent-text: color-mix(in srgb, var(--accent) 66%, #000);

  /* Six soft tints for the age groups, and the stronger band colours of the arch */
  --rb-t1: var(--accent-soft);
  --rb-t2: #FFE6D2;
  --rb-t3: #FFF2C8;
  --rb-t4: #DDF2E4;
  --rb-t5: #DCEEFA;
  --rb-t6: #ECE4FA;
  --rb-b1: color-mix(in srgb, var(--accent) 34%, #fff);
  --rb-b2: #FFD3B0;
  --rb-b3: #FFE69C;
  --rb-b4: #BCE5CA;
  --rb-b5: #B9DCF3;
  --rb-b6: #D5C7F2;
  --rb-band: 7px;

  --rb-bg: #FFF9F6;
  --rb-surface: #FFFFFF;
  --rb-sunk: #FDF0F2;
  --rb-ink: #3A2433;
  --rb-muted: #6B5562;
  --rb-line: #F0DCE3;
  --rb-line-strong: #DDBFCB;
  --rb-night: #3A2433;
  --rb-night-ink: #FFF3F6;
  --rb-night-muted: #E1CBD5;
  --rb-night-line: #5A4050;
  --rb-night-accent: #F9C9D9;
  --rb-danger: #B3261E;
  --rb-danger-soft: #FCEBE9;
  --rb-success: #2D6E3A;
  --rb-success-soft: #E8F4EA;
  --rb-focus: #3A2433;
  --rb-input-bg: #FFFFFF;
  --rb-notice-bg: var(--rb-t3);
  --rb-notice-ink: var(--rb-ink);
  --rb-cta-bg: var(--rb-t6);
  --rb-cta-ink: var(--rb-ink);
  --rb-cta-btn-bg: var(--rb-fill);
  --rb-cta-btn-ink: #FFFFFF;
  --rb-wa-bg: var(--rb-fill);
  --rb-wa-ink: #FFFFFF;
  --rb-scrim: linear-gradient(to top, rgb(40 18 32 / 0.8) 0%, rgb(40 18 32 / 0.4) 50%, rgb(40 18 32 / 0) 80%);

  --rb-font-display: "Grandstander", system-ui, "Noto Sans", sans-serif;
  --rb-font-body: "Quicksand", system-ui, "Noto Sans", sans-serif;
  --rb-font-ui: var(--rb-font-body);
  --rb-fw-display: 800;
  --rb-fw-ui: 700;
  --rb-fw-btn: 700;
  --rb-btn-fs: 1.1875rem;
  --rb-fs-xs: 0.875rem;
  --rb-fs-base: 1.0625rem;
  --rb-fs-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --rb-fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --rb-fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --rb-fs-2xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --rb-fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --rb-lh-body: 1.65;
  --rb-lh-head: 1.15;
  --rb-lh-tight: 1.08;
  --rb-ls-head: -0.01em;
  --rb-ls-eyebrow: 0.02em;
  --rb-tt-eyebrow: none;

  --rb-gutter: 20px;
  --rb-container: 1240px;
  --rb-header-h: 84px;
  --rb-section: clamp(64px, 5vw + 40px, 112px);

  --rb-r-sm: 24px;
  --rb-r-md: 32px;
  --rb-r-lg: 44px;
  --rb-r-btn: 999px;
  --rb-r-icon: 50%;
  --rb-r-input: 20px;
  --rb-r-pill: 999px;
  --rb-arch: 999px 999px var(--rb-r-md) var(--rb-r-md);

  --rb-shadow-1: 0 24px 48px -28px rgb(200 80 120 / 0.35);
  --rb-shadow-2: 0 30px 60px -24px rgb(170 60 100 / 0.35);
  --rb-card-edge: 0 24px 48px -30px rgb(200 80 120 / 0.4), 0 0 0 1px var(--rb-line);

  --rb-ease: cubic-bezier(0.45, 0.05, 0.35, 1);
  --rb-ease-reveal: cubic-bezier(0.45, 0.05, 0.35, 1);
  --rb-d-fast: 180ms;
  --rb-d: 300ms;
  --rb-d-slow: 450ms;
  --rb-stagger: 90ms;
  --rb-reveal-from: scale(0.96) translateY(14px);
  --rb-reveal-filter: blur(6px);
  --rb-count-ms: 1400;

  --rb-icon-stroke: 2.25;
  --rb-icon-cap: round;
  --rb-icon-join: round;

  --rb-z-header: 50;
  --rb-z-float: 60;
  --rb-z-menu: 80;
  --rb-z-lightbox: 90;
}
@media (min-width: 768px) { :root { --rb-gutter: 32px; --rb-band: 9px; } }
/* ---------- Scoped reset (zero specificity; never reaches the disclosure slot) ---------- */
:where(.rb-root) :where(*, *::before, *::after):where(:not(.rb-disclosure-slot *)) { box-sizing: border-box; }
:where(.rb-root) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd):where(:not(.rb-disclosure-slot *)) { margin: 0; }
:where(.rb-root) :where(ul[class], ol[class]):where(:not(.rb-disclosure-slot *)) { list-style: none; padding: 0; }
:where(.rb-root) :where(img, svg):where(:not(.rb-disclosure-slot *)) { display: block; max-width: 100%; }
:where(.rb-root) :where(button, input, select, textarea):where(:not(.rb-disclosure-slot *)) { font: inherit; color: inherit; }

.rb-root {
  margin: 0;
  background: var(--rb-bg);
  color: var(--rb-ink);
  font-family: var(--rb-font-body);
  font-size: var(--rb-fs-base);
  line-height: var(--rb-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}
.rb-lock { overflow: hidden; }
.rb-root :focus-visible:not(.rb-disclosure-slot *), .rb-spec-focus { outline: 3px solid var(--rb-focus); outline-offset: 3px; }
.rb-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; }
.rb-skip { position: absolute; inset-inline-start: 16px; inset-block-start: -120px; z-index: calc(var(--rb-z-lightbox) + 1); padding: 12px 20px; background: var(--rb-ink); color: var(--rb-bg); font-weight: 700; text-decoration: none; border-radius: var(--rb-r-sm); }
.rb-skip:focus { inset-block-start: 12px; }

.rb-container { width: min(100% - 2 * var(--rb-gutter), var(--rb-container)); margin-inline: auto; }
.rb-container--narrow { width: min(100% - 2 * var(--rb-gutter), 880px); }
.rb-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: var(--rb-icon-stroke); stroke-linecap: var(--rb-icon-cap); stroke-linejoin: var(--rb-icon-join); }
.rb-fa { display: inline-grid; place-items: center; flex: none; line-height: 1; }

/* Frames: any uploaded photo, any shape */
.rb-frame { position: relative; overflow: hidden; background: var(--rb-sunk); }
.rb-frame__img { width: 100%; height: 100%; object-fit: cover; }
.rb-frame--16x9 { aspect-ratio: 16 / 9; }
.rb-frame--4x3 { aspect-ratio: 4 / 3; }
.rb-frame--3x2 { aspect-ratio: 3 / 2; }
.rb-frame--1x1 { aspect-ratio: 1; }
.rb-frame--3x4 { aspect-ratio: 3 / 4; }
.rb-frame--2x3 { aspect-ratio: 2 / 3; }
.rb-frame--empty { display: grid; place-items: center; }
.rb-frame--empty .rb-icon { width: 40px; height: 40px; opacity: 0.55; }

/* Notice bar mechanics */
.rb-notice__inner { display: flex; align-items: center; gap: 12px; }
.rb-notice__list { flex: 1; min-width: 0; display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.rb-notice__item { flex: none; max-width: 100%; }
.rb-notice--multi .rb-notice__list { overflow: visible; }
.rb-notice--multi .rb-notice__item { flex: 1; }
.rb-notice--multi .rb-notice__item:not(.rb-is-active) { display: none; }
.rb-notice__link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-notice__controls { display: none; align-items: center; gap: 4px; flex: none; }
.rb-notice--multi .rb-notice__controls { display: flex; }
.rb-notice__count { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.rb-notice__all { display: none; flex: none; }
@media (min-width: 900px) { .rb-notice__link { -webkit-line-clamp: 1; } .rb-notice__all { display: inline-flex; } }

/* Menu mechanics */
.rb-menu { position: fixed; inset: 0; z-index: var(--rb-z-menu); display: flex; flex-direction: column; }
.rb-menu--preview { position: relative; inset: auto; z-index: auto; height: 680px; max-width: 390px; overflow: hidden; }
.rb-menu__body { flex: 1; overflow-y: auto; }
.rb-menu__dock { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block-end: max(16px, env(safe-area-inset-bottom)); }
.rb-menu__dock--single { grid-template-columns: 1fr; }

/* Slider mechanics */
.rb-slider__viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.rb-slider__track { --rb-slide: 0; display: flex; height: 100%; transform: translateX(calc(var(--rb-slide) * -100%)); transition: transform var(--rb-d-slow) var(--rb-ease); }
.rb-slide { position: relative; flex: 0 0 100%; height: 100%; }
.rb-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-slider--single .rb-slider__controls { display: none; }
.rb-slider__dots { display: flex; gap: 2px; }
.rb-slider__dot, .rb-dots__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: inherit; }

/* Tabs mechanics */
.rb-tabs__list { display: none; }
.rb-tabs--on .rb-tabs__list { display: flex; }
.rb-tabs--on .rb-tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Accordion mechanics */
.rb-faq__heading { font: inherit; }
.rb-faq__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: start; cursor: pointer; }
.rb-faq__a { display: grid; grid-template-rows: 1fr; }
.rb-js .rb-faq__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--rb-d) var(--rb-ease), visibility 0s linear var(--rb-d); }
.rb-js .rb-faq__a.rb-is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--rb-d) var(--rb-ease), visibility 0s; }
.rb-faq__inner { overflow: hidden; }

/* Carousel mechanics */
.rb-quotes__controls, .rb-dots { display: none; }
.rb-quotes--carousel .rb-quotes__controls, .rb-quotes--carousel .rb-dots { display: flex; }
.rb-quotes--static .rb-quotes__controls, .rb-quotes--static .rb-dots { display: none; }
.rb-quotes__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rb-quotes__track:has(> .rb-quote:only-child) { grid-template-columns: minmax(0, 680px); justify-content: center; }
.rb-quotes--carousel .rb-quotes__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rb-quotes--carousel .rb-quotes__track::-webkit-scrollbar { display: none; }
.rb-quotes--carousel .rb-quote { flex: 0 0 100%; scroll-snap-align: start; }
.rb-dots { justify-content: center; }

/* Read more mechanics */
.rb-js .rb-clamp:not(.rb-is-open) { max-height: calc(1.6em * 6); overflow: hidden; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.rb-readmore { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-weight: 700; cursor: pointer; }
.rb-readmore .rb-icon { transition: rotate var(--rb-d) var(--rb-ease); }
.rb-readmore[aria-expanded="true"] .rb-icon { rotate: 180deg; }

/* Forms mechanics */
.rb-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rb-fieldset__legend { padding: 0; }
.rb-fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .rb-fields { grid-template-columns: 1fr 1fr; } .rb-field--full { grid-column: 1 / -1; } }
.rb-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.rb-input { width: 100%; min-height: 52px; font-size: 1rem; line-height: 1.4; }
.rb-input:focus { outline: none; }
.rb-input--area { min-height: 120px; resize: vertical; }
.rb-input--select { appearance: none; padding-inline-end: 48px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.rb-field__error { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 0.875rem; line-height: 1.4; }
.rb-field__error .rb-icon { width: 18px; height: 18px; }
.rb-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rb-form__status:empty { display: none; }
.rb-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rb-btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-inline-end-color: transparent; animation: rb-spin 0.8s linear infinite; }
.rb-btn.rb-is-loading .rb-btn__spinner { display: inline-block; }
.rb-btn.rb-is-loading .rb-btn__arrow { display: none; }
.rb-btn[disabled] { cursor: progress; }
.rb-btn__fa { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 18px; flex: none; }
.rb-alert { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.rb-alert:focus { outline: none; }
.rb-alert:focus-visible { outline: 3px solid var(--rb-focus); outline-offset: 3px; }
.rb-alert__body { display: grid; gap: 4px; }

/* Lightbox mechanics */
.rb-lightbox { position: fixed; inset: 0; z-index: var(--rb-z-lightbox); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity var(--rb-d) var(--rb-ease); }
.rb-lightbox.rb-is-open { opacity: 1; }
.rb-lightbox--preview { position: relative; inset: auto; z-index: auto; opacity: 1; height: 560px; overflow: hidden; }
.rb-lightbox__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.rb-lightbox__meta { flex: 1; min-width: 0; display: grid; }
.rb-lightbox__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-lightbox__count { font-variant-numeric: tabular-nums; }
.rb-lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 16px; touch-action: pan-y; }
.rb-lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rb-lightbox__nav { display: flex; justify-content: center; gap: 24px; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
.rb-lightbox--single .rb-lightbox__nav { visibility: hidden; }

/* Gallery card mechanics */
.rb-event { position: relative; }
.rb-event__photos { display: none; }
.rb-event__open { color: inherit; text-decoration: none; }
.rb-event__open::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.rb-event__open:focus-visible { outline: none; }
.rb-event__open:focus-visible::after { outline: 3px solid var(--rb-focus); outline-offset: 4px; }

/* Map mechanics */
.rb-map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .rb-map { aspect-ratio: 16 / 9; } }
.rb-map__frame { position: absolute; inset: 0; }
.rb-map__frame > iframe { width: 100%; height: 100%; border: 0; }
.rb-map__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.rb-map__frame:not(:empty) + .rb-map__fallback { display: none; }

/* Disclosures slot: neutral container for the platform's .cpd-* block (never styled here) */
.rb-disclosure-slot { width: min(100% - 2 * var(--rb-gutter), var(--rb-container)); min-height: 320px; margin-inline: auto; padding: 32px 16px; background: #FFFFFF; color: #1F1F1F; }
@media (min-width: 768px) { .rb-disclosure-slot { padding: 48px; } }
.rb-disclosure-slot:empty { display: grid; place-items: center; }
.rb-disclosure-slot:empty::before { content: "Statutory disclosures will appear here."; color: #5F5F5F; }

/* Reveal */
.rb-reveal--wait { opacity: 0; transform: var(--rb-reveal-from); filter: var(--rb-reveal-filter, none); }
.rb-reveal--wait.rb-reveal--in { opacity: 1; transform: none; filter: none; transition: opacity var(--rb-d-slow) var(--rb-ease), transform var(--rb-d-slow) var(--rb-ease-reveal), filter var(--rb-d-slow) var(--rb-ease); }
.rb-reveal--in:nth-child(2) { transition-delay: var(--rb-stagger); }
.rb-reveal--in:nth-child(3) { transition-delay: calc(var(--rb-stagger) * 2); }
.rb-reveal--in:nth-child(4) { transition-delay: calc(var(--rb-stagger) * 3); }

@keyframes rb-spin { to { rotate: 360deg; } }
@keyframes rb-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* ---------- Shared component defaults (all values come from this theme's tokens) ---------- */
.rb-main { display: block; }
.rb-main:focus { outline: none; }
.rb-section { position: relative; padding-block: var(--rb-section); }
.rb-section--alt { background: var(--rb-sunk); }
.rb-section__head { display: grid; gap: 12px; max-width: 44rem; margin-block-end: 48px; }
.rb-section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.rb-eyebrow { font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: var(--rb-fs-xs); letter-spacing: var(--rb-ls-eyebrow); text-transform: var(--rb-tt-eyebrow); color: var(--rb-accent-text); }
.rb-h2 { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-2xl); line-height: var(--rb-lh-head); letter-spacing: var(--rb-ls-head); text-wrap: balance; }
.rb-lead { font-size: var(--rb-fs-md); color: var(--rb-muted); max-width: 42rem; }
.rb-muted { color: var(--rb-muted); }
.rb-prose { display: grid; gap: 16px; max-width: 42rem; }
.rb-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.rb-link:hover { text-decoration-color: currentColor; }
.rb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rb-more { display: flex; justify-content: center; margin-block-start: 48px; }

/* Buttons */
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: var(--rb-r-btn); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-btn); font-size: var(--rb-btn-fs); line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; transition: transform var(--rb-d) var(--rb-ease), background-color var(--rb-d-fast) var(--rb-ease), border-color var(--rb-d-fast) var(--rb-ease), color var(--rb-d-fast) var(--rb-ease); }
.rb-btn:active { transform: scale(0.97); }
.rb-btn--primary { background: var(--accent); color: var(--accent-ink); }
.rb-btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--rb-ink)); }
.rb-btn--secondary { background: transparent; border-color: currentColor; color: var(--rb-ink); }
.rb-btn--secondary:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.rb-btn--sm { min-height: 44px; padding: 0 16px; }
.rb-btn--cta1 { background: var(--rb-cta-btn-bg); color: var(--rb-cta-btn-ink); }
.rb-btn--cta1:hover { background: color-mix(in srgb, var(--rb-cta-btn-bg) 86%, var(--rb-cta-btn-ink)); }
.rb-btn--cta2 { border-color: currentColor; color: inherit; }
.rb-btn--cta2:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.rb-iconbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border: 2px solid var(--rb-line-strong); border-radius: var(--rb-r-icon); background: var(--rb-surface); color: var(--rb-ink); cursor: pointer; transition: background-color var(--rb-d-fast) var(--rb-ease), transform var(--rb-d) var(--rb-ease); }
.rb-iconbtn:hover { background: var(--accent-soft); }
.rb-iconbtn:active { transform: scale(0.94); }
.rb-iconbtn[disabled] { opacity: 0.4; cursor: default; }
.rb-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: var(--rb-r-pill); background: var(--accent-soft); color: var(--rb-ink); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: 0.875rem; line-height: 1.2; }
.rb-pill .rb-icon { width: 16px; height: 16px; }
.rb-pill--open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rb-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rb-success) 25%, transparent); }
.rb-mark { display: inline-grid; place-content: center; text-align: center; line-height: 1.05; font-family: var(--rb-font-display); }
.rb-mark__big { font-weight: var(--rb-fw-display); font-size: 1.5rem; }
.rb-mark__small { font-family: var(--rb-font-ui); font-size: 0.8125rem; font-weight: var(--rb-fw-ui); }
.rb-fa { width: 52px; height: 52px; border-radius: var(--rb-r-icon); background: var(--accent-soft); color: var(--rb-ink); font-size: 22px; }

/* Notice bar */
.rb-notice { background: var(--rb-notice-bg); color: var(--rb-notice-ink); font-size: 0.9375rem; }
.rb-notice__inner { min-height: 48px; padding-block: 4px; }
.rb-notice__icon { display: grid; place-items: center; flex: none; }
.rb-notice__icon .rb-icon { width: 20px; height: 20px; }
.rb-notice__link { color: inherit; font-weight: 600; line-height: 1.4; text-decoration: none; padding-block: 4px; }
.rb-notice__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rb-notice__ctrl { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: var(--rb-r-icon); }
.rb-notice__ctrl:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.rb-notice__count { font-size: 0.875rem; }
.rb-notice__all { align-items: center; min-height: 44px; color: inherit; font-weight: 700; font-size: 0.875rem; text-underline-offset: 3px; }

/* Brand */
.rb-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.rb-brand__logo { height: 44px; width: auto; max-width: 140px; object-fit: contain; flex: none; }
.rb-brand__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--rb-r-icon); background: var(--rb-fill); color: var(--rb-fill-ink); font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 1.25rem; }
.rb-brand__text { display: grid; min-width: 0; }
.rb-brand__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 18rem; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 1.0625rem; line-height: 1.15; }
.rb-brand__badge { margin-block-start: 2px; font-size: 0.8125rem; line-height: 1.3; color: var(--rb-muted); }
@media (max-width: 399px) { .rb-brand__badge { display: none; } }

/* Shared nav pieces */
.rb-nav__list { display: flex; align-items: center; gap: 2px; }
.rb-nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: inherit; font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: 0.9375rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rb-nav__link .rb-icon { width: 16px; height: 16px; transition: rotate var(--rb-d) var(--rb-ease); }
.rb-nav__link[aria-expanded="true"] .rb-icon { rotate: 180deg; }
.rb-nav__more { position: relative; }
.rb-nav__drop { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 2; min-width: 240px; padding: 8px; border-radius: var(--rb-r-sm); background: var(--rb-surface); color: var(--rb-ink); box-shadow: var(--rb-shadow-2); animation: rb-pop var(--rb-d) var(--rb-ease); }
.rb-nav__drop-link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--rb-r-sm); color: inherit; font-weight: 600; text-decoration: none; }
.rb-nav__drop-link:hover, .rb-nav__drop-link[aria-current="page"] { background: var(--accent-soft); }
.rb-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; flex: none; padding: 0 12px; border: 0; border-radius: var(--rb-r-icon); background: var(--accent-soft); color: var(--rb-ink); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); cursor: pointer; }
.rb-header__apply.rb-btn--primary { min-height: 44px; padding: 0 16px; flex: none; font-size: 1rem; background: var(--rb-fill); color: var(--rb-fill-ink); }
.rb-header__apply.rb-btn--primary:hover { background: color-mix(in srgb, var(--rb-fill) 85%, #000); }
@media (max-width: 359px) { .rb-header__apply.rb-btn--primary { display: none; } }

/* Menu */
.rb-menu { background: var(--rb-bg); color: var(--rb-ink); opacity: 0; transition: opacity var(--rb-d) var(--rb-ease), transform var(--rb-d) var(--rb-ease); }
.rb-menu.rb-is-open { opacity: 1; transform: none; }
.rb-menu--preview { width: min(100%, 390px); transform: none; opacity: 1; border-radius: var(--rb-r-md); box-shadow: 0 0 0 1px var(--rb-line), var(--rb-shadow-2); }
.rb-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding-inline: var(--rb-gutter); border-block-end: 1px solid var(--rb-line); }
.rb-menu__close { display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border: 0; border-radius: var(--rb-r-icon); background: var(--accent-soft); color: inherit; cursor: pointer; }
.rb-menu__body { padding: 24px var(--rb-gutter); }
.rb-menu__list { display: grid; gap: 2px; }
.rb-menu__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 12px; border-radius: var(--rb-r-sm); color: inherit; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 1.5rem; text-decoration: none; }
.rb-menu__link:hover, .rb-menu__link[aria-current="page"] { background: var(--accent-soft); }
.rb-menu__link .rb-icon { color: var(--rb-accent-text); }
.rb-menu__secondary { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-block-start: 24px; padding-inline: 12px; }
.rb-menu__sublink { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-muted); font-weight: 700; }
.rb-menu__dock { padding: 16px var(--rb-gutter); border-block-start: 1px solid var(--rb-line); background: var(--rb-surface); }

/* Page head & crumbs */
.rb-pagehead { position: relative; overflow: hidden; padding-block: 48px 64px; }
.rb-pagehead__art { position: absolute; inset: 0; pointer-events: none; }
.rb-pagehead__art:empty { display: none; }
.rb-pagehead__inner { position: relative; display: grid; gap: 16px; }
.rb-pagehead__title { max-width: 18em; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-3xl); line-height: var(--rb-lh-tight); letter-spacing: var(--rb-ls-head); text-wrap: balance; }
.rb-crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.875rem; color: var(--rb-muted); }
.rb-crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.rb-crumbs__item + .rb-crumbs__item::before { content: "/"; opacity: 0.6; }
.rb-crumbs__link { display: inline-flex; align-items: center; min-height: 32px; color: inherit; font-weight: 700; }

/* Split, facts, quote, mission and vision */
.rb-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .rb-split { grid-template-columns: 1fr 1fr; gap: 64px; } .rb-split--flip > :first-child { order: 2; } }
.rb-split__media { position: relative; }
.rb-split__body { display: grid; gap: 20px; justify-items: start; }
.rb-split__mark { position: absolute; inset-block-start: -16px; inset-inline-end: -8px; }
.rb-facts { display: flex; flex-wrap: wrap; gap: 16px; }
.rb-bigquote { display: grid; justify-items: center; gap: 24px; max-width: 54rem; text-align: center; }
.rb-bigquote__mark { display: grid; place-items: center; color: var(--rb-accent-text); }
.rb-bigquote__mark .rb-icon { width: 48px; height: 48px; }
.rb-bigquote__text { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-xl); line-height: 1.3; text-wrap: balance; }
.rb-mv { display: grid; gap: 24px; }
@media (min-width: 768px) { .rb-mv { grid-template-columns: 1fr 1fr; } }
.rb-mv__card { display: grid; gap: 12px; align-content: start; padding: 32px 24px; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-mv__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--rb-r-icon); background: var(--accent); color: var(--accent-ink); }
.rb-mv__icon .rb-icon { width: 26px; height: 26px; }
.rb-mv__title, .rb-card__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); line-height: 1.2; }
.rb-mv__text { color: var(--rb-muted); }

/* Stats */
.rb-stats { padding-block: 48px; }
.rb-stats__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 24px; }
.rb-stat { flex: 1 1 150px; min-width: 0; max-width: 280px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.rb-stat__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-xl); line-height: 1.15; font-variant-numeric: tabular-nums; }
.rb-stat__desc { max-width: 24ch; color: var(--rb-muted); font-size: 0.9375rem; }

/* Principal */
.rb-principal { display: grid; gap: 24px; padding: 32px 24px; border-radius: var(--rb-r-lg); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
@media (min-width: 768px) { .rb-principal { grid-template-columns: auto 1fr; gap: 48px; padding: 48px; } }
.rb-principal__photo-wrap { width: 144px; height: 144px; }
.rb-principal__photo { width: 100%; height: 100%; border-radius: var(--rb-r-md); }
.rb-principal__initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--rb-r-md); background: var(--rb-fill); color: var(--rb-fill-ink); font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 2.5rem; }
.rb-principal__body { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.rb-principal__msg { display: grid; gap: 16px; }
.rb-principal__name { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); line-height: 1.2; }
.rb-principal__role { color: var(--rb-muted); font-weight: 600; }
.rb-readmore { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Programmes */
.rb-programs { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rb-programs:has(> .rb-program:only-child) { grid-template-columns: minmax(0, 880px); justify-content: center; }
.rb-program { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); overflow: hidden; }
.rb-program__body { display: grid; gap: 12px; align-content: start; flex: 1; padding: 20px 24px 28px; }
.rb-program__age { justify-self: start; display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: var(--rb-r-pill); background: var(--accent-soft); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: 0.875rem; line-height: 1.3; }
.rb-program__name { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); line-height: 1.2; }
.rb-program__desc { color: var(--rb-muted); }
.rb-program--compact .rb-program__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rb-ticks { display: grid; gap: 8px; margin-block-start: 4px; }
.rb-ticks__item { display: flex; gap: 12px; align-items: baseline; }
.rb-ticks__item::before { content: ""; flex: none; width: 8px; height: 8px; translate: 0 -2px; border-radius: 50%; background: var(--accent); }

/* Feature groups */
.rb-tabs__list { gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 48px; overflow-x: auto; scrollbar-width: none; }
.rb-tabs__tab { flex: none; min-height: 48px; padding: 0 24px; border: 0; background: transparent; color: inherit; font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: 1rem; cursor: pointer; transition: background-color var(--rb-d) var(--rb-ease), color var(--rb-d-fast) var(--rb-ease); }
.rb-tabs__tab[aria-selected="true"] { background: var(--rb-fill); color: var(--rb-fill-ink); }
.rb-tabs__panel:not([hidden]) { animation: rb-pop var(--rb-d-slow) var(--rb-ease); }
.rb-tabs--stacked .rb-tabs__panel + .rb-tabs__panel, .rb-tabs:not(.rb-tabs--on) .rb-tabs__panel + .rb-tabs__panel { margin-block-start: 64px; }
.rb-tabs__panel-title { margin-block-end: 24px; text-align: center; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); }
.rb-features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.rb-features:has(> :only-child) { grid-template-columns: minmax(0, 520px); justify-content: center; }
.rb-feature { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 28px 24px; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-feature__title { margin-block-start: 4px; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); line-height: 1.25; }
.rb-feature__desc { color: var(--rb-muted); }

/* Achievements */
.rb-achieves { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.rb-achieve { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); overflow: hidden; }
.rb-achieve__year { position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-start: 12px; min-height: 36px; padding: 4px 12px; border-radius: var(--rb-r-pill); background: var(--rb-fill); color: var(--rb-fill-ink); }
.rb-achieve__year .rb-mark__big { font-size: 1rem; }
.rb-achieve__body { display: grid; gap: 8px; padding: 20px 24px 24px; }
.rb-achieve--noimg .rb-achieve__body { padding-block-start: 72px; }
.rb-achieve__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); line-height: 1.25; }
.rb-achieve__desc { color: var(--rb-muted); }
.rb-achieves--preview .rb-achieve__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rb-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 48px; }
.rb-filter__btn { min-height: 44px; padding: 0 20px; border: 2px solid var(--rb-line-strong); border-radius: var(--rb-r-btn); background: var(--rb-surface); color: var(--rb-ink); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); cursor: pointer; transition: background-color var(--rb-d-fast) var(--rb-ease), border-color var(--rb-d-fast) var(--rb-ease); }
.rb-filter__btn:hover { border-color: var(--accent); }
.rb-filter__btn[aria-pressed="true"] { border-color: var(--accent); background: var(--rb-fill); color: var(--rb-fill-ink); }
.rb-year + .rb-year { margin-block-start: 64px; }
.rb-year__title { margin-block-end: 24px; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-xl); }

/* Testimonials */
.rb-quotes__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-block-end: 40px; }
.rb-quotes__head .rb-section__head { margin-block-end: 0; }
.rb-quotes__controls { gap: 8px; }
.rb-quotes__track { gap: 24px; }
.rb-quotes--carousel .rb-quotes__track { padding-block: 4px 16px; }
@media (min-width: 768px) { .rb-quotes--carousel .rb-quote { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 1120px) { .rb-quotes--carousel .rb-quote { flex-basis: calc((100% - 48px) / 3); } }
.rb-quote { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-quote__mark { color: var(--rb-accent-text); }
.rb-quote__mark .rb-icon { width: 32px; height: 32px; }
.rb-quote__text { flex: 1; font-size: var(--rb-fs-md); line-height: 1.55; }
.rb-quote__by { display: flex; align-items: center; gap: 12px; padding-block-start: 16px; border-block-start: 1px solid var(--rb-line); }
.rb-quote__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--rb-fill); color: var(--rb-fill-ink); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); }
.rb-quote__who { display: grid; min-width: 0; }
.rb-quote__name { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); line-height: 1.25; }
.rb-quote__rel { color: var(--rb-muted); font-size: 0.9375rem; line-height: 1.35; }
.rb-dots { gap: 2px; margin-block-start: 8px; }
.rb-dots__dot::before, .rb-slider__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; transition: background-color var(--rb-d-fast) var(--rb-ease), transform var(--rb-d) var(--rb-ease); }
.rb-dots__dot[aria-current="true"]::before, .rb-slider__dot[aria-current="true"]::before { background: currentColor; transform: scale(1.3); }

/* Slider */
.rb-slider { position: relative; padding-block: 16px 64px; }
.rb-slider__viewport { height: clamp(440px, 72svh, 560px); background: var(--rb-sunk); }
@media (min-width: 768px) { .rb-slider__viewport { height: clamp(460px, calc(100svh - var(--rb-header-h) - 140px), 600px); } }
.rb-slide__scrim { position: absolute; inset: 0; background: var(--rb-scrim); }
.rb-slide__content { position: absolute; inset-inline: 0; inset-block-end: 0; display: grid; gap: 16px; justify-items: start; padding: 32px 24px 96px; color: #FFFFFF; }
.rb-slide__title { max-width: 22ch; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-2xl); line-height: var(--rb-lh-tight); text-wrap: balance; }
.rb-slider__controls { position: absolute; inset-inline: 24px; inset-block-end: 20px; display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.rb-slider__dots { margin-inline-end: auto; }
.rb-slider--single .rb-slide__content { padding-block-end: 32px; }
@media (min-width: 768px) { .rb-slide__content { padding: 64px 64px 104px; } .rb-slider__controls { inset-inline: 64px; inset-block-end: 28px; } .rb-slide__title { font-size: var(--rb-fs-3xl); } }

/* CTA band */
.rb-cta { padding-block: 0 64px; }
.rb-cta__panel { position: relative; overflow: hidden; display: grid; gap: 24px; padding: 48px 24px; border-radius: var(--rb-r-lg); background: var(--rb-cta-bg); color: var(--rb-cta-ink); }
.rb-cta__copy { position: relative; display: grid; gap: 12px; max-width: 38rem; }
.rb-cta__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-2xl); line-height: var(--rb-lh-head); text-wrap: balance; }
.rb-cta__actions { position: relative; }
@media (min-width: 900px) { .rb-cta__panel { grid-template-columns: 1fr auto; align-items: center; padding: 64px; } }

/* Footer */
.rb-footer { position: relative; padding-block: 72px 32px; background: var(--rb-night); color: var(--rb-night-ink); --rb-focus: var(--rb-night-ink); }
.rb-footer__grid { display: grid; gap: 48px; }
@media (min-width: 640px) { .rb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rb-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.rb-footer__brand { display: grid; gap: 16px; justify-items: start; }
.rb-footer__logo { height: 56px; width: auto; max-width: 180px; object-fit: contain; padding: 6px; border-radius: var(--rb-r-sm); background: #FFFFFF; }
.rb-footer__name { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); line-height: 1.2; }
.rb-footer__text { max-width: 44ch; color: var(--rb-night-muted); }
.rb-footer__heading { margin-block-end: 16px; font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-night-accent); }
.rb-footer__list { display: grid; gap: 2px; }
.rb-footer__link { display: inline-flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 10px; color: var(--rb-night-ink); line-height: 1.45; text-decoration: none; }
.rb-footer__link .rb-icon { margin-block-start: 1px; color: var(--rb-night-accent); }
.rb-footer__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rb-footer__address { font-style: normal; }
.rb-footer .rb-pill--open { background: color-mix(in srgb, var(--rb-night-ink) 12%, transparent); color: var(--rb-night-ink); }
.rb-social { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-social__link { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rb-night-line); border-radius: var(--rb-r-icon); color: var(--rb-night-ink); transition: border-color var(--rb-d-fast) var(--rb-ease), background-color var(--rb-d-fast) var(--rb-ease); }
.rb-social__link:hover { border-color: var(--rb-night-accent); }
.rb-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-block-start: 64px; padding-block-start: 24px; border-block-start: 1px solid var(--rb-night-line); color: var(--rb-night-muted); font-size: 0.9375rem; }
.rb-footer__base-links { display: flex; flex-wrap: wrap; gap: 24px; }
.rb-footer__base-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-night-muted); }
.rb-footer__base-link:hover { color: var(--rb-night-ink); }

/* Floating WhatsApp */
.rb-wa { position: fixed; inset-inline-end: 16px; inset-block-end: max(16px, env(safe-area-inset-bottom)); z-index: var(--rb-z-float); display: inline-flex; align-items: center; gap: 0; height: 56px; min-width: 56px; padding: 0 16px; border: 0; border-radius: var(--rb-r-pill); background: var(--rb-wa-bg); color: var(--rb-wa-ink); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); cursor: pointer; box-shadow: var(--rb-shadow-2); transition: transform var(--rb-d) var(--rb-ease), gap var(--rb-d) var(--rb-ease); }
.rb-wa .rb-icon { width: 24px; height: 24px; }
.rb-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--rb-d-slow) var(--rb-ease); }
.rb-wa:hover, .rb-wa:focus-visible { gap: 8px; transform: translateY(-2px); }
.rb-wa:hover .rb-wa__label, .rb-wa:focus-visible .rb-wa__label { max-width: 12rem; }
.rb-wa--preview { position: relative; inset: auto; }

/* Cards, contact, map */
.rb-card { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 28px 24px; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-card .rb-btn { width: 100%; }
.rb-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--rb-r-icon); background: var(--accent-soft); color: var(--rb-ink); }
.rb-card__icon .rb-icon { width: 24px; height: 24px; }
.rb-contactgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rb-contactcard__lines { display: grid; }
.rb-contactcard__line { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-ink); font-weight: 700; word-break: break-word; }
.rb-contactcard__address { font-style: normal; color: var(--rb-muted); }
.rb-map { border-radius: var(--rb-r-lg); background: var(--rb-sunk); box-shadow: var(--rb-card-edge); }
.rb-map__fallback { background: repeating-linear-gradient(0deg, transparent 0 39px, var(--rb-line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--rb-line) 39px 40px), var(--rb-sunk); }
.rb-map__pin { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.rb-map__pin .rb-icon { width: 30px; height: 30px; }
.rb-map__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); }

/* Day-in-the-life timeline (preschool) */
.rb-day { display: grid; gap: 0; }
.rb-day__step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding-block-end: 32px; }
.rb-day__step::before { content: ""; position: absolute; inset-block: 56px 0; inset-inline-start: 27px; border-inline-start: 2px dashed var(--rb-line-strong); }
.rb-day__step:last-child::before { display: none; }
.rb-day__marker { grid-row: span 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--rb-ink); }
.rb-day__time { font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); color: var(--rb-accent-text); font-variant-numeric: tabular-nums; }
.rb-day__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); line-height: 1.25; }
.rb-day__text { color: var(--rb-muted); }


/* Admission steps */
.rb-steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.rb-step { display: grid; gap: 10px; justify-items: start; align-content: start; padding: 24px; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--rb-r-icon); background: var(--rb-fill); color: var(--rb-fill-ink); font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 1.375rem; }
.rb-step__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); }
.rb-step__text { color: var(--rb-muted); }

/* FAQ */
.rb-faq { display: grid; gap: 12px; max-width: 52rem; margin-inline: auto; }
.rb-faq__item { border-radius: var(--rb-r-sm); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-faq__btn { gap: 16px; min-height: 64px; padding: 16px 24px; border: 0; border-radius: var(--rb-r-sm); background: transparent; color: inherit; font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: var(--rb-fs-md); line-height: 1.3; }
.rb-faq__sign { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--rb-r-icon); background: var(--accent-soft); transition: rotate var(--rb-d) var(--rb-ease), background-color var(--rb-d-fast) var(--rb-ease); }
.rb-faq__btn[aria-expanded="true"] .rb-faq__sign { rotate: 45deg; background: var(--rb-fill); color: var(--rb-fill-ink); }
.rb-faq__text { max-width: 44rem; padding: 0 24px 24px; color: var(--rb-muted); }

/* Forms */
.rb-formlayout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .rb-formlayout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } .rb-aside { position: sticky; inset-block-start: calc(var(--rb-header-h) + 24px); } }
.rb-formwrap { display: grid; gap: 20px; min-width: 0; }
.rb-aside { display: grid; gap: 24px; }
.rb-form { display: grid; gap: 32px; padding: 32px 20px; border-radius: var(--rb-r-lg); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
@media (min-width: 768px) { .rb-form { padding: 48px; } }
.rb-form__intro { display: grid; gap: 8px; }
.rb-form__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-xl); line-height: 1.2; }
.rb-form__status { padding: 12px 16px; border-radius: var(--rb-r-sm); background: var(--accent-soft); font-weight: 700; }
.rb-fieldset { display: grid; gap: 16px; }
.rb-fieldset__legend { margin-block-end: 16px; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); }
.rb-field__label { font-weight: 700; line-height: 1.35; }
.rb-field__req { color: var(--rb-danger); }
.rb-field__opt { color: var(--rb-muted); font-weight: 400; }
.rb-field__hint { color: var(--rb-muted); font-size: 0.875rem; line-height: 1.4; }
.rb-input { padding: 12px 16px; border: 2px solid var(--rb-line-strong); border-radius: var(--rb-r-input); background: var(--rb-input-bg); color: var(--rb-ink); transition: border-color var(--rb-d-fast) var(--rb-ease), box-shadow var(--rb-d-fast) var(--rb-ease); }
.rb-input::placeholder { color: var(--rb-muted); }
.rb-input:hover { border-color: var(--rb-muted); }
.rb-input:focus-visible, .rb-input.rb-spec-focus { outline: none; border-color: var(--rb-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.rb-field--error .rb-input { border-color: var(--rb-danger); background-color: var(--rb-danger-soft); }
.rb-field__error { color: var(--rb-danger); }
.rb-form__privacy { max-width: 34ch; color: var(--rb-muted); font-size: 0.875rem; line-height: 1.45; }
.rb-alert { padding: 24px; border-radius: var(--rb-r-md); border: 2px solid; }
.rb-alert--success { background: var(--rb-success-soft); border-color: color-mix(in srgb, var(--rb-success) 45%, transparent); }
.rb-alert--error { background: var(--rb-danger-soft); border-color: color-mix(in srgb, var(--rb-danger) 45%, transparent); }
.rb-alert--calm { background: var(--rb-surface); border-color: var(--rb-line-strong); border-style: dashed; }
.rb-alert__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--rb-r-icon); }
.rb-alert--success .rb-alert__icon { background: var(--rb-success); color: #FFFFFF; }
.rb-alert--error .rb-alert__icon { background: var(--rb-danger); color: #FFFFFF; }
.rb-alert--calm .rb-alert__icon { background: var(--accent-soft); color: var(--rb-ink); }
.rb-alert__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); line-height: 1.3; }
.rb-alert--success, .rb-alert--error { color: #1F1F1F; }
.rb-alert--success .rb-muted, .rb-alert--error .rb-muted { color: #4A4A4A; }

/* Empty states */
.rb-empty { display: grid; justify-items: center; gap: 16px; max-width: 32rem; margin-inline: auto; padding: 48px 24px; border-radius: var(--rb-r-lg); background: var(--rb-surface); text-align: center; box-shadow: 0 0 0 2px var(--rb-line); }
.rb-empty__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); line-height: 1.25; }
.rb-empty__text { color: var(--rb-muted); }

/* Notices page */
.rb-months { display: grid; gap: 48px; max-width: 52rem; }
.rb-month__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-block-end: 16px; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-xl); }
.rb-month__count { color: var(--rb-muted); font-family: var(--rb-font-body); font-weight: 400; font-size: 0.9375rem; }
.rb-month__list { display: grid; gap: 12px; }
.rb-notice-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: var(--rb-r-sm); background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-notice-row__date { display: grid; place-content: center; width: 64px; height: 64px; border-radius: var(--rb-r-icon); background: var(--accent-soft); text-align: center; line-height: 1; }
.rb-notice-row__day { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 1.5rem; }
.rb-notice-row__wd { margin-block-start: 2px; color: var(--rb-muted); font-size: 0.8125rem; font-weight: 700; }
.rb-notice-row__body { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.rb-notice-row__text { font-weight: 600; line-height: 1.45; }
.rb-notice-row__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--rb-ink); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.rb-notice-row__link .rb-icon { width: 16px; height: 16px; }

/* Branches, staff */
.rb-branches { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rb-branch { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-card-edge); overflow: hidden; }
.rb-branch__main { position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-end: 12px; min-height: 32px; padding: 4px 12px; border-radius: var(--rb-r-pill); background: var(--rb-fill); color: var(--rb-fill-ink); }
.rb-branch__body { display: grid; gap: 10px; align-content: start; flex: 1; padding: 20px 24px; }
.rb-branch__city { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--rb-accent-text); font-family: var(--rb-font-ui); font-weight: var(--rb-fw-ui); font-size: 0.875rem; }
.rb-branch__city .rb-icon { width: 16px; height: 16px; }
.rb-branch__name { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-lg); line-height: 1.2; }
.rb-branch__address { font-style: normal; color: var(--rb-muted); }
.rb-branch__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--rb-muted); }
.rb-branch--compact .rb-branch__desc { display: none; }
.rb-branch__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }
.rb-branch__view { margin-inline-start: auto; }
.rb-branchhero { padding-block: 32px 64px; }
.rb-branchhero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .rb-branchhero__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.rb-branchhero__copy { display: grid; gap: 16px; justify-items: start; }
.rb-branchhero__frame { border-radius: var(--rb-r-lg); }
.rb-staff { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.rb-person { display: grid; justify-items: center; gap: 4px; text-align: center; }
.rb-person__photo, .rb-person__initials { width: 140px; aspect-ratio: 1; margin-block-end: 12px; border-radius: var(--rb-r-md); }
.rb-person__initials { display: grid; place-items: center; background: var(--accent-soft); font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: 2.25rem; }
.rb-person__name { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); line-height: 1.25; }
.rb-person__role { color: var(--rb-muted); font-size: 0.9375rem; }

/* Gallery */
.rb-events { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rb-event { display: grid; gap: 12px; align-content: start; }
.rb-event__stack { position: relative; }
.rb-event__cover { border-radius: var(--rb-r-md); }
.rb-event__count { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-end: 12px; display: inline-flex; gap: 4px; align-items: baseline; padding: 6px 12px; border-radius: var(--rb-r-pill); background: var(--rb-surface); color: var(--rb-ink); }
.rb-event__count .rb-mark__big { font-size: 1rem; }
.rb-event__body { display: grid; gap: 2px; }
.rb-event__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); line-height: 1.25; }
.rb-event__date { color: var(--rb-muted); font-size: 0.9375rem; }
.rb-lightbox { background: rgb(12 12 14 / 0.94); color: #FFFFFF; --rb-focus: #FFFFFF; }
.rb-lightbox--preview { border-radius: var(--rb-r-md); }
.rb-lightbox__title { font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-md); }
.rb-lightbox__count { color: #D4D4D4; font-size: 0.9375rem; }
.rb-lightbox__btn.rb-iconbtn { width: 52px; height: 52px; border-color: #FFFFFF; background: transparent; color: #FFFFFF; }
.rb-lightbox__btn.rb-iconbtn:hover { background: rgb(255 255 255 / 0.14); }
.rb-lightbox__img { border-radius: var(--rb-r-sm); animation: rb-pop var(--rb-d) var(--rb-ease); }

/* 404 */
.rb-404 { padding-block: 64px 96px; }
.rb-404__inner { display: grid; justify-items: center; gap: 24px; text-align: center; }
.rb-404__title { max-width: 20ch; font-family: var(--rb-font-display); font-weight: var(--rb-fw-display); font-size: var(--rb-fs-2xl); line-height: var(--rb-lh-head); text-wrap: balance; }

/* Specification page helpers */
.rb-spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 48px; border-block-start: 2px dashed var(--rb-line-strong); }
.rb-spec__label { justify-self: start; padding: 4px 12px; border-radius: 6px; background: var(--rb-ink); color: var(--rb-bg); font-family: var(--rb-font-body); font-size: 0.875rem; font-weight: 700; }
.rb-spec__note { color: var(--rb-muted); font-size: 0.9375rem; }
.rb-spec__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rb-spec__box { position: relative; overflow: hidden; border-radius: var(--rb-r-md); background: var(--rb-bg); box-shadow: 0 0 0 1px var(--rb-line); }
@media (max-width: 479px) {
  .rb-header__apply.rb-btn--primary { padding: 0 12px; font-size: 0.9375rem; }
  .rb-brand { gap: 8px; }
  .rb-brand__logo, .rb-brand__mark { height: 40px; }
  .rb-brand__mark { width: 40px; }
  .rb-brand__name { font-size: 0.9375rem; }
}

/* ---------- Rainbow Bridge: theme components ---------- */

/* ---------- 2. Shared shapes ---------- */
.rb-fa { background: var(--rb-t3); }
.rb-eyebrow { display: inline-block; justify-self: start; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--rb-accent-text); }
.rb-h2 { font-weight: 800; }
.rb-btn--secondary { border-color: var(--rb-line-strong); background: var(--rb-surface); }
.rb-iconbtn { border-color: var(--rb-line-strong); }
.rb-frame--empty { background: linear-gradient(160deg, var(--rb-t1), var(--rb-t3) 50%, var(--rb-t5)); color: var(--rb-accent-text); }
.rb-pill { background: var(--rb-surface); box-shadow: 0 0 0 1px var(--rb-line); }

/* Rainbow-arc divider */
.rb-arcs { position: relative; width: 240px; height: 60px; margin: 0 auto 32px; overflow: hidden; }
.rb-arcs span { position: absolute; inset-inline-start: 50%; inset-block-start: 0; translate: -50% 0; border-radius: 50%; border: 10px solid; }
.rb-arcs span:nth-child(1) { width: 220px; height: 220px; border-color: var(--rb-b1); }
.rb-arcs span:nth-child(2) { width: 176px; height: 176px; inset-block-start: 22px; border-color: var(--rb-b3); }
.rb-arcs span:nth-child(3) { width: 132px; height: 132px; inset-block-start: 44px; border-color: var(--rb-b5); }

/* ---------- 3. Notice bar ---------- */
.rb-notice__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--rb-surface); color: var(--rb-accent-text); }

/* ---------- 4. Header: transparent over the hero, solid on scroll; overlay menu everywhere ---------- */
.rb-header { position: sticky; inset-block-start: 0; z-index: var(--rb-z-header); background: transparent; transition: background-color var(--rb-d) var(--rb-ease), box-shadow var(--rb-d) var(--rb-ease); }
.rb-root--home .rb-header { margin-block-end: calc(-1 * var(--rb-header-h)); }
.rb-root:not(.rb-root--home) .rb-header { background: var(--rb-bg); }
.rb-header--float, .rb-root:not(.rb-root--home) .rb-header--float { background: rgb(255 255 255 / 0.96); box-shadow: 0 16px 32px -24px rgb(170 60 100 / 0.45); }
.rb-header__bar { display: flex; align-items: center; gap: 10px; width: min(100% - 2 * var(--rb-gutter), var(--rb-container)); min-height: var(--rb-header-h); margin-inline: auto; }
.rb-header--static { position: relative; margin: 0; background: var(--rb-bg); }
.rb-brand { margin-inline-end: auto; }
.rb-brand__mark { background: conic-gradient(from 270deg at 50% 100%, var(--rb-b1), var(--rb-b2), var(--rb-b3), var(--rb-b4), var(--rb-b5), var(--rb-b6) 180deg, transparent 0); color: var(--rb-ink); border-radius: 50% 50% 8px 8px; }
.rb-header__call { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; }
.rb-header__call:hover { background: rgb(255 255 255 / 0.7); }
.rb-header__call .rb-icon { color: var(--rb-accent-text); }
@media (min-width: 1024px) { .rb-header__call { display: inline-flex; } }
.rb-menu-btn { background: var(--rb-ink); color: #FFFFFF; border-radius: 999px; padding: 0 18px; }
.rb-menu-btn__label { display: none; }
@media (min-width: 560px) { .rb-menu-btn__label { display: inline; } }

.rb-menu { background: var(--rb-bg); transform: scale(1.02); }
.rb-menu__top { border-block-end: 0; }
.rb-menu__body { display: grid; align-content: center; justify-items: center; text-align: center; background: radial-gradient(circle at 50% 120%, var(--rb-t3) 0 20%, var(--rb-t1) 20% 34%, var(--rb-t5) 34% 48%, transparent 48%); }
.rb-menu__list { width: min(100%, 520px); gap: 6px; }
.rb-menu__link { justify-content: center; border-radius: 999px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.rb-menu__link .rb-icon { display: none; }
.rb-menu__list li:nth-child(6n+1) .rb-menu__link:hover, .rb-menu__list li:nth-child(6n+1) [aria-current="page"] { background: var(--rb-t1); }
.rb-menu__list li:nth-child(6n+2) .rb-menu__link:hover, .rb-menu__list li:nth-child(6n+2) [aria-current="page"] { background: var(--rb-t2); }
.rb-menu__list li:nth-child(6n+3) .rb-menu__link:hover, .rb-menu__list li:nth-child(6n+3) [aria-current="page"] { background: var(--rb-t3); }
.rb-menu__list li:nth-child(6n+4) .rb-menu__link:hover, .rb-menu__list li:nth-child(6n+4) [aria-current="page"] { background: var(--rb-t4); }
.rb-menu__list li:nth-child(6n+5) .rb-menu__link:hover, .rb-menu__list li:nth-child(6n+5) [aria-current="page"] { background: var(--rb-t5); }
.rb-menu__list li:nth-child(6n) .rb-menu__link:hover, .rb-menu__list li:nth-child(6n) [aria-current="page"] { background: var(--rb-t6); }
.rb-menu__secondary { justify-content: center; }
.rb-menu__dock { background: transparent; border: 0; width: min(100%, 560px); margin-inline: auto; }
.rb-menu__close { background: var(--rb-ink); color: #FFFFFF; }

/* ---------- 5. Hero: full-bleed photo under a pastel rainbow arch ---------- */
.rb-hero { position: relative; overflow: hidden; padding-block: calc(var(--rb-header-h) + 6 * var(--rb-band) + 8px) 0; }
.rb-hero__arch { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; margin-inline: 3vw; overflow: hidden; border-radius: 50% 50% 0 0 / min(190px, 28vw) min(190px, 28vw) 0 0; color: #FFFFFF;
  box-shadow: 0 0 0 var(--rb-band) var(--rb-b1), 0 0 0 calc(2 * var(--rb-band)) var(--rb-b2), 0 0 0 calc(3 * var(--rb-band)) var(--rb-b3), 0 0 0 calc(4 * var(--rb-band)) var(--rb-b4), 0 0 0 calc(5 * var(--rb-band)) var(--rb-b5), 0 0 0 calc(6 * var(--rb-band)) var(--rb-b6); }
.rb-hero { clip-path: inset(0 0 -100px 0); }
.rb-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rb-hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(40 18 32 / 0.85) 0%, rgb(40 18 32 / 0.55) 45%, rgb(40 18 32 / 0.05) 80%); }
.rb-hero__arch--nophoto { color: var(--rb-ink); background: linear-gradient(170deg, var(--rb-t1), var(--rb-t3) 50%, var(--rb-t5)); }
.rb-hero__arch--nophoto .rb-hero__scrim { display: none; }
.rb-hero__copy { display: grid; gap: 18px; justify-items: start; padding-block: 120px 56px; }
.rb-hero__title { max-width: 15ch; font-family: var(--rb-font-display); font-weight: 800; font-size: var(--rb-fs-3xl); line-height: var(--rb-lh-tight); text-wrap: balance; }
.rb-hero__subtitle { max-width: 34rem; font-size: var(--rb-fs-md); font-weight: 500; }
.rb-hero__arch:not(.rb-hero__arch--nophoto) .rb-btn--secondary { border-color: #FFFFFF; background: transparent; color: #FFFFFF; }
.rb-hero__arch:not(.rb-hero__arch--nophoto) .rb-btn--secondary:hover { background: rgb(255 255 255 / 0.14); }
.rb-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-hero__chip { padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); font-weight: 700; }
.rb-hero__arch--nophoto .rb-hero__chip { background: var(--rb-surface); box-shadow: none; }
.rb-hero__float { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin-block-start: -36px; }
.rb-enquire { display: grid; gap: 10px; width: min(100%, 380px); padding: 28px; border-radius: var(--rb-r-md); background: var(--rb-surface); box-shadow: var(--rb-shadow-2); animation: rb-bob 5s var(--rb-ease) infinite alternate; }
.rb-enquire__title { font-family: var(--rb-font-display); font-weight: 800; font-size: var(--rb-fs-lg); line-height: 1.2; }
.rb-enquire__text { color: var(--rb-muted); }
.rb-enquire__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
@keyframes rb-bob { from { translate: 0 0; } to { translate: 0 -8px; } }
@media (min-width: 900px) {
  .rb-hero__arch { min-height: clamp(460px, calc(100svh - 260px), 560px); }
  .rb-hero__copy { width: min(100% - 2 * var(--rb-gutter) - 6vw, var(--rb-container)); padding-block: 80px 48px; gap: 14px; }
  .rb-hero__title { font-size: clamp(2.5rem, 1.5rem + 2.6vw, 3.5rem); }
  .rb-hero__float { position: absolute; inset-inline: 0; inset-block-end: 40px; margin: 0 auto; pointer-events: none; }
  .rb-enquire { pointer-events: auto; margin-inline-end: 3vw; }
}

/* Slider sits under the transparent header too */
.rb-root--home .rb-slider { padding-block-start: calc(var(--rb-header-h) + 12px); }
.rb-slider__viewport { border-radius: var(--rb-arch); box-shadow: 0 0 0 var(--rb-band) var(--rb-b1), 0 0 0 calc(2 * var(--rb-band)) var(--rb-b3), 0 0 0 calc(3 * var(--rb-band)) var(--rb-b5); }
.rb-slider__stage { padding-inline: calc(3 * var(--rb-band)); }
.rb-slide__content { padding-block-start: 160px; }
.rb-slider__btn.rb-iconbtn { background: rgb(255 255 255 / 0.95); }

/* ---------- 6. Page head ---------- */
.rb-pagehead { text-align: center; padding-block: 56px 72px; }
.rb-pagehead__inner { justify-items: center; }
.rb-pagehead__lead { margin-inline: auto; }
.rb-crumbs__list { justify-content: center; }
.rb-pagehead__bow { position: absolute; inset-inline-start: 50%; inset-block-end: -340px; width: 760px; height: 760px; translate: -50% 0; border-radius: 50%;
  box-shadow: 0 0 0 18px var(--rb-t1), 0 0 0 36px var(--rb-t2), 0 0 0 54px var(--rb-t3), 0 0 0 72px var(--rb-t4), 0 0 0 90px var(--rb-t5), 0 0 0 108px var(--rb-t6); opacity: 0.8; }

/* ---------- 7. Stats: soft bubbles ---------- */
.rb-stats { padding-block: 24px 64px; }
.rb-stat { padding: 28px 16px; border-radius: var(--rb-r-lg); }
.rb-stat:nth-child(4n+1) { background: var(--rb-t1); }
.rb-stat:nth-child(4n+2) { background: var(--rb-t3); }
.rb-stat:nth-child(4n+3) { background: var(--rb-t4); }
.rb-stat:nth-child(4n) { background: var(--rb-t5); }
.rb-stat .rb-fa { background: var(--rb-surface); }

/* ---------- 8. Arch-masked images ---------- */
.rb-about__media, .rb-story__media, .rb-curriculum__media, .rb-branchhero__frame { border-radius: var(--rb-arch); }
.rb-split__mark { min-width: 100px; padding: 14px; border-radius: 999px 999px 24px 24px; background: var(--rb-t3); color: var(--rb-ink); }
.rb-facts__item { padding: 14px 20px; border-radius: 999px 999px 20px 20px; background: var(--rb-t5); }
.rb-facts__item + .rb-facts__item { background: var(--rb-t1); }
.rb-principal { background: var(--rb-t6); box-shadow: none; }
.rb-principal__photo, .rb-principal__initials { border-radius: 999px 999px 24px 24px; }
.rb-mv__card:first-child { background: var(--rb-t1); box-shadow: none; }
.rb-mv__card + .rb-mv__card { background: var(--rb-t5); box-shadow: none; }
.rb-mv__icon { background: var(--rb-surface); color: var(--rb-accent-text); }
.rb-bigquote__mark { color: var(--rb-accent-text); }

/* ---------- 9. Programme cards: six colour rooms ---------- */
.rb-section--programs { padding-block-start: calc(var(--rb-section) * 0.8); }
.rb-program { --rb-room: var(--rb-t1); padding: 12px; background: var(--rb-room); box-shadow: none; overflow: visible; }
.rb-programs > .rb-program:nth-child(6n+2) { --rb-room: var(--rb-t2); }
.rb-programs > .rb-program:nth-child(6n+3) { --rb-room: var(--rb-t3); }
.rb-programs > .rb-program:nth-child(6n+4) { --rb-room: var(--rb-t4); }
.rb-programs > .rb-program:nth-child(6n+5) { --rb-room: var(--rb-t5); }
.rb-programs > .rb-program:nth-child(6n) { --rb-room: var(--rb-t6); }
.rb-program__media { border-radius: var(--rb-arch); }
.rb-program__body { padding: 18px 12px 16px; }
.rb-program__age { background: var(--rb-surface); }
.rb-ticks__item::before { background: var(--rb-ink); opacity: 0.6; }
.rb-programs:has(> .rb-program:only-child) .rb-program { display: grid; }
@media (min-width: 768px) { .rb-programs:has(> .rb-program:only-child) .rb-program { grid-template-columns: 0.9fr 1fr; align-items: center; } }
@media (hover: hover) { .rb-program { transition: translate var(--rb-d) var(--rb-ease); } .rb-program:hover { translate: 0 -6px; } }

/* ---------- 10. Feature tabs ---------- */
.rb-section--features { background: linear-gradient(var(--rb-bg), var(--rb-sunk)); }
.rb-tabs__list { padding: 6px; border-radius: 999px; background: var(--rb-surface); box-shadow: var(--rb-card-edge); }
.rb-tabs__tab { border-radius: 999px; }
.rb-tabs__tab:hover { background: var(--rb-t1); }
.rb-feature { box-shadow: none; background: var(--rb-surface); border: 2px solid var(--rb-line); }
.rb-features > .rb-feature:nth-child(4n+1) .rb-fa { background: var(--rb-t1); }
.rb-features > .rb-feature:nth-child(4n+2) .rb-fa { background: var(--rb-t3); }
.rb-features > .rb-feature:nth-child(4n+3) .rb-fa { background: var(--rb-t4); }
.rb-features > .rb-feature:nth-child(4n) .rb-fa { background: var(--rb-t5); }

/* ---------- 11. Achievements, testimonials, gallery ---------- */
.rb-achieve__media { border-radius: var(--rb-arch); margin: 10px 10px 0; }
.rb-achieve__year { inset-block-start: 20px; inset-inline-start: 20px; }
.rb-achieve--noimg::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-end: -40px; width: 200px; height: 100px; border-radius: 200px 200px 0 0; box-shadow: inset 0 0 0 14px var(--rb-t1), inset 0 0 0 28px var(--rb-t3), inset 0 0 0 42px var(--rb-t5); rotate: 180deg; }
.rb-quote { border-radius: var(--rb-r-lg) var(--rb-r-lg) var(--rb-r-lg) 8px; }
.rb-quotes__track > .rb-quote:nth-child(3n+1) { background: var(--rb-t1); box-shadow: none; }
.rb-quotes__track > .rb-quote:nth-child(3n+2) { background: var(--rb-t5); box-shadow: none; }
.rb-quotes__track > .rb-quote:nth-child(3n) { background: var(--rb-t4); box-shadow: none; }
.rb-quote__by { border-color: rgb(58 36 51 / 0.12); }
.rb-event__cover { border-radius: var(--rb-arch); }
.rb-event__count { inset-block-start: 14px; inset-block-end: auto; inset-inline-start: 50%; inset-inline-end: auto; translate: -50% 0; }
.rb-event__body { text-align: center; }
@media (hover: hover) { .rb-event__cover .rb-frame__img { transition: transform var(--rb-d-slow) var(--rb-ease); } .rb-event:hover .rb-frame__img { transform: scale(1.04); } }

/* ---------- 12. CTA and footer ---------- */
.rb-cta__panel { text-align: center; justify-items: center; border-radius: var(--rb-arch); padding-block-start: 96px; }
.rb-cta__panel::before { content: ""; position: absolute; inset-inline-start: 50%; inset-block-start: 22px; width: 120px; height: 60px; translate: -50% 0; border-radius: 120px 120px 0 0; box-shadow: inset 0 0 0 10px var(--rb-b1), inset 0 0 0 20px var(--rb-b3), inset 0 0 0 30px var(--rb-b5); }
.rb-cta__copy { justify-items: center; }
.rb-cta__actions { justify-content: center; }
@media (min-width: 900px) { .rb-cta__panel { grid-template-columns: 1fr; padding-block-start: 104px; } }
.rb-btn--cta2 { border-color: var(--rb-ink); }
.rb-footer { border-radius: var(--rb-r-lg) var(--rb-r-lg) 0 0; }
.rb-footer__logo { border-radius: 999px 999px 16px 16px; }
.rb-social__link { border-radius: 50%; }

/* ---------- 13. Misc ---------- */
.rb-day__step:nth-child(6n+1) .rb-day__marker { background: var(--rb-t1); }
.rb-day__step:nth-child(6n+2) .rb-day__marker { background: var(--rb-t2); }
.rb-day__step:nth-child(6n+3) .rb-day__marker { background: var(--rb-t3); }
.rb-day__step:nth-child(6n+4) .rb-day__marker { background: var(--rb-t4); }
.rb-day__step:nth-child(6n+5) .rb-day__marker { background: var(--rb-t5); }
.rb-day__step:nth-child(6n) .rb-day__marker { background: var(--rb-t6); }
.rb-step { border-radius: 999px 999px var(--rb-r-md) var(--rb-r-md); padding-block-start: 32px; justify-items: center; text-align: center; }
.rb-faq__item { border-radius: var(--rb-r-sm); }
.rb-input { border-color: var(--rb-line); }
.rb-branch__media { border-radius: var(--rb-arch); margin: 10px 10px 0; }
.rb-person__photo, .rb-person__initials { border-radius: 999px 999px 24px 24px; }
.rb-map { border-radius: var(--rb-arch); }
.rb-empty__art { display: block; width: 120px; height: 60px; border-radius: 120px 120px 0 0; box-shadow: inset 0 0 0 10px var(--rb-b1), inset 0 0 0 20px var(--rb-b3), inset 0 0 0 30px var(--rb-b5); }
.rb-404__svg { width: min(100%, 380px); height: auto; }
.rb-404__a1 { stroke: var(--rb-b1); }
.rb-404__a2 { stroke: var(--rb-b3); }
.rb-404__a3 { stroke: var(--rb-b5); }
.rb-404__num { font-family: var(--rb-font-display); font-weight: 800; font-size: 64px; fill: var(--rb-ink); }
.rb-section__head--center .rb-eyebrow { justify-self: center; }

/* ---------- Tail: hidden attribute always wins; reduced motion ---------- */
.rb-root [hidden][hidden]:not(.rb-disclosure-slot *) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rb-root :where(*, *::before, *::after):not(.rb-disclosure-slot *) {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    transition-delay: 0s;
    scroll-behavior: auto;
  }
  .rb-reveal--wait { opacity: 1; transform: none; filter: none; }
}
.rb-menu--preview { transform: none; }

/* the arched hero cuts into the bottom corners, so the headline sits further in and a little smaller */
@media (min-width: 768px) {
  .rb-slide__content { padding-inline: clamp(96px, 12vw, 180px); padding-block-end: 112px; }
  .rb-slide__title { font-size: clamp(1.75rem, 1rem + 1.8vw, 2.5rem); max-width: 22ch; }
}
