/* Ajyal public website. Colours come from /theme.css (set in the admin panel). */
@font-face {
  font-family: 'Cairo';
  src: url('/static/fonts/Cairo-Variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('/static/fonts/NotoSansHebrew-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Zain';
  src: url('/static/fonts/Zain-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Zain';
  src: url('/static/fonts/Zain-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #10304a;
  --paper: #f4f7f8;
  --primary: #173f5f;
  --accent: #f2a93b;
  --on-primary: #fff;
  --on-accent: #10304a;
  --on-ink: #fff;
  --tint: #ecf1f4;
  --line: #d9e1e5;
  --muted: #56697a;
  --primary-soft: #dfe7ed;
  --accent-soft: #f9e3be;
  --c1: #2f8f83;
  --c2: #e9a23b;
  --c3: #5468d4;
  --c4: #6fa84f;
  --c5: #c2549b;
  --c6: #3a9bd5;
  --c1-on: #fff;
  --c2-on: #10304a;
  --c3-on: #fff;
  --c4-on: #10304a;
  --c5-on: #fff;
  --c6-on: #10304a;
  --c1-soft: #d9ece9;
  --c2-soft: #f7e7cc;
  --c3-soft: #e0e4f7;
  --c4-soft: #e5f0de;
  --c5-soft: #f3dfeb;
  --c6-soft: #dcecf6;
  --r1: 16px;
  --r2: 11px;
  --r3: 7px;
  --body: 'Cairo', system-ui, sans-serif;
  --display: 'Zain', 'Cairo', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 20px;
  --head-h: 68px;
  --shadow: 0 1px 0 rgba(16, 48, 74, 0.04), 0 18px 40px -22px rgba(16, 48, 74, 0.35);
}
.loc-he {
  --body: 'Noto Sans Hebrew', 'Cairo', system-ui, sans-serif;
  --display: 'Noto Sans Hebrew', system-ui, sans-serif;
}
.loc-en {
  --display: 'Cairo', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
body {
  margin: 0;
  /* A stray pixel of overflow must never make a phone zoom the whole page out. clip, unlike hidden,
     keeps the sticky header working. */
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--body);
  text-rendering: optimizeLegibility;
}
.loc-en body,
body.loc-en {
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.15;
}
p {
  margin: 0;
}
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  border-radius: var(--r2);
}
.skip:focus {
  top: 12px;
}
main:focus {
  outline: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r2);
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.btn-lg {
  min-height: 52px;
  padding: 10px 24px;
  font-size: 1.0625rem;
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-accent:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}
.btn-line {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
  background: transparent;
}
.btn-line:hover {
  border-color: currentColor;
}
.tone-ink .btn-line {
  color: var(--on-ink);
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.is-scrolled {
  border-bottom-color: var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  text-decoration: none;
  font: 800 1.25rem/1 var(--display);
  color: var(--ink);
}
.brand > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo {
  width: 38px;
  height: 38px;
  flex: none;
}
.logo-sm {
  width: 26px;
  height: 26px;
}
.logo-bg {
  fill: var(--primary);
}
.logo-page {
  fill: #fff;
}
.logo-spine {
  fill: color-mix(in srgb, var(--accent) 60%, #fff);
}
.nav {
  margin-inline-start: auto;
}
.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: var(--r3);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.nav a:hover {
  background: var(--primary-soft);
}
.nav .nav-actions,
.nav .nav-ic {
  display: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.langs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.langs a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  border-radius: calc(var(--r2) - 3px);
  font: 700 0.875rem/1 var(--body);
  text-decoration: none;
  color: var(--muted);
}
.langs a[aria-current='true'] {
  background: var(--primary);
  color: var(--on-primary);
}
.langs a:not([aria-current]):hover {
  color: var(--ink);
  background: var(--primary-soft);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r2);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.menu-btn .ic {
  width: 22px;
  height: 22px;
}
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-weight: 700;
  padding: 6px 12px;
  font-size: 0.9375rem;
}
.is-preview .top {
  top: 34px;
}

/* ---------- sections ---------- */
.blk {
  padding-block: clamp(56px, 8vw, 104px);
}
.tone-paper {
  background: var(--paper);
}
.tone-tint {
  background: var(--tint);
}
.tone-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.sec-head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.sec-title {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sec-intro {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}
.tone-ink .sec-intro {
  color: color-mix(in srgb, var(--on-ink) 78%, transparent);
}

/* ---------- hero ---------- */
.blk-hero {
  padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.blk-hero.has-visual .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.loc-ar .hero-title {
  line-height: 1.12;
}
.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero-visual {
  position: relative;
}

/* ---------- page header ---------- */
.blk-pageHeader {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px);
}
.page-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.page-lead {
  margin-top: 16px;
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 42rem;
}

/* ---------- visuals (shared) ---------- */
.viz {
  position: relative;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: 20px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink);
  box-shadow: var(--shadow);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.viz ul,
.viz ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.viz-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}
.viz-caption .ic {
  color: var(--c1);
}
.c1 {
  --c: var(--c1);
  --c-on: var(--c1-on);
  --c-soft: var(--c1-soft);
}
.c2 {
  --c: var(--c2);
  --c-on: var(--c2-on);
  --c-soft: var(--c2-soft);
}
.c3 {
  --c: var(--c3);
  --c-on: var(--c3-on);
  --c-soft: var(--c3-soft);
}
.c4 {
  --c: var(--c4);
  --c-on: var(--c4-on);
  --c-soft: var(--c4-soft);
}
.c5 {
  --c: var(--c5);
  --c-on: var(--c5-on);
  --c-soft: var(--c5-soft);
}
.c6 {
  --c: var(--c6);
  --c-on: var(--c6-on);
  --c-soft: var(--c6-soft);
}

/* timetable (hero) */
.viz-timetable {
  padding: 18px;
  min-height: 0;
  overflow: visible;
}
.tt-grid {
  display: grid;
  grid-template-columns: 26px repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.tt-day {
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  padding-bottom: 2px;
  font-size: 0.78rem;
}
.tt-p {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}
.tt-cell {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: var(--r3);
  background: var(--c-soft);
  border-inline-start: 3px solid var(--c);
  font-size: 0.74rem;
  overflow: hidden;
}
.tt-cell b {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 12px 28px -14px rgba(16, 48, 74, 0.6);
  white-space: nowrap;
}
.tt-chip .ic {
  color: var(--accent);
}
.tt-chip1 {
  top: -16px;
  inset-inline-end: 12%;
}
.tt-chip2 {
  top: 42%;
  inset-inline-end: -30px;
  background: var(--accent);
  color: var(--on-accent);
}
.tt-chip2 .ic {
  color: var(--on-accent);
}
.tt-chip3 {
  bottom: -18px;
  inset-inline-end: 8%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.tt-chip3 .ic {
  color: var(--c3);
}

/* The one orchestrated moment: the week fills in, then the day happens on top of it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .tt-cell {
    animation: tt-drop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  }
  .hero-visual .tt-chip {
    animation: tt-chip 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero-visual .tt-chip1 {
    animation-delay: 1.55s;
  }
  .hero-visual .tt-chip2 {
    animation-delay: 1.85s;
  }
  .hero-visual .tt-chip3 {
    animation-delay: 2.15s;
  }
  .hero-visual .dl1 {
    animation-delay: 0.05s !important;
  }
  .dl2 {
    animation-delay: 0.09s !important;
  }
  .dl3 {
    animation-delay: 0.13s !important;
  }
  .dl4 {
    animation-delay: 0.17s !important;
  }
  .dl5 {
    animation-delay: 0.21s !important;
  }
  .dl6 {
    animation-delay: 0.25s !important;
  }
  .dl7 {
    animation-delay: 0.29s !important;
  }
  .dl8 {
    animation-delay: 0.33s !important;
  }
  .dl9 {
    animation-delay: 0.37s !important;
  }
  .dl10 {
    animation-delay: 0.41s !important;
  }
  .dl11 {
    animation-delay: 0.45s !important;
  }
  .dl12 {
    animation-delay: 0.49s !important;
  }
  .dl13 {
    animation-delay: 0.53s !important;
  }
  .dl14 {
    animation-delay: 0.57s !important;
  }
  .dl15 {
    animation-delay: 0.61s !important;
  }
  .dl16 {
    animation-delay: 0.65s !important;
  }
  .dl17 {
    animation-delay: 0.69s !important;
  }
  .dl18 {
    animation-delay: 0.73s !important;
  }
  .dl19 {
    animation-delay: 0.77s !important;
  }
  .dl20 {
    animation-delay: 0.81s !important;
  }
  .dl21 {
    animation-delay: 0.85s !important;
  }
  .dl22 {
    animation-delay: 0.89s !important;
  }
  .dl23 {
    animation-delay: 0.93s !important;
  }
  .dl24 {
    animation-delay: 0.97s !important;
  }
  .dl25 {
    animation-delay: 1.01s !important;
  }
  .dl26 {
    animation-delay: 1.05s !important;
  }
  .dl27 {
    animation-delay: 1.09s !important;
  }
  .dl28 {
    animation-delay: 1.13s !important;
  }
  .dl29 {
    animation-delay: 1.17s !important;
  }
  .dl30 {
    animation-delay: 1.21s !important;
  }
}
@keyframes tt-drop {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tt-chip {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* grade tree */
.viz-tree {
  align-items: stretch;
}
.tr-root > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tr-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r3);
  background: var(--c-soft, var(--tint));
  border: 1px solid color-mix(in srgb, var(--c, var(--line)) 45%, transparent);
  font-weight: 700;
  white-space: nowrap;
}
.tr-node i {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}
.tr-top {
  background: var(--primary);
  color: var(--on-primary);
  border: 0;
  padding: 9px 14px;
  position: relative;
}
.tr-top i {
  color: inherit;
  opacity: 0.8;
}
.tr-top em {
  font-style: normal;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 1px 9px;
  margin-inline-start: 6px;
}
.tr-root > li > ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  position: relative;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}
.tr-root > li > ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.tr-mid {
  background: var(--c);
  color: var(--c-on);
  border-color: transparent;
}
.tr-mid i {
  color: inherit;
  opacity: 0.85;
}
.tr-root ul ul {
  display: grid;
  gap: 6px;
  padding-inline-start: 16px;
  margin-inline-start: 12px;
  border-inline-start: 2px solid var(--line);
}
.tr-root ul ul .tr-node {
  font-weight: 600;
  background: var(--c-soft);
}

/* certificate */
.ce-paper {
  background: #fffdf8;
  border: 1px solid var(--line);
  outline: 3px double color-mix(in srgb, var(--accent) 55%, var(--line));
  outline-offset: -9px;
  border-radius: var(--r3);
  padding: 20px 22px;
  display: grid;
  gap: 12px;
}
.ce-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
}
.ce-seal {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.ce-head strong {
  font: 800 1.05rem/1.2 var(--display);
}
.ce-head span {
  color: var(--muted);
}
.ce-rows li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.ce-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ce-qr {
  width: 38px;
  height: 38px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 9.5px 9.5px;
  border: 3px solid #fff;
  outline: 1px solid var(--line);
}
.ce-foot b {
  color: var(--primary);
}
.ce-sign {
  width: 70px;
  border-bottom: 1.5px solid var(--ink);
  height: 18px;
}

/* building */
.viz-building {
  gap: 8px;
}
.bd-floor {
  display: grid;
  grid-template-columns: 56px repeat(4, 1fr);
  gap: 6px;
  align-items: stretch;
}
.bd-label {
  align-self: center;
  color: var(--muted);
  font-weight: 700;
}
.bd-room {
  display: grid;
  gap: 1px;
  padding: 8px;
  border-radius: var(--r3);
  background: var(--c-soft);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  min-height: 54px;
}
.bd-room b {
  font-size: 0.95rem;
}
.bd-lab {
  background: repeating-linear-gradient(45deg, var(--tint) 0 6px, #fff 6px 12px);
  border: 1px solid var(--line);
}
.bd-free {
  background: #fff;
  border: 1.5px dashed var(--line);
  color: var(--muted);
}

/* groups */
.viz-groups {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.gr-col {
  display: grid;
  gap: 10px;
  flex: 1;
}
.gr-class,
.gr-group {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: var(--r3);
  border: 1px solid var(--line);
}
.gr-group {
  background: var(--tint);
}
.gr-class span,
.gr-group span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gr-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c);
}
.gr-arrow {
  color: var(--primary);
}
.gr-arrow .ic {
  width: 28px;
  height: 28px;
}

/* signage screen */
.viz-screen {
  align-items: center;
  background: linear-gradient(var(--tint), #fff);
}
.sc-tv {
  width: 100%;
  max-width: 420px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r2);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 0 0 6px #1b2833;
}
.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sc-clock {
  font: 800 1.9rem/1 var(--display);
  letter-spacing: 0.02em;
}
.sc-bell {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--accent);
  color: var(--on-accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.sc-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}
.sc-now {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r3);
  padding: 10px;
}
.sc-now small {
  opacity: 0.7;
}
.sc-now b {
  font-size: 1rem;
}
.sc-media {
  border-radius: var(--r3);
  background: linear-gradient(160deg, var(--c6), var(--c3));
  position: relative;
  overflow: hidden;
  min-height: 84px;
}
.sc-sun {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  inset-inline-end: 18px;
  top: 16px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.15);
}
.sc-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r3);
  padding: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
}
.sc-stand {
  width: 90px;
  height: 12px;
  background: #1b2833;
  border-radius: 0 0 8px 8px;
  margin-top: -2px;
}

/* phone frame */
.viz-vocational,
.viz-mobile {
  align-items: center;
  background: linear-gradient(var(--tint), #fff);
}
.ph {
  width: 230px;
  border: 8px solid var(--ink);
  border-radius: 30px;
  background: #fff;
  padding: 22px 12px 14px;
  display: grid;
  gap: 10px;
  position: relative;
}
.ph-notch {
  position: absolute;
  top: 6px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 6px;
  background: var(--ink);
}
[dir='rtl'] .ph-notch {
  transform: translateX(50%);
}
.ph-title {
  font: 800 1rem/1.2 var(--display);
}
.ph-button {
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  border-radius: var(--r3);
  padding: 8px;
  font-weight: 700;
}
.vo-permit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c4-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  justify-self: start;
}
.vo-permit .ic {
  color: var(--c4);
}
.vo-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.vo-list em {
  font-style: normal;
  font-weight: 700;
  border-radius: 6px;
  padding: 0 8px;
}
.vo-ok {
  background: var(--c4-soft);
}
.vo-late {
  background: var(--c2-soft);
}
.vo-stars {
  font-style: normal;
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 0.75rem;
}
.mb-list {
  display: grid;
  gap: 6px;
}
.mb-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: var(--r3);
  background: var(--c-soft);
  border-inline-start: 3px solid var(--c);
  font-weight: 600;
}
.mb-list b {
  color: var(--muted);
}
.mb-note {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r3);
  padding: 7px 9px;
}
.mb-note .ic {
  color: var(--accent);
}

/* ledger */
.lg-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  position: relative;
  background: #fff;
}
.lg-card strong {
  font: 800 1rem/1.2 var(--display);
}
.lg-card li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.lg-minus b {
  color: var(--c4);
}
.lg-paid b {
  color: var(--c1);
}
.lg-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.lg-stamp {
  position: absolute;
  inset-inline-end: 14px;
  top: 12px;
  transform: rotate(-8deg);
  border: 2px solid var(--c1);
  color: var(--c1);
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 800;
  font-size: 0.75rem;
}

/* loads */
.ld-list {
  display: grid;
  gap: 12px;
}
.ld-list li {
  display: grid;
  grid-template-columns: 70px 1fr 52px;
  align-items: center;
  gap: 10px;
}
.ld-list b {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.ld-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--tint);
}
.ld-bar i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--c1);
}
.ld-bar u {
  position: absolute;
  top: -4px;
  bottom: -4px;
  inset-inline-start: var(--w);
  width: 2px;
  background: var(--ink);
}
.ld-over .ld-bar i {
  background: var(--c5);
}
.ld-over b {
  color: var(--c5);
}
.ld-note .ic {
  color: var(--c5);
}
.w0 {
  --w: 0%;
}
.w5 {
  --w: 5%;
}
.w10 {
  --w: 10%;
}
.w15 {
  --w: 15%;
}
.w20 {
  --w: 20%;
}
.w25 {
  --w: 25%;
}
.w30 {
  --w: 30%;
}
.w35 {
  --w: 35%;
}
.w40 {
  --w: 40%;
}
.w45 {
  --w: 45%;
}
.w50 {
  --w: 50%;
}
.w55 {
  --w: 55%;
}
.w60 {
  --w: 60%;
}
.w65 {
  --w: 65%;
}
.w70 {
  --w: 70%;
}
.w75 {
  --w: 75%;
}
.w80 {
  --w: 80%;
}
.w85 {
  --w: 85%;
}
.w90 {
  --w: 90%;
}
.w95 {
  --w: 95%;
}
.w100 {
  --w: 100%;
}

/* aSc import */
.viz-asc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.as-file {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1.5px dashed var(--c3);
  border-radius: var(--r2);
  background: var(--c3-soft);
  font-weight: 700;
  text-align: center;
  max-width: 120px;
}
.as-file .ic {
  width: 34px;
  height: 34px;
  color: var(--c3);
}
.as-flow {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c3) 0 8px, transparent 8px 14px);
  position: relative;
}
.as-result {
  display: grid;
  gap: 10px;
}
.as-result ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.as-result li {
  background: var(--tint);
  border-radius: var(--r3);
  padding: 8px 10px;
  display: grid;
}
.as-result li b {
  font: 800 1.15rem/1.1 var(--display);
  color: var(--primary);
}
.as-ok {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
  color: var(--c1);
}

/* smart import */
.im-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.im-col {
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--tint);
  border-radius: var(--r3);
  font-weight: 700;
}
.im-col i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}
.im-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.im-map span {
  height: 20px;
  border-inline-start: 2px dashed var(--line);
  margin-inline-start: 18px;
}
.im-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.im-stats li {
  display: grid;
  padding: 10px;
  border-radius: var(--r3);
  font-weight: 600;
}
.im-stats b {
  font: 800 1.2rem/1.1 var(--display);
}
.im-new {
  background: var(--c4-soft);
}
.im-upd {
  background: var(--c6-soft);
}
.im-rev {
  background: var(--c2-soft);
}

/* exchange */
.viz-exchange {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ex-side {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r2);
  min-width: 86px;
  font-weight: 700;
}
.ex-side .ic {
  width: 30px;
  height: 30px;
}
.ex-xls {
  background: var(--c4-soft);
}
.ex-xls .ic {
  color: var(--c4);
}
.ex-app {
  background: var(--primary);
  color: var(--on-primary);
}
.ex-list {
  display: grid;
  gap: 7px;
  flex: 1;
}
.ex-list li {
  text-align: center;
  padding: 6px;
  border-radius: 999px;
  background: var(--c-soft);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  font-weight: 700;
}

/* attendance */
.viz-attendance {
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.at-ring {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--c1) 0 96%, var(--tint) 0);
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
}
.at-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}
.at-ring b,
.at-ring span {
  position: relative;
}
.at-ring b {
  font: 800 1.4rem/1 var(--display);
}
.at-ring span {
  color: var(--muted);
}
.at-list {
  display: grid;
  gap: 7px;
  flex: 1;
}
.at-list li {
  display: grid;
  grid-template-columns: 1fr repeat(5, 26px);
  gap: 5px;
  align-items: center;
}
.at-list em {
  font-style: normal;
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
}
.at-s0 {
  background: var(--c4-soft);
}
.at-s1 {
  background: var(--c2-soft);
}
.at-s2 {
  background: var(--c5-soft);
}
.at-s3 {
  background: var(--c3-soft);
}

/* documentation */
.dc-list {
  display: grid;
  gap: 8px;
}
.dc-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r3);
  border: 1px solid var(--line);
}
.dc-ok .ic {
  color: var(--c4);
}
.dc-miss {
  background: var(--c5-soft);
  border-color: transparent;
}
.dc-miss .ic {
  color: var(--c5);
}
.dc-list em {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}
.dc-miss em {
  color: var(--c5);
}

/* alerts */
.al-stack {
  display: grid;
  gap: 10px;
}
.al-stack li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: var(--r2);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px -18px rgba(16, 48, 74, 0.5);
}
.al-stack li .ic {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  flex: none;
}
.al1 .ic {
  background: var(--c6-soft);
  color: var(--c6);
}
.al2 .ic {
  background: var(--c4-soft);
  color: var(--c4);
}
.al3 .ic {
  background: var(--c2-soft);
  color: var(--c2);
}
.al2 {
  margin-inline-start: 18px;
}
.al3 {
  margin-inline-start: 36px;
}
.al-stack span {
  display: grid;
  font-weight: 700;
}
.al-stack small {
  color: var(--muted);
  font-weight: 600;
}

/* security */
.viz-security {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.se-shield .ic {
  width: 72px;
  height: 72px;
  color: var(--primary);
}
.se-code {
  display: grid;
  gap: 4px;
}
.se-code b {
  font: 800 1.6rem/1 var(--display);
  letter-spacing: 0.12em;
  background: var(--tint);
  border-radius: var(--r3);
  padding: 8px 12px;
  direction: ltr;
  text-align: center;
}
.se-log {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.se-log li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.se-log .ic {
  color: var(--c1);
}

/* lifecycle mini */
.lm-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  position: relative;
}
.lm-track::before {
  content: '';
  position: absolute;
  top: 21px;
  inset-inline: 8%;
  height: 3px;
  background: var(--line);
}
.lm-track li {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  text-align: center;
}
.lm-track span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, #fff);
  border: 2px solid var(--c);
  box-shadow: 0 0 0 4px #fff;
  font-size: 1.3rem;
  line-height: 1;
}
.lm-track .ic {
  width: 24px;
  height: 24px;
}

/* ---------- module explorer ---------- */
.explorer {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Groups are cards of equal width; cards on the same row share one height, so groups with fewer
     systems or longer names no longer leave a ragged edge. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.rail-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 8px 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.rail-count {
  flex: none;
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-soft, var(--tint));
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}
.rail-tab {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r2);
  background: transparent;
  color: var(--ink);
  font: 600 0.98rem/1.3 var(--body);
  text-align: start;
  cursor: pointer;
  position: relative;
}
.rail-tab .ic {
  flex: none;
  color: var(--muted);
}
.rail-tab:hover {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
.rail-tab[aria-selected='true'] {
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 1px 0 var(--line),
    0 10px 24px -20px rgba(16, 48, 74, 0.55);
}
.rail-tab[aria-selected='true'] .ic {
  color: var(--primary);
}
.rail-tab[aria-selected='true']::before {
  content: '';
  position: absolute;
  inset-block: 9px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.stage > * {
  min-width: 0;
}
.mod-panel {
  display: grid;
  min-height: 380px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  background: var(--paper);
  border-radius: var(--r1);
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
}
.mod-panel[hidden] {
  display: none;
}
.mod-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
}
.mod-copy h3 .ic {
  color: var(--primary);
  width: 1.1em;
  height: 1.1em;
}
.mod-copy > p {
  margin-top: 12px;
  color: var(--muted);
}
.mod-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.mod-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}
.mod-points .ic {
  color: var(--c1);
  margin-top: 0.25em;
  width: 1.05em;
  height: 1.05em;
}
.js .mod-panel.is-entering {
  animation: panel-in 0.28s ease-out;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- lifecycle ---------- */
.lc-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 14px;
}
.lc-stage:nth-child(3n)::before {
  inset-inline-end: calc(100% - 26px);
}
.lc-stage:nth-child(3n + 1)::before {
  inset-inline-start: 26px;
}
.lc-stage {
  position: relative;
  padding-top: 4px;
}
.lc-stage::before {
  content: '';
  position: absolute;
  top: 30px;
  inset-inline-start: 0;
  inset-inline-end: -10px;
  height: 3px;
  background: var(--c);
  opacity: 0.35;
}
.lc-stage:first-child::before {
  inset-inline-start: 26px;
}
.lc-stage:last-child::before {
  inset-inline-end: calc(100% - 26px);
}
.lc-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c);
  color: var(--c-on);
  box-shadow: 0 0 0 6px var(--paper);
}
.lc-dot .ic {
  width: 26px;
  height: 26px;
}
/* Colourful pictures, as in the system: a lighter circle so the emoji's own colours show. */
.lc-dot.lc-emoji {
  background: color-mix(in srgb, var(--c) 22%, #fff);
  border: 3px solid var(--c);
  font-size: 1.6rem;
  line-height: 1;
}
.lc-stage h3 {
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
}
.lc-stage p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 17rem;
}

/* ---------- comparison ---------- */
.cmp-wrap {
  border-radius: var(--r1);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.cmp {
  width: 100%;
  border-collapse: collapse;
}
.cmp th,
.cmp td {
  padding: 16px 20px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp tbody tr:last-child > * {
  border-bottom: 0;
}
.cmp thead th {
  font: 800 1.15rem/1.2 var(--display);
  padding-block: 18px;
}
.cmp thead .cmp-ours {
  display: table-cell;
  background: var(--primary);
  color: var(--on-primary);
}
.cmp thead .cmp-ours .logo {
  vertical-align: middle;
  margin-inline-end: 8px;
}
.cmp thead .cmp-ours .logo-bg {
  fill: var(--on-primary);
}
.cmp thead .cmp-ours .logo-page {
  fill: var(--primary);
}
.cmp tbody th {
  font-weight: 800;
  width: 22%;
}
.cmp td.cmp-ours {
  background: var(--primary-soft);
  font-weight: 600;
  width: 42%;
}
.cmp td.cmp-ours .ic {
  color: var(--c1);
  vertical-align: -0.2em;
  margin-inline-end: 8px;
}
.cmp td.cmp-others {
  color: var(--muted);
}

/* ---------- highlights ---------- */
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
}
.hl-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hl-list li > .ic {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--r2);
  background: var(--primary-soft);
  color: var(--primary);
}
.hl-list h3 {
  font-size: 1.08rem;
  font-weight: 800;
}
.hl-list p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-top: 3px;
  line-height: 1.6;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 16px;
  border-top: 3px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: block;
  font: 800 2.4rem/1 var(--display);
  color: var(--accent);
  margin-bottom: 10px;
}
.steps h3 {
  font-size: 1.2rem;
  font-weight: 800;
}
.steps p {
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-ic {
  transition: transform 0.2s;
  color: var(--primary);
}
.faq-item[open] .faq-ic {
  transform: rotate(45deg);
}
.faq-item .prose {
  padding: 0 2px 20px;
  color: var(--muted);
}

/* ---------- prose ---------- */
.prose {
  max-width: 46rem;
}
.prose p + p,
.prose ul,
.prose ol,
.prose h3 {
  margin-top: 1em;
}
.prose h3 {
  font-size: 1.3rem;
}
.prose a {
  color: var(--primary);
  text-underline-offset: 3px;
}
.tone-ink .prose a {
  color: var(--accent);
}

/* ---------- CTA ---------- */
.cta-in {
  display: grid;
  gap: 16px;
  max-width: 46rem;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cta-in p {
  font-size: 1.15rem;
  opacity: 0.85;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* ---------- image + text ---------- */
.it {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.it-start .it-media {
  order: -1;
}
.it-end .it-media {
  order: 2;
}
.it-media {
  margin: 0;
}
.it-media img {
  border-radius: var(--r1);
  display: block;
}
.it-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

/* ---------- contact ---------- */
.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.1rem;
}
.contact-list .ic {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.contact-list a {
  text-decoration: none;
  font-weight: 700;
}
.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- forms ---------- */
.form-wrap {
  max-width: 60rem;
}
.site-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: clamp(20px, 3vw, 36px);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field {
  display: grid;
  gap: 6px;
  align-content: start;
}
.field-wide {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  font-weight: 700;
}
.req {
  color: var(--c5);
  margin-inline-start: 3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--body);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r2);
  padding: 11px 14px;
  min-height: 48px;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field [aria-invalid='true'] {
  border-color: var(--c5);
}
.field-error {
  color: var(--c5);
  font-weight: 700;
  font-size: 0.92rem;
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.check {
  position: relative;
}
.check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.check span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.check input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.check input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}
.privacy {
  color: var(--muted);
  font-size: 0.92rem;
}
.form-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--c5-soft);
  border-radius: var(--r2);
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.form-alert .ic {
  color: var(--c5);
}
.form-done {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 10px;
  justify-items: start;
}
.form-done > .ic {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: var(--c4);
  color: var(--c4-on);
}
.form-done h3 {
  font-size: 1.6rem;
  font-weight: 800;
}
.form-done p {
  color: var(--muted);
}
.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- footer ---------- */
.foot {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 52px 26px;
}
.foot .brand {
  color: var(--on-ink);
}
.foot-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.foot-brand p {
  margin-top: 14px;
  opacity: 0.78;
  max-width: 26rem;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.foot a {
  color: var(--on-ink);
  text-decoration: none;
  opacity: 0.88;
}
.foot a:hover {
  opacity: 1;
  text-decoration: underline;
}
.foot-contact li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.foot-contact .ic {
  color: var(--accent);
}
.foot-legal {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hl-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mod-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .mod-panel > * {
    min-width: 0;
  }
}
@media (max-width: 1320px) {
  .tt-chip2 {
    inset-inline-end: -6px;
  }
  .menu-btn {
    display: grid;
  }
  .top-in {
    gap: 12px;
    justify-content: space-between;
  }
  .top-actions {
    margin-inline-start: auto;
  }
}
/* The same compact header when the menu does not fit on one line at a wider screen (long labels,
   more links added in the admin panel, a longer language); set by site.js. */
html.nav-collapsed .menu-btn {
  display: grid;
}
html.nav-collapsed .top-in {
  gap: 12px;
  justify-content: space-between;
}
html.nav-collapsed .top-actions {
  margin-inline-start: auto;
}

@media (max-width: 960px) {
  :root {
    --head-h: 62px;
  }
  .blk-hero.has-visual .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 18px;
    padding-inline: 12px;
  }
  .explorer {
    grid-template-columns: minmax(0, 1fr);
  }
  .explorer > * {
    min-width: 0;
  }
  .rail {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .rail-group {
    display: contents;
  }
  .rail ul {
    display: contents;
  }
  .rail-label {
    display: none;
  }
  .rail-group {
    padding: 0;
    border: 0;
    background: none;
  }
  .rail-tab {
    width: auto;
    white-space: nowrap;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .rail-tab[aria-selected='true'] {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
  }
  .rail-tab[aria-selected='true'] .ic {
    color: var(--on-primary);
  }
  .rail-tab[aria-selected='true']::before {
    display: none;
  }
  .foot-in {
    grid-template-columns: 1fr 1fr;
  }
  .it {
    grid-template-columns: 1fr;
  }
  .it-media {
    order: -1 !important;
  }
}
@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .btn-login,
  .btn-cta {
    display: none;
  }
  body {
    font-size: 1rem;
  }
  .lc-track {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lc-stage {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 22px;
  }
  .lc-stage::before {
    top: 0;
    bottom: 0;
    inset-inline-start: 25px !important;
    inset-inline-end: auto !important;
    width: 3px;
    height: auto;
  }
  .lc-stage:first-child::before {
    top: 27px;
  }
  .lc-stage:last-child::before {
    bottom: auto;
    height: 27px;
  }
  .lc-dot {
    grid-row: span 2;
  }
  .lc-stage h3 {
    margin-top: 12px;
  }
  .hl-list {
    grid-template-columns: 1fr;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .cmp thead {
    display: none;
  }
  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
    width: auto !important;
  }
  .cmp tr {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }
  .cmp tbody tr:last-child {
    border-bottom: 0;
  }
  .cmp th,
  .cmp td {
    border: 0;
    padding: 4px 0;
  }
  .cmp td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--muted);
  }
  .cmp td.cmp-ours {
    background: var(--primary-soft);
    border-radius: var(--r2);
    padding: 10px 12px;
    margin: 6px 0;
  }
  .tt-grid {
    grid-template-columns: 18px repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .tt-cell {
    min-height: 40px;
    padding: 4px 5px;
    font-size: 0.64rem;
  }
  .tt-day {
    font-size: 0.68rem;
  }
  .tt-chip {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
  .tt-chip2 {
    inset-inline-end: -6px;
  }
  .viz-asc {
    grid-template-columns: 1fr;
  }
  .as-flow {
    display: none;
  }
  .as-file {
    max-width: none;
    grid-auto-flow: column;
  }
  .viz-attendance {
    flex-direction: column;
    align-items: stretch;
  }
  .at-ring {
    align-self: center;
  }
  .viz-groups {
    gap: 8px;
  }
  .bd-floor {
    grid-template-columns: 40px repeat(4, 1fr);
    gap: 4px;
  }
  .bd-room {
    padding: 5px;
    font-size: 0.7rem;
  }
  .foot-in {
    grid-template-columns: 1fr;
  }
  .langs a {
    min-width: 30px;
  }
}
@media (max-width: 359px) {
  .brand span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .top,
  .foot,
  .hero-actions,
  .cta-actions {
    display: none;
  }
  .blk {
    padding-block: 24px;
  }
}
/* Inside the module explorer the timetable is a plain illustration (the floating moments belong to the hero). */
.mod-visual .tt-chip {
  display: none;
}
.blk-pageHeader + .blk-contactInfo {
  padding-top: 0;
}
.blk-pageHeader + .blk-form,
.blk-pageHeader + .blk-contactInfo + .blk-form {
  padding-top: clamp(32px, 4vw, 56px);
}

/* ---------- real screens: browser and phone frames ---------- */
.frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: zoom-in;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  box-shadow:
    0 2px 0 rgba(16, 48, 74, 0.04),
    0 34px 64px -34px rgba(16, 48, 74, 0.6);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}
.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c5);
  opacity: 0.75;
}
.frame-bar i + i {
  background: var(--c2);
}
.frame-bar i + i + i {
  background: var(--c4);
}
.frame-url {
  margin-inline: auto;
  transform: translateX(-21px);
  font: 600 0.75rem/1 var(--body);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 16px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.tone-ink .frame {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75);
}
.pframe {
  display: block;
  position: relative;
  padding: 20px 8px 8px;
  border-radius: 34px;
  background: var(--ink);
  cursor: zoom-in;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 34px 60px -30px rgba(16, 48, 74, 0.65);
}
.pframe img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px 6px 26px 26px;
  background: #fff;
}
.pframe-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
}
.tone-ink .pframe {
  background: #0a1f30;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 34px 60px -30px rgba(0, 0, 0, 0.8);
}
.frame:focus-visible,
.pframe:focus-visible {
  outline-offset: 4px;
}

/* ---------- screen tour (tabs) ---------- */
.sh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.sh-tab {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  background: transparent;
  color: inherit;
  font: 700 1rem/1.2 var(--body);
  cursor: pointer;
  white-space: nowrap;
}
.sh-tab:hover {
  border-color: currentColor;
}
.sh-tab[aria-selected='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.sh-stage {
  display: grid;
  gap: 64px;
}
.sh-panel {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
}
.sh-panel[hidden] {
  display: none;
}
.js .sh-panel.is-entering {
  animation: panel-in 0.3s ease-out;
}
.sh-media {
  position: relative;
}
.sh-media.has-phone {
  padding-bottom: 34px;
}
.sh-phone {
  position: absolute;
  bottom: -8px;
  inset-inline-start: -22px;
  width: 21%;
  min-width: 118px;
}
.sh-kicker {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.js .sh-kicker {
  display: none;
}
.sh-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  text-wrap: balance;
}
.sh-copy > p {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--muted);
}
.tone-ink .sh-copy > p {
  color: color-mix(in srgb, var(--on-ink) 80%, transparent);
}
.sh-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sh-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}
.sh-points .ic {
  color: var(--accent);
  margin-top: 0.25em;
  width: 1.05em;
  height: 1.05em;
}

/* ---------- module explorer: the real screen next to the illustration ---------- */
.mod-visual.has-shot {
  display: grid;
}
.mod-visual.has-shot > .viz {
  margin-inline-end: 15%;
}
.mod-shot {
  position: relative;
  justify-self: end;
  width: 74%;
  margin: -78px 0 0;
}
.real-tag {
  position: absolute;
  z-index: 2;
  top: -13px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  pointer-events: none;
}
.real-tag .ic {
  width: 1.05em;
  height: 1.05em;
}

/* ---------- spotlight: one screen or a fan of up to three ---------- */
.sp {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.sp-end {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}
.sp-start .sp-media {
  order: -1;
}
.sp-end .sp-media {
  order: 2;
}
.sp-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.fan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 0 8px;
}
.fan > .fan-item {
  grid-area: 1 / 1;
  position: relative;
}
.fan-n2 > .fan-item {
  width: 84%;
}
.fan-n2 > .fan-2 {
  margin-inline-start: 16%;
  margin-top: 15%;
}
.fan-n3 > .fan-item {
  width: 76%;
}
.fan-n3 > .fan-2 {
  margin-inline-start: 12%;
  margin-top: 14%;
}
.fan-n3 > .fan-3 {
  margin-inline-start: 24%;
  margin-top: 28%;
}
/* Pointing at a frame behind brings it to the front. */
.fan > .fan-item:hover,
.fan > .fan-item:focus-within {
  z-index: 3;
}
.fan-tag {
  position: absolute;
  z-index: 2;
  top: -13px;
  inset-inline-start: 16px;
  padding: 3px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 18px -10px rgba(16, 48, 74, 0.7);
}
.tone-ink .fan-tag {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- visuals added with the expanded explorer ---------- */
.ex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.ex-score {
  flex: none;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c1-soft);
  color: var(--c1);
  font-weight: 800;
}
.ex-qs {
  display: grid;
  gap: 8px;
}
.ex-qs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--c);
  background: #fff;
}
.ex-qs b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c);
  flex: none;
}
.ex-qs span {
  flex: 1;
  font-weight: 600;
}
.ex-qs em {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}
.ls-course {
  font-size: 0.95rem;
}
.ls-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ls-items li {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--r2);
  background: var(--c-soft);
  color: var(--ink);
  font-weight: 700;
}
.ls-items .ic {
  width: 26px;
  height: 26px;
  color: var(--c);
}
.ls-hw {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
}
.ls-hw span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.ls-hw small {
  color: var(--muted);
}
.ls-hw i,
.cs-bar i,
.cs-vote li i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to var(--end, left), var(--c1) var(--p), var(--tint) var(--p));
}
html[dir='ltr'] .ls-hw i,
html[dir='ltr'] .cs-bar i,
html[dir='ltr'] .cs-vote li i {
  --end: right;
}
.pc87 {
  --p: 87%;
}
.pc76 {
  --p: 76%;
}
.pc64 {
  --p: 64%;
}
.pc36 {
  --p: 36%;
}
.pg-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pg-kpis li {
  display: grid;
  padding: 12px;
  border-radius: var(--r2);
  background: var(--c-soft);
}
.pg-kpis b {
  font-size: 1.35rem;
  color: var(--c);
}
.pg-kpis span {
  font-weight: 600;
}
.pg-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r2);
  border: 1px solid var(--c2);
  background: var(--c2-soft);
}
.pg-alert .ic {
  width: 30px;
  height: 30px;
  color: var(--c2);
  flex: none;
}
.pg-alert span {
  display: grid;
  flex: 1;
  font-weight: 700;
}
.pg-alert small {
  color: var(--muted);
  font-weight: 600;
}
.pg-alert em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.su-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.su-steps li {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-weight: 700;
  position: relative;
}
.su-steps li::before {
  content: '';
  position: absolute;
  top: 15px;
  inset-inline-start: 50%;
  width: 100%;
  height: 3px;
  background: var(--line);
}
.su-steps li:last-child::before {
  display: none;
}
.su-steps li.done::before {
  background: var(--c1);
}
.su-steps i {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
}
.su-steps li.done i {
  background: var(--c1);
  border-color: var(--c1);
  color: #fff;
}
.su-steps i .ic {
  width: 16px;
  height: 16px;
}
.su-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
}
.su-card > .ic {
  width: 32px;
  height: 32px;
  color: var(--c3);
}
.su-card span {
  display: grid;
  flex: 1;
}
.su-card small {
  color: var(--muted);
}
.su-card .su-lock {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.viz-portal {
  align-items: center;
}
.pt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r3);
  background: var(--tint);
}
.pt-row .ic {
  width: 22px;
  height: 22px;
  color: var(--c1);
}
.pt-row span {
  display: grid;
  font-weight: 800;
}
.pt-row small {
  font-weight: 600;
  color: var(--muted);
}
.pt-act {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r3);
  background: var(--accent-soft);
  font-weight: 700;
}
.pt-act .ic {
  width: 18px;
  height: 18px;
}
.cs-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
}
.cs-card b {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-card b .ic {
  width: 20px;
  height: 20px;
  color: var(--c1);
}
.cs-card small {
  color: var(--muted);
}
.cs-vote ul {
  display: grid;
  gap: 6px;
}
.cs-vote li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-vote li i {
  flex: 1;
  background: linear-gradient(to var(--end, left), var(--c) var(--p), var(--tint) var(--p));
}
.cs-vote li em {
  font-style: normal;
  font-weight: 700;
}
.sf-leave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
}
.sf-leave span {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
}
.sf-leave .ic {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--c3);
}
.sf-leave small {
  color: var(--muted);
}
.sf-leave em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c4-soft);
  color: var(--ink);
  font-weight: 700;
}
.sf-cover {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}
.sf-list {
  display: grid;
  gap: 8px;
}
.sf-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r2);
  background: var(--c-soft);
  font-weight: 700;
}
.sf-list .ic {
  width: 22px;
  height: 22px;
  color: var(--c);
}
.sv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sv-grid li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r2);
  background: var(--c-soft);
}
.sv-grid .ic {
  width: 26px;
  height: 26px;
  color: var(--c);
}
.sv-grid small {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- mission statement ---------- */
.st {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px);
  border-radius: var(--r1);
  background: radial-gradient(120% 80% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, var(--primary-soft) 0%, transparent 60%), #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(16, 48, 74, 0.08);
  text-align: center;
}
.st::before {
  content: '\201D';
  position: absolute;
  top: -18px;
  inset-inline-start: 50%;
  translate: 50% 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font:
    800 2.6rem/1 Georgia,
    serif;
  box-shadow: 0 0 0 8px var(--paper);
}
html[dir='ltr'] .st::before {
  translate: -50% 0;
  content: '\201C';
}
.st-kicker {
  margin: 8px 0 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.st .sec-title {
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.25;
}
.st-body {
  max-width: 62ch;
  margin: 22px auto 0;
  font-size: 1.12rem;
  line-height: 1.95;
  color: var(--ink);
}
.st-body p + p {
  margin-top: 14px;
}
.st-pillars {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: start;
}
.st-pillars li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r2);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}
.st-pillars li > .ic {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r2);
  background: var(--primary);
  color: var(--on-primary);
}
.st-pillars h3 {
  font-size: 1.05rem;
  font-weight: 800;
}
.st-pillars p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 960px) {
  .st-pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- phones ---------- */
.ph-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.ph-row li:nth-child(even) {
  margin-top: 56px;
}
.ph-row figure {
  margin: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.ph-row .pframe,
.ph-row .frame {
  width: 100%;
  max-width: 250px;
}
.ph-row figcaption {
  font-weight: 700;
  text-align: center;
}

/* ---------- gallery ---------- */
.gl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.gl-chip {
  min-height: 40px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 700 0.95rem/1.2 var(--body);
  cursor: pointer;
}
.gl-chip:hover {
  border-color: var(--primary);
}
.gl-chip[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.gl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
}
.gl-grid li[hidden] {
  display: none;
}
.gl-grid figure {
  margin: 0;
  display: grid;
  gap: 12px;
}
.gl-grid .pframe {
  width: 62%;
  justify-self: center;
}
.gl-grid figcaption {
  font-weight: 700;
}

/* ---------- picture viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: rgba(8, 22, 34, 0.88);
}
.lb-fig {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 64px 76px 24px;
  max-width: 100%;
}
.lb-img {
  display: block;
  max-width: min(1440px, 100%);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.is-phone .lb-img {
  border-radius: 28px;
}
.lb-cap {
  font-weight: 700;
  text-align: center;
  font-size: 1.05rem;
}
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.lb-btn .ic {
  width: 24px;
  height: 24px;
}
.lb-close {
  top: 14px;
  inset-inline-end: 14px;
}
.lb-prev,
.lb-next {
  top: 50%;
  margin-top: -24px;
}
.lb-prev {
  inset-inline-start: 14px;
}
.lb-next {
  inset-inline-end: 14px;
}
[dir='rtl'] .lb-prev .ic,
[dir='rtl'] .lb-next .ic {
  transform: scaleX(-1);
}
.is-single .lb-prev,
.is-single .lb-next {
  display: none;
}

@media (max-width: 1100px) {
  .sh-panel {
    grid-template-columns: 1fr;
  }
  .sh-phone {
    inset-inline-start: -6px;
  }
  .gl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .sp,
  .sp-end {
    grid-template-columns: 1fr;
  }
  .sp-media {
    order: -1 !important;
  }
}
@media (max-width: 720px) {
  .sh-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
    scrollbar-width: thin;
  }
  .sh-media.has-phone {
    padding-bottom: 46px;
  }
  .sh-phone {
    inset-inline-start: 4px;
    width: 27%;
    min-width: 0;
  }
  .frame-bar {
    height: 22px;
    padding: 0 9px;
    gap: 4px;
  }
  .frame-bar i {
    width: 7px;
    height: 7px;
  }
  .frame-url {
    font-size: 0.625rem;
    padding: 2px 10px;
    transform: translateX(-15px);
  }
  .mod-visual.has-shot > .viz {
    margin-inline-end: 0;
  }
  .mod-shot {
    width: 88%;
    margin-top: -40px;
  }
  .ph-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
  }
  .ph-row li {
    flex: 0 0 62%;
    scroll-snap-align: center;
  }
  .ph-row li:nth-child(even) {
    margin-top: 0;
  }
  .gl-grid {
    grid-template-columns: 1fr;
  }
  .lb-fig {
    padding: 60px 12px 20px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 14px;
    margin-top: 0;
  }
  .lb-img {
    max-height: calc(100vh - 180px);
  }
}
@media print {
  .lightbox {
    display: none;
  }
}

/* ---------- compact menu (drawer) ---------- */
@media (max-width: 1320px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: var(--gutter);
    inset-inline-start: auto;
    z-index: 2;
    width: min(380px, calc(100vw - 2 * var(--gutter)));
    max-height: var(--nav-room, calc(100dvh - var(--head-h) - 28px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow:
      0 32px 64px -28px rgba(16, 48, 74, 0.55),
      0 2px 6px rgba(16, 48, 74, 0.06);
    display: none;
  }
  .nav.is-open {
    display: block;
    animation: nav-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav ul {
    flex-direction: column;
    gap: 2px;
  }
  .nav li:not(.nav-actions) a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 14px;
  }
  .nav li:not(.nav-actions) a::after {
    content: '';
    margin-inline-start: auto;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    opacity: 0.35;
    transform: rotate(45deg);
    flex: none;
  }
  [dir='rtl'] .nav li:not(.nav-actions) a::after {
    transform: rotate(-45deg);
  }
  .nav li:not(.nav-actions) a:hover::after,
  .nav li:not(.nav-actions) a:focus-visible::after {
    opacity: 0.8;
  }
  .nav .nav-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .nav .nav-ic .ic {
    width: 20px;
    height: 20px;
  }
  .nav li:not(.nav-actions) a:hover .nav-ic {
    background: var(--primary);
    color: var(--on-primary);
  }
}

html.nav-collapsed .nav {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: var(--gutter);
  inset-inline-start: auto;
  z-index: 2;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  max-height: var(--nav-room, calc(100dvh - var(--head-h) - 28px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 32px 64px -28px rgba(16, 48, 74, 0.55),
    0 2px 6px rgba(16, 48, 74, 0.06);
  display: none;
}
html.nav-collapsed .nav.is-open {
  display: block;
  animation: nav-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.nav-collapsed .nav ul {
  flex-direction: column;
  gap: 2px;
}
html.nav-collapsed .nav li:not(.nav-actions) a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 14px;
}
html.nav-collapsed .nav li:not(.nav-actions) a::after {
  content: '';
  margin-inline-start: auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  opacity: 0.35;
  transform: rotate(45deg);
  flex: none;
}
[dir='rtl'] html.nav-collapsed .nav li:not(.nav-actions) a::after {
  transform: rotate(-45deg);
}
html.nav-collapsed .nav li:not(.nav-actions) a:hover::after,
html.nav-collapsed .nav li:not(.nav-actions) a:focus-visible::after {
  opacity: 0.8;
}
html.nav-collapsed .nav .nav-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
html.nav-collapsed .nav .nav-ic .ic {
  width: 20px;
  height: 20px;
}
html.nav-collapsed .nav li:not(.nav-actions) a:hover .nav-ic {
  background: var(--primary);
  color: var(--on-primary);
}
@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
/* While the compact menu is open the page behind it is dimmed; a tap there closes it (site.js). */
html.nav-open::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(13, 30, 46, 0.32);
  backdrop-filter: blur(2px);
}
@media (max-width: 720px) {
  .nav {
    inset-inline: var(--gutter) !important;
    width: auto !important;
  }
  .nav .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 2px 2px;
    border-top: 1px solid var(--line);
    /* The two main actions stay visible at the bottom of the open menu, however long the list. */
    position: sticky;
    bottom: -10px;
    padding-bottom: 12px;
    background: var(--paper);
    z-index: 1;
  }
  .nav .nav-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .nav .nav-actions .btn .ic {
    width: 18px;
    height: 18px;
    flex: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav.is-open {
    animation: none;
  }
}

/* ---------- feature section (illustration, intro and a grid of points) ---------- */
.ft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: 'copy visual' 'points points';
  gap: clamp(26px, 4vw, 56px) clamp(28px, 5vw, 72px);
  align-items: center;
}
.ft-start {
  grid-template-areas: 'visual copy' 'points points';
}
.ft-plain {
  grid-template-columns: 1fr;
  grid-template-areas: 'copy' 'points';
}
.ft-visual {
  grid-area: visual;
}
.ft-copy {
  grid-area: copy;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.ft-kicker {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}
.tone-ink .ft-kicker {
  background: var(--accent);
  color: var(--on-accent);
}
.ft-intro {
  font-size: 1.06rem;
}
.ft-points {
  grid-area: points;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ft-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r1);
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  border: 1px solid var(--line);
}
.tone-tint .ft-points li {
  background: #fff;
}
.tone-ink .ft-points li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.ft-points li > .ic {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r2);
  background: var(--primary-soft);
  color: var(--primary);
}
.tone-ink .ft-points li > .ic {
  background: var(--accent);
  color: var(--on-accent);
}
.ft-points h3 {
  font-size: 1.04rem;
  font-weight: 800;
}
.ft-points p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tone-ink .ft-points p {
  color: color-mix(in srgb, var(--on-ink) 78%, transparent);
}

/* bell: the times flow from Ajyal into the bell program on the school computer */
.viz-bell {
  gap: 0;
  padding: 22px;
}
.bl-src {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  position: relative;
}
.bl-src .ic {
  width: 18px;
  height: 18px;
}
.bl-flow {
  position: absolute;
  top: 100%;
  inset-inline-start: 50%;
  width: 2px;
  height: 22px;
  background: repeating-linear-gradient(to bottom, var(--primary) 0 4px, transparent 4px 8px);
}
.bl-app {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  background: #fff;
}
.bl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--on-ink);
}
.bl-head b {
  display: block;
  font-size: 0.9rem;
}
.bl-head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}
.bl-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
}
.bl-logo .ic {
  width: 20px;
  height: 20px;
}
.bl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}
.bl-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
}
.bl-list li:first-child {
  border-top: 0;
}
.bl-list b {
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}
.bl-list li.is-done {
  color: var(--muted);
}
.bl-list li.is-done span {
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
}
.bl-list li.is-next {
  background: var(--accent-soft);
  font-weight: 800;
}
.bl-list em {
  margin-inline-start: auto;
  font-style: normal;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.bl-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}
.bl-acts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}
.bl-acts .ic {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* theme: palettes, icon packs, light/dark */
.viz-theme {
  gap: 16px;
}
.tm-row {
  display: grid;
  gap: 8px;
}
.tm-row small {
  font-weight: 800;
  color: var(--muted);
}
.tm-sws {
  display: flex;
  gap: 10px;
}
.tm-sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.tm-sw.is-on {
  box-shadow: 0 0 0 2px var(--c3);
}
.tm-sw1 {
  background: linear-gradient(135deg, #1f2a5c 50%, #5468d4 50%);
}
.tm-sw2 {
  background: linear-gradient(135deg, #12364a 50%, #22a6b3 50%);
}
.tm-sw3 {
  background: linear-gradient(135deg, #123a2c 50%, #1f9d6b 50%);
}
.tm-sw4 {
  background: linear-gradient(135deg, #2b1f4d 50%, #8b5cf6 50%);
}
.tm-sw5 {
  background: linear-gradient(135deg, #3d2a12 50%, #d4a24c 50%);
}
.tm-sw6 {
  background: linear-gradient(135deg, #3a1520 50%, #e0506b 50%);
}
.tm-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tm-pack {
  display: flex;
  gap: 6px;
  padding: 7px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
}
.tm-pack.is-on {
  border-color: var(--c3);
  box-shadow: 0 0 0 2px var(--c3-soft);
}
.tm-pack i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--tint);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--primary);
}
.tm-pack .ic {
  width: 18px;
  height: 18px;
}
.tm-arts {
  flex-wrap: nowrap;
  gap: 5px;
  padding: 6px;
}
.tm-art {
  display: block;
  width: 30px;
  height: 30px;
  overflow: visible;
}
.tm-mode {
  display: inline-flex;
  align-self: start;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: var(--tint);
}
.tm-mode span {
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
}
.tm-mode span.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 48, 74, 0.15);
}
.tm-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 14px;
  border-radius: var(--r2);
  background: linear-gradient(135deg, #1f2a5c, #5468d4);
  color: #fff;
}
.tm-card small {
  opacity: 0.85;
}
.tm-card b {
  display: block;
  font-size: 1.4rem;
}
.tm-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}
.tm-ic .ic {
  width: 22px;
  height: 22px;
}
.tm-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to left, #f2a93b 90%, rgba(255, 255, 255, 0.25) 90%);
}
[dir='ltr'] .tm-bar {
  background: linear-gradient(to right, #f2a93b 90%, rgba(255, 255, 255, 0.25) 90%);
}

/* sms: the message a parent receives, the gateways and the balance */
.viz-sms {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.viz-sms .ph {
  width: 190px;
  min-height: 0;
  align-content: start;
}
.sm-time {
  justify-self: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.sm-bubble {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  border-start-start-radius: 4px;
  background: var(--tint);
  font-size: 0.8rem;
  line-height: 1.55;
}
.sm-side {
  display: grid;
  gap: 10px;
  max-width: 220px;
}
.sm-side small {
  font-weight: 800;
  color: var(--muted);
}
.sm-gw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sm-gw li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c3-soft);
  color: var(--c3);
  font-weight: 800;
  font-size: 0.76rem;
}
.sm-bal {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
}
.sm-bal b {
  font-size: 1.25rem;
}
.sm-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to left, var(--c4) 72%, var(--line) 72%);
}
[dir='ltr'] .sm-bar {
  background: linear-gradient(to right, var(--c4) 72%, var(--line) 72%);
}

@media (max-width: 1100px) {
  .ft-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .ft,
  .ft-start {
    grid-template-columns: 1fr;
    grid-template-areas: 'copy' 'visual' 'points';
  }
}
@media (max-width: 720px) {
  .ft-points {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ft-points li {
    padding: 14px;
  }
  .viz-sms {
    flex-direction: column;
  }
  .sm-side {
    max-width: none;
    width: 100%;
  }
}
/* On a narrow phone the hero week shows three days, so every lesson name stays readable. */
@media (max-width: 480px) {
  .viz-timetable .tt-grid {
    grid-template-columns: 20px repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .viz-timetable .tt-d4,
  .viz-timetable .tt-d5 {
    display: none;
  }
  .viz-timetable .tt-cell {
    min-height: 42px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }
  .viz-timetable .tt-day {
    font-size: 0.78rem;
  }
}
/* Phones: the comparison reads as short cards, and the "and more" list uses two columns. */
@media (max-width: 720px) {
  .cmp tr {
    padding: 12px 14px;
  }
  .cmp tbody th {
    font-size: 1rem;
  }
  .cmp td.cmp-ours {
    display: flex !important;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 10px;
    margin: 6px 0 4px;
  }
  .cmp td.cmp-ours::before {
    display: none;
  }
  .cmp td.cmp-ours .ic {
    flex: none;
    margin-top: 3px;
  }
  .cmp td.cmp-others {
    font-size: 0.88rem;
  }
  .cmp td.cmp-others::before {
    content: attr(data-label) ': ';
    display: inline;
    font-size: 0.8rem;
  }
  .hl-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hl-list li {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: var(--r1);
    background: color-mix(in srgb, var(--paper) 60%, #fff);
    border: 1px solid var(--line);
  }
  .hl-list li > .ic {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .hl-list h3 {
    font-size: 0.98rem;
  }
  .hl-list p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* migrate: a file from the current system, its columns matched to Ajyal, then a preview */
.viz-migrate {
  gap: 14px;
}
.mg-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r2);
  border: 1.5px dashed var(--line);
  background: var(--tint);
}
.mg-file .ic {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: var(--c4-soft);
  color: var(--c4);
}
.mg-file b {
  display: block;
}
.mg-file small {
  color: var(--muted);
}
.mg-map {
  display: grid;
  gap: 8px;
}
.mg-map li {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 8px;
}
.mg-src,
.mg-dst {
  padding: 7px 10px;
  border-radius: var(--r3);
  font-weight: 700;
  text-align: center;
}
.mg-src {
  background: #f1f3f5;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}
.mg-dst {
  background: var(--c3-soft);
  color: var(--c3);
}
.mg-arrow {
  height: 2px;
  background: var(--c3);
  position: relative;
}
.mg-arrow::after {
  content: '';
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--c3);
  border-right: 2px solid var(--c3);
  transform: rotate(45deg);
}
[dir='rtl'] .mg-arrow::after {
  right: auto;
  left: 0;
  transform: rotate(-135deg);
}
.mg-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mg-sum li {
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
}
.mg-s1 {
  background: var(--c4-soft);
  color: #3d6b27;
}
.mg-s2 {
  background: var(--c2-soft);
  color: #8a5a12;
}
.mg-s3 {
  background: var(--tint);
  color: var(--muted);
}
.mg-ready {
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}
.mg-ready .ic {
  width: 16px;
  height: 16px;
}

/* ---------- announcement bar ---------- */
.annc {
  position: relative;
  z-index: 41;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.annc-info {
  background: var(--primary);
  color: var(--on-primary);
}
.annc-success {
  background: #2f7d5c;
  color: #fff;
}
.annc-warning {
  background: #b5472b;
  color: #fff;
}
.annc-in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 8px;
}
.annc p {
  flex: 1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}
.annc p > .ic {
  width: 20px;
  height: 20px;
  flex: none;
}
.annc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  white-space: nowrap;
}
.annc-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  cursor: pointer;
}
.annc-close:hover {
  background: rgba(255, 255, 255, 0.35);
}
.annc-close .ic {
  width: 16px;
  height: 16px;
}
@media (max-width: 720px) {
  .annc p {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 2px 10px;
    font-size: 0.88rem;
    text-align: start;
  }
  .annc p > .ic {
    margin-top: 2px;
  }
  .annc p > a {
    grid-column: 2;
    justify-self: start;
  }
}
@media print {
  .annc {
    display: none;
  }
}

@media (max-width: 400px) {
  .tr-node {
    white-space: normal;
  }
}

/* The student journey keeps its six stages readable on narrow phones: two rows of three. */
@media (max-width: 420px) {
  .lm-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 16px;
  }
  .lm-track::before {
    display: none;
  }
}

/* Long button labels (English, Hebrew) wrap instead of widening the page on the narrowest phones. */
@media (max-width: 420px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .ft-copy {
    min-width: 0;
  }
}

/* ---------- upcoming: what is being built ---------- */
.blk-upcoming {
  overflow: hidden;
}
.up {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 4vw, 56px);
  border-radius: calc(var(--r1) + 8px);
  background: radial-gradient(
      120% 90% at 100% 0%,
      color-mix(in srgb, var(--accent) 22%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(100% 80% at 0% 100%, color-mix(in srgb, var(--c3) 30%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, #0b2236 0%, #10304a 55%, #0d2a3f 100%);
  color: #fff;
  box-shadow:
    0 40px 90px -40px rgba(4, 18, 30, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.up-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.up-aurora span {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.up-aurora span:nth-child(1) {
  background: var(--accent);
  inset-block-start: -18%;
  inset-inline-end: -10%;
}
.up-aurora span:nth-child(2) {
  background: var(--c3);
  inset-block-end: -25%;
  inset-inline-start: -8%;
}
.up-aurora span:nth-child(3) {
  background: var(--c1);
  inset-block-start: 30%;
  inset-inline-start: 40%;
  width: 30%;
  opacity: 0.3;
}
.up-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}
.up-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.03em;
}
.up-kicker i,
.up-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.up .sec-title {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.22;
  background: linear-gradient(90deg, #ffffff 0%, #ffe3b3 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.up-intro {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 64ch;
  margin-inline: auto;
}
.up-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.up-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border-radius: var(--r1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.up-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--accent) 70%, transparent);
}
.up-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
.up-icon .ic {
  width: 28px;
  height: 28px;
}
.up-badge {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ef0c4;
  background: rgba(158, 240, 196, 0.12);
  border: 1px solid rgba(158, 240, 196, 0.3);
}
.up-card h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.35;
  color: #fff;
}
.up-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}
.up-progress {
  margin-top: auto;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.up-progress b {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.up-secret {
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.up-secret .up-badge {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.up-secret h3 {
  background: linear-gradient(90deg, #fff, #ffd28a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.up-foot {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
}
.up-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
.up-note .ic {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .up-aurora span {
    animation: up-drift 18s ease-in-out infinite alternate;
  }
  .up-aurora span:nth-child(2) {
    animation-duration: 22s;
    animation-delay: -6s;
  }
  .up-aurora span:nth-child(3) {
    animation-duration: 26s;
    animation-delay: -11s;
  }
  .up-kicker i,
  .up-badge i {
    animation: up-pulse 2.2s ease-out infinite;
  }
  .up-progress b {
    animation: up-scan 2.8s ease-in-out infinite;
  }
  .up-card:nth-child(2) .up-progress b {
    animation-delay: 0.5s;
  }
  .up-card:nth-child(3) .up-progress b {
    animation-delay: 1s;
  }
  .up-card:nth-child(4) .up-progress b {
    animation-delay: 1.5s;
  }
  .up-card:nth-child(5) .up-progress b {
    animation-delay: 2s;
  }
  .up-secret .up-icon {
    animation: up-glow 3s ease-in-out infinite;
  }
}
@keyframes up-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-12%, 10%) scale(1.15);
  }
}
@keyframes up-pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@keyframes up-scan {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}
[dir='rtl'] .up-progress b {
  transform-origin: right;
}
@keyframes up-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }
  50% {
    box-shadow: 0 0 28px 4px color-mix(in srgb, var(--accent) 55%, transparent);
  }
}
@media (max-width: 640px) {
  .up-grid {
    grid-template-columns: 1fr;
  }
  .up-badge {
    position: static;
    align-self: flex-start;
  }
}

/* help: the page guide beside the page, pointing at the button it explains */
.viz-help {
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
}
.hp-panel {
  flex: 1.25;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(16, 48, 74, 0.45);
}
.hp-title {
  font-size: 0.95rem;
}
.hp-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}
.hp-tabs li {
  padding-bottom: 5px;
}
.hp-tabs .hp-on {
  color: var(--ink);
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
}
.hp-hero {
  padding: 8px 10px;
  border-radius: var(--r3);
  background: var(--c3-soft);
}
.hp-hero small {
  display: block;
  color: var(--c3);
  font-weight: 800;
  font-size: 0.68rem;
}
.hp-steps {
  display: grid;
  gap: 6px;
}
.hp-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hp-steps i {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 0.68rem;
  background: var(--c3-soft);
  color: var(--c3);
}
.hp-locate {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--c3);
  color: var(--c3);
  font-weight: 800;
  font-size: 0.72rem;
}
.hp-locate .ic {
  width: 13px;
  height: 13px;
}
.hp-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px;
  border-radius: var(--r2);
  background: var(--tint);
}
.hp-line {
  height: 9px;
  border-radius: 6px;
  background: #d5dee4;
}
.hp-short {
  width: 60%;
}
.hp-btn {
  align-self: start;
  margin-top: 6px;
  padding: 7px 12px;
  border-radius: var(--r3);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  animation: hp-pulse 2.4s ease-in-out infinite;
}
@keyframes hp-pulse {
  50% {
    outline-offset: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-btn {
    animation: none;
  }
}
@media (max-width: 520px) {
  .viz-help {
    flex-direction: column;
  }
}

/* ---------- beyond: everything this page has not mentioned yet ---------- */
.by {
  padding: clamp(26px, 4vw, 52px) clamp(16px, 3.5vw, 44px);
  border-radius: calc(var(--r1) + 8px);
  background: radial-gradient(
      90% 70% at 100% 0%,
      color-mix(in srgb, var(--accent) 18%, transparent) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #fff 0%, var(--tint) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.by-head {
  max-width: 860px;
  margin: 0 auto 26px;
  text-align: center;
}
.by-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.85rem;
}
.by-intro {
  font-size: 1.05rem;
}
.by-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 30px;
}
.by-stats li {
  padding: 14px 12px;
  border-radius: var(--r1);
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
}
.by-stats b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--accent);
}
.by-stats span {
  font-size: 0.88rem;
  opacity: 0.9;
}
.by-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.by-card {
  padding: 18px 18px 16px;
  border-radius: var(--r1);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -20px rgba(16, 48, 74, 0.5);
}
.by-icon .ic {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.by-card h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
}
.by-points {
  display: grid;
  gap: 7px;
}
.by-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.by-points .ic {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--c1);
}
.by-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  margin-top: 26px;
  text-align: center;
}
.by-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.by-note .ic {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
@media (max-width: 520px) {
  .by-grid {
    grid-template-columns: 1fr;
  }
  .by-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.by-stats,
.by-grid,
.by-points,
.hp-tabs,
.hp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.by-stats {
  margin: 0 auto 30px;
}

/* ---- WhatsApp button and connection notice ---- */
.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  inset-block-end: max(18px, env(safe-area-inset-bottom));
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: #1f8f4e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 14px 34px rgba(16, 70, 40, 0.32),
    0 2px 6px rgba(16, 70, 40, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.wa-float .ic {
  width: 26px;
  height: 26px;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(16, 70, 40, 0.38);
}
.wa-float:focus-visible {
  outline: 3px solid var(--accent, #f2a93b);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .wa-float {
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
.net-note {
  position: fixed;
  inset-inline: 0;
  inset-block-end: calc(max(18px, env(safe-area-inset-bottom)) + 70px);
  z-index: 70;
  width: min(520px, calc(100vw - 28px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #13324a;
  color: #fff;
  box-shadow: 0 18px 48px rgba(10, 30, 45, 0.3);
  line-height: 1.6;
  animation: net-rise 0.35s ease-out;
}
.net-note[hidden] {
  display: none;
}
.net-note[data-state='on'] {
  background: #14532d;
}
.net-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(242, 169, 59, 0.16);
  color: #f6b955;
}
.net-note[data-state='on'] .net-ic {
  background: rgba(134, 239, 172, 0.16);
  color: #86efac;
}
.net-ic .ic {
  width: 24px;
  height: 24px;
}
.net-words {
  display: grid;
  gap: 2px;
}
.net-words span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}
@keyframes net-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .net-note,
  .wa-float {
    animation: none;
    transition: none;
  }
}
@media print {
  .wa-float,
  .net-note {
    display: none !important;
  }
}

/* Four pillars sit as two balanced pairs instead of three and one. */
@media (min-width: 961px) {
  .st-pillars:has(> li:nth-child(4):last-child),
  .st-pillars:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* r67: the service request — «the whole system or parts?» first, then sections as cards. */
.field-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.scope-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
  margin-top: 6px;
}
.scope-card,
.mgroup-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r2);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.scope-card input,
.mgroup-head input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.scope-dot,
.mgroup-tick {
  flex: 0 0 auto;
  inline-size: 22px;
  block-size: 22px;
  margin-top: 2px;
  border: 2px solid var(--line);
  background: #fff;
}
.scope-dot {
  border-radius: 50%;
}
.mgroup-tick {
  border-radius: 7px;
}
.scope-text,
.mgroup-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.scope-text b,
.mgroup-text b {
  font-size: 1.02rem;
}
.scope-text small,
.mgroup-text small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.scope-card:hover,
.mgroup-head:hover {
  border-color: var(--primary);
}
.scope-card:has(input:checked),
.mgroup-head:has(input:checked) {
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.scope-card input:checked + .scope-dot {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--primary);
}
.mgroup-head input:checked + .mgroup-tick {
  border-color: var(--primary);
  background: var(--primary);
}
.mgroup-head input:checked + .mgroup-tick::after {
  content: '';
  display: block;
  inline-size: 6px;
  block-size: 11px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.scope-card input:focus-visible ~ .scope-text,
.mgroup-head input:focus-visible ~ .mgroup-text {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.mgroups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
  margin-top: 6px;
}
.mgroup {
  display: grid;
  gap: 6px;
  align-content: start;
}
.mgroup-more > summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 2px 6px;
  list-style-position: inside;
}
.mgroup-count {
  display: inline-block;
  min-inline-size: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.8rem;
  text-align: center;
}
.mgroup-more .checks {
  padding: 4px 2px 8px;
}
/* With the script, the sections appear only for «parts». Without it, everything stays visible. */
.site-form.js-scope .field-modules {
  display: none;
}
.site-form.js-scope[data-scope='parts'] .field-modules {
  display: grid;
}
@media (max-width: 560px) {
  .scope-card,
  .mgroup-head {
    padding: 12px 14px;
  }
  .check span {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
