/* ==========================================================================
   CRSGlobal Ministries - theme
   Palette drawn from first-century Judea and the Passion story:
   night of Gethsemane, royal (Tyrian) purple, crimson, olive, limestone,
   parchment, and the gold of resurrection morning.
   ========================================================================== */
:root {
    --night: #171028;
    --night-2: #241640;
    --royal: #4a1d6e;
    --royal-2: #6a2f96;
    --crimson: #8e1b2a;
    --crimson-2: #b3273a;
    --gold: #c9a227;
    --gold-2: #e9cf7a;
    --dawn: #f08a4b;
    --olive: #55683a;
    --olive-2: #7a8f55;
    --stone: #6f6457;
    --sand: #e6d5b0;
    --parchment: #f7f0e1;
    --parchment-2: #fbf7ee;
    --ink: #2a2118;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(23, 16, 40, .12);
    --font-display: "Cinzel", "Times New Roman", serif;
    --font-scripture: "EB Garamond", Georgia, serif;
    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-link-color: var(--royal);
    --bs-link-color-rgb: 74, 29, 110;
    --bs-link-hover-color: var(--crimson);
    --bs-link-hover-color-rgb: 142, 27, 42;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--parchment-2);
    line-height: 1.6;
}
h1, h2, h3, .display-font { font-family: var(--font-display); letter-spacing: .02em; color: var(--night-2); }
h4, h5, h6 { color: var(--night-2); }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.25rem; }
.btn-sm { padding: .3rem .9rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--night); border: 0; }
.btn-gold:hover, .btn-gold:focus { background: linear-gradient(135deg, #f4e09a, #d9b338); color: var(--night); }
.btn-outline-gold { border: 2px solid var(--gold-2); color: var(--gold-2); }
.btn-outline-gold:hover, .btn-outline-gold:focus { background: var(--gold-2); color: var(--night); }
.btn-royal { background: var(--royal); color: #fff; border: 0; }
.btn-royal:hover, .btn-royal:focus { background: var(--royal-2); color: #fff; }
.btn-crimson { background: var(--crimson); color: #fff; border: 0; }
.btn-crimson:hover, .btn-crimson:focus { background: var(--crimson-2); color: #fff; }
.btn-olive { background: var(--olive); color: #fff; border: 0; }
.btn-olive:hover, .btn-olive:focus { background: var(--olive-2); color: #fff; }
.btn-outline-royal { border: 2px solid var(--royal); color: var(--royal); }
.btn-outline-royal:hover, .btn-outline-royal:focus { background: var(--royal); color: #fff; }
.btn-light-outline { border: 2px solid rgba(255, 255, 255, .75); color: #fff; }
.btn-light-outline:hover, .btn-light-outline:focus { background: #fff; color: var(--night); }

/* ---------- top bar + navigation ---------- */
.topbar { background: var(--crimson); color: #fff; font-size: .85rem; padding: .35rem 0; }
.topbar-text { letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.topbar-link { color: #fff; text-decoration: none; }
.topbar-link:hover { color: var(--gold-2); }
.site-nav { background: linear-gradient(90deg, var(--night) 0%, var(--royal) 100%); box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, var(--gold-2), var(--gold) 60%, #8a6c10); color: var(--night); font-size: 1.25rem; }
.brand-name small { font-size: .62em; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); display: block; line-height: 1; }
.brand-name { line-height: 1.05; }
.site-nav .nav-link { color: rgba(255, 255, 255, .88); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link:focus { color: var(--gold-2); }
.dropdown-menu { border-radius: 12px; border: 1px solid var(--sand); box-shadow: var(--shadow); }
.dropdown-item.active, .dropdown-item:active { background: var(--royal); }
.role-badge { background: var(--gold); color: var(--night); font-weight: 600; }
.notif-badge { position: absolute; top: 2px; right: -4px; font-size: .62rem; }
.area-nav { background: #fff; border-bottom: 1px solid var(--sand); overflow-x: auto; }
.area-nav .nav { padding: .4rem 0; gap: .15rem; white-space: nowrap; }
.area-nav .nav-link { color: var(--stone); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; font-weight: 500; }
.area-nav .nav-link.active { background: var(--royal); color: #fff; }
.area-nav .nav-link:hover:not(.active) { background: var(--parchment); color: var(--royal); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--night); text-align: center; }
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0d0920 0%, #241640 38%, #4a1d6e 62%, #7b2d5b 80%); }
.hero-dawn { position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(180deg, #2b1b52 0%, #7b2d5b 28%, #f08a4b 56%, #f7c873 78%); }
#heroStars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-top { position: relative; z-index: 3; padding-top: clamp(1.5rem, 4vh, 2.75rem); }
.hero-eyebrow { letter-spacing: .35em; text-transform: uppercase; font-size: .78rem; color: var(--gold-2); font-weight: 600; margin-bottom: .5rem; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.3vw, 3.3rem); color: #fff; line-height: 1.12; margin: 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.hero-title .risen { display: block; background: linear-gradient(180deg, #fff6d6, var(--gold-2) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55)); }
.hero-stage { position: relative; z-index: 2; margin-top: -1.25rem; }
.hero-scene { display: block; width: max(100%, 640px); max-width: 1080px; height: auto; margin-left: 50%; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.hero-phase { position: absolute; left: 0; right: 0; top: 16%; z-index: 2; margin: 0; font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase;
    font-size: clamp(.78rem, 1.5vw, 1.05rem); font-weight: 700; color: #fff6d6; text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.hero-bottom { position: relative; z-index: 3; background: #0a0613; padding: .25rem 0 clamp(2.5rem, 6vh, 3.5rem); }
.hero-verse { font-family: var(--font-scripture); font-size: clamp(1.05rem, 2vw, 1.35rem); font-style: italic; max-width: 46rem; margin: 0 auto; color: rgba(255, 255, 255, .92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.25rem; }
.hero-cta .btn { min-width: 12rem; letter-spacing: .06em; text-transform: uppercase; font-size: .84rem; padding: .75rem 1.3rem; }
.motion-toggle { position: absolute; right: .75rem; bottom: .6rem; z-index: 4; background: rgba(23, 16, 40, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: .74rem; padding: .25rem .75rem; }
@media (max-width: 575.98px) {
    .hero-cta .btn { min-width: 0; width: 100%; }
    .hero-bottom { padding-bottom: 3.25rem; }
}

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-parchment { background: var(--parchment); }
.section-night { background: linear-gradient(135deg, var(--night) 0%, var(--royal) 100%); color: #fff; }
.section-night h2, .section-night h3 { color: #fff; }
.section-olive { background: linear-gradient(135deg, #3f4f2a, var(--olive)); color: #fff; }
.section-olive h2, .section-olive h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow, .eyebrow { display: block; letter-spacing: .28em; text-transform: uppercase; font-size: .76rem; font-weight: 700; color: var(--crimson); margin-bottom: .4rem; }
.section-night .eyebrow, .section-olive .eyebrow { color: var(--gold-2); }
.section-title h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .4rem; }
.section-title p { color: var(--stone); max-width: 40rem; margin: 0 auto; }
.section-night .section-title p, .section-olive .section-title p { color: rgba(255, 255, 255, .82); }
.divider-cross { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin: .6rem auto 0; }
.divider-cross::before, .divider-cross::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider-cross::after { transform: scaleX(-1); }
.page-header { background: linear-gradient(135deg, var(--night) 0%, var(--royal) 70%, var(--crimson) 130%); color: #fff; padding: 2.75rem 0 2.25rem; }
.page-header h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }
.page-header p { color: rgba(255, 255, 255, .85); margin: .5rem 0 0; max-width: 46rem; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); margin-bottom: .6rem; font-size: .88rem; }
.page-header .breadcrumb a { color: var(--gold-2); }
.page-header .breadcrumb-item.active { color: rgba(255, 255, 255, .8); }

/* ---------- cards ---------- */
.card { border: 1px solid #eadfc6; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(23, 16, 40, .05); }
.card-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-lift:hover, .card-lift:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-title { font-family: var(--font-display); color: var(--night-2); }
.icon-tile { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: linear-gradient(135deg, var(--royal), var(--crimson)); color: #fff; flex: 0 0 auto; }
.icon-tile.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--night); }
.icon-tile.olive { background: linear-gradient(135deg, var(--olive-2), var(--olive)); }
.stretched-link:focus-visible { outline: none; }
.badge.text-bg-info { background-color: var(--royal) !important; color: #fff !important; }

/* ---------- scripture ---------- */
.scripture { font-family: var(--font-scripture); font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.45; color: var(--night-2); }
.scripture-inline { font-family: var(--font-scripture); font-style: italic; font-size: 1.15rem; }
.scripture-ref { font-family: var(--font-display); color: var(--crimson); letter-spacing: .08em; font-weight: 700; }
blockquote.verse { font-family: var(--font-scripture); font-size: 1.2rem; border-left: 4px solid var(--gold); background: var(--parchment); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1rem; }
blockquote.verse cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: .85rem; font-weight: 700; color: var(--crimson); margin-top: .4rem; }
.promise-card { position: relative; background: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); border: 1px solid #eadfc6; overflow: hidden; }
.promise-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--crimson), var(--gold), var(--royal)); }
.promise-date { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.promise-actions .btn { font-size: .85rem; }
.promise-block h3 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-bottom: .4rem; font-family: var(--font-ui); font-weight: 700; }
.ai-generated { border: 1px dashed var(--royal-2); background: #f6effc; border-radius: var(--radius); padding: 1rem 1.25rem; position: relative; }
.ai-generated::before { content: "Generated summary - not Scripture"; display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--royal); margin-bottom: .4rem; }

/* ---------- bible reader ---------- */
.verse-list { font-family: var(--font-scripture); font-size: 1.25rem; line-height: 1.75; }
.verse-list .v { display: block; padding: .1rem .5rem; border-radius: 8px; scroll-margin-top: 130px; }
.verse-list .v:target, .verse-list .v.is-selected { background: #fbeec0; }
.verse-list sup { font-family: var(--font-ui); font-size: .62em; font-weight: 700; color: var(--crimson); margin-right: .35em; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.book-grid a { display: block; padding: .6rem .8rem; border-radius: 10px; background: #fff; border: 1px solid #eadfc6; text-decoration: none; color: var(--ink); font-weight: 500; }
.book-grid a:hover, .book-grid a:focus { border-color: var(--gold); background: var(--parchment); color: var(--royal); }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .4rem; }
.chapter-grid a { text-align: center; padding: .45rem 0; border-radius: 8px; background: #fff; border: 1px solid #eadfc6; text-decoration: none; color: var(--ink); font-weight: 600; }
.chapter-grid a:hover, .chapter-grid a.active { background: var(--royal); color: #fff; border-color: var(--royal); }
mark, .hl { background: #fbeec0; padding: 0 .15em; border-radius: 3px; }

/* ---------- timeline ---------- */
.timeline-wrap { position: relative; }
.timeline-track { display: flex; gap: 1rem; overflow-x: auto; padding: 2.5rem 1rem 1.5rem; scroll-snap-type: x proximity; position: relative; }
.timeline-track { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.timeline-track::-webkit-scrollbar { height: 8px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.timeline-track::-webkit-scrollbar-track { background: transparent; }
.timeline-track::before { content: ""; position: absolute; left: 0; right: 0; top: 4.15rem; height: 3px; min-width: 100%; background: linear-gradient(90deg, var(--royal), var(--crimson), var(--gold)); opacity: .5; }
.timeline-node { position: relative; flex: 0 0 150px; scroll-snap-align: center; text-align: center; background: none; border: 0; padding: 0; color: inherit; }
.timeline-dot { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    background: #fff; border: 3px solid var(--royal); color: var(--royal); position: relative; z-index: 1; transition: transform .25s ease, background .25s ease; }
.timeline-node:hover .timeline-dot, .timeline-node:focus-visible .timeline-dot { transform: scale(1.12); }
.timeline-node.active .timeline-dot { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: var(--crimson); color: var(--night); transform: scale(1.18); box-shadow: 0 0 0 8px rgba(201, 162, 39, .22); }
.timeline-node .t-title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.2; display: block; }
.timeline-node .t-date { font-size: .74rem; color: var(--stone); }
.section-night .timeline-node .t-date { color: rgba(255, 255, 255, .7); }
.timeline-detail { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); border: 1px solid #eadfc6; }
.timeline-art { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #fff;
    background: radial-gradient(circle at 50% 35%, var(--royal-2), var(--night)); box-shadow: inset 0 0 0 6px rgba(233, 207, 122, .5); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; background: var(--parchment); border: 1px solid var(--sand); font-size: .84rem; color: var(--ink); text-decoration: none; margin: 0 .25rem .35rem 0; }
button.chip { cursor: pointer; }
button.chip:hover, button.chip:focus { background: var(--gold-2); border-color: var(--gold); color: var(--night); }
a.chip:hover, a.chip:focus { background: var(--gold-2); border-color: var(--gold); color: var(--night); }

/* ---------- relationship diagram ---------- */
.relation-diagram { width: 100%; height: auto; max-height: 440px; }
.relation-diagram .rel-line { stroke: var(--gold); stroke-width: 2; }
.relation-diagram .rel-node circle { fill: #fff; stroke: var(--royal); stroke-width: 3; }
.relation-diagram .rel-node.center circle { fill: var(--royal); stroke: var(--gold); }
.relation-diagram .rel-node text { font-family: var(--font-ui); font-size: 12px; fill: var(--ink); text-anchor: middle; }
.relation-diagram .rel-node.center text { fill: #fff; font-weight: 700; }
.relation-diagram .rel-label { font-size: 10px; fill: var(--stone); text-anchor: middle; }
.relation-diagram a:focus-visible circle { stroke: var(--crimson); stroke-width: 5; }

/* ---------- stats / counters ---------- */
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.1rem); color: var(--gold-2); line-height: 1; }
.stat-label { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; margin-top: .5rem; color: rgba(255, 255, 255, .85); }
.kpi { background: #fff; border: 1px solid #eadfc6; border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; display: flex; align-items: center; gap: .9rem; }
.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--night-2); line-height: 1; }
.kpi-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.kpi.is-alert { border-color: var(--crimson); }
.kpi.is-alert .kpi-value { color: var(--crimson); }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover, a.kpi:focus { border-color: var(--gold); box-shadow: var(--shadow); }

/* ---------- videos ---------- */
.video-card video { width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.video-meta { font-size: .8rem; color: var(--stone); }
.video-feature { background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.video-feature video { width: 100%; max-height: 70vh; display: block; background: #000; }

/* ---------- lottie ---------- */
.lottie-box { width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--gold-2); }
.lottie-box > svg:not(.icon-cross) { width: 100%; height: 100%; }

/* ---------- prayer wall ---------- */
.prayer-card { border-left: 4px solid var(--royal); }
.prayer-card.is-answered { border-left-color: var(--olive); }
.pray-btn.prayed { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------- workflow / status ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: #fff; border: 1px solid #eadfc6; font-size: .84rem; color: var(--stone); }
.steps li::before { content: counter(step); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sand); color: var(--ink); font-weight: 700; font-size: .78rem; }
.steps li.done { color: var(--olive); border-color: var(--olive-2); }
.steps li.done::before { content: "\2713"; background: var(--olive); color: #fff; }
.steps li.current { color: var(--night-2); border-color: var(--gold); font-weight: 600; background: #fff9e2; }
.steps li.current::before { background: var(--gold); color: var(--night); }
.steps li.attention { border-color: var(--crimson); color: var(--crimson); }
.steps li.attention::before { content: "!"; background: var(--crimson); color: #fff; }
.tracker { list-style: none; padding: 0; margin: 0; }
.tracker li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--sand); }
.tracker li:last-child { border-bottom: 0; }
.tracker .ok { color: var(--olive); font-weight: 700; }
.tracker .warn { color: var(--crimson); font-weight: 700; }
.tracker .wait { color: var(--stone); }
.wizard-progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.wizard-progress > div { height: 100%; background: linear-gradient(90deg, var(--royal), var(--gold)); transition: width .4s ease; }
.history-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--sand); }
.history-list li { position: relative; padding: 0 0 1rem 1.25rem; }
.history-list li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.separation-note { border-left: 4px solid var(--royal); background: #f6effc; padding: .6rem .9rem; border-radius: 0 10px 10px 0; font-size: .88rem; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); border-bottom-width: 2px; white-space: nowrap; }
.table > :not(caption) > * > * { background: transparent; }
.table-card { background: #fff; border: 1px solid #eadfc6; border-radius: var(--radius); overflow: hidden; }
.table-card .table { margin: 0; }
.msg { max-width: 82%; padding: .6rem .9rem; border-radius: 14px; margin-bottom: .6rem; background: var(--parchment); }
.msg.mine { margin-left: auto; background: #efe3fa; }
.msg small { display: block; color: var(--stone); font-size: .74rem; margin-top: .2rem; }
.form-label { font-weight: 600; font-size: .92rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .28); }
.form-check-input:checked { background-color: var(--royal); border-color: var(--royal); }
.required::after { content: " *"; color: var(--crimson); }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card label { display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem; border: 2px solid #eadfc6; border-radius: var(--radius); background: #fff; cursor: pointer; height: 100%; }
.choice-card input:checked + label { border-color: var(--royal); background: #f6effc; }
.choice-card input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.auth-card { max-width: 460px; margin: 0 auto; }
.error-code { font-family: var(--font-display); font-size: 5rem; color: var(--gold); line-height: 1; }
.debug-box { max-width: 900px; white-space: pre-wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .82); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--gold-2); text-decoration: underline; }
.site-footer li { margin-bottom: .35rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer-heading { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .8rem; }
.site-footer hr { border-color: rgba(255, 255, 255, .2); margin: 2rem 0 1rem; }
.site-footer cite { color: var(--gold-2); font-style: normal; font-size: .85rem; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.no-motion .reveal, .no-js .reveal { opacity: 1; transform: none; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: floaty 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
.no-motion [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-motion .float { animation: none; }

@media print {
    .topbar, .site-nav, .area-nav, .site-footer, .btn, .motion-toggle { display: none !important; }
    body { background: #fff; }
}
