/* Shared public-site design system: restrained road-safety green and neutral surfaces. */
:root {
  --primary: #15803d;
  --primary-dark: #166534;
  --primary-light: #dcfce7;
  --navy: #0f172a;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --white: #ffffff;
  --site-ink: #0f172a;
  --site-green: #15803d;
  --site-green-dark: #166534;
  --site-green-strong: #15803d;
  --site-green-soft: #edf7ef;
  --site-bg: #f8fafc;
  --site-surface: #ffffff;
  --site-border: #e2e8f0;
  --site-muted: #64748b;
  --site-warning: #f59e0b;
  --site-danger: #dc2626;
  --site-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --site-radius: 16px;
}

html { scroll-behavior: smooth; }
*[hidden] { display: none !important; }
body { min-width: 320px; background: var(--site-bg); color: var(--site-ink); font-family: Inter, Manrope, sans-serif; }
img { max-width: 100%; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(21,128,61,.3); outline-offset: 3px; }

.navbar {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 72px;
  height: auto !important;
  padding: 10px max(18px, calc((100vw - 1220px) / 2)) !important;
  border-bottom: 1px solid var(--site-border);
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 12px rgba(15,23,42,.045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.navbar-brand-wrap { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--site-green); text-decoration: none; }
.navbar-brand-wrap img { width: 38px; height: 38px; object-fit: contain; }
.navbar-brand { color: var(--site-green); font-size: 1.18rem; font-weight: 800; letter-spacing: .04em; }
.navbar nav { flex: 1 1 auto; min-width: 0; }
.navbar-links { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin: 0; padding: 0; list-style: none; }
.navbar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #334155;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.navbar-links a i { color: var(--site-green); }
.navbar-links a:hover:not(.active):not(.navbar-cta) {
  background: rgba(30, 96, 190, 0.28);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(90, 160, 255, 0.95);
}
.navbar-links a:hover:not(.active):not(.navbar-cta) i { color: #fff; }
.navbar-links a.active {
  background: rgba(36, 109, 220, 0.34);
  color: #fff;
  border-color: rgba(117, 175, 255, 0.32);
  box-shadow: inset 0 -3px 0 #5ba8ff;
}
.navbar-links a.active i { color: #fff; }
@media (min-width: 1024px) {
  .navbar.home-premium-nav.home-direct-nav .navbar-brand-wrap img {
    width: 60px;
    height: 60px;
  }
  .navbar.home-premium-nav.home-direct-nav .navbar-brand {
    font-size: 30px;
    font-weight: 800;
  }
}
.navbar-links .nav-cta-item { margin-left: 5px; }
.navbar-links a.navbar-cta { min-height: 44px; padding-inline: 15px; background: var(--site-green-strong); color: #fff; box-shadow: 0 3px 8px rgba(21,128,61,.16); }
.navbar-links a.navbar-cta:hover { background: #15803d; }
.lang-badge { flex: 0 0 auto; color: #475569; background: #f8fafc; border: 1px solid var(--site-border); box-shadow: none; }
.mobile-menu-toggle { display: none; }

.page, .main, .workspace, .workspace-scroll-container, main { max-width: 1220px; margin-inline: auto; }
.page, .main { width: min(100% - 40px, 1220px); }
.hero {
  color: var(--site-ink);
  background: linear-gradient(135deg, #edf7ef 0%, #f6faf7 75%);
}
.hero::before { opacity: .07; }
.hero-copy-glass, .hero-copy-card {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--site-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero .hero-copy-glass::before { content: none; }
.section-header-meta .hero-copy-glass { border: 0; background: transparent; box-shadow: none; color: #fff; }
.section-header-meta h2 { color: #fff; }
.section-header-meta .hero-copy-glass p { color: rgba(255,255,255,.9); }
.section-header-meta .hero-eyebrow { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.12); color: #dcfce7; }
.hero-copy-card .hero-meta { border-color: var(--site-border); color: var(--site-muted); }
.hero-copy-glass p, .hero-copy-card p { color: #475569; font-weight: 450; }
.hero h1, .hero h2 { color: var(--site-ink); }
.hero h1 span { color: var(--site-green); }
.hero-pill, .section-label { color: var(--site-green-dark); }
.hero-icon { color: var(--site-green); background: var(--site-green-soft); border-color: #d5ead9; }

.contact-card-wrap, .support-banner, .faq-item, .tl-body, .doc-card, .price-card,
.payment-guide-container, .guide-card, .auth-card-frame, #amanotaLookupFormView,
.remaining-panel, .attempts-table-wrap, .section-card, .stat-tile, .summary-stat {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
}
.contact-card-wrap, .faq-item, .tl-body, .doc-card, .price-card,
.payment-guide-container, .auth-card-frame, #amanotaLookupFormView,
.remaining-panel, .attempts-table-wrap, .section-card, .stat-tile, .summary-stat {
  color: var(--site-ink);
}
.contact-card-wrap, .doc-card, .price-card, .guide-card, .auth-card-frame, #amanotaLookupFormView,
.remaining-panel, .attempts-table-wrap, .section-card { padding: clamp(18px, 2.5vw, 28px); }
.contact-card-wrap h3 { color: var(--site-ink) !important; }
.contact-card-wrap .sub { color: var(--site-muted) !important; }
.contact-card-wrap .contact-row { border-color: var(--site-border); background: #f8fafc; color: #334155 !important; }
.contact-card-wrap .contact-row:hover { background: var(--site-green-soft); }
.contact-card-wrap .contact-row i { color: var(--site-green) !important; }
.support-banner { border: 1px solid #d5ead9; background: var(--site-green-soft); color: var(--site-ink); }
.support-banner p, .support-banner p strong { color: #334155 !important; }
.support-banner .badge-247 { border: 1px solid #d5ead9; background: #fff; color: var(--site-green); }
.support-banner .badge-247 i { color: var(--site-green); }
.contact-grid, .contact-cards, .feature-grid { gap: 16px; }
.section, .main { padding-block: clamp(30px, 5vw, 64px); }
h1, h2, h3, h4 { color: var(--site-ink); }
p { color: #475569; }

:where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--site-ink);
  font: inherit;
}
:where(input:not([type=checkbox]):not([type=radio]), select, textarea):focus {
  border-color: var(--site-green);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
:where(button, .btn-primary, .btn-secondary, .btn-read, .btn-auth-submit, .btn-submit-lookup, .rem-buy-btn, .btn-open-review, .btn-balance-check) {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}
:where(.btn-primary, .btn-read, .btn-auth-submit, .btn-submit-lookup, .rem-buy-btn, .btn-open-review, .btn-balance-check) {
  background: var(--site-green-strong);
  color: #fff;
}
:where(.btn-primary, .btn-read, .btn-auth-submit, .btn-submit-lookup, .rem-buy-btn, .btn-open-review, .btn-balance-check):hover { background: var(--site-green); }
:where(button, .btn-primary, .btn-secondary, .btn-read, .btn-auth-submit, .btn-submit-lookup, .rem-buy-btn, .btn-open-review, .btn-balance-check):disabled { cursor: not-allowed; opacity: .58; }

/* Homepage carries the Imigongo brand pattern across the full viewport and page. */
body:has(.workspace) {
  background-color: #f8fafc;
  background-image:
    url('../images/imigongo-pattern.svg'),
    linear-gradient(135deg, #edf7ef, #f8fafc 72%);
  background-size: 160px 160px, cover;
  background-repeat: repeat, no-repeat;
  background-attachment: fixed, fixed;
}
body:has(.workspace) .highway-canvas { display: none !important; }
body:has(.workspace) .workspace {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 72px);
  margin: 0;
  padding: clamp(34px, 6vw, 76px) 20px 40px;
  background: rgba(248, 250, 252, .9);
  gap: clamp(24px, 4vw, 56px);
}
body:has(.workspace) .workspace::before { opacity: .075; }
body:has(.workspace) .hero-h1 { color: var(--site-ink); font-size: clamp(2.1rem, 4vw, 3.2rem); }
body:has(.workspace) .hero-h1 em { color: var(--site-green); }
body:has(.workspace) .hero-desc { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #475569; backdrop-filter: none; }
body:has(.workspace) .hero-support-pill { border-color: #d5ead9; background: #fff; color: #334155; }
body:has(.workspace) .hero-support-pill i { color: var(--site-green); }
body:has(.workspace) .reg-card { border: 1px solid var(--site-border); border-top: 4px solid var(--site-green); border-radius: 18px; box-shadow: var(--site-shadow); scroll-margin-block: 24px; transition: box-shadow .25s ease, border-color .25s ease; }
body:has(.workspace) .reg-card.registration-anchor-highlight { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.16), 0 18px 44px rgba(21,128,61,.2); }
@media (max-width: 900px) {
  body:has(.workspace) .reg-card { scroll-margin-block-start: 84px; scroll-margin-block-end: 18px; }
}
@media (max-width: 600px) {
  body:has(.workspace) .reg-card { scroll-margin-block-start: 18px; scroll-margin-block-end: 18px; }
}
body:has(.workspace) .btn-submit { background: var(--site-green-strong); box-shadow: none; }
body:has(.workspace) .quick-action-card { border: 1px solid var(--site-border); border-radius: 14px; background: #fff; box-shadow: var(--site-shadow); }
body:has(.workspace) .quick-action-icon { background: var(--site-green-soft); color: var(--site-green); }

/* Keep the pricing overview in the same light Imigongo style as the homepage. */
body:has(.pricing-split-layout) .section-header-meta {
  border: 1px solid #dcebe0;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf7ef, #f8fafc 72%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}
body:has(.pricing-split-layout) .section-header-meta::before {
  opacity: .045;
  background-image: url('../images/imigongo-pattern.svg');
  background-size: 160px 160px;
  background-repeat: repeat;
}
body:has(.pricing-split-layout) .hero-copy-glass {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:has(.pricing-split-layout) .hero-copy-glass::before { content: none; }
body:has(.pricing-split-layout) .hero-eyebrow {
  border-color: #d5ead9;
  background: #fff;
  color: var(--site-green);
}
body:has(.pricing-split-layout) .section-header-meta h2 { color: var(--site-ink); }
body:has(.pricing-split-layout) .section-header-meta p { color: #475569; }
body:has(.pricing-split-layout) .hero-stat {
  border-color: #dcebe0;
  background: rgba(255, 255, 255, .88);
}
body:has(.pricing-split-layout) .hero-stat-val { color: var(--site-ink); }
body:has(.pricing-split-layout) .hero-stat-lbl { color: #475569; }
body:has(.pricing-split-layout) .channel-support-banner {
  border-color: #dcebe0;
  background: rgba(255, 255, 255, .88);
}
body:has(.pricing-split-layout) .channel-support-banner .banner-label { color: #475569; }
body:has(.pricing-split-layout) .channel-provider {
  border-color: #e2e8f0;
  background: #fff;
  color: var(--site-ink);
}

.pay-modal-overlay, .payment-modal-overlay, .otp-overlay, .guide-overlay {
  background: rgba(15,23,42,.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.pay-modal-box, .payment-modal, .pay-modal, .otp-modal, .guide-modal {
  max-width: min(100%, 560px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15,23,42,.2);
}
.attempts-table-wrap, .attempts-scroll { max-width: 100%; }
table { border-collapse: collapse; }
th { color: #334155; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
  width: 100%;
  padding: 36px max(20px, calc((100vw - 1180px) / 2)) 20px;
  background: #0f172a;
  color: #cbd5e1;
}
.site-footer h2, .site-footer h3 { margin: 0 0 12px; color: #fff; font-size: .95rem; }
.site-footer p, .site-footer a { color: #cbd5e1; font-size: .88rem; line-height: 1.65; }
.site-footer a:hover { color: #86efac; }
.site-footer ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-footer > div { min-width: 0; }
.site-footer :where(a, strong) { overflow-wrap: anywhere; }
.site-footer .contact-details {
  gap: 10px;
}
.site-footer .contact-details li,
.site-footer .contact-details a {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}
.site-footer .contact-details i {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  color: #60a5fa;
  font-size: 17px;
  text-align: center;
}
.site-footer .contact-details .fa-whatsapp { color: #25d366; }
.site-footer .contact-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-footer .contact-details a {
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}
.site-footer .contact-details a:hover { color: #86efac; }
.site-footer-brand { color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; }
.site-footer-bottom { grid-column: 1 / -1; justify-self: stretch; width: 100%; padding-top: 16px; border-top: 1px solid rgba(226,232,240,.16); color: #94a3b8; font-size: .78rem; text-align: center; }

/* Legal pages stay readable on wide screens and keep their contents collapsible on phones. */
body:has(.toc-disclosure) main { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: start; gap: 16px 28px; width: min(100% - 40px, 1180px); padding-block: 32px 64px; }
body:has(.toc-disclosure) main > :not(.toc) { grid-column: 2; }
.toc { margin-bottom: 22px; }
body:has(.toc-disclosure) .toc { grid-column: 1; grid-row: 1 / span 10; position: sticky; top: 88px; }
.toc-grid { grid-template-columns: 1fr; }
.toc-disclosure > summary { cursor: pointer; list-style: none; }
.toc-disclosure > summary::-webkit-details-marker { display: none; }
.toc-disclosure > summary::after { content: '+'; float: right; font-weight: 800; }
.toc-disclosure[open] > summary::after { content: '\2212'; }
.empty-state { width: 100%; padding: 28px 20px; border: 1px dashed #cbd5e1; border-radius: 14px; background: #fff; color: var(--site-muted); text-align: center; }
.empty-state > i { display: block; margin-bottom: 10px; color: var(--site-green); font-size: 1.5rem; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { margin: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
body.school-auth-page .guide-card { border: 1px solid #d5ead9; background: #f0fdf4; color: var(--site-ink); }
body.school-auth-page .guide-card-title, body.school-auth-page .gs-body h4 { color: var(--site-ink); }
body.school-auth-page .guide-card-sub { border-color: var(--site-border); color: #475569; }
body.school-auth-page .guide-step:not(:last-child)::after { background: #cbd5e1; }
body.school-auth-page .gs-num { border-color: var(--site-green); background: var(--site-green); color: #fff; }
body.school-auth-page .gs-tag { background: #dcfce7; color: #166534; }
body.school-auth-page .gs-body p, body.school-auth-page .guide-note { color: #475569; }
body.school-auth-page .guide-note { border-color: var(--site-border); background: #fff; }
body.school-auth-page .guide-note i { color: var(--site-green); }
/* School-auth visual treatment; leave wizard state display rules untouched. */
body.school-auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f0fdf4 0, #f8fafc 320px);
  color: #0f172a;
}
body.school-auth-page .workspace-scroll-container {
  display: block;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  margin: 72px 0 0;
  padding: 38px 16px 44px;
}
body.school-auth-page .school-auth-intro {
  width: min(100%, 700px);
  margin: 0 auto 26px;
  padding: 8px 0 0;
  text-align: center;
}
body.school-auth-page .school-auth-intro-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #166534;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}
body.school-auth-page .school-auth-intro h1 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
body.school-auth-page .school-auth-intro p {
  max-width: 58ch;
  margin: 0 auto;
  color: #475569;
  font-size: .92rem;
  line-height: 1.65;
}
body.school-auth-page .auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 1100px);
  max-width: 1100px;
  margin: 0 auto;
}
body.school-auth-page .auth-card-frame {
  order: 1;
  width: 100%;
  max-width: 520px;
  min-height: 0;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15,23,42,.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.school-auth-page .auth-wizard-view-step { order: 1; }
body.school-auth-page #authAlertBox,
body.school-auth-page #authSuccessBox { order: 0; }
body.school-auth-page .auth-trust-bar {
  order: 2;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 0;
}
body.school-auth-page .auth-trust-chip {
  padding: 7px 9px;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: .7rem;
}
body.school-auth-page .auth-trust-chip i { color: #15803d; }
body.school-auth-page .auth-heading-block { margin-bottom: 22px; text-align: left; }
body.school-auth-page .auth-heading-block h2 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.03em;
}
body.school-auth-page .auth-heading-block p { color: #475569; font-size: .9rem; line-height: 1.6; }
body.school-auth-page .auth-heading-block .portal-pill,
body.school-auth-page .auth-step-pill {
  border-color: #dcfce7;
  background: #f0fdf4;
  color: #166534;
}
body.school-auth-page .auth-heading-block .portal-pill { margin-bottom: 12px; }
body.school-auth-page .auth-step-pill { padding: 6px 10px; font-size: .68rem; }
body.school-auth-page .input-form-field { gap: 7px; margin-bottom: 16px; }
body.school-auth-page .input-form-field label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
body.school-auth-page .input-form-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: none;
}
body.school-auth-page .input-form-field input::placeholder { color: #94a3b8; }
body.school-auth-page .input-form-field input:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21,128,61,.1);
}
body.school-auth-page .pw-eye:hover { color: #15803d; }
body.school-auth-page .btn-auth-submit {
  min-height: 48px;
  border-radius: 10px;
  background: #15803d;
  box-shadow: none;
  font-weight: 600;
}
body.school-auth-page .btn-auth-submit:hover { background: #166534; box-shadow: none; transform: none; }
body.school-auth-page .switch-mode-anchor { margin-top: 14px; color: #64748b; }
body.school-auth-page .switch-mode-anchor span,
body.school-auth-page .auth-extra-action span { color: #15803d; }
body.school-auth-page #viewSectionSchoolLogin .switch-mode-anchor[style] {
  margin-top: 12px !important;
  text-align: right;
  font-size: .82rem;
}
body.school-auth-page .auth-help-text { color: #64748b; font-size: .82rem; }
body.school-auth-page #otpSentInfoMsg,
body.school-auth-page #forgotOtpInfoMsg { color: #475569 !important; }
body.school-auth-page .auth-alert.error { color: #dc2626; }
body.school-auth-page .guide-card {
  order: 2;
  width: 100%;
  max-width: 900px;
  padding: 22px 24px;
  border: 1px solid rgba(21, 128, 61, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(240,253,244,.95));
  color: #14532d;
  box-shadow: 0 16px 38px rgba(20, 83, 45, .12), inset 0 1px 0 rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}
body.school-auth-page .guide-card::before {
  display: block;
  opacity: .08;
  background-image: url('../images/imigongo-pattern.svg');
  background-size: 160px 160px;
  background-repeat: repeat;
  filter: grayscale(1) brightness(0) saturate(100%) invert(33%) sepia(20%) saturate(1900%) hue-rotate(88deg) brightness(88%);
}
body.school-auth-page .guide-card-title { color: #14532d; font-size: 1rem; font-weight: 800; letter-spacing: .01em; }
body.school-auth-page .guide-card-title i { color: #15803d; }
body.school-auth-page .guide-card-sub { padding-top: 7px; border-color: rgba(21,128,61,.18); color: #365b45; font-size: .82rem; }
body.school-auth-page .guide-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
body.school-auth-page .guide-step {
  position: relative;
  display: block;
  min-width: 0;
  padding: 16px 14px 15px;
  border: 1px solid rgba(147, 197, 253, .24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(15, 40, 79, .94), rgba(10, 27, 57, .9));
  color: #f8fbff;
  box-shadow: 0 10px 24px rgba(2, 10, 29, .22), inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
}
body.school-auth-page .guide-step:not(:last-child)::after {
  display: none;
}
body.school-auth-page .gs-num { position: relative; z-index: 1; width: 30px; height: 30px; margin-bottom: 9px; border-color: rgba(147, 197, 253, .55); background: #163d73; color: #fff; }
body.school-auth-page .gs-tag { background: rgba(147, 197, 253, .16); color: #bfdbfe; }
body.school-auth-page .gs-body { padding-bottom: 0; }
body.school-auth-page .gs-body h4 { color: #fff; font-size: .8rem; }
body.school-auth-page .gs-body p { color: rgba(255,255,255,.9); font-size: .78rem; line-height: 1.55; }
body.school-auth-page .success-celebration-card { border-color: #dcfce7; background: #f0fdf4; box-shadow: none; }
body.school-auth-page .success-animation { background: #16a34a; animation: none; box-shadow: none; }
body.school-auth-page #viewSectionAccessDenied > div > div:first-child { background: #fef2f2 !important; color: #dc2626 !important; }
body.school-auth-page #viewSectionAccessDenied h2 { color: #b91c1c !important; }
body.school-auth-page #viewSectionAccessDenied p,
body.school-auth-page #viewSectionAccessDenied [style*="font-size:13px"] { color: #475569 !important; }
body.school-auth-page #viewSectionAccessDenied [style*="background:rgba(239,68,68"] { border-color: #fecaca !important; background: #fef2f2 !important; }
body.school-auth-page #viewSectionAccessDenied a { color: #15803d !important; }
body.school-auth-page #viewSectionAccessDenied button { border: 1px solid #cbd5e1 !important; background: #fff !important; color: #334155 !important; }
@media (max-width: 900px) {
  body.school-auth-page .workspace-scroll-container { min-height: 0; margin-top: 0; padding: 170px 16px 32px; }
  body.school-auth-page .school-auth-intro { margin-bottom: 20px; }
  body.school-auth-page .auth-layout { gap: 20px; }
  body.school-auth-page .auth-card-frame { padding: 24px; }
  body.school-auth-page .guide-card { padding: 20px; }
  body.school-auth-page .guide-steps { grid-template-columns: 1fr; gap: 12px; }
  body.school-auth-page .guide-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; padding: 14px; }
  body.school-auth-page .gs-num { grid-row: 1 / span 3; margin-bottom: 0; }
  body.school-auth-page .gs-body { min-width: 0; }
}
@media (max-width: 420px) {
  body.school-auth-page .workspace-scroll-container { padding: 216px 16px 32px; }
  body.school-auth-page .auth-card-frame { padding: 22px; }
  body.school-auth-page .auth-trust-bar { display: flex; }
  body.school-auth-page .auth-trust-chip { padding: 6px 7px; font-size: .65rem; }
}
body:has(.contact-card-wrap) .hero-copy-glass p { color: #475569 !important; }
body:has(.hero-disclaimer) .hero-disclaimer { border-color: var(--site-border); background: #f8fafc; color: #334155; }
body:has(.hero-disclaimer) .hero-disclaimer i { color: var(--site-green); }
body:has(.hero-meta) .hero-meta { color: #475569 !important; }
body:has(.contact-card-wrap) .faq-arrow,
body:has(.contact-card-wrap) .faq-q:hover { color: var(--site-green); }
body:has(.workspace) .step-icon { background: var(--site-green) !important; color: #fff; }
body:has(.workspace) .btn-otp-cancel { color: #475569; }
body:has(.price-card) .pc-price-note,
body:has(.price-card) .pc-tier-range[style],
body:has(.price-card) .pc-tier-row [style*="#94a3b8"] { color: #64748b !important; }
body:has(.price-card) .pc-tier-save { color: #166534 !important; }
body:has(.price-card) .pc-price-note,
body:has(.price-card) .pc-price sub { color: #475569 !important; }
body:has(.price-card) .phone-hint { color: #64748b !important; }
body:has(.price-card) .step-num { background: #15803d !important; }
body:has(.price-card) .pay-cancel-link { color: #475569; }
body:has(#payModalOverlay) .pay-modal-actions .btn-pay,
body:has(#payModalOverlay) .btn-pay { background: #b45309; color: #fff; }
body:has(#payModalOverlay) .pay-modal-actions .btn-pay:hover,
body:has(#payModalOverlay) .btn-pay:hover { background: #92400e; }
body:has(#payModalOverlay) .pay-modal-actions .btn-cancel,
body:has(#payModalOverlay) .btn-cancel { color: #475569; }
body:has(.workspace-scroll-container) .stat-tile.pass-tile .st-val { color: #15803d; }
#remainingBadge { display: none !important; }

/* The home hero and live statistic tiles use light surfaces in this theme. */
body:has(.workspace) .hero-copy-panel {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: var(--site-shadow);
  color: var(--site-ink);
}
body:has(.workspace) .hero-copy-panel .hero-h1 { color: var(--site-ink) !important; }
body:has(.workspace) .hero-copy-panel .hero-h1 em { color: var(--site-green) !important; }
body:has(.workspace) .hero-copy-panel .hero-desc { color: #475569 !important; }
/* Keep the learning introduction separate from the navigation on narrow screens. */
body:has(.workspace) .hero-copy {
  min-width: 0;
}
body:has(.workspace) .hero-copy-panel {
  padding: clamp(18px, 3vw, 30px);
  border-radius: 18px;
}
body:has(.workspace) .hero-support-row { gap: 8px; }
body:has(.workspace) .hero-support-pill { min-width: 0; overflow-wrap: anywhere; }
body:has(.workspace) .hero-live-stat {
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: #fff;
  color: var(--site-ink);
  box-shadow: var(--site-shadow);
}
body:has(.workspace) .hero-live-heading,
body:has(.workspace) .hero-live-value,
body:has(.workspace) .hero-live-detail { color: var(--site-ink) !important; }
body:has(.workspace) .hero-live-heading { color: #475569 !important; }
body:has(.workspace) .hero-live-icon { background: var(--site-green-soft); color: var(--site-green); }

@media (max-width: 600px) {
  body:has(.contact-card-wrap) .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.contact-card-wrap) .company-row { grid-column: 1 / -1; }
  body:has(.contact-card-wrap) .hero h1 { font-size: clamp(1.65rem, 7vw, 2rem); overflow-wrap: anywhere; }
  body:has(.contact-card-wrap) .section-title { color: var(--site-green); font-size: .95rem; }
  .pc-tier-row { flex-wrap: wrap; gap: 6px; }
  .pc-tier-row > * { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 1050px) {
  .navbar { display: grid !important; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 9px 18px !important; }
  .navbar-brand-wrap { grid-column: 1; grid-row: 1; }
  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: #fff;
    color: var(--site-ink);
  }
  .mobile-menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s ease, opacity .16s ease; }
  .navbar.menu-open .mobile-menu-toggle span:first-child { transform: translateY(6px) rotate(45deg); }
  .navbar.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .navbar.menu-open .mobile-menu-toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .navbar nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .navbar nav[hidden] { display: none !important; }
  .navbar.menu-open nav:not([hidden]) { display: block !important; }
  .navbar-links { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; padding: 8px 0 4px; }
  .navbar-links a { width: 100%; min-height: 42px; padding: 8px; font-size: .78rem; white-space: normal; text-align: center; }
  .navbar-links .nav-cta-item { grid-column: 1 / -1; margin: 2px 0 0; }
  .navbar-links a.navbar-cta { width: 100%; }
  .lang-badge { display: none !important; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 600px) {
  .page, .main { width: min(100% - 24px, 1220px); }
  .navbar { padding-inline: 12px !important; }
  .navbar-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar-links a { font-size: .76rem; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .navbar-links a span { min-width: 0; overflow-wrap: anywhere; }
  .hero { padding: 28px 14px 24px; }
  .section, .main { padding-block: 28px; }
  .contact-card-wrap, .doc-card, .price-card, .guide-card, .auth-card-frame, #amanotaLookupFormView,
  .remaining-panel, .attempts-table-wrap, .section-card { padding: 17px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 28px 18px 16px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-bottom { grid-column: 1 / -1; }
  .cta-row { flex-wrap: wrap; }
  .cta-row > :where(a, button) { flex: 1 1 100%; }
  body:has(.toc-disclosure) main { display: block; width: min(100% - 24px, 860px); padding-block: 20px 40px; }
  body:has(.toc-disclosure) .toc { position: static; }
  .toc-disclosure:not([open]) .toc-grid { display: none; }
  .attempts-table-wrap, .attempts-scroll { overflow: visible; }
  .attempts-table, .attempts-table tbody, .attempts-table tr, .attempts-table td { display: block; width: 100%; }
  .attempts-table { min-width: 0; }
  .attempts-table thead { display: none; }
  .attempts-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--site-border); border-radius: 12px; background: #fff; }
  .attempts-table tbody td { display: grid; grid-template-columns: minmax(64px, .75fr) minmax(0, 1.25fr); gap: 8px; align-items: start; padding: 8px 0; border: 0 !important; font-size: .82rem; overflow-wrap: anywhere; }
  .attempts-table tbody td::before { color: var(--site-muted); font-size: .72rem; font-weight: 700; }
  .attempts-table tbody td:nth-child(1)::before { content: '#'; }
  .attempts-table tbody td:nth-child(2)::before { content: 'Amazina'; }
  .attempts-table tbody td:nth-child(3)::before { content: 'Kode'; }
  .attempts-table tbody td:nth-child(4)::before { content: 'Itariki'; }
  .attempts-table tbody td:nth-child(5)::before { content: 'Imimerere'; }
  .attempts-table tbody td:nth-child(6)::before { content: 'Amanota'; }
  .attempts-table tbody td:nth-child(7)::before { content: 'Ibindi'; }
  .pay-modal-box, .payment-modal, .pay-modal, .otp-modal, .guide-modal { width: 100%; max-height: calc(100dvh - 24px); }
  body:has(.workspace) .workspace { padding-top: max(16px, env(safe-area-inset-top)); }
  body:has(.workspace) .hero-copy { width: 100%; }
  body:has(.workspace) .hero-copy-panel { padding: 18px 16px; border-radius: 16px; }
  body:has(.workspace) .hero-support-row { gap: 7px; }
  body:has(.workspace) .hero-support-pill { white-space: normal; }
}

/* About and Terms share the live Home page's blue public theme. */
body.public-legal-page {
  background: linear-gradient(180deg, #EAF1F7 0%, #F3F7FA 52%, #E8EFF5 100%);
  color: var(--ik-text, #1F2937);
}
body.public-legal-page::before, body.public-legal-page::after { display: none; }
body.public-legal-page .hero {
  width: min(100% - 40px, 1180px);
  margin: 24px auto 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #D7E1EA;
  border-radius: 18px;
  background: linear-gradient(135deg, #E7EFF6 0%, #F3F7FA 55%, #E1EAF3 100%);
  box-shadow: 0 8px 24px rgba(31,60,90,.08);
  text-align: left;
}
body.public-legal-page .hero::before {
  opacity: .05;
  background-image:
    url('../images/imigongo-pattern.svg'),
    linear-gradient(135deg, transparent 49.8%, rgba(13,71,161,.12) 49.95%, rgba(13,71,161,.12) 50.05%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.85%, rgba(21,101,192,.10) 49.96%, rgba(21,101,192,.10) 50.04%, transparent 50.15%),
    radial-gradient(circle, rgba(100,130,160,.18) 1px, transparent 1.7px);
  background-size: 180px 180px, 144px 144px, 144px 144px, 96px 96px;
  background-position: left 3% top 8%, left 0 top 0, left 72px top 72px, left 24px top 24px;
  background-repeat: repeat;
  mask-image: linear-gradient(90deg, #000 0%, #000 26%, transparent 72%);
}
body.public-legal-page .hero h1,
body.public-legal-page .hero h1 span { color: #1F2937; text-shadow: none; }
body.public-legal-page .hero h1 span { color: #0D47A1; }
body.public-legal-page .hero p,
body.public-legal-page .hero-meta { color: #475569; }
body.public-legal-page .hero-pill { border-color: #D7E1EA; background: #E3EFFA; color: #0D47A1; }
body.public-legal-page .hero-copy-card {
  width: min(100%, 760px);
  margin-inline: 0;
  border-color: #D7E1EA;
  background: rgba(248,250,252,.93);
  box-shadow: 0 8px 24px rgba(31,60,90,.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.public-legal-page .hero-disclaimer {
  padding: 12px 14px;
  border: 1px solid #D7E1EA;
  border-radius: 10px;
  background: #E3EFFA;
  color: #334155;
}
body.public-legal-page .hero-disclaimer i { color: #0D47A1; }
body.public-legal-page main {
  width: min(100% - 40px, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0 48px;
  gap: 16px;
}
body.public-legal-page .section-card,
body.public-legal-page .contact-card {
  border: 1px solid #D7E1EA;
  border-radius: 16px;
  background: #F8FAFC;
  color: #1F2937;
  box-shadow: 0 8px 24px rgba(31,60,90,.08);
}
body.public-legal-page .section-card { padding: clamp(20px, 2.5vw, 30px); }
body.public-legal-page .section-card:hover {
  transform: translateY(-1px);
  border-color: #BFCFDF;
  box-shadow: 0 10px 28px rgba(31,60,90,.1);
}
body.public-legal-page .section-label,
body.public-legal-page .toc-title { color: #0D47A1; }
body.public-legal-page .section-label { background: #E3EFFA; }
body.public-legal-page .section-card h2 { color: #1F2937; }
body.public-legal-page .section-card h2 i { color: #0D47A1; }
body.public-legal-page .section-card p { color: #475569; max-width: 74ch; }
body.public-legal-page .services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.public-legal-page .service-row {
  min-width: 0;
  align-items: flex-start;
  border-color: #D7E1EA;
  border-radius: 12px;
  background: #F2F6FA;
}
body.public-legal-page .service-row > i,
body.public-legal-page .feature-icon { color: #0D47A1; }
body.public-legal-page .service-row > i { margin-top: 2px; }
body.public-legal-page .feature-item {
  min-width: 0;
  border-color: #D7E1EA;
  border-radius: 14px;
  background: #F8FAFC;
  box-shadow: 0 8px 24px rgba(31,60,90,.08);
}
body.public-legal-page .feature-item:hover {
  border-color: #BFCFDF;
  box-shadow: 0 10px 28px rgba(31,60,90,.1);
}
body.public-legal-page .feature-icon { background: #E3EFFA; box-shadow: none; }
body.public-legal-page .feature-item h4 { color: #1F2937; }
body.public-legal-page .feature-item p { color: #64748B; }
body.public-legal-page .contact-strip {
  border-radius: 16px;
  background: linear-gradient(135deg, #0D47A1 0%, #0B3D91 100%);
  box-shadow: 0 8px 24px rgba(31,60,90,.12);
}
body.public-legal-page .contact-item { min-height: 44px; align-items: center; }
body.public-legal-page .contact-card h2 { color: #1F2937; }
body.public-legal-page .contact-card p { color: #475569; }
body.public-legal-page .contact-row {
  min-height: 44px;
  border-color: #D7E1EA;
  background: #E3EFFA;
  color: #1F2937;
}
body.public-legal-page .contact-row:hover { background: #EEF5FB; }
body.public-legal-page .contact-row i { color: #0D47A1; }
body.public-legal-page .btn-primary,
body.public-legal-page .btn-secondary { min-height: 44px; border-radius: 10px; }
body.public-legal-page .btn-primary { background: #0D47A1; box-shadow: none; }
body.public-legal-page .btn-primary:hover { background: #0B3D91; }
body.public-legal-page .btn-secondary { color: #0D47A1; border-color: #D7E1EA; }
body.public-legal-page .btn-secondary:hover { background: #E3EFFA; border-color: #BFCFDF; }

body.public-legal-page:has(.toc-disclosure) main {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 16px 28px;
}
body.public-legal-page:has(.toc-disclosure) main > :not(.toc) { grid-column: 2; }
body.public-legal-page:has(.toc-disclosure) .toc {
  position: sticky;
  top: 88px;
  border-color: #D7E1EA;
  border-radius: 14px;
  background: #F8FAFC;
  box-shadow: 0 8px 24px rgba(31,60,90,.08);
}
body.public-legal-page:has(.toc-disclosure) .toc-title { min-height: 44px; color: #0D47A1; }
body.public-legal-page:has(.toc-disclosure) .toc-item {
  min-height: 44px;
  align-items: flex-start;
  padding: 10px;
  color: #475569;
}
body.public-legal-page:has(.toc-disclosure) .toc-item i { color: #0D47A1; }
body.public-legal-page:has(.toc-disclosure) .toc-item:hover,
body.public-legal-page:has(.toc-disclosure) .toc-item:focus-visible {
  border-color: #BFCFDF;
  background: #E3EFFA;
  color: #0D47A1;
}
body.public-legal-page:has(.toc-disclosure) .section-card[id] {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid #D7E1EA;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  scroll-margin-top: 96px;
  backdrop-filter: none;
}
body.public-legal-page:has(.toc-disclosure) .section-card[id]:hover {
  transform: none;
  border-color: #D7E1EA;
  box-shadow: none;
}
body.public-legal-page:has(.toc-disclosure) .section-card[id] h2 { color: #0D47A1; }
body.public-legal-page:has(.toc-disclosure) .section-card[id] > p { max-width: 72ch; }
body.public-legal-page:has(.toc-disclosure) .section-card:not([id]) {
  border-color: #D7E1EA;
  background: #F8FAFC;
}
body.public-legal-page:has(.toc-disclosure) .policy-list-item {
  display: block;
  padding: 10px 14px;
  border: 0;
  border-left: 3px solid #D7E1EA;
  border-radius: 0 8px 8px 0;
  background: #F2F6FA;
  box-shadow: none;
  color: #475569;
}
body.public-legal-page:has(.toc-disclosure) .policy-list-item i { display: none; }
body.public-legal-page:has(.toc-disclosure) .info-box.info,
body.public-legal-page:has(.toc-disclosure) .info-box.warning {
  border-color: #D7E1EA;
  background: #E3EFFA;
  color: #334155;
}
body.public-legal-page:has(.toc-disclosure) .info-box.info i,
body.public-legal-page:has(.toc-disclosure) .info-box.warning i { color: #0D47A1; }
body.public-legal-page:has(.toc-disclosure) .contact-card {
  border-color: #BFCFDF;
  background: #E3EFFA;
  box-shadow: 0 8px 24px rgba(31,60,90,.08);
}
body.public-legal-page:has(.toc-disclosure) .contact-row span { overflow-wrap: anywhere; }
body.public-legal-page:has(.toc-disclosure) .navbar-links a,
body.public-legal-page:has(.toc-disclosure) .navbar-brand { color: #FFFFFF; }
body.public-legal-page:has(.toc-disclosure) .navbar-links a.active { background: #1976D2; }
body.public-legal-page .mobile-menu-toggle {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #FFFFFF;
}

@media (max-width: 900px) {
  body.public-legal-page .hero { margin-top: 18px; }
  body.public-legal-page:has(.toc-disclosure) .toc { top: 84px; }
  body.public-legal-page:has(.toc-disclosure) .section-card[id] { scroll-margin-top: 104px; }
}
@media (max-width: 600px) {
  body.public-legal-page .hero { width: min(100% - 24px, 1180px); margin-top: 14px; padding: 22px 18px; border-radius: 16px; }
  body.public-legal-page main { width: min(100% - 24px, 1180px); padding: 20px 0 36px; }
  body.public-legal-page .hero-copy-card { padding: 15px; }
  body.public-legal-page .services-list,
  body.public-legal-page .feature-grid { grid-template-columns: minmax(0, 1fr); }
  body.public-legal-page:has(.toc-disclosure) main { display: block; }
  body.public-legal-page:has(.toc-disclosure) .toc { position: static; }
  body.public-legal-page:has(.toc-disclosure) .toc-item { align-items: center; }
  body.public-legal-page:has(.toc-disclosure) .section-card[id] { padding: 20px 0; scroll-margin-top: 84px; }
  body.public-legal-page:has(.toc-disclosure) .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
