/* ==========================================================================
   Tokens — shared with the Jain Connection homepage: indigo navy + warm orange
   ========================================================================== */
:root {
  --navy-950: #100e33;
  --navy-900: #14123f;
  --navy-800: #1d1a5c;
  --navy-700: #2b2780;
  --navy-500: #5550c4;
  --navy-100: #ecebfa;
  --navy-50: #f5f4fd;

  --orange-500: #f28a1a;
  --orange-400: #f7a043;
  --orange-600: #e47a0b;
  --orange-text: #b4540a; /* orange that passes 4.5:1 on white */
  --orange-on-dark: #ffb35c;
  --orange-100: #fff1e0;

  --teal-700: #0b7a5f;
  --teal-500: #12a581;
  --teal-100: #e2f5ef;
  --amber-700: #8a4b00;
  --amber-100: #fff1dc;
  --red-700: #b42318;

  --ink: #17153d;
  --slate: #55577a;
  --slate-light: #7a7c99;
  --line: #e4e4ef;
  --canvas: #f6f6fa;
  --white: #fff;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(20 18 63 / 0.06);
  --shadow-md: 0 1px 2px rgb(20 18 63 / 0.05), 0 8px 24px -8px rgb(20 18 63 / 0.12);
  --shadow-lg: 0 2px 4px rgb(20 18 63 / 0.06), 0 24px 48px -16px rgb(20 18 63 / 0.22);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 76px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 48px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { flex-shrink: 0; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: 10px; }

.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--slate); }

.container {
  width: 100%;
  max-width: 1776px; /* ~1680px of content at full HD, matching the header */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Type
   ========================================================================== */
.h1 {
  font-size: clamp(2.125rem, 1.45rem + 2.9vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.h5 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.h6 { font-size: 1rem; line-height: 1.4; font-weight: 700; }

.accent { color: var(--orange-500); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.eyebrow--pill {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgb(242 138 26 / 0.12);
  border: 1px solid rgb(242 138 26 / 0.35);
  color: var(--orange-on-dark);
}

.lead {
  margin-top: var(--s-4);
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--slate);
}

/* ==========================================================================
   Buttons, links, chips
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Navy text keeps the brand orange at full brightness while passing 7:1 contrast. */
.btn--primary { background: var(--orange-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--orange-400); }

.btn--ghost-light { color: var(--white); border-color: rgb(255 255 255 / 0.35); }
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.6); }

.btn--outline { color: var(--navy-800); border-color: var(--line); background: var(--white); }
.btn--outline:hover { border-color: var(--navy-500); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy-700);
  min-height: 32px;
}
.link svg { transition: transform 0.2s var(--ease); }
.link:hover { color: var(--orange-text); }
.link:hover svg { transform: translateX(3px); }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
}
.text-btn:hover { background: var(--canvas); color: var(--ink); }
.text-btn--danger { color: var(--red-700); }
.text-btn--danger:hover { background: #fdecea; color: var(--red-700); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  color: inherit;
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: rgb(255 255 255 / 0.1); }
.icon-btn--dark { border: 1px solid rgb(255 255 255 / 0.25); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip .num {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  font-size: 0.75rem;
  color: var(--slate);
}
.chip:hover { border-color: var(--navy-500); color: var(--ink); }
.chip.is-on { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip.is-on .num { background: rgb(255 255 255 / 0.18); color: var(--white); }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 1px solid var(--line);
}
.seg button,
.seg label {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.seg .is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--orange-500); outline-offset: 1px; }
.seg--block { display: flex; }
.seg--block label { flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-700);
}
.tags--dark li { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.14); color: #d9d8f5; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--teal { background: var(--teal-100); color: var(--teal-700); border-color: #bfe7da; }
.status--amber { background: var(--amber-100); color: var(--amber-700); border-color: #f8d9a8; }
.status--navy { background: var(--navy-100); color: var(--navy-700); border-color: #d6d4f3; }
.status--grey { background: #f0f0f4; color: #5b5d73; border-color: #e1e1ea; }

.progress {
  position: relative;
  height: 8px;
  border-radius: var(--r-pill);
  background: #ececf3;
  overflow: hidden;
}
.progress > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.progress--orange > span { background: var(--orange-500); }
.progress--navy > span { background: var(--navy-700); }
.progress--teal > span { background: var(--teal-500); }

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 0.75rem;
  font-weight: 800;
}
.avatar--sm { width: 28px; height: 28px; font-size: 0.6875rem; }

.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person strong { font-weight: 600; }
.person small { display: block; color: var(--slate); font-size: 0.8125rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.ticks { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); }
.ticks svg {
  margin-top: 3px;
  padding: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-text);
}

.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 0.8125rem; color: var(--slate); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend--stack { flex-direction: column; gap: var(--s-2); margin-top: var(--s-5); }

.note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.875rem; color: var(--slate); }
.note svg { margin-top: 3px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.input,
.select select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: var(--slate-light); }
.input:focus,
.select select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgb(85 80 196 / 0.18);
}
.input[readonly] { background: var(--canvas); color: var(--slate); }
textarea.input { resize: vertical; line-height: 1.5; }
[aria-invalid='true'] { border-color: var(--red-700) !important; }

.select { position: relative; display: inline-block; }
.select--block { display: block; }
.select select { appearance: none; padding-right: 38px; cursor: pointer; }
.select::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label,
.field legend { font-size: 0.875rem; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 6px; }
.field--full { grid-column: 1 / -1; }
.req { color: var(--red-700); }
.field-error { font-size: 0.8125rem; font-weight: 600; color: var(--red-700); }
.field-error--dark { color: #ffb4ab; grid-column: 1 / -1; }

.form-grid { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-top: var(--s-3);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-700);
}
.form-result:empty { margin-top: 0; min-height: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--s-8); }
@media (min-width: 1024px) {
  .section { padding-block: var(--s-9); }
}
.section--light { background: var(--white); }
.section--tint { background: var(--canvas); }
.section--dark {
  background: radial-gradient(1200px 500px at 85% -10%, #2c2785 0%, transparent 60%), var(--navy-900);
  color: var(--white);
}
.section--dark .lead { color: #c3c2e6; }
.section--dark .eyebrow { color: var(--orange-on-dark); }

.section-head { margin-bottom: var(--s-7); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.split .section-head { margin-bottom: 0; }

.split { display: grid; gap: var(--s-7); align-items: start; }
/* Grid children may shrink below their content, so wide tables scroll inside their card instead of widening the page. */
:is(.split, .why, .alloc, .contacts, .fee-panel, .rooms__layout, .hero__inner, .cta) > * { min-width: 0; }
@media (min-width: 1024px) {
  .split--narrow-left { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--s-8); }
  .split--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .split--narrow-left > :first-child,
  .split--wide-right > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 1440px) {
  .split--narrow-left,
  .split--wide-right { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--s-9); }
}


/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}
.site-header__brand { margin-right: auto; display: inline-flex; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__text { display: grid; line-height: 1.15; }
.logo__text strong { font-size: 0.9375rem; font-weight: 800; color: var(--navy-800); }
.logo__text small { font-size: 0.75rem; color: var(--slate); font-weight: 500; }
.logo--light .logo__text strong { color: var(--white); }
.logo--light .logo__text small { color: #b9b8de; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: var(--navy-800);
}
.nav-toggle:hover { background: var(--canvas); }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  padding: var(--s-5) var(--gutter);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; }
.nav ul { display: grid; gap: 2px; }
.nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s-3);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--ink);
}
.nav a:not(.btn):hover { background: var(--canvas); }
.nav a.is-active { color: var(--orange-text); background: var(--orange-100); }
.site-header__cta { display: none; }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
  .nav__cta { display: none; }
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-header__brand { margin-right: 0; }
  .nav {
    position: static;
    inset: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    flex: 1;
    justify-content: center;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    overflow: visible;
  }
  .nav ul { display: flex; gap: 2px; }
  .nav a:not(.btn) {
    position: relative;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    color: var(--slate);
  }
  .nav a:not(.btn):hover { background: none; color: var(--ink); }
  .nav a.is-active { background: none; color: var(--navy-800); }
}

/* ==========================================================================
   Hero — mirrors the Jain Connection homepage hero composition
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(760px 620px at 74% 46%, #2c2888 0%, transparent 68%),
    linear-gradient(180deg, #1f1c63 0%, var(--navy-900) 100%);
}
.hero__glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero__waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
}
.hero__waves path { fill: none; stroke: rgb(255 255 255 / 0.08); stroke-width: 1.2; }
.hero__waves .hero__band { fill: rgb(255 255 255 / 0.03); stroke: none; }

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-6); padding-block: 80px 128px; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--orange-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / 0.4);
}
.hero__badge svg { color: var(--orange-500); }
.hero__title { margin-top: var(--s-5); }
/* Hand-drawn swoosh under each line of the highlighted phrase. */
.hero__highlight {
  color: var(--orange-500);
  padding-bottom: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 80 3, 200 2, 298 7' fill='none' stroke='%23f28a1a' stroke-width='3.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E")
    left bottom / 100% 0.22em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__lead { margin-top: var(--s-5); max-width: 54ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.65; color: #d4d3f1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
.hero__cta { box-shadow: 0 10px 26px -10px rgb(242 138 26 / 0.7); }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: #f4f4fb; box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
.btn--light svg { color: var(--orange-600); }

.trust {
  display: grid;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 480px) {
  .trust { grid-template-columns: 1fr 1fr; }
}
.trust li { display: flex; align-items: center; gap: 12px; }
.trust__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--white);
  color: var(--orange-600);
  box-shadow: 0 4px 12px -6px rgb(0 0 0 / 0.5);
}

/* ---------- Ecosystem ----------
   Everything inside is sized in container units (cqw) so the whole diagram scales as one piece. */
.orbit {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 1;
  margin-inline: auto;
  container-type: inline-size;
}
.orbit::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(242 138 26 / 0.22), rgb(85 80 196 / 0.12) 60%, transparent 100%);
  pointer-events: none;
}
.orbit__rays {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 220 170 / 0.13) 0deg 0.5deg, transparent 0.5deg 5deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 46%, #000 56%, rgb(0 0 0 / 0.4) 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 46%, #000 56%, rgb(0 0 0 / 0.4) 80%, transparent 100%);
  pointer-events: none;
}
.orbit__rings,
.orbit__spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__rings circle { fill: none; transform-box: fill-box; transform-origin: center; }
.orbit__ring--outer { stroke: rgb(255 255 255 / 0.07); stroke-width: 0.18; stroke-dasharray: 1.6 1.4; }
.orbit__ring--track { stroke: rgb(255 255 255 / 0.1); stroke-width: 0.2; stroke-dasharray: 0.3 1.1; stroke-linecap: round; }
.orbit__ring--inner { stroke: rgb(255 200 140 / 0.28); stroke-width: 0.22; stroke-dasharray: 0.25 0.9; stroke-linecap: round; }

/* The turning layer: the angle arrives as --rot from the animation loop in static/js/site.js. */
.orbit__spin { position: absolute; inset: 0; rotate: var(--rot, 0deg); will-change: rotate; }

.orbit__spokes line { stroke: rgb(242 138 26 / 0.6); stroke-width: 0.22; transition: stroke 0.3s ease, stroke-width 0.3s ease; }
.orbit__spokes .orbit__pulse { stroke: rgb(255 214 160 / 0.9); stroke-width: 0.35; stroke-dasharray: 0.14 1.2; stroke-dashoffset: 1.2; stroke-linecap: round; opacity: 0; }
.orbit__dot { fill: var(--orange-500); transform-box: fill-box; transform-origin: center; transition: scale 0.3s ease, fill 0.3s ease; }
.orbit__spokes .is-hot line { stroke: #ffc27a; stroke-width: 0.42; }
.orbit__spokes .is-hot .orbit__dot { scale: 1.5; fill: #ffb35c; }

.orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 34cqw;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5cqw;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffdf8 0%, #fff6e6 55%, #ffe3bd 100%);
  border: 3px solid rgb(242 138 26 / 0.55);
  box-shadow:
    0 0 0 1.4cqw rgb(255 225 185 / 0.14),
    0 0 0 2.8cqw rgb(255 225 185 / 0.06),
    0 0 9cqw 2cqw rgb(242 138 26 / 0.38);
}
/* Fine inner ring, as on the reference disc. */
.orbit__core::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgb(242 138 26 / 0.28);
  pointer-events: none;
}
.orbit__core-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 12cqw;
  aspect-ratio: 1;
  margin-bottom: 1.2cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2f2a8f, var(--navy-900));
  color: var(--orange-500);
  box-shadow: 0 0 0 0.6cqw #fff, 0 0 0 0.9cqw rgb(242 138 26 / 0.5), 0 8px 18px -6px rgb(20 18 63 / 0.6);
}
.orbit__core-mark > svg:last-child { width: 4.2cqw; height: 4.2cqw; }
.orbit__core-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__core-dots circle { fill: #ffc24a; }
.orbit__core strong {
  font-size: clamp(0.875rem, 2.7cqw, 1.375rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-800);
  padding-inline: 12%;
}
.orbit__core small {
  font-size: clamp(0.5625rem, 1.25cqw, 0.6875rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.orbit__nodes { position: absolute; inset: 0; }
.orbit__node {
  position: absolute;
  z-index: 1;
  translate: -50% -42%; /* the icon sits above the card, so nudge the card down to keep the pair centred */
  rotate: calc(var(--rot, 0deg) * -1); /* cancels the layer's turn so labels never tilt */
}
.orbit__node:hover,
.orbit__node:focus-within { z-index: 4; }
.orbit__card {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(108px, 20cqw, 156px);
  min-height: clamp(72px, 11.6cqw, 92px);
  padding: clamp(26px, 4.4cqw, 36px) 10px clamp(10px, 1.8cqw, 14px);
  border-radius: clamp(10px, 1.8cqw, 14px);
  background: var(--white);
  color: var(--navy-800);
  text-align: center;
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.55), 0 2px 6px rgb(20 18 63 / 0.12);
  transition: scale 0.3s var(--ease-out, ease), box-shadow 0.3s ease;
}
.orbit__card:hover,
.orbit__card:focus-visible { scale: 1.06; box-shadow: 0 18px 36px -14px rgb(0 0 0 / 0.6), 0 0 0 2px rgb(242 138 26 / 0.6); }
.orbit__label {
  font-size: clamp(0.75rem, 1.95cqw, 0.9375rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.orbit__icon {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -55%;
  display: grid;
  place-items: center;
  width: clamp(40px, 7.4cqw, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--white);
  border: clamp(2px, 0.45cqw, 3.5px) solid var(--white);
  box-shadow: 0 6px 14px -6px rgb(20 18 63 / 0.55);
}
.orbit__icon svg { width: 42%; height: 42%; }
.ico--navy { background: linear-gradient(145deg, #3d38a8, #1d1a5c); }
.ico--pink { background: linear-gradient(145deg, #f06aa0, #d23c78); }
.ico--green { background: linear-gradient(145deg, #4fa07f, #2f7a5e); }
.ico--orange { background: linear-gradient(145deg, #f7a043, #e47a0b); }
.ico--cyan { background: linear-gradient(145deg, #3cc0dc, #1595b3); }
.ico--purple { background: linear-gradient(145deg, #a58bf7, #7c5ae6); }
.ico--coral { background: linear-gradient(145deg, #f2876c, #dc5a3f); }
.ico--teal { background: linear-gradient(145deg, #34b29a, #0f8a72); }
.ico--amber { background: linear-gradient(145deg, #f6b740, #dd8f0d); }
.ico--red { background: linear-gradient(145deg, #ec6475, #cf3a4e); }

/* Accent tones shared with other sections (module carousel badges). */
.tone--indigo { background: var(--navy-500); }
.tone--orange { background: var(--orange-600); }
.tone--teal { background: var(--teal-500); }
.tone--violet { background: #8b5cf6; }

@keyframes node-in { from { opacity: 0; scale: 0.85; } }
@keyframes ring-spin { to { rotate: 360deg; } }
@keyframes ring-spin-back { to { rotate: -360deg; } }
@keyframes core-breathe {
  0% { opacity: 0.6; scale: 1; }
  100% { opacity: 0; scale: 1.16; }
}
@keyframes mark-breathe { 50% { scale: 1.05; } }
/* One 19s cycle per connector; each lights for about 2.4s, staggered so they take turns. */
@keyframes spoke-pulse {
  0% { stroke-dashoffset: 1.2; opacity: 0; }
  2% { opacity: 1; }
  10% { opacity: 1; }
  12.6% { stroke-dashoffset: -0.1; opacity: 0; }
  100% { stroke-dashoffset: -0.1; opacity: 0; }
}

/* Breathing halo around the fixed centre. */
.orbit__core::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgb(242 138 26 / 0.5);
  opacity: 0;
  pointer-events: none;
}

/* Tablet: the diagram sits under the copy and shrinks as one piece. */
@media (min-width: 640px) and (max-width: 1023px) {
  .orbit { max-width: 640px; }
}

/* Phones: the centre leads, and the modules become a two-column grid of the same cards. */
@media (max-width: 639px) {
  .orbit { aspect-ratio: auto; max-width: none; container-type: normal; display: flex; flex-direction: column; }
  .orbit__core { order: -1; }
  .orbit::before { inset: -10% 10% auto; height: 260px; }
  .orbit__rays,
  .orbit__rings,
  .orbit__spokes { display: none; }
  .orbit__spin { position: static; rotate: none; }
  .orbit__core {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    width: 200px;
    gap: 4px;
    margin: 0 auto var(--s-7);
    box-shadow: 0 0 0 10px rgb(255 225 185 / 0.12), 0 0 60px 10px rgb(242 138 26 / 0.35);
  }
  .orbit__core-mark { width: 64px; margin-bottom: 8px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgb(242 138 26 / 0.5); }
  .orbit__core-mark > svg:last-child { width: 26px; height: 26px; }
  .orbit__core strong { font-size: 1.0625rem; }
  .orbit__core small { font-size: 0.625rem; }
  .orbit__nodes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .orbit__node { position: static; translate: none; rotate: none; }
  .orbit__card { width: 100%; min-height: 84px; padding: 30px 10px 12px; }
  .orbit__label { font-size: 0.875rem; }
  .orbit__icon { width: 46px; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Platform pillars
   ========================================================================== */
.pillars { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-5); }
.pillar > :not(.pillar__media) { margin-inline: var(--s-3); }
.pillar p { color: var(--slate); font-size: 0.9375rem; }
.pillar .tags { margin-top: var(--s-1); margin-bottom: var(--s-2); }
.pillar .link { margin-top: auto; }

/* Artwork sits flush in the card's top inset, like the Jain Connection platform cards. */
.pillar__media {
  aspect-ratio: 16 / 9;
  margin-bottom: var(--s-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-50);
}
.pillar__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Frame / dashboard mockup
   ========================================================================== */
.frame {
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #dcdce6; }
.frame__bar p { margin-left: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--slate); }
.frame__body { padding: var(--s-4); }
@media (min-width: 768px) { .frame__body { padding: var(--s-5); } }
.frame__foot { margin-top: var(--s-3); font-size: 0.8125rem; color: var(--slate); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 379px) { .kpi { padding: var(--s-3); } .kpi strong { font-size: 1.5rem; } .kpi__icon { width: 32px; height: 32px; } }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.kpi p { font-size: 0.8125rem; color: var(--slate); }
.kpi strong { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.kpi__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  color: var(--navy-700);
}
.kpi:first-child { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.kpi:first-child p { color: #c9c8ee; }
.kpi:first-child .kpi__icon { background: var(--orange-500); color: var(--navy-900); }

.dash__grid { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
@media (min-width: 900px) { .dash__grid { grid-template-columns: 1.2fr 1fr; } }
.panel { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line); }
.panel--wide { grid-column: 1 / -1; }
.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-4);
  font-size: 0.9375rem;
  font-weight: 700;
}
.block-bars { display: grid; gap: var(--s-4); }
.block-bars li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--s-3); font-size: 0.875rem; }
.block-bars__name { font-weight: 600; }
.block-bars__val { color: var(--slate); font-size: 0.8125rem; }
.queue { display: grid; gap: 4px; }
.queue a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 6px 8px;
  margin-inline: -8px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
}
.queue a:hover { background: var(--canvas); }
.queue__count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--orange-100);
  color: var(--orange-text);
  font-weight: 800;
}
.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.status-strip > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 8px; }
.status-strip > div .status { grid-column: 1 / -1; justify-self: start; margin-bottom: 4px; }
.status-strip strong { font-size: 1.5rem; font-weight: 800; }
.status-strip small { color: var(--slate); }

/* ==========================================================================
   Module showcase — card carousel + linked detail panel
   ========================================================================== */
.tone--pink { background: #db2777; }
.tone--cyan { background: #0891b2; }
.tone-soft--indigo { background: var(--navy-50); color: var(--navy-500); }
.tone-soft--teal { background: var(--teal-100); color: var(--teal-700); }
.tone-soft--violet { background: #f1ebfe; color: #7c3aed; }
.tone-soft--orange { background: var(--orange-100); color: var(--orange-text); }
.tone-soft--pink { background: #fde8f1; color: #be185d; }
.tone-soft--cyan { background: #e0f5fa; color: #0e7490; }

.showcase__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.showcase__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid #f6d3ad;
  box-shadow: 0 4px 14px -8px rgb(242 138 26 / 0.45);
  font-size: 0.875rem;
  font-weight: 600;
}
.showcase__hint > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-900);
}
.showcase__pause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  transition: border-color var(--t-hover, 0.2s) ease, color var(--t-hover, 0.2s) ease;
}
.showcase__pause:hover { border-color: var(--navy-500); color: var(--ink); }

.showcase { position: relative; }
.showcase__track {
  overflow: hidden;
  padding: 6px 0 22px;
  touch-action: pan-y; /* vertical page scroll stays native; horizontal swipes move the rail */
  cursor: grab;
  user-select: none;
  /* Cards fade out at both edges, as in the community services strip. */
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.showcase__track:active { cursor: grabbing; }
.showcase__rail {
  display: flex;
  gap: var(--s-4);
  width: max-content;
  will-change: transform;
}
.showcase__rail img, .showcase__rail svg { -webkit-user-drag: none; }
.mod-card-wrap { flex: 0 0 78vw; display: flex; }
@media (min-width: 560px) { .mod-card-wrap { flex-basis: 260px; } }
@media (min-width: 1280px) { .mod-card-wrap { flex-basis: 268px; } }

.mod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 8px 16px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.25s var(--ease-out, ease), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3d2e6; }
.mod-card.is-active {
  border-color: var(--orange-500);
  background: linear-gradient(180deg, #fff 55%, #fff6ec 100%);
  box-shadow: 0 14px 30px -14px rgb(242 138 26 / 0.55);
}
/* Pointer joining the active card to the panel below. */
.mod-card.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  translate: -50% 0;
  rotate: 45deg;
  background: #fff6ec;
  border-right: 1.5px solid var(--orange-500);
  border-bottom: 1.5px solid var(--orange-500);
  border-bottom-right-radius: 3px;
}

.mod-card__thumb {
  position: relative;
  display: block;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px), var(--thumb);
  background-size: 14px 14px, cover;
}
.thumb--indigo { --thumb: linear-gradient(140deg, #2d2a8a, var(--navy-900)); }
.thumb--teal { --thumb: linear-gradient(140deg, #146c63, #10284a); }
.thumb--violet { --thumb: linear-gradient(140deg, #5b34b5, #1d1a5c); }
.thumb--orange { --thumb: linear-gradient(140deg, #b45309, #2b1a4f); }
.thumb--pink { --thumb: linear-gradient(140deg, #9d174d, #1d1a5c); }
.thumb--cyan { --thumb: linear-gradient(140deg, #0e6b84, #14123f); }
.mod-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: scale 0.6s var(--ease-out, ease);
}
/* Soft shade at the bottom so the icon badge reads against busy artwork. */
.mod-card__thumb:has(img)::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgb(20 18 63 / 0.28));
}
.mod-card:hover .mod-card__thumb img,
.mod-card.is-active .mod-card__thumb img { scale: 1.05; }
.mod-card__stat { z-index: 1; box-shadow: 0 2px 8px -2px rgb(20 18 63 / 0.35); }
.mod-card__art {
  position: absolute;
  right: -10px;
  bottom: -14px;
  color: #fff;
  opacity: 0.2;
  transition: transform 0.6s var(--ease-out, ease), opacity 0.3s ease;
}
.mod-card:hover .mod-card__art,
.mod-card.is-active .mod-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: scale 0.6s var(--ease-out, ease);
}
/* Soft shade at the bottom so the icon badge reads against busy artwork. */
.mod-card__thumb:has(img)::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgb(20 18 63 / 0.28));
}
.mod-card:hover .mod-card__thumb img,
.mod-card.is-active .mod-card__thumb img { scale: 1.05; }
.mod-card__stat { z-index: 1; box-shadow: 0 2px 8px -2px rgb(20 18 63 / 0.35); }
.mod-card__art { transform: translate(-6px, -4px); opacity: 0.32; }
.mod-card__stat {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.95);
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-card__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -22px 0 0 12px;
  position: relative;
  border-radius: 50%;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px -4px rgb(20 18 63 / 0.4);
}
.mod-card__body { display: grid; gap: 2px; padding: 8px 8px 0; }
.mod-card__body strong { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mod-card__body small { font-size: 0.8125rem; color: var(--slate); }
.mod-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding: 14px 8px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
}
.mod-card__cta svg { transition: transform 0.2s var(--ease-out, ease); }
.mod-card:hover .mod-card__cta { color: var(--navy-700); }
.mod-card:hover .mod-card__cta svg { transform: translateX(3px); }
.mod-card.is-active .mod-card__cta { color: var(--orange-text); }
.mod-card.is-active .mod-card__cta svg { transform: none; }

.showcase__arrow {
  position: absolute;
  top: 82px;
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease-out, ease), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.showcase__arrow:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg); }
.showcase__arrow--prev { left: -18px; }
.showcase__arrow--next { right: -18px; }
.showcase__arrow--prev:hover { transform: translateX(-2px); }
.showcase__arrow--next:hover { transform: translateX(2px); }
@media (min-width: 768px) { .showcase__arrow { display: grid; } }
@media (min-width: 768px) and (max-width: 1279px) {
  .showcase__arrow--prev { left: -6px; }
  .showcase__arrow--next { right: -6px; }
}

/* Detail panel */
.detail { position: relative; margin-top: var(--s-3); padding: var(--s-6) var(--s-5); overflow: hidden; }
@media (min-width: 768px) { .detail { padding: var(--s-7) var(--s-7) var(--s-6); } }
.detail__inner { display: grid; justify-items: center; text-align: center; }
.detail__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgb(236 235 250 / 0.6);
  margin-bottom: var(--s-4);
}
.detail__count {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
}
@media (max-width: 639px) { .detail__count { position: static; margin-bottom: var(--s-3); } }
.detail__label { margin-bottom: var(--s-2); }
.detail__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.detail__text { margin-top: var(--s-3); max-width: 62ch; color: var(--slate); font-size: 1.0625rem; }
.detail__features {
  display: grid;
  gap: var(--s-3);
  width: 100%;
  margin-top: var(--s-6);
  text-align: left;
}
@media (min-width: 640px) { .detail__features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .detail__features { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.detail__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease-out, ease), box-shadow 0.22s ease, border-color 0.22s ease;
}
.detail__features li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3d2e6; }
.detail__ficon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
}
.detail__features strong { display: block; font-size: 0.9375rem; font-weight: 700; }
.detail__features p { font-size: 0.875rem; color: var(--slate); margin-top: 2px; }
.detail__link { margin-top: var(--s-5); }

/* Content swap: the panel fades and slides, then its features follow in sequence. */
@media (prefers-reduced-motion: no-preference) {
  .detail__inner { animation: a-up 0.5s var(--ease-out, ease) backwards; --a-y: 14px; }
  .detail__icon { animation: a-pop 0.5s var(--ease-out, ease) 60ms backwards; }
  .detail__features li { animation: a-up 0.5s var(--ease-out, ease) backwards; animation-delay: calc(140ms + var(--f, 0) * 60ms); --a-y: 14px; }
  .mod-card.is-active { animation: card-on 0.4s var(--ease-out, ease); }
}
@keyframes card-on { 0% { box-shadow: 0 0 0 0 rgb(242 138 26 / 0.45); } 100% { box-shadow: 0 14px 30px -14px rgb(242 138 26 / 0.55); } }

/* ==========================================================================
   Rooms — building map (signature element)
   ========================================================================== */
.rooms__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.legend i,
.beds i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.is-taken { background: var(--orange-500); }
.is-free { background: var(--white); border: 1.5px solid var(--navy-500); }
.is-blocked { background: repeating-linear-gradient(45deg, #b8b8c9 0 2px, #e9e9f1 2px 4px); }

.rooms__layout { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
  .rooms__layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}

.building {
  position: relative;
  padding: var(--s-5) var(--s-4) 0;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--navy-50), #fff);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .building { padding: var(--s-6) var(--s-6) 0; } }
.building__roof {
  height: 14px;
  margin: 0 -6px var(--s-3);
  border-radius: 8px 8px 0 0;
  background: var(--navy-800);
}
.building__base { height: 12px; margin: var(--s-3) -6px 0; background: #d8d7ea; border-radius: 4px 4px 0 0; }
.floor {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed #d6d5e8;
}
.floor:last-of-type { border-bottom: 0; }
@media (min-width: 640px) { .floor { grid-template-columns: 110px 1fr; align-items: center; } }
.floor__label { display: flex; gap: 8px; align-items: baseline; font-size: 0.8125rem; color: var(--slate); }
@media (min-width: 640px) { .floor__label { flex-direction: column; gap: 0; } }
.floor__label strong { color: var(--ink); font-size: 0.875rem; }
.floor__rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 768px) { .floor__rooms { gap: var(--s-3); } }

.room-tile {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1.5px solid var(--line);
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.15s var(--ease);
}
.room-tile:hover { border-color: var(--navy-500); box-shadow: var(--shadow-md); }
.room-tile:active { transform: scale(0.98); }
.room-tile__no { font-weight: 800; font-size: 1rem; }
.room-tile__type { font-size: 0.75rem; color: var(--slate); }
.room-tile .beds { display: flex; gap: 4px; margin-top: auto; }
.room-tile.is-occupied { background: #fffaf3; }
.room-tile.is-maintenance { background: repeating-linear-gradient(135deg, #fff 0 10px, #f6f6fa 10px 20px); }
.room-tile.is-selected { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgb(29 26 92 / 0.14); }
.room-tile.is-dim { opacity: 0.32; }

.room-card { padding: var(--s-5); display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .room-card { position: sticky; top: calc(var(--header-h) + 32px); } }
.room-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.room-card__head .muted { font-size: 0.8125rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.specs > div { background: var(--white); padding: 10px 12px; }
.specs dt { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--slate); }
.specs dd { font-weight: 700; margin-top: 2px; }
.room-card__residents { display: grid; gap: var(--s-2); }
.room-card__residents .muted { font-size: 0.8125rem; font-weight: 600; }
.room-card__residents ul { display: grid; gap: var(--s-2); }
.room-card__residents li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.875rem; }
.room-card__residents li span { color: var(--slate); }
.room-card__total {
  display: grid;
  gap: 2px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--slate);
}
.room-card__total strong { color: var(--ink); font-size: 0.9375rem; }

/* ==========================================================================
   Tables
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; margin-bottom: var(--s-4); }
.toolbar__filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.toolbar .select select { min-height: 42px; font-size: 0.875rem; }
.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 14px; color: var(--slate); }
.search input {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px 8px 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--canvas);
}
.search input:focus { outline: none; border-color: var(--navy-500); background: var(--white); box-shadow: 0 0 0 3px rgb(85 80 196 / 0.18); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.table { font-size: 0.875rem; }
.table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
  background: #fafafd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbfe; }

@media (max-width: 767px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 0; border: 0; display: grid; gap: 2px; justify-items: start; }
  .table--stack td::before { content: attr(data-label); font-size: 0.6875rem; font-weight: 700; color: var(--slate); }
  .table--stack td[data-label='Name'] { grid-column: 1 / -1; order: -1; }
  .table--stack td[data-label='Name']::before { display: none; }
}

.empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-4); text-align: center; color: var(--slate); }

/* ==========================================================================
   Lifecycle timeline
   ========================================================================== */
.timeline { display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 640px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .timeline { grid-template-columns: repeat(6, 1fr); gap: var(--s-3); position: relative; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 19px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-500), rgb(242 138 26 / 0.15));
  }
}
.timeline__step { display: grid; grid-template-rows: auto 1fr; gap: var(--s-3); position: relative; }
.timeline__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-900);
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--navy-900);
}
@media (min-width: 1080px) { .timeline__num { margin-inline: auto; } }
.timeline__card {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  height: 100%;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.12);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.timeline__card:hover { background: rgb(255 255 255 / 0.09); border-color: rgb(242 138 26 / 0.5); }
.timeline__icon { color: var(--orange-on-dark); }
.timeline__card p { font-size: 0.875rem; color: #c3c2e6; }
.timeline__card .tags { margin-top: var(--s-2); }

/* ==========================================================================
   Onboarding
   ========================================================================== */
/* Checklist on the left, a compact summary column on the right. */
.onb { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) { .onb { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.onb > * { min-width: 0; }

.onb__checklist { padding: var(--s-5); }
@media (min-width: 768px) { .onb__checklist { padding: var(--s-6); } }
.onb__card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-5); }
.onb__card-head .muted { font-size: 0.875rem; }
.onb__steps { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .onb__steps { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }
.onb__steps li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 1px solid transparent;
  transition: border-color var(--t-hover, 0.2s) ease, background-color var(--t-hover, 0.2s) ease;
}
.onb__steps li:hover { background: var(--white); border-color: var(--line); }
.onb__steps strong { display: block; font-size: 0.9375rem; font-weight: 700; }
.onb__steps small { display: block; font-size: 0.8125rem; color: var(--slate); }
.onb__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 800;
}
.onb__steps li:nth-child(n + 7) .onb__num { background: var(--orange-500); color: var(--navy-900); }

.onb__side { display: grid; gap: var(--s-4); }
.onb__summary { padding: var(--s-5); }
@media (min-width: 768px) { .onb__summary { padding: var(--s-6); } }
.onb__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: var(--s-4); }
.onb__big strong { font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--navy-800); }
.onb__big span { color: var(--slate); }
.stack-bar--light { height: 10px; border-radius: var(--r-pill); gap: 3px; }
.stack-bar--light .stack-bar__seg.is-completed { background: var(--navy-700); }
.stack-bar--light .stack-bar__seg.is-active { background: var(--teal-500); }
.stack-bar--light .stack-bar__seg.is-pending { background: var(--orange-400); }
.onb__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); }
.onb__legend li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.875rem; }
.onb__forms { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.onb__forms > div { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s-3); align-items: center; }
.onb__forms dt { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.onb__forms dt svg { color: var(--navy-500); }
.onb__forms dd { font-weight: 800; font-size: 0.9375rem; }
.onb__forms .progress { grid-column: 1 / -1; }

.onb__follow { padding: var(--s-4) var(--s-5); }
.onb__follow h3 { margin-bottom: var(--s-2); }
.onb__follow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.onb__follow strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.onb__follow small { display: block; font-size: 0.8125rem; color: var(--slate); }
.onb__done {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* ==========================================================================
   Allocation
   ========================================================================== */
.alloc { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .alloc { grid-template-columns: 400px minmax(0, 1fr); align-items: start; } }
.alloc__assign,
.alloc__release { padding: var(--s-5); }
@media (min-width: 768px) {
  .alloc__assign,
  .alloc__release { padding: var(--s-6); }
}
.stepper { display: grid; gap: var(--s-5); margin: var(--s-5) 0; }
.stepper li { display: grid; gap: var(--s-2); }
.field-label { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 700; }
.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.75rem;
}
.room-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s-2); }
.room-pick {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.room-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.room-pick small { font-size: 0.75rem; color: var(--slate); }
.room-pick:hover { border-color: var(--navy-500); }
.room-pick.is-on { border-color: var(--orange-500); background: var(--orange-100); }
.room-pick:has(input:focus-visible) { outline: 3px solid var(--orange-500); outline-offset: 2px; }

.alloc__release-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.alloc__release-head .muted { font-size: 0.875rem; }
.assign-list { margin-top: var(--s-3); }
.assign-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.assign-list__room { font-weight: 700; justify-self: end; }
.assign-list__date { font-size: 0.8125rem; color: var(--slate); }
.assign-list .text-btn,
.assign-list .confirm { justify-self: end; }
@media (min-width: 640px) {
  .assign-list li { grid-template-columns: minmax(0, 1fr) 64px 130px 220px; }
}
.confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; }
.confirm > span { margin-right: 4px; }

/* ==========================================================================
   Leave
   ========================================================================== */
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-6) 0 var(--s-5); }
.mini-stats > div {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.section--light .mini-stats > div { background: var(--canvas); }
.mini-stats dt { font-size: 0.8125rem; color: var(--slate); }
.mini-stats dd { font-size: 1.75rem; font-weight: 800; margin-top: 4px; line-height: 1.1; }

.leave-board { padding: var(--s-5); }
@media (max-width: 479px) { .leave-board .seg { display: flex; width: 100%; } .leave-board .seg button { flex: 1; padding-inline: 4px; } }
.leave-board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.leave-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  align-items: center;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.leave-list .days,
.leave-list .status { grid-column: 2; justify-self: start; }
@media (min-width: 640px) {
  .leave-list li { grid-template-columns: 150px minmax(0, 1fr) 72px 110px; }
  .leave-list .days,
  .leave-list .status { grid-column: auto; }
}
.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--navy-50);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-700);
  white-space: nowrap;
}
.date-range i { width: 12px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.leave-list__who { display: grid; min-width: 0; }
.leave-list__who small { color: var(--slate); font-size: 0.8125rem; }
.days { font-size: 0.8125rem; font-weight: 700; color: var(--slate); }

/* ==========================================================================
   Vehicles
   ========================================================================== */
.vehicle-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin-bottom: var(--s-5); }
@media (min-width: 768px) { .vehicle-summary { grid-template-columns: repeat(5, 1fr); } }
.vstat {
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1.5px solid var(--line);
  text-align: left;
  transition: border-color 0.2s var(--ease);
}
.vstat strong { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.vstat span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--slate); font-weight: 600; }
.vstat:hover { border-color: var(--navy-500); }
.vstat.is-on { border-color: var(--navy-800); background: var(--navy-800); color: var(--white); }
.vstat.is-on span { color: #c9c8ee; }

.vehicles { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .vehicles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vehicles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .vehicles { grid-template-columns: repeat(4, 1fr); } }
.vehicle { padding: var(--s-4); display: grid; gap: var(--s-3); box-shadow: var(--shadow-sm); }
.vehicle.is-inactive { opacity: 0.75; }
.vehicle__top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.vehicle__top div { display: grid; line-height: 1.3; }
.vehicle__top small { font-size: 0.75rem; color: var(--slate); }
.vehicle__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  color: var(--navy-700);
}
.plate {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid #1b1b24;
  background: #fff;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.plate::after { content: ''; flex: 1; }
.plate__ind {
  display: grid;
  place-items: center;
  padding: 0 6px;
  margin-right: 10px;
  background: #1f3b8f;
  color: #fff;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}
.plate { line-height: 2.1; }
.plate--none {
  justify-content: center;
  border-style: dashed;
  border-color: #c8c8d6;
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}
.plate--none::after { display: none; }
.vehicle__meta { display: grid; gap: 4px; font-size: 0.8125rem; }
.vehicle__meta div { display: flex; justify-content: space-between; gap: var(--s-2); }
.vehicle__meta dt { color: var(--slate); }
.vehicle__meta dd { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.15); }

/* ==========================================================================
   Documents matrix
   ========================================================================== */
.doc-score { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); font-size: 0.875rem; color: var(--slate); }
.doc-score strong { color: var(--ink); }
.matrix-wrap { overflow-x: auto; padding: var(--s-2); contain: paint; /* keeps the wide table from widening the page on phones */ }
.matrix { min-width: 720px; font-size: 0.8125rem; }
.matrix th,
.matrix td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix thead th { font-size: 0.75rem; color: var(--slate); font-weight: 700; vertical-align: bottom; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix tbody th { font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--white); }
.cell-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a6a7bd;
}
.cell-mark > svg {
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f1f1f6;
}
.cell-mark.is-done { color: var(--teal-700); }
.cell-mark.is-done > svg { background: var(--teal-100); }
.cell-mark.is-pending { color: var(--amber-700); }
.cell-mark.is-pending > svg { background: var(--amber-100); }
.cell-date { font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.legend--stack .cell-mark { margin-right: 4px; }

/* ==========================================================================
   Fee waiver
   ========================================================================== */
.fee-panel {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--r-xl);
  color: var(--white);
  background:
    radial-gradient(700px 360px at 100% 100%, rgb(242 138 26 / 0.22), transparent 60%),
    linear-gradient(140deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .fee-panel { padding: var(--s-7); } }
@media (min-width: 1080px) { .fee-panel { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--s-7); } }
.fee-panel .section-head { margin-bottom: 0; }
.fee-panel .eyebrow { color: var(--orange-on-dark); }
.fee-panel .lead { color: #c9c8ee; }
.fee-totals { display: grid; gap: var(--s-2); margin: var(--s-6) 0; }
.fee-totals div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}
.fee-totals dt { color: #c9c8ee; font-size: 0.875rem; }
.fee-totals dd { font-weight: 800; }
.fee-totals div:nth-child(2) dd { color: var(--orange-on-dark); }

.ledger {
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.12);
  overflow: hidden;
  min-width: 0;
}
.ledger__head,
.ledger__row { display: grid; gap: var(--s-2) var(--s-3); padding: 12px 16px; align-items: center; }
.ledger__head { display: none; font-size: 0.75rem; font-weight: 700; color: #b9b8de; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.ledger__row { grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgb(255 255 255 / 0.08); font-size: 0.875rem; }
.ledger__row:last-child { border-bottom: 0; }
.ledger__row > div { grid-column: 1 / -1; display: grid; }
.ledger__row small { color: #b9b8de; font-size: 0.8125rem; }
.ledger__row [data-label]::before { content: attr(data-label) ' '; color: #b9b8de; font-size: 0.75rem; display: block; }
.ledger__pct { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ledger__pct::before { grid-column: 1 / -1; }
.ledger__pct .progress { background: rgb(255 255 255 / 0.14); }
.ledger__net { font-weight: 700; }
.ledger__row .status { justify-self: start; }
@media (min-width: 640px) {
  .ledger__head { display: grid; grid-template-columns: minmax(0, 1.7fr) 90px 120px 96px 104px; }
  .ledger__row { grid-template-columns: minmax(0, 1.7fr) 90px 120px 96px 104px; }
  .ledger__row > div { grid-column: auto; }
  .ledger__row [data-label]::before { display: none; }
}
/* ==========================================================================
   Renewal
   ========================================================================== */
.renew { padding: var(--s-5); }
@media (min-width: 768px) { .renew { padding: var(--s-6); } }

/* ==========================================================================
   Suggestions kanban
   ========================================================================== */
.kanban { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.kanban__col {
  padding: var(--s-3);
  border-radius: var(--r-lg);
  background: #ececf4;
}
.kanban__col header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px var(--s-3); font-weight: 700; font-size: 0.875rem; color: var(--slate); }
.kanban__col ul { display: grid; gap: var(--s-2); }
.note-card {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 6px;
}
.note-card__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: var(--orange-text); }
.note-card p { font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }
.note-card small { color: var(--slate); font-size: 0.8125rem; }
.kanban__empty { padding: var(--s-4); font-size: 0.8125rem; color: var(--slate); text-align: center; border: 1px dashed #cfd0de; border-radius: var(--r-md); }
.center-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s-5); font-size: 0.875rem; color: var(--slate); text-align: center; }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts { display: grid; gap: var(--s-5); }
@media (min-width: 1080px) { .contacts { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.guardians { padding: var(--s-5); }
.guardians h3 { margin-bottom: var(--s-3); }
.guardians h3 svg { color: var(--red-700); }
.guardians li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-2);
  align-items: center;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.guardians__side { display: grid; min-width: 0; font-size: 0.875rem; }
.guardians__side:last-child { text-align: right; }
.guardians__side small { font-size: 0.6875rem; color: var(--slate); }
.guardians__side strong { font-weight: 700; }
.guardians__side a { color: var(--navy-700); font-weight: 600; font-size: 0.8125rem; min-height: 24px; }
.guardians__side a:hover { color: var(--orange-text); }
.guardians__link { display: flex; align-items: center; gap: 4px; }
.guardians__link i { width: 14px; height: 2px; background: var(--orange-500); }
.guardians__link em { font-style: normal; font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--orange-100); color: var(--orange-text); }

.directory h3 { margin-bottom: var(--s-3); }
.directory ul { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .directory ul { grid-template-columns: 1fr 1fr; } }
.dir-card {
  display: grid;
  gap: 4px;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
}
.dir-card.is-emergency { border-left: 3px solid var(--red-700); }
.dir-card__head { display: grid; margin-bottom: 4px; }
.dir-card__head strong { font-size: 0.9375rem; }
.dir-card__head small { color: var(--slate); }
.dir-card a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700); font-weight: 600; min-height: 24px; overflow-wrap: anywhere; }
.dir-card a:hover { color: var(--orange-text); }
.hours { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); }
.hours.is-always { color: var(--teal-700); font-weight: 700; }

/* ==========================================================================
   Accommodation — intro on the left, configuration card on the right
   ========================================================================== */
.acc { display: grid; gap: var(--s-7); align-items: center; }
.acc > * { min-width: 0; }
@media (min-width: 1024px) { .acc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }
.acc__intro .section-head { margin-bottom: var(--s-6); }
.acc__used-label { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-3); font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.acc__used { display: grid; gap: var(--s-2); }
@media (min-width: 480px) { .acc__used { grid-template-columns: 1fr 1fr; } }
.acc__used a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: border-color var(--t-hover, 0.2s) ease, box-shadow var(--t-hover, 0.2s) ease, transform var(--t-hover, 0.2s) var(--ease-out, ease);
}
.acc__used a > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-100);
  color: var(--orange-text);
}
.acc__arrow { margin-left: auto; color: var(--slate-light); transition: transform var(--t-hover, 0.2s) var(--ease-out, ease), color 0.2s ease; }
.acc__used a:hover { border-color: #d3d2e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.acc__used a:hover .acc__arrow { transform: translateX(3px); color: var(--navy-700); }

.acc__card { overflow: hidden; }
.acc__banner { position: relative; height: clamp(160px, 20vw, 280px); background: var(--navy-800); }
.acc__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.acc__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(20 18 63 / 0.9) 0%, rgb(20 18 63 / 0.55) 55%, rgb(20 18 63 / 0.15) 100%);
}
.acc__banner-text { position: absolute; z-index: 1; left: var(--s-5); bottom: var(--s-5); display: grid; gap: 2px; color: var(--white); }
@media (min-width: 768px) { .acc__banner-text { left: var(--s-6); bottom: var(--s-6); } }
.acc__banner-text small { font-size: 0.8125rem; color: #d4d3f1; }
.acc__banner-text strong { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); font-weight: 800; line-height: 1.15; }
.acc__badge {
  position: absolute;
  z-index: 1;
  top: var(--s-4);
  right: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--teal-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.acc__facts { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) { .acc__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) {
  .acc__facts > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .acc__facts > div:last-child { border-right: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .acc__facts > div:nth-child(2n) { border-right: 0; }
  .acc__facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
.acc__facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: var(--s-5);
  border-right: 1px solid var(--line);
}
.acc__facts > div:last-child { border-right: 0; }
@media (max-width: 639px) {
  .acc__facts > div:nth-child(2n) { border-right: 0; }
  .acc__facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
.acc__ficon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy-500);
}
.acc__facts dd { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--navy-800); }
.acc__facts dt { font-size: 0.8125rem; color: var(--slate); font-weight: 600; }
.acc__facts > div:last-child .acc__ficon { background: var(--orange-100); color: var(--orange-text); }
.acc__facts > div:last-child dd { color: var(--orange-text); }

.acc__types { padding: var(--s-5); }
@media (min-width: 768px) { .acc__types { padding: var(--s-5) var(--s-6) var(--s-6); } }
.acc__types-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.acc__types-head .muted { font-size: 0.8125rem; }
.acc__types ul { display: grid; gap: var(--s-3); }
.acc__types li { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s-4); align-items: center; }
.acc__types li .progress { grid-column: 1 / -1; grid-row: 2; }
@media (min-width: 640px) {
  .acc__types li { grid-template-columns: 190px minmax(0, 1fr) 72px; }
  .acc__types li .progress { grid-column: auto; grid-row: auto; }
}
.acc__type-name strong { display: block; font-size: 0.9375rem; }
.acc__type-name small { display: block; font-size: 0.8125rem; color: var(--slate); }
.acc__type-beds { text-align: right; font-weight: 700; font-size: 0.875rem; }

/* ==========================================================================
   Inventory
   ========================================================================== */
.items { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .items { grid-template-columns: 1fr 1fr; } }.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  color: var(--navy-700);
}
.item__body { display: grid; min-width: 0; }
.item__body strong { font-size: 0.9375rem; }
.item__body small,
.item__stock small,
.item__foot small { color: var(--slate); font-size: 0.75rem; }
.item__stock { display: grid; justify-items: end; line-height: 1.2; }
.item__stock strong { font-size: 1.375rem; font-weight: 800; }
.item__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line);
}

/* ==========================================================================
   Programs bars
   ========================================================================== */
.big-stat { display: grid; gap: 4px; margin: var(--s-6) 0 var(--s-4); }
.big-stat strong { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--navy-800); }
.big-stat span { color: var(--slate); max-width: 36ch; }
.sw { width: 14px !important; height: 10px !important; border-radius: 3px !important; }
.sw--total { background: var(--navy-100); }
.sw--hostel { background: var(--navy-700); }

.bars { padding: var(--s-5); display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .bars { padding: var(--s-6); } }
.bars__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 92px; gap: var(--s-3); align-items: center; font-size: 0.875rem; }
.bars__name { font-weight: 700; }
.bars__track { display: block; height: 22px; }
.bars__total { display: block; height: 100%; border-radius: 6px; background: var(--navy-100); overflow: hidden; }
.bars__in { display: block; height: 100%; background: var(--navy-700); border-radius: 6px 0 0 6px; }
.bars__val { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; color: var(--slate); font-size: 0.8125rem; }
.bars__val strong { color: var(--ink); font-size: 0.875rem; }
.bars__val em { font-style: normal; font-weight: 700; color: var(--orange-text); min-width: 32px; text-align: right; }

/* ==========================================================================
   Reports
   ========================================================================== */
.reports { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .reports { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .reports { grid-template-columns: repeat(3, 1fr); } }
.report {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.report__head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-2); }
.report__head .h5 { flex: 1; }
.report__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgb(242 138 26 / 0.16);
  color: var(--orange-on-dark);
}
.report__figure { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.report__sub { font-size: 0.875rem; color: #c3c2e6; margin-bottom: var(--s-2); }
.report .progress { background: rgb(255 255 255 / 0.14); }
.report .progress--navy > span { background: #8f8bf0; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.8125rem; color: #d9d8f5; }
.stack-legend li { display: inline-flex; align-items: center; gap: 6px; }
.stack-legend i { width: 10px; height: 10px; border-radius: 3px; }
.stack-legend .is-completed { background: #8f8bf0; }
.stack-legend .is-active { background: #4fd1ad; }
.stack-legend .is-pending { background: var(--orange-400); }
.stack-bar { display: flex; gap: 3px; height: 14px; border-radius: var(--r-sm); overflow: hidden; font-size: 0.6875rem; font-weight: 700; }
.stack-bar__seg { display: grid; place-items: center; white-space: nowrap; overflow: hidden; padding-inline: 4px; }
.stack-bar__seg.is-completed { background: #8f8bf0; color: var(--navy-950); }
.stack-bar__seg.is-active { background: #4fd1ad; color: var(--navy-950); }
.stack-bar__seg.is-pending { background: var(--orange-400); color: var(--navy-950); }
.report-list { display: grid; gap: 4px; font-size: 0.8125rem; }
.report-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); color: #d9d8f5; }

/* ==========================================================================
   Settings
   ========================================================================== */
.settings { padding: var(--s-5); display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .settings { padding: var(--s-6); } }
.toggles { display: grid; gap: 0; }
@media (min-width: 640px) { .toggles { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.toggles li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.toggles label { cursor: pointer; font-size: 0.9375rem; }
.toggles small { display: block; color: var(--slate); font-size: 0.8125rem; }
.switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: var(--r-pill);
  background: #cfd0dd;
  transition: background-color 0.2s var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.2s var(--ease);
}
.switch[aria-checked='true'] { background: var(--navy-700); }
.switch[aria-checked='true']::after { transform: translateX(20px); }
.settings__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.settings__foot .form-result { margin: 0; }

/* ==========================================================================
   Why
   ========================================================================== */
.why { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .why { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.why .section-head { margin-bottom: var(--s-6); }
.reasons { display: grid; gap: var(--s-5) var(--s-6); }
@media (min-width: 640px) { .reasons { grid-template-columns: 1fr 1fr; } }
.reasons li { display: flex; gap: var(--s-3); }
.reasons p { color: var(--slate); font-size: 0.9375rem; margin-top: 2px; }
.reasons__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--orange-text);
}
.roles {
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.roles__title { font-size: 0.875rem; font-weight: 700; color: var(--orange-on-dark); margin-bottom: var(--s-3); }
.roles li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid rgb(255 255 255 / 0.12); }
.roles li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--orange-on-dark);
}
.roles strong { display: block; font-size: 0.9375rem; }
.roles small { color: #c3c2e6; font-size: 0.8125rem; }

/* ==========================================================================
   CTA + footer
   ========================================================================== */
.cta {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-xl);
  color: var(--white);
  background:
    radial-gradient(600px 300px at 0% 0%, rgb(242 138 26 / 0.3), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .cta { padding: var(--s-7); } }
@media (min-width: 1024px) { .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.cta__copy p { margin-top: var(--s-3); color: #cfcef0; max-width: 48ch; }
.cta__form { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .cta__form { grid-template-columns: 1fr 1fr; } .cta__form .btn { grid-column: span 1; } }
.input--dark { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.22); color: var(--white); }
.input--dark::placeholder { color: #b9b8de; }
.input--dark:focus { background: rgb(255 255 255 / 0.12); border-color: var(--orange-400); box-shadow: 0 0 0 3px rgb(242 138 26 / 0.25); }
.cta__done { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; }
.cta__done svg { color: var(--orange-on-dark); }

.footer { background: var(--navy-950); color: #c3c2e6; padding-top: var(--s-8); }
.footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer__brand p { margin-top: var(--s-4); max-width: 40ch; font-size: 0.875rem; }
.footer__contact { display: grid; gap: 8px; margin-top: var(--s-4); font-size: 0.875rem; }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__contact svg { color: var(--orange-on-dark); }
.footer__contact a:hover { color: var(--white); }
.footer__title { font-size: 0.875rem; font-weight: 700; color: var(--orange-on-dark); margin-bottom: var(--s-3); }
.footer nav ul { display: grid; gap: 2px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.875rem; }
.footer nav a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-5);
  position: relative;
  font-size: 0.8125rem;
}
.footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgb(255 255 255 / 0.1);
}
.footer__bottom strong { color: var(--orange-on-dark); }
.footer__bottom p a { text-decoration: none; }
.footer__bottom p a:hover strong,
.footer__bottom p a:focus-visible strong { text-decoration: underline; }

/* ==========================================================================
   Motion
   Entrances animate the individual `translate` / `scale` properties, so the
   `transform` used by hover states keeps working once a card has arrived.
   Hierarchy per section: label → heading → text → main visual → supporting items.
   ========================================================================== */
:root {
  --a-k: 1;               /* distance multiplier, smaller on phones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 0.22s;
}

@keyframes a-up { from { opacity: 0; translate: 0 calc(var(--a-y, 24px) * var(--a-k)); } }
@keyframes a-left { from { opacity: 0; translate: calc(var(--a-x, 28px) * var(--a-k) * -1) 0; } }
@keyframes a-right { from { opacity: 0; translate: calc(var(--a-x, 28px) * var(--a-k)) 0; } }
@keyframes a-rise { from { opacity: 0; translate: 0 calc(20px * var(--a-k)); scale: 0.98; } }
@keyframes a-fade { from { opacity: 0; } }
@keyframes a-pop { from { opacity: 0; scale: 0.86; } }
@keyframes a-grow { from { scale: 0 1; } }
@keyframes a-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes a-down { from { opacity: 0; translate: 0 -10px; } }
@keyframes a-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes a-glow {
  0% { box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 6px rgb(242 138 26 / 0.55); }
  100% { box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 16px rgb(242 138 26 / 0); }
}
@keyframes a-drift { to { translate: -6% 4%; } }

@media (prefers-reduced-motion: no-preference) {
  /* ---------- Page load: header, hero copy, ecosystem ---------- */
  .site-header { animation: a-down 0.4s var(--ease-out) backwards; }

  .hero__copy > * { animation: a-up 0.7s var(--ease-out) backwards; --a-y: 22px; }
  .hero__copy > :nth-child(1) { animation-delay: 120ms; --a-y: 12px; }
  .hero__copy > :nth-child(2) { animation-delay: 220ms; --a-y: 28px; }
  .hero__copy > :nth-child(3) { animation-delay: 330ms; --a-y: 16px; }
  .hero__copy > :nth-child(4) { animation-delay: 430ms; }
  .hero__copy > :nth-child(5) { animation-delay: 530ms; }

  .orbit__core { animation: a-pop 0.8s var(--ease-out) 250ms backwards; }
  /* Rings: fade in, then drift. Outer turns clockwise slowly, inner counter-clockwise a little faster. */
  .orbit__rays { animation: a-fade 1.2s ease 300ms backwards, ring-spin 240s linear infinite; }
  .orbit__ring--outer { animation: a-fade 1s ease 350ms backwards, ring-spin 180s linear infinite; }
  .orbit__ring--track { animation: a-fade 1s ease 400ms backwards, ring-spin-back 140s linear infinite; }
  .orbit__ring--inner { animation: a-fade 1s ease 450ms backwards, ring-spin 90s linear infinite; }
  .orbit__core::after { animation: core-breathe 4.8s ease-out 1.6s infinite; }
  .orbit__core-mark { animation: mark-breathe 4.8s ease-in-out 1.6s infinite; }
  .orbit__spokes line:not(.orbit__pulse) {
    stroke-dasharray: 1;
    animation: a-draw 0.7s var(--ease-out) backwards;
    animation-delay: calc(450ms + var(--i, 0) * 60ms);
  }
  .orbit__dot { animation: a-pop 0.4s var(--ease-out) backwards; animation-delay: calc(900ms + var(--i, 0) * 60ms); }
  /* A soft light travels out along one connector at a time. */
  .orbit__pulse { animation: spoke-pulse 19s linear infinite; animation-delay: calc(2.4s + var(--i, 0) * 1.9s); }

  @media (min-width: 640px) {
    .orbit__node { animation: node-in 0.6s var(--ease-out) backwards; animation-delay: calc(560ms + var(--i, 0) * 70ms); }
    /* After everything lands, each node drifts a few pixels, out of phase with its neighbours. */
    .orbit__node a { animation: a-float 7s ease-in-out infinite; animation-delay: calc(1.8s + var(--i, 0) * -0.7s); }
  }
  @media (max-width: 639px) {
    .orbit__node { animation: a-fade 0.4s ease backwards; animation-delay: calc(300ms + var(--i, 0) * 40ms); }
  }

  /* ---------- Scroll reveal: hidden until the section enters view ---------- */
  .js .reveal:not(.is-in) :is(.section-head > *, [data-anim], [data-stagger] > *, .status,  .cell-mark, .kpi__icon) { opacity: 0; }
  .js .reveal:not(.is-in) :is(.progress > span, .bars__total, .stack-bar__seg) { scale: 0 1; }
  .js .reveal:not(.is-in) .timeline::before { scale: 0 1; }

  .reveal.is-in:not(.is-done) .section-head .eyebrow { animation: a-up 0.5s var(--ease-out) backwards; --a-y: 12px; }
  .reveal.is-in:not(.is-done) .section-head .h2 { animation: a-up 0.7s var(--ease-out) 90ms backwards; --a-y: 26px; }
  .reveal.is-in:not(.is-done) .section-head .lead { animation: a-up 0.65s var(--ease-out) 190ms backwards; --a-y: 15px; }

  .reveal.is-in:not(.is-done) [data-anim] {
    animation: a-up 0.75s var(--ease-out) var(--a-delay, 280ms) backwards;
    --a-y: 30px;
  }
  .reveal.is-in:not(.is-done) [data-anim='left'] { animation-name: a-left; }
  .reveal.is-in:not(.is-done) [data-anim='right'] { animation-name: a-right; }
  .reveal.is-in:not(.is-done) [data-anim='rise'] { animation-name: a-rise; }
  .reveal.is-in:not(.is-done) [data-anim='fade'] { animation-name: a-fade; animation-duration: 0.9s; }
  /* A wrapper that moves as one carries its heading with it. */
  .reveal.is-in:not(.is-done) [data-anim] .section-head > * { animation: none; }

  .reveal.is-in:not(.is-done) [data-stagger] > * {
    animation: a-up 0.6s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base, 320ms) + var(--i, 0) * var(--a-step, 70ms));
    --a-y: 24px;
  }

  /* Small parts arrive just after the row or card that holds them. */
  .reveal.is-in:not(.is-done) :is(.status,  .cell-mark, .kpi__icon) {
    animation: a-pop 0.45s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base, 320ms) + var(--i, 0) * var(--a-step, 70ms) + 200ms);
  }
  .reveal.is-in:not(.is-done) .progress > span {
    transform-origin: left;
    animation: a-grow 0.95s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base, 320ms) + var(--i, 0) * var(--a-step, 70ms) + 160ms);
  }
  .progress > span { transform-origin: left; }
  .reveal.is-in:not(.is-done) .stack-bar__seg {
    transform-origin: left;
    animation: a-grow 0.8s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base, 320ms) + var(--i, 0) * var(--a-step, 70ms) + 200ms);
  }
  .stack-bar__seg { transform-origin: left; }

  /* Program enrollment: name fades, bar grows, then the values settle in. */
  .reveal.is-in:not(.is-done) .bars[data-stagger] > * { animation-name: a-fade; animation-duration: 0.5s; }
  .bars__total { transform-origin: left; }
  .reveal.is-in:not(.is-done) .bars__total {
    animation: a-grow 0.9s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base) + var(--i, 0) * var(--a-step) + 80ms);
  }
  .reveal.is-in:not(.is-done) .bars__val {
    animation: a-up 0.5s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base) + var(--i, 0) * var(--a-step) + 320ms);
    --a-y: 6px;
  }

  /* Student lifecycle: the connector draws while each step lands on it. */
  .timeline::before { transform-origin: left; }
  .reveal.is-in:not(.is-done) .timeline::before { animation: a-grow 1.2s cubic-bezier(0.45, 0, 0.2, 1) 300ms backwards; }
  .reveal.is-in:not(.is-done) .timeline__num {
    animation: a-pop 0.5s var(--ease-out) backwards, a-glow 0.9s ease-out backwards;
    animation-delay: calc(var(--a-base) + var(--i, 0) * var(--a-step)), calc(var(--a-base) + var(--i, 0) * var(--a-step) + 250ms);
  }
  .reveal.is-in:not(.is-done) .timeline__card {
    animation: a-up 0.6s var(--ease-out) backwards;
    animation-delay: calc(var(--a-base) + var(--i, 0) * var(--a-step) + 90ms);
    --a-y: 20px;
  }
  .reveal.is-in:not(.is-done) .timeline[data-stagger] > * { animation: none; }
  .js .reveal:not(.is-in) .timeline[data-stagger] > * { opacity: 1; }
  .js .reveal:not(.is-in) :is(.timeline__num, .timeline__card) { opacity: 0; }

  /* Dark sections: the background glow drifts very slowly. */
  @media (min-width: 1024px) {
    .section--dark::before { animation: a-drift 22s ease-in-out infinite alternate; }
  }
}

/* Phones: shorter distances and durations, no floating. */
@media (max-width: 639px) {
  :root { --a-k: 0.55; }
  .reveal.is-in:not(.is-done) :is(.section-head > *, [data-anim], [data-stagger] > *) { animation-duration: 0.45s; }
}

/* ---------- Dark section glow layer ---------- */
.section--dark { position: relative; overflow: hidden; isolation: isolate; }
.section--dark::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgb(85 80 196 / 0.28), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Header: fixed, compacts on scroll ---------- */
.site-header { position: fixed; left: 0; right: 0; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease); }
main { padding-top: var(--header-h); }
.site-header__inner { transition: height 0.25s var(--ease-out); }
.site-header.is-scrolled { background: rgb(255 255 255 / 0.86); box-shadow: 0 6px 24px -12px rgb(20 18 63 / 0.25); }
@media (min-width: 1080px) {
  .site-header.is-scrolled .site-header__inner { height: calc(var(--header-h) - 12px); }
  .nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange-500);
    scale: 0 1;
    opacity: 0.5;
    transition: scale 0.28s var(--ease-out), opacity 0.2s ease;
  }
  .nav a:not(.btn):hover::after { scale: 1 1; }
  .nav a.is-active::after { scale: 1 1; opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn { transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.btn--primary:hover { box-shadow: 0 10px 22px -8px rgb(242 138 26 / 0.6); }
.btn--outline:hover,
.btn--ghost-light:hover { box-shadow: 0 8px 18px -10px rgb(20 18 63 / 0.35); }
.btn svg { transition: transform var(--t-hover) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
:is(.pillar, .item, .vehicle, .dir-card, .note-card, .report, .kpi, .vstat, .mini-stats > div, .reasons__icon, .room-pick) {
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d3d2e6; }
.pillar__media img { transition: scale 0.6s var(--ease-out); }
.pillar:hover .pillar__media img { scale: 1.045; }

.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3d2e6; }
.item__icon,
.item__stock strong { transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.item:hover .item__icon { background: var(--orange-100); color: var(--orange-text); }
.item:hover .item__stock strong { color: var(--navy-700); }

:is(.vehicle, .report, .kpi):hover { transform: translateY(-4px); }
.vehicle:hover { box-shadow: var(--shadow-md); border-color: #d3d2e6; }
.kpi:hover { box-shadow: var(--shadow-md); }
.report:hover { border-color: rgb(242 138 26 / 0.4); background: rgb(255 255 255 / 0.07); }
.report .icon-btn { opacity: 0.6; transition: opacity var(--t-hover) ease, background-color var(--t-hover) ease; }
.report:hover .icon-btn,
.report .icon-btn:focus-visible { opacity: 1; }
:is(.dir-card, .note-card):hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3d2e6; }
.vstat:hover { transform: translateY(-2px); }
.timeline__card { transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out); }
.timeline__card:hover { transform: translateY(-4px); }
.reasons li:hover .reasons__icon { background: var(--orange-100); border-color: rgb(242 138 26 / 0.35); }

/* ---------- Data rows ---------- */
:is(.table tbody tr, .leave-list li, .assign-list li, .ledger__row, .guardians li, .matrix tbody tr) {
  transition: background-color 0.18s ease, transform 0.18s var(--ease-out);
}
:is(.leave-list li, .assign-list li, .guardians li) { padding-inline: 10px; margin-inline: -10px; border-radius: var(--r-sm); }
:is(.leave-board, .alloc__release, .guardians) { contain: paint; }
:is(.table tbody tr, .leave-list li, .assign-list li, .guardians li, .matrix tbody tr):hover { background: #f7f7fc; transform: translateX(2px); }
.matrix tbody tr:hover th { background: #f7f7fc; }
.ledger__row:hover { background: rgb(255 255 255 / 0.05); transform: translateX(2px); }

/* ---------- Settings toggles ---------- */
.toggles li { padding-inline: 10px; margin-inline: -10px; border-radius: var(--r-sm); transition: background-color 0.18s ease; }
.toggles li:hover { background: var(--canvas); }
.switch::after { transition: transform 0.2s var(--ease-out); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phones: three stat tiles share 358px, so tighten them rather than let the row overflow. */
@media (max-width: 479px) {
  .mini-stats > div { padding: 12px 10px; }
  .mini-stats .status { padding: 2px 7px; font-size: 0.6875rem; }
}

/* Small phones: room status counts stack so the three chips never collide. */
@media (max-width: 479px) {
  .status-strip { grid-template-columns: 1fr; gap: var(--s-2); }
  .status-strip > div { grid-template-columns: 1fr auto auto; align-items: center; }
  .status-strip > div .status { grid-column: auto; margin: 0; }
  .status-strip strong { font-size: 1.25rem; }
}

/* Small phones: leave rows put the dates on their own line so names keep their width. */
@media (max-width: 479px) {
  .leave-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .leave-list .date-range { grid-column: 1 / -1; justify-self: start; }
  .leave-list__who { grid-column: 1 / -1; }
  .leave-list .days { grid-column: 1; }
  .leave-list .status { grid-column: 2; justify-self: end; }

  /* Guardian pairs stack: student, relation, guardian. */
  .guardians li { grid-template-columns: 1fr; gap: 6px; }
  .guardians__side:last-child { text-align: left; }
  .guardians__link { justify-content: flex-start; }
  .guardians__link i:first-child { display: none; }
}

@media (max-width: 379px) {
  .mini-stats { gap: 8px; }
  .mini-stats .status { padding: 2px 6px; font-size: 0.625rem; }
  .mini-stats .status__dot { display: none; }
  .guardians__link i { display: none; }
}

/* ==========================================================================
   Expanded modules — admissions, services, clubs, staff, monitoring, assets
   ========================================================================== */
.status--red { background: #fdecea; color: var(--red-700); border-color: #f6c9c4; }

/* Carousel cards without artwork: a glass glyph on the module gradient. */
.mod-card__glyph {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: #fff;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.45);
  backdrop-filter: blur(4px);
  transition: scale 0.4s var(--ease);
}
.mod-card:hover .mod-card__glyph { scale: 1.06; }

/* Shared helpers */
.table--compact th { padding: 10px 12px; }
.table--compact td { padding: 10px 12px; }
.table--compact .person small { font-size: 0.75rem; }
.cell-sub { display: block; font-size: 0.75rem; color: var(--slate); font-weight: 400; }
.cell-ico { vertical-align: -2px; color: var(--slate-light); }
.search--sm { flex: 1 1 200px; max-width: 280px; }
.search--sm input { min-height: 38px; font-size: 0.875rem; }
.tags--roomy { gap: 8px; }
.tags--roomy li { padding: 6px 12px; font-size: 0.8125rem; }
.chips--sm { align-items: center; gap: 6px; }
.chips--sm .chip { min-height: 32px; padding: 4px 12px; font-size: 0.8125rem; }
.mini-list { display: grid; }
.mini-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > :last-child { justify-self: end; }
.mini-list .num { color: var(--slate); }

/* ---------- Admissions ---------- */
.adm .frame__body { display: grid; gap: var(--s-4); }
.adm__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 560px) { .adm__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .adm__kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.adm__kpi { padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.adm__kpi dt { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--slate); white-space: nowrap; }
.adm__kpi dd { font-size: 1.375rem; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.adm__kpi.is-total { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.adm__kpi.is-total dt { color: #c3c2e6; }
.adm__kpi.is-approved dd { color: var(--teal-700); }
.adm__kpi.is-pending dd { color: var(--amber-700); }
.adm__kpi.is-rejected dd { color: var(--red-700); }
.adm__kpi.is-waitlist dd { color: var(--slate); }
.adm__community { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--slate); }
.adm__community > span:first-child { font-weight: 700; margin-right: 4px; }
.adm__pill { display: inline-flex; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-700); font-weight: 600; }
.adm__toolbar { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; align-items: center; }
.adm__actions { display: flex; flex-wrap: wrap; gap: 2px; }
.adm__actions .text-btn { border: 1px solid var(--line); }
.adm__seg { justify-self: start; max-width: 100%; overflow-x: auto; }
.adm .table-wrap { max-width: 100%; }

/* ---------- Fee structure & parent portal ---------- */
.pf { display: grid; gap: var(--s-5); align-items: start; }
.pf > * { min-width: 0; }
@media (min-width: 1024px) { .pf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); } }
.fee-cfg { padding: var(--s-5); display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .fee-cfg { padding: var(--s-6); } }
.fee-cfg__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.fee-cfg__label { font-size: 0.75rem; color: #c3c2e6; }
.fee-cfg__head strong { font-size: 1.5rem; font-weight: 800; }
.fee-cfg__open { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(18 165 129 / 0.18); color: #7be3c5; font-size: 0.8125rem; font-weight: 700; }
.fee-cfg__open span { width: 8px; height: 8px; border-radius: 50%; background: #4fd1ad; box-shadow: 0 0 0 4px rgb(79 209 173 / 0.2); }
.fee-cfg__title { margin-top: var(--s-1); }
.fee-cfg__rules { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .fee-cfg__rules { grid-template-columns: 1fr 1fr; } }
.fee-cfg__rules > div { display: grid; gap: 6px; padding: var(--s-4); border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--line); }
.fee-cfg__rules p { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9375rem; }
.fee-cfg__rules p svg { color: var(--orange-text); }
.fee-cfg__rules small { font-size: 0.8125rem; color: var(--slate); }

.parent { display: grid; gap: var(--s-5); justify-items: center; }
.parent__phone {
  width: 100%;
  max-width: 360px;
  padding: var(--s-4);
  border-radius: 32px;
  background: var(--white);
  border: 8px solid var(--navy-900);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--s-3);
}
.parent__top { display: flex; justify-content: space-between; align-items: center; }
.parent__brand { font-weight: 800; color: var(--navy-800); }
.parent__bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--canvas); color: var(--navy-700); }
.parent__bell i { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); border: 2px solid var(--canvas); }
.parent__child { display: flex; align-items: center; gap: 10px; padding: var(--s-3); border-radius: var(--r-md); background: var(--navy-50); }
.parent__child strong { display: block; font-size: 0.9375rem; }
.parent__child small { font-size: 0.75rem; color: var(--slate); }
.parent__rel { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--white); font-size: 0.6875rem; font-weight: 700; color: var(--navy-700); }
.parent__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.parent__tiles li { display: grid; gap: 2px; padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line); }
.parent__tiles svg { color: var(--orange-text); margin-bottom: 4px; }
.parent__tiles small { font-size: 0.75rem; color: var(--slate); }
.parent__tiles strong { font-size: 0.875rem; }
.parent__note { display: flex; gap: 8px; padding: var(--s-3); border-radius: var(--r-md); background: var(--orange-100); color: var(--amber-700); font-size: 0.8125rem; }
.parent__note svg { flex-shrink: 0; margin-top: 2px; }
.parent__points { display: grid; gap: var(--s-2); width: 100%; max-width: 360px; }
.parent__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--slate); }
.parent__points svg { flex-shrink: 0; margin-top: 3px; color: var(--orange-text); }

/* ---------- Guest booking & complaints ---------- */
.guest { padding: var(--s-5); display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .guest { padding: var(--s-6); } }
.guest__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.guest__head .muted { font-size: 0.875rem; }
.guest__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 560px) { .guest__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .guest__stats { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.guest__stat { position: relative; padding: 12px 14px 12px 16px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--line); overflow: hidden; }
.guest__stat::before { content: ''; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--bar, #b9bacb); }
.guest__stat.is-amber { --bar: var(--orange-400); }
.guest__stat.is-navy { --bar: var(--navy-500); }
.guest__stat.is-teal { --bar: var(--teal-500); }
.guest__stat.is-red { --bar: #e5484d; }
.guest__stat strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.guest__stat span { font-size: 0.75rem; color: var(--slate); }
.guest__foot { font-size: 0.8125rem; color: var(--slate); }

.cmp { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.cmp > * { min-width: 0; }
@media (min-width: 1024px) { .cmp { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s-7); margin-top: var(--s-7); } }
.cmp__side .muted { margin-top: var(--s-2); }
.cmp__flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: var(--s-5) 0; position: relative; }
.cmp__flow li { display: grid; justify-items: center; gap: 6px; padding: var(--s-3) 6px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.cmp__flow strong { font-size: 1.5rem; font-weight: 800; }
.cmp__cats-label { font-size: 0.8125rem; font-weight: 700; color: var(--slate); margin-bottom: var(--s-2); }
.cmp__board { display: grid; gap: var(--s-3); }
.cmp__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
@media (max-width: 479px) { .cmp__bar .seg { display: flex; width: 100%; } .cmp__bar .seg button { flex: 1; padding-inline: 4px; } .search--sm { max-width: none; } }
.tickets { display: grid; gap: var(--s-2); }
.ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tk, var(--line));
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ticket.is-open { --tk: var(--orange-400); }
.ticket.is-in-progress { --tk: var(--navy-500); }
.ticket.is-resolved { --tk: var(--teal-500); }
.ticket__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--canvas); color: var(--navy-700); }
.ticket__meta { font-size: 0.75rem; color: var(--slate); }
.ticket__body strong { display: block; margin: 2px 0; font-size: 0.9375rem; }
.ticket__body small { font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 479px) {
  .ticket { grid-template-columns: auto minmax(0, 1fr); }
  .ticket > .status { grid-column: 2; justify-self: start; }
}

/* ---------- Canteen ---------- */
.canteen { border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.canteen__hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: radial-gradient(600px 220px at 90% -20%, #2c2785 0%, transparent 70%), var(--navy-900);
  color: #fff;
}
@media (min-width: 768px) { .canteen__hero { padding: var(--s-5) var(--s-6); } }
.canteen__hero > div:first-child { display: flex; align-items: center; gap: var(--s-3); }
.canteen__hero p { font-size: 0.875rem; color: #c3c2e6; }
.canteen__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgb(242 138 26 / 0.18); color: var(--orange-on-dark); }
.canteen__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); flex: 1 1 380px; max-width: 520px; }
.canteen__kpis > div { padding: 10px 14px; border-radius: var(--r-md); background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.12); }
.canteen__kpis dt { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: #c3c2e6; white-space: nowrap; }
.canteen__kpis dt svg { color: var(--orange-on-dark); flex-shrink: 0; }
.canteen__kpis dd { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
@media (max-width: 479px) { .canteen__kpis dt { white-space: normal; } }
.canteen__tabs {
  display: flex;
  gap: 4px;
  padding: var(--s-2) var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.canteen__tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.canteen__tabs button:hover { color: var(--ink); }
.canteen__tabs button.is-on { color: var(--navy-800); border-color: var(--orange-500); }
.canteen__tabs button.is-on svg { color: var(--orange-text); }
.canteen__panel { display: grid; gap: var(--s-5); padding: var(--s-5); }
.canteen__panel > * { min-width: 0; }
@media (min-width: 900px) { .canteen__panel { grid-template-columns: minmax(0, 1fr) 280px; padding: var(--s-6); gap: var(--s-6); } }
.canteen__view { display: grid; gap: var(--s-4); align-content: start; }
.canteen__aside { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--line); align-self: start; }
.canteen__aside-title { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 700; }
.canteen__aside .ticks { margin-top: var(--s-3); font-size: 0.875rem; }
.menu__days { justify-self: start; max-width: 100%; overflow-x: auto; }
.menu__days .num { opacity: 0.7; margin-left: 4px; }
.menu__state { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--slate); }
.menu { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.menu li { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: linear-gradient(180deg, var(--navy-50), var(--white) 60%); }
.menu p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; font-size: 0.75rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; }
.menu p .num { text-transform: none; letter-spacing: 0; font-weight: 600; }
.menu strong { font-size: 0.9375rem; line-height: 1.45; }
.menu__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--orange-100); color: var(--orange-text); }

/* ---------- Clubs ---------- */
.clubs { display: grid; gap: var(--s-4); }
.club-groups { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.club-group { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4); box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), box-shadow 0.22s ease; }
.club-group:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.club-group__head { display: flex; gap: 10px; align-items: flex-start; }
.club-group__head strong { display: block; font-size: 0.9375rem; }
.club-group__head small { font-size: 0.75rem; color: var(--slate); }
.club-group__icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-md); }
.club-group__clubs { display: grid; gap: 4px; }
.club-group__clubs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--canvas); font-size: 0.8125rem; font-weight: 600; }
.club-group__clubs small { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--slate); }
.club-group__clubs small svg { color: var(--orange-500); }
.club-group > .status { justify-self: start; }
.subs { padding: var(--s-5); }
.subs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.subs__tools { display: flex; align-items: center; gap: 4px; }
.subs__filter select { min-height: 36px; font-size: 0.8125rem; }
.subs__list { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .subs__list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.sub-card { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.sub-card__who { display: flex; align-items: center; gap: 10px; }
.sub-card__who strong { display: block; font-size: 0.9375rem; }
.sub-card__who small { font-size: 0.75rem; color: var(--slate); }
.sub-card__picks { display: grid; gap: var(--s-2); }
.sub-card__picks dt { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-light); }
.sub-card__picks dd { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.club-chip { padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; }
.club-chip.is-match { box-shadow: 0 0 0 2px var(--orange-500); }

/* ---------- Staff ---------- */
.staff { display: grid; gap: var(--s-5); align-items: start; }
.staff > * { min-width: 0; }
@media (min-width: 1080px) { .staff { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); } }
.staff__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.staff__bar .seg { max-width: 100%; overflow-x: auto; }
.btn--sm svg { flex-shrink: 0; }
.wa { padding: var(--s-5); display: grid; gap: var(--s-4); }
.wa__head { display: flex; align-items: center; gap: var(--s-3); }
.wa__head small { font-size: 0.8125rem; color: var(--slate); }
.wa__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #e3f7ea; color: #128c4b; }
.wa__list { display: grid; }
.wa__list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wa__list li:last-child { border-bottom: 0; }
.wa__list li > div { flex: 1; min-width: 0; }
.wa__list strong { display: block; font-size: 0.875rem; }
.wa__list small { font-size: 0.75rem; color: var(--slate); }
.wa__list li.is-off { opacity: 0.6; }
.wa__daily { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-pill); background: #e3f7ea; color: #0f7a40; font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }
.wa__msg {
  position: relative;
  padding: 12px 14px 22px;
  border-radius: 14px 14px 4px 14px;
  background: #dcf8c6;
  color: #1c2a1f;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-left: var(--s-6);
}
.wa__msg span { position: absolute; right: 10px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; font-size: 0.6875rem; color: #5b7a63; }
.wa__msg span svg { color: #34b7f1; }

/* ---------- Biometric & behaviour ---------- */
.mon { display: grid; gap: var(--s-5); align-items: start; }
.mon > * { min-width: 0; }
@media (min-width: 1080px) { .mon { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.mon__bio, .mon__beh { padding: var(--s-5); display: grid; gap: var(--s-4); }
.mon__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2); }
.mon__alert { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: #fdecea; color: var(--red-700); font-size: 0.75rem; font-weight: 700; }
.mon__tools { display: flex; gap: 2px; }
.incidents { display: grid; gap: var(--s-3); position: relative; }
.incident { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--line); }
.incident__marks { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fdecea; color: var(--red-700); font-weight: 800; }
.incident__meta { font-size: 0.75rem; color: var(--slate); }
.incident__meta strong { color: var(--orange-text); }
.incident__who { display: block; margin-top: 2px; font-size: 0.9375rem; }
.incident__who small { font-weight: 500; font-size: 0.75rem; color: var(--slate); margin-left: 4px; }
.incident__reason { margin-top: 2px; font-size: 0.8125rem; color: var(--slate); }

/* ---------- Assets ---------- */
.vs { position: relative; display: grid; gap: var(--s-4); max-width: 980px; margin-inline: auto; }
@media (min-width: 768px) { .vs { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.vs__card { display: grid; gap: 4px; align-content: start; padding: var(--s-5) var(--s-6); transition: transform 0.22s var(--ease), box-shadow 0.22s ease, border-color 0.22s ease; }
.vs__card:hover { transform: translateY(-3px); border-color: #d3d2e6; box-shadow: var(--shadow-lg); }
.vs__card > small { color: var(--slate); font-size: 0.875rem; }
.vs__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-3); border-radius: 14px; background: var(--navy-50); color: var(--navy-700); }
.vs__card.is-org .vs__icon { background: var(--orange-100); color: var(--orange-text); }
.vs__card ul { display: grid; gap: 8px; margin-top: var(--s-4); }
.vs__card li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.vs__card li svg { color: var(--navy-500); flex-shrink: 0; }
.vs__card.is-org li svg { color: var(--orange-text); }
.vs__or {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--white);
}
@media (min-width: 768px) { .vs__or { display: grid; } }
.register { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.register__stats { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .register__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.register__stats > div { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--line); }
.register__stats dt { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--slate); }
.register__stats dt svg { color: var(--orange-text); }
.register__stats dd { font-size: 1.875rem; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.register__stats small { font-size: 0.8125rem; color: var(--slate); }
.register .table-wrap { box-shadow: var(--shadow-md); }

/* Panel swaps inside the new previews fade in like the module detail panel. */
@media (prefers-reduced-motion: no-preference) {
  .canteen__view, .tickets > li, .subs__list > li, .incidents > li { animation: a-up 0.45s var(--ease) backwards; --a-y: 10px; }
  .menu li { animation: a-up 0.45s var(--ease) backwards; animation-delay: calc(80ms + var(--f, 0) * 60ms); --a-y: 10px; }
}
@media (min-width: 560px) {
  .adm__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adm__kpi.is-total { grid-row: span 2; display: grid; align-content: space-between; }
  .adm__kpi.is-total dd { font-size: 2.25rem; }
}
@media (min-width: 1280px) { .adm__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.clubs__intro { display: grid; gap: var(--s-5); align-items: end; margin-bottom: var(--s-6); }
.clubs__intro .section-head { margin-bottom: 0; }
.clubs__intro .mini-stats { margin: 0; }
@media (min-width: 1024px) { .clubs__intro { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-8); } }
@media (min-width: 1200px) { .club-groups { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.club-group__head small { display: block; line-height: 1.4; margin-top: 2px; }
@media (min-width: 1100px) { .subs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wa__list small { display: block; line-height: 1.45; }
.adm .frame__body { grid-template-columns: minmax(0, 1fr); }
.adm .frame__body > * { min-width: 0; }
.table-wrap { position: relative; }
.menu__days button { white-space: nowrap; }
.guest .table td:first-child { white-space: nowrap; }
@media (max-width: 767px) { .table--compact td:first-child, .table--compact th { white-space: nowrap; } }
.staff__bar .seg button, .adm__seg button, .cmp__bar .seg button { white-space: nowrap; }
.cmp--solo { margin-top: 0; }
.cmp--solo .cmp__flow { margin-top: 0; }
