:root {
    --paper: #fbfaf7;
    --paper-deep: #f1eee7;
    --white: #fff;
    --ink: #11110f;
    --charcoal: #252525;
    --gold: #b88a44;
    --gold-light: #e6c68f;
    --moss: #637267;
    --muted: #6f6b63;
    --line: #ded8cf;
    --danger: #9b2c2c;
    --success: #3f6650;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(17, 17, 15, .1);
    --max: 1160px;
    --hope-blue: #173d7a;
    --hope-bright: #2f6fd0;
    --study-accent: #2f6fd0;
    --sermon-accent: #315b7d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3, blockquote { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.06; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5.3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding: 8px clamp(18px, 4vw, 48px); background: rgba(251, 250, 247, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 76px; height: 76px; object-fit: contain; }
.brand span { display: grid; line-height: 1.18; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.site-nav a { color: var(--muted); font-size: .9rem; font-weight: 720; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 9px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.flash { width: min(760px, calc(100% - 32px)); margin: 18px auto 0; padding: 14px 18px; border-radius: var(--radius); font-weight: 700; }
.flash-success { color: #244a34; background: #e9f4ec; border: 1px solid #bad6c1; }
.flash-error { color: #742626; background: #fbeaea; border: 1px solid #e5bcbc; }

.hero { min-height: calc(100svh - 92px); display: grid; place-items: center; padding: clamp(60px, 10vw, 120px) 24px; color: var(--white); text-align: center; background: radial-gradient(circle at 50% 32%, rgba(184, 138, 68, .28), transparent 24rem), linear-gradient(rgba(17, 17, 15, .5), rgba(17, 17, 15, .86)), url("pwa-icons/logo-transparent.png") center 30% / min(68vw, 650px) no-repeat, var(--ink); overflow: hidden; }
.hero-copy { max-width: 930px; }
.hero h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .94; }
.hero-copy > p:not(.eyebrow):not(.invite-note) { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.87); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.invite-note { margin: 18px 0 0; color: rgba(255,255,255,.62); font-size: .84rem; }
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 780; text-decoration: none; cursor: pointer; transition: color .18s, background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-danger { color: var(--white); background: var(--danger); }
.button-danger:hover { background: #7f1d1d; }
.button-outline-light { color: var(--white); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.45); }
.button-dark:hover { background: var(--charcoal); }
.button-light:hover { box-shadow: 0 12px 34px rgba(0,0,0,.14); }

.section, .content-shell, .site-footer { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1fr); align-items: center; gap: clamp(34px, 8vw, 90px); }
.intro-grid p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.1rem; }
.section-mark { display: grid; place-items: center; min-height: 460px; padding: 36px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(184,138,68,.16), transparent 55%), var(--ink); overflow: hidden; }
.section-mark img { width: min(100%, 455px); }

.content-shell { padding: clamp(50px, 8vw, 92px) 0; }
.narrow-shell { max-width: 820px; }
.page-intro { max-width: 760px; margin-bottom: 34px; }
.page-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.commitment-card, .admin-card, .admin-section, .study-section, .auth-card { padding: clamp(24px, 5vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(17,17,15,.06); }
.commitment-list { display: grid; gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: commitment; }
.commitment-list li { counter-increment: commitment; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.commitment-list li::before { content: counter(commitment, decimal-leading-zero); color: var(--gold); font-weight: 850; }
.study-orientation { margin: 34px 0; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: calc(var(--radius) - 8px); background: var(--paper); color: var(--ink); }
.study-orientation h2 { margin: 0 0 18px; font-size: clamp(2rem, 5vw, 3rem); }
.study-orientation h3 { margin: 32px 0 12px; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.study-orientation p { line-height: 1.75; }
.study-orientation blockquote { margin: 24px 0; padding: 20px 22px; border-left: 4px solid var(--gold); background: var(--white); }
.study-orientation blockquote p { margin: 0 0 6px; font: 700 clamp(1.12rem, 2.6vw, 1.35rem)/1.5 Georgia, serif; }
.study-orientation blockquote cite { color: var(--muted); font-style: normal; font-weight: 800; }
.orientation-journey { display: grid; gap: 9px; margin: 0 0 26px; padding-left: 24px; }
.orientation-journey li { padding-left: 5px; line-height: 1.5; }

.form-stack { display: grid; gap: 18px; }
.form-stack label { display: grid; gap: 7px; font-weight: 760; }
.form-stack small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
textarea { min-height: 126px; resize: vertical; line-height: 1.55; }
input:disabled { color: var(--muted); opacity: 1; }
.form-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-label { grid-template-columns: auto 1fr !important; align-items: start; gap: 12px !important; }
.check-label input { width: 20px; min-height: 20px; margin-top: 3px; accent-color: var(--ink); }
.form-error, .notice-card { margin-bottom: 22px; padding: 15px 18px; border-radius: var(--radius); }
.form-error { color: #742626; background: #fbeaea; border: 1px solid #e5bcbc; }
.notice-card { background: var(--paper-deep); border: 1px solid var(--line); }
.notice-card p { margin: 4px 0 0; color: var(--muted); }
.form-foot { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.first-admin-callout { margin-top: 22px; padding: 18px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: var(--radius); }
.first-admin-callout p { margin: 2px 0 14px; color: var(--muted); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 78px; }
.password-toggle { position: absolute; right: 7px; bottom: 7px; min-height: 36px; padding: 0 12px; color: var(--ink); background: var(--paper-deep); border: 0; border-radius: 6px; font-weight: 750; cursor: pointer; }
.auth-page { background: linear-gradient(135deg, var(--paper), #efede6 55%, #e7e9e5); }
.auth-shell { min-height: calc(100svh - 160px); display: grid; place-items: center; padding: 40px 18px 70px; }
.auth-card { width: min(100%, 520px); }
.auth-card-wide { width: min(100%, 680px); }
.auth-card h1 { font-size: clamp(2.35rem, 6vw, 4.3rem); }
.auth-mark { display: block; width: 136px; height: 136px; margin-bottom: 18px; object-fit: contain; }
.login-page { height: 100svh; overflow: hidden; background: var(--white); }
.login-page .site-header, .login-page .site-footer { display: none; }
.login-page > .flash { position: fixed; top: 20px; left: 50%; z-index: 50; margin: 0; transform: translateX(-50%); }
.login-shell { width: 100%; height: 100svh; padding: 0; }
.login-layout { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); overflow: hidden; }
.login-brand-panel { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; padding: clamp(28px, 5vw, 74px); color: var(--white); text-align: center; background: radial-gradient(circle at 50% 38%, rgba(139,183,255,.32), transparent 19rem), linear-gradient(145deg, #0b244d, var(--hope-blue)); border-radius: 0 clamp(42px, 6vw, 96px) clamp(42px, 6vw, 96px) 0; overflow: hidden; }
.login-brand-panel::after { content: ""; position: absolute; inset: auto 9% 9% 9%; height: 1px; background: linear-gradient(90deg, transparent, rgba(230,198,143,.55), transparent); }
.login-brand-panel img { width: min(72%, 390px); max-height: 58%; object-fit: contain; }
.login-brand-panel h2 { margin: 2px 0 10px; color: var(--white); font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.login-brand-panel p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.68); }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 7vw, 110px); }
.login-form-panel > * { width: min(100%, 480px); margin-right: auto; margin-left: auto; }
.login-form-copy { margin-bottom: 22px; }
.login-form-copy h1 { margin-bottom: 10px; font-size: clamp(2.6rem, 4.5vw, 4.5rem); }
.login-form-copy > p:last-child { margin: 0; color: var(--muted); }
.login-form-panel .form-stack { gap: 14px; }
.login-form-panel .forgot-link { justify-self: end; margin-top: -4px; font-size: .9rem; }
.login-form-panel .form-foot { margin-top: 18px; }
.login-privacy-link { float: right; text-decoration: underline; text-underline-offset: 3px; }
.google-login-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 11px 18px; color: var(--ink); background: var(--white); border: 1px solid #c9c6bf; border-radius: var(--radius); font-weight: 740; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.google-login-button:hover { border-color: #9e9a92; box-shadow: 0 8px 22px rgba(17,17,15,.08); transform: translateY(-1px); }
.google-login-button svg { flex: 0 0 auto; }
.login-divider { display: flex; align-items: center; gap: 12px; margin-top: 15px; margin-bottom: 15px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; margin-bottom: 38px; padding: clamp(34px, 7vw, 72px); color: var(--white); background: radial-gradient(circle at 85% 15%, rgba(184,138,68,.3), transparent 20rem), var(--ink); border-radius: var(--radius); }
.dashboard-hero h1 { margin-bottom: 16px; }
.dashboard-hero p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.76); }
.progress-ring { --progress: 0%; display: grid; place-items: center; align-content: center; width: 154px; height: 154px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 60%, transparent 61%), conic-gradient(var(--gold) var(--progress), rgba(255,255,255,.15) 0); }
.progress-ring strong { font-family: Georgia, serif; font-size: 2.6rem; font-weight: 400; line-height: 1; }
.progress-ring strong span { color: rgba(255,255,255,.6); font-size: 1rem; }
.progress-ring small { color: rgba(255,255,255,.66); }
.progress-0 { --progress: 0%; }.progress-1 { --progress: 10%; }.progress-2 { --progress: 20%; }.progress-3 { --progress: 30%; }.progress-4 { --progress: 40%; }.progress-5 { --progress: 50%; }.progress-6 { --progress: 60%; }.progress-7 { --progress: 70%; }.progress-8 { --progress: 80%; }.progress-9 { --progress: 90%; }.progress-10 { --progress: 100%; }
.current-week-card { margin-bottom: 36px; padding: clamp(30px, 6vw, 58px); color: var(--white); background: linear-gradient(135deg, rgba(184,138,68,.22), transparent 48%), var(--moss); border-radius: var(--radius); }
.current-week-card h2 { max-width: 780px; margin-bottom: 14px; }
.current-week-card p:not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.82); }
.current-week-card .button-row { margin-top: 22px; }
.guide-card { margin-bottom: 28px; padding: 22px 24px; background: var(--paper-deep); border-left: 3px solid var(--gold); }
.guide-card p:last-child { margin-bottom: 0; color: var(--muted); }
.week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.week-card { position: relative; min-height: 300px; display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.week-card.is-locked { background: var(--paper-deep); }
.week-card.is-complete { border-color: rgba(99,114,103,.52); }
.week-number { position: absolute; top: 10px; right: 18px; color: rgba(17,17,15,.055); font-family: Georgia, serif; font-size: 6.5rem; line-height: 1; }
.week-card h2 { position: relative; margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.week-status { margin-top: auto; color: var(--muted); font-size: .88rem; }
.card-link { color: var(--ink); font-weight: 780; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.muted-link { color: var(--muted); text-decoration: none; }

.study-shell { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 90px; }
.study-progress { position: sticky; top: 80px; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 42px; padding: 12px 16px; background: rgba(251,250,247,.94); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); font-size: .84rem; font-weight: 720; }
.study-progress > :last-child { text-align: right; }
.study-title { padding: clamp(30px, 7vw, 70px) 0; }
.study-title > p:not(.eyebrow), .study-title blockquote { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.study-title .button { margin-top: 22px; }
.week-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.week-download-link { color: var(--muted); font-size: .88rem; }
.study-title blockquote { margin: 28px 0 0; padding-left: 20px; color: var(--ink); border-left: 3px solid var(--gold); font-size: 1.45rem; }
.study-section { margin-bottom: 24px; box-shadow: none; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.4rem); }
.section-heading .text-button { margin-top: 4px; }
.questions-list { display: grid; gap: 14px; }
.question-card { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.question-card label { display: block; margin-bottom: 11px; font-weight: 740; line-height: 1.45; }
.question-card textarea { background: var(--white); }
.save-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 8px; }
.save-status { color: var(--muted); font-size: .8rem; }
.save-status.is-saving { color: var(--gold); }
.save-status.is-error { color: var(--danger); font-weight: 700; }
.text-button { padding: 0; color: var(--ink); background: none; border: 0; font-weight: 780; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.scripture-panel { margin-bottom: 24px; padding: 20px; background: var(--paper-deep); border-left: 3px solid var(--gold); }
.scripture-panel[hidden] { display: none; }
.esv-text { color: var(--charcoal); }
.esv-text h2, .esv-text h3 { font-family: inherit; font-size: 1rem; font-weight: 800; }
.copyright-note { color: var(--muted); font-size: .72rem; }
.challenge-card, .prayer-card, .complete-card { margin-bottom: 24px; padding: clamp(28px, 6vw, 56px); border-radius: var(--radius); }
.challenge-card, .complete-card { color: var(--white); background: var(--ink); }
.challenge-card h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.challenge-card > p:not(.eyebrow), .complete-card p { color: rgba(255,255,255,.78); }
.prayer-card { background: var(--paper-deep); border: 1px solid var(--line); }
.prayer-card blockquote { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.complete-card { display: grid; gap: 12px; }
.complete-card > * { margin: 0; }
.complete-card .check-label { margin: 8px 0; }
.journey-signature form { margin-top: 10px; }
.journey-signature input[type="text"] { color: var(--ink); background: var(--white); }
.journey-overview { margin-bottom: 24px; padding: clamp(28px, 6vw, 54px); color: var(--white); background: linear-gradient(135deg, rgba(184,138,68,.24), transparent 55%), var(--moss); border-radius: var(--radius); }
.journey-overview h2 { margin-bottom: 12px; }
.journey-overview p:not(.eyebrow) { color: rgba(255,255,255,.82); }
.journey-meter { height: 10px; margin-top: 28px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.journey-meter span { display: block; height: 100%; background: var(--gold-light); border-radius: inherit; transition: width .7s ease; }
.journey-grid { display: grid; gap: 18px; }
.journey-checkpoint { padding: clamp(24px, 5vw, 42px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.journey-checkpoint.is-complete { border-color: rgba(99,114,103,.62); box-shadow: inset 4px 0 var(--moss); }
.journey-checkpoint.is-locked { color: var(--muted); background: var(--paper-deep); }
.journey-checkpoint h2 { margin-bottom: 10px; }
.checkpoint-date { color: var(--muted); font-weight: 750; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.admin-card h2 { font-size: 2.25rem; }
.admin-card > p:not(.eyebrow) { color: var(--muted); }
.admin-danger-card { border-color: #e5bcbc; background: #fffafa; }
.admin-danger-card .section-heading p:not(.eyebrow) { max-width: 760px; color: var(--muted); }
.danger-check { padding: 15px; border: 1px solid #e5bcbc; border-radius: var(--radius); background: #fbeaea; }
.danger-check span { display: grid; gap: 3px; }
.danger-check small { color: #742626; }
.compact-form .button { justify-self: start; }
.inline-danger-form { margin-top: 20px; }
.admin-stat { min-width: 150px; text-align: center; }
.admin-stat strong { display: block; font-family: Georgia, serif; font-size: 4rem; font-weight: 400; line-height: 1; }
.admin-stat span { color: rgba(255,255,255,.68); }
.admin-section { margin-bottom: 24px; overflow: hidden; box-shadow: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
td small { display: block; color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.archived-row { opacity: .55; }
.generated-link-card { margin-bottom: 24px; padding: 28px; color: var(--white); background: var(--moss); border-radius: var(--radius); }
.generated-link-card h2 { font-size: 2rem; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.copy-row input { color: var(--ink); background: var(--white); }

.site-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 46px 0; border-top: 1px solid var(--line); }
.site-footer p { margin: 3px 0 0; color: var(--muted); }
.site-footer a { font-weight: 720; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }

/* Private Sunday sermon notes */
.dashboard-sermon-feature { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,54px); margin-bottom: 38px; padding: clamp(28px,6vw,56px); color: var(--white); background: linear-gradient(135deg, color-mix(in srgb, var(--sermon-accent) 74%, #11110f), #11110f 82%); border-radius: 20px; overflow: hidden; }
.dashboard-sermon-feature h2 { margin-bottom: 10px; font-size: clamp(2rem,5vw,3.8rem); }
.dashboard-sermon-feature p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.75); }
.sermon-date-block { width: 130px; aspect-ratio: 1; display: grid; place-content: center; color: var(--ink); text-align: center; background: var(--white); border-radius: 50%; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.sermon-date-block strong { display: block; font-family: Georgia, serif; font-size: 3.6rem; font-weight: 400; line-height: .9; }
.sermon-date-block span { margin-top: 7px; color: var(--sermon-accent); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.sermon-library-shell { max-width: 1040px; }
.sermon-library-intro { max-width: 800px; }
.sermon-library-grid { display: grid; gap: 20px; }
.sermon-library-card { display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,48px); padding: clamp(26px,5vw,46px); background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--sermon-accent); border-radius: 18px; box-shadow: 0 18px 48px rgba(17,17,15,.07); }
.sermon-library-card.is-complete { border-left-color: var(--moss); }
.sermon-library-card h2 { margin-bottom: 8px; font-size: clamp(2rem,4vw,3.1rem); }
.sermon-library-card > div:last-child > p:not(.eyebrow):not(.sermon-byline) { color: var(--muted); }
.sermon-byline { color: var(--sermon-accent); font-size: .88rem; font-weight: 780; }

.sermon-notes-page { min-height: 100dvh; background: var(--paper); }
.sermon-notes-page .site-header, .sermon-notes-page .site-footer { display: none; }
.sermon-page { width: 100%; min-height: 100dvh; }
.sermon-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 64px; }
.sermon-progress { position: sticky; top: 92px; z-index: 25; width: 100%; background: rgba(251,250,247,.96); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(17,17,15,.07); backdrop-filter: blur(16px); font-size: .82rem; font-weight: 760; }
.sermon-notes-page .sermon-progress { top: 0; }
.sermon-progress-inner { width: min(1080px, calc(100% - 36px)); min-height: 54px; display: grid; grid-template-columns: 1fr minmax(180px,300px) 1fr; align-items: center; gap: 18px; margin: 0 auto; padding: 8px 0; }
.sermon-progress-inner > :last-child { justify-self: end; }
.sermon-autosave-status { color: var(--success); font-size: .78rem; }
.sermon-progress-copy { display: grid; gap: 5px; text-align: center; }
.sermon-progress-track { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; }
.sermon-progress-track::-webkit-progress-bar { background: var(--line); }
.sermon-progress-track::-webkit-progress-value { background: var(--sermon-accent); transition: width .18s ease; }
.sermon-progress-track::-moz-progress-bar { background: var(--sermon-accent); transition: width .18s ease; }
.sermon-view-switch-wrap { width: min(520px, calc(100% - 36px)); margin: 0 auto; padding: 0 0 12px; }
.sermon-view-switch { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; padding: 4px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px rgba(17,17,15,.07); }
.sermon-view-switch button { min-height: 44px; padding: 8px 16px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }
.sermon-view-switch button.is-active { color: var(--white); background: var(--sermon-accent); box-shadow: 0 6px 16px rgba(49,91,125,.22); }
.sermon-view-panel[hidden] { display: none !important; }
.sermon-title { padding: clamp(28px,5vw,52px) 0 clamp(24px,4vw,40px); border-bottom: 1px solid var(--line); }
.sermon-title h1 { max-width: 820px; margin-bottom: 12px; font-size: clamp(2.35rem,5vw,4.4rem); }
.sermon-title > p:not(.eyebrow):not(.sermon-byline) { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.sermon-title .button { margin-top: 18px; }
.sermon-overall-save { display: inline-flex; padding: 9px 13px; color: var(--muted); background: var(--paper-deep); border-radius: 999px; font-size: .8rem; }
.sermon-movement { margin-bottom: 30px; padding: clamp(24px,5vw,48px); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 46px rgba(17,17,15,.055); scroll-margin-top: 170px; }
.sermon-movement-heading { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 24px; margin-bottom: 30px; }
.sermon-movement-heading > span { color: color-mix(in srgb, var(--sermon-accent) 22%, transparent); font-family: Georgia, serif; font-size: 4.5rem; line-height: .88; }
.sermon-movement-heading h2 { margin-bottom: 12px; font-size: clamp(2.2rem,5vw,3.8rem); }
.sermon-movement-heading div > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.sermon-scripture { margin: 18px 0; padding: 20px; background: color-mix(in srgb, var(--sermon-accent) 5%, var(--paper)); border-color: color-mix(in srgb, var(--sermon-accent) 24%, var(--line)); }
.sermon-scripture .section-heading { margin-bottom: 0; }
.sermon-scripture .section-heading h3 { margin-bottom: 5px; font-size: 1.65rem; }
.sermon-scripture .section-heading p:not(.eyebrow) { margin-bottom: 10px; color: var(--muted); }
.sermon-scripture .scripture-panel { margin: 18px 0 0; border-left-color: var(--sermon-accent); }
.sermon-prompts { display: grid; gap: 14px; margin-top: 24px; }
.sermon-prompt { background: var(--paper); }
.fill-sentence { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.25rem,3vw,1.65rem); line-height: 1.65; }
.fill-answer-wrap { flex: 1 1 250px; display: inline-flex; align-items: baseline; gap: 6px; }
.fill-sentence input { flex: 1 1 auto; width: auto; min-width: 180px; min-height: 42px; padding: 4px 8px; color: var(--sermon-accent); background: transparent; border: 0; border-bottom: 2px solid var(--sermon-accent); border-radius: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1rem; font-weight: 740; }
.fill-sentence input::placeholder { color: color-mix(in srgb, var(--sermon-accent) 55%, var(--muted)); font-weight: 600; }
.sermon-prompt-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.prompt-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .84rem; }
.prompt-hint > span { flex: 0 0 auto; padding: 3px 7px; color: var(--sermon-accent); background: color-mix(in srgb, var(--sermon-accent) 9%, var(--white)); border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.answer-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; color: var(--sermon-accent); background: var(--white); border: 1px solid color-mix(in srgb, var(--sermon-accent) 28%, var(--line)); border-radius: 999px; font-size: .8rem; font-weight: 800; cursor: pointer; }
.answer-toggle:hover, .answer-toggle[aria-expanded="true"] { color: var(--white); background: var(--sermon-accent); }
.answer-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.inline-answer { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 12px 14px; color: var(--sermon-accent); background: color-mix(in srgb, var(--sermon-accent) 8%, var(--white)); border-left: 3px solid var(--sermon-accent); border-radius: 6px; }
.inline-answer[hidden] { display: none !important; }
.inline-answer > span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.inline-answer strong { font-size: 1.05rem; }
.sermon-prompt-reflection { border-left: 3px solid var(--sermon-accent); }
.sermon-prompt-prayer { background: color-mix(in srgb, var(--sermon-accent) 8%, var(--paper)); border-color: color-mix(in srgb, var(--sermon-accent) 32%, var(--line)); }
.private-note-help { margin: -4px 0 12px; color: var(--muted); font-size: .84rem; }
.sermon-notepad { position: relative; min-height: calc(100dvh - 112px); padding: 0; background: transparent; }
.sermon-notepad::before { content: ''; position: absolute; inset: 0 auto 0 50%; z-index: 0; width: 100vw; background: var(--white); transform: translateX(-50%); pointer-events: none; }
.sermon-notepad-card { position: relative; z-index: 1; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.sermon-notepad-editor { min-height: calc(100dvh - 112px); padding: clamp(28px,5vw,58px) clamp(16px,4vw,42px) 190px; color: #202939; background: var(--white); outline: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(17px,2vw,20px); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; caret-color: var(--sermon-accent); }
.sermon-notepad-editor:empty::before { content: 'Start writing your sermon notes…'; color: var(--muted); pointer-events: none; }
.sermon-notepad-editor h2 { margin: 1.1em 0 .35em; color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.8rem,4vw,2.65rem); font-weight: 400; line-height: 1.15; }
.sermon-notepad-editor h3 { margin: 1em 0 .3em; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.15rem,2.5vw,1.45rem); font-weight: 800; line-height: 1.3; }
.sermon-notepad-editor blockquote { margin: 1em 0; padding: .85em 1.1em; color: color-mix(in srgb, var(--sermon-accent) 82%, var(--ink)); background: color-mix(in srgb, var(--sermon-accent) 7%, var(--white)); border-left: 4px solid var(--sermon-accent); border-radius: 0 8px 8px 0; font-size: 1.08em; font-style: italic; line-height: 1.65; }
.sermon-notepad-editor p, .sermon-notepad-editor ul { margin: .45em 0; }
.sermon-notepad-editor ul { padding-left: 1.6em; }
.sermon-notepad-editor ul[data-list="checklist"] { padding-left: 0; list-style: none; }
.sermon-notepad-editor ul[data-list="checklist"] li { position: relative; padding-left: 2em; }
.sermon-notepad-editor ul[data-list="checklist"] li::before { content: ''; position: absolute; left: .15em; top: .55em; width: .95em; height: .95em; border: 2px solid var(--sermon-accent); border-radius: 4px; cursor: pointer; }
.sermon-notepad-editor ul[data-list="checklist"] li[data-checked="true"] { color: var(--muted); text-decoration: line-through; }
.sermon-notepad-editor ul[data-list="checklist"] li[data-checked="true"]::before { content: '✓'; display: grid; place-items: center; color: var(--white); background: var(--sermon-accent); font-size: .68em; font-weight: 900; line-height: 1; }
.sermon-notepad-editor [data-text-color="ink"] { color: #202939; }
.sermon-notepad-editor [data-text-color="red"] { color: #b44545; }
.sermon-notepad-editor [data-text-color="blue"] { color: #315b7d; }
.sermon-notepad-editor [data-text-color="green"] { color: #3f6b52; }
.sermon-notepad-editor [data-text-color="purple"] { color: #73558d; }
.sermon-notepad-editor [data-text-color="gold"] { color: #9a6b21; }
.sermon-notepad-editor.is-highlighting { cursor: crosshair; caret-color: transparent; user-select: none; }
.sermon-notepad-editor [data-highlight] { padding: .04em .08em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sermon-notepad-editor [data-highlight="yellow"] { background: #ffe879; }
.sermon-notepad-editor [data-highlight="pink"] { background: #ffadd0; }
.sermon-notepad-editor [data-highlight="red"] { background: #ffaca8; }
.sermon-notepad-editor [data-highlight="green"] { background: #aee9b6; }
.sermon-notepad-editor [data-highlight="blue"] { background: #a9d9ff; }
.sermon-notepad-editor [data-highlight="purple"] { background: #d5b8ff; }
.notepad-toolbar { position: fixed; left: 50%; bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--keyboard-offset, 0px)); z-index: 100; display: flex; align-items: center; gap: 7px; width: min(760px, calc(100vw - 24px)); max-width: none; padding: 7px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 44px rgba(17,17,15,.2); transform: translateX(-50%); backdrop-filter: blur(14px); overflow: visible; transition: bottom .16s ease; }
.notepad-command-group { display: flex; flex: 1 1 auto; align-items: center; gap: 3px; min-width: 0; padding-right: 7px; border-right: 1px solid var(--line); overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.notepad-command-group button, .text-color-toggle { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 7px 9px; color: var(--ink); background: transparent; border: 0; border-radius: 9px; font-size: .78rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.notepad-command-group button:hover, .notepad-command-group button:focus-visible, .text-color-toggle:hover, .text-color-toggle:focus-visible { color: var(--sermon-accent); background: var(--paper-deep); }
.clear-format-icon { font-size: .76rem; font-weight: 850; text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.quote-block-icon { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.notepad-color-control { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.text-color-a { padding-bottom: 2px; border-bottom: 3px solid currentColor; font-size: 1.05rem; }
.text-colors { position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 3px; padding: 7px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 34px rgba(17,17,15,.18); }
.text-colors[hidden] { display: none !important; }
.text-colors button { display: grid; place-items: center; width: 38px; height: 38px; padding: 6px; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.text-colors button span { width: 22px; height: 22px; background: var(--swatch); border: 1px solid rgba(17,17,15,.14); border-radius: 50%; }
.text-colors button.is-selected { box-shadow: inset 0 0 0 2px var(--sermon-accent); }
.highlighter-toggle { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; padding: 11px; color: var(--sermon-accent); background: var(--paper-deep); border: 0; border-radius: 50%; cursor: pointer; }
.highlighter-toggle[aria-pressed="true"] { color: var(--white); background: var(--sermon-accent); }
.highlighter-toggle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.highlight-colors { position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 5px; padding: 7px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 34px rgba(17,17,15,.18); }
.highlight-colors[hidden] { display: none !important; }
.highlight-colors button { display: grid; place-items: center; width: 40px; height: 40px; padding: 6px; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.highlight-colors button > span { width: 24px; height: 24px; border: 1px solid rgba(17,17,15,.12); border-radius: 50%; }
.highlight-colors button[data-highlight-color="yellow"] > span { background: #ffe879; }
.highlight-colors button[data-highlight-color="pink"] > span { background: #ffadd0; }
.highlight-colors button[data-highlight-color="red"] > span { background: #ffaca8; }
.highlight-colors button[data-highlight-color="green"] > span { background: #aee9b6; }
.highlight-colors button[data-highlight-color="blue"] > span { background: #a9d9ff; }
.highlight-colors button[data-highlight-color="purple"] > span { background: #d5b8ff; }
.highlight-colors .highlight-remove > span { display: grid; place-items: center; color: #8b2f2f; background: repeating-linear-gradient(135deg,#fff 0 5px,#f6d7d5 5px 10px); font-size: 1.2rem; font-weight: 900; line-height: 1; }
.highlight-colors button.is-selected { box-shadow: inset 0 0 0 2px var(--sermon-accent); }
.sermon-finish-card { display: grid; gap: 12px; margin-top: 26px; padding: clamp(30px,6vw,58px); color: var(--white); background: linear-gradient(135deg, var(--sermon-accent), #11110f 78%); border-radius: 18px; }
.sermon-finish-card > * { margin: 0; }
.sermon-finish-card p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.sermon-finish-card .check-label { margin: 8px 0; }
.sermon-finish-card .check-label input { accent-color: var(--white); }
.sermon-finish-card .button { justify-self: start; }
.sermon-finish-card.is-complete { background: linear-gradient(135deg, var(--moss), #25362c); }
.sermon-answer-key { margin-top: 26px; background: var(--white); border: 1px solid color-mix(in srgb, var(--sermon-accent) 32%, var(--line)); border-radius: 18px; box-shadow: 0 16px 46px rgba(17,17,15,.055); overflow: hidden; }
.sermon-answer-key summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 22px clamp(22px,5vw,42px); cursor: pointer; list-style: none; }
.sermon-answer-key summary::-webkit-details-marker { display: none; }
.sermon-answer-key summary strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: clamp(1.55rem,3vw,2.2rem); font-weight: 400; }
.answer-key-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: var(--white); background: var(--sermon-accent); border-radius: 50%; font-size: 1.6rem; line-height: 1; transition: transform .18s ease; }
.sermon-answer-key[open] .answer-key-icon { transform: rotate(45deg); }
.sermon-answer-key-list { display: grid; gap: 0; padding: 0 clamp(22px,5vw,42px) 28px; border-top: 1px solid var(--line); }
.sermon-answer-key-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.sermon-answer-key-item:last-child { border-bottom: 0; }
.sermon-answer-key-item > span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--sermon-accent); background: color-mix(in srgb, var(--sermon-accent) 9%, var(--white)); border-radius: 50%; font-size: .76rem; font-weight: 850; }
.sermon-answer-key-item p { margin: 0; line-height: 1.65; }
.sermon-answer-key-item strong { color: var(--sermon-accent); }
/* Hope Studies platform shell */
.platform-hero { background: radial-gradient(circle at 50% 28%, rgba(139,183,255,.28), transparent 24rem), linear-gradient(145deg, #0b244d, var(--hope-blue) 58%, #265daf); }
.studies-church-page .platform-hero { min-height: calc(100svh - 120px); }
.studies-church-page main { background: var(--paper); }
.sunday-notes-section { padding-top: clamp(46px, 7vw, 82px); padding-bottom: 0; }
.sunday-notes-callout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); align-items: end; gap: clamp(28px, 6vw, 76px); padding: clamp(30px, 6vw, 58px); color: var(--white); background: linear-gradient(135deg, #0b244d, var(--hope-blue) 62%, #265daf); border-radius: 22px; box-shadow: 0 22px 60px rgba(11,36,77,.18); }
.sunday-notes-callout h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.8rem); }
.sunday-notes-callout p:last-child { margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.platform-hero-mark { width: 150px; height: 150px; margin-bottom: 18px; border-radius: 34px; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.platform-dashboard-hero { background: radial-gradient(circle at 85% 15%, rgba(139,183,255,.32), transparent 20rem), var(--hope-blue); }
.catalog-grid, .study-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.catalog-card, .study-library-card { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: center; gap: 24px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--study-accent); border-radius: 18px; box-shadow: 0 16px 42px rgba(17,17,15,.07); }
.catalog-card img, .study-library-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: var(--paper-deep); }
.catalog-card h2, .catalog-card h3, .study-library-card h3 { margin-bottom: 10px; font-size: clamp(1.7rem,3vw,2.35rem); }
.catalog-card p, .study-library-card p { color: var(--muted); }
.study-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; }
.study-meta li { padding: 6px 10px; color: var(--muted); background: var(--paper-deep); border-radius: 999px; font-size: .8rem; font-weight: 720; }
.study-detail-hero { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1fr); align-items: center; gap: clamp(32px,7vw,86px); padding: clamp(34px,7vw,76px); color: var(--white); background: linear-gradient(135deg, color-mix(in srgb, var(--study-accent) 55%, #11110f), #11110f 72%); border-radius: 22px; overflow: hidden; }
.study-detail-hero > img { width: 100%; max-height: 430px; object-fit: contain; border-radius: 18px; background: rgba(255,255,255,.08); }
.study-detail-hero h1 { margin-bottom: 12px; }
.study-detail-hero .study-subtitle { color: rgba(255,255,255,.9); font-size: 1.15rem; font-weight: 720; }
.study-detail-hero p:not(.eyebrow) { color: rgba(255,255,255,.76); }
.study-detail-hero .study-meta li { color: white; background: rgba(255,255,255,.12); }
.platform-study-section { margin: 50px 0; }
.empty-study-state { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 32px; padding: clamp(28px,6vw,58px); background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.empty-study-state img { border-radius: 34px; }
.left-buttons { justify-content: flex-start; }
.study-library-card.is-complete { opacity: .9; border-top-color: var(--moss); }
.study-branded-hero { background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--study-accent) 48%, transparent), transparent 20rem), linear-gradient(135deg, color-mix(in srgb, var(--study-accent) 52%, #11110f), #11110f 78%); }
.study-dashboard-page .current-week-card { background: linear-gradient(135deg, color-mix(in srgb, var(--study-accent) 70%, #11110f), #11110f); }
.study-dashboard-page .week-card.is-complete { border-color: var(--study-accent); }

main h1.reveal-title, main h2.reveal-title { opacity: 0; filter: blur(12px); transform: translateY(18px); transition: opacity .7s, filter .7s, transform .7s; }
main h1.reveal-title.is-visible, main h2.reveal-title.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 70px; right: 18px; left: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px; }
    .intro-grid, .admin-grid { grid-template-columns: 1fr; }
    .section-mark { min-height: 330px; }
    .login-page { height: auto; min-height: 100svh; overflow: auto; }
    .login-shell { height: auto; min-height: 100svh; padding: 0; }
    .login-layout { height: auto; min-height: 100svh; grid-template-columns: 1fr; }
    .login-brand-panel { min-height: 280px; padding: 24px; border-radius: 0 0 42px 42px; }
    .login-brand-panel img { width: 170px; height: 150px; }
    .login-brand-panel h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
    .login-form-panel { padding: clamp(26px, 7vw, 44px); }
    .catalog-grid, .study-library-grid, .sunday-notes-callout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .site-header { min-height: 78px; }
    .brand img { width: 62px; height: 62px; }
    .brand strong { font-size: .9rem; }
    .brand small { display: none; }
    .sermon-progress { top: 78px; }
    .hero { min-height: calc(100svh - 70px); padding: 54px 18px; background-size: 94vw; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .button-row, .button-row .button { width: 100%; }
    .section, .content-shell, .site-footer { width: min(var(--max), calc(100% - 28px)); }
    .form-grid-two, .dashboard-hero, .week-grid, .copy-row { grid-template-columns: 1fr; }
    .dashboard-hero { justify-items: start; }
    .progress-ring { width: 132px; height: 132px; }
    .study-progress { top: 72px; grid-template-columns: 1fr auto; }
    .study-progress > :last-child { display: none; }
    .study-section, .commitment-card, .admin-card, .admin-section { padding: 22px 16px; }
    .question-card { padding: 15px 12px; }
    .save-row { align-items: start; }
    .site-footer { align-items: start; flex-direction: column; }
    .site-footer .footer-links { justify-content: flex-start; }
    .table-wrap { margin-inline: -8px; }
    th, td { min-width: 115px; }
    .login-shell { min-height: 100svh; padding: 0; }
    .login-brand-panel { min-height: 205px; }
    .login-brand-panel img { width: 135px; height: 120px; }
    .login-brand-panel .eyebrow { margin-bottom: 5px; font-size: .67rem; }
    .login-brand-panel h2 { margin-bottom: 5px; }
    .login-form-copy h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .catalog-card, .study-library-card, .study-detail-hero, .empty-study-state { grid-template-columns: 1fr; }
    .catalog-card img, .study-library-card img { width: 150px; }
    .study-detail-hero > img { max-height: 280px; }
    .dashboard-sermon-feature, .sermon-library-card { grid-template-columns: 1fr; }
    .sermon-date-block { width: 102px; }
    .sermon-date-block strong { font-size: 2.8rem; }
    .sermon-progress-inner { width: calc(100% - 28px); min-height: 54px; grid-template-columns: auto 1fr; gap: 12px; }
    .sermon-progress-inner > :last-child { display: none; }
    .sermon-view-switch-wrap { width: calc(100% - 28px); padding-bottom: 10px; }
    .sermon-view-switch button { min-height: 46px; }
    .sermon-shell { width: calc(100% - 20px); padding-bottom: 36px; }
    .sermon-title { padding: 24px 4px 22px; }
    .sermon-title h1 { font-size: clamp(2.2rem,11vw,3.2rem); }
    .sermon-movement { padding: 22px 15px; }
    .sermon-movement-heading { grid-template-columns: 1fr; gap: 8px; }
    .sermon-movement-heading > span { font-size: 3rem; }
    .fill-sentence { display: block; }
    .fill-answer-wrap { width: 100%; margin: 8px 0; }
    .fill-sentence input { width: 100%; min-width: 0; }
    .sermon-prompt-tools { grid-template-columns: 1fr auto; gap: 8px; }
    .prompt-hint { align-items: flex-start; line-height: 1.4; }
    .answer-toggle { min-width: 44px; min-height: 44px; padding-inline: 10px; }
    .sermon-notepad { min-height: calc(100dvh - 112px); }
    .sermon-notepad-editor { min-height: calc(100dvh - 112px); padding: 22px 8px 180px; font-size: 17px; line-height: 1.75; }
    .notepad-toolbar { bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--keyboard-offset, 0px)); width: calc(100vw - 12px); border-radius: 14px; }
    .notepad-command-group { scrollbar-width: none; }
    .notepad-command-group::-webkit-scrollbar { display: none; }
    .notepad-command-group button, .text-color-toggle { min-width: 44px; height: 44px; }
    .text-colors, .highlight-colors { right: 0; max-width: calc(100vw - 20px); overflow-x: auto; }
    .notepad-toolbar { bottom: max(10px, env(safe-area-inset-bottom)); }
    .export-toolbar { padding: 12px 16px; }
    .export-toolbar .button { width: 100%; }
    .export-notes-form, .export-notes-toggle { width: 100%; }
    .highlighter-toggle { width: 46px; height: 46px; }
    .highlight-colors { gap: 2px; }
    .highlight-colors button { width: 37px; height: 37px; padding: 6px; }
    .highlight-colors button > span { width: 23px; height: 23px; }
}

@media (max-height: 790px) and (min-width: 901px) {
    .login-form-panel { padding-top: 20px; padding-bottom: 20px; }
    .login-form-copy { margin-bottom: 12px; }
    .login-form-copy h1 { margin-bottom: 4px; font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
    .login-form-panel .form-stack { gap: 9px; }
    .login-divider { margin-top: 9px; margin-bottom: 9px; }
    .login-form-panel .form-foot { margin-top: 10px; margin-bottom: 0; }
    .first-admin-callout { margin-top: 10px; padding: 10px 14px; }
    .first-admin-callout p { display: inline; margin-right: 10px; }
}

.export-page { background: #e8e4dc; }
.export-page .site-header, .export-page .site-footer { display: none; }
.export-toolbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: min(8.5in, 100%); margin-inline: auto; padding: 12px 16px; background: rgba(251,250,247,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.export-toolbar > a:first-child { flex: 0 1 auto; font-weight: 780; text-decoration: none; }
.export-toolbar > a:first-child:hover { color: var(--muted); }
.export-notes-form { display: flex; justify-content: center; margin: 0; }
.export-toolbar .button { flex: 0 0 auto; }
.export-notes-form { margin: 0; }
.export-notes-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; cursor: pointer; }
.export-notes-toggle input { width: 20px; min-height: 20px; accent-color: var(--ink); }
.export-stage { padding: 28px 16px 64px; }
.export-sheet { --export-accent: var(--gold); width: min(8.5in, 100%); min-height: 11in; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(22px, 5vw, 68px) 48px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(17,17,15,.12); }
.export-brand { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.export-brand img { width: 56px; height: 56px; object-fit: contain; }
.export-brand strong { display: block; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.export-brand small { color: var(--muted); font-size: .78rem; }
.export-brand span { color: var(--export-accent); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.export-title { padding: 28px 0 8px; border-bottom: 2px solid var(--export-accent); margin-bottom: 28px; }
.export-title h1 { margin-bottom: 10px; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.export-subtitle, .export-meta, .export-intro { max-width: 40rem; }
.export-subtitle { margin-bottom: 8px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-style: italic; }
.export-meta { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.export-intro { margin: 0 0 28px; font-size: 1.08rem; }
.export-block { margin: 32px 0 18px; }
.export-block h2, .export-callout h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.export-block > p:not(.eyebrow) { color: var(--muted); }
.export-scripture { margin: 18px 0; padding: 16px 18px 16px 20px; background: var(--paper); border-left: 3px solid var(--export-accent); }
.export-scripture h3 { margin-bottom: 4px; font-size: 1.35rem; }
.export-scripture p:not(.eyebrow) { margin: 0; color: var(--muted); }
.export-fill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.7; }
.export-fill strong { color: var(--export-accent); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1rem; }
.export-blank { display: inline-block; min-width: 11rem; border-bottom: 1.5px solid var(--ink); }
.export-question { margin: 0 0 18px; }
.export-question > p { margin: 0 0 8px; font-weight: 760; }
.export-answer { padding: 10px 0 4px 12px; border-left: 2px solid var(--export-accent); white-space: pre-wrap; }
.export-lines { display: grid; gap: 16px; margin: 8px 0 4px; }
.export-lines span { display: block; height: 0; border-bottom: 1px solid var(--line); }
.export-lines-tall { gap: 20px; margin-top: 12px; }
.export-callout { margin: 28px 0; padding: 26px 24px; color: #fff; background: var(--ink); }
.export-callout .eyebrow { color: var(--gold-light); }
.export-callout p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.8); }
.export-quote { margin: 22px 0; padding: 20px 18px 20px 20px; background: var(--paper); border-left: 3px solid var(--export-accent); }
.export-quote blockquote { margin: 0; font-size: 1.2rem; }
.export-sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.export-sheet-foot p { margin: 0; }

@media print {
    .export-page { background: #fff; }
    .export-toolbar, .export-page .flash, .export-page .site-header, .export-page .site-footer { display: none !important; }
    .export-stage { padding: 0; }
    .export-sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
    .export-callout { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    @page { size: letter; margin: .65in .7in .7in; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    main h1.reveal-title, main h2.reveal-title { opacity: 1; filter: none; transform: none; }
}
