/* ==========================================================================
   Prayer Journal — design system
   Tokens are overridable at runtime: site settings set --brand / --accent on
   :root, and a course can set its own accent on .course-theme.
   ========================================================================== */

:root {
    --brand: #232d47;
    --brand-ink: #161c2e;
    --brand-500: #3a4a73;
    --brand-soft: #f1f3f8;
    --brand-softer: #f8f9fb;
    --accent: #c9a227;
    --accent-ink: #8a6b0f;
    --accent-soft: #fbf3d8;

    --bg: #f9fafc;
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --surface-3: #e8ebf2;
    --border: #e1e5ee;
    --border-strong: #cbd1e0;
    --text: #141924;
    --text-2: #434957;
    --muted: #6f7585;
    --on-brand: #ffffff;

    --success: #13795b;
    --success-soft: #e3f5ee;
    --danger: #c0352b;
    --danger-soft: #fdecea;
    --warning: #a35f00;
    --warning-soft: #fff3df;
    --info: #1d5fbf;
    --info-soft: #e6f0fd;

    --hl-yellow: #fff3a3;
    --hl-green: #c8f2d0;
    --hl-blue: #cfe5ff;
    --hl-pink: #ffd6e7;
    --hl-purple: #cdd3e3;
    --hl-orange: #ffe0c2;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-xs: 0 1px 2px rgba(20, 25, 36, .06);
    --shadow-sm: 0 1px 3px rgba(20, 25, 36, .08), 0 1px 2px rgba(20, 25, 36, .04);
    --shadow: 0 6px 24px -6px rgba(22, 28, 46, .14), 0 2px 6px rgba(20, 25, 36, .05);
    --shadow-lg: 0 24px 60px -16px rgba(22, 28, 46, .28);
    --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-read: 'Literata', Georgia, 'Times New Roman', serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --reading-font: var(--font-read);

    --header-h: 64px;
    --container: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --brand-ink: #dfe6f6;
    --brand-500: #98a7cf;
    /* Filled brand surfaces with white text (buttons, active chips); --brand-500 is too light for that. */
    --brand-fill: #3a4a73;
    --brand-soft: #1f283d;
    --brand-softer: #171c29;
    --accent-ink: #f0d27a;
    --accent-soft: #33290f;

    --bg: #0c0f15;
    --surface: #13161f;
    --surface-2: #1a1e29;
    --surface-3: #242936;
    --border: #262b39;
    --border-strong: #343c50;
    --text: #edf0f7;
    --text-2: #c5cbda;
    --muted: #9299ab;

    --success: #4cc79a;
    --success-soft: #11291f;
    --danger: #ff7a6e;
    --danger-soft: #32161a;
    --warning: #f2b04f;
    --warning-soft: #2f2210;
    --info: #79aaff;
    --info-soft: #14233b;

    --hl-yellow: rgba(255, 222, 89, .28);
    --hl-green: rgba(76, 199, 120, .28);
    --hl-blue: rgba(89, 158, 255, .3);
    --hl-pink: rgba(255, 105, 170, .28);
    --hl-purple: rgba(110, 127, 173, .38);
    --hl-orange: rgba(255, 150, 70, .28);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow: 0 8px 28px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

:root[data-text="sm"] { font-size: 15px; }
:root[data-text="md"] { font-size: 16px; }
:root[data-text="lg"] { font-size: 17.5px; }
:root[data-text="xl"] { font-size: 19px; }
:root[data-reading="sans"] { --reading-font: var(--font-body); }
:root[data-reading="serif"] { --reading-font: var(--font-read); }

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

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
h1, h2, .display { font-family: var(--font-display); }
h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.5vw + 1rem, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
:where(a) { color: var(--brand-500); text-decoration: none; transition: color .15s; }
:where(:root:not([data-theme="dark"])) :where(a) { color: var(--brand); }
:where(a):hover { color: var(--accent-ink); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
small, .small { font-size: .85rem; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2rem; height: 2rem; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }
.container-wide { max-width: 1400px; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-sm { --stack: .5rem; }
.stack-lg { --stack: 1.75rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-nowrap { flex-wrap: nowrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.center { justify-content: center; }
.items-start { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-xs { gap: .35rem; } .gap-sm { gap: .5rem; } .gap-lg { gap: 1.25rem; } .gap-xl { gap: 2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.split-left { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .split-left { grid-template-columns: 1fr; }
    .sticky { position: static; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 2.75rem 0; }
    .container { padding: 0 1rem; }
    .hide-sm { display: none !important; }
}
@media (min-width: 641px) { .show-sm { display: none !important; } }

.text-muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text-brand { color: var(--brand-500); }
.text-accent { color: var(--accent-ink); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-lg { font-size: 1.125rem; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--text);
    --btn-bd: var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.6rem; padding: .55rem 1.1rem;
    font: 600 .92rem/1.2 var(--font-body);
    color: var(--btn-fg); background: var(--btn-bg);
    border: 1px solid var(--btn-bd); border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); background: color-mix(in srgb, var(--btn-bg) 92%, var(--text)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-xs); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); color: #fff; }
:root[data-theme="dark"] .btn-primary { --btn-bg: var(--brand-fill); --btn-bd: var(--brand-fill); }
:root[data-theme="dark"] .btn-primary:hover { background: color-mix(in srgb, var(--brand-fill) 85%, #fff); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: #141924; --btn-bd: var(--accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); color: #141924; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-ink); --btn-bd: transparent; }
:root:not([data-theme="dark"]) .btn-soft { --btn-fg: var(--brand); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-light { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-sm { min-height: 2.1rem; padding: .35rem .75rem; font-size: .84rem; }
.btn-xs { min-height: 1.75rem; padding: .2rem .55rem; font-size: .78rem; border-radius: var(--radius-xs); }
.btn-lg { min-height: 3.1rem; padding: .8rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 2.6rem; min-width: 2.6rem; }
.btn-icon.btn-sm { width: 2.1rem; min-width: 2.1rem; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.btn-group .btn + .btn { margin-left: -1px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-500); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--accent-ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.label { font-size: .86rem; font-weight: 600; color: var(--text); }
.label .opt { font-weight: 400; color: var(--muted); }
.help { font-size: .8rem; color: var(--muted); }
.error-text { font-size: .8rem; color: var(--danger); }
.input, .select, .textarea {
    width: 100%; min-height: 2.65rem; padding: .6rem .8rem;
    font: 400 .95rem/1.4 var(--font-body); color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23776f85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.input-sm, .select.input-sm { min-height: 2.15rem; padding: .35rem .65rem; font-size: .85rem; }
.input-lg { min-height: 3.2rem; font-size: 1.05rem; padding: .75rem 1rem; }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; }
.input-addon { display: flex; align-items: center; padding: 0 .75rem; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-size: .9rem; }
.input-addon:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.input-addon + .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 2.4rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .93rem; }
.check input { margin-top: .22rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brand-500); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .93rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 2.5rem; height: 1.45rem; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.45rem - 6px); height: calc(1.45rem - 6px); border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--brand-500); border-color: var(--brand-500); }
.switch input:checked + .track::after { transform: translateX(1.05rem); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.25rem; }
.fieldset legend { padding: 0 .4rem; font-weight: 700; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.color-input { width: 3rem; height: 2.65rem; padding: .2rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.segmented { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 7px; font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-body { padding: 1.5rem; }
.card-body-sm { padding: 1rem 1.15rem; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-header h2, .card-header h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
a.card { color: inherit; display: block; }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; }
.divider-list > * + * { border-top: 1px solid var(--border); }

/* ---------- Badges, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
:root:not([data-theme="dark"]) .badge-brand { color: var(--brand); }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .85rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--brand-500); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .chip.is-active { background: var(--brand-fill); border-color: var(--brand-fill); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Alerts / toasts ---------- */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--info-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); font-size: .93rem; }
.alert > .icon { color: var(--info); margin-top: .1rem; }
.alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-success > .icon { color: var(--success); }
.alert-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-danger > .icon { color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-warning > .icon { color: var(--warning); }
.toasts { position: fixed; z-index: 200; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; background: var(--text); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .35s var(--ease); }
.toast .icon { margin-top: .1rem; }
.toast-success .icon { color: #59d8a7; }
.toast-error .icon { color: #ff8f84; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Header / navigation ---------- */
.announcement { background: linear-gradient(90deg, var(--brand-ink), var(--brand)); color: #fff; text-align: center; font-size: .86rem; font-weight: 500; padding: .5rem 1rem; }
:root[data-theme="dark"] .announcement { background: linear-gradient(90deg, #161c2e, #232d47); }
.announcement a { color: var(--accent); text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { height: 36px; width: 36px; object-fit: contain; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: .75rem; }
.nav-link { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .7rem; white-space: nowrap; border-radius: var(--radius-sm); color: var(--text-2) !important; font-size: .92rem; font-weight: 500; }
.nav-link:hover { background: var(--surface-2); color: var(--text) !important; }
.nav-link.is-active { color: var(--text) !important; background: var(--brand-soft); }
.nav-search { flex: 1 1 auto; max-width: 340px; margin-left: auto; }
.nav-search .input { min-height: 2.35rem; border-radius: 99px; background: var(--surface-2); border-color: transparent; font-size: .88rem; }
.nav-search .input:focus { background: var(--surface); border-color: var(--brand-500); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.nav-actions .btn-icon { position: relative; }
.count-dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #141924; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.avatar { --size: 2.2rem; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: calc(var(--size) * .4); color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --size: 1.75rem; } .avatar-lg { --size: 3.25rem; } .avatar-xl { --size: 5rem; }
@media (max-width: 1400px) { .nav-links .icon { display: none; } .nav-search { max-width: 240px; } }
@media (max-width: 1060px) { .nav-links, .nav-search { display: none; } .nav-actions { margin-left: auto; } }
@media (min-width: 1061px) { .nav-toggle { display: none !important; } }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 80; opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none; transition: opacity .15s, transform .15s var(--ease); }
.dropdown-menu.left { right: auto; left: 0; }
.dropdown.is-open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.menu-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--text) !important; font: 500 .9rem/1.3 var(--font-body); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-item .icon { color: var(--muted); }
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger, .menu-item.danger .icon { color: var(--danger) !important; }
.menu-sep { height: 1px; background: var(--border); margin: .35rem .3rem; }
.menu-head { padding: .6rem .7rem .5rem; }
.menu-label { padding: .5rem .7rem .25rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(12, 15, 21, .5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 100; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(-102%); transition: transform .28s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.right { left: auto; right: 0; transform: translateX(102%); }
body.drawer-open .drawer.is-open { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.drawer-body { padding: .75rem; flex: 1; }
.drawer-body .nav-link { display: flex; padding: .7rem .8rem; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; font-family: var(--font-body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--brand-500); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page headers & heroes ---------- */
.page-head { padding: 2.75rem 0 1.75rem; }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--text-2); max-width: 680px; margin: 0; font-size: 1.05rem; }
.page-head-band { background: radial-gradient(1200px 300px at 10% -40%, color-mix(in srgb, var(--brand-500) 18%, transparent), transparent), var(--surface); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.breadcrumbs { display: flex; align-items: center; gap: .35rem; font-size: .84rem; color: var(--muted); margin-bottom: .9rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-500); }
.breadcrumbs .icon { width: .9em; height: .9em; opacity: .6; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 85% -10%, rgba(201, 162, 39, .32), transparent 60%), radial-gradient(800px 600px at -10% 120%, rgba(79, 95, 138, .55), transparent 60%), linear-gradient(140deg, #0f1321 0%, #161c2e 45%, #232d47 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw + 1rem, 4rem); line-height: 1.05; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { color: rgba(255,255,255,.82); font-size: clamp(1.02rem, .5vw + .95rem, 1.2rem); }
.hero .eyebrow { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5.5rem 0 6rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding: 3.5rem 0 4rem; } }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-xl); padding: 1.75rem; backdrop-filter: blur(10px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.hero-stats { display: flex; gap: 2.25rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.85rem; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.7); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: .25rem 0 0; }
.section-head p { color: var(--text-2); margin: .4rem 0 0; }

.feature { padding: 1.6rem; }
.feature-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-500); margin-bottom: 1.1rem; }
.feature-icon.gold { background: var(--accent-soft); color: var(--accent-ink); }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--text-2); margin: 0; font-size: .95rem; }

.verse-card { position: relative; padding: 2.25rem; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); border: 1px solid var(--border); overflow: hidden; }
.verse-card::before { content: "\201C"; position: absolute; top: -1.5rem; right: 1.25rem; font-family: var(--font-display); font-size: 10rem; line-height: 1; color: color-mix(in srgb, var(--brand-500) 14%, transparent); }
.verse-text { font-family: var(--font-read); font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); line-height: 1.55; color: var(--text); margin: .75rem 0 1rem; position: relative; }
.verse-ref { font-weight: 700; color: var(--brand-500); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 3.5rem 1.5rem; }
.empty .feature-icon { margin: 0 auto 1rem; width: 3.5rem; height: 3.5rem; }
.empty h3 { margin-bottom: .35rem; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 1.25rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: .8rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--brand-softer); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-compact td, .table-compact th { padding: .55rem .8rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1rem; color: var(--muted) !important; font-weight: 600; font-size: .92rem; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-family: var(--font-body); }
.tab:hover { color: var(--text) !important; }
.tab.is-active, .tab[aria-selected="true"] { color: var(--text) !important; border-bottom-color: var(--brand-500); }
.tab .badge { font-size: .68rem; }
.tab-panel:not(.is-active) { display: none; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--border); }
.accordion summary { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; user-select: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion summary:hover { background: var(--surface-2); }
.accordion .acc-body { padding: 0 1.25rem 1rem; }
.lesson-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; font-size: .92rem; color: var(--text-2); }
.lesson-row + .lesson-row { border-top: 1px dashed var(--border); }
.lesson-row .icon { color: var(--muted); }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--accent)); transition: width .5s var(--ease); }
.progress-sm { height: 5px; }
.ring { --p: 0; --size: 56px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand-500) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-size: .78rem; font-weight: 800; }

/* ---------- Ratings ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--accent); vertical-align: middle; }
.stars .icon { width: 1em; height: 1em; }
.stars .off { color: var(--border-strong); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { cursor: pointer; color: var(--border-strong); }
.rating-input label .icon { width: 1.7rem; height: 1.7rem; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--accent); }
.rating-bar { display: grid; grid-template-columns: 3.5rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text-2); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--brand-500); color: var(--text); }
.pagination .active a, .pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Modal (native <dialog>) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); }
dialog.modal-lg { width: min(820px, calc(100vw - 2rem)); }
dialog.modal::backdrop { background: rgba(12, 15, 21, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 1.08rem; font-family: var(--font-body); }
.modal-body { padding: 1.4rem; overflow-y: auto; max-height: calc(100vh - 12rem); }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ---------- Prose (rich content) ---------- */
.prose { font-family: var(--reading-font); font-size: 1.09rem; line-height: 1.8; color: var(--text); max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); margin: 1.8em 0 .5em; }
.prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; }
.prose blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.25em; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose hr { margin: 2em 0; }
.prose .scripture { display: block; margin: 1.5em 0; padding: 1.1em 1.3em; border-radius: var(--radius); background: var(--accent-soft); border-left: 4px solid var(--accent); font-style: italic; }
.prose .callout { display: block; margin: 1.5em 0; padding: 1.1em 1.3em; border-radius: var(--radius); background: var(--brand-soft); font-family: var(--font-body); font-size: .98rem; }
.bible-ref { color: var(--brand-500) !important; text-decoration: none !important; border-bottom: 1px dashed currentColor; cursor: pointer; font-style: normal; white-space: nowrap; }
.bible-ref:hover { color: var(--accent-ink) !important; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Verse popover */
.ref-popover { position: absolute; z-index: 150; width: min(380px, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.1rem; font-family: var(--font-read); font-size: .98rem; line-height: 1.6; animation: modal-in .18s var(--ease); }
.ref-popover h5 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin: 0 0 .5rem; }
.ref-popover sup { color: var(--muted); font-family: var(--font-body); font-size: .68em; margin-right: .2em; }
.ref-popover .pop-body { max-height: 260px; overflow-y: auto; }

/* ---------- Course cards ---------- */
.course-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.course-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c1, #161c2e), var(--c2, #3a4a73)); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-cover img { transform: scale(1.04); }
.course-cover .cover-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.2rem; color: #fff; }
.course-cover .cover-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 92% -5%, color-mix(in srgb, var(--c3, #c9a227) 55%, transparent), transparent 62%), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: auto, 18px 18px; }
.course-cover .cover-art span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.course-cover .badge { position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.92); color: #141924; border: 0; }
.course-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.course-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.35; font-family: var(--font-body); }
.course-meta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.price { font-weight: 800; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.price-free { color: var(--success); }
.price-compare { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .9em; margin-left: .4rem; }

/* Course landing */
.course-hero { position: relative; color: #fff; background: radial-gradient(800px 400px at 90% 0%, color-mix(in srgb, var(--course-accent, #c9a227) 35%, transparent), transparent 60%), linear-gradient(140deg, #0f1321, var(--course-brand, #232d47)); padding: 3rem 0 3.5rem; }
.course-hero h1 { color: #fff; font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.course-hero .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 640px; }
.course-hero .course-meta { color: rgba(255,255,255,.78); font-size: .9rem; }
.course-hero .breadcrumbs, .course-hero .breadcrumbs a { color: rgba(255,255,255,.7); }
.buy-card { overflow: hidden; }
.buy-card .course-cover { border-radius: 0; }
/* The card is narrow: let long calls to action ("Join membership · from R9.99/month") wrap inside the button instead of spilling out. */
.buy-card .card-body { padding: 1.5rem; }
.buy-card .price { line-height: 1.25; }
.buy-card .btn { white-space: normal; text-align: center; padding-left: 1rem; padding-right: 1rem; }
.buy-card .btn-lg { font-size: .95rem; }
.buy-card .btn .icon { flex: none; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.checklist li .icon { color: var(--success); margin-top: .2rem; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; }
@media (max-width: 640px) { .learn-grid { grid-template-columns: 1fr; } }

/* ---------- Course player ---------- */
.player { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.player-side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); }
.player-side-head { padding: 1.1rem 1.15rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.player-side-head h2 { font-size: 1rem; font-family: var(--font-body); margin: 0 0 .65rem; line-height: 1.35; }
.curriculum { padding: .5rem 0 2rem; }
.cur-section > summary { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1.15rem; cursor: pointer; list-style: none; font-size: .87rem; font-weight: 700; color: var(--text); background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.cur-section > summary::-webkit-details-marker { display: none; }
.cur-section > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.cur-section[open] > summary .chev { transform: rotate(180deg); }
.cur-section > summary small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; margin-top: .15rem; }
.cur-item { display: flex; align-items: flex-start; gap: .65rem; padding: .62rem 1.15rem .62rem 1.15rem; color: var(--text-2) !important; font-size: .87rem; line-height: 1.4; border-left: 3px solid transparent; }
.cur-item:hover { background: var(--brand-softer); color: var(--text) !important; }
.cur-item.is-current { background: var(--brand-soft); border-left-color: var(--brand-500); color: var(--text) !important; font-weight: 600; }
.cur-item.is-locked { opacity: .55; }
.cur-item .state { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; margin-top: .05rem; }
.cur-item .state .icon { width: .8rem; height: .8rem; stroke-width: 3; }
.cur-item.is-done .state { background: var(--success); border-color: var(--success); color: #fff; }
.cur-item .meta { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; margin-top: .1rem; }
.player-main { min-width: 0; }
.player-top { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: var(--header-h); z-index: 5; }
.player-content { padding: 2.5rem 1.5rem 7rem; max-width: 860px; margin: 0 auto; }
.player-content.wide { max-width: 1040px; }
.lesson-head .eyebrow { margin-bottom: .6rem; }
.lesson-head h1 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); }
.lesson-nav { position: fixed; bottom: 0; right: 0; left: 340px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
body.player-collapsed .player { grid-template-columns: 0 minmax(0, 1fr); }
body.player-collapsed .player-side { visibility: hidden; }
body.player-collapsed .lesson-nav { left: 0; }
@media (max-width: 960px) {
    .player { grid-template-columns: 1fr; }
    .player-side { position: fixed; z-index: 95; top: 0; left: 0; bottom: 0; height: 100vh; width: min(340px, 88vw); transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
    body.drawer-open .player-side.is-open { transform: none; }
    .lesson-nav { left: 0; }
    .player-content { padding: 1.75rem 1rem 7rem; }
}
.journal-prompts { display: grid; gap: 1rem; margin-top: 2.5rem; }
.prompt-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.prompt-card-head { display: flex; align-items: center; gap: .75rem; padding: .95rem 1.2rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.prompt-card-head h4 { margin: 0; font-size: .98rem; font-family: var(--font-body); }
.prompt-card-head .hint { font-size: .8rem; color: var(--muted); font-style: italic; font-family: var(--font-read); }
.prompt-card textarea { border: 0; border-radius: 0; min-height: 8.5rem; font-family: var(--reading-font); font-size: 1.02rem; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.9rem - 1px), var(--border) calc(1.9rem - 1px), var(--border) 1.9rem); line-height: 1.9rem; padding: .3rem 1.2rem; background-attachment: local; }
.prompt-card textarea:focus { box-shadow: none; }
.prompt-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 1.2rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.save-state { display: inline-flex; align-items: center; gap: .35rem; }
.save-state.is-saved { color: var(--success); }
.devotion-scripture { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem 1.3rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-soft), var(--brand-softer)); border: 1px solid var(--border); margin-bottom: 2rem; }
.devotion-scripture .icon { color: var(--accent-ink); margin-top: .2rem; }

/* ---------- Quiz ---------- */
.question { padding: 1.5rem; }
.question + .question { border-top: 1px solid var(--border); }
.question h3 { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.45; }
.qnum { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-500); font-weight: 800; font-size: .85rem; flex: none; }
.option { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; margin-top: .6rem; }
.option:hover { border-color: var(--brand-500); background: var(--brand-softer); }
.option input { accent-color: var(--brand-500); width: 1.1rem; height: 1.1rem; flex: none; }
.option:has(input:checked) { border-color: var(--brand-500); background: var(--brand-soft); }
.option.is-correct { border-color: var(--success); background: var(--success-soft); }
.option.is-wrong { border-color: var(--danger); background: var(--danger-soft); }
.quiz-timer { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 99px; background: var(--warning-soft); color: var(--warning); font-weight: 700; font-variant-numeric: tabular-nums; }
.result-hero { text-align: center; padding: 2.5rem 1.5rem; }
.result-score { font-family: var(--font-display); font-size: 4rem; font-weight: 700; line-height: 1; }

/* ---------- Studio (back office) ---------- */
.studio { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.studio-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.studio-side .brand { padding: 1.1rem 1.25rem; font-size: 1.08rem; border-bottom: 1px solid var(--border); }
.studio-nav { padding: .75rem; flex: 1; }
.studio-nav .menu-label { margin-top: .75rem; }
.studio-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--text-2) !important; font-weight: 500; font-size: .9rem; }
.studio-nav a .icon { color: var(--muted); }
.studio-nav a:hover { background: var(--surface-2); color: var(--text) !important; }
.studio-nav a.is-active { background: var(--brand-soft); color: var(--text) !important; font-weight: 600; }
.studio-nav a.is-active .icon { color: var(--brand-500); }
.studio-main { min-width: 0; }
.studio-top { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.studio-body { padding: 1.75rem; max-width: 1280px; }
.studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.studio-head h1 { font-family: var(--font-body); font-size: 1.55rem; margin: 0; letter-spacing: -.02em; }
.studio-head p { margin: .25rem 0 0; color: var(--muted); }
@media (max-width: 960px) {
    .studio { grid-template-columns: 1fr; }
    .studio-side { position: fixed; z-index: 95; left: 0; top: 0; width: min(280px, 86vw); transform: translateX(-102%); transition: transform .28s var(--ease); }
    body.drawer-open .studio-side.is-open { transform: none; }
    .studio-body { padding: 1.25rem 1rem; }
    .studio-top { padding: 0 1rem; }
}
.stat { padding: 1.2rem 1.3rem; }
.stat-label { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.stat-delta { font-size: .8rem; color: var(--success); font-weight: 600; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 1rem; }
.chart-bars .bar { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--brand-500), color-mix(in srgb, var(--brand-500) 55%, var(--accent))); position: relative; min-height: 2px; }
.chart-bars .bar:hover { filter: brightness(1.15); }
.chart-bars .bar[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: .72rem; padding: .25rem .5rem; border-radius: 6px; white-space: nowrap; z-index: 3; }
.chart-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 3rem; gap: .75rem; align-items: center; font-size: .86rem; padding: .35rem 0; }
.hbar .progress { height: 10px; }

/* Curriculum builder */
.builder-section { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 1rem; }
.builder-section-head { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.builder-section-head h3 { margin: 0; font-size: .98rem; font-family: var(--font-body); }
.builder-items { padding: .5rem; min-height: 3rem; }
.builder-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--surface); font-size: .9rem; }
.builder-item:hover { border-color: var(--border); background: var(--surface-2); }
.builder-item .type-icon { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-500); flex: none; }
.builder-item .type-icon.quiz { background: var(--accent-soft); color: var(--accent-ink); }
.builder-item .type-icon.assignment { background: var(--info-soft); color: var(--info); }
.drag-handle { cursor: grab; color: var(--muted); display: inline-flex; padding: .2rem; border-radius: 4px; touch-action: none; }
.drag-handle:hover { background: var(--surface-3); color: var(--text); }
.is-dragging { opacity: .45; }
.drop-placeholder { height: 2.6rem; border: 2px dashed var(--brand-500); border-radius: var(--radius-sm); background: var(--brand-softer); margin: .2rem 0; }

/* Rich text editor */
.editor { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: clip; }
.editor:focus-within { border-color: var(--brand-500); box-shadow: var(--ring); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: .4rem; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 60px; z-index: 4; }
.editor-toolbar button { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .4rem; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; font: 700 .8rem var(--font-body); }
.editor-toolbar button:hover, .editor-toolbar button.is-on { background: var(--surface-3); color: var(--text); }
.editor-toolbar .sep { width: 1px; background: var(--border-strong); margin: .3rem .25rem; }
.editor-area { min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 1.25rem 1.4rem; outline: none; max-width: none; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.editor textarea.editor-source { border: 0; border-radius: 0; min-height: 320px; font-family: var(--font-mono); font-size: .85rem; }

/* Repeater rows */
.repeater-row { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); margin-bottom: .6rem; }
.repeater-row .grow > * + * { margin-top: .5rem; }

/* Uploads */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1.75rem; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-500); background: var(--brand-softer); color: var(--text); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-actions { position: absolute; top: .35rem; right: .35rem; display: flex; gap: .25rem; }

/* ---------- Bible ---------- */
.bible-shell { display: grid; grid-template-columns: minmax(0, 1fr); }
.bible-toolbar { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bible-toolbar .container { display: flex; align-items: center; gap: .6rem; height: 58px; }
.passage-picker { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-strong); font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--text); }
.passage-picker:hover { border-color: var(--brand-500); }
.reader { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 8rem; }
.reader-title { text-align: center; margin-bottom: 2.5rem; }
.reader-title .eyebrow { justify-content: center; }
.reader-title h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem); margin: .4rem 0 0; }
.chapter-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); }
.scripture-text { font-family: var(--reading-font); font-size: calc(1.18rem * var(--bible-scale, 1)); line-height: calc(1.95 * var(--bible-leading, 1)); color: var(--text); }
.scripture-text.layout-paragraph .verse { display: inline; }
.scripture-text.layout-verse .verse { display: block; margin-bottom: .45em; }
.verse { border-radius: 4px; cursor: pointer; transition: background .15s; padding: .08em .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.verse:hover { background: var(--surface-2); }
.verse sup { font-family: var(--font-body); font-size: .62em; font-weight: 700; color: var(--brand-500); margin-right: .25em; vertical-align: .55em; user-select: none; }
.scripture-text.hide-numbers .verse sup { display: none; }
.verse.is-selected { background: color-mix(in srgb, var(--brand-500) 16%, transparent); box-shadow: inset 0 -2px 0 var(--brand-500); }
.verse.is-flash { animation: verse-flash 2.2s var(--ease); }
@keyframes verse-flash { 0%, 40% { background: color-mix(in srgb, var(--accent) 45%, transparent); } }
.verse[data-hl="yellow"] { background: var(--hl-yellow); }
.verse[data-hl="green"] { background: var(--hl-green); }
.verse[data-hl="blue"] { background: var(--hl-blue); }
.verse[data-hl="pink"] { background: var(--hl-pink); }
.verse[data-hl="purple"] { background: var(--hl-purple); }
.verse[data-hl="orange"] { background: var(--hl-orange); }
.verse .marks { display: inline-flex; gap: .15em; vertical-align: .15em; margin-left: .15em; }
.verse .marks .icon { width: .72em; height: .72em; color: var(--accent-ink); }
.verse-actions { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 140%); z-index: 70; display: flex; align-items: center; gap: .35rem; padding: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); max-width: calc(100vw - 1.5rem); overflow-x: auto; }
.verse-actions.is-open { transform: translate(-50%, 0); }
.verse-actions .sel-label { font-weight: 700; font-size: .85rem; padding: 0 .5rem; white-space: nowrap; }
.swatch { width: 1.65rem; height: 1.65rem; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; flex: none; }
.swatch:hover { transform: scale(1.12); }
.swatch[data-c="yellow"] { background: #ffe066; } .swatch[data-c="green"] { background: #7ddc92; } .swatch[data-c="blue"] { background: #79b8ff; }
.swatch[data-c="pink"] { background: #ff8fbd; } .swatch[data-c="purple"] { background: #232d47; } .swatch[data-c="orange"] { background: #ffb26b; }
.swatch-none { background: var(--surface) !important; display: grid; place-items: center; color: var(--muted); }
.chapter-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; }
.chapter-pager a { flex: 1; display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; }
.chapter-pager a:hover { border-color: var(--brand-500); }
.chapter-pager small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.chapter-pager .next { text-align: right; }
.side-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 20; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text-2) !important; }
.side-arrow:hover { color: var(--brand-500) !important; border-color: var(--brand-500); }
.side-arrow.prev { left: 1.5rem; } .side-arrow.next { right: 1.5rem; }
@media (max-width: 1100px) { .side-arrow { display: none; } }
.book-groups { display: grid; gap: 2rem; }
.book-group h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .75rem; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.book-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .85rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-weight: 600; font-size: .9rem; cursor: pointer; text-align: left; font-family: var(--font-body); }
.book-btn:hover, .book-btn.is-active { border-color: var(--brand-500); background: var(--brand-softer); }
.book-btn small { color: var(--muted); font-weight: 500; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .45rem; }
.chapter-grid a { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; font-weight: 600; font-size: .92rem; }
.chapter-grid a:hover, .chapter-grid a.is-active { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.search-hit mark, mark { background: var(--hl-yellow); color: inherit; padding: 0 .1em; border-radius: 3px; }
.plan-card .progress { margin-top: .75rem; }
.day-list { display: grid; gap: .5rem; }
.day-item { display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.day-item.is-done { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.day-item.is-today { border-color: var(--brand-500); box-shadow: var(--ring); }
.day-num { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .9rem; }
.day-item.is-done .day-num { background: var(--success); color: #fff; }

/* ---------- Shop ---------- */
.product-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.product-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); border: 1px solid var(--border); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.product-media img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-media img.alt { opacity: 1; }
.product-card:hover .product-media img:first-child { transform: scale(1.03); }
.product-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-500); opacity: .5; }
.product-media .badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.product-media .wish { position: absolute; top: .6rem; right: .6rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #141924; border: 0; cursor: pointer; box-shadow: var(--shadow-sm); }
.product-media .wish.is-on { color: #e0245e; }
.product-media .wish.is-on .icon { fill: currentColor; }
.product-media .quick { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; opacity: 0; transform: translateY(8px); transition: all .2s var(--ease); }
.product-card:hover .product-media .quick { opacity: 1; transform: none; }
@media (hover: none) { .product-media .quick { display: none; } }
.product-info { padding: .85rem .15rem 0; display: flex; flex-direction: column; gap: .25rem; }
.product-info h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.35; }
.product-info h3 a { color: var(--text) !important; }
.product-info .vendor { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .85rem; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main.is-zoomed img { transform: scale(2); cursor: zoom-out; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .6rem; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--surface-2); }
.gallery-thumbs button.is-active { border-color: var(--brand-500); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; } .gallery-thumbs button { width: 64px; flex: none; } }
.option-group { margin-bottom: 1.15rem; }
.option-group .label { display: block; margin-bottom: .5rem; }
.option-values { display: flex; flex-wrap: wrap; gap: .5rem; }
.option-values label { position: relative; }
.option-values input { position: absolute; opacity: 0; }
.option-values span { display: inline-flex; align-items: center; padding: .5rem 1rem; min-width: 3rem; justify-content: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem; cursor: pointer; background: var(--surface); }
.option-values input:checked + span { border-color: var(--brand-500); background: var(--brand-soft); color: var(--text); }
.option-values input:focus-visible + span { box-shadow: var(--ring); }
.option-values input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.qty button { width: 2.5rem; height: 2.6rem; border: 0; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 3rem; text-align: center; border: 0; background: none; font: 600 .95rem var(--font-body); color: var(--text); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 2rem; height: 2.1rem; } .qty-sm input { width: 2.4rem; font-size: .85rem; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.trust-row div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: .85rem .5rem; border-radius: var(--radius); background: var(--surface-2); font-size: .78rem; color: var(--text-2); font-weight: 500; }
.trust-row .icon { color: var(--brand-500); }
.stock-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; }
.stock-note.in { color: var(--success); } .stock-note.low { color: var(--warning); } .stock-note.out { color: var(--danger); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 1rem; padding: 1.15rem 0; align-items: start; }
.cart-line + .cart-line { border-top: 1px solid var(--border); }
.cart-thumb { width: 88px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); display: grid; place-items: center; color: var(--brand-500); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .95rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 800; padding-top: .9rem; margin-top: .5rem; border-top: 1px solid var(--border); }
.filter-group { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .7rem; }
.filter-group .check { font-size: .9rem; margin-bottom: .45rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 1.1rem 2rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: .22rem; top: .38rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-500); }
.timeline li:first-child::before { background: var(--brand-500); }
.timeline time { display: block; font-size: .78rem; color: var(--muted); }
.steps { display: flex; gap: .5rem; align-items: center; margin-bottom: 2rem; font-size: .85rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.steps .is-active { color: var(--text); }
.steps .num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-3); margin-right: .35rem; font-size: .78rem; }
.steps .is-active .num { background: var(--brand); color: #fff; }
.radio-card { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.radio-card + .radio-card { margin-top: .6rem; }
.radio-card input { accent-color: var(--brand-500); width: 1.1rem; height: 1.1rem; }
.radio-card:has(input:checked) { border-color: var(--brand-500); background: var(--brand-softer); }

/* ---------- Journal ---------- */
.journal-entry { padding: 1.25rem 1.4rem; }
.journal-entry + .journal-entry { border-top: 1px solid var(--border); }
.journal-entry .body { font-family: var(--reading-font); font-size: 1.04rem; line-height: 1.7; white-space: pre-wrap; margin: .4rem 0 .6rem; }
.journal-entry.is-answered { background: linear-gradient(90deg, var(--success-soft), transparent 60%); }
.kind-icon { width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kind-prayer { background: var(--brand-soft); color: var(--brand-500); }
.kind-meditation { background: var(--info-soft); color: var(--info); }
.kind-gratitude { background: var(--accent-soft); color: var(--accent-ink); }
.kind-note { background: var(--surface-3); color: var(--text-2); }

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem; color: #fff; overflow: hidden; }
.auth-art .brand { color: #fff; }
.auth-art blockquote { margin: 0; font-family: var(--font-read); font-size: 1.45rem; line-height: 1.55; max-width: 480px; position: relative; }
.auth-art cite { display: block; margin-top: 1rem; font-style: normal; color: var(--accent); font-weight: 600; font-family: var(--font-body); font-size: .95rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: .35rem; }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Certificate ---------- */
.certificate { position: relative; aspect-ratio: 1.414; max-width: 1000px; margin: 0 auto; background: #fffdf7; color: #141924; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 5%; overflow: hidden; font-family: var(--font-read); }
.certificate::before { content: ""; position: absolute; inset: 2.2%; border: 2px solid var(--cert-accent, #c9a227); border-radius: 4px; pointer-events: none; }
.certificate::after { content: ""; position: absolute; inset: 3.2%; border: 1px solid color-mix(in srgb, var(--cert-accent, #c9a227) 55%, transparent); pointer-events: none; }
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2vmin; }
.cert-inner .seal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #f3d777, var(--cert-accent, #c9a227)); color: #232d47; box-shadow: 0 6px 20px rgba(201,162,39,.4); }
.cert-kicker { font-family: var(--font-body); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; font-weight: 700; color: var(--cert-brand, #232d47); }
.cert-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.8rem); color: var(--cert-brand, #232d47); margin: 0; }
.cert-name { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 4.5vw, 3.4rem); margin: .2em 0; border-bottom: 1px solid #d8cfb6; padding: 0 1em .1em; }
.cert-course { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 600; }
.cert-foot { display: flex; justify-content: space-between; width: 80%; margin-top: 3vmin; font-family: var(--font-body); font-size: .8rem; color: #545a68; }
.cert-foot .sig { border-top: 1px solid #b0b7c7; padding-top: .4rem; min-width: 180px; }
.cert-foot .sig strong { display: block; color: #141924; font-size: .95rem; }
@media print {
    body { background: #fff !important; }
    .no-print, .site-header, .site-footer, .announcement, .toasts { display: none !important; }
    .certificate { box-shadow: none; max-width: none; width: 100%; }
    @page { size: A4 landscape; margin: 0; }
    .print-plain { font-size: 11pt; }
}

/* ---------- Misc ---------- */
.kbd { display: inline-block; padding: .05rem .4rem; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; font-family: var(--font-mono); font-size: .75rem; background: var(--surface); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fade-in .5s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }
.list-plain { list-style: none; padding: 0; margin: 0; }
.dot-sep > * + *::before { content: "·"; margin: 0 .45rem; color: var(--muted); }
.cover-swatch { width: 100%; height: 100%; }
.prayer-card { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .75rem; }
.prayer-card .body { font-family: var(--font-read); font-size: 1.04rem; line-height: 1.65; white-space: pre-wrap; }
.prayer-card.is-answered { border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.streak { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; background: var(--warning-soft); color: var(--warning); font-weight: 700; font-size: .85rem; }
.welcome-band { border-radius: var(--radius-xl); padding: 2rem; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(201,162,39,.35), transparent 60%), linear-gradient(135deg, #161c2e, #3a4a73); position: relative; overflow: hidden; }
.welcome-band h1, .welcome-band h2 { color: #fff; }
.welcome-band p { color: rgba(255,255,255,.82); }
a.card.continue-card, .continue-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1rem; }
.continue-card .course-cover { border-radius: var(--radius); aspect-ratio: 16 / 10; }
.continue-card .course-cover .cover-art span { font-size: .95rem; }
@media (max-width: 560px) { a.card.continue-card, .continue-card { grid-template-columns: 1fr; } }

/* Utilities used by Studio admin pages */
.ml-auto { margin-left: auto; }
.h-sm { font-family: var(--font-body); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .45rem; margin: 0 0 .75rem; }
.h-sm .icon { color: var(--brand); }
.items-end { align-items: flex-end; }
.pt-2 { padding-top: 1rem; }
@media (max-width: 1000px) { .split-reverse > aside { order: -1; } }
.list-check { list-style: none; padding: 0; display: grid; gap: .45rem; }
.list-check li { position: relative; padding-left: 1.5rem; }
.list-check li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.testimony { margin: 0; display: flex; gap: .6rem; padding: .85rem 1rem; border-radius: var(--radius-sm, 10px); background: color-mix(in srgb, var(--success) 9%, transparent); font-family: var(--font-read); font-style: italic; }
.testimony .icon { color: var(--success); flex: none; margin-top: .2rem; }
.d-block { display: block; }
.reading-text { font-family: var(--font-read); line-height: 1.6; margin-top: .2rem; }
.feature-icon.feature-icon-sm { width: 2.25rem; height: 2.25rem; border-radius: 10px; margin: 0; flex: none; }

/* ---------- Copy protection (course setting) ---------- */
body.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protect input, body.protect textarea, body.protect select, body.protect [contenteditable="true"], body.protect .allow-select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body.protect img, body.protect video, body.protect audio { -webkit-user-drag: none; user-drag: none; }
.protect-watermark { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; opacity: .055; }
.protect-watermark span { position: absolute; white-space: nowrap; font: 600 15px/1 var(--font-body); color: var(--text); transform: rotate(-24deg); }
.protect-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.2)); }
@media print {
    body.protect > *:not(.protect-print) { display: none !important; }
    body.protect::after { content: "This content is protected and cannot be printed."; display: block; padding: 3rem; font: 600 18px/1.5 sans-serif; text-align: center; }
}

/* ---------- Blog ---------- */
.blog-hero { padding: 3.5rem 0 4rem; }
.blog-hero .breadcrumbs, .blog-hero .breadcrumbs a { color: rgba(255,255,255,.75); }
.blog-hero .lead { max-width: 680px; }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.blog-card .course-cover { border-radius: 0; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.blog-feature { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.locked-panel { padding: 2.5rem 1.5rem; background: linear-gradient(180deg, var(--surface), var(--brand-softer)); }
.locked-list { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; text-align: left; }
.locked-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--border); color: var(--text-2); }
.locked-list .icon { color: var(--muted); }

/* Home: the featured Prayerthon block sits between the two rows of three (3-1-3). */
.feature.feature-wide { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; padding: 2rem 2.25rem; gap: 1.75rem; color: #fff; border: 0;
    background: radial-gradient(600px 260px at 100% 0%, rgba(201,162,39,.38), transparent 60%), linear-gradient(135deg, #0f1321, #232d47 70%, #3a4a73); }
.feature-wide:hover { color: #fff; }
.feature-wide h3 { color: #fff; font-size: 1.6rem; margin-bottom: .35rem; }
.feature-wide p { color: rgba(255,255,255,.85); margin: 0; max-width: 640px; }
.feature-wide .feature-icon { margin: 0; flex: none; width: 4rem; height: 4rem; background: rgba(201,162,39,.18); color: var(--accent); }
.feature-wide .feature-cta { margin-left: auto; flex: none; }
@media (max-width: 720px) { .feature.feature-wide { flex-direction: column; align-items: flex-start; } .feature-wide .feature-cta { margin-left: 0; } }
