* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--green-soft);
    color: var(--ink);
    line-height: 1.6;
}

/* Top Navigation Bar */
header {
    background-color: var(--surface-raised);
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--ink) 4%, transparent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--ink);
}

.logo span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: var(--green-soft);
    color: var(--ink);
}

nav a.active {
    background-color: var(--success);
    color: var(--on-hero);
}

/* Main Container & Cards */
.container {
    max-width: 1150px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--ink);
}

.page-header p {
    color: var(--muted);
}

.card {
    background: var(--surface-raised);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--ink) 3%, transparent);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--ink);
    color: var(--on-hero);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--green);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.day.sunday {
    background-color: var(--success-soft);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.day.sunday:hover {
    background-color: var(--success-soft);
}

body {
    background-color: var(--green-soft);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1150px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--ink);
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}
/* Smooth Page Entrance & Cross-Page Fade */
@view-transition {
    navigation: auto;
}

.container {
    animation: bolPageFadeIn 0.60s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bolPageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    nav a {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 6px 11px;
    }
}

/* Beacon of Light visual refresh */
:root {
    color-scheme: light;
    --page: #f5f1e8;
    --ink: #192a3b;
    --muted: #59697a;
    --surface: #fffdf8;
    --surface-raised: #ffffff;
    --line: #e5dece;
    --accent: #bd8a36;
    --accent-ink: #17283a;
    --accent-soft: #efe5d0;
    --green: #29485a;
    --green-soft: #e7eeeb;
    --hero-a: #182e45;
    --hero-b: #2f516a;
    --hero-c: #876b42;
    --shadow: 0 18px 48px rgba(32, 43, 54, 0.09);
    --radius: 22px;
    --theme-color: #182e45;
    --on-hero: #ffffff;
    --hero-muted: #e2eee9;
    --hero-highlight: #f4d898;
    --hero-glass: color-mix(in srgb, var(--on-hero) 10%, transparent);
    --hero-glass-border: color-mix(in srgb, var(--on-hero) 22%, transparent);
    --hero-overlay: color-mix(in srgb, var(--hero-a) 82%, transparent);
    --success: #407963;
    --success-soft: #e1efe5;
    --success-ink: #1f513a;
    --success-line: #a9cdb9;
    --danger: #a12622;
    --danger-soft: #fde2e1;
    --danger-ink: #991b1b;
    --danger-line: #f5b7b4;
    --warning: #9a6b00;
    --warning-soft: #fff4dc;
}

body[data-theme="olive"] {
    --page: #f2efe5;
    --ink: #1d322a;
    --muted: #5c6a60;
    --surface: #fffdf5;
    --surface-raised: #ffffff;
    --line: #dfdfd0;
    --accent: #b76f50;
    --accent-ink: #fffaf2;
    --accent-soft: #f2e4da;
    --green: #285344;
    --green-soft: #e4ede5;
    --hero-a: #19382e;
    --hero-b: #31584a;
    --hero-c: #986a4c;
    --shadow: 0 18px 48px rgba(31, 51, 41, 0.09);
    --theme-color: #19382e;
    --hero-muted: #d5e3dd;
    --hero-highlight: #efc59f;
    --success: #367150;
    --success-soft: #e4ede5;
    --success-ink: #285344;
    --success-line: #9db9a5;
    --danger: #9f3c32;
    --danger-soft: #f6e6e0;
    --danger-ink: #733a2f;
    --danger-line: #c88476;
    --warning: #855719;
    --warning-soft: #f2e4da;
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 32rem), var(--page);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
h1, h2, h3, .serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.025em; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { color: var(--ink); background-color: var(--surface-raised); border-color: var(--line); }
.skip-link { position: absolute; z-index: 200; left: 1rem; top: -4rem; padding: .65rem .9rem; background: var(--surface); border-radius: 10px; color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem clamp(1rem, 4vw, 3.75rem);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 4.5%, transparent);
    backdrop-filter: blur(16px);
}
.site-header .logo { flex: 0 0 auto; gap: .8rem; color: var(--ink); font-family: "Segoe UI", sans-serif; font-size: .82rem; letter-spacing: .09em; line-height: 1.2; }
.site-header .logo img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.site-header .logo span { margin-top: .28rem; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .09em; }
.site-nav { display: flex; align-items: center; gap: .16rem; flex: 1 1 auto; justify-content: center; }
.site-nav > a, .nav-more > summary {
    padding: .55rem .68rem; border-radius: 999px; color: var(--muted); text-decoration: none;
    font-size: .78rem; font-weight: 700; white-space: nowrap; list-style: none; cursor: pointer;
}
.site-nav > a:hover, .nav-more > summary:hover, .site-nav > a.active, .nav-more > summary.active, .nav-more[open] > summary { color: var(--ink); background: var(--accent-soft); }
.nav-more { position: relative; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: "⌄"; margin-left: .3rem; }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 190px; padding: .45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.nav-more-menu a { display: block; padding: .65rem .75rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 650; }
.nav-more-menu a:hover, .nav-more-menu a.active { color: var(--ink); background: var(--accent-soft); }
.theme-switch { display: flex; align-items: center; gap: .2rem; padding: .24rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.theme-switch-label { padding: 0 .35rem 0 .5rem; color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.theme-btn { border: 0; border-radius: 999px; background: transparent; padding: .45rem .55rem; color: var(--muted); font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; }
.theme-btn[aria-pressed="true"] { background: var(--green); color: var(--on-hero); }
.container { width: min(1180px, 100%); max-width: 1180px; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.4rem); flex: 1; }
.page-header { margin: 0 0 1.5rem; }
.page-header h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.page-header p, .muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.card, .month-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 4.5%, transparent); }
.btn, .button-primary { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--on-hero); padding: .75rem 1.1rem; text-decoration: none; font-size: .9rem; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover, .button-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 22px color-mix(in srgb, var(--green) 24%, transparent); background: var(--green); }
.button-secondary { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 999px; background: var(--surface); color: var(--ink); padding: .75rem 1.1rem; text-decoration: none; font-size: .9rem; font-weight: 750; cursor: pointer; }
footer { margin-top: auto; padding: 1.6rem 1rem; color: var(--muted); text-align: center; font-size: .8rem; }

/* Home page */
.home-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; overflow: hidden; min-height: 370px; padding: clamp(2rem, 5vw, 4rem); border-radius: 30px; background: linear-gradient(118deg, var(--hero-a), var(--hero-b) 64%, var(--hero-c)); color: var(--on-hero); box-shadow: var(--shadow); }
.home-hero::before, .home-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.home-hero::before { width: 34rem; height: 34rem; right: -10rem; top: -16rem; border: 1px solid color-mix(in srgb, var(--on-hero) 17%, transparent); box-shadow: 0 0 0 32px color-mix(in srgb, var(--on-hero) 3.5%, transparent), 0 0 0 72px color-mix(in srgb, var(--on-hero) 2.5%, transparent); }
.home-hero::after { width: 22rem; height: 22rem; right: 4%; bottom: -18rem; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 69%); }
.home-hero-copy { align-self: center; max-width: 620px; }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid color-mix(in srgb, var(--on-hero) 22%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--on-hero) 10%, transparent); color: var(--hero-highlight); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.home-hero h1 { max-width: 13ch; margin: 1.05rem 0 .85rem; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .99; }
.home-hero p { max-width: 54ch; color: color-mix(in srgb, var(--on-hero) 82%, transparent); font-size: 1.06rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.home-hero .button-primary { border-color: var(--hero-highlight); background: var(--accent); color: var(--accent-ink); }
.home-hero .button-secondary { border-color: color-mix(in srgb, var(--on-hero) 34%, transparent); background: color-mix(in srgb, var(--on-hero) 9%, transparent); color: var(--on-hero); }
.hero-verse { align-self: end; justify-self: end; width: min(100%, 290px); padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--on-hero) 22%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--hero-a) 25%, transparent); backdrop-filter: blur(8px); }
.hero-verse-mark { margin-bottom: .8rem; color: var(--hero-highlight); font-size: 1.6rem; }
.hero-verse blockquote { font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.45; }
.hero-verse cite { display: block; margin-top: .75rem; color: color-mix(in srgb, var(--on-hero) 70%, transparent); font-size: .75rem; font-style: normal; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.75rem 0 1.15rem; }
.section-heading h2 { margin-top: .35rem; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-heading p { max-width: 55ch; color: var(--muted); }
.pathway-grid, .pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pathway-card, .pillar-card { min-height: 185px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 3.5%, transparent); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.pathway-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pathway-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--accent-soft); color: var(--green); font-size: 1.2rem; }
.pathway-card h3, .pillar-card h3 { margin-bottom: .45rem; color: var(--ink); font-size: 1.15rem; }
.pathway-card p, .pillar-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.home-feature-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1rem; margin-top: 1rem; }
.quiz-card, .quote-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 4%, transparent); }
.quiz-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.quiz-tag { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.quiz-progress-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; margin: .3rem 0 1rem; color: var(--muted); font-size: .74rem; font-weight: 750; }
.quiz-progress-row progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: var(--line); accent-color: var(--accent); }
.quiz-progress-row progress::-webkit-progress-bar { border-radius: 999px; background: var(--line); }
.quiz-progress-row progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
.quiz-progress-row progress::-moz-progress-bar { border-radius: 999px; background: var(--accent); }
.quiz-question { margin-bottom: 1rem; color: var(--ink); font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.4; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.quiz-option { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--ink); text-align: left; font: inherit; font-size: .86rem; cursor: pointer; }
.quiz-option:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-option.correct { border-color: var(--success); background: var(--success-soft); color: var(--success-ink); }
.quiz-option.wrong { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger-ink); }
.quiz-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 2.5rem; margin-top: .6rem; color: var(--muted); font-size: .84rem; }
.quiz-next { border: 0; background: none; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; }
.quiz-next:disabled { opacity: .48; cursor: not-allowed; }
.quote-card { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(140deg, var(--green), var(--hero-a)); color: var(--on-hero); }
.quote-card .eyebrow { color: var(--hero-highlight); }
.quote-card blockquote { margin: 1rem 0 .55rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; }
.quote-card cite { color: color-mix(in srgb, var(--on-hero) 70%, transparent); font-size: .82rem; font-style: normal; }
.react-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.react-pill { padding: .55rem .8rem; border: 1px solid color-mix(in srgb, var(--on-hero) 20%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--on-hero) 9%, transparent); color: var(--on-hero); font: inherit; font-size: .8rem; cursor: pointer; }
.react-pill.voted { border-color: var(--hero-highlight); background: var(--accent); color: var(--accent-ink); }
.invitation-band { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 2.75rem; padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 24px; background: var(--accent-soft); }
.invitation-band h2 { margin: .25rem 0; color: var(--ink); font-size: 1.65rem; }
.invitation-band p { color: var(--muted); }

/* Calendar, curriculum and Hour of Power */
.page-hero { margin-bottom: 1.35rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 26px; background: linear-gradient(120deg, var(--hero-a), var(--hero-b) 70%, var(--hero-c)); color: var(--on-hero); }
.page-hero h1 { margin: .45rem 0 .7rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; }
.page-hero p { max-width: 65ch; color: color-mix(in srgb, var(--on-hero) 82%, transparent); line-height: 1.7; }
.page-hero .eyebrow { color: var(--hero-highlight); }
.book-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: .5rem 0 1.2rem; }
.book-heading h1 { margin: .5rem 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.05; }
.book-heading p { max-width: 65ch; color: var(--muted); line-height: 1.6; }
.book-frame-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.book-frame { display: block; width: 100%; height: min(82vh, 1100px); min-height: 720px; border: 0; background: var(--surface-raised); }
.book-fallback { margin: .8rem .25rem 0; color: var(--muted); font-size: .85rem; text-align: center; }
.book-fallback a { color: var(--green); font-weight: 800; }
.books-read-section { margin-top: 2.6rem; scroll-margin-top: 8rem; }
.books-read-intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.books-read-intro h3 { margin: .4rem 0; color: var(--ink); font-size: 1.35rem; }
.books-read-intro p { color: var(--muted); font-size: .9rem; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.calendar-controls, .calendar-views { display: flex; align-items: center; gap: .5rem; }
.calendar-toolbar button, .calendar-toolbar select { min-height: 40px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.calendar-toolbar button[aria-pressed="true"], .calendar-toolbar .selected { border-color: var(--green); background: var(--green); color: var(--on-hero); }
.calendar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.calendar-grid.annual-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.month-card { padding: 1rem; }
.month-card h2, .month-card h3 { margin: 0 0 .7rem; color: var(--ink); font-size: 1.15rem; }
.days-header, .days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.days-header span { padding: .3rem 0; color: var(--muted); font-size: .68rem; font-weight: 800; }
.day, button.day { display: grid; place-items: center; min-height: 36px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: .78rem; }
button.day { position: relative; cursor: pointer; }
button.day:hover { border-color: var(--accent); background: var(--accent-soft); }
button.day.has-events::after { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); content: ""; }
button.day.today { border-color: var(--green); font-weight: 850; }
.annual-view .month-card { padding: .8rem; }
.annual-view .day, .annual-view button.day { min-height: 27px; font-size: .67rem; }
.calendar-detail { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin: 1rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; background: var(--surface); }
.calendar-detail h2 { margin-bottom: .2rem; font-size: 1rem; }
.calendar-detail p { color: var(--muted); font-size: .9rem; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .77rem; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: .35rem; border-radius: 50%; background: var(--accent); }
.calendar-note { margin: 1rem 0 0; color: var(--muted); font-size: .8rem; }
.integrated-celebrations { margin-top: 2.3rem; scroll-margin-top: 8rem; }
.celebration-week { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1.2rem 1.35rem; border-radius: 20px; background: linear-gradient(120deg, var(--hero-a), var(--green)); color: var(--on-hero); }
.celebration-week .eyebrow { color: var(--hero-highlight); }
.celebration-week h3 { margin-top: .3rem; font-size: 1.2rem; }
.week-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; list-style: none; }
.week-list li { padding: .5rem .7rem; border: 1px solid color-mix(in srgb, var(--on-hero) 18%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--on-hero) 8%, transparent); color: color-mix(in srgb, var(--on-hero) 90%, transparent); font-size: .78rem; }
.celebration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.celebration-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 86px; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; background: var(--surface); }
.celebration-card.is-church-event { border-left-color: var(--green); }
.celebration-card h3 { margin-bottom: .2rem; color: var(--ink); font-family: "Segoe UI", sans-serif; font-size: .93rem; letter-spacing: 0; }
.celebration-card p { color: var(--muted); font-size: .76rem; }
.celebration-date { flex: 0 0 auto; padding: .42rem .58rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .72rem; font-weight: 800; }
.celebration-empty { grid-column: 1 / -1; padding: 1rem; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.curriculum-note { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .88rem; }
.curriculum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.curriculum-card { position: relative; padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.curriculum-month { color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.curriculum-card h2 { margin: .45rem 0; color: var(--ink); font-size: 1.1rem; }
.curriculum-card p { color: var(--muted); font-size: .85rem; }
.scripture-ref { display: inline-block; margin-top: .8rem; padding: .35rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 800; }
.curriculum-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.info-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.info-card h2 { margin-bottom: .45rem; color: var(--ink); font-size: 1.2rem; }
.info-card p { color: var(--muted); }
.power-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; margin-top: 1rem; }
.power-points { display: grid; gap: .7rem; margin-top: 1rem; }
.power-point { display: flex; gap: .8rem; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.power-point b { display: block; margin-bottom: .15rem; color: var(--ink); }
.power-point p { margin: 0; color: var(--muted); font-size: .88rem; }
.power-statement { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; background: var(--accent-soft); }
.power-statement h2 { margin: .45rem 0 .75rem; color: var(--ink); font-size: 1.55rem; }
.power-statement p { color: var(--muted); line-height: 1.65; }
.power-statement blockquote { margin-top: 1rem; color: var(--green); font-family: Georgia, serif; font-size: 1.2rem; }

/* Keep the existing pages in the same palette. */
.pillars-card, .rhythm-box { background: linear-gradient(125deg, var(--hero-a), var(--green)); }
.pillars-card h2, .rhythm-item h3 { color: var(--accent); }
.about-hero { background: linear-gradient(120deg, var(--hero-a), var(--hero-b) 70%, var(--hero-c)) !important; }
.about-card, .quiz-card, .quote-strip, .event-banner, .month-card, .card { background-color: var(--surface); color: var(--ink); }
.about-card h2, .month-card h3, .page-header h1 { color: var(--ink); }
.event-banner { border-left-color: var(--accent); }
.day.event, .day.sunday { background-color: var(--green); color: var(--on-hero); }
.day.birthday { background-color: var(--accent); color: var(--accent-ink); }
.day.has-birthday-ring { box-shadow: inset 0 0 0 2px var(--accent); }

@media (max-width: 1120px) {
    .site-header { flex-wrap: wrap; }
    .site-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: .15rem; }
    .pathway-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .site-header { gap: .45rem; padding: .65rem .85rem; }
    .site-header .logo { font-size: .74rem; }
    .site-header .logo img { width: 40px; height: 40px; }
    .site-header .logo span { font-size: .55rem; }
    .theme-switch-label { display: none; }
    .theme-btn { padding: .4rem .48rem; font-size: .64rem; }
    .site-nav { gap: 0; }
    .site-nav > a, .nav-more > summary { padding: .5rem .55rem; font-size: .74rem; }
    .container { padding: 1rem; }
    .home-hero { grid-template-columns: 1fr; gap: 1.6rem; min-height: auto; padding: 1.6rem; }
    .book-heading { align-items: flex-start; flex-direction: column; }
    .books-read-intro { align-items: flex-start; flex-direction: column; }
    .home-hero h1 { font-size: clamp(2.45rem, 13vw, 3.55rem); }
    .hero-verse { justify-self: start; width: min(100%, 340px); }
    .pathway-grid, .pillars-grid { grid-template-columns: 1fr 1fr; }
    .home-feature-grid, .power-columns, .curriculum-bottom { grid-template-columns: 1fr; }
    .calendar-toolbar { align-items: stretch; }
    .calendar-controls, .calendar-views { justify-content: space-between; }
    .calendar-grid { grid-template-columns: 1fr; }
    .calendar-grid.annual-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calendar-detail { grid-template-columns: 1fr; }
    .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
    .celebration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .celebration-week { align-items: flex-start; flex-direction: column; }
    .week-list { justify-content: flex-start; }
    .invitation-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
    .pathway-grid, .pillars-grid, .curriculum-grid, .celebration-grid { grid-template-columns: 1fr; }
    .calendar-grid.annual-view { grid-template-columns: 1fr; }
    .quiz-options { grid-template-columns: 1fr; }
    .quiz-progress-row { grid-template-columns: 1fr auto; }
    .quiz-progress-row progress { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.site-header .logo .logo-name { margin: 0; color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .09em; }
.site-header .logo .logo-name span { display: block; margin-top: .28rem; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .075em; }


/* Keep the full navigation reachable on tablets and phones. */
@media (max-width: 1120px) {
    .site-nav { flex-wrap: wrap; min-width: 0; overflow: visible; }
}
@media (max-width: 720px) {
    .site-header { overflow: visible; }
    .site-nav {
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        align-items: center;
        gap: .25rem;
        overflow: visible;
        padding-bottom: .15rem;
    }
    .site-nav > a, .nav-more > summary {
        display: inline-flex;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        padding: .6rem .75rem;
        font-size: .82rem;
    }
    .nav-more { position: static; }
    .nav-more-menu {
        top: calc(100% + .4rem);
        right: .85rem;
        left: .85rem;
        z-index: 150;
        display: none;
        width: auto;
        min-width: 0;
        max-height: 70vh;
        max-height: min(70dvh, 440px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem;
        overflow-y: auto;
        padding: .7rem;
        border-radius: 18px;
    }
    .nav-more[open] > .nav-more-menu { display: grid; }
    .nav-more-menu a {
        display: flex;
        min-height: 48px;
        align-items: center;
        padding: .75rem;
        border-radius: 12px;
        font-size: .9rem;
        line-height: 1.25;
    }
}
@media (max-width: 420px) {
    .nav-more-menu { grid-template-columns: 1fr; }
}

/* Community refresh: additive styles; preserves existing theme and gallery */
.home-hero { position:relative; isolation:isolate; background-size: 180% 180%; animation: bolHeroGlow 16s ease-in-out infinite alternate; }
.home-hero::before { content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.26;background: radial-gradient(circle at 83% 15%,color-mix(in srgb, var(--accent) 42%, transparent),transparent 36%),radial-gradient(circle at 10% 80%,color-mix(in srgb, var(--green) 28%, transparent),transparent 44%); animation:bolHeroGlow 14s ease-in-out infinite alternate; }
@keyframes bolHeroGlow { from {background-position:0% 25%;} to {background-position:100% 75%;} }
.pathway-card { position:relative; display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;text-decoration:none; }
.pathway-card:hover,.pathway-card:focus-visible { transform:translateY(-4px);box-shadow: 0 16px 35px color-mix(in srgb, var(--ink) 12%, transparent); }
.pathway-cta { color: var(--green);font-weight:800;font-size:.85rem;margin-top:auto;text-decoration:underline;text-underline-offset:4px; }
.upcoming-section { margin:4.5rem 0; }
.upcoming-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;}
.upcoming-card {background: var(--surface);border: 1px solid var(--line);border-top: 4px solid var(--accent);border-radius: 18px;padding:1.4rem;box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 6%, transparent);}
.upcoming-date {display:inline-block;color: var(--green);font-size:.75rem;text-transform:uppercase;font-weight:850;letter-spacing:.08em;margin-bottom:.7rem;}
.upcoming-card h3 {font-size:1.22rem;line-height:1.25;margin-bottom:.7rem;}
.upcoming-card p {color: var(--muted);font-size:.9rem;}
.upcoming-more {margin-top:1.2rem;}
.heritage-strip {margin:4rem 0;display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2rem 2.4rem;border-radius: 24px;background: var(--surface);border: 1px solid var(--line);}
.heritage-strip h2 {font-size:clamp(1.8rem,3vw,2.6rem);margin:.4rem 0;}
.heritage-strip p {max-width:58ch;color: var(--muted);}
.heritage-actions {display:flex;flex-wrap:wrap;gap:.7rem;}
.archive-year-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin:2.5rem 0;}
.archive-year {text-align:left;padding:1.4rem;min-height:115px;background: var(--surface);border: 1px solid var(--line);border-radius: 18px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s,box-shadow .2s;}
.archive-year strong {font-family:Georgia,serif;font-size:2.1rem;color: var(--ink);}
.archive-year span {font-size:.78rem;color: var(--muted);}
.archive-year:hover,.archive-year:focus-visible {transform:translateY(-3px);box-shadow: var(--shadow);}
.archive-detail {padding:2rem;margin:2rem 0;}
.archive-detail h2 {margin-bottom:.7rem;}
.document-list {list-style:none;display:grid;gap:.7rem;margin:1rem 0;}
.document-list a {display:block;padding:.9rem 1.1rem;border: 1px solid var(--line);border-radius: 12px;background: var(--surface-raised);}
.featured-book-card {display:flex;align-items:center;gap:2rem;padding:2rem;border-radius: 24px;border: 1px solid var(--line);background: var(--surface);text-decoration:none;color: var(--ink);box-shadow: var(--shadow);}
.featured-book-card:hover,.featured-book-card:focus-visible {transform:translateY(-3px);}
.featured-book-card h3 {font-size:clamp(1.5rem,2.5vw,2.2rem);margin:.35rem 0;}
.featured-book-emblem {display:grid;place-items:center;min-width:165px;min-height:210px;background: linear-gradient(145deg,var(--hero-a),var(--hero-b));color: var(--hero-highlight);font-family:Georgia,serif;font-size:1.55rem;border-radius: 12px;box-shadow: 8px 8px 0 var(--accent-soft);}
.events-table-section {margin:2.5rem 0 3rem;}
.events-table-wrap {overflow-x:auto;border: 1px solid var(--line);border-radius: 18px;background: var(--surface);}
.events-table {border-collapse: collapse;width:100%;min-width:540px;}
.events-table th,.events-table td {padding:1rem 1.25rem;text-align:left;border-bottom: 1px solid var(--line);}
.events-table th {background: var(--hero-a);color: var(--on-hero);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;}
.events-table tr:last-child td {border-bottom: 0;}
.events-table a {font-weight:750;text-underline-offset:3px;}
.gallery-subtitle {margin:2rem 0 1rem;}
@media(max-width:900px){.upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.heritage-strip{flex-direction:column;align-items:flex-start;}}
@media(max-width:560px){.upcoming-grid{grid-template-columns:1fr}.archive-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-book-card{flex-direction:column;align-items:stretch}.featured-book-emblem{min-height:140px}.heritage-strip{padding:1.4rem}}
@media(prefers-reduced-motion:reduce){.home-hero,.home-hero::before{animation:none!important}.pathway-card,.archive-year{transition:none!important}}

/* Complete Bible Study programme, 2026–2027 */
.study-search-area {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin:2rem 0;}
.study-search-area label {font-weight:750;color: var(--ink);}
.study-search-area input {font:inherit;padding:.8rem 1rem;min-width:min(100%,320px);background: var(--surface);border: 1px solid var(--line);border-radius: 12px;color: var(--ink);}
.study-year {margin:2.5rem 0;}
.study-year>h2 {font-size:1.65rem;margin-bottom:.9rem;color: var(--green);}
.study-table-wrap {overflow-x:auto;border: 1px solid var(--line);border-radius: 20px;box-shadow: var(--shadow);}
.study-table {width:100%;border-collapse: collapse;min-width:720px;background: var(--surface);}
.study-table th {padding:1rem 1.2rem;text-align:left;background: var(--green);color: var(--on-hero);font-size:.8rem;text-transform:uppercase;letter-spacing:.075em;}
.study-year:nth-child(2) .study-table th {background: var(--accent);}
.study-table td {padding:.95rem 1.2rem;border-bottom: 1px solid var(--line);font-size:.9rem;}
.study-table tr:nth-child(even) {background: color-mix(in srgb,var(--green-soft) 55%,var(--surface));}
.study-table tr:last-child td {border-bottom: 0;}
.study-table td:first-child {white-space:nowrap;font-weight:650;}
.study-table td:nth-child(3) {color: var(--muted);}

.calendar-agenda {margin:3rem 0;}
.calendar-agenda-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;}
.calendar-agenda-month {background: var(--surface);padding:1.5rem;border: 1px solid var(--line);border-radius: 22px;max-height:600px;overflow:auto;}
.calendar-agenda-month h3 {font-size:1.55rem;margin-bottom:1rem;position:sticky;top:-1.5rem;background: var(--surface);padding:.7rem 0;border-bottom: 1px solid var(--line);}
.calendar-agenda-row {display:grid;grid-template-columns:75px 1fr;gap:.9rem;padding:.8rem .3rem;border-bottom: 1px solid var(--line);align-items:start;}
.calendar-agenda-row:last-child {border-bottom: 0;}
.calendar-agenda-row strong {font-size:.8rem;color: var(--green);white-space:nowrap;}
.calendar-agenda-row p {font-size:.86rem;line-height:1.55;margin-bottom:.2rem;}
@media(max-width:700px){.calendar-agenda-grid{grid-template-columns:1fr;}}

/* Shared chess tournament controls. */
[hidden] { display: none !important; }
.chess-table-wrap { overflow-x: auto; }
.chess-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.chess-table th, .chess-table td { padding: .65rem; text-align: left; border-bottom: 1px solid var(--line); }
.chess-table th { background: var(--green-soft); }
.chess-match { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.chess-match > span { flex: 1 1 240px; }
.chess-match select { max-width: 100%; padding: .65rem; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.chess-organizer { margin-top: 1.5rem; }
.chess-organizer summary { cursor: pointer; font-weight: 700; padding: .75rem 0; }
.chess-organizer .signup-form { max-width: 420px; }
.tournament-panel button:disabled, .tournament-panel select:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) { .chess-match { align-items: stretch; flex-direction: column; } .chess-table th, .chess-table td { padding: .5rem; } }
/* Activities schedule: restore full-width reading and avoid nested scrollbars. */
.calendar-agenda-grid:has(> .calendar-agenda-month:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.calendar-agenda-month {
  min-width: 0;
  max-height: none;
  overflow: visible;
}
.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.schedule-toolbar select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .7rem;
}

/* Church identity and photographic homepage banner. */
.site-header .logo img {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
}
.home-photo-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: #06383e;
    color: #fff;
}
.home-photo-hero > img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 470px;
    aspect-ratio: 2.2 / 1;
    object-fit: cover;
    object-position: center;
}
.home-photo-hero .home-welcome-copy {
    position: absolute;
    inset: 0 auto 0 0;
    width: 31%;
    box-sizing: border-box;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgb(2 24 29 / 94%), rgb(2 24 29 / 80%) 85%, rgb(2 24 29 / 55%));
}
.home-photo-hero h1 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}
.home-photo-hero p {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: .95rem;
    line-height: 1.65;
}
.home-photo-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0;
}
.home-photo-hero .button-primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}
.home-photo-hero .button-secondary {
    background: rgb(2 24 29 / 70%);
    color: #fff;
    border-color: rgb(255 255 255 / 65%);
}
@media (max-width: 900px) {
    .home-photo-hero > img {
        min-height: 0;
        aspect-ratio: 4 / 3;
        object-fit: contain;
    }
    .home-photo-hero .home-welcome-copy {
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: -12%;
        padding: 1.5rem;
        background: linear-gradient(rgb(2 24 29 / 82%), rgb(2 24 29 / 82%)), url("images/bol-banner.jpg") center bottom / cover;
    }
    .home-photo-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 720px) {
    .site-header .logo img { width: 40px; height: 40px; }
    .home-photo-hero { border-radius: 20px; }
}

/* Upcoming activities are whole-card links, including keyboard navigation. */
.upcoming-event-link {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.upcoming-event-link:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 12%, transparent);
}
.upcoming-event-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
.upcoming-action {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--green);
    font-size: .85rem;
    font-weight: 700;
}
#church-location { scroll-margin-top: 12rem; }
@media (prefers-reduced-motion: reduce) {
    .upcoming-event-link { transition: none; }
}

/* Bound planner and quarterly study book: scoped to their own containers. */
.schedule-toolbar,.planner-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.7rem;margin:1.2rem 0;padding:1rem;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.schedule-toolbar select,.planner-control{font:inherit;font-size:.86rem;font-weight:650;padding:.5rem .8rem;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);cursor:pointer}
.planner-control[aria-pressed=true]{background:var(--green);color:var(--on-hero)}.planner-control:disabled{opacity:.4;cursor:default}
.planner-tabs,.planner-legend{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center;margin:1rem 0}
#calendar-agenda-list{display:block}.planner-cover{background:var(--hero-a);padding:14px;border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.planner-month-title{color:var(--on-hero);padding:.5rem .8rem 1rem;font-size:1.6rem}
.planner-book{display:grid;position:relative;grid-template-columns:repeat(4,minmax(0,1fr)) 22px repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:7px solid var(--surface);border-radius:7px;overflow:hidden}
.planner-book>*{min-width:0}.planner-weekday{padding:.6rem .15rem;text-align:center;background:var(--accent-soft);font-weight:700;font-size:.8rem}
.planner-day{min-height:130px;padding:.45rem;background:var(--surface);display:flex;flex-direction:column;gap:.3rem}.planner-day.sunday,.planner-weekday.sunday{background:#e7f1e6}.planner-date{font-size:1rem;color:var(--ink)}.planner-today{box-shadow:inset 0 0 0 2px var(--accent)}.planner-blank{opacity:.75}
.planner-notes{background:repeating-linear-gradient(var(--surface) 0 23px,var(--line) 24px,var(--surface) 25px)}
.planner-spine,.study-book-binding{position:relative;z-index:2;background:linear-gradient(90deg,#a8a59d,#f4f1e7,#8d8a80);display:flex;flex-direction:column;justify-content:space-around;align-items:center}
.planner-spine i,.study-book-binding i{display:block;width:34px;height:12px;border:3px solid #aaa99f;border-top-color:#f8f7f1;border-bottom-color:#77786e;border-radius:50%;box-shadow:0 2px 3px #0005;flex:none}
.planner-event{display:block;border:0;border-radius:5px;padding:.27rem .32rem;text-align:left;font:inherit;font-size:.72rem;line-height:1.4;overflow-wrap:anywhere;color:#263b36;background:#e7e9e2}
button.planner-event{cursor:pointer}button.planner-event:hover{outline:1px solid currentColor}
.planner-event.sunday{background:#d6e9d9;color:#28573b}.planner-event.study{background:#dde8f5;color:#305784}.planner-event.worship{background:#f3e3bd;color:#77591c}.planner-event.vigil{background:#f1dcd2;color:#884c33}.planner-event.revival{background:#e9ddec;color:#72517d}.planner-event.prayer{background:#dae9e1;color:#285f51}.planner-event.birthday{background:#f6e0e7;color:#873c60}.planner-event.special{background:#f1e2d0;color:#714c26}
.planner-detail{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1rem;margin-top:1rem;color:var(--ink)}
.study-book{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:0}
.study-book-page{background:var(--surface);padding:clamp(1rem,3vw,2.5rem);min-width:0;min-height:440px;box-shadow:inset 0 0 16px #00000008}
.study-book-page h2{margin:.6rem 0 1rem}.study-book-page h3{margin:1rem 0 .35rem}.study-scripture{background:var(--accent-soft);border-left:4px solid var(--accent);padding:1rem;border-radius:8px;font-size:1.15rem}
.study-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.study-date-card{padding:.7rem;border:1px solid transparent;border-radius:9px;font:inherit;font-size:.78rem;text-align:left;cursor:pointer;line-height:1.4;color:#23443c;background:#dcebe1}.study-date-card.tone-1{background:#e1eaf5;color:#304e70}.study-date-card.tone-2{background:#f3e4c7;color:#765321}.study-date-card[aria-pressed=true]{outline:2px solid var(--green);outline-offset:1px;font-weight:700}
.planner-book,.study-book-page{animation:plannerTurn .35s ease-out}@keyframes plannerTurn{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:760px){.planner-cover{padding:8px;overflow-x:auto}.planner-book{min-width:760px}.study-book{display:flex;flex-direction:column}.study-book-binding{display:none}.study-book-page{min-height:auto}.planner-day{min-height:120px}}
@media(prefers-reduced-motion:reduce){.planner-book,.study-book-page{animation:none}}

/* Compact church home, grouped menus and leadership */
.site-header .site-nav{overflow:visible;flex-wrap:wrap;min-width:0;gap:.25rem}
.site-nav > a,.site-nav .nav-more > summary{white-space:nowrap}
@media(max-width:1050px){.site-header .site-nav{order:3;flex:1 0 100%;justify-content:center}.site-nav .nav-more{position:relative}.site-nav .nav-more-menu{position:absolute;top:100%;right:auto;left:0;width:max-content;max-width:85vw;z-index:120}}
@media(max-width:560px){.site-header .site-nav{justify-content:flex-start}.site-nav .nav-more-menu{left:0;right:auto}}
.home-photo-hero{position:relative;isolation:isolate;overflow:hidden}
.hero-light-sweep{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.hero-light-sweep:after{content:"";position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 43%,rgba(208,247,255,.13) 49%,transparent 55%);transform:translateX(-55%);animation:bolLightSweep 12s ease-in-out infinite}
.home-photo-hero .home-welcome-copy{z-index:2;animation:bolWelcome 1.1s ease both}
@keyframes bolLightSweep{0%,15%{transform:translateX(-55%)}60%,100%{transform:translateX(55%)}}
@keyframes bolWelcome{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
.home-quick-links{margin:2rem 0}.home-quick-links h2{font-size:1.65rem;margin-bottom:.7rem}.home-quick-links nav{display:flex;flex-wrap:wrap;gap:.5rem;overflow:visible}.home-quick-links a{border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:.55rem .85rem;border-radius:999px}
.upcoming-section{margin:2rem 0!important}.upcoming-section .section-heading{margin-bottom:.8rem}.upcoming-section .upcoming-grid{gap:.65rem}.upcoming-section .upcoming-card{padding:1rem;min-height:0}
.leadership-section{margin:2rem 0}.leadership-section>h2{margin-bottom:1rem}.leadership-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.leadership-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:1.3rem;display:grid;grid-template-columns:110px 1fr;gap:1.2rem;align-items:center}.leader-photo{aspect-ratio:1;background:var(--accent-soft);border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;color:var(--green);font-size:2rem;font-weight:700}.leader-role{color:var(--green);font-weight:700;margin:.3rem 0}.leadership-card h3{font-size:1.2rem}
@media(max-width:700px){.leadership-grid{grid-template-columns:1fr}.leadership-card{grid-template-columns:85px 1fr}}
@media(prefers-reduced-motion:reduce){.hero-light-sweep:after,.home-photo-hero .home-welcome-copy{animation:none}}

/* Home: cinematic banner and compact, colour-coded event strip */
.home-photo-hero > img{animation:bolCoverFloat 9s ease-in-out infinite alternate;transform-origin:65% 50%}
@keyframes bolCoverFloat{from{transform:scale(1)}to{transform:scale(1.055) translate(-.5%,.4%)}}
.hero-rays,.hero-glow{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.hero-rays:before{content:"";position:absolute;width:180%;aspect-ratio:1;left:-70%;top:calc(32% - 90vw);background:conic-gradient(from 0deg,transparent 0deg,rgba(171,244,255,.36) 12deg,transparent 32deg,transparent 72deg,rgba(220,252,255,.24) 89deg,transparent 105deg,transparent 180deg,rgba(171,244,255,.28) 194deg,transparent 218deg,transparent 290deg,rgba(220,252,255,.2) 305deg,transparent 325deg);animation:bolRays 15s linear infinite;mix-blend-mode:screen}
@keyframes bolRays{to{transform:rotate(360deg)}}
.hero-glow{background:radial-gradient(ellipse at 20% 30%,rgba(132,236,255,.35),transparent 55%);animation:bolGlow 4s ease-in-out infinite alternate}
@keyframes bolGlow{from{opacity:.25}to{opacity:1}}
.hero-light-sweep:after{background:linear-gradient(110deg,transparent 39%,rgba(208,247,255,.32) 49%,transparent 59%);animation-duration:7s}
.home-photo-hero .home-welcome-copy{animation:none}
.home-photo-hero .home-welcome-copy h1,.home-photo-hero .home-welcome-copy p,.home-photo-hero .hero-actions{animation:bolWelcome .95s ease both}
.home-photo-hero .home-welcome-copy p{animation-delay:.35s}.home-photo-hero .hero-actions{animation-delay:.7s}
.home-welcome-message{max-width:850px;margin:2rem auto;text-align:center;padding:0 1rem}.home-welcome-message h2{font-size:clamp(1.45rem,2.5vw,2.1rem);margin-bottom:.65rem}.home-welcome-message p{color:var(--muted);line-height:1.75;margin:0}
.upcoming-section{padding:1.2rem;background:var(--surface);border:1px solid var(--line);border-radius:20px}
.upcoming-section .section-heading h2{font-size:1.55rem}
.upcoming-slider{position:relative;padding:0 22px}
.upcoming-section .upcoming-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:4px 2px 10px;scrollbar-width:thin}
.upcoming-section .upcoming-card{flex:0 0 clamp(225px,29%,310px);display:flex;flex-direction:row;align-items:center;gap:.75rem;scroll-snap-align:start;min-width:0;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);box-shadow:none}
.upcoming-section .upcoming-date{display:flex;flex:0 0 55px;flex-direction:column;align-items:center;justify-content:center;min-height:76px;border-radius:9px;color:white;background:#285e50;padding:.3rem;line-height:1.2;letter-spacing:0}
.upcoming-date strong{font-size:1.6rem}.upcoming-date small{font-size:.72rem;margin-top:.2rem}
.upcoming-card[data-kind=study] .upcoming-date{background:#315b83}.upcoming-card[data-kind=revival] .upcoming-date{background:#a35e40}.upcoming-card[data-kind=worship] .upcoming-date{background:#8a6d34}.upcoming-card[data-kind=vigil] .upcoming-date{background:#795580}.upcoming-card[data-kind=prayer] .upcoming-date{background:#24736e}
.upcoming-copy{min-width:0}.upcoming-copy h3{font-family:inherit;font-size:1rem;margin:0 0 .3rem;line-height:1.3}.upcoming-copy p{font-size:.83rem;margin:0;line-height:1.4}.upcoming-copy .upcoming-action{padding-top:.35rem;font-size:.73rem}
.event-slide-prev,.event-slide-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:1px solid var(--line);background:var(--surface-raised);color:var(--ink);border-radius:50%;width:34px;height:34px;font-size:1.6rem;line-height:1;cursor:pointer;box-shadow:0 2px 8px #0002}.event-slide-prev{left:-12px}.event-slide-next{right:-12px}.event-slide-prev:disabled,.event-slide-next:disabled{opacity:.3;cursor:default}
.upcoming-section .upcoming-more{margin-top:.6rem}
@media(max-width:560px){.upcoming-section{padding:.9rem}.upcoming-slider{padding:0 12px}.upcoming-section .upcoming-card{flex-basis:87%}.hero-rays:before{top:-60vw}}
@media(prefers-reduced-motion:reduce){.home-photo-hero>img,.hero-rays:before,.hero-glow,.hero-light-sweep:after,.home-photo-hero .home-welcome-copy h1,.home-photo-hero .home-welcome-copy p,.home-photo-hero .hero-actions{animation:none}}
