/*
 Theme Name:   St Faith's Dorstone
 Theme URI:    https://stfaithsdorstone.org
 Description:  Custom child theme for St Faith's Church, Dorstone. Built on GeneratePress. Page copy lives as markdown in content/ (same architecture as the Dorstone Settlement Timeline theme).
 Author:       St Faith's Church, Dorstone
 Author URI:   https://stfaithsdorstone.org
 Template:     generatepress
 Version:      3.15.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  sf-theme
*/

/* ============================================
   ST FAITH'S DORSTONE
   Brand Identity Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Brand colours */
    --sf-navy: #1B3A5C;
    --sf-navy-light: #2A5080;
    --sf-navy-dark: #0F2440;
    --sf-gold: #C5963A;
    --sf-gold-light: #D4AD5A;
    --sf-gold-dark: #A07A2E;
    --sf-slate: #6B7D8E;
    --sf-stone: #D8D2C8;
    --sf-parchment: #F2F0EB;
    --sf-white: #FFFFFF;
    --sf-charcoal: #2C3338;

    /* Typography */
    --sf-heading-font: 'Georgia', 'Times New Roman', serif;
    --sf-body-font: 'Georgia', 'Times New Roman', serif;
    --sf-ui-font: 'Trebuchet MS', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --sf-section-padding: 80px;
    --sf-content-width: 1200px;
    --sf-narrow-width: 800px;
}

/* --- Web fonts: none. v3.0.0 removed the Google Fonts @import; no rule
   used either face, and the request blocked the first paint. --- */

/* --- Break out of GeneratePress container --- */
.full-width-content #page.grid-container,
.full-width-content #page.container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.full-width-content #content.site-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Base Typography --- */
body {
    font-family: var(--sf-body-font);
    font-size: 18px;
    line-height: 1.7;
    color: var(--sf-charcoal);
    background-color: var(--sf-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sf-heading-font);
    font-weight: normal;
    color: var(--sf-navy);
    line-height: 1.2;
}

h1 { font-size: 2.8rem; margin-bottom: 0.5em; }
h2 { font-size: 2.2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.6rem; margin-bottom: 0.4em; }
h4 { font-size: 1.3rem; margin-bottom: 0.4em; }

p {
    margin-bottom: 1.2em;
}

/* --- Links --- */
a {
    color: var(--sf-navy-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--sf-gold-dark);
    text-decoration: underline;
}

/* --- Custom Header --- */
.sf-header {
    background-color: var(--sf-white);
    border-bottom: 3px solid var(--sf-navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--sf-content-width);
    margin: 0 auto;
    padding: 8px 40px;
    box-sizing: border-box;
}

/* Header logo */
.sf-header-logo a {
    display: block;
    line-height: 0;
}

.sf-header-logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Navigation */
.sf-nav {
    margin-left: auto;
}

.sf-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.sf-nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.sf-nav ul li a {
    display: block;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sf-navy);
    padding: 10px 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-nav ul li a:hover,
.sf-nav ul li a:focus {
    color: var(--sf-gold);
    text-decoration: none;
}

.sf-nav ul li.current-menu-item > a,
.sf-nav ul li.current_page_item > a,
.sf-nav ul li.current-menu-ancestor > a {
    color: var(--sf-gold);
}

/* Dropdown sub-menus */
.sf-nav ul ul {
    display: none;
    position: absolute;
    flex-direction: column;
    background-color: var(--sf-white);
    border: 1px solid var(--sf-stone);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 200;
    left: 0;
    top: 100%;
}

.sf-nav ul li:hover > ul {
    display: flex;
}

.sf-nav ul ul li {
    width: 100%;
}

.sf-nav ul ul li a {
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 8px 15px;
}

/* Mobile menu toggle */
.sf-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--sf-navy);
    cursor: pointer;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sf-menu-toggle-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Remove white gap between header and content */
.site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.inside-article,
.entry-content,
.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-header,
.entry-header {
    margin: 0 !important;
    padding: 0 !important;
}

.page-template-default .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Hero Section --- */
.sf-hero {
    background-color: var(--sf-navy);
    color: var(--sf-parchment);
    padding: 90px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(27,58,92,0.85) 0%, rgba(27,58,92,0.95) 100%);
    z-index: 1;
}

.sf-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--sf-narrow-width);
    margin: 0 auto;
}

.sf-hero-logo {
    max-width: 320px;
    margin: 0 auto 30px;
}

.sf-hero h1 {
    color: var(--sf-parchment);
    font-size: 3rem;
    margin-bottom: 0.3em;
    letter-spacing: 0.02em;
}

.sf-hero .sf-strapline {
    font-family: var(--sf-body-font);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--sf-gold);
    margin-bottom: 1.5em;
}

.sf-hero .sf-tagline {
    font-family: var(--sf-ui-font);
    font-size: 0.9rem;
    color: var(--sf-parchment);
    opacity: 0.8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Hero Slider --- */
.sf-hero-slider {
    position: relative;
    overflow: hidden;
    /* Fixed minimum height so the hero has a stable frame to crossfade
       slides inside. Because each .sf-slide is position:absolute with
       top:0; bottom:0, the slide's rendered height always equals the
       hero's padding box – animating the hero height based on that
       produces a feedback loop where the hero grows with every slide.
       Keeping the hero height static avoids the loop and lets slides
       of varying content size still fit (vertically centred via flex). */
    min-height: 380px;
}

@media (min-width: 900px) {
    .sf-hero-slider {
        min-height: 420px;
    }
}

.sf-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 40px;
    pointer-events: none;
}

/* Active slide toggles opacity and pointer-events only – NEVER position.
   Changing position from absolute to relative forces a layout reflow that
   makes the crossfade snap; keeping every slide absolutely positioned lets
   the opacity transition run smoothly. The sf-hero-slider container owns
   its height, set and animated by JS to match the active slide. */
.sf-slide.sf-slide-active {
    opacity: 1;
    pointer-events: auto;
}

.sf-slide-content {
    max-width: var(--sf-narrow-width);
    position: relative;
    z-index: 2;
}

.sf-slide h5 {
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sf-gold);
    margin-bottom: 0.8em;
    font-weight: bold;
}

.sf-slide h1 {
    color: var(--sf-parchment);
    font-size: 3rem;
    margin-bottom: 0.4em;
}

.sf-slide p {
    color: var(--sf-parchment);
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1.5em;
}

/* --- Buttons --- */
.sf-btn {
    display: inline-block;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.sf-btn-primary {
    background-color: var(--sf-gold);
    color: var(--sf-white);
}

.sf-btn-primary:hover {
    background-color: var(--sf-gold-dark);
    color: var(--sf-white);
    text-decoration: none;
}

.sf-btn-secondary {
    background-color: transparent;
    color: var(--sf-parchment);
    border: 2px solid var(--sf-parchment);
}

.sf-btn-secondary:hover {
    background-color: var(--sf-parchment);
    color: var(--sf-navy);
    text-decoration: none;
}

.sf-btn-outline {
    background-color: transparent;
    color: var(--sf-navy);
    border: 2px solid var(--sf-navy);
}

.sf-btn-outline:hover {
    background-color: var(--sf-navy);
    color: var(--sf-white);
    text-decoration: none;
}

/* --- Content Sections --- */
.sf-section {
    padding: var(--sf-section-padding) 40px;
}

.sf-section-parchment {
    background-color: var(--sf-parchment);
}

.sf-section-navy {
    background-color: var(--sf-navy);
    color: var(--sf-parchment);
}

.sf-section-navy h2,
.sf-section-navy h3 {
    color: var(--sf-parchment);
}

.sf-section-inner {
    max-width: var(--sf-content-width);
    margin: 0 auto;
}

.sf-section-narrow {
    max-width: var(--sf-narrow-width);
    margin: 0 auto;
}

/* --- Section Headers --- */
.sf-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sf-section-header h2 {
    position: relative;
    display: inline-block;
}

.sf-section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--sf-gold);
    margin: 12px auto 0;
}

.sf-section-header p {
    font-size: 1.15rem;
    color: var(--sf-slate);
    max-width: 600px;
    margin: 15px auto 0;
    font-style: italic;
}

/* --- Cards --- */
.sf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.sf-card {
    background: var(--sf-white);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sf-card:hover {
    box-shadow: 0 4px 16px rgba(27, 58, 92, 0.15);
    transform: translateY(-2px);
}

.sf-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.sf-card-body {
    padding: 25px;
}

.sf-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4em;
}

.sf-card-body p {
    font-size: 1rem;
    color: var(--sf-charcoal);
    margin-bottom: 1em;
}

.sf-card-meta {
    font-family: var(--sf-ui-font);
    font-size: 0.75rem;
    color: var(--sf-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: bold;
}

/* --- Info Cards (service times, contact) --- */
.sf-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.sf-info-card {
    background: var(--sf-parchment);
    padding: 30px;
    border-left: 4px solid var(--sf-gold);
    border-radius: 0 3px 3px 0;
}

.sf-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    color: var(--sf-navy);
}

.sf-info-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Pullquote --- */
.sf-pullquote {
    border-left: 4px solid var(--sf-gold);
    padding: 20px 30px;
    margin: 40px 0;
    background: var(--sf-parchment);
}

.sf-pullquote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--sf-navy);
    margin-bottom: 0.5em;
}

.sf-pullquote cite {
    font-family: var(--sf-ui-font);
    font-size: 0.8rem;
    font-style: normal;
    color: var(--sf-slate);
}

/* --- Rotating Quotes --- */
.sf-quote-rotator {
    position: relative;
    min-height: 160px;
    border-left: 4px solid var(--sf-gold);
    padding: 25px 30px;
    background: var(--sf-parchment);
}

.sf-quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.sf-quote-slide.sf-quote-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.sf-quote-slide p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--sf-navy);
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.sf-quote-slide cite {
    font-family: var(--sf-ui-font);
    font-size: 0.75rem;
    font-style: normal;
    color: var(--sf-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- CTA Banner --- */
.sf-cta-banner {
    background-color: var(--sf-gold);
    color: var(--sf-white);
    padding: 60px 40px;
    text-align: center;
}

.sf-cta-banner h2 {
    color: var(--sf-white);
    font-size: 2rem;
    margin-bottom: 0.3em;
}

.sf-cta-banner p {
    font-size: 1.15rem;
    color: var(--sf-white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5em;
}

.sf-cta-banner .sf-btn-secondary {
    border-color: var(--sf-white);
    color: var(--sf-white);
}

.sf-cta-banner .sf-btn-secondary:hover {
    background-color: var(--sf-white);
    color: var(--sf-gold-dark);
}

/* --- Contact Form --- */
.sf-contact-form input,
.sf-contact-form textarea {
    box-sizing: border-box; /* v3.11.0: 100% wide including padding, so the fields fit at 320px */
    font-family: var(--sf-body-font);
    font-size: 1rem;
    border: 1px solid var(--sf-stone);
    padding: 12px 16px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 3px;
    transition: border-color 0.2s ease;
}

.sf-contact-form input:focus,
.sf-contact-form textarea:focus {
    outline: none;
    border-color: var(--sf-gold);
}

.sf-contact-form label {
    font-family: var(--sf-ui-font);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--sf-charcoal);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Footer --- */
.footer-widgets,
.site-info {
    background-color: var(--sf-navy-dark) !important;
    color: var(--sf-parchment) !important;
}

.site-info a {
    color: var(--sf-gold);
}

.site-footer {
    background-color: var(--sf-navy-dark);
    color: var(--sf-parchment);
    padding: 60px 40px 30px;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--sf-content-width);
    margin: 0 auto;
}

.sf-footer-col:nth-child(1) {
    text-align: left;
}

.sf-footer-col:nth-child(2) {
    text-align: center;
}

.sf-footer-col:nth-child(3) {
    text-align: right;
}

.sf-footer-col h4 {
    font-family: var(--sf-ui-font);
    color: var(--sf-gold);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1em;
}

.sf-footer-col p,
.sf-footer-col a {
    font-size: 0.95rem;
    color: var(--sf-parchment);
    line-height: 1.8;
}

.sf-footer-col a:hover {
    color: var(--sf-gold-light);
}

.sf-footer-bottom {
    max-width: var(--sf-content-width);
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(242, 240, 235, 0.15);
    text-align: center;
    font-family: var(--sf-ui-font);
    font-size: 0.75rem;
    color: var(--sf-slate);
}

/* --- Two-column layout --- */
.sf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --sf-section-padding: 50px;
    }

    .sf-header-inner {
        flex-wrap: wrap;
        padding: 8px 20px;
    }

    .sf-header-logo img {
        height: 50px;
    }

    .sf-menu-toggle {
        display: block;
    }

    .sf-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .sf-nav.toggled ul {
        display: flex;
    }

    .sf-nav {
        width: 100%;
        order: 3;
    }

    .sf-nav ul li {
        width: 100%;
    }

    .sf-nav ul li a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--sf-stone);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .sf-hero {
        padding: 50px 25px;
    }

    .sf-hero h1 {
        font-size: 2.2rem;
    }

    .sf-slide h1 {
        font-size: 2.2rem;
    }

    .sf-card-grid {
        grid-template-columns: 1fr;
    }

    .sf-footer-grid {
        grid-template-columns: 1fr;
    }

    .sf-footer-col:nth-child(2),
    .sf-footer-col:nth-child(3) {
        text-align: left;
    }

    .sf-info-grid {
        grid-template-columns: 1fr;
    }

    .sf-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sf-quote-rotator {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .sf-hero h1 {
        font-size: 1.8rem;
    }

    .sf-section {
        padding: 40px 20px;
    }
}


/* ============================================
   v2.0.0 — Parish-site pattern components
   (photographic hero cards, page banners,
   quick links, life band, safeguarding band)
   Palette and typography unchanged.
   ============================================ */

/* Photographic hero cards */
.sf-hero-cards {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 6px;
    min-height: 380px;
}
.sf-hero-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    background-color: var(--sf-navy);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    min-height: 180px;
}
.sf-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,36,64,0.85) 0%, rgba(15,36,64,0.1) 55%);
}
.sf-hero-card-caption {
    position: relative;
    z-index: 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sf-hero-kicker {
    font-family: var(--sf-ui-font);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--sf-gold-light);
}
.sf-hero-title {
    font-family: var(--sf-heading-font);
    font-size: 1.35rem;
    color: var(--sf-white);
}
.sf-hero-card-lead .sf-hero-title { font-size: 2rem; }
.sf-hero-cta {
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    color: var(--sf-stone);
}
.sf-hero-card:hover .sf-hero-cta { color: var(--sf-gold-light); }
@media (max-width: 900px) {
    .sf-hero-cards { grid-template-columns: 1fr 1fr; }
    .sf-hero-card-lead { grid-column: 1 / -1; }
}

/* Inner page banner */
.sf-page-banner {
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    background-color: var(--sf-navy);
    background-size: cover;
    background-position: center;
    position: relative;
}
.sf-page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,36,64,0.8), rgba(15,36,64,0.05) 60%);
}
.sf-page-banner h1 {
    position: relative;
    z-index: 1;
    color: var(--sf-white);
    padding: 28px;
    margin: 0;
    max-width: var(--sf-content-width);
}

/* Quick links row */
.sf-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--sf-navy-dark);
}
.sf-quicklinks .sf-btn { letter-spacing: 0.1em; font-size: 0.85rem; }

/* Life band */
.sf-life-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.sf-life-card {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    background-color: var(--sf-slate);
    background-size: cover;
    background-position: center;
    text-decoration: none;
}
.sf-life-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,36,64,0.85), rgba(15,36,64,0.05) 55%);
}
.sf-life-caption {
    position: relative;
    z-index: 1;
    padding: 16px;
    color: var(--sf-white);
    display: flex;
    flex-direction: column;
}
.sf-life-caption strong {
    font-family: var(--sf-ui-font);
    text-transform: uppercase; /* v3.11.0: the labels are written in sentence case and shown in capitals */
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--sf-gold-light);
}
.sf-life-caption span { font-family: var(--sf-heading-font); font-size: 1.02rem; }
@media (max-width: 900px) { .sf-life-band { grid-template-columns: 1fr 1fr; } }

/* Link strip and read-more */
.sf-link-strip { text-align: center; margin-top: 28px; font-family: var(--sf-ui-font); }
.sf-readmore {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--sf-gold-dark);
}

/* Safeguarding band */
.sf-safeguarding-band {
    background: var(--sf-stone);
    padding: 40px 20px;
    text-align: center;
}
.sf-safeguarding-band h2 { margin-top: 0; }

/* Incumbent welcome */
.sf-incumbent-welcome {
    border-left: 4px solid var(--sf-gold);
    margin: 0 0 24px;
    padding: 12px 20px;
    background: var(--sf-parchment);
    font-style: italic;
}
.sf-incumbent-welcome cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sf-ui-font); font-size: 0.85rem; }

/* Bells table */
.sf-bells-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.sf-bells-table th, .sf-bells-table td {
    border: 1px solid var(--sf-stone);
    padding: 10px 14px;
    text-align: left;
}
.sf-bells-table th { background: var(--sf-parchment); font-family: var(--sf-ui-font); }

/* Archive list */
.sf-archive-list { list-style: none; padding: 0; }
.sf-archive-list li { padding: 8px 0; border-bottom: 1px solid var(--sf-stone); }

/* Responsive video embed */
.sf-video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 18px 0; }
.sf-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* v2.0.3 — original fonts restored; body text enlarged for readability */
body {
    font-family: var(--sf-body-font);
    font-size: 1.15rem;
    line-height: 1.75;
}

/* Homepage welcome: start the media column level with the body text */
.sf-two-col { align-items: start; }
.sf-welcome-media { margin-top: 4.6rem; }
@media (max-width: 900px) { .sf-welcome-media { margin-top: 0; } }


/* ============================================
   v3.0.0 (17 November 2026): accessibility layer
   WCAG 2.2 AA fixes from the 17 November 2026
   review. Layout, palette and typography are
   otherwise unchanged: where a colour failed, the
   fix keeps the gold and changes what sits on it.
   ============================================ */

:root {
    /* Gold for text on white or parchment: 5.86:1 on white, 5.14:1 on
       parchment (the brand gold is 2.6:1 on white). */
    --sf-gold-text: #7E6024;
    /* Slate darkened from #6B7D8E (4.24:1 on white, a fail) to 5.56:1. */
    --sf-slate: #5A6A7A;
    /* Light text for the footer's small print: 10.1:1 on navy-dark. */
    --sf-footer-quiet: #C9D1D9;
    /* Form field borders: 4.93:1 on white (1.4.11 asks 3:1). */
    --sf-field-border: #6B7178;
}

/* Gold text on light backgrounds */
a:hover,
a:focus { color: var(--sf-gold-text); }
.sf-nav ul li a:hover,
.sf-nav ul li a:focus,
.sf-nav ul li.current-menu-item > a,
.sf-nav ul li.current_page_item > a,
.sf-nav ul li.current-menu-ancestor > a { color: var(--sf-gold-text); }
.sf-card-meta { color: var(--sf-gold-text); font-size: 0.875rem; }
.sf-readmore { color: var(--sf-gold-text); }

/* Strapline on the navy hero: light gold, 5.49:1 */
.sf-hero .sf-strapline { color: var(--sf-gold-light); }

/* Buttons: white on gold was 2.6:1; navy-dark on gold is 5.79:1 */
.sf-btn-primary {
    background-color: var(--sf-gold);
    color: var(--sf-navy-dark);
}
.sf-btn-primary:hover,
.sf-btn-primary:focus {
    background-color: var(--sf-gold-light);
    color: var(--sf-navy-dark);
}

/* Call-to-action band: same gold, dark text */
.sf-cta-banner,
.sf-cta-banner h2,
.sf-cta-banner p { color: var(--sf-navy-dark); }
.sf-cta-banner p { opacity: 1; }
.sf-cta-banner .sf-btn-secondary {
    border-color: var(--sf-navy-dark);
    color: var(--sf-navy-dark);
}
.sf-cta-banner .sf-btn-secondary:hover,
.sf-cta-banner .sf-btn-secondary:focus {
    background-color: var(--sf-navy-dark);
    color: var(--sf-gold-light);
}

/* Links in running text are underlined, not told apart by colour alone (1.4.1) */
.site-content p a:not([class]),
.site-content li a:not([class]),
.site-content td a:not([class]),
.sf-footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Footer: column headings are h2 since v3.0.0, styled as the v2 h4s */
.site-footer .sf-footer-heading {
    font-family: var(--sf-ui-font);
    color: var(--sf-gold);
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1em;
}
.sf-footer-bottom {
    color: var(--sf-footer-quiet);
    font-size: 0.9rem;
}
.sf-footer-bottom a { color: var(--sf-footer-quiet); }
.sf-footer-bottom a:hover,
.sf-footer-bottom a:focus { color: var(--sf-gold-light); }

/* Smallest text no smaller than 14px */
.sf-quote-slide cite,
.sf-pullquote cite { font-size: 0.875rem; }
.sf-nav ul ul li a { font-size: 0.85rem; }

/* Visible keyboard focus (2.4.7) */
:focus-visible {
    outline: 3px solid var(--sf-navy);
    outline-offset: 2px;
}
.site-footer :focus-visible,
.sf-hero :focus-visible,
.sf-quicklinks :focus-visible { outline-color: var(--sf-parchment); }
.sf-hero-card:focus-visible,
.sf-life-card:focus-visible {
    outline: 3px solid var(--sf-parchment);
    outline-offset: -6px;
}
.sf-cta-banner :focus-visible { outline-color: var(--sf-navy-dark); }
/* The content area takes focus from the skip link; it is not a control */
#content:focus { outline: none; }

/* Form fields: a border that can be seen, and focus that is not hidden */
.sf-contact-form input,
.sf-contact-form textarea,
.sf-contact-form select { border-color: var(--sf-field-border); }
.sf-contact-form input:focus,
.sf-contact-form textarea:focus,
.sf-contact-form select:focus {
    outline: 3px solid var(--sf-navy);
    outline-offset: 1px;
    border-color: var(--sf-navy);
}

/* Skip link and screen-reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 0;
    position: fixed !important;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 12px 18px;
    background: var(--sf-white);
    color: var(--sf-navy);
    font-family: var(--sf-ui-font);
    font-weight: bold;
    text-decoration: none;
    outline: 3px solid var(--sf-navy);
}

/* Primary menu: sub-menus open from the keyboard (2.1.1) */
.sf-nav li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.sf-nav li.menu-item-has-children > ul { flex-basis: 100%; }
.sf-nav ul li.sf-open > ul { display: flex; }
/* Without the script (sf-js is added by sf-theme.js), focus still opens them */
.sf-nav:not(.sf-js) ul li:focus-within > ul { display: flex; }
/* Escape closes a sub-menu even while the pointer rests on it (1.4.13) */
.sf-nav ul li.sf-dismissed:hover > ul { display: none; }

.sf-submenu-toggle {
    background: none;
    border: none;
    margin: 0;
    padding: 10px 6px;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sf-navy);
    cursor: pointer;
    line-height: inherit;
}
.sf-submenu-toggle.sf-submenu-parent { padding: 10px 14px; }
.sf-submenu-toggle::after {
    content: "\25BE";
    content: "\25BE" / "";
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
}
.sf-submenu-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.sf-submenu-toggle:hover,
.sf-submenu-toggle:focus { color: var(--sf-gold-text); }
.sf-nav li.menu-item-has-children > a { padding-right: 2px; }

@media (max-width: 768px) {
    /* Sub-menus sit in the flow of the opened phone menu, closed until asked */
    .sf-nav.toggled ul ul {
        display: none;
        position: static;
        box-shadow: none;
        border: 0;
        min-width: 0;
        width: 100%;
        padding-left: 16px;
    }
    .sf-nav.toggled ul li.sf-open > ul { display: flex; }
    .sf-nav ul li:hover > ul { display: none; }
    .sf-nav.toggled ul li.sf-open:hover > ul { display: flex; }
    .sf-nav li.menu-item-has-children > a { flex: 1; }
    .sf-submenu-toggle {
        padding: 12px 15px;
        border-bottom: 1px solid var(--sf-stone);
    }
    .sf-submenu-toggle.sf-submenu-parent { flex: 1; text-align: left; }
    .sf-nav ul ul li a { white-space: normal; }
}

/* Rotating quotations: one shown at a time, with a Pause control (2.2.2) */
.sf-quote-slide[hidden],
.sf-quote-pause[hidden] { display: none; }
.sf-quote-pause {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sf-navy);
    background: var(--sf-white);
    border: 2px solid var(--sf-navy);
    border-radius: 3px;
    cursor: pointer;
}
.sf-quote-pause:hover,
.sf-quote-pause:focus {
    background: var(--sf-navy);
    color: var(--sf-white);
}

/* Seasonal banner on inner pages (inc/seasonal-banner.php). Decorative. */
.sf-seasonal-banner {
    position: relative;
    height: clamp(140px, 22vw, 300px);
    overflow: hidden;
    background-color: var(--sf-navy);
}
.sf-seasonal-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sf-seasonal-credit {
    position: absolute;
    right: 10px;
    bottom: 8px;
    padding: 2px 8px;
    font-family: var(--sf-ui-font);
    font-size: 0.8rem;
    color: var(--sf-white);
    background: rgba(15, 36, 64, 0.75);
}

/* Visitors who ask their device to reduce motion get none (2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   v3.1.0 (17 November 2026): the streamlined
   home page (front-page.php)
   ============================================ */

/* One photograph with the church's name */
.sf-home-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(320px, 42vw, 520px);
    background-color: var(--sf-navy);
    background-size: cover;
    background-position: center;
}
.sf-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 36, 64, 0.85) 0%, rgba(15, 36, 64, 0.15) 60%);
}
.sf-home-hero-caption {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--sf-content-width);
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
}
.sf-home-hero h1 {
    color: var(--sf-white);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 0 0 0.2em;
}
.sf-home-hero .sf-strapline {
    color: var(--sf-gold-light);
    font-style: italic;
    font-size: 1.3rem;
    margin: 0;
}

/* Services and events: the few event cards sit centred, not at the left of an empty grid (3.1.1) */
.sf-home-events {
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
    margin-bottom: 10px;
}

/* Three ways in. 3.12.0: plain navy panels with a gold frame, in place of the
   photographs and the shade behind the words (3.1.1), with the words larger and
   centred. The gold label is 5.49:1 on navy and the caption 11.63:1; on hover or
   focus the panel darkens to navy-dark (7.37:1 and 15.59:1). */
.sf-life-band-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sf-life-band-3 .sf-life-card {
    min-height: 200px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--sf-navy);
    border: 2px solid var(--sf-gold);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sf-life-band-3 .sf-life-card::after {
    inset: 8px;
    background: none;
    border: 1px solid rgba(212, 173, 90, 0.65);
    pointer-events: none;
}
.sf-life-band-3 .sf-life-card:hover,
.sf-life-band-3 .sf-life-card:focus-visible {
    background-color: var(--sf-navy-dark);
    border-color: var(--sf-gold-light);
}
.sf-life-band-3 .sf-life-caption {
    padding: 32px 28px;
    align-items: center;
    gap: 10px;
}
.sf-life-band-3 .sf-life-caption strong { font-size: 1rem; }
.sf-life-band-3 .sf-life-caption span {
    font-size: 1.45rem;
    line-height: 1.3;
}
@media (prefers-reduced-motion: reduce) {
    .sf-life-band-3 .sf-life-card { transition: none; }
}
@media (max-width: 900px) { .sf-life-band-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .sf-life-band-3 { grid-template-columns: 1fr; }
    .sf-life-band-3 .sf-life-card { min-height: 150px; }
    .sf-life-band-3 .sf-life-caption span { font-size: 1.3rem; }
    .sf-home-hero-caption { padding: 24px 20px; }
}

/* Safeguarding contacts: room between the lists */
.sf-section-narrow ul { margin-bottom: 1.2em; }

/* ============================================
   v3.2.0 (17 November 2026)
   A larger logo, which shrinks once the page is scrolled (assets/js/sf-theme.js);
   the Policies, Privacy Notice and Accessibility pages; the policy disclosures.
   ============================================ */

/* Header: the logo at 110px (70px before), 64px on phones (50px before) */
.sf-header-inner { padding-top: 12px; padding-bottom: 12px; transition: padding 0.25s ease; }
.sf-header-logo img { height: 110px; transition: height 0.25s ease; }
.sf-header.sf-scrolled .sf-header-inner { padding-top: 6px; padding-bottom: 6px; }
.sf-header.sf-scrolled .sf-header-logo img { height: 64px; }
@media (max-width: 768px) {
    .sf-header-logo img { height: 64px; }
    .sf-header.sf-scrolled .sf-header-logo img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .sf-header-inner, .sf-header-logo img { transition: none; }
}
/* An in-page link stops below the sticky header, not under it */
html { scroll-padding-top: 110px; }

/* Text pages: Privacy Notice, Accessibility, Policies */
.sf-document h2 { margin-top: 1.6em; }
.sf-document > h2:first-child { margin-top: 0; }
.sf-document ul, .sf-document ol { padding-left: 1.4em; }
.sf-document li { margin-bottom: 0.4em; }
.sf-document-date { margin-top: 40px; font-size: 0.9rem; color: var(--sf-slate); }

.sf-table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.sf-document table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sf-document th,
.sf-document td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--sf-stone); }
.sf-document thead th {
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sf-navy);
    border-bottom: 2px solid var(--sf-gold);
}

/* A policy: a white panel with a gold edge that opens to the full text */
.sf-policy { background: var(--sf-white); border-left: 4px solid var(--sf-gold); margin: 0 0 24px; }
.sf-policy > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
}
.sf-policy > summary::-webkit-details-marker { display: none; }
.sf-policy > summary h2 { margin: 0; font-size: 1.4rem; }
.sf-policy-hint {
    flex: none;
    font-family: var(--sf-ui-font);
    font-size: 0.95rem;
    color: var(--sf-navy-light);
    text-decoration: underline;
}
.sf-policy-hint::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}
.sf-policy[open] .sf-policy-hint { font-size: 0; }
.sf-policy[open] .sf-policy-hint::after { font-size: 0.95rem; transform: translateY(2px) rotate(-135deg); }
.sf-policy-body { padding: 0 28px 28px; }
.sf-policy-body h3 { margin-top: 1.5em; font-size: 1.2rem; }
.sf-policy-body h4 { margin-top: 1.3em; font-size: 1.05rem; color: var(--sf-navy); }
.sf-policy-pdf { margin: 0 0 20px; }

/* The policy's header block */
.sf-policy-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    margin: 0 0 24px;
    padding: 18px 22px;
    background: var(--sf-parchment);
    font-size: 0.92rem;
}
.sf-policy-meta div { display: contents; }
.sf-policy-meta dt { font-family: var(--sf-ui-font); font-weight: 700; color: var(--sf-navy); }
.sf-policy-meta dd { margin: 0; }
@media (max-width: 600px) {
    .sf-policy > summary { padding: 18px 20px; flex-wrap: wrap; }
    .sf-policy-body { padding: 0 20px 22px; }
    .sf-policy-meta { grid-template-columns: 1fr; gap: 2px; }
    .sf-policy-meta dd { margin-bottom: 8px; }
}

/* ============================================
   v3.2.2 (18 November 2026)
   A row of fewer information cards than the grid has columns fills the width
   instead of leaving an empty column at the right: the three service cards on
   Services and Events. Rows that are full, and the one-column grid on Contact
   Us, are unchanged.
   ============================================ */
.sf-info-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 768px) {
    .sf-info-grid { grid-template-columns: 1fr; }
}

/* ============================================
   v3.3.0 (18 November 2026)
   Event cards on a white section (Upcoming services and events) take the
   parchment colour and a gold top edge, so they stand out from the page as
   they do on the parchment band of the home page. The gold-text card labels
   keep a contrast of 5.1:1 on parchment.
   ============================================ */
.sf-section:not(.sf-section-parchment) .sf-event-card {
    background: var(--sf-parchment);
    border-top: 3px solid var(--sf-gold);
    box-shadow: none;
}

/* v3.3.2: the Every week and Coming up headings over the event cards on Services and Events */
.sf-events-subhead {
    font-family: var(--sf-ui-font);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sf-gold-text);
    margin: 10px 0 18px;
}
.sf-card-grid + .sf-events-subhead { margin-top: 40px; }

/* ============================================
   v3.4.0 (18 November 2026)
   Services and Events: the rest of St Faith's services behind a disclosure, and
   the services at the benefice's other churches as one small table a day.
   ============================================ */
.sf-more-events { margin-top: 28px; }
.sf-more-events > summary {
    cursor: pointer;
    display: inline-block;
    font-family: var(--sf-ui-font);
    font-size: 0.95rem;
    color: var(--sf-navy-light);
    text-decoration: underline;
    margin-bottom: 20px;
}
.sf-more-count { color: var(--sf-slate); text-decoration: none; }

.sf-benefice-days {
    /* v3.10.2: the days flow down columns, each table straight under the last, so a short
       day leaves no gap beside a long one (a grid lined the tables up in rows). */
    columns: 3 320px;
    column-gap: 28px;
    margin-top: 10px;
}
.sf-benefice-days .sf-benefice-table {
    break-inside: avoid;
    margin: 0 0 22px;
}
/* The column headings are the same for every day: their words are kept for screen readers (a hidden span
   inside each th, v3.11.0, so the table keeps its header cells in every browser) and the row takes no space. */
.sf-benefice-days .sf-benefice-table thead th { padding: 0; border: 0; line-height: 0; }
.sf-benefice-days .sf-benefice-table td { padding: 6px 10px; }
.sf-benefice-days .sf-benefice-table tbody tr:first-child td { border-top: 2px solid var(--sf-stone); }
.sf-benefice-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sf-white);
    font-size: 0.95rem;
}
.sf-benefice-table caption {
    text-align: left;
    font-family: var(--sf-ui-font);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sf-gold-text);
    padding: 0 0 8px;
}
.sf-benefice-table th,
.sf-benefice-table td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--sf-stone); }
.sf-benefice-table thead th {
    font-family: var(--sf-ui-font);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sf-navy);
    border-bottom: 2px solid var(--sf-stone);
}
.sf-benefice-table td:nth-child(2) { white-space: nowrap; }
/* v3.9.0: a church's name stays on one line (Preston-on-Wye broke at its hyphens). */
.sf-benefice-table td:first-child { white-space: nowrap; }
@media (max-width: 400px) { .sf-benefice-table td, .sf-benefice-table td:first-child, .sf-benefice-table td:nth-child(2) { white-space: normal; } } /* v3.11.0: no sideways scrolling at 320px */
.sf-benefice-credit { margin-top: 24px; font-size: 0.9rem; color: var(--sf-slate); text-align: center; }

/* ============================================
   v3.5.0 (18 November 2026)
   Support St Faith's: the running costs from the
   PCC's budget (inc/running-costs.php). One hue
   for the cost bars, largest first; the gold
   meter is what giving covers against the aim of
   100%. Text on the parchment: slate 4.88:1, gold
   text 5.14:1; the meter's fill 3.30:1 on its
   track.
   ============================================ */
.sf-costs-lead { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.sf-costs {
    background: var(--sf-parchment);
    border-top: 3px solid var(--sf-gold);
    padding: 28px 28px 22px;
    margin: 0 0 40px;
}
.sf-costs h3 {
    font-family: var(--sf-heading-font);
    color: var(--sf-navy);
    font-weight: normal;
    font-size: 1.2rem;
    margin: 28px 0 10px;
}
.sf-costs p { margin: 0 0 10px; }
.sf-costs .sf-costs-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.sf-costs-hero-value {
    font-family: var(--sf-ui-font);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--sf-navy);
}
.sf-costs-hero-label { color: var(--sf-slate); }
.sf-costs ul.sf-costs-rows { list-style: none; margin: 0; padding: 0; }
.sf-costs ul.sf-costs-rows li {
    display: grid;
    grid-template-columns: minmax(0, 15rem) 1fr 4.75rem;
    align-items: center;
    gap: 4px 14px;
    margin: 0;
    padding: 6px 0;
}
.sf-costs-name { line-height: 1.35; }
.sf-costs-name small { display: block; font-size: 0.82rem; color: var(--sf-slate); }
.sf-costs-bar { height: 12px; background: #E3E0D8; border-radius: 0 4px 4px 0; }
.sf-costs-bar span { display: block; height: 100%; background: var(--sf-navy); border-radius: 0 4px 4px 0; }
.sf-costs-amount,
.sf-costs-meter-row strong { font-family: var(--sf-ui-font); font-weight: 700; color: var(--sf-navy); }
.sf-costs-amount { text-align: right; font-variant-numeric: tabular-nums; }
.sf-costs .sf-costs-meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.sf-costs-meter { height: 12px; border-radius: 6px; background: #EFE4CC; overflow: hidden; }
.sf-costs-meter span { display: block; height: 100%; border-radius: 6px; background: #9C7630; }
.sf-costs .sf-costs-aim {
    text-align: right;
    font-family: var(--sf-ui-font);
    font-size: 0.85rem;
    color: var(--sf-gold-text);
    margin: 4px 0 12px;
}
.sf-costs .sf-costs-note {
    font-size: 0.85rem;
    color: var(--sf-slate);
    border-top: 1px solid var(--sf-stone);
    padding-top: 12px;
    margin: 22px 0 0;
}
/* Card grids whose template fixes the columns inline (two on Support
   St Faith's, two elsewhere) kept them on phones, the inline style
   outranking the one-column rule at 768px; they now fall to one column
   like the rest. */
@media (max-width: 768px) {
    .sf-card-grid[style] { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
    .sf-costs { padding: 22px 16px 18px; }
    .sf-costs-hero-value { font-size: 2.75rem; }
    .sf-costs ul.sf-costs-rows li { grid-template-columns: 1fr auto; padding: 8px 0; }
    .sf-costs-bar { grid-column: 1 / -1; grid-row: 2; }
    .sf-costs-amount { grid-column: 2; grid-row: 1; align-self: start; }
}

/* ============================================
   v3.6.0 (18 November 2026)
   The front page's photograph from the vault
   (the front line of Seasonal-Banner.md): the
   1,200 px copy on narrow screens, the 2,400 px
   copy from 900 px up. Its credit sits bottom
   right, above the shading.
   ============================================ */
.sf-home-hero-front { background-image: var(--sf-hero-sm); }
@media (min-width: 900px) {
    .sf-home-hero-front { background-image: var(--sf-hero-lg); }
}
.sf-home-hero .sf-home-hero-credit { z-index: 1; }

/* ============================================
   v3.8.0 (18 November 2026)
   Inner pages: the page's photograph behind its
   title band, like the front page, in place of
   the thin strip above it. The 1,200 px copy on
   narrow screens, the 2,400 px copy from 900 px.
   The shading is darkest behind the title.
   ============================================ */
.sf-has-page-photo .sf-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    min-height: clamp(280px, 36vw, 480px);
    padding: 64px 40px 44px !important;
    background-color: var(--sf-navy);
    background-image: var(--sf-page-photo-sm);
    background-size: cover;
    background-position: var(--sf-page-photo-pos, 50% 50%);
}
@media (min-width: 900px) {
    .sf-has-page-photo .sf-hero { background-image: var(--sf-page-photo-lg); }
}
.sf-has-page-photo .sf-hero::before {
    background: linear-gradient(to top, rgba(15, 36, 64, 0.88) 0%, rgba(15, 36, 64, 0.6) 45%, rgba(15, 36, 64, 0.2) 100%);
}
.sf-has-page-photo .sf-hero::after {
    content: var(--sf-page-credit, none);
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 8px;
    font-family: var(--sf-ui-font);
    font-size: 0.8rem;
    color: var(--sf-white);
    background: rgba(15, 36, 64, 0.75);
}
@media (max-width: 600px) {
    .sf-has-page-photo .sf-hero { padding: 48px 20px 40px !important; }
}

/* ============================================
   v3.11.0 (18 November 2026): accessibility review of 18 November.
   ============================================ */
/* The title over a banner photograph sits on a navy panel, so the gold strapline keeps 4.5:1 and the title 7:1
   whatever the week's photograph (0.86 navy over white measures 4.76:1 for the gold); the rest of the
   photograph keeps its light gradient. */
.sf-has-page-photo .sf-hero .sf-hero-content,
.sf-home-hero-title {
    background: rgba(15, 36, 64, 0.86);
    border-radius: 4px;
    padding: 16px 24px 18px;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
}
.sf-has-page-photo .sf-hero .sf-hero-content { margin: 0 auto; }
.sf-has-page-photo .sf-hero .sf-strapline,
.sf-home-hero-title .sf-strapline { margin-bottom: 0; }
@media (max-width: 600px) {
    .sf-has-page-photo .sf-hero .sf-hero-content, .sf-home-hero-title { padding: 12px 16px 14px; }
}
/* The banner credit is drawn by CSS on inner pages and is now silent to screen readers (alternative text ""),
   like the home page's, which is hidden with aria-hidden: it credits a decorative picture they do not hear. */
@supports (content: "x" / "") {
    .sf-has-page-photo .sf-hero::after { content: var(--sf-page-credit, none) / ""; }
}
/* "Services and events" in the gold Plan your visit band: navy on gold, 5.79:1 (was 3.05:1). */
.sf-cta-banner a:not(.sf-btn) { color: var(--sf-navy-dark); }
/* The current page in the menu is marked by an underline as well as colour (1.4.1). */
.sf-nav ul li.current-menu-item > a,
.sf-nav ul li.current_page_item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* Long addresses and links wrap rather than push the page sideways at 320px (1.4.10). */
.site-content a, .sf-document a { overflow-wrap: anywhere; }
/* On a short window, or with the phone menu open, the header scrolls with the page, so nothing it covers
   can take focus out of sight (2.4.11, 1.4.10 at 400% zoom). */
.sf-header:has(.sf-nav.toggled) { position: relative; }
@media (max-height: 500px) { .sf-header { position: static; } }
/* Event cards: the title, now first in the reading order and an h4 on Services and Events, keeps its look,
   and the date line is still shown above it. */
.sf-event-card .sf-card-body { display: flex; flex-direction: column; }
.sf-event-card .sf-card-meta { order: -1; }
.sf-event-card .sf-event-title { font-size: 1.3rem; margin-bottom: 0.4em; }

