/* =====================================================================
   The Animal Welfare Challenge — design system
   Brand: Animal Welfare Alliance of Uganda (AWAU)
     navy  #232A56  — ink, primary actions, the "night sky" panels
     leaf  #64AB45  — the animals in the AWAU emblem; #3D7A26 for text
     ember #EA3F21  — the crescent around the emblem; #D9381C on buttons
   Signature: the ember crescent → used as score / timer / progress rings.
   Built on Bootstrap 5.3 via CSS custom properties.
   ===================================================================== */
:root {
    /* brand */
    --navy: #232A56;
    --navy-700: #1B2147;
    --navy-900: #141936;
    --navy-100: #E4E7F3;
    --navy-50: #F1F3F9;
    --leaf: #64AB45;
    --leaf-700: #3D7A26;
    --leaf-100: #E3F1DB;
    --leaf-50: #F2F8EE;
    --ember: #D9381C;
    --ember-600: #BF2F15;
    --ember-brand: #EA3F21;
    --ember-300: #F4845F;
    --ember-100: #FDE6DE;
    --sun: #F6B23C;
    --sun-100: #FEF1D8;
    --ink: #232A56;
    --text: #2B3150;
    --muted: #5E6482;
    --line: #DDE1EE;
    --surface: #FFFFFF;
    --bg: #F1F3F9;

    --r-xl: 28px;   /* hero panels, play card */
    --r-lg: 20px;   /* cards */
    --r-md: 14px;   /* tiles, buttons, options */
    --r-sm: 10px;   /* inputs, chips */
    --shadow-1: 0 1px 2px rgba(35, 42, 86, .06);
    --shadow-2: 0 2px 4px rgba(35, 42, 86, .04), 0 12px 32px -12px rgba(35, 42, 86, .18);
    --shadow-3: 0 24px 60px -20px rgba(20, 25, 54, .45);
    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease-out: cubic-bezier(.22, 1, .36, 1);

    /* legacy aliases used in templates */
    --awc-forest: var(--navy);
    --awc-forest-900: var(--navy-900);
    --awc-green: var(--leaf);
    --awc-gold: var(--ember-300);
    --awc-line: var(--line);
    --awc-radius: var(--r-lg);

    --bs-primary: var(--navy);
    --bs-primary-rgb: 35, 42, 86;
    --bs-success: var(--leaf-700);
    --bs-success-rgb: 61, 122, 38;
    --bs-warning: var(--sun);
    --bs-warning-rgb: 246, 178, 60;
    --bs-danger: var(--ember);
    --bs-danger-rgb: 217, 56, 28;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-body-font-family: var(--font);
    --bs-border-color: var(--line);
    --bs-link-color: var(--navy);
    --bs-link-color-rgb: 35, 42, 86;
    --bs-link-hover-color: var(--leaf-700);
    --bs-link-hover-color-rgb: 61, 122, 38;
    --bs-secondary-color: var(--muted);
    --bs-border-radius: var(--r-sm);
    --bs-border-radius-lg: var(--r-lg);
    --bs-emphasis-color: var(--ink);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "lnum"; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-font { font-family: var(--font); font-weight: 800; letter-spacing: -.015em; color: var(--ink); line-height: 1.2; text-wrap: balance; }
h1, .h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { font-weight: 900; letter-spacing: -.025em; }
a { text-underline-offset: 3px; }
a, button, label, [role="button"] { touch-action: manipulation; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-forest { color: var(--navy) !important; }
.text-gold { color: var(--ember) !important; }
.text-success { color: var(--leaf-700) !important; }
.bg-forest { background: var(--navy) !important; }
.bg-green-50 { background: var(--leaf-50) !important; }
.bg-gold-100 { background: var(--sun-100) !important; }
.small-caps { font-size: .82rem; font-weight: 700; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 800; color: var(--leaf-700); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--sun); color: var(--ink); padding: .5rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.score, .stat-value, .kpi-value, .tnum { font-variant-numeric: tabular-nums; }
::selection { background: var(--leaf-100); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { font-weight: 800; border-radius: var(--r-md); padding: .62rem 1.2rem; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: .36rem .8rem; border-radius: var(--r-sm); font-weight: 700; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; min-height: 3.25rem; }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-700); --bs-btn-hover-border-color: var(--navy-700); --bs-btn-active-bg: var(--navy-900); --bs-btn-active-border-color: var(--navy-900); --bs-btn-disabled-bg: var(--navy); --bs-btn-disabled-border-color: var(--navy); }
.btn-gold { --bs-btn-color: #fff; --bs-btn-bg: var(--ember); --bs-btn-border-color: var(--ember); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ember-600); --bs-btn-hover-border-color: var(--ember-600); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ember-600); --bs-btn-active-border-color: var(--ember-600); --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--ember); --bs-btn-disabled-border-color: var(--ember); }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: #C5CAE0; --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: var(--navy-50); --bs-btn-hover-border-color: var(--navy); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); border-width: 2px; }
.btn-light { --bs-btn-bg: var(--navy-50); --bs-btn-border-color: var(--navy-50); --bs-btn-hover-bg: var(--navy-100); --bs-btn-hover-border-color: var(--navy-100); --bs-btn-color: var(--ink); }
.btn-light-soft { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.28); }
.btn-light-soft:hover, .btn-light-soft:focus { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-white { background: #fff; color: var(--navy); border: 0; }
.btn-white:hover, .btn-white:focus { background: var(--navy-50); color: var(--navy); }
.btn-success { --bs-btn-bg: var(--leaf-700); --bs-btn-border-color: var(--leaf-700); --bs-btn-hover-bg: #336820; --bs-btn-hover-border-color: #336820; }
.btn-danger { --bs-btn-bg: var(--ember); --bs-btn-border-color: var(--ember); --bs-btn-hover-bg: var(--ember-600); --bs-btn-hover-border-color: var(--ember-600); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--r-sm); padding: .7rem .95rem; border: 1.5px solid #CFD4E4; background-color: #fff; min-height: 2.9rem; }
.form-control-sm, .form-select-sm { min-height: 2.2rem; padding: .35rem .7rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .22rem rgba(35, 42, 86, .14); }
.form-label { font-weight: 700; font-size: .93rem; margin-bottom: .35rem; color: var(--ink); }
.form-text { color: var(--muted); }
.form-check-input { border: 1.5px solid #B9BFD6; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(35, 42, 86, .14); }
.input-group-text { background: var(--navy-50); border: 1.5px solid #CFD4E4; }
.invalid-feedback { font-weight: 600; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; font-weight: 800; color: var(--ink); }
.card-header:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-footer { background: transparent; border-top: 1px solid var(--line); }
.card-body { padding: 1.25rem; }
.card-flat { box-shadow: none; }
.card-hover { transition: border-color .15s, box-shadow .2s var(--ease-out); }
.card-hover:hover { border-color: #C5CAE0; box-shadow: var(--shadow-2); }

/* Soft badges / chips */
.badge { font-weight: 800; border-radius: 999px; padding: .4em .8em; font-size: .74rem; letter-spacing: .01em; }
.badge-soft-primary { background: var(--navy-100); color: var(--navy); }
.badge-soft-success { background: var(--leaf-100); color: #2E5F1C; }
.badge-soft-warning { background: var(--sun-100); color: #7A4E00; }
.badge-soft-danger { background: var(--ember-100); color: #9C2510; }
.badge-soft-info { background: #DFF0F7; color: #1A5E77; }
.badge-soft-secondary { background: #ECEEF4; color: #4D5372; }
.badge-soft-dark { background: var(--navy); color: #fff; }
.badge-soft-light { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: var(--r-sm); background: var(--navy-50); color: var(--ink); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.chip i { color: var(--ember); }
.chip-ember { background: var(--ember-100); color: #8E2410; }
.chip-leaf { background: var(--leaf-100); color: #2E5F1C; }
.chip-leaf i { color: var(--leaf-700); }
.chip-dark { background: rgba(255,255,255,.12); color: #fff; }
.chip-dark i { color: var(--ember-300); }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.brand-text { line-height: 1.1; }
.brand-text strong { font-weight: 900; font-size: 1.05rem; display: block; letter-spacing: -.01em; }
.brand-text small { font-size: .78rem; color: var(--muted); font-weight: 700; }
.brand-text strong, .brand-text small { white-space: nowrap; }

/* ---------- Public navbar ---------- */
.site-nav { background: rgba(255,255,255,.94); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .btn { white-space: nowrap; }
.site-nav .nav-link { white-space: nowrap; font-weight: 700; color: var(--text); padding: .5rem .85rem !important; border-radius: var(--r-sm); }
.site-nav .nav-link:hover { color: var(--navy); }
.site-nav .nav-link.active { color: var(--navy); background: var(--navy-100); font-weight: 800; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-nav .brand-text small { display: none; }
    .site-nav .nav-link { padding: .5rem .6rem !important; font-size: .95rem; }
}
.navbar-toggler { border-radius: var(--r-sm); padding: .5rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--sun); }
.notice-bar { background: var(--navy-900); color: rgba(255,255,255,.85); font-size: .86rem; }
.notice-bar i { color: var(--sun); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero::after { content: ""; position: absolute; inset: auto -10% -1px -10%; height: 56px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 4.1rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 900; }
.hero .tagline { font-weight: 900; font-size: clamp(1.15rem, 3vw, 1.45rem); color: #fff; display: flex; flex-wrap: wrap; gap: .15rem .7rem; margin: 0; }
.hero .tagline span:nth-child(1) { color: #A5D88C; }
.hero .tagline span:nth-child(2) { color: var(--sun); }
.hero .tagline span:nth-child(3) { color: var(--ember-300); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 34rem; font-size: 1.12rem; }
.hero-pattern { position: absolute; inset: 0; opacity: .05; background-image: url("../img/paw-pattern.svg"); background-size: 120px; pointer-events: none; }
.hero-link { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 5px; }
.hero-link:hover { color: #fff; text-decoration-color: #fff; }
.hero-note { color: rgba(255,255,255,.8); display: flex; align-items: baseline; gap: .55rem; }
.hero-note .dot { flex-shrink: 0; transform: translateY(-.1rem); }
.hero-note strong { color: #fff; }
.hero-note .dot { width: .55rem; height: .55rem; border-radius: 50%; background: #A5D88C; box-shadow: 0 0 0 4px rgba(165,216,140,.2); margin-right: .2rem; }
.hero-status { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 1rem 1.15rem; }
.hero-status .small-caps { color: var(--ember-300) !important; }

/* The emblem stage: AWAU emblem on a white disc, wrapped by an ember crescent that draws in once. */
.stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.stage-disc { position: absolute; inset: 11%; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.stage-disc img { width: 78%; height: auto; }
.stage-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-200deg); }
.stage-ring circle { fill: none; stroke-linecap: round; }
/* r = 47 → circumference ≈ 295.3 user units (CSS dash values ignore pathLength in Chrome) */
.stage-ring .ring-track { stroke: rgba(255,255,255,.14); stroke-width: 1.2; stroke-dasharray: 1.5 5; }
.stage-ring .ring-arc { stroke: var(--ember-brand); stroke-width: 2.6; stroke-dasharray: 183 296; animation: draw 1.6s var(--ease-out) .2s both; }
@keyframes draw { from { stroke-dasharray: 0 296; } }
.stage-chip { position: absolute; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: .55rem .8rem; font-weight: 800; font-size: .9rem; box-shadow: var(--shadow-3); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.stage-chip i { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
.stage-chip.c1 { top: 12%; left: -4%; }
.stage-chip.c1 i { background: var(--leaf-100); color: var(--leaf-700); }
.stage-chip.c2 { bottom: 10%; right: -6%; }
.stage-chip.c2 i { background: var(--ember-100); color: var(--ember); }
.stage-sm { width: min(100%, 300px); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-size: clamp(1.75rem, 4.4vw, 2.5rem); margin-bottom: .6rem; font-weight: 900; letter-spacing: -.025em; }
.section-lead { color: var(--muted); max-width: 40rem; font-size: 1.06rem; }
.page-hero { background: var(--navy); color: #fff; padding: 2.75rem 0 3.25rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -150px; border-radius: 50%; border: 14px solid var(--ember-brand); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(20deg); opacity: .9; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); color: #fff; letter-spacing: -.025em; }
.page-hero .eyebrow { color: #A5D88C; }
.page-hero .section-lead { color: rgba(255,255,255,.8); }

/* "How it works" steps: a real sequence, so numbers are earned. */
.step { position: relative; padding-left: 3.75rem; }
.step-num { position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; font-size: 1.15rem; }
.feature-icon { width: 3rem; height: 3rem; border-radius: var(--r-md); display: grid; place-items: center; background: var(--leaf-100); color: var(--leaf-700); font-size: 1.4rem; }
.feature-icon.gold { background: var(--ember-100); color: var(--ember); }
.steps-track { display: grid; gap: 1rem; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.25rem 1.25rem; }
.step-card .step-n { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--navy); margin-bottom: .9rem; }
.step-card:nth-child(4) .step-n { background: var(--ember); }
.step-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
@media (min-width: 992px) {
    .steps-track { grid-template-columns: repeat(4, 1fr); }
    .steps-track.steps-3 { grid-template-columns: repeat(3, 1fr); }
    .step-card:not(:last-child)::after { content: ""; position: absolute; top: 2.55rem; left: calc(1.25rem + 2.4rem + .5rem); right: -1rem; border-top: 2px dashed #C5CAE0; z-index: 0; }
    .step-card .step-n { position: relative; z-index: 1; }
}

.stat { padding: 1.1rem 1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.stat-value { font-size: 1.9rem; font-weight: 900; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .86rem; font-weight: 700; }

/* Countdown */
.countdown { display: flex; gap: .4rem; }
.countdown div { background: rgba(255,255,255,.1); border-radius: var(--r-sm); padding: .45rem .55rem; min-width: 3.4rem; text-align: center; }
.countdown strong { display: block; font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.countdown span { font-size: .72rem; font-weight: 700; opacity: .75; }

/* ---------- Rings (the ember crescent) ---------- */
.ring { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 5rem; height: 5rem; }
.play-card .ring { width: 7.5rem; height: 7.5rem; }
@media (min-width: 576px) { .play-card:has(.ring)::before { display: none; } }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .ring-bg { stroke: var(--navy-100); }
.ring .ring-fg { stroke: var(--ember-brand); stroke-linecap: round; transition: stroke-dasharray .6s var(--ease-out); }
.ring.leaf .ring-fg { stroke: var(--leaf); }
.ring.on-dark .ring-bg { stroke: rgba(255,255,255,.14); }
.ring-label { position: relative; text-align: center; line-height: 1.05; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-label small { display: block; font-size: .62em; font-weight: 700; color: var(--muted); margin-top: .1rem; }
.ring.on-dark .ring-label { color: #fff; }
.ring.on-dark .ring-label small { color: rgba(255,255,255,.7); }

/* ---------- Leaderboard ---------- */
.lb-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lb-table th { font-size: .8rem; color: var(--muted); font-weight: 800; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.lb-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table tr.is-me td { background: var(--sun-100); }
.lb-table tr.is-me td:first-child { box-shadow: inset 4px 0 0 var(--sun); }
.rank-pill { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; background: var(--navy-50); color: var(--ink); font-size: .92rem; font-variant-numeric: tabular-nums; }
.rank-1 { background: var(--sun); color: #4A2E00; }
.rank-2 { background: #D5DAE8; color: var(--ink); }
.rank-3 { background: #F2B38F; color: #5A2508; }
.avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--leaf-100); color: #2E5F1C; font-weight: 900; font-size: .85rem; flex-shrink: 0; }
.avatar-lg { width: 3.4rem; height: 3.4rem; font-size: 1.15rem; }
.avatar-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ember-brand); }
.score { font-weight: 900; color: var(--ink); }

/* Podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; align-items: end; }
.podium-item { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem .5rem; }
.podium-item.first { padding-top: 1.75rem; border-color: #F4D08A; background: linear-gradient(180deg, var(--sun-100), #fff); }

/* Tabs */
.nav-pills-soft { gap: .35rem; }
.nav-pills-soft .nav-link { border-radius: var(--r-sm); color: var(--text); font-weight: 800; padding: .5rem 1rem; background: #fff; border: 1px solid var(--line); }
.nav-pills-soft .nav-link:hover { border-color: #C5CAE0; }
.nav-pills-soft .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { font-weight: 700; color: var(--muted); border: 0; border-bottom: 3px solid transparent; }
.nav-tabs .nav-link.active { color: var(--ink); border-bottom-color: var(--navy); background: transparent; }

/* Sponsor logos */
.sponsor-logo { height: 76px; display: flex; align-items: center; justify-content: center; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.sponsor-logo img { max-height: 48px; max-width: 100%; object-fit: contain; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .empty-icon { width: 4rem; height: 4rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy-50); color: var(--navy); font-size: 1.7rem; margin-bottom: .85rem; box-shadow: inset 0 0 0 2px var(--navy-100); }
.empty-state h3, .empty-state h4 { font-size: 1.08rem; font-weight: 800; color: var(--ink); }

/* Alerts */
.alert { border-radius: var(--r-md); border-width: 1px; }
.alert-success { background: var(--leaf-50); border-color: #CBE5BD; color: #24501A; }
.alert-danger { background: #FFF1EC; border-color: #F8C9B9; color: #8E2410; }
.alert-warning { background: var(--sun-100); border-color: #F6DCA4; color: #6B4400; }
.alert-info { background: var(--navy-50); border-color: var(--navy-100); color: var(--ink); }

/* Prose (CMS content) */
.prose { max-width: 44rem; font-size: 1.05rem; line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

/* Accordion */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--r-md); --bs-accordion-inner-border-radius: calc(var(--r-md) - 1px); }
.accordion-item { border-color: var(--line); }
.accordion-button { font-weight: 800; color: var(--ink); }
.accordion-button:not(.collapsed) { background: var(--navy-50); color: var(--ink); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .22rem rgba(35, 42, 86, .14); }

/* Dropdowns, modals, pagination, list groups */
.dropdown-menu { border-radius: var(--r-md); border: 1px solid var(--line) !important; box-shadow: var(--shadow-2) !important; padding: .4rem; }
.dropdown-item { border-radius: var(--r-sm); font-weight: 600; padding: .5rem .75rem; }
.dropdown-item:active { background: var(--navy); }
.modal-content { border-radius: var(--r-lg); border: 0; }
.pagination { --bs-pagination-border-radius: var(--r-sm); --bs-pagination-color: var(--navy); --bs-pagination-active-bg: var(--navy); --bs-pagination-active-border-color: var(--navy); --bs-pagination-border-color: var(--line); gap: .25rem; }
.pagination .page-link { border-radius: var(--r-sm) !important; font-weight: 700; }
.list-group { --bs-list-group-border-color: var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 3.5rem 0 1.5rem; position: relative; }
.site-footer h6 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .86rem; }
.footer-org { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border-radius: var(--r-md); padding: .5rem .8rem; }
.footer-org img { height: 34px; width: auto; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.auth-aside { display: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 30rem; }
.auth-card > h1, .auth-card h1.h3 { font-weight: 900; }
@media (min-width: 992px) {
    .auth-wrap { grid-template-columns: 5fr 7fr; }
    .auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem 3rem; color: #fff; background: var(--navy); position: relative; overflow: hidden; }
    .auth-aside h2 { color: #fff; font-weight: 900; letter-spacing: -.025em; }
    .auth-aside .brand { color: #fff; }
    .auth-aside .brand-text small { color: rgba(255,255,255,.65); }
    .auth-main { background: var(--surface); }
}

/* ---------- Participant app ---------- */
.app-topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1025; }
.app-topbar .btn-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; background: var(--navy-50); color: var(--ink); border: 0; }
.app-topbar .btn-icon:hover { background: var(--navy-100); }
.app-subnav { background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.app-subnav::-webkit-scrollbar { display: none; }
.app-subnav .container { display: flex; gap: .25rem; padding-top: .45rem; padding-bottom: .45rem; }
.app-subnav a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; color: var(--muted); font-weight: 700; text-decoration: none; border-radius: var(--r-sm); font-size: .93rem; }
.app-subnav a:hover { color: var(--ink); }
.app-subnav a.active { color: var(--navy); background: var(--navy-100); font-weight: 800; }

.dash-w { max-width: 46rem; margin-inline: auto; }
/* Greeting row (dashboard) */
.greet { display: flex; align-items: center; gap: .85rem; }
.greet h1 { font-size: 1.35rem; margin: 0; }
.greet p { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* Play card: the one dark, loud surface on the dashboard */
.welcome-card, .play-card { background: var(--navy); color: #fff; border: 0; border-radius: var(--r-xl); position: relative; overflow: hidden; box-shadow: var(--shadow-3); }
.welcome-card h1, .welcome-card h2, .play-card h1, .play-card h2 { color: #fff; }
.play-card::before, .welcome-card::before { content: ""; position: absolute; width: 190px; height: 190px; right: -64px; top: -64px; border-radius: 50%; border: 10px solid var(--ember-brand); border-top-color: transparent; border-right-color: transparent; transform: rotate(-12deg); pointer-events: none; }
.play-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -30px; top: -30px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.play-card .card-body, .welcome-card .card-body { position: relative; z-index: 1; }
.play-card .muted { color: rgba(255,255,255,.75); }

/* Round tiles: tinted like category tiles in a quiz app */
.round-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.round-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: .5rem; min-height: 9.5rem; padding: 1rem; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s, transform .15s var(--ease-out); }
.round-card:hover { color: var(--ink); border-color: rgba(35,42,86,.25); }
.round-card:active { transform: scale(.98); }
.round-card.t1 { background: var(--leaf-100); }
.round-card.t2 { background: var(--sun-100); }
.round-card.t3 { background: var(--ember-100); }
.round-card.t4 { background: var(--navy-100); }
.round-card .wk { font-weight: 900; font-size: .85rem; color: var(--muted); }
.round-card .ttl { font-weight: 800; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.round-card .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .5rem; }
.round-card.is-open { border-color: var(--navy); }
.round-card .round-icon { position: absolute; right: .85rem; top: .85rem; font-size: 1.5rem; opacity: .35; }

.round-tile { border: 1px solid var(--line); border-radius: var(--r-md); padding: .85rem 1rem; display: flex; align-items: center; gap: .9rem; background: #fff; }
.round-tile .round-week { width: 2.7rem; height: 2.7rem; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 900; background: var(--navy-50); color: var(--navy); flex-shrink: 0; }
.round-tile.is-open { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.round-tile.is-open .round-week { background: var(--ember); color: #fff; }
.round-tile.is-done .round-week { background: var(--leaf-100); color: #2E5F1C; }

/* List rows with an icon box (recent / history) */
.list-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--text); }
a.list-row:hover { border-color: #C5CAE0; color: var(--text); }
.list-row .ico { width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); background: var(--navy-50); display: grid; place-items: center; color: var(--navy); font-size: 1.2rem; flex-shrink: 0; }

.progress { background: var(--navy-100); border-radius: 999px; height: .55rem; }
.progress-bar { background: var(--navy); border-radius: 999px; }
.progress-gold .progress-bar { background: var(--ember-brand); }
.on-dark .progress, .progress.on-dark { background: rgba(255,255,255,.16); }

/* Bottom tab bar (phones) */
.mobile-tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; z-index: 1030; padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); }
.mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .4rem 0; font-size: .72rem; font-weight: 800; color: var(--muted); text-decoration: none; border-radius: var(--r-sm); min-height: 3.1rem; }
.mobile-tabbar a i { font-size: 1.3rem; line-height: 1; padding: .2rem .9rem; border-radius: 999px; transition: background-color .15s; }
.mobile-tabbar a.active { color: var(--ink); }
.mobile-tabbar a.active i { background: var(--navy-100); }
.has-tabbar { padding-bottom: 5rem; }
@media (min-width: 768px) { .mobile-tabbar { display: none; } .has-tabbar { padding-bottom: 0; } }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 44rem; margin: 0 auto; }
.quiz-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.quiz-head .back { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; flex-shrink: 0; }
.quiz-head .back:hover { background: var(--navy-50); }
.quiz-head h1 { font-size: 1.1rem; margin: 0; }
.quiz-head .sub { font-size: .82rem; color: var(--muted); font-weight: 700; }
.quiz-meter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.q-count { font-weight: 700; color: var(--muted); font-size: .9rem; line-height: 1.1; }
.q-count strong { display: block; font-size: 2rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.q-count strong span { color: var(--ember); }
.timer-ring { width: 4.4rem; height: 4.4rem; font-size: .95rem; }
.timer-ring.is-low .ring-fg { stroke: var(--ember); }
.timer-ring.is-low .ring-label { color: var(--ember); }
.quiz-progress { height: .4rem; margin-bottom: 1.25rem; }
.quiz-q { border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0 0 1rem; }
.quiz-q > .card-body { padding: 0; }
.q-card { background: var(--leaf-100); border-radius: var(--r-lg); padding: 1.35rem 1.25rem; margin-bottom: 1.1rem; position: relative; overflow: hidden; }
.q-card::after { content: "?"; position: absolute; right: .9rem; bottom: -1.2rem; font-size: 6rem; font-weight: 900; color: rgba(61,122,38,.12); line-height: 1; pointer-events: none; }
.quiz-question { font-size: clamp(1.15rem, 3.6vw, 1.45rem); line-height: 1.35; font-weight: 800; color: var(--ink); margin: 0; position: relative; z-index: 1; }
.option { display: flex; gap: .85rem; align-items: center; width: 100%; text-align: left; padding: .9rem 1rem; min-height: 3.6rem; border: 2px solid transparent; border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .12s, background-color .12s; margin-bottom: .6rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-1); }
.option:hover { border-color: var(--navy-100); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .opt-key { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; flex-shrink: 0; color: var(--navy); background: var(--navy-50); text-transform: lowercase; transition: background-color .12s, color .12s; }
.option.is-selected, .option:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.option.is-selected .opt-key, .option:has(input:checked) .opt-key { background: var(--navy); color: #fff; }
.option:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.option.is-correct { border-color: var(--leaf); background: var(--leaf-50); }
.option.is-correct .opt-key { background: var(--leaf-700); color: #fff; }
.option.is-wrong { border-color: var(--ember); background: #FFF3EF; }
.option.is-wrong .opt-key { background: var(--ember); color: #fff; }
.quiz-actions { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.quiz-actions .btn { min-height: 3.4rem; }
.qnav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1rem; }
.qnav button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: .85rem; color: var(--muted); }
.qnav button.answered { background: var(--leaf-100); border-color: var(--leaf-100); color: #2E5F1C; }
.qnav button.current { border-color: var(--navy); color: var(--ink); }
.save-indicator { font-size: .82rem; color: var(--muted); font-weight: 600; }
.save-indicator.offline { color: var(--ember); }
.js .quiz-q .q-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Result */
.result-card { text-align: center; background: #fff; border-radius: var(--r-xl); padding: 2rem 1.25rem 1.75rem; border: 1px solid var(--line); position: relative; overflow: hidden; }
.result-ring { width: 11rem; height: 11rem; font-size: 2.5rem; margin: .25rem auto 1rem; }
.result-ring circle { stroke-width: 3.6; }
.result-ring .ring-label small { font-size: .38em; }
.result-card h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 900; margin-bottom: .35rem; }
.result-card .burst { position: absolute; inset: 0; pointer-events: none; }
.result-card .burst i { position: absolute; font-size: 1.1rem; animation: pop .7s var(--ease-out) both; }
.result-card .burst i:nth-child(1) { left: 12%; top: 14%; color: var(--ember-brand); animation-delay: .5s; }
.result-card .burst i:nth-child(2) { right: 14%; top: 10%; color: var(--leaf); animation-delay: .6s; font-size: 1.4rem; }
.result-card .burst i:nth-child(3) { left: 20%; top: 46%; color: var(--sun); animation-delay: .7s; }
.result-card .burst i:nth-child(4) { right: 18%; top: 40%; color: var(--ember-brand); animation-delay: .8s; font-size: .9rem; }
.result-card .burst i:nth-child(5) { left: 8%; top: 30%; color: var(--leaf); animation-delay: .9s; font-size: .8rem; }
@keyframes pop { from { opacity: 0; transform: scale(.2) rotate(-30deg); } }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 264px; flex-shrink: 0; background: var(--navy-900); color: rgba(255,255,255,.8); position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; overflow-x: hidden; z-index: 1040; transform: translateX(-100%); transition: transform .25s var(--ease-out); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.admin-sidebar.show { transform: none; }
.admin-sidebar .brand { color: #fff; padding: 1.1rem 1.25rem; }
.admin-sidebar .brand-mark { width: 40px; height: 40px; }
.admin-sidebar .brand-text strong { font-size: .98rem; white-space: normal; }
.admin-sidebar .brand-text small { display: none; }
.admin-nav { padding: 0 .65rem; }
.admin-nav-group { padding: .9rem 0 .1rem; }
.admin-nav-group > span { display: block; padding: 0 .75rem .35rem; font-size: .76rem; color: rgba(255,255,255,.45); font-weight: 800; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; padding: .52rem .75rem; color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; font-weight: 600; border-radius: var(--r-sm); margin-bottom: 1px; }
.admin-nav a i { font-size: 1.05rem; opacity: .8; width: 1.1rem; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 800; }
.admin-nav a.active i { opacity: 1; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.admin-content { padding: 1.5rem 1rem 3rem; }
.admin-page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.admin-page-head h1 { font-size: 1.65rem; margin: 0; font-weight: 900; }
.admin-backdrop { display: none; }
.admin-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(20,25,54,.45); z-index: 1035; }
@media (min-width: 992px) {
    .admin-sidebar { transform: none; }
    .admin-main { margin-left: 264px; }
    .admin-content { padding: 2rem 2rem 3rem; }
}
.kpi { padding: 1.1rem 1.2rem; }
.kpi-label { font-size: .86rem; font-weight: 700; color: var(--muted); }
.kpi-value { font-size: 1.75rem; font-weight: 900; color: var(--ink); line-height: 1.2; margin-top: .15rem; letter-spacing: -.02em; }
.kpi-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--navy-50); color: var(--navy); font-size: 1.15rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .75rem .9rem; border-bottom-color: var(--line); }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 800; border-bottom-width: 1px; white-space: nowrap; background: var(--navy-50); }
.table thead th:first-child { border-top-left-radius: var(--r-sm); }
.table thead th:last-child { border-top-right-radius: var(--r-sm); }
.card > .table-responsive > .table thead th, .card > .table thead th { background: transparent; border-radius: 0; }
.table-hover > tbody > tr:hover > * { background: var(--navy-50); --bs-table-bg-state: var(--navy-50); }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: .9rem; margin-bottom: 1rem; }
.perm-matrix th, .perm-matrix td { text-align: center; }
.perm-matrix td:first-child, .perm-matrix th:first-child { text-align: left; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.5rem; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); border: 2px solid #fff; }
pre.json { background: var(--navy-50); border-radius: var(--r-sm); padding: .75rem; font-size: .78rem; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ---------- Small-screen safety (from the 375px responsive sweep) ---------- */
.d-grid > *, .round-tile, .round-tile > .min-w-0 { min-width: 0; }
.form-select.w-auto { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    .section { padding: 3.25rem 0; }
    .app-topbar .brand-text small, .site-nav .brand-text small { display: none; }
    .app-topbar .brand-text strong { font-size: .98rem; }
    .app-topbar .brand-mark { width: 38px; height: 38px; }
    .app-topbar .container { padding-left: .9rem; padding-right: .9rem; }
    .stage-chip { font-size: .8rem; padding: .45rem .65rem; }
    .stage-chip.c1 { left: 0; }
    .stage-chip.c2 { right: 0; }
    .card-body { padding: 1.1rem; }
    .steps-track { gap: 1.1rem; }
    .step-card { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; background: none; border: 0; padding: 0; }
    .step-card .step-n { grid-row: span 2; margin: 0; }
    .step-card h3 { margin: .35rem 0 .15rem; }
    .play-card::before, .welcome-card::before { width: 120px; height: 120px; right: -52px; top: -52px; border-width: 8px; }
    .stat { padding: .85rem .35rem; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: .8rem; }
}
@media (max-width: 399.98px) {
    .app-topbar .brand-text strong { font-size: .9rem; }
    .app-topbar .brand { gap: .45rem; }
    .app-topbar .gap-2 { gap: .35rem !important; }
}
@media (max-width: 339.98px) {
    .app-topbar .brand-text { display: none; }
}

/* Utilities */
.min-w-0 { min-width: 0; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.rounded-xl { border-radius: var(--r-lg) !important; }
.object-cover { object-fit: cover; }
.ratio-card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--navy-50); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.section-head h2 { font-size: 1.15rem; margin: 0; }
.section-head a { font-weight: 800; font-size: .92rem; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Account drawer (phones) */
.account-drawer { --bs-offcanvas-width: min(20rem, 86vw); border-left: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); background: var(--bg); }
.account-drawer .offcanvas-header { padding: 1.25rem 1.25rem 1rem; gap: .75rem; }
.account-drawer .offcanvas-body { padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); }
.drawer-nav { background: #fff; border-radius: var(--r-lg); padding: .35rem; }
.drawer-nav a { display: flex; align-items: center; gap: .85rem; min-height: 3rem; padding: .5rem .85rem; border-radius: var(--r-md); color: var(--ink); font-weight: 700; text-decoration: none; }
.drawer-nav a > i:first-child { font-size: 1.15rem; color: var(--navy); width: 1.25rem; }
.drawer-nav a .bi-chevron-right { font-size: .8rem; color: var(--muted); }
.drawer-nav a:hover, .drawer-nav a:focus-visible { background: var(--navy-50); color: var(--ink); }
.drawer-nav a.active { background: var(--navy-100); font-weight: 800; }

/* Entry / payment request */
.entry-ask { background: var(--sun-100); border-radius: var(--r-lg); padding: 1.1rem 1.15rem; }
.entry-ask form, .pay-modal form { display: block !important; }
.pay-modal .modal-content { border: 0; border-radius: var(--r-xl); overflow: hidden; }
.pay-modal .pay-fee { display: inline-flex; align-items: baseline; gap: .35rem; background: var(--sun-100); color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font-weight: 900; }
.pay-modal .pay-fee small { font-weight: 700; color: var(--muted); }
.pay-modal .pay-art { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-100); color: var(--leaf-700); font-size: 2rem; margin: 0 auto 1rem; }

/* =====================================================================
   Public site, v3: light canvas, floating pill nav, one warm accent.
   Scoped to body.ui so the account and admin areas are unchanged.
   ===================================================================== */
.ui {
    --p-bg: #EEF0F3; --p-canvas: #FFFFFF; --p-ink: #121528; --p-muted: #5F6476; --p-line: #E4E6EC;
    --p-accent: #D9381C; --p-accent-hover: #BF2F15;
    --p-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--p-bg); color: var(--p-ink); font-family: var(--p-font);
}
.ui h1, .ui h2, .ui h3, .ui h4, .ui h5, .ui h6,
.ui .h1, .ui .h2, .ui .h3, .ui .h4, .ui .h5, .ui .h6 { font-family: var(--p-font); color: var(--p-ink); font-weight: 600; letter-spacing: -.02em; }
.ui .text-muted { color: var(--p-muted) !important; }
.ui .card { border: 1px solid var(--p-line); box-shadow: none; }
.ui .notice-bar { background: transparent; color: var(--p-muted); text-align: center; }
.ui .notice-bar i { color: var(--p-accent); }

/* Buttons */
.btn-ember { --bs-btn-color: #fff; --bs-btn-bg: var(--p-accent, #D9381C); --bs-btn-border-color: var(--p-accent, #D9381C); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--p-accent-hover, #BF2F15); --bs-btn-hover-border-color: var(--p-accent-hover, #BF2F15); --bs-btn-active-bg: var(--p-accent-hover, #BF2F15); --bs-btn-active-color: #fff; border-radius: 999px; font-weight: 600; padding-inline: 1.5rem; }
.btn-ink { --bs-btn-color: #fff; --bs-btn-bg: var(--p-ink, #121528); --bs-btn-border-color: var(--p-ink, #121528); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2A2F4A; --bs-btn-hover-border-color: #2A2F4A; --bs-btn-active-bg: #2A2F4A; --bs-btn-active-color: #fff; border-radius: 999px; font-weight: 600; padding: .5rem 1.15rem; }
.ui .btn-gold { border-radius: 999px; }

/* Floating pill nav */
.pill-nav-wrap { position: sticky; top: .75rem; z-index: 1030; display: flex; justify-content: center; padding: .75rem .75rem 0; pointer-events: none; }
.pill-nav { pointer-events: auto; width: 100%; max-width: 62rem; background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--p-line); border-radius: 999px; padding: .4rem .45rem .4rem .7rem; box-shadow: 0 8px 24px rgba(18,21,40,.06); flex-wrap: wrap; }
.pill-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--p-ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pill-brand img { border-radius: 50%; }
.pill-brand:hover { color: var(--p-ink); }
.pill-toggle { border: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--p-ink); margin-left: auto; padding: 0; }
.pill-toggle:focus { box-shadow: 0 0 0 3px rgba(18,21,40,.15); }
.pill-nav .nav-link { color: var(--p-muted); font-weight: 500; padding: .5rem .9rem !important; border-radius: 999px; white-space: nowrap; }
.pill-nav .nav-link:hover { color: var(--p-ink); }
.pill-nav .nav-link.active { color: var(--p-ink); background: #F1F2F5; font-weight: 600; }
.pill-actions { display: flex; align-items: center; gap: .35rem; }
.pill-login { color: var(--p-ink); font-weight: 500; text-decoration: none; padding: .5rem .85rem; border-radius: 999px; white-space: nowrap; }
.pill-login:hover { background: #F1F2F5; color: var(--p-ink); }
@media (max-width: 991.98px) {
    .pill-nav { border-radius: 1.6rem; }
    .pill-nav .navbar-collapse { flex-basis: 100%; }
    .pill-nav .navbar-nav { padding: .5rem 0 .25rem; }
    .pill-nav .nav-link { padding: .7rem .9rem !important; }
    .pill-actions { padding: .25rem 0 .35rem; }
    .pill-actions .btn, .pill-actions .pill-login { flex: 1; text-align: center; }
}

/* Shared layout */
.lp-container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.lp-section { padding: 4.5rem 0; }
.lp-h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 .75rem; }
.lp-sub { color: var(--p-muted); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2rem; }
.lp-link { color: var(--p-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(18,21,40,.25); text-underline-offset: 5px; }
.lp-link:hover { color: var(--p-ink); text-decoration-color: var(--p-ink); }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }

/* Hero: one white canvas set into the grey page */
.lp-hero { margin: -4.6rem .75rem 0; background: var(--p-canvas); border-radius: 2rem; padding: 7.5rem 1rem 3.5rem; overflow: hidden; }
.lp-hero-inner { position: relative; max-width: 72rem; margin-inline: auto; display: flex; flex-direction: column; gap: 2.5rem; }
.lp-hero-copy { text-align: center; max-width: 46rem; margin-inline: auto; position: relative; z-index: 1; }
.lp-status { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .75rem; border: 1px solid var(--p-line); border-radius: 999px; color: var(--p-ink); font-weight: 500; font-size: .92rem; text-decoration: none; margin-bottom: 1.5rem; }
.lp-status:hover { color: var(--p-ink); border-color: #CDD0D9; }
.lp-status .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #64AB45; box-shadow: 0 0 0 4px rgba(100,171,69,.18); }
.lp-title { font-size: clamp(2.9rem, 10.5vw, 6.4rem); line-height: .98; letter-spacing: -.05em; font-weight: 600; margin: 0 0 1.25rem; text-wrap: balance; }
.lp-lead { color: var(--p-muted); font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.55; max-width: 34rem; margin: 0 auto 2rem; }
.lp-hero-copy .lp-actions { justify-content: center; }

/* Weekly theme tiles: a 2x2 grid on phones, floating around the headline on desktop */
.lp-float { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.lp-tile { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 1.25rem; background: #F6F7F9; border: 1px solid var(--p-line); min-width: 0; }
.lp-tile-icon { width: 2.5rem; height: 2.5rem; border-radius: .8rem; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: .5rem; }
.lp-tile.t1 .lp-tile-icon { background: #E5F2DD; color: #3D7A26; }
.lp-tile.t2 .lp-tile-icon { background: #FDEFD3; color: #9A6200; }
.lp-tile.t3 .lp-tile-icon { background: #FCE3DC; color: #B42E15; }
.lp-tile.t4 .lp-tile-icon { background: #E8EAF3; color: #2B3263; }
.lp-tile-wk { font-size: .82rem; color: var(--p-muted); font-weight: 500; }
.lp-tile-name { font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.lp-tile.is-open { border-color: var(--p-ink); }
.lp-tile.is-open .lp-tile-wk { color: #3D7A26; font-weight: 600; }
@media (min-width: 992px) {
    .lp-hero { padding: 9rem 2rem 6rem; min-height: min(52rem, 100vh); }
    .lp-hero-inner { display: block; }
    .lp-hero-copy { padding: 2rem 0; }
    .lp-float { position: absolute; inset: 0; display: block; pointer-events: none; }
    .lp-tile { position: absolute; width: 13.5rem; background: #fff; box-shadow: 0 18px 40px rgba(18,21,40,.08); pointer-events: auto; }
    .lp-tile.t1 { left: 0; top: -1rem; transform: rotate(-6deg); }
    .lp-tile.t2 { right: 0; top: 2rem; transform: rotate(5deg); }
    .lp-tile.t3 { left: 2rem; bottom: -1.5rem; transform: rotate(4deg); }
    .lp-tile.t4 { right: 2.5rem; bottom: -2.5rem; transform: rotate(-4deg); }
}
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .lp-tile { animation: lp-settle .9s cubic-bezier(.2,.8,.2,1) both; }
    .lp-tile.t2 { animation-delay: .08s; } .lp-tile.t3 { animation-delay: .16s; } .lp-tile.t4 { animation-delay: .24s; }
    @keyframes lp-settle { from { opacity: 0; translate: 0 24px; rotate: 0deg; } }
}

/* Bento */
.lp-bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.lp-card { background: var(--p-canvas); border-radius: 1.5rem; padding: 1.5rem; min-width: 0; }
.lp-card-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 1rem; }
.lp-card-text { color: var(--p-muted); }
.lp-weeks li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--p-line); }
.lp-weeks li:first-child { border-top: 0; padding-top: 0; }
.lp-weeks .n { width: 2rem; height: 2rem; border-radius: 50%; background: #F1F2F5; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.lp-weeks .t { font-weight: 600; min-width: 0; }
.lp-weeks .d { color: var(--p-muted); font-size: .9rem; white-space: nowrap; }
.lp-weeks .is-open .n { background: var(--p-ink); color: #fff; }
.lp-weeks .is-open .d { color: #3D7A26; font-weight: 600; }
.lp-weeks .is-done { opacity: .55; }
.lp-fee { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0 0 .75rem; }
.lp-fee small { font-size: 1rem; font-weight: 500; color: var(--p-muted); letter-spacing: 0; }
.lp-board li { display: grid; grid-template-columns: 1.75rem 1fr auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--p-line); }
.lp-board li:first-child { border-top: 0; padding-top: 0; }
.lp-board .r { font-weight: 600; color: var(--p-muted); }
.lp-board .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-board .pt { color: var(--p-muted); font-size: .92rem; }
@media (min-width: 768px) {
    .lp-bento { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
    .lp-card-weeks { grid-row: span 2; padding: 2rem; }
}

/* Closing */
.lp-close { padding-bottom: 5rem; }
.lp-close .lp-sub { margin-bottom: 1.75rem; }
.lp-emblem { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: #fff; padding: .35rem; margin-bottom: 1.5rem; }

/* Footer with the big wordmark */
.lp-footer { background: var(--p-canvas); margin: 0 .75rem .75rem; border-radius: 2rem; padding-top: 3rem; overflow: hidden; color: var(--p-muted); }
.lp-footer a { color: var(--p-ink); text-decoration: none; }
.lp-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-footer-about { grid-column: 1 / -1; max-width: 26rem; }
.lp-footer-about p { margin: 1rem 0; font-size: .95rem; }
.lp-footer-h { font-size: .9rem; font-weight: 600; color: var(--p-muted); margin-bottom: .85rem; letter-spacing: 0; }
.lp-footer ul { display: grid; gap: .55rem; font-size: .95rem; margin: 0; }
.lp-social { display: flex; gap: 1rem; font-size: 1.15rem; }
.lp-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; border-top: 1px solid var(--p-line); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .88rem; }
.lp-wordmark { margin: 0; padding: 0 1rem; font-weight: 600; letter-spacing: -.06em; line-height: .8; white-space: nowrap; text-align: center; font-size: clamp(3rem, 12.5vw, 11.5rem); background: linear-gradient(180deg, rgba(217,56,28,.32), rgba(217,56,28,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(.12em); user-select: none; }
@media (min-width: 992px) {
    .lp-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
    .lp-footer-about { grid-column: auto; }
}

/* Inner public pages: light heading panel instead of the navy band */
.ui .page-hero { background: var(--p-canvas); color: var(--p-ink); margin: -4.6rem .75rem 0; border-radius: 2rem; padding: 7.5rem 0 3rem; }
.ui .page-hero::before { display: none; }
.ui .page-hero h1 { color: var(--p-ink); font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.04em; font-weight: 600; }
.ui .page-hero .section-lead { color: var(--p-muted); }
.ui main > .container:first-child, .ui main > section:first-child:not(.lp-hero):not(.page-hero) { padding-top: 2rem; }
@media (min-width: 992px) {
    .lp-hero-copy { max-width: 38rem; }
    .lp-title { font-size: clamp(4.25rem, 7.4vw, 6.4rem); }
    .lp-tile { width: 12rem; }
    .lp-tile.t1 { left: -.5rem; top: 0; }
    .lp-tile.t2 { right: -.5rem; top: 3rem; }
    .lp-tile.t3 { left: 1rem; bottom: -2rem; }
    .lp-tile.t4 { right: 1.5rem; bottom: -3rem; }
}
.lp-wordmark { font-size: clamp(1.8rem, 10vw, 13rem); padding-inline: .5rem; }
.ui .step-num { background: var(--p-ink); }
.ui .btn-primary { --bs-btn-bg: var(--p-ink); --bs-btn-border-color: var(--p-ink); --bs-btn-hover-bg: #2A2F4A; --bs-btn-hover-border-color: #2A2F4A; --bs-btn-active-bg: #2A2F4A; border-radius: 999px; }
.ui .btn-outline-primary { --bs-btn-color: var(--p-ink); --bs-btn-border-color: var(--p-line); --bs-btn-hover-bg: #F1F2F5; --bs-btn-hover-color: var(--p-ink); --bs-btn-hover-border-color: #CDD0D9; border-radius: 999px; }
/* Body links use the accent; zero-specificity so components keep their own colours. */
:where(.ui main) a:where(:not(.btn):not(.dropdown-item):not(.list-group-item):not(.page-link)) { color: var(--p-accent); }
:where(.ui main) a:where(.lp-link, .lp-status, .round-card, .list-row, .card-hover, .text-reset, .stretched-link) { color: var(--p-ink); }

/* =====================================================================
   Site-wide light system (every layout carries body.ui).
   Navy becomes ink, navy tints become neutral greys, one font everywhere.
   ===================================================================== */
.ui {
    --navy: #121528; --navy-700: #1E2238; --navy-900: #121528; --navy-100: #E9EBF0; --navy-50: #F3F4F7;
    --ink: #121528; --text: #2A2E40; --muted: #5F6476; --line: #E4E6EC; --surface: #FFFFFF; --bg: #EEF0F3;
    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --shadow-1: none; --shadow-2: 0 8px 24px rgba(18,21,40,.06); --shadow-3: 0 18px 40px rgba(18,21,40,.08);
    --bs-primary: #121528; --bs-primary-rgb: 18,21,40;
}
.ui .fw-800, .ui .fw-900, .ui .fw-bold, .ui strong, .ui b { font-weight: 600; }
.ui .card { border-radius: 1.25rem; }
.ui .badge { font-weight: 600; }
.ui .btn { font-weight: 600; }
.ui .btn-gold { --bs-btn-bg: var(--p-accent); --bs-btn-border-color: var(--p-accent); --bs-btn-hover-bg: var(--p-accent-hover); --bs-btn-hover-border-color: var(--p-accent-hover); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.ui .form-control, .ui .form-select { border-radius: .85rem; border-color: var(--line); }
.ui .form-control:focus, .ui .form-select:focus { border-color: #9CA1B3; box-shadow: 0 0 0 4px rgba(18,21,40,.08); }
.ui .chip { font-weight: 600; border-radius: 999px; }
.ui .stat-value { font-weight: 600; letter-spacing: -.03em; }
.ui .stat { border-radius: 1.1rem; }

/* Account area: floating pill top bar */
.app-pill-wrap { position: sticky; top: .75rem; z-index: 1030; padding: .75rem .75rem 0; display: flex; justify-content: center; pointer-events: none; }
.app-pill { pointer-events: auto; width: 100%; max-width: 72rem; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .45rem .4rem .7rem; box-shadow: 0 8px 24px rgba(18,21,40,.06); }
.app-pill .app-tabs { display: none; margin: 0 auto; gap: .15rem; }
.app-pill .app-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.app-pill .app-tabs a:hover { color: var(--ink); }
.app-pill .app-tabs a.active { background: #F1F2F5; color: var(--ink); font-weight: 600; }
.app-pill .app-right { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.app-pill .btn-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; background: transparent; color: var(--ink); border: 0; }
.app-pill .btn-icon:hover { background: #F1F2F5; }
.app-pill .avatar-btn { border: 0; background: transparent; border-radius: 999px; padding: .15rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.app-pill .avatar-btn:hover { background: #F1F2F5; }
@media (min-width: 992px) {
    .app-pill .app-tabs { display: flex; }
    .app-pill .app-right { margin-left: 0; }
    .app-pill .avatar-btn { padding-right: .85rem; }
}
.ui .avatar { background: #F1F2F5; color: var(--ink); font-weight: 600; }

/* Phone tab bar: a floating pill too */
.ui .mobile-tabbar { left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; box-shadow: 0 10px 30px rgba(18,21,40,.12); background: rgba(255,255,255,.95); }
.ui .mobile-tabbar a { font-weight: 500; border-radius: 999px; min-height: 3.2rem; justify-content: center; }
.ui .mobile-tabbar a.active { color: var(--ink); font-weight: 600; background: #F1F2F5; }
.ui .mobile-tabbar a.active i { background: transparent; }
.ui.has-tabbar { padding-bottom: 6.5rem; }
@media (min-width: 992px) { .ui .mobile-tabbar { display: none; } .ui.has-tabbar { padding-bottom: 0; } }
@media (min-width: 768px) and (max-width: 991.98px) { .ui .mobile-tabbar { display: flex; left: 50%; right: auto; transform: translateX(-50%); width: min(30rem, calc(100% - 1.5rem)); } .ui.has-tabbar { padding-bottom: 6.5rem; } }

/* Dashboard play card: a white canvas with one ember action */
.ui .play-card, .ui .welcome-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; border-radius: 1.75rem; }
.ui .play-card h1, .ui .play-card h2, .ui .welcome-card h1, .ui .welcome-card h2 { color: var(--ink); letter-spacing: -.03em; }
.ui .play-card .muted { color: var(--muted); }
.ui .play-card::before, .ui .play-card::after, .ui .welcome-card::before { display: none; }
.ui .play-card .btn-white { background: var(--p-accent); color: #fff; border-radius: 999px; padding-inline: 1.5rem; }
.ui .play-card .btn-white:hover, .ui .play-card .btn-white:focus { background: var(--p-accent-hover); color: #fff; }
.ui .ring.on-dark .ring-bg { stroke: #EEF0F3; }
.ui .ring.on-dark .ring-label { color: var(--ink); }
.ui .ring.on-dark .ring-label small { color: var(--muted); }
.ui .on-dark .progress, .ui .progress.on-dark { background: #EEF0F3; }
.ui .list-row { border-radius: 1.1rem; }
.ui .list-row .ico { background: #F1F2F5; color: var(--ink); }

/* Sign-in pages: white panel instead of navy */
@media (min-width: 992px) {
    .ui .auth-aside { background: var(--surface); color: var(--ink); margin: .75rem 0 .75rem .75rem; border-radius: 2rem; }
    .ui .auth-aside h2 { color: var(--ink); font-weight: 600; letter-spacing: -.04em; }
    .ui .auth-aside .brand { color: var(--ink); }
    .ui .auth-aside .brand-text small { color: var(--muted); }
    .ui .auth-aside .auth-note { color: var(--muted); }
}
.ui .auth-card { background: var(--surface); border-radius: 1.75rem; padding: 2rem 1.5rem; }
@media (min-width: 576px) { .ui .auth-card { padding: 2.5rem; } }

/* Admin: light sidebar */
.ui .admin-sidebar { background: var(--surface); color: var(--text); border-right: 1px solid var(--line); scrollbar-color: #D5D8E0 transparent; }
.ui .admin-sidebar .brand { color: var(--ink); }
.ui .admin-nav-group > span { color: var(--muted); font-weight: 600; }
.ui .admin-nav a { color: var(--muted); font-weight: 500; border-radius: 999px; }
.ui .admin-nav a i { opacity: 1; }
.ui .admin-nav a:hover { background: #F3F4F7; color: var(--ink); }
.ui .admin-nav a.active { background: #EEF0F3; color: var(--ink); font-weight: 600; }
.ui .admin-nav a.active i { color: var(--p-accent); }
.ui .admin-topbar { background: rgba(238,240,243,.85); border-bottom: 0; }
.ui .admin-page-head h1 { font-weight: 600; letter-spacing: -.03em; }
.ui .kpi-value { font-weight: 600; letter-spacing: -.03em; }
.ui .kpi-icon { background: #F1F2F5; color: var(--ink); }
.ui .table > :not(caption) > * > * { border-color: var(--line); }

/* Slim footer row */
.lp-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.lp-footer-links { display: flex !important; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.lp-footer { padding-top: 2rem; }
.lp-footer-bottom { margin-top: 1.5rem; }

/* Hero headline on a single line at every width */
.lp-title { white-space: nowrap; font-size: clamp(1.6rem, 8.4vw, 3.6rem); }
@media (min-width: 768px) { .lp-title { font-size: clamp(3.6rem, 8vw, 5rem); } }
@media (min-width: 992px) { .lp-hero-copy { max-width: 48rem; } .lp-title { font-size: clamp(3rem, 5.3vw, 4.9rem); } }

/* =====================================================================
   AWAU colours as accents on a light display.
   Navy = headings and dark buttons, ember orange = main buttons,
   green = links and positive highlights. No coloured backgrounds.
   ===================================================================== */
.ui {
    --brand-navy: #232A56; --brand-orange: #D9381C; --brand-orange-hover: #BF2F15;
    --brand-green: #64AB45; --brand-green-text: #3D7A26;
    --ink: #232A56; --navy: #232A56; --navy-700: #1B2147; --p-ink: #232A56;
    --p-accent: var(--brand-orange); --p-accent-hover: var(--brand-orange-hover);
    --bs-primary: #232A56; --bs-primary-rgb: 35,42,86;
    /* every pastel tint becomes the same neutral grey */
    --leaf-50: #F5F6F8; --leaf-100: #F3F4F7; --sun-100: #F3F4F7; --ember-100: #F3F4F7; --navy-50: #F5F6F8; --navy-100: #EEF0F3;
    color: var(--text);
}
.ui .badge-soft-info, .ui .badge-soft-secondary { background: #F3F4F7; }
.ui .lp-title, .ui .lp-h2, .ui .page-hero h1, .ui .admin-page-head h1, .ui .stat-value, .ui .kpi-value, .ui .lp-fee { color: var(--brand-navy); }

/* Buttons: orange for the main action, navy for the dark secondary */
.btn-ink { --bs-btn-bg: #232A56; --bs-btn-border-color: #232A56; --bs-btn-hover-bg: #1B2147; --bs-btn-hover-border-color: #1B2147; --bs-btn-active-bg: #1B2147; }
.ui .btn-primary { --bs-btn-bg: #232A56; --bs-btn-border-color: #232A56; --bs-btn-hover-bg: #1B2147; --bs-btn-hover-border-color: #1B2147; --bs-btn-active-bg: #1B2147; }
.ui .btn-outline-primary { --bs-btn-color: #232A56; --bs-btn-hover-color: #232A56; }

/* Links: green */
:where(.ui main) a:where(:not(.btn):not(.dropdown-item):not(.list-group-item):not(.page-link)) { color: var(--brand-green-text); }
:where(.ui main) a:where(.lp-link, .lp-status, .round-card, .list-row, .card-hover, .text-reset, .stretched-link) { color: var(--brand-navy); }
.ui .lp-link { color: var(--brand-navy); text-decoration-color: rgba(100,171,69,.6); }
.ui .lp-link:hover { color: var(--brand-green-text); text-decoration-color: var(--brand-green-text); }

/* Navigation: navy for the current page, green dot for "open" states */
.ui .pill-nav .nav-link.active, .ui .app-pill .app-tabs a.active, .ui .mobile-tabbar a.active, .ui .admin-nav a.active { color: var(--brand-navy); }
.ui .pill-brand { color: var(--brand-navy); }
.ui .lp-status .dot { background: var(--brand-green); }

/* Weekly cards and tiles: white, with colour on the icon and the week label */
.ui .round-card.t1, .ui .round-card.t2, .ui .round-card.t3, .ui .round-card.t4 { background: #fff; border: 1px solid var(--line); }
.ui .round-card.is-open { border: 2px solid var(--brand-navy); }
.ui .round-card.t1 .wk, .ui .round-card.t1 .round-icon, .ui .lp-tile.t1 .lp-tile-icon { color: var(--brand-green-text); }
.ui .round-card.t2 .wk, .ui .round-card.t2 .round-icon, .ui .lp-tile.t2 .lp-tile-icon { color: var(--brand-orange); }
.ui .round-card.t3 .wk, .ui .round-card.t3 .round-icon, .ui .lp-tile.t3 .lp-tile-icon { color: var(--brand-navy); }
.ui .round-card.t4 .wk, .ui .round-card.t4 .round-icon, .ui .lp-tile.t4 .lp-tile-icon { color: var(--brand-green-text); }
.ui .round-card .round-icon { opacity: .7; }
.ui .lp-tile .lp-tile-icon { background: #F3F4F7 !important; }
.ui .lp-tile { background: #fff; }
.ui .lp-tile.is-open { border-color: var(--brand-navy); }
.ui .lp-tile.is-open .lp-tile-wk, .ui .lp-weeks .is-open .d { color: var(--brand-green-text); }
.ui .lp-weeks .is-open .n { background: var(--brand-navy); }

/* Other former tinted areas */
.ui .entry-ask { background: #fff; border: 1px solid var(--line); }
.ui .pay-modal .pay-fee { background: transparent; border: 1px solid var(--line); color: var(--brand-navy); }
.ui .pay-modal .pay-art { background: #F3F4F7; color: var(--brand-green-text); }
.ui .chip i { color: var(--brand-orange); }
.ui .chip-leaf, .ui .chip-leaf i { color: var(--brand-green-text); }
.ui .chip-ember { color: var(--brand-orange); }
.ui .avatar { color: var(--brand-navy); }
.ui .avatar-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-orange); }
.ui .bg-green-50 { background: #fff !important; border: 1px solid var(--line) !important; }
.ui .list-row .ico { color: var(--brand-navy); }
.ui .admin-nav a.active i { color: var(--brand-orange); }
.ui .lp-weeks .n { color: var(--brand-navy); }
.ui .lp-board .r { color: var(--brand-orange); }
.ui .skip-link { background: #fff; color: var(--brand-navy); border: 2px solid var(--brand-navy); }
.ui code, .ui kbd, .ui .font-monospace { font-family: var(--font) !important; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: inherit; }
.ui .list-group-item.active { background: #EEF0F3; color: var(--brand-navy); border-color: var(--line); font-weight: 600; }

/* Weekly rounds list: number, then theme with dates underneath, status on the right */
.ui .lp-weeks li { grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: 1rem 0; }
.ui .lp-weeks .n { width: 2.25rem; height: 2.25rem; background: #fff; border: 1.5px solid var(--line); color: var(--brand-navy); font-weight: 600; }
.ui .lp-weeks .b { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ui .lp-weeks .t { font-weight: 600; color: var(--brand-navy); line-height: 1.3; }
.ui .lp-weeks .d { color: var(--muted); font-size: .88rem; white-space: nowrap; font-weight: 400; }
.ui .lp-weeks .s { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; }
.ui .lp-weeks .s-open { color: var(--brand-green-text); border-color: rgba(61,122,38,.35); }
.ui .lp-weeks .is-open .n { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.ui .lp-weeks .is-open .d { color: var(--muted); font-weight: 400; }
.ui .lp-weeks .is-done { opacity: 1; }
.ui .lp-weeks .is-done .t, .ui .lp-weeks .is-done .n { color: var(--muted); }
.ui .lp-weeks li { grid-template-columns: 2.25rem minmax(0, 1fr); }
.ui .lp-weeks .d { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ui .lp-weeks .s { padding: .1rem .55rem; font-size: .78rem; }

/* More orange, less navy */
.ui { --brand-orange-text: #C0311A; }
/* Rounds card: orange heading band */
.ui .lp-card-weeks { padding: 0 !important; overflow: hidden; }
.ui .lp-card-weeks .lp-card-title { background: var(--brand-orange); color: #fff; margin: 0; padding: 1rem 1.5rem; font-size: 1.05rem; }
.ui .lp-card-weeks .lp-weeks { padding: .5rem 1.5rem 1.25rem; }
.ui .lp-card-weeks .lp-weeks li:first-child { padding-top: 1rem; }
/* Other card titles in orange text */
.ui .lp-card-fee .lp-card-title, .ui .lp-card-board .lp-card-title { color: var(--brand-orange-text); }
/* Open week: orange number and outline */
.ui .lp-weeks .is-open .n { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.ui .round-card.is-open, .ui .lp-tile.is-open { border-color: var(--brand-orange) !important; }
/* Dark pill button becomes orange */
.btn-ink, .ui .btn-ink { --bs-btn-bg: #D9381C; --bs-btn-border-color: #D9381C; --bs-btn-hover-bg: #BF2F15; --bs-btn-hover-border-color: #BF2F15; --bs-btn-active-bg: #BF2F15; --bs-btn-active-border-color: #BF2F15; }
/* Current page in menus: orange label */
.ui .pill-nav .nav-link.active, .ui .app-pill .app-tabs a.active, .ui .mobile-tabbar a.active, .ui .admin-nav a.active { color: var(--brand-orange-text); }
.ui .mobile-tabbar a.active i { color: var(--brand-orange-text); }
.ui .lp-board .r { color: var(--brand-orange-text); }
.ui .lp-fee { color: var(--brand-orange-text); }

/* Animated orbit (replaces the large emblem) */
.orbit { width: min(21rem, 86vw); aspect-ratio: 1; margin: 0 auto 1.75rem; perspective: 900px; container-type: inline-size; }
.orbit-stage { position: relative; width: 100%; height: 100%; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.orbit-track { position: absolute; border-radius: 50%; border: 1.5px dashed #D6D9E1; }
.orbit-track.t-outer { inset: 8%; }
.orbit-track.t-inner { inset: 27%; }
.orbit-ring { position: absolute; inset: 0; animation: orbit-turn 54s linear infinite; }
.orbit-ring.r-outer { --r: 42cqw; }
.orbit-ring.r-inner { --r: 23cqw; animation-duration: 32s; animation-direction: reverse; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.orbit-spin { position: absolute; left: 0; top: 0; animation: orbit-turn 54s linear infinite reverse; }
.r-inner .orbit-spin { animation-duration: 32s; animation-direction: normal; }
.orbit-chip, .orbit-bubble { position: absolute; left: 0; top: 0; translate: -50% -50%; background: #fff; border: 1px solid var(--line, #E4E6EC); box-shadow: 0 10px 24px rgba(18,21,40,.08); transition: scale .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.orbit-chip { white-space: nowrap; border-radius: 999px; padding: .4rem .8rem; font-size: clamp(.72rem, 3.6cqw, .86rem); font-weight: 600; color: #232A56; }
.orbit-bubble { width: clamp(2.6rem, 15cqw, 3.4rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.05rem, 6cqw, 1.4rem); }
.orbit-bubble.tone-o { color: #D9381C; } .orbit-bubble.tone-n { color: #232A56; } .orbit-bubble.tone-g { color: #3D7A26; }
.orbit-chip:hover, .orbit-bubble:hover { scale: 1.12; box-shadow: 0 16px 32px rgba(18,21,40,.14); }
.orbit-core { position: absolute; inset: 38%; border-radius: 50%; background: #D9381C; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(217,56,28,.12), 0 0 0 22px rgba(217,56,28,.05); animation: orbit-pulse 3.2s ease-in-out infinite; }
.orbit-core svg { width: 46%; height: auto; fill: #fff; }
.orbit:hover .orbit-ring, .orbit:hover .orbit-spin, .orbit:hover .orbit-core { animation-play-state: paused; }
@keyframes orbit-turn { to { rotate: 360deg; } }
@keyframes orbit-pulse { 50% { box-shadow: 0 0 0 14px rgba(217,56,28,.14), 0 0 0 30px rgba(217,56,28,.04); } }
@media (prefers-reduced-motion: reduce) {
    .orbit-ring, .orbit-spin, .orbit-core { animation: none; }
    .orbit-stage { transition: none; }
}
.ui .auth-aside .orbit { width: min(22rem, 100%); margin: 0 0 2rem; }
.orbit-track { border-color: #C5CAD4; }
@media (max-width: 575.98px) {
    .orbit { width: min(18rem, 78vw); }
    .orbit-ring.r-outer { --r: 36cqw; }
    .orbit-track.t-outer { inset: 14%; }
    .orbit-chip { font-size: .7rem; padding: .3rem .6rem; }
}
.lp-close { overflow: hidden; }
/* Bigger orbit */
.orbit { width: min(27rem, 90vw); }
.orbit-chip { font-size: clamp(.74rem, 3.4cqw, .95rem); padding: .45rem .9rem; }
.orbit-bubble { width: clamp(2.8rem, 15cqw, 3.9rem); font-size: clamp(1.1rem, 6cqw, 1.6rem); }
@media (max-width: 575.98px) {
    .orbit { width: min(21rem, 86vw); }
    .orbit-ring.r-outer { --r: 34cqw; }
    .orbit-track.t-outer { inset: 16%; }
    .orbit-chip { font-size: .74rem; padding: .32rem .65rem; }
}
.ui .auth-aside .orbit { width: min(26rem, 100%); }
@media (max-width: 359.98px) { .orbit-ring.r-outer { --r: 31cqw; } .orbit-track.t-outer { inset: 19%; } .orbit-chip { font-size: .7rem; } }

/* Responsive fixes */
.ui .auth-card { min-width: 0; }
.ui .auth-card .brand-text strong, .ui .auth-card .brand-text small { white-space: normal; }
@media (max-width: 399.98px) {
    .ui .auth-main { padding: 1rem .75rem; }
    .ui .auth-card { padding: 1.5rem 1.1rem; }
}
/* Bootstrap's widest gutter is wider than the page margin below the xl breakpoint */
@media (max-width: 1199.98px) { .ui .g-5, .ui .gx-5 { --bs-gutter-x: 1.5rem; } }
/* Floating week cards on small laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .lp-tile { width: 10.5rem; padding: .85rem; }
    .lp-tile-name { font-size: .92rem; }
    .lp-tile.t1 { left: -1.25rem; } .lp-tile.t3 { left: -.5rem; }
    .lp-tile.t2 { right: -1.25rem; } .lp-tile.t4 { right: -.5rem; }
}
/* Admin filter bars: the button column sizes to its buttons from tablet width up */
.ui .filter-bar .btn { white-space: nowrap; }
@media (min-width: 768px) { .ui .filter-bar > div:has(> .btn-primary) { flex: 0 0 auto; width: auto; } }

/* Dashboard: greeting sits inside the play card */
.ui .play-greet { padding-bottom: 1.1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.ui .play-greet h1 { font-size: 1.15rem; color: var(--brand-navy); }
.ui .play-greet p { font-size: .88rem; }
.ui .play-greet .chip { background: #F5F6F8; }

/* Landing: less empty space above the closing animation */
.ui .lp-close { padding-top: 1.5rem; }
.ui .lp-close .orbit { margin-bottom: 1rem; }
.ui .lp-section:has(.lp-bento) { padding-bottom: 2rem; }

/* ---- Inner pages: consistent with the landing page ---- */
.ui .page-hero { padding: 6.25rem 0 2.25rem; }
@media (min-width: 992px) { .ui .page-hero { padding: 7rem 0 2.75rem; } }
.ui .page-hero .container { max-width: 72rem; }
/* Long text sits on a white panel, never straight on the grey page */
.ui article.prose { background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.5rem; }
@media (min-width: 768px) { .ui article.prose { padding: 2.25rem 2.5rem; } }
.ui .prose h2, .ui .prose h3 { color: var(--brand-navy); }
/* Tab pills: orange for the selected one */
.ui .nav-pills .nav-link { color: var(--muted); font-weight: 500; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.ui .nav-pills .nav-link:hover { color: var(--brand-navy); }
.ui .nav-pills .nav-link.active, .ui .nav-pills .show > .nav-link { background: #fff; color: var(--brand-orange-text); border-color: var(--brand-orange); font-weight: 600; }
/* Card headers: quiet, navy text */
.ui .card-header { background: transparent; border-bottom: 1px solid var(--line); color: var(--brand-navy); font-weight: 600; }
/* Accordion (FAQ) */
.ui .accordion-button { font-weight: 600; color: var(--brand-navy); }
.ui .accordion-button:not(.collapsed) { background: #fff; color: var(--brand-orange-text); box-shadow: inset 0 -1px 0 var(--line); }
.ui .accordion-button:focus { box-shadow: 0 0 0 4px rgba(217,56,28,.15); }
/* Step numbers used on older pages */
.ui .step-num { background: #fff !important; color: var(--brand-orange-text); border: 1.5px solid var(--brand-orange); }

/* How it works */
.hiw-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.hiw-list li:first-child { border-top: 0; padding-top: 0; }
.hiw-list .n { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--brand-orange-text, #C0311A); border: 1.5px solid var(--brand-orange, #D9381C); }
.hiw-list h2 { color: var(--brand-navy, #232A56); font-size: 1.05rem; }
.hiw-list p, .hiw-fair li { color: var(--muted); }
.hiw-score { display: grid; gap: .9rem; }
.hiw-score div { display: flex; align-items: baseline; gap: .75rem; }
.hiw-score dt { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; color: var(--brand-orange-text, #C0311A); min-width: 3.5rem; }
.hiw-score dd { margin: 0; color: var(--muted); }
.hiw-fair { display: grid; gap: .65rem; }
.hiw-fair li { padding-left: 1.6rem; position: relative; }
.hiw-fair li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand-green, #64AB45); }
@media (min-width: 768px) { .lp-bento.hiw .hiw-steps { grid-row: span 2; padding: 2rem; } }

/* Account pages: clear page titles with room under the top bar */
.ui.has-tabbar main > .container { padding-top: 2rem !important; }
.ui.has-tabbar main > .container > h1.h3, .ui.has-tabbar main > .container > div > h1.h3 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); letter-spacing: -.035em; color: var(--brand-navy); }
/* Week markers: outlined circles, orange when open, green when done */
.ui .round-tile .round-week { background: #fff; border: 1.5px solid var(--line); color: var(--brand-navy); border-radius: 50%; font-weight: 600; }
.ui .round-tile.is-open .round-week { background: #fff; border-color: var(--brand-orange); color: var(--brand-orange-text); }
.ui .round-tile.is-done .round-week { background: #fff; border-color: var(--brand-green); color: var(--brand-green-text); }
.ui .round-tile.is-open { border-color: var(--brand-orange); }
/* Copy and similar inline actions in orange */
.ui main .input-group .btn-primary { --bs-btn-bg: var(--brand-orange); --bs-btn-border-color: var(--brand-orange); --bs-btn-hover-bg: var(--brand-orange-hover); --bs-btn-hover-border-color: var(--brand-orange-hover); --bs-btn-active-bg: var(--brand-orange-hover); }

/* Inner page hero: solid orange, white type, a large soft paw */
.ui .page-hero { background: var(--brand-orange); color: #fff; position: relative; overflow: hidden; }
.ui .page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 30rem at 85% -20%, rgba(255,255,255,.16), transparent 60%); pointer-events: none; }
.ui .page-hero .container { position: relative; z-index: 1; }
.ui .page-hero h1 { color: #fff; }
.ui .page-hero .section-lead { color: rgba(255,255,255,.92); }
.ui .page-hero a { color: #fff; }
.page-hero-paw { position: absolute; right: -1.5rem; bottom: -2.5rem; width: clamp(9rem, 28vw, 17rem); height: auto; fill: rgba(255,255,255,.12); transform: rotate(-16deg); pointer-events: none; }
@media (min-width: 992px) { .page-hero-paw { right: 6%; bottom: -3rem; } }

/* Link list: modern tappable rows */
.link-list { background: #fff; border: 1px solid var(--line, #E4E6EC); border-radius: 1.5rem; padding: .5rem; }
.link-list-title { font-size: .85rem; font-weight: 600; color: var(--muted, #5F6476); margin: .6rem .75rem .35rem; letter-spacing: 0; }
.ui .link-row, .link-row { display: flex; align-items: center; gap: .85rem; min-height: 3.25rem; padding: .5rem .75rem; border-radius: 1rem; color: var(--brand-navy, #232A56); text-decoration: none; font-weight: 500; transition: background-color .15s; }
.link-row:hover, .link-row:focus-visible { background: #F5F6F8; color: var(--brand-navy, #232A56); }
.link-ico { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: #F5F6F8; color: var(--brand-orange, #D9381C); font-size: 1rem; flex-shrink: 0; transition: background-color .15s, color .15s; }
.link-row:hover .link-ico { background: var(--brand-orange, #D9381C); color: #fff; }
.link-label { flex: 1; min-width: 0; }
.link-go { color: #A3A8B6; font-size: .85rem; transition: translate .15s; }
.link-row:hover .link-go { translate: 3px 0; color: var(--brand-orange, #D9381C); }
.ui .page-hero .eyebrow { color: #fff; opacity: .95; font-weight: 600; }
.ui .page-hero .badge { background: #fff !important; color: var(--brand-orange-text) !important; }
@media (max-width: 991.98px) { .ui .page-hero { padding-top: 7rem; padding-bottom: 2.5rem; } }

/* Menu pill: solid white so it never tints over coloured panels */
.pill-nav { background: #fff; }
/* Below desktop: the orange hero starts under the menu instead of behind it */
@media (max-width: 991.98px) {
    .ui .page-hero { margin: .75rem .75rem 0; padding: 2.25rem 0 2.5rem; border-radius: 1.75rem; }
    .ui .page-hero .container { padding-inline: 1.5rem; }
    .ui .page-hero h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
    .page-hero-paw { width: 8.5rem; right: -1.25rem; bottom: -1.75rem; fill: rgba(255,255,255,.1); }
}
@media (max-width: 575.98px) {
    .ui .page-hero { padding: 1.9rem 0 2.1rem; border-radius: 1.5rem; }
    .ui .page-hero .container { padding-inline: 1.25rem; }
    .ui .page-hero .section-lead { font-size: 1rem; }
}

/* Inner page hero, all devices: orange runs edge to edge from the very top,
   square top corners, rounded bottom corners, menu pill floating over it. */
.ui .page-hero { margin: -5rem 0 0 !important; border-radius: 0 0 2rem 2rem !important; padding: 7.25rem 0 2.75rem !important; }
@media (min-width: 992px) { .ui .page-hero { padding: 8rem 0 3.25rem !important; border-radius: 0 0 2.5rem 2.5rem !important; } }
@media (max-width: 575.98px) { .ui .page-hero { padding: 6.75rem 0 2.25rem !important; border-radius: 0 0 1.75rem 1.75rem !important; } }
.ui .page-hero .container { padding-inline: 1.25rem; }
@media (min-width: 576px) { .ui .page-hero .container { padding-inline: 1.5rem; } }
/* Menu pill keeps a soft shadow so it lifts off the orange */
.pill-nav { box-shadow: 0 10px 30px rgba(120,25,8,.18); }
@media (max-width: 575.98px) { .ui .page-hero { padding-top: 7.1rem !important; } }
/* Taller orange hero */
.ui .page-hero { padding: 8rem 0 3.75rem !important; }
@media (min-width: 992px) { .ui .page-hero { padding: 9.25rem 0 4.75rem !important; } }
@media (max-width: 575.98px) { .ui .page-hero { padding: 7.75rem 0 3rem !important; } }

/* Account pages: the same orange hero under the floating top bar */
.ui .app-hero .container { max-width: 72rem; }
.app-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.ui .app-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.04em; }
.hero-points { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--brand-orange-text); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; box-shadow: 0 8px 20px rgba(120,25,8,.18); white-space: nowrap; }
.ui.has-tabbar main > .container { padding-top: 1.75rem !important; }
/* Dashboard: the play card rises over the bottom of the hero */
.ui .app-hero.has-overlap { padding-bottom: 6.5rem !important; }
.ui .app-hero.has-overlap ~ .container .dash > .play-card:first-child { margin-top: -6.25rem; position: relative; z-index: 2; box-shadow: 0 18px 40px rgba(18,21,40,.10); }

/* =====================================================================
   Buttons, site-wide
   ===================================================================== */
.ui .btn { border-radius: 999px; font-weight: 600; min-height: 2.75rem; padding: .6rem 1.3rem; display: inline-flex; align-items: center; justify-content: center; gap: .1rem; letter-spacing: -.005em; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background-color .18s, border-color .18s, color .18s; }
.ui .btn-lg { min-height: 3.25rem; padding: .8rem 1.75rem; font-size: 1.02rem; }
.ui .btn-sm { min-height: 2.25rem; padding: .35rem .95rem; font-size: .88rem; }
.ui .btn:focus-visible { outline: 3px solid rgba(217,56,28,.4); outline-offset: 2px; box-shadow: none; }
.ui .btn:active { transform: scale(.98); }

/* Orange main actions */
.ui .btn-ember, .ui .btn-gold, .ui .btn-ink, .ui .play-card .btn-white {
    background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
    box-shadow: 0 10px 22px -10px rgba(217,56,28,.75), inset 0 1px 0 rgba(255,255,255,.18);
}
.ui .btn-ember:hover, .ui .btn-gold:hover, .ui .btn-ink:hover, .ui .play-card .btn-white:hover,
.ui .btn-ember:focus-visible, .ui .btn-gold:focus-visible, .ui .btn-ink:focus-visible {
    background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); color: #fff;
    transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(217,56,28,.8), inset 0 1px 0 rgba(255,255,255,.18);
}
.ui .btn-ember:active, .ui .btn-gold:active, .ui .btn-ink:active, .ui .play-card .btn-white:active { transform: translateY(0) scale(.98); }
/* Large orange calls to action without their own icon get an arrow chip */
.ui .btn-lg:is(.btn-ember, .btn-gold):not(:has(i))::after {
    content: "\F138"; font-family: "bootstrap-icons"; font-weight: normal; font-size: .95rem; line-height: 1;
    display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: rgba(255,255,255,.2); margin: -.35rem -.95rem -.35rem .75rem; transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .18s;
}
.ui .btn-lg:is(.btn-ember, .btn-gold):not(:has(i)):hover::after { transform: translateX(3px); background: rgba(255,255,255,.28); }

/* Navy buttons (admin and secondary actions) */
.ui .btn-primary { box-shadow: 0 10px 22px -12px rgba(35,42,86,.7); }
.ui .btn-primary:hover { transform: translateY(-1px); }

/* Quiet buttons */
.ui .btn-light, .ui .btn-outline-primary, .ui .btn-outline-secondary, .ui .btn-white {
    background: #fff; border: 1px solid var(--line); color: var(--brand-navy); box-shadow: 0 1px 2px rgba(18,21,40,.04);
}
.ui .btn-light:hover, .ui .btn-outline-primary:hover, .ui .btn-outline-secondary:hover, .ui .btn-white:hover {
    background: #F7F8FA; border-color: #B9BECB; color: var(--brand-navy);
}
.ui .btn-outline-danger { border-radius: 999px; }
.ui .btn-link { min-height: 0; box-shadow: none; }
/* Keep tiny icon-only buttons round */
.ui .btn-icon, .ui .pill-toggle { min-height: 0; }
@media (prefers-reduced-motion: reduce) {
    .ui .btn, .ui .btn::after { transition: none; }
    .ui .btn:hover, .ui .btn:active { transform: none !important; }
}
.app-pill { background: #fff; box-shadow: 0 10px 30px rgba(120,25,8,.18); }
.ui .app-hero.has-overlap .container { max-width: calc(46rem + 1.5rem); }
.ui .input-group > .form-control:first-child { border-radius: 999px 0 0 999px; }
.ui .input-group > .btn:last-child { border-radius: 0 999px 999px 0; }
.ui .input-group > .btn:first-child { border-radius: 999px 0 0 999px; }
.ui .input-group > .form-control:last-child { border-radius: 0 999px 999px 0; }
.ui .input-group > .form-control:not(:first-child):not(:last-child) { border-radius: 0; }

/* Buttons v2: softer rounded rectangles, calmer shadow, plain arrow */
.ui .btn { border-radius: .75rem; }
.ui .btn-sm { border-radius: .6rem; }
.ui .btn-lg { border-radius: .85rem; }
.ui .btn-ember, .ui .btn-gold, .ui .btn-ink, .ui .play-card .btn-white { box-shadow: 0 1px 2px rgba(120,25,8,.2), 0 6px 14px -8px rgba(217,56,28,.6); }
.ui .btn-ember:hover, .ui .btn-gold:hover, .ui .btn-ink:hover, .ui .play-card .btn-white:hover { box-shadow: 0 2px 4px rgba(120,25,8,.2), 0 10px 20px -10px rgba(217,56,28,.65); }
.ui .btn-lg:is(.btn-ember, .btn-gold):not(:has(i))::after { width: auto; height: auto; background: none !important; margin: 0 -.2rem 0 .6rem; font-size: 1rem; }
/* Secondary button: white, thin border, navy text */
.ui .btn-quiet { background: #fff; color: var(--brand-navy); border: 1px solid #D3D7E0; box-shadow: 0 1px 2px rgba(18,21,40,.05); }
.ui .btn-quiet:hover, .ui .btn-quiet:focus-visible { background: #fff; color: var(--brand-navy); border-color: var(--brand-navy); transform: translateY(-1px); }
.ui .btn-quiet:active { transform: translateY(0) scale(.98); }
/* Input-group joins follow the new radius */
.ui .input-group > .form-control:first-child { border-radius: .75rem 0 0 .75rem; }
.ui .input-group > .btn:last-child { border-radius: 0 .75rem .75rem 0; }
.ui .lp-actions { gap: .75rem; }

/* Account area buttons: same pair as the landing page */
.ui .play-card .btn-white { border-radius: .85rem; }
.ui.has-tabbar main .btn-primary {
    background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
    box-shadow: 0 1px 2px rgba(120,25,8,.2), 0 6px 14px -8px rgba(217,56,28,.6);
}
.ui.has-tabbar main .btn-primary:hover, .ui.has-tabbar main .btn-primary:focus-visible {
    background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); color: #fff; transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(120,25,8,.2), 0 10px 20px -10px rgba(217,56,28,.65);
}
.ui.has-tabbar main .btn-primary:disabled, .ui.has-tabbar main .btn-primary.disabled { background: #F0A08F; border-color: #F0A08F; box-shadow: none; }
.ui.has-tabbar main :is(.btn-light, .btn-outline-primary, .btn-outline-secondary) {
    background: #fff; color: var(--brand-navy); border: 1px solid #D3D7E0; box-shadow: 0 1px 2px rgba(18,21,40,.05);
}
.ui.has-tabbar main :is(.btn-light, .btn-outline-primary, .btn-outline-secondary):hover {
    background: #fff; color: var(--brand-navy); border-color: var(--brand-navy); transform: translateY(-1px);
}
.ui.has-tabbar main .btn-success { border-radius: .6rem; }

/* Challenge logo: checklist mark + two-line wordmark */
.logo, .pill-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.ui .brand-mark, .logo-mark { width: 2.25rem; height: 2.25rem; border-radius: 0; background: none; padding: 0; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.02; font-weight: 600; letter-spacing: -.02em; font-size: .98rem; white-space: nowrap; }
.logo-text > span:first-child { color: var(--brand-navy, #232A56); }
.logo-text > span:last-child { color: var(--brand-orange-text, #C0311A); }
.pill-brand img { border-radius: 0; }
.ui .admin-sidebar .brand-mark { width: 2.25rem; height: 2.25rem; }
.lp-footer-brand { display: grid; gap: .6rem; }
.lp-footer-brand p { font-size: .9rem; color: var(--muted); }
.ui .auth-card .btn-primary { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; box-shadow: 0 1px 2px rgba(120,25,8,.2), 0 6px 14px -8px rgba(217,56,28,.6); }
.ui .auth-card .btn-primary:hover, .ui .auth-card .btn-primary:focus-visible { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); color: #fff; transform: translateY(-1px); }
/* Logo is green */
.logo-text > span:last-child { color: var(--brand-green-text, #3D7A26); }

/* Getting-started guide: 1 Create account · 2 Pay entry · 3 Play */
.steps-guide { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; padding: 0; counter-reset: none; }
.steps-guide li { display: flex; align-items: center; gap: .45rem; flex: 1 1 0; min-width: 0; font-size: .85rem; font-weight: 600; color: var(--muted, #5F6476); }
.steps-guide li + li::before { content: ""; flex: 0 0 1rem; height: 2px; border-radius: 2px; background: var(--line, #E4E6EC); margin-right: .1rem; }
.steps-guide .dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; border: 1.5px solid var(--line, #E4E6EC); background: #fff; color: var(--muted, #5F6476); }
.steps-guide .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-guide .is-now { color: var(--brand-navy, #232A56); }
.steps-guide .is-now .dot { border-color: var(--brand-orange, #D9381C); background: var(--brand-orange, #D9381C); color: #fff; }
.steps-guide .is-done { color: var(--brand-green-text, #3D7A26); }
.steps-guide .is-done .dot { border-color: var(--brand-green, #64AB45); background: var(--brand-green, #64AB45); color: #fff; }
.steps-guide .is-done + li::before { background: var(--brand-green, #64AB45); }
@media (max-width: 359.98px) { .steps-guide li { font-size: .78rem; } .steps-guide li + li::before { flex-basis: .5rem; } }
.more-details > summary { cursor: pointer; font-weight: 600; color: var(--brand-navy); list-style: none; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0; }
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::before { content: "\F64D"; font-family: "bootstrap-icons"; font-size: .9rem; color: var(--brand-orange-text); transition: transform .15s; }
.more-details[open] > summary::before { transform: rotate(45deg); }

/* =====================================================================
   Quiz: focused, one question at a time
   ===================================================================== */
.ui:has(.quiz-focus) .mobile-tabbar { display: none !important; }
.ui.has-tabbar:has(.quiz-focus) { padding-bottom: 1rem; }
.quiz-focus { max-width: 40rem; margin: 0 auto; }
.qf-top { display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.qf-close { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--brand-navy); text-decoration: none; font-size: 1rem; }
.qf-close:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.qf-count { text-align: center; font-weight: 600; color: var(--muted); }
.qf-count strong { color: var(--brand-navy); }
.qf-timer { display: inline-flex; align-items: center; gap: .35rem; min-width: 2.75rem; justify-content: flex-end; padding: .4rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--brand-navy); font-variant-numeric: tabular-nums; }
.qf-timer.is-low { color: #fff; background: var(--brand-orange); border-color: var(--brand-orange); }
.qf-timer-quiet { color: var(--muted); font-size: .88rem; }
.qf-segments { display: flex; gap: 4px; margin-bottom: 1.5rem; }
.qf-segments span { flex: 1; height: 6px; border-radius: 99px; background: #DDE0E7; transition: background-color .2s; }
.qf-segments span.done { background: var(--brand-green); }
.qf-segments span.now { background: var(--brand-orange); }
.quiz-focus .quiz-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf-image { display: block; width: 100%; max-height: 18rem; object-fit: cover; border-radius: 1.25rem; margin-bottom: 1rem; }
.qf-question { font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--brand-navy); margin: 0 0 1.25rem; text-wrap: pretty; }
.qf-options { display: grid; gap: .65rem; }
.qf-option { position: relative; display: grid; grid-template-columns: 2.25rem 1fr 1.25rem; align-items: center; gap: .85rem; min-height: 3.6rem; padding: .75rem 1rem; background: #fff; border: 1.5px solid var(--line); border-radius: 1rem; cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s; }
.qf-option:hover { border-color: #B9BECB; }
.qf-option:active { transform: scale(.99); }
.qf-option input { position: absolute; opacity: 0; pointer-events: none; }
.qf-key { width: 2.25rem; height: 2.25rem; border-radius: .7rem; display: grid; place-items: center; background: #F3F4F7; color: var(--brand-navy); font-weight: 600; font-size: .9rem; }
.qf-text { font-weight: 500; color: var(--text); line-height: 1.35; }
.qf-tick { color: var(--brand-orange); font-size: 1.15rem; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.qf-option:has(input:checked) { border-color: var(--brand-orange); background: #FFF8F6; }
.qf-option:has(input:checked) .qf-key { background: var(--brand-orange); color: #fff; }
.qf-option:has(input:checked) .qf-tick { opacity: 1; transform: none; }
.qf-option:has(input:focus-visible) { outline: 3px solid rgba(217,56,28,.35); outline-offset: 2px; }
.qf-bar { margin-top: 1.5rem; }
.qf-summary { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.qf-actions { display: grid; grid-template-columns: auto 1fr; gap: .65rem; }
.qf-actions .btn { width: 100%; }
.qf-actions #prevBtn { width: auto; padding-inline: 1.1rem; }
.qf-actions #prevBtn:disabled { opacity: .45; }
.qf-save { text-align: center; color: var(--muted); font-size: .82rem; margin: 1rem 0 0; }
.qf-save.offline { color: var(--brand-orange-text); font-weight: 600; }
/* Without JavaScript every question shows with one submit button */
.quiz-focus.js .qf-nojs { display: none; }
.quiz-focus:not(.js) .quiz-q { margin-bottom: 2rem; }
@media (prefers-reduced-motion: reduce) { .qf-option, .qf-tick, .qf-segments span { transition: none; } }
/* Quiz intro */
.qi-card { border-radius: 1.75rem; }
.qi-badge { width: 3.5rem; height: 3.5rem; border-radius: 1.1rem; display: inline-grid; place-items: center; background: #F3F4F7; color: var(--brand-orange); font-size: 1.6rem; margin-bottom: 1rem; }
.qi-title { font-size: clamp(1.6rem, 5.5vw, 2.1rem); letter-spacing: -.03em; color: var(--brand-navy); margin-bottom: .6rem; }
.qi-facts { color: var(--brand-navy); font-weight: 600; margin-bottom: 1.75rem; line-height: 1.6; }
.qi-facts span { color: var(--muted); font-weight: 500; }
.qi-note { color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }
/* Quiz result */
.qr-actions { display: grid; gap: .65rem; margin-bottom: 1.5rem; }
@media (min-width: 576px) { .qr-actions { grid-template-columns: 1fr 1fr; } }
.qr-review { margin-top: .5rem; }
.qr-review > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.15rem; font-weight: 600; color: var(--brand-navy); margin-bottom: 1rem; }
.qr-review > summary::-webkit-details-marker { display: none; }
.qr-review > summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--brand-orange); transition: transform .15s; }
.qr-review[open] > summary::after { transform: rotate(180deg); }
.lp-fee-intl { margin: -.25rem 0 .75rem; font-weight: 600; color: var(--brand-navy, #232A56); }

/* =====================================================================
   Inner public pages: one white "sheet" rising over the orange hero.
   No floating card grids inside: sections are separated by space and a
   single hairline; headings do the grouping.
   ===================================================================== */
.ui .page-hero { padding-bottom: 6.75rem !important; }
@media (min-width: 992px) { .ui .page-hero { padding-bottom: 8rem !important; } }
.ui .page-hero + section { padding: 0 .75rem 3.5rem; }
.ui .page-hero + section > .container {
    position: relative; z-index: 2; margin-top: -4.5rem; max-width: 72rem;
    background: #fff; border-radius: 1.75rem; padding: 1.75rem 1.25rem 2.25rem;
    box-shadow: 0 30px 60px -36px rgba(18,21,40,.28);
}
@media (min-width: 768px) { .ui .page-hero + section > .container { padding: 2.75rem 2.75rem 3rem; border-radius: 2rem; } }
@media (min-width: 1200px) { .ui .page-hero + section > .container { padding: 3.5rem 3.75rem 4rem; margin-top: -5.25rem; } }

/* Cards inside the sheet become plain sections */
.ui .page-hero + section .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.ui .page-hero + section .card > .card-header { background: none; border: 0; padding: 0 0 .9rem; font-size: 1.1rem; font-weight: 600; color: var(--brand-navy); letter-spacing: -.01em; }
.ui .page-hero + section .card > .card-body { padding-left: 0; padding-right: 0; }
.ui .page-hero + section .card > .card-body:first-child { padding-top: 0; }
.ui .page-hero + section .card > .list-group-flush > .list-group-item { padding-left: 0; padding-right: 0; background: transparent; }
.ui .page-hero + section .card + .card, .ui .page-hero + section .card.mb-4 + * { border-top: 1px solid var(--line); padding-top: 1.75rem; margin-top: .25rem; }
/* Grids of items: quiet tinted tiles, no borders or shadows */
.ui .page-hero + section .row > [class*="col"] > .card.h-100 { background: #F7F8FA; border-radius: 1.25rem; padding: .35rem .25rem; }
.ui .page-hero + section .row > [class*="col"] > .card.h-100 > .card-body { padding: 1.25rem 1.25rem; }
.ui .page-hero + section .stat { background: transparent; border: 0; padding: .25rem 0; text-align: left; }
.ui .page-hero + section .stat-value { color: var(--brand-orange-text); font-size: 2.1rem; }
.ui .page-hero + section .alert-light { background: #F7F8FA; border: 0 !important; border-radius: 1rem; }
.ui .page-hero + section h2.h4, .ui .page-hero + section h2.h5 { color: var(--brand-navy); letter-spacing: -.02em; }

/* Sheet section title + spacing */
.sheet-h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.03em; color: var(--brand-navy); margin: 0 0 1.25rem; }
.sheet-section + .sheet-section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.sheet-lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.75rem; }

/* Row lists: one item per line, chevron on the right */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list > li + li { border-top: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.15rem .25rem; text-decoration: none; color: var(--text); border-radius: .9rem; transition: background-color .15s; }
.row-link:hover { background: #F7F8FA; color: var(--text); }
.row-link .rl-title { font-weight: 600; color: var(--brand-navy); font-size: 1.08rem; }
.row-link .rl-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .2rem; }
.row-link .rl-end { display: flex; align-items: center; gap: .9rem; }
.row-link .rl-end .bi-chevron-right { color: #A3A8B6; transition: translate .15s; }
.row-link:hover .rl-end .bi-chevron-right { translate: 3px 0; color: var(--brand-orange); }

/* Long-form reading layout with a sticky contents list */
.doc-layout { display: grid; gap: 2rem; }
@media (min-width: 992px) {
    .doc-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; }
    .doc-aside { position: sticky; top: 6.5rem; align-self: start; }
}
.doc-main { min-width: 0; }
.ui .doc-main article.prose { background: none; border: 0; border-radius: 0; padding: 0; max-width: 42rem; font-size: 1.04rem; line-height: 1.75; }
.ui .doc-main article.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; scroll-margin-top: 6.5rem; }
.ui .doc-main article.prose h2:first-child { margin-top: 0; }
.ui .doc-main article.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; scroll-margin-top: 6.5rem; }
.ui .doc-main article.prose li { margin-bottom: .35rem; }
.toc-title { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0 0 .65rem; }
.toc { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.toc a:hover { color: var(--brand-navy); }
.toc a.is-active { color: var(--brand-orange-text); border-left-color: var(--brand-orange); font-weight: 600; }
@media (max-width: 991.98px) { .doc-aside .toc-block { display: none; } }
.doc-aside .link-list { margin-top: .5rem; }

/* Reading layout: article first on phones */
@media (max-width: 991.98px) { .doc-aside { order: 2; } .doc-main { order: 1; } }

/* How it works */
.hiw3 { display: grid; gap: 1.75rem; counter-reset: none; }
.hiw3 li { position: relative; }
.hiw3-n { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--brand-orange); color: var(--brand-orange-text); font-weight: 600; font-size: 1.15rem; background: #fff; position: relative; z-index: 1; margin-bottom: 1rem; }
.hiw3 h3 { font-size: 1.15rem; color: var(--brand-navy); margin-bottom: .35rem; letter-spacing: -.015em; }
.hiw3 p { color: var(--muted); margin: 0; max-width: 22rem; }
@media (min-width: 768px) {
    .hiw3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
    .hiw3 li:not(:last-child)::after { content: ""; position: absolute; top: 1.5rem; left: 3.75rem; right: -1.75rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
}
.hiw-split { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .hiw-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.hiw-nums { display: grid; gap: 1.1rem; }
.hiw-nums div { display: flex; align-items: baseline; gap: 1rem; }
.hiw-nums dt { font-size: 2.4rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--brand-orange-text); min-width: 4.5rem; font-variant-numeric: tabular-nums; }
.hiw-nums dd { margin: 0; color: var(--muted); }
.sheet-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Guardianship: funding box and updates timeline */
.fund-box { background: #F7F8FA; border-radius: 1.25rem; padding: 1.25rem; }
.fund-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; border-top: 1px solid var(--line); }
.fund-list > div:first-child { border-top: 0; }
.fund-list dt { font-weight: 400; color: var(--muted); }
.fund-list dd { margin: 0; font-weight: 600; color: var(--brand-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fund-list .is-total dt { color: var(--brand-navy); font-weight: 600; }
.fund-list .is-total dd { color: var(--brand-green-text); }
.fund-box .link-row { padding-inline: .25rem; }
.timeline { margin-top: .5rem; }
.timeline li { display: grid; gap: .35rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: .25rem; }
.timeline time { color: var(--brand-orange-text); font-weight: 600; font-size: .9rem; }
.timeline h3 { font-size: 1.1rem; color: var(--brand-navy); margin: 0 0 .4rem; }
.tl-img { width: 100%; max-height: 16rem; object-fit: cover; border-radius: 1rem; margin: .25rem 0 .75rem; }
@media (min-width: 768px) { .timeline li { grid-template-columns: 7.5rem minmax(0, 1fr); } .timeline time { padding-top: .15rem; } }

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-grid dt { display: flex; align-items: center; gap: .65rem; font-weight: 600; color: var(--brand-navy); margin-bottom: .5rem; }
.contact-grid dd { margin: 0; padding-left: 2.9rem; overflow-wrap: anywhere; }
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .contact-grid > div { padding: 0 1.75rem; border-left: 1px solid var(--line); }
    .contact-grid > div:first-child { padding-left: 0; border-left: 0; }
}

/* FAQ inside the sheet: flat rows with a plus */
.ui .page-hero + section .accordion { --bs-accordion-border-width: 0; --bs-accordion-bg: transparent; max-width: 48rem; }
.ui .page-hero + section .accordion-item { border: 0; border-top: 1px solid var(--line); border-radius: 0 !important; background: transparent; }
.ui .page-hero + section .accordion-item:last-child { border-bottom: 1px solid var(--line); }
.ui .page-hero + section .accordion-button { padding: 1.25rem 0; font-size: 1.05rem; background: transparent; box-shadow: none; gap: 1rem; }
.ui .page-hero + section .accordion-button::after { background-image: none; content: "\F64D"; font-family: "bootstrap-icons"; width: auto; height: auto; font-size: 1.1rem; color: var(--brand-orange); transform: none; transition: transform .2s; }
.ui .page-hero + section .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.ui .page-hero + section .accordion-body { padding: 0 2.5rem 1.4rem 0; line-height: 1.7; }
.ui .doc-main article.prose h3 { font-size: 1.3rem; letter-spacing: -.02em; color: var(--brand-navy); margin: 2.25rem 0 .6rem; }
.ui .doc-main article.prose h3:first-child, .ui .doc-main article.prose h2 + h3 { margin-top: 0; }
.ui .doc-main article.prose p { color: var(--text); }
.sheet-cta > div:first-child { flex: 1 1 22rem; max-width: 40rem; } .sheet-cta > .btn, .sheet-cta > .lp-actions { flex: 0 0 auto; }
/* Competition detail: weekly rounds as rows */
.ui .page-hero + section .round-tile { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 1rem .25rem; margin: 0; }
.ui .page-hero + section .d-grid > .round-tile:first-child { border-top: 0; }
.ui .page-hero + section .round-tile.is-open { background: #FFF8F6; border-radius: .9rem; border-top-color: transparent; }
.ui .page-hero + section .round-tile.is-open + .round-tile { border-top-color: transparent; }
.ui .page-hero + section .card-body.d-grid { gap: 0 !important; }
@media (max-width: 575.98px) { .sheet-cta > .lp-actions, .sheet-cta > .btn { flex: 1 1 100%; } .sheet-cta .lp-actions .btn { flex: 1 1 100%; } }
/* Merged How it works: anchor targets clear the floating menu; columns fit the reading column */
.doc-main .sheet-section { scroll-margin-top: 6.5rem; }
.doc-main .sheet-section:first-child { padding-top: 0; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .doc-main .hiw3 { grid-template-columns: 1fr; gap: 1.5rem; }
    .doc-main .hiw3 li::after { display: none; }
    .doc-main .hiw-split { grid-template-columns: 1fr; gap: 2rem; }
}
.doc-main .hiw3 li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.doc-main .hiw3 .hiw3-n { grid-row: span 2; margin-bottom: 0; }
@media (min-width: 1200px) {
    .doc-main .hiw3 li { display: block; }
    .doc-main .hiw3 .hiw3-n { margin-bottom: 1rem; }
}
.doc-main .accordion { max-width: none; }
