/* ==========================================================================
   St. Charles Garnier Parish — public site stylesheet (assets/css/site.css)
   Converted from the Claude Design exports; values match the approved design.
   Admin pages use Bootstrap and do not load this file.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────── */

:root {
    --scg-black:  #0C0E0C;   /* near-black green — body text, hover state */
    --scg-olive:  #333223;   /* dark olive — secondary text, eyebrows */
    --scg-forest: #2A3A2F;   /* forest green — buttons, links, panels */
    --scg-gold:   #A08B63;   /* muted gold — accent rules only, never text on white */
    --scg-cream:  #F7F5EF;   /* section background */
    --scg-sand:   #ECE8DC;   /* grid-gap colour behind the Mass times cells */
    --scg-line:   #E7E3D8;   /* hairlines and card borders */
    --scg-border: #C9C2AE;   /* form field borders */
    --scg-stone:  #D8D5CB;   /* photo placeholder */
    --scg-muted:  #67635A;   /* placeholder labels, footer copyright */

    --font-serif: 'EB Garamond', Georgia, serif;
    --font-sans:  'Source Sans 3', system-ui, sans-serif;

    --container:  1136px;
    --gutter:     32px;
}

/* ── Base ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #FFFFFF;
    color: var(--scg-black);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--scg-forest); }
a:hover { color: var(--scg-gold); }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid rgba(160, 139, 99, .6);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: -999px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--scg-black);
    color: #FFFFFF;
    text-decoration: none;
}
.skip-link:focus { left: 8px; }

.container {
    max-width: var(--container);
    margin: 0 auto;
}

/* ── Type helpers ───────────────────────────────────────────────────── */

.h-display { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 48px; line-height: 1.12; }
.h-section { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 36px; line-height: 1.15; }
.h-panel   { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 31px; line-height: 1.2; }
.h-card    { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 23px; line-height: 1.2; }
.h-card--lg { font-size: 25px; }

.eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--scg-olive);
}
.eyebrow--tight { letter-spacing: .16em; }
.eyebrow--small { font-size: 12.5px; letter-spacing: .16em; }

.rule {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--scg-gold);
}

.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--scg-olive); }

.link-strong { font-weight: 600; }
.link-bold   { font-weight: 700; }
.link-icon   { display: inline-flex; align-items: center; gap: 8px; }
.link-icon svg { display: block; flex: none; }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary { background: var(--scg-forest); color: #FFFFFF; }
.btn--primary:hover { background: var(--scg-black); color: #FFFFFF; }

.btn--dark { padding: 13px 24px; background: var(--scg-black); color: #FFFFFF; }
.btn--dark:hover { background: #000000; color: #FFFFFF; }

.btn--outline {
    padding: 9px 16px;
    border: 1.5px solid var(--scg-forest);
    background: transparent;
    color: var(--scg-forest);
    font-size: 15px;
}
.btn--outline:hover { background: var(--scg-forest); color: #FFFFFF; }

.btn--small { padding: 11px 20px; font-size: 15.5px; }

/* ── Header and primary navigation ──────────────────────────────────── */

.site-header {
    position: relative;
    z-index: 20;
    background: #FFFFFF;
    border-bottom: 1px solid var(--scg-line);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { display: block; height: 46px; width: auto; }

.nav-primary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15.5px;
}

.nav-primary__link {
    color: var(--scg-black);
    font-weight: 600;
    text-decoration: none;
}
.nav-primary__link:hover,
.nav-primary__link.is-active {
    color: var(--scg-black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-primary__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.nav-primary__toggle {
    padding: 4px 6px;
    border: 0;
    background: none;
    color: var(--scg-gold);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.nav-primary__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    z-index: 50;
    display: none;
    flex-direction: column;
    width: 250px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
    box-shadow: 0 12px 28px rgba(12, 14, 12, .14);
}
.nav-primary__menu--wide { width: 270px; }
.nav-primary__item.is-open .nav-primary__menu { display: flex; }

.nav-primary__sublink {
    display: block;
    padding: 9px 18px;
    color: var(--scg-black);
    font-size: 15.5px;
    text-decoration: none;
}
.nav-primary__sublink:hover,
.nav-primary__sublink.is-active {
    background: var(--scg-cream);
    color: var(--scg-black);
}

.nav-primary .btn { padding: 10px 20px; font-size: inherit; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
    padding: 56px var(--gutter) 60px;
    background: var(--scg-cream);
}

.hero__intro {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--scg-gold);
}

.hero__actions {
    max-width: var(--container);
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 16px;
    text-align: center;
}

/* Framed photo (placeholder until real photography goes in) */

.photo-frame {
    padding: 8px;
    border: 1px solid var(--scg-gold);
}
.photo-frame--hero { max-width: var(--container); margin: 34px auto 0; }

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--scg-stone);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--scg-muted);
}
.photo-placeholder--hero { height: 340px; }

/* Real photo in a frame: same footprint as the placeholder, cropped to fit */
.photo-frame img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.photo-frame--hero img { height: auto; }   /* whole photo, natural proportions (2.5:1, about 445px tall in the frame); phones crop the sides, see the media query */
.photo-frame--parish img { object-position: 50% 78%; }   /* group photo: keep the people, lose the ceiling */
.photo-frame--prayer img { height: 100%; min-height: 300px; object-position: 50% 55%; }   /* grotto: fills the column beside the form */

/* Mass times strip */

.mass-times {
    max-width: var(--container);
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--scg-sand);
    border-top: 3px solid var(--scg-gold);
    box-shadow: 0 8px 24px rgba(12, 14, 12, .08);
}

.mass-times__cell {
    display: flex;
    flex-direction: column;
    padding: 26px 30px;
    background: #FFFFFF;
}
.mass-times__cell .rule { margin: 10px 0 12px; }
.mass-times__cell p { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
.mass-times__cell p:last-of-type { margin-bottom: 16px; }
.mass-times__cell .btn { margin-top: auto; align-self: flex-start; }

/* ── Primary CTA panels (Sacraments / Ministries) ───────────────────── */

.cta-panels {
    padding: 52px var(--gutter);
    background: #FFFFFF;
}

.cta-panels__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.cta-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 38px;
    background: var(--scg-forest);
    color: #FFFFFF;
}
.cta-panel .h-panel { color: #FFFFFF; }
.cta-panel p { margin: 0; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.cta-panel p a {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, .45);
}
.cta-panel p a:hover { color: #FFFFFF; text-decoration-color: var(--scg-gold); }
.cta-panel .btn { margin-top: 8px; }

/* ── This week (bulletin + events) ──────────────────────────────────── */

.this-week {
    padding: 52px var(--gutter) 60px;
    background: var(--scg-cream);
}

.section-head {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head__titles { display: flex; flex-direction: column; gap: 8px; }
.section-head > a { font-size: 16px; }

.card-grid {
    max-width: var(--container);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 28px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
}
.card--featured {
    border: 0;
    border-top: 3px solid var(--scg-gold);
    box-shadow: 0 8px 24px rgba(12, 14, 12, .08);
}
.card p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--scg-olive); }
.card p.card__meta { font-size: 15.5px; line-height: 1.5; }
.card--featured p { color: var(--scg-black); }
.card--featured p.card__meta { color: var(--scg-olive); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ── Our parish ─────────────────────────────────────────────────────── */

.our-parish {
    padding: 60px var(--gutter);
    background: #FFFFFF;
}

.our-parish__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 44px;
    align-items: center;
}

.our-parish__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.our-parish__text p { margin: 0; font-size: 17.5px; line-height: 1.7; }
.our-parish__text .link-bold { margin-top: 4px; font-size: 17px; }

/* ── Scripture band ─────────────────────────────────────────────────── */

.scripture {
    padding: 46px var(--gutter);
    background: var(--scg-forest);
    color: #FFFFFF;
}

.scripture__inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}
.scripture__quote {
    margin: 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 29px;
    line-height: 1.4;
}
.scripture__cite {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .75);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--scg-black);
    color: #FFFFFF;
}

.site-footer__grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px var(--gutter) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.site-footer__col--brand { gap: 14px; }
.site-footer__col--brand img { display: block; height: 52px; width: auto; }
.site-footer__col--brand p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.site-footer__col--brand p.site-footer__diocese { font-size: 15px; color: rgba(255, 255, 255, .6); }

.site-footer .eyebrow { color: rgba(255, 255, 255, .65); letter-spacing: .16em; }
.site-footer__col p { margin: 0; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .92); }

.site-footer__col a {
    color: rgba(255, 255, 255, .92);
    font-size: 16.5px;
    text-decoration: none;
}
.site-footer__col a:hover { color: var(--scg-gold); text-decoration: underline; }
.site-footer__col a.site-footer__contact {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}
.site-footer__col a.site-footer__contact:hover { color: var(--scg-gold); }

.site-footer__map {
    align-self: stretch;
    height: 180px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
}
.site-footer__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.site-footer__bottom {
    max-width: var(--container);
    margin: 40px auto 0;
    padding: 18px var(--gutter) 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.site-footer__bottom p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .65); }

/* ── Sub-page header (pattern shared by Events, Contact, Sacraments…) ─ */

.page-head {
    padding: 40px var(--gutter) 64px;
    background: var(--scg-cream);
}

.page-head__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.back-link {
    align-self: flex-start;
    color: var(--scg-forest);
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
}
.back-link:hover {
    color: var(--scg-forest);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-head__row {
    margin-top: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-head__titles {
    flex: 1 1 480px;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h-page {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 44px;
    line-height: 1.1;
}

.page-head__action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}
.page-head__action .btn { gap: 10px; padding: 13px 22px; }
.page-head__note { font-size: 14px; color: var(--scg-muted); }

/* ── Notice box (schedule changes, announcements) ──────────────────── */

.notice {
    margin-top: 28px;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-left: 4px solid var(--scg-gold);
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--scg-olive);
}
.notice strong { color: var(--scg-black); }

/* ── Info cards (address, office hours, etc.) ───────────────────────── */

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px 28px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
}
.info-card p { margin: 0; font-size: 17px; line-height: 1.6; }
.info-card p a { font-weight: 600; }

/* ── Full-width call-to-action band ─────────────────────────────────── */

.cta-band {
    padding: 52px var(--gutter);
    background: var(--scg-forest);
    color: #FFFFFF;
}
.cta-band__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-band__text { display: flex; flex-direction: column; gap: 8px; }
.cta-band__text .h-panel { color: #FFFFFF; }
.cta-band__text p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); }

/* ── Mass & Confession Times (mass-times.php) ───────────────────────── */

.schedule {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.schedule__group {
    display: flex;
    flex-direction: column;
    padding: 26px 30px 28px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
}
.schedule__group .rule { margin: 10px 0 16px; }

/* Day / time rows — a <dl> so the pairs read correctly to screen readers */

.schedule__list {
    margin: 0 0 18px;
}

.schedule__row {
    display: flex;
    gap: 4px 16px;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 11px 0;
    border-top: 1px solid var(--scg-line);
    font-size: 18px;
    line-height: 1.45;
}
.schedule__row:first-child { border-top: 0; padding-top: 0; }

.schedule__row dt {
    flex: 0 0 160px;
    font-weight: 600;
    color: var(--scg-olive);
}
.schedule__row dd {
    flex: 1 1 160px;
    margin: 0;
}
.schedule__row dd strong { color: var(--scg-black); }

.schedule__note {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    color: var(--scg-muted);
}

.schedule__group > p {
    margin: 0 0 18px;
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--scg-olive);
}

.schedule__group .btn { margin-top: auto; align-self: flex-start; }

/* ── Visit section (location, office, online) ───────────────────────── */

.visit {
    padding: 52px var(--gutter) 60px;
    background: #FFFFFF;
}

.visit__grid {
    max-width: var(--container);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.visit__map {
    align-self: stretch;
    height: 200px;
    margin: 4px 0;
    overflow: hidden;
    border: 1px solid var(--scg-line);
    background: var(--scg-stone);
}
.visit__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── Forms (public pages) ────────────────────────────────────────────── */

.form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
}
.form-field .optional { font-weight: 400; color: var(--scg-muted); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    color: var(--scg-black);
    background: #FFFFFF;
    border: 1px solid var(--scg-border);
    border-radius: 3px;
}
.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--scg-gold);
    box-shadow: 0 0 0 3px rgba(160, 139, 99, .35);
}

/* ── Sacrament pages (shared template: includes/sacrament-page.php) ─── */

.page-head__titles--top { flex: none; max-width: none; margin-top: 26px; }   /* sits directly in the column, not in a row */

.h-sub {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 29px;
    line-height: 1.2;
}

.sacrament__layout {
    margin-top: 32px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.sacrament__main {
    flex: 1.9 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sacrament__aside {
    flex: 1 1 300px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sacrament__block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* "What you need to know" cards */

.know-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.know-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 24px 26px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
}
.know-card__cross {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1;
    color: var(--scg-gold);
}
.know-card h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
}
.know-card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--scg-olive); }

/* Scripture panel */

.quote-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 40px;
    background: var(--scg-forest);
    color: #FFFFFF;
    text-align: center;
}
.quote-panel::before,
.quote-panel::after {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--scg-gold);
}
.quote-panel__text {
    margin: 0;
    max-width: 52ch;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.45;
}
.quote-panel__ref {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .75);
}

/* FAQ accordion — native <details>, no JS */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq {
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    list-style: none;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 19.5px;
    line-height: 1.3;
    cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "\25BC";
    flex: none;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--scg-gold);
}
.faq[open] .faq__q::after { content: "\25B2"; }

.faq__a {
    margin: 0;
    padding: 12px 20px 16px;
    border-top: 1px solid #F0EDE3;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--scg-olive);
}

/* Sidebar list of the other pages in the group */

.side-nav {
    display: flex;
    flex-direction: column;
    padding: 22px 0 10px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
}
.side-nav .eyebrow { padding: 0 22px 12px; font-size: 12.5px; }
.side-nav a {
    padding: 11px 22px;
    border-left: 3px solid transparent;
    color: var(--scg-black);
    font-size: 16px;
    text-decoration: none;
}
.side-nav a:hover { background: var(--scg-cream); color: var(--scg-black); }
.side-nav a.is-active {
    border-left-color: var(--scg-gold);
    background: var(--scg-cream);
    font-weight: 700;
}

/* "Begin preparation" request box */

.prep-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 28px 28px;
    background: #F1ECDD;
    border: 1px solid #CFC4A6;
}
.prep-box h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 27px;
    line-height: 1.2;
}
.prep-box > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--scg-olive); }
.prep-box .form-field input,
.prep-box .form-field textarea { border-color: #BFB69C; }
.prep-box .btn { margin-top: 2px; align-self: flex-start; padding: 13px 22px; }
.prep-box__call { font-size: 15.5px; }
.prep-box__call a { font-weight: 600; }

/* Prose blocks and bullet lists inside sacrament pages */

.prose p { margin: 0; font-size: 17.5px; line-height: 1.7; }
.prose p + p { margin-top: -2px; }

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.check-list li {
    position: relative;
    padding-left: 26px;
    font-size: 17.5px;
    line-height: 1.6;
}
.check-list li::before {
    content: "\2720";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--scg-gold);
}

/* Download lists (forms and information sheets) */

.downloads > p { margin: 0; font-size: 17.5px; line-height: 1.7; }

.download-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.download-list--compact { grid-template-columns: 1fr; gap: 8px; }

.download-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-left: 3px solid var(--scg-gold);
    color: var(--scg-black);
    text-decoration: none;
}
.download-list a:hover { border-color: var(--scg-forest); border-left-color: var(--scg-gold); color: var(--scg-black); }
.download-list--compact a { padding: 11px 14px; }

.download-list__badge {
    flex: none;
    padding: 4px 7px;
    border-radius: 3px;
    background: var(--scg-forest);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}
.download-list__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-list__text strong { font-size: 16.5px; line-height: 1.3; }
.download-list__text span { font-size: 14.5px; color: var(--scg-muted); }

/* Write-ups (html blocks): lists and emphasis */

.prose ul { margin: 0; padding-left: 22px; font-size: 17.5px; line-height: 1.7; }
.prose ul li::marker { color: var(--scg-gold); }
.prose ol { margin: 0; padding-left: 24px; font-size: 17.5px; line-height: 1.7; }
.prose ol li::marker { color: var(--scg-forest); font-weight: 700; }
.prose li + li { margin-top: 4px; }
.prose h3 { margin: 6px 0 0; font-family: var(--font-serif); font-weight: 600; font-size: 22px; line-height: 1.25; }

/* Full-width region below the sidebar row, and the numbered guide */

.sacrament__full {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guide-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 760px;
}

.guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.guide__step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 30px 30px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
}

.guide__title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2px;
}
.guide__num {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--scg-forest);
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 20px;
}
.guide__step h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
}
.guide__step p,
.guide__step ul { font-size: 17px; line-height: 1.65; }

.sacrament__full .quote-panel { padding: 52px 40px; }
.sacrament__full .quote-panel__text { max-width: 60ch; font-size: 28px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Ministry pages (shared template: includes/ministry-page.php) ────── */

.ministry__head {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ministry__image {
    flex: none;
    width: 110px;
    height: 110px;
    padding: 6px;
    background: #FFFFFF;
    border: 1px solid var(--scg-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background-clip: padding-box;
}
.ministry__image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ministry__image-label {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: var(--scg-stone);
    text-align: center;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--scg-muted);
}

.ministry__titles { margin-top: 0; min-width: 260px; }
.h-page--ministry { font-size: 40px; }
.ministry__meets { margin: 0; font-size: 16.5px; color: var(--scg-olive); }
.ministry__meets strong { color: var(--scg-black); }

/* Tab strip linking the pages in a group */

.tab-strip {
    margin-top: 30px;
    padding-bottom: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #E2DDCF;
}
.tab-strip__tab {
    padding: 10px 18px;
    border: 1px solid #CFC8B4;
    border-radius: 3px;
    background: #FFFFFF;
    color: var(--scg-black);
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
}
.tab-strip__tab:hover { color: var(--scg-black); border-color: var(--scg-forest); }
.tab-strip__tab.is-active {
    background: var(--scg-forest);
    border-color: var(--scg-forest);
    color: #FFFFFF;
}

.ministry__layout {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ministry__about {
    flex: 1.7 1 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px 34px 34px;
    background: #FFFFFF;
    border-top: 3px solid var(--scg-gold);
    box-shadow: 0 8px 24px rgba(12, 14, 12, .08);
}
.h-sub--card { font-size: 28px; }
.ministry__about p { margin: 0; font-size: 17.5px; line-height: 1.7; }

.ministry__join { flex: 1 1 300px; padding: 28px 30px 30px; }
.ministry__join h2 { font-size: 28px; }
.ministry__join > p { font-size: 16.5px; }

/* ── Small screens ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
    :root { --gutter: 20px; }

    .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
    .site-header__logo img { height: 40px; }
    .nav-primary { gap: 12px 18px; font-size: 15px; }

    .h-display { font-size: 36px; }
    .h-section { font-size: 30px; }
    .h-page    { font-size: 34px; }
    .h-sub     { font-size: 26px; }
    .quote-panel { padding: 36px 24px; }
    .quote-panel__text { font-size: 22px; }
    .know-card, .prep-box { padding: 22px; }
    .guide { grid-template-columns: 1fr; }
    .guide__step { padding: 22px; }
    .h-page--ministry { font-size: 32px; }
    .ministry__about { padding: 24px 22px; }

    .photo-placeholder--hero { height: 220px; }
    .photo-frame--hero img { height: 220px; }
    .mass-times__cell { padding: 22px; }

    .cta-panels__grid { grid-template-columns: 1fr; }
    .cta-panel { padding: 28px 24px; }

    .card { padding: 22px; }
    .our-parish__grid { grid-template-columns: 1fr; gap: 28px; }
    .scripture__quote { font-size: 24px; }

    .schedule { grid-template-columns: 1fr; }
    .schedule__group { padding: 22px; }
    .schedule__row { font-size: 17px; }
    .schedule__row dt { flex-basis: 100%; }
}

/* ── Staff sign-in (login.php — standalone layout, no header/footer) ─ */

body.login-page {
    margin: 0;
    background: var(--scg-cream);
    color: var(--scg-black);
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.login-wrap {
    display: flex;
    min-height: 100vh;
}

/* Brand panel ─────────────────────────────────────────────────────── */

.login-brand {
    flex: 0 0 40%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    padding: 44px 48px;
    background: var(--scg-forest);
    color: #FFFFFF;
}

.login-brand__logo {
    display: block;
    align-self: flex-start;   /* the brand panel is a flex column; without this the logo stretches to its full width */
    height: 56px;
    width: auto;
}

.login-brand__body {
    margin: auto 0;           /* vertically centred between logo and bottom edge */
    padding: 48px 0;
}

.login-brand__eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .65);
}

.login-brand__rule {
    display: block;
    width: 28px;
    height: 2px;
    margin: 10px 0 16px;
    background: var(--scg-gold);
}

.login-brand__title {
    margin: 0 0 12px;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1.15;
}

.login-brand__text {
    margin: 0;
    max-width: 34ch;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
}

/* Form panel ──────────────────────────────────────────────────────── */

.login-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 48px 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 40px 32px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
    box-shadow: 0 8px 24px rgba(12, 14, 12, .08);
}

.login-card h1 {
    margin: 0 0 6px;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.15;
}

.login-card__lead {
    margin: 0 0 22px;
    color: var(--scg-olive);
}

/* Messages */

.login-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 4px solid;
    font-size: 16px;
    line-height: 1.45;
}

.login-alert--danger {
    background: #F9ECEC;
    border-color: #A33A3A;
    color: #6E1F1F;
}

.login-alert--info {
    background: var(--scg-cream);
    border-color: var(--scg-gold);
    color: var(--scg-olive);
}

/* Fields */

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.login-field input {
    display: block;
    width: 100%;
    padding: 12px 13px;
    font: inherit;
    color: var(--scg-black);
    background: #FFFFFF;
    border: 1px solid var(--scg-border);
    border-radius: 3px;
}

.login-field input:focus {
    outline: none;
    border-color: var(--scg-gold);
    box-shadow: 0 0 0 3px rgba(160, 139, 99, .35);
}

.login-field__wrap {
    position: relative;
}

.login-field--password input {
    padding-right: 52px;
}

.login-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: transparent;
    color: var(--scg-olive);
    font-size: 17px;
    cursor: pointer;
}

.login-toggle:hover,
.login-toggle:focus-visible {
    outline: none;
    color: var(--scg-black);
    background: var(--scg-cream);
}

/* Button */

.login-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    font: inherit;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--scg-forest);
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.login-btn:hover {
    background: var(--scg-black);
}

.login-btn:focus-visible {
    outline: 3px solid rgba(160, 139, 99, .55);
    outline-offset: 2px;
}

.login-btn:disabled {
    opacity: .7;
    cursor: default;
}

/* Links under the form */

.login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 16px;
}

.login-links a,
.login-links .login-linkbtn {
    color: var(--scg-forest);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-links a:hover,
.login-links .login-linkbtn:hover {
    color: var(--scg-gold);
}

.login-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.login-links form {
    margin: 0;
}

/* Below the card */

.login-back,
.login-foot {
    margin: 0;
    text-align: center;
}

.login-back {
    font-size: 15.5px;
}

.login-back a {
    color: var(--scg-olive);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-back a:hover {
    color: var(--scg-gold);
}

.login-foot {
    font-size: 14.5px;
    color: #67635A;
}

/* Mobile: brand panel becomes a slim header band ──────────────────── */

@media (max-width: 820px) {
    .login-wrap {
        flex-direction: column;
    }

    .login-brand {
        flex: 0 0 auto;
        max-width: none;
        padding: 16px 22px;
    }

    .login-brand__logo {
        height: 40px;
    }

    .login-brand__body {
        display: none;
    }

    .login-main {
        justify-content: flex-start;
        gap: 18px;
        padding: 28px 18px 36px;
    }

    .login-card {
        padding: 28px 22px 26px;
    }

    .login-card h1 {
        font-size: 30px;
    }
}

/* ── Backend-driven pages and forms (added Oct 2026 with the admin backend) ── */
/* Appended by merge-patch.py. Uses the tokens above; nothing earlier in this
   file is redefined. Covers: form notices and the honeypot, the events page,
   the bulletins page, the Give page, the pre-authorized giving form. */

/* Form notices (thank-you or error after a post) and the honeypot field */

.form-notice {
    margin: 0 0 4px;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-left: 4px solid var(--scg-forest);
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--scg-black);
}
.form-notice--error { border-left-color: #9B2C2C; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-field .required-mark { color: #9B2C2C; font-weight: 700; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > .form-field { flex: 1 1 220px; }
.form-row--3 > .form-field { flex: 1 1 140px; }
.form-field__label { font-size: 15px; font-weight: 600; }
.form-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
}
.form-choice input { width: 20px; height: 20px; accent-color: var(--scg-forest); }
.form-choice + .form-choice { margin-top: 2px; }
.form-field input[type="file"] { padding: 9px 12px; }
.btn--large { padding: 15px 28px; font-size: 18px; }

/* ── Events page (events.php) ───────────────────────────────────────── */

.event-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.event-list .card { gap: 8px; }
.event-list .h-card a { color: var(--scg-black); text-decoration: none; }
.event-list .h-card a:hover { color: var(--scg-forest); text-decoration: underline; text-underline-offset: 4px; }
.event-list__empty { margin: 30px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--scg-olive); }

.event-detail { margin-top: 26px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.event-detail__meta { margin: 0; font-size: 18px; line-height: 1.6; color: var(--scg-olive); }
.event-detail__meta strong { color: var(--scg-black); }
.event-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.event-rsvp { max-width: 520px; margin-top: 10px; }

/* ── Bulletins page (bulletins.php) ─────────────────────────────────── */

.bulletin-year { margin: 34px 0 0; }
.bulletin-year .rule { margin: 10px 0 0; }
.bulletin-list { margin: 16px 0 0; padding: 0; list-style: none; }
.bulletin-list li { border-top: 1px solid var(--scg-line); }
.bulletin-list li:first-child { border-top: 0; }
.bulletin-list a {
    display: grid;
    grid-template-columns: 230px 1fr auto;
    gap: 6px 16px;
    align-items: center;
    padding: 14px 8px;
    color: var(--scg-black);
    font-size: 18px;
    text-decoration: none;
}
.bulletin-list a:hover { background: #FFFFFF; color: var(--scg-black); }
.bulletin-list__date { font-weight: 600; color: var(--scg-olive); }
.bulletin-list__meta { font-size: 15px; color: var(--scg-muted); }
.bulletin-list li.is-latest { border-left: 3px solid var(--scg-gold); }   /* on the li so the gold bar also spans the attachments under the row */
.bulletin-list__empty { margin: 30px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--scg-olive); }

/* ── Give page (donate.php) ─────────────────────────────────────────── */

.donate-grid {
    max-width: var(--container);
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.donate-grid .info-card { border-top: 3px solid var(--scg-gold); }
.donate-grid .info-card .rule { margin: 4px 0 2px; }
.donate-grid .info-card .btn { margin-top: auto; }
.donate-grid .info-card .h-sub { font-size: 26px; }

/* ── Pre-authorized giving form (sag-form.php) ───────────────────────── */

.sag-layout {
    margin-top: 32px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.sag-form { flex: 1.9 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sag-form form { display: flex; flex-direction: column; gap: 18px; }
.sag-form form > p { margin: 0; }
.sag-aside { flex: 1 1 300px; min-width: 280px; }
.sag-section {
    margin: 0;
    padding: 24px 28px 26px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
}
.sag-section legend {
    padding: 0 8px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
}
.sag-section .form { margin-top: 6px; }
.sag-help { margin: 0 0 14px; font-size: 16.5px; line-height: 1.55; color: var(--scg-olive); }
.sag-terms {
    margin: 0 0 14px;
    padding: 14px 18px;
    background: var(--scg-cream);
    border-left: 3px solid var(--scg-gold);
    font-size: 16px;
    line-height: 1.6;
    color: var(--scg-olive);
}
.sag-terms p { margin: 0 0 10px; }
.sag-terms p:last-child { margin-bottom: 0; }
.sag-other { max-width: 260px; }

/* ── Landing pages (sacraments.php, ministries.php) ─────────────────── */

.hub-section { margin-top: 36px; }
.hub-section .rule { margin: 10px 0 0; }
.hub-section__intro { margin: 14px 0 0; max-width: 760px; font-size: 17.5px; line-height: 1.6; color: var(--scg-olive); }

.hub-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.hub-grid--ministries { margin-top: 30px; }

/* The whole card is the link: large target, obvious hover, no underline soup */
.hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 28px;
    background: #FFFFFF;
    border: 1px solid var(--scg-line);
    border-top: 3px solid var(--scg-gold);
    color: var(--scg-black);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hub-card:hover,
.hub-card:focus-visible {
    color: var(--scg-black);
    border-color: var(--scg-forest);
    border-top-color: var(--scg-gold);
    box-shadow: 0 8px 24px rgba(12, 14, 12, .10);
}
.hub-card__cross {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1;
    color: var(--scg-gold);
}
.hub-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
}
.hub-card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--scg-olive); }
.hub-card__more {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 700;
    color: var(--scg-forest);
}
.hub-card:hover .hub-card__more { text-decoration: underline; text-underline-offset: 4px; }
.hub-card--ministry .hub-card__image { width: 90px; height: 90px; margin-bottom: 4px; }

/* ── Clergy and staff (homepage) ─────────────────────────────────────── */

.staff {
    padding: 52px var(--gutter) 60px;
    background: var(--scg-cream);
}

.staff-grid {
    max-width: var(--container);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px 32px;
}

.staff-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
    border-top: 2px solid var(--scg-gold);
}
.staff-card .eyebrow { margin-top: -2px; }
.staff-card p { margin: 4px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--scg-olive); }
.staff-card__contact { margin-top: 6px; font-size: 16px; line-height: 1.7; word-break: break-word; }
.staff-card__contact a { font-weight: 600; }

/* ── Prayer requests (homepage) ──────────────────────────────────────── */

.prayer {
    padding: 60px var(--gutter);
    background: #FFFFFF;
}

.prayer__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 44px;
    align-items: stretch;
}
.prayer__grid .photo-frame { display: flex; }
.prayer__grid .photo-frame img { flex: 1 1 auto; }

.prayer__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.prayer__text > p { margin: 0; font-size: 17.5px; line-height: 1.7; }
.prayer__form { margin-top: 10px; max-width: 560px; }
.prayer__form .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 640px) {
    .bulletin-list a { grid-template-columns: 1fr; gap: 2px; }
    .sag-section { padding: 22px; }
    .hub-card { padding: 22px; }
    .staff { padding: 44px var(--gutter) 48px; }
    .prayer { padding: 44px var(--gutter) 48px; }
    .prayer__grid { gap: 28px; }
    .photo-frame--prayer img { height: 240px; min-height: 0; }
}

/* ── Attachments: posters on event cards, poster and files on the event page,
      files under bulletins (includes/attachments-lib.php) ─────────────── */

.card__poster {   /* first image attached to an event, bled to the card edges; the top of the poster is where the title is */
    display: block;
    margin: -26px -28px 6px;
    height: 210px;
    overflow: hidden;
    background: var(--scg-cream);
    border-bottom: 1px solid var(--scg-line);
}
.card__poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card__files { font-size: 15.5px; line-height: 1.5; }
.card__files a { font-weight: 600; color: var(--scg-forest); }

.event-poster { margin: 0; max-width: 560px; }
.event-poster a { display: block; }
.event-poster img { display: block; width: 100%; height: auto; border: 1px solid var(--scg-line); background: #FFFFFF; }
.event-poster figcaption { margin-top: 8px; font-size: 15px; color: var(--scg-muted); }

.event-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.event-gallery a { display: block; width: 150px; border: 1px solid var(--scg-line); background: #FFFFFF; }
.event-gallery img { display: block; width: 100%; height: auto; }

.attachment-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.attachment-list a { font-size: 17.5px; font-weight: 600; color: var(--scg-forest); text-decoration: underline; text-underline-offset: 3px; }
.attachment-list__kind { font-size: 15px; font-weight: 400; color: var(--scg-muted); }

.bulletin-list__files {   /* "Also this week" under a bulletin row, aligned with its title column */
    margin: -6px 0 0;
    padding: 0 8px 14px 254px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 16.5px;
    color: var(--scg-olive);
}
.bulletin-list__files::before { content: "Also this week:"; }
.bulletin-list__files a { display: inline; padding: 0; font-size: inherit; color: var(--scg-forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bulletin-list__files a:hover { background: none; color: var(--scg-gold); }

@media (max-width: 640px) {
    .card__poster { margin: -22px -22px 6px; height: 170px; }
    .bulletin-list__files { padding-left: 8px; }
    .event-gallery a { width: calc(50% - 6px); }
}

/* reCAPTCHA v2 checkbox, shown only when a form was sent back for it */
.form-captcha { margin: 4px 0 2px; }
.form-captcha .g-recaptcha { transform-origin: 0 0; }
.grecaptcha-badge { visibility: hidden; }   /* v3 badge hidden; the privacy note is printed on each form instead */
.form-recaptcha-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--scg-muted); }
.form-recaptcha-note a { color: var(--scg-muted); }

/* ── Contact page (contact.php) ──────────────────────────────────────── */

.contact-grid { margin-top: 30px; display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.contact-form-card {
    flex: 1.5 1 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 34px 34px;
    background: #FFFFFF;
    border-top: 3px solid var(--scg-gold);
    box-shadow: 0 8px 24px rgba(12, 14, 12, .08);
}
.contact-form-card .form-notice { margin: 0; }
.contact-form-card .btn { align-self: flex-start; }
.contact-aside { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 24px; }
.contact-aside .info-card p a { color: var(--scg-forest); }
.contact-map { padding: 8px; border: 1px solid var(--scg-gold); background: #FFFFFF; }
.contact-map iframe { display: block; width: 100%; height: 220px; border: 0; background: #D8D5CB; }

@media (max-width: 640px) {
    .contact-form-card { padding: 22px; }
    .contact-aside { min-width: 0; }
}