:root {
    --navy: #002d70;
    --navy-deep: #001f4d;
    --navy-mid: #18417e;
    --gold: #d5a339;
    --gold-light: #ddb837;
    --sky: #3bb8ff;
    --white: #ffffff;
    --paper: #f7f9fc;
    --ink: #1a1f2e;
    --muted: #5c6578;
    --line: #d4d6d9;
    --shadow: 0 16px 48px rgba(0, 45, 112, 0.12);
    --radius: 14px;
    --font-display: "Philosopher", Georgia, serif;
    --font-body: "Noto Serif", Georgia, serif;
    --font-ui: "Source Sans 3", system-ui, sans-serif;
    --header-h: 5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sky); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
    padding: 0.55rem 1rem; z-index: 100; font-family: var(--font-ui);
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }
.wrap { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }

/* ========== Header ========== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(0, 45, 112, 0.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; min-height: var(--header-h); padding: 0.65rem 0;
}
.brand img { width: 170px; height: auto; }

.nav-toggle {
    display: none;
    background: var(--navy);
    color: var(--white);
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.nav-toggle:hover { background: var(--navy-mid); }

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    font-family: var(--font-ui);
}
.nav > a,
.nav-item > .nav-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nav > a:hover,
.nav-item > .nav-link:hover,
.nav-item:focus-within > .nav-link {
    color: var(--gold);
    background: rgba(213, 163, 57, 0.08);
}

.nav-item { position: relative; }
.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    /* Invisible hover bridge above the panel so the pointer never “falls through” */
    padding: 0.55rem 0.45rem 0.45rem;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: none;
    z-index: 60;
}
.nav-sub-inner {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.45rem;
    display: grid;
    gap: 0.1rem;
}
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub {
    display: block;
}
.nav-sub a,
.nav-sub-inner a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: normal;
}
.nav-sub a:hover,
.nav-sub-inner a:hover {
    background: rgba(0, 45, 112, 0.06);
    color: var(--gold);
}

.nav-cta,
a.nav-cta {
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
    padding: 0.55rem 1.05rem !important;
    margin-left: 0.35rem;
    font-weight: 700 !important;
}
.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy-deep) !important;
}

/* ========== Hero (sanctuary banner) ========== */
.hero-banner {
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.hero-banner::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    z-index: 3;
}
.hero-media {
    position: relative;
    width: 100%;
    min-height: min(54vh, 580px);
    background: var(--navy-deep);
}
.hero-media img {
    width: 100%;
    height: min(54vh, 580px);
    object-fit: cover;
    object-position: center 40%;
    display: block;
}
.hero-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgba(0, 31, 77, 0.82) 0%, rgba(0, 45, 112, 0.45) 48%, rgba(0, 45, 112, 0.15) 100%),
        linear-gradient(180deg, rgba(0, 31, 77, 0.15) 0%, rgba(0, 31, 77, 0.55) 100%);
    padding: clamp(2rem, 6vw, 4.5rem) 0;
}
.hero-copy-inner {
    max-width: 40rem;
    margin-left: max(1.25rem, calc((100% - 1140px) / 2 + 1.25rem));
    margin-right: 1.25rem;
    animation: rise .65s ease both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 700;
    margin: 0 0 0.85rem;
    font-family: var(--font-ui);
}
.hero-banner h1,
.hero-copy h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    color: var(--white);
}
.hero-banner .lede,
.hero-copy .lede {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.92);
    margin: 0 0 1.5rem;
    max-width: 34rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 700;
    text-decoration: none; border: 1px solid transparent;
    font-family: var(--font-ui);
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost {
    background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
    background: var(--white); border-color: var(--navy); color: var(--navy);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }

/* ========== Newsletter band ========== */
.newsletter-band {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 400px at 10% 0%, rgba(59, 184, 255, 0.18), transparent 60%),
        radial-gradient(700px 400px at 95% 100%, rgba(213, 163, 57, 0.22), transparent 60%),
        linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--navy-mid));
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.newsletter-band::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.newsletter-inner {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center;
}
.newsletter-copy .eyebrow { color: var(--gold); }
.newsletter-copy h2 {
    font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0.25rem 0 0.6rem; color: #fff; line-height: 1.12;
}
.newsletter-copy p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; max-width: 34rem; }
.newsletter-form-wrap {
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px); border-radius: 18px; padding: 1.4rem 1.4rem 1.1rem;
    box-shadow: 0 24px 60px rgba(0, 20, 60, 0.35);
}
.newsletter-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0.75rem; align-items: end; position: relative; }
.newsletter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-field { display: grid; gap: 0.3rem; font-family: var(--font-ui); }
.nl-field span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.nl-field input {
    font: inherit; font-family: var(--font-body); padding: 0.85rem 1rem; border-radius: 12px; width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25); background: #fff; color: var(--ink);
}
.nl-field input:focus { outline: 3px solid rgba(213, 163, 57, 0.45); border-color: var(--gold); }
.newsletter-form .btn { padding: 0.9rem 1.5rem; white-space: nowrap; }
.nl-error { grid-column: 1 / -1; color: #ffd9a8; font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem; }
.nl-fineprint { margin: 0.8rem 0 0; font-family: var(--font-ui); font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.newsletter-form-wrap .form-success { background: rgba(255, 255, 255, 0.95); margin: 0; }
@media (max-width: 1100px) {
    .newsletter-form { grid-template-columns: 1fr 1fr; }
    .newsletter-form .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 900px) {
    .newsletter-inner { grid-template-columns: 1fr; gap: 1.75rem; }
    .newsletter-form { grid-template-columns: 1fr; }
    .newsletter-form .btn { width: 100%; }
}

/* ========== Sections ========== */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper); }
.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin: 0 0 0.55rem;
    color: var(--navy);
}
.section-intro { color: var(--muted); max-width: 40rem; margin: 0.35rem 0 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }
.section-head h2::after,
.page-hero h1::after {
    content: "";
    display: block;
    width: 3.4rem;
    height: 3px;
    margin-top: 0.7rem;
    background: var(--gold);
    border-radius: 99px;
}
.home .section { padding: 4.75rem 0; }
.home .hero-banner + .section { padding-top: 4.75rem; }

.card-grid {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) {
    .card-grid.cols-3 { grid-template-columns: 1fr; }
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
    box-shadow: 0 8px 28px rgba(0, 45, 112, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 {
    font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.4rem; color: var(--navy);
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card a.card-link {
    display: inline-block; margin-top: 0.9rem; font-weight: 700;
    text-decoration: none; color: var(--gold); font-family: var(--font-ui);
}
.card a.card-link:hover { color: var(--sky); }

/* ========== Page / prose ========== */
.page-hero {
    padding: clamp(2rem, 4vw, 2.85rem) 0 1.7rem;
    background:
        linear-gradient(180deg, rgba(213, 163, 57, 0.16), rgba(213, 163, 57, 0) 72%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}
.page-hero .wrap { max-width: 860px; }
body.prose-wide-page .page-hero .wrap,
body.prose-wide-page .prose,
body.page-calendar .page-hero .wrap { max-width: 1140px; }
body.prose-wide-page .prose { max-width: none; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--navy);
    margin: 0;
    line-height: 1.1;
}
.page-hero .lede { color: var(--muted); margin: 0.85rem 0 0; }
.breadcrumb {
    font-size: 0.88rem; color: var(--muted); margin-bottom: 0.75rem; font-family: var(--font-ui);
}
.breadcrumb a { color: var(--navy-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.prose-wrap { padding: 2.15rem 0 4.25rem; }
.prose { max-width: 860px; margin: 0 auto; }
.prose .content-heading,
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: var(--font-display); color: var(--navy); line-height: 1.15;
}
.prose h2, .prose .content-heading { font-size: 1.9rem; margin: 1.9rem 0 0.7rem; }
.prose h3 { font-size: 1.45rem; margin: 1.45rem 0 0.55rem; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--gold); }
.prose a:hover { color: var(--sky); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose figure, .prose .content-image {
    margin: 1.5rem 0; border-radius: 14px; overflow: hidden;
}
.prose { overflow-wrap: break-word; }
.prose img {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 45, 112, 0.1);
}
/* Centered "Click here" style links pasted from WP → real buttons */
.prose p[style*="center"] > a:only-child,
.prose p[style*="center"] > strong:only-child > a:only-child {
    display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
    font-family: var(--font-ui); font-weight: 700; padding: 0.9rem 1.4rem; border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 45, 112, 0.18); transition: background 0.18s, transform 0.18s;
    max-width: min(100%, 36rem); line-height: 1.35; text-align: center; white-space: normal;
}
.prose p[style*="center"] > a:only-child:hover,
.prose p[style*="center"] > strong:only-child > a:only-child:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }
.prose p[style*="center"] > a:only-child strong, .prose p[style*="center"] > a:only-child span { font-weight: inherit; }
.prose p[style*="center"] > a:only-child + * { margin-top: 0.5rem; }

/* Gutenberg leftovers */
.prose .eb-button-anchor, .prose .wp-block-button__link {
    display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
    font-family: var(--font-ui); font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 45, 112, 0.18); transition: background 0.18s, transform 0.18s; margin: 0.5rem 0 1rem;
}
.prose .eb-button-anchor:hover, .prose .wp-block-button__link:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }
.prose .wp-block-separator { border: 0; border-top: 2px solid var(--gold); opacity: 0.35; margin: 1.75rem auto; max-width: 120px; }
.prose .wp-block-table { margin: 1.5rem 0; overflow-x: auto; border-radius: 0; box-shadow: none; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; }
.prose .wp-block-table td, .prose .wp-block-table th {
    border: 1px solid rgba(0, 45, 112, 0.12); padding: 0.75rem 0.9rem; vertical-align: top; text-align: left;
}
.prose .wp-block-table tr:nth-child(even) td { background: var(--paper); }
.prose img.alignleft, .prose .alignleft { float: left; margin: 0.35rem 1.75rem 1rem 0; max-width: min(40%, 300px); height: auto; }
.prose img.alignright, .prose .alignright { float: right; margin: 0.35rem 0 1rem 1.75rem; max-width: min(40%, 300px); height: auto; }
.prose img.aligncenter, .prose .aligncenter { display: block; margin: 1.25rem auto; }
.prose h2, .prose h3 { clear: both; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) {
    .prose img.alignleft, .prose img.alignright, .prose .alignleft, .prose .alignright { float: none; display: block; margin: 1rem auto; max-width: 100%; }
}

/* Never let a single content image become a wall: cap height, keep it centered */
.prose .content-image img,
.prose .wp-block-image img {
    display: block; width: auto; max-width: 100%; max-height: 540px; margin-inline: auto; object-fit: contain;
}
.prose .el-column .content-image img { max-height: 460px; }

/* Gutenberg media + text blocks (e.g. Our Teachers) → people cards */
.prose .wp-block-media-text {
    display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem 1.5rem; align-items: start;
    background: #fff; border: 1px solid rgba(0, 45, 112, 0.1); border-radius: 16px;
    padding: 1.25rem; margin: 1.1rem 0; box-shadow: 0 8px 24px rgba(0, 45, 112, 0.06);
}
.prose .wp-block-media-text__media { margin: 0; border-radius: 12px; overflow: hidden; }
.prose .wp-block-media-text__media img {
    width: 150px; height: 150px; object-fit: cover; object-position: center top; border-radius: 12px; box-shadow: none; margin: 0;
}
.prose .wp-block-media-text__content > p:first-child { margin-top: 0; }
.prose .wp-block-media-text__content > p:first-child strong {
    font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); font-weight: 700; display: block; margin-bottom: 0.25rem;
}
.prose .wp-block-media-text__content > :last-child { margin-bottom: 0; }
.prose .wp-block-media-text__content br:last-child { display: none; }
@media (max-width: 560px) {
    .prose .wp-block-media-text { grid-template-columns: 1fr; }
    .prose .wp-block-media-text__media img { width: 120px; height: 120px; }
}
.prose .content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 0.75rem;
    margin: 1.35rem 0 1.6rem;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.prose .content-gallery figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 8px 20px rgba(0, 45, 112, 0.08);
}
.prose .content-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.prose .content-gallery figcaption,
.gallery-note {
    font-family: var(--font-ui);
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
}
.prose .content-gallery figcaption { padding: 0.45rem 0.7rem 0.65rem; }
.grid-layout-col .content-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.7rem 0 0;
}
.grid-layout-col .content-gallery img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 18%; /* keep faces in frame, like the teacher cards */
    border-radius: 14px;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0, 45, 112, 0.08);
}
.prose .content-gallery-link { display: block; border-radius: 14px; }
.prose .content-gallery-link img { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.prose .content-gallery-link:hover img { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 45, 112, 0.16); }
.prose .content-gallery-link:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.prose .content-video,
.prose .video-embed {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--navy-deep);
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0;
}
.prose .video-embed iframe,
.prose .content-video iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.prose .btn { margin: 0.25rem 0.35rem 0.25rem 0; }
.prose .btn-primary { color: var(--navy-deep); }
/* Editor grids (Filament grid-layout): the columns an editor can still rearrange */
.prose .grid-layout {
    display: grid;
    grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr)));
    gap: 1.25rem 2.25rem;
    align-items: start;
    margin: 1.15rem 0 1.6rem;
}
.prose .grid-layout-col { min-width: 0; grid-column: var(--col-span, auto); }
.prose .grid-layout-col > :first-child { margin-top: 0; }
.prose .grid-layout-col > :last-child { margin-bottom: 0; }
.prose .grid-layout-col > img {
    width: 100%;
    max-height: 250px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
}
/* A 160px photo beside text is a person card (teachers, clergy bios) */
.prose .grid-layout:has(img[width="160"]) {
    grid-template-columns: 168px minmax(0, 1fr);
    background: #fff;
    border: 1px solid rgba(0, 45, 112, 0.1);
    border-radius: 16px;
    padding: 1.2rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 45, 112, 0.06);
    gap: 0.35rem 1.35rem;
    align-items: start;
    margin: 0 0 1rem;
}
.prose .grid-layout:has(img[width="160"]) .grid-layout-col { grid-column: auto; }
.prose .grid-layout:has(img[width="160"]) .grid-layout-col > :first-child { margin-top: 0; }
.prose .grid-layout:has(img[width="160"]) img[width="160"] {
    width: 156px;
    height: 156px;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 14px;
    box-shadow: none;
    border: 3px solid var(--gold);
}
.prose .grid-layout:has(img[width="160"]) strong,
.prose .grid-layout:has(img[width="160"]) h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.45rem;
}
.prose .grid-layout:has(img[width="160"]) p {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    line-height: 1.65;
}
.prose .grid-layout:has(img[width="160"]) p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
    .prose .grid-layout, .prose .grid-layout:has(img[width="160"]) { grid-template-columns: 1fr; }
    .prose .grid-layout-col { grid-column: auto; }
}
.prose .content-accordion { margin: 1.35rem 0; display: grid; gap: 0.55rem; }
.prose .content-accordion + .content-accordion { margin-top: -0.7rem; }
.prose .content-accordion details {
    background: #fff;
    border: 1px solid rgba(0, 45, 112, 0.1);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 0 1.1rem;
}
.prose .content-accordion summary {
    cursor: pointer; list-style: none; padding: 0.95rem 0; font-family: var(--font-ui); font-weight: 700; color: var(--navy);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.prose .content-accordion summary::-webkit-details-marker { display: none; }
.prose .content-accordion summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.prose .content-accordion details[open] summary::after { content: "–"; }
.prose .content-accordion .accordion-body { padding: 0 0 1rem; color: var(--ink); }
.prose .content-accordion .accordion-body > :first-child { margin-top: 0; }
.prose .content-accordion .accordion-body > :last-child { margin-bottom: 0; }
.prose hr.content-divider {
    border: 0; border-top: 2px solid var(--gold); opacity: 0.35; margin: 1.75rem 0;
}

.featured-banner {
    margin: 0 0 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.featured-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* ========== Events / news ========== */
.events-list { display: grid; gap: 0.85rem; }
.event-row {
    display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start;
    background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
    border-radius: 12px; padding: 1rem 1.1rem;
}
.event-date {
    font-family: var(--font-display); color: var(--navy); font-weight: 700;
    font-size: 1.2rem; line-height: 1.15;
}
.event-date span { display: block; color: var(--gold); font-size: 0.85rem; font-family: var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.event-row h3 { margin: 0 0 0.25rem; font-size: 1.15rem; font-family: var(--font-display); color: var(--navy); }
.event-row h3 a { color: var(--navy); text-decoration: none; }
.event-row h3 a:hover { color: var(--gold); }
.event-meta { color: var(--muted); font-size: 0.92rem; font-family: var(--font-ui); }

.news-grid {
    display: grid; gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.news-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 45, 112, 0.05);
}
.news-card { border-top: 3px solid var(--gold); }
.news-card-media { display: block; color: inherit; text-decoration: none; }
.news-card-media:hover img { opacity: 0.94; }
.news-card-fallback {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #002d70, #18417e);
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.news-card-fallback img { width: 140px; height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: none; border-radius: 0; background: transparent; }
.news-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}
.news-card img.is-logo {
    object-fit: contain;
    padding: 1.75rem;
    background: var(--paper);
    box-shadow: none;
}
.news-card .body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card time { color: var(--gold); font-size: 0.82rem; font-family: var(--font-ui); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.news-card h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0.4rem 0 0.45rem; }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover { color: var(--gold); }
.news-card p { color: var(--muted); margin: 0 0 0.8rem; flex: 1; }
.news-card .read { font-family: var(--font-ui); font-weight: 700; color: var(--gold); text-decoration: none; }
.news-card .read:hover { color: var(--sky); }

/* ========== The Friday Flyer ========== */
/* Built on .news-card / .event-row; only Flyer-specific layout lives here. */
.flyer-years { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.flyer-month + .flyer-month { margin-top: 2.5rem; }
.section .flyer-month h2 { font-size: 1.6rem; margin: 0 0 1rem; }
.event-row .flyer-also { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.flyer-view .wrap { max-width: 760px; }
.flyer-frame {
    display: block; width: 100%; min-height: 70vh; border: 1px solid var(--line); margin: 1.25rem 0;
    background: var(--white); border-radius: var(--radius);
}
.flyer-pager { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.flyer-pager-all { font-family: var(--font-ui); font-weight: 700; color: var(--gold); text-decoration: none; }
.flyer-pager-all:hover { color: var(--sky); }

/* ========== Forms ========== */
.aci-form {
    margin: 2rem 0; padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--paper); border: 1px solid rgba(0, 45, 112, 0.08); border-radius: 16px;
}
.aci-form .content-heading { margin-top: 0; }
.aci-form .form-description { color: var(--muted); margin-top: -0.25rem; }
.stack-form { display: grid; gap: 1rem 1.15rem; max-width: 40rem; grid-template-columns: 1fr; }
body.prose-wide-page .stack-form { max-width: none; grid-template-columns: 1fr 1fr; }
body.prose-wide-page .stack-form .field-address,
body.prose-wide-page .stack-form .field-textarea,
body.prose-wide-page .stack-form .field-radio,
body.prose-wide-page .stack-form .field-checkbox,
body.prose-wide-page .stack-form .field-checkbox_single,
body.prose-wide-page .stack-form .field-html,
body.prose-wide-page .stack-form .field-name,
body.prose-wide-page .stack-form .form-section,
body.prose-wide-page .stack-form .form-note,
body.prose-wide-page .stack-form .form-actions,
body.prose-wide-page .stack-form .hp { grid-column: 1 / -1; }
.stack-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.35rem; font-family: var(--font-ui); }
.field[hidden] { display: none; }
.field-label { font-size: 0.92rem; font-weight: 700; color: var(--navy); }
.field .req { color: var(--gold); font-weight: 800; }
.field input, .field textarea, .field select {
    font: inherit; font-weight: 400; font-family: var(--font-body);
    padding: 0.7rem 0.85rem; border-radius: 10px; width: 100%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 2px solid rgba(213, 163, 57, 0.35); border-color: var(--gold);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b3261e; }
.field-help { color: var(--muted); font-size: 0.84rem; font-weight: 400; }
.field-error { color: #b3261e; font-size: 0.84rem; font-weight: 600; }
.field .choices { display: grid; gap: 0.45rem; }
.field .choice {
    display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start;
    font-weight: 400; color: var(--ink); font-family: var(--font-body); cursor: pointer; line-height: 1.4;
}
.field .choice input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--navy); padding: 0; }
.field .subfields { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
.field .subfields.address { grid-template-columns: 1fr 1fr 1fr; }
.field .subfields label { display: grid; gap: 0.2rem; }
.field .subfields .span2 { grid-column: 1 / -1; }
.field .subfields.address .span2 { grid-column: 1 / -1; }
.field .subfields small { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.form-section {
    font-family: var(--font-display); color: var(--navy); font-size: 1.3rem;
    margin: 1.25rem 0 -0.25rem; padding-bottom: 0.35rem; border-bottom: 2px solid rgba(213, 163, 57, 0.45);
}
.form-section:first-of-type { margin-top: 0; }
.form-note { background: #fff; border-left: 3px solid var(--gold); padding: 0.75rem 1rem; border-radius: 0 10px 10px 0; color: var(--ink); }
.form-note p { margin: 0.25rem 0; }
.form-actions { margin-top: 0.5rem; }
@media (max-width: 560px) {
    .field .subfields, .field .subfields.address { grid-template-columns: 1fr; }
}

/* Legacy newsletter (Sendy) form embedded in page HTML */
.newsletter form { display: grid; gap: 0.6rem; max-width: 24rem; }
.newsletter form br { display: none; }
.newsletter label { font-family: var(--font-ui); font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.newsletter input[type="text"], .newsletter input[type="email"] {
    font: inherit; padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid var(--line); width: 100%;
}
.newsletter input[type="submit"] {
    font: inherit; font-family: var(--font-ui); font-weight: 700; cursor: pointer;
    background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 0.75rem 1.4rem; justify-self: start;
}
.newsletter input[type="submit"]:hover { background: var(--gold); color: var(--navy-deep); }
.form-success {
    background: rgba(0, 45, 112, 0.06); border: 1px solid rgba(0, 45, 112, 0.15);
    color: var(--navy); padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem;
}
.form-success p { margin: 0 0 0.6rem; }
.form-success p:last-child, .form-success ul:last-child, .form-success ol:last-child { margin-bottom: 0; }
.form-success ul, .form-success ol { margin: 0 0 0.6rem; padding-left: 1.3rem; }
.form-success a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-success a:hover { color: var(--navy-mid); text-decoration-color: var(--gold); }
.form-errors {
    background: rgba(179, 38, 30, 0.07); border: 1px solid rgba(179, 38, 30, 0.3);
    color: #7a1a14; padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem;
}
.form-errors p { margin: 0; }

/* ========== Footer ========== */
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255,255,255,0.9);
    margin-top: 2rem;
    border-top: 4px solid var(--gold);
}
.footer-grid {
    display: grid; gap: 2rem; padding: 3rem 0 2rem;
    grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-brand img { margin-bottom: 1rem; width: 150px; }
.footer-brand p, .site-footer li, .site-footer a { color: rgba(255,255,255,0.86); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h3 {
    font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.75rem; color: var(--gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); }
.site-footer li { margin: 0.4rem 0; font-size: 0.96rem; }
.fine { font-size: 0.88rem; opacity: 0.8; font-family: var(--font-ui); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1rem 0 1.4rem; font-size: 0.9rem; font-family: var(--font-ui);
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.35rem 0 0.85rem;
        gap: 0.15rem;
    }
    .nav.is-open { display: flex; }
    .header-inner { flex-wrap: wrap; }
    .nav > a, .nav-item > .nav-link { white-space: normal; }
    .nav-item .nav-sub {
        position: static;
        display: none;
        background: transparent;
        margin: 0.15rem 0 0.35rem 0.6rem;
        padding: 0;
    }
    .nav-item .nav-sub-inner {
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--gold);
        border-radius: 0;
        background: rgba(0, 45, 112, 0.03);
        padding: 0.2rem;
    }
    .nav-item.is-open > .nav-sub { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .event-row, .event-row.has-photo { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }

    /* Mobile hero: photo on top, copy stacked below for readability */
    .hero-banner {
        display: flex;
        flex-direction: column;
    }
    .hero-media,
    .hero-media img {
        min-height: 0;
        height: clamp(220px, 48vw, 320px);
    }
    .hero-media img {
        object-position: center 35%;
    }
    .hero-copy {
        position: relative;
        inset: auto;
        background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
        padding: 1.75rem 0 2.25rem;
        align-items: stretch;
    }
    .hero-copy-inner {
        margin-left: auto;
        margin-right: auto;
        width: min(1140px, calc(100% - 2.5rem));
        max-width: none;
    }
    .hero-banner h1,
    .hero-copy h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }
}

/* ========== Presentation: schedules, galleries, calendar ========== */
.newsletter-band { padding: clamp(3.25rem, 7vw, 5.25rem) 0; }
@media (min-width: 961px) {
    .home .hero-media,
    .home .hero-media img {
        min-height: min(60vh, 640px);
        height: min(60vh, 640px);
    }
}

.prose .content-gallery > img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 45, 112, 0.08);
}
.grid-layout-col > h5.content-heading,
.grid-layout-col > .content-heading {
    font-size: 1.4rem;
    margin: 0.85rem 0 0.55rem;
}
.prose .grid-layout-col p > b:only-child,
.prose .grid-layout-col p > strong:only-child {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.12rem;
    line-height: 1.3;
}

body.page-hebrew-school .prose > p[style*="center"] { margin: 0.15rem 0 1.5rem; }
body.page-hebrew-school .prose > .grid-layout {
    background: #fff;
    border: 1px solid rgba(0, 45, 112, 0.08);
    border-radius: 18px;
    padding: 1.35rem 1.35rem 1.05rem;
    margin: 0 0 1.25rem;
    box-shadow: 0 10px 28px rgba(0, 45, 112, 0.04);
}
body.page-hebrew-school .el-column { margin-top: 0.4rem; }
.level-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 0 0 1.35rem;
}
.level-card {
    background: #fff;
    border: 1px solid rgba(0, 45, 112, 0.1);
    border-top: 3px solid var(--gold);
    border-radius: 14px;
    padding: 1rem 1.1rem 0.15rem;
    box-shadow: 0 8px 22px rgba(0, 45, 112, 0.05);
}
.level-card h3 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    margin: 0 0 0.45rem;
    line-height: 1.25;
}
.level-card p { margin: 0 0 0.85rem; font-size: 0.98rem; }

body.page-membership .aci-form {
    background: #fff;
    border: 1px solid rgba(0, 45, 112, 0.1);
    border-top: 4px solid var(--gold);
    box-shadow: 0 16px 40px rgba(0, 45, 112, 0.06);
}
@media (min-width: 721px) {
    body.page-membership .grid-layout-col:has(> img) {
        position: sticky;
        top: calc(var(--header-h) + 1.15rem);
        display: grid;
        gap: 0.85rem;
        align-self: start;
    }
}
body.page-membership .grid-layout-col > img {
    height: 230px;
    max-height: 230px;
}
@media (max-width: 760px) {
    body.prose-wide-page .stack-form { grid-template-columns: 1fr; }
}

body.page-about-our-clergy .prose > h2 { margin-top: 2.1rem; }
body.page-about-our-clergy .prose > h2::before {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    background: var(--gold);
    margin-bottom: 0.7rem;
    border-radius: 99px;
}
@media (max-width: 720px) {
    .prose .grid-layout:has(img[width="160"]) { grid-template-columns: 104px minmax(0, 1fr); }
    .prose .grid-layout:has(img[width="160"]) img[width="160"] { width: 96px; height: 96px; }
}

.holiday-schedule { display: grid; gap: 0.55rem; margin: 0.35rem 0 1.5rem; }
.schedule-row {
    display: grid;
    grid-template-columns: minmax(11.5rem, 17rem) minmax(0, 1fr);
    gap: 0.35rem 1.15rem;
    align-items: start;
    background: var(--paper);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}
.holiday-prices .schedule-row { grid-template-columns: minmax(0, 1fr) auto; background: #fff; border: 1px solid rgba(0, 45, 112, 0.08); border-left: 4px solid var(--gold); }
.schedule-when { font-family: var(--font-ui); font-weight: 700; color: var(--navy); font-size: 0.95rem; line-height: 1.4; }
.schedule-what { color: var(--ink); line-height: 1.45; }
.holiday-prices .schedule-what { font-family: var(--font-ui); font-weight: 700; color: var(--navy); white-space: nowrap; }
@media (max-width: 640px) {
    .schedule-row, .holiday-prices .schedule-row { grid-template-columns: 1fr; }
    .holiday-prices .schedule-what { white-space: normal; }
}

.journal-viewer {
    margin: 0.25rem 0 1rem;
    background: var(--navy-deep);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 45, 112, 0.15);
    box-shadow: var(--shadow);
}
.journal-viewer iframe {
    display: block;
    width: 100%;
    height: 80vh;
    min-height: 28rem;
    border: 0;
    background: #fff;
}
.journal-download { margin: 0 0 1.35rem; }
.journal-download .btn { color: var(--navy-deep); }

.gallery-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin: 0.4rem 0 1.5rem;
}
.gallery-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(0, 45, 112, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.prose a.gallery-card { color: var(--navy); text-decoration: none; }
.prose a.gallery-card:hover { color: var(--navy); }
.gallery-card img,
.gallery-card-fallback {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}
.gallery-card-fallback {
    display: block;
    background:
        radial-gradient(circle at 18% 20%, rgba(213, 163, 57, 0.45), transparent 42%),
        linear-gradient(145deg, var(--navy), var(--navy-mid));
}
.gallery-card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.95rem 1.05rem 1.1rem; flex: 1; }
.gallery-card-kicker { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.gallery-card-title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--navy); }
.gallery-card-go { margin-top: auto; padding-top: 0.7rem; font-family: var(--font-ui); font-weight: 700; color: var(--gold); }
body.is-gallery .prose > h4 {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.85rem;
}
.gallery-note { margin-top: 0.8rem; }

.calendar-section { padding-top: 2rem; }
.cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.cal-range {
    margin: 0;
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.25rem;
    text-align: center;
}
.cal-months { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
.cal-today-link { display: block; font-size: 0.85rem; font-weight: 600; margin-top: 0.15rem; color: var(--navy-mid); }
.cal-month {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 45, 112, 0.05);
}
.cal-month h2 {
    margin: 0;
    padding: 0.85rem 1rem;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-align: center;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow {
    padding: 0.45rem 0.15rem;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--paper);
}
.cal-day {
    min-height: 6.4rem;
    padding: 0.3rem;
    border-top: 1px solid var(--line);
    box-shadow: inset 1px 0 0 var(--line);
    background: #fff;
}
.cal-dow { box-shadow: inset 1px 0 0 var(--line); }
.cal-num { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; color: var(--navy); padding: 0.1rem 0.15rem 0.2rem; }
.cal-day.is-outside { background: #f3f5f8; }
.cal-day.is-outside .cal-num { color: #9aa3b2; }
.cal-day.is-today { background: rgba(213, 163, 57, 0.14); }
.cal-day.is-today .cal-num { color: var(--navy-deep); }
.cal-event {
    display: block;
    margin-top: 0.25rem;
    padding: 0.2rem 0.3rem 0.28rem;
    border-radius: 6px;
    background: rgba(0, 45, 112, 0.06);
    border-left: 3px solid var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-family: var(--font-ui);
    line-height: 1.25;
}
.cal-event:hover { background: rgba(0, 45, 112, 0.1); color: var(--navy); }

/* Calendar categories: Events (navy), Services (gold), Hebrew School (sky), Education (green) */
.cat-events { --cat: var(--navy); --cat-bg: rgba(0, 45, 112, 0.08); }
.cat-services { --cat: #b8862a; --cat-bg: rgba(213, 163, 57, 0.16); }
.cat-hebrew-school { --cat: #1683c4; --cat-bg: rgba(59, 184, 255, 0.14); }
.cat-education { --cat: #2f8a5b; --cat-bg: rgba(47, 138, 91, 0.12); }
.cal-event[class*="cat-"] { border-left: 3px solid var(--cat); background: var(--cat-bg); }
.cal-event[class*="cat-"]:hover { background: color-mix(in srgb, var(--cat) 18%, #fff); }
.cal-agenda a[class*="cat-"] { border-left: 3px solid var(--cat); padding-left: 0.5rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.cal-filter {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.95rem; border-radius: 999px;
    font-family: var(--font-ui); font-size: 0.92rem; font-weight: 600; text-decoration: none;
    color: var(--navy); background: #fff; border: 1px solid var(--line);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cal-filter:not(.cat-all)::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--cat); }
.cal-filter:hover { border-color: var(--navy); color: var(--navy); }
.cal-filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-filter.is-active::before { box-shadow: 0 0 0 2px #fff; }
.event-cat {
    display: inline-block; margin: 0 0 0.2rem; padding: 0.1rem 0.55rem; border-radius: 999px;
    font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--cat); background: var(--cat-bg);
}
.cal-event img { width: 100%; height: 46px; object-fit: cover; border-radius: 4px; margin: 0 0 0.2rem; box-shadow: none; }
.cal-time { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; color: var(--gold); }
.cal-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 700;
}
.cal-agenda { display: none; list-style: none; margin: 0; padding: 0.35rem 0.85rem 0.9rem; }
.cal-agenda li { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.cal-agenda-date { display: block; font-family: var(--font-ui); font-weight: 700; color: var(--navy); font-size: 0.82rem; }
.cal-agenda a { display: block; margin-top: 0.2rem; color: var(--navy); text-decoration: none; font-family: var(--font-ui); font-weight: 600; }
.cal-agenda a:hover { color: var(--gold); }
@media (max-width: 700px) {
    .cal-day { min-height: 3.1rem; padding: 0.2rem 0.08rem; }
    .cal-dow { font-size: 0.62rem; letter-spacing: 0; padding: 0.35rem 0; }
    .cal-event {
        position: relative;
        width: 0.45rem;
        height: 0.45rem;
        margin: 0.18rem auto 0;
        padding: 0;
        border: 0;
        border-radius: 99px;
        background: var(--gold);
        overflow: hidden;
        color: transparent;
    }
    .cal-event img, .cal-time, .cal-title { display: none; }
    .cal-agenda { display: block; }
}
.calendar-list-title { margin: 2.4rem 0 0.9rem; }
.event-row.has-photo { grid-template-columns: 5.5rem 6.75rem minmax(0, 1fr); }
.event-photo { width: 100%; height: 4.5rem; object-fit: cover; border-radius: 8px; box-shadow: none; }
@media (max-width: 900px) {
    .cal-months { grid-template-columns: 1fr; }
    .cal-toolbar { flex-wrap: wrap; }
    .cal-range { order: -1; width: 100%; }
    .cal-day { min-height: 4.6rem; }
    .level-grid { grid-template-columns: 1fr; }
}

/* ========== Draft preview bar ========== */
.preview-bar {
    background: var(--gold); color: var(--navy-deep); font-family: var(--font-ui); font-weight: 600;
    text-align: center; padding: 0.55rem 1rem; font-size: 0.9rem;
}

/* ========== Half-width form fields and button fields ========== */
@media (min-width: 641px) {
    .stack-form:has(.field-half) { grid-template-columns: 1fr 1fr; }
    .stack-form:has(.field-half) > *:not(.field-half) { grid-column: 1 / -1; }
}
.form-button { display: grid; gap: 0.4rem; justify-items: start; }
.form-button .btn { margin: 0; }

/* ========== Livestream page ========== */
.livestream-wrap { padding: 2.5rem 0 3.5rem; }
.ls-stage {
    display: grid; gap: 1.5rem; align-items: start;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.ls-player {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
    background: var(--navy-deep); box-shadow: var(--shadow);
}
.ls-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ls-now { padding-top: 0.25rem; }
.ls-meta { margin: 0 0 0.5rem; font-family: var(--font-ui); font-size: 0.95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ls-title { font-family: var(--font-display); color: var(--navy); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 0 0 0.75rem; }
.ls-countdown { font-family: var(--font-ui); font-weight: 700; color: var(--navy-mid); margin: 0 0 1rem; }
.ls-actions { margin: 0; }
.livestream-wrap .btn-ghost { color: var(--navy); border-color: var(--line); }
.livestream-wrap .btn-ghost:hover { color: var(--navy); border-color: var(--gold); }
.ls-badge {
    display: inline-block; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--navy); color: var(--white);
}
.ls-badge--live { background: #c62828; }
.ls-badge--live::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; margin-right: 0.35rem; animation: ls-pulse 1.4s ease-in-out infinite; }
.ls-badge--upcoming { background: var(--gold); color: var(--navy-deep); }
@keyframes ls-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ls-badge--live::before { animation: none; } }
.ls-intro { margin: 2rem 0 0; max-width: 72ch; }
.ls-empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.ls-list-heading { margin-top: 2.5rem; }
.ls-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ls-item {
    all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 0.4rem; width: 100%;
    border-radius: var(--radius); padding: 0.5rem; transition: background-color 0.15s ease;
}
.ls-item:hover { background: var(--paper); }
.ls-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ls-item.is-current { background: rgba(0, 45, 112, 0.06); }
.ls-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--line); }
.ls-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-thumb .ls-badge { position: absolute; left: 0.5rem; top: 0.5rem; }
.ls-play {
    position: absolute; right: 0.6rem; bottom: 0.6rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: rgba(0, 31, 77, 0.85); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ls-play::after { content: ""; position: absolute; left: 0.85rem; top: 0.62rem; border-style: solid; border-width: 0.5rem 0 0.5rem 0.8rem; border-color: transparent transparent transparent var(--white); }
.ls-item.is-current .ls-play { background: var(--gold); }
.ls-item.is-current .ls-play::after { border-left-color: var(--navy-deep); }
.ls-item-title { font-family: var(--font-ui); font-weight: 700; color: var(--ink); line-height: 1.3; }
.ls-item-when { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) {
    .ls-stage { grid-template-columns: 1fr; }
}

/* ========== Error pages (404 / 410) ========== */
.error-page { padding-top: 2rem; }
.error-lead { max-width: 60ch; margin-bottom: 2.5rem; font-size: 1.08rem; }
.error-lead .btn { margin-top: 0.5rem; }
.error-path { font-family: var(--font-ui); font-size: 0.92rem; color: var(--muted); }
.error-path code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.4rem; word-break: break-all; }
.error-links .card { text-decoration: none; color: inherit; display: block; }
.error-links .card h3 { color: var(--navy); }
.error-events { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.75rem; max-width: 46rem; }
.error-events li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.error-events a { font-weight: 700; color: var(--navy); text-decoration: none; }
.error-events a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.error-events span { font-family: var(--font-ui); font-size: 0.92rem; color: var(--muted); }
.error-help { color: var(--muted); font-family: var(--font-ui); }

/* ========== Site alerts (CMS: Appearance › Site alerts) ========== */
.site-alerts { position: relative; z-index: 60; }
.site-alert { --alert-bg: var(--navy-mid); --alert-fg: var(--white); --alert-accent: var(--sky); background: var(--alert-bg); color: var(--alert-fg); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.site-alert--success { --alert-bg: #1f6b45; --alert-accent: #9be2b9; }
.site-alert--warning { --alert-bg: var(--gold); --alert-fg: var(--navy-deep); --alert-accent: var(--navy-deep); }
.site-alert--urgent { --alert-bg: #b3261e; --alert-accent: #ffd7d2; }
.site-alert[hidden] { display: none; }
.site-alert-inner { display: flex; align-items: center; gap: 0.85rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.site-alert-icon {
    flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    border: 2px solid var(--alert-accent); color: var(--alert-accent); font: 700 0.9rem/1 var(--font-ui);
}
.site-alert-text { margin: 0; flex: 1; font-family: var(--font-ui); font-size: 0.98rem; line-height: 1.45; }
.site-alert-text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--alert-accent); margin-left: 0.35rem; white-space: nowrap; }
.site-alert-text a:hover { text-decoration-thickness: 2px; }
.site-alert-close {
    flex: none; background: transparent; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
    width: 2.25rem; height: 2.25rem; border-radius: 50%; opacity: 0.85;
}
.site-alert-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); }
.site-alert--warning .site-alert-close:hover { background: rgba(0, 31, 77, 0.1); }
.site-alert-close:focus-visible { outline: 3px solid var(--alert-accent); outline-offset: 1px; opacity: 1; }

/* ========== Article "When & where" (events linked to a post) ========== */
.post-events { margin: 0 0 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; background: var(--paper); }
.post-events h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.2rem; margin: 0 0 0.6rem; }
.post-events ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.post-events li + li { border-top: 1px solid var(--line); padding-top: 0.85rem; }
.post-events li.is-past { opacity: 0.65; }
.post-event-when { margin: 0; font-family: var(--font-ui); font-weight: 700; color: var(--ink); }
.post-event-where { margin: 0.15rem 0 0; font-family: var(--font-ui); color: var(--muted); }
.post-event-past { display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: 0.1em; }
.post-event-actions { margin: 0.55rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
.post-event-actions .btn { margin: 0; }
.post-event-cal { font-family: var(--font-ui); font-weight: 600; color: var(--navy); }

/* ========== Friday Flyer signup placed inside page content (CMS block) ========== */
.newsletter-band.is-embedded { border-radius: var(--radius); margin: 2rem 0; padding: clamp(1.75rem, 4vw, 2.5rem) 0; box-shadow: var(--shadow); }
.newsletter-band.is-embedded .wrap { width: auto; padding-inline: clamp(1.25rem, 3.5vw, 2.25rem); }
.newsletter-band.is-embedded .newsletter-inner { grid-template-columns: 1fr; gap: 1.25rem; }
.prose .newsletter-band .eyebrow { color: var(--gold); margin: 0; }
.prose .newsletter-copy h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0.25rem 0 0.5rem; clear: none; }
.prose .newsletter-copy p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.prose .newsletter-form-wrap p.nl-fineprint { margin: 0.8rem 0 0; color: rgba(255, 255, 255, 0.6); }
.prose .newsletter-band img { border-radius: 0; }
@media (max-width: 640px) {
    .newsletter-band.is-embedded .newsletter-form { grid-template-columns: 1fr; }
}

/* ========== Footer social links ========== */
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; padding: 0; }
.social-links a {
    display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-links a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: translateY(-1px); }
.social-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Homepage "From the Community": two even rows of three */
.news-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .news-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid--home { grid-template-columns: 1fr; } }
