﻿/* Base */
:root {
    --color-bg: #fdf7ef;
    --color-cream: #fff9f1;
    --color-gold: #d9a441;
    --color-gold-soft: #e7c06a;
    --color-charcoal: #2f3136;
    --color-text: #222222;
    --color-muted: #666666;
    --font-serif: "Georgia", "Times New Roman", serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

body.site-alert-active {
    padding-top: var(--site-alert-height, 0px);
}

h1, h2, h3 {
    font-family: var(--font-serif);
    margin: 0 0 0.5em;
}

/* Layout helpers */
.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

    .section-heading p {
        color: var(--color-muted);
    }

/* Header */
.site-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    color: #ffffff;
    background: #385d7a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.site-alert--important { background: #8a5a00; }
.site-alert--emergency { background: #9f2525; }

.site-alert__inner {
    max-width: 1100px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.site-alert__content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.65rem;
    text-align: center;
}

.site-alert__title { font-family: var(--font-serif); }

.site-alert__link {
    color: inherit;
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.site-alert__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.site-alert__link:focus-visible,
.site-alert__close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.site-alert-active .site-header {
    top: var(--site-alert-height, 0px);
}

/* Expanded alert shown in place of the Events carousel. */
.events-hero.events-hero--announcement {
    padding: 2rem 1.5rem;
}

.event-announcement {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-top: 8px solid #385d7a;
    border-radius: var(--radius-md);
    background: var(--color-cream);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.event-announcement--important { border-color: #8a5a00; }
.event-announcement--emergency { border-color: #9f2525; }

.event-announcement__eyebrow {
    margin: 0 0 0.5rem;
    color: #385d7a;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-announcement--important .event-announcement__eyebrow { color: #704900; }
.event-announcement--emergency .event-announcement__eyebrow { color: #9f2525; }

.event-announcement__title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.event-announcement__message {
    margin: 0.5rem auto;
    max-width: 65ch;
    font-size: 1.15rem;
    font-weight: 700;
}

.event-announcement__details {
    margin: 1rem auto 0;
    max-width: 70ch;
    white-space: pre-line;
}

.event-announcement__link {
    margin-top: 1.25rem;
    color: #ffffff;
    background: var(--color-charcoal);
}

.event-announcement__link:focus-visible {
    outline: 3px solid var(--color-charcoal);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 247, 239, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-charcoal);
    text-decoration: none;
}

.brand__logo {
    width: 32px;
    height: 32px;
    background-image: url("assets/pmckc-sunflower.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.brand__name {
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav__link {
    text-decoration: none;
    color: var(--color-charcoal);
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-gold);
    color: #fff;
}

.btn--secondary {
    background: var(--color-charcoal);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

/* Hero */
.hero {
    margin-top: 60px;
    position: relative;
    min-height: 70vh;
    padding: 8rem 1.5rem 4rem;
    color: #fff;

    /* remove background-image entirely */
    overflow: hidden; /* keeps image clean inside the hero */
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* identical behavior to background-size: cover */
    z-index: -1;       /* puts the image behind your hero text */
}


.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(47, 49, 54, 0.6), rgba(253, 247, 239, 0.4) );
}

.hero__content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: 2.6rem;
}

.hero__tagline {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Welcome */
.welcome {
    padding: 4rem 1.5rem;
    background: var(--color-cream);
}

.welcome__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.welcome__text p {
    color: var(--color-muted);
}

.welcome__image {
    min-height: 220px;
    border-radius: var(--radius-md);
    background: url("welcome-image.jpg") center/cover no-repeat;
    box-shadow: var(--shadow-soft);
}

/* Info bar */
.info-bar {
    padding: 2.5rem 1.5rem;
    background: var(--color-gold-soft);
    color: #222;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-bar__item {
    min-width: 200px;
}

.info-bar__label {
    display: block;
    font-weight: 600;
}

.info-bar__value {
    display: block;
}

.info-bar__link {
    display: inline-block;
    margin-top: 0.3rem;
    color: var(--color-charcoal);
}
/* directions button */

.pmc-directions-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-charcoal); /* Deep PMC blue */
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.15s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.pmc-directions-btn:hover {
  background-color: #1F3A52; /* Slightly darker hover */
  transform: translateY(-2px);
}

.pmc-directions-btn:active {
  transform: translateY(0);
}

/* Ministries */
.ministries {
    padding: 4rem 1.5rem;
}

.ministries__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card__title {
    margin-bottom: 0.5rem;
}

.card__text {
    color: var(--color-muted);
    margin-bottom: 0.8rem;
}

.card__link {
    font-size: 0.9rem;
    color: var(--color-charcoal);
}

/* Sermons */
.sermons {
    padding: 4rem 1.5rem;
    background: var(--color-cream);
}

.sermons__featured {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.sermons__media {
    min-height: 220px;
    border-radius: var(--radius-md);
    background: #000;
}

.sermons__meta {
    color: var(--color-muted);
}

/* Sermons page */
.sermons-page {
    padding-top: 60px;
}

.sermons-intro {
    padding: 4.5rem 1.5rem 3rem;
    background: var(--color-cream);
    text-align: center;
}

.sermons-intro h1 {
    color: var(--color-charcoal);
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.sermons-intro > p:last-child {
    max-width: 670px;
    margin: 0.75rem auto 0;
    color: var(--color-muted);
}

.sermons-intro__eyebrow,
.sermon-archive__eyebrow {
    margin: 0 0 0.5rem;
    color: #8a641e !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-service {
    max-width: 1040px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.live-service__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.live-service__heading h2,
.live-service__heading p {
    margin-bottom: 0;
}

.live-service__heading > p {
    color: var(--color-muted);
    font-weight: 600;
}

.live-service__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8f2f25;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.live-service__label span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b83228;
    box-shadow: 0 0 0 4px rgba(184, 50, 40, 0.13);
}

.live-player {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #3e4147;
    border-radius: var(--radius-md);
    background: #202226;
    box-shadow: var(--shadow-soft);
}

.live-player__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-service__note {
    margin: 0.9rem 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    text-align: center;
}

.sermon-archive {
    padding: 4.5rem 1.5rem 5rem;
    background: var(--color-cream);
}

.sermon-archive .section-heading {
    margin-bottom: 1.75rem;
}

.sermon-archive .section-heading > p:last-child {
    margin-bottom: 0;
}

.sermon-archive__coming-soon {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px dashed #c7a35d;
    border-radius: var(--radius-md);
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.sermon-archive__coming-soon h3 {
    font-size: 1.75rem;
}

.sermon-archive__coming-soon p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--color-muted);
}

.sermon-archive__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f8e8c6;
    color: #765114;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
}

/* Events */
.events {
    padding: 4rem 1.5rem;
}

.events-hero {
    width: 100%;
    margin-top: 0;
    padding: 1rem 1.5rem;
    text-align: center;
}

/* Reduce the gap before Upcoming Events */
.events-hero + .events {
    padding-top: 1.5rem;
}

.events__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.event-card__date {
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.4rem;
}

.event-card__text {
    color: var(--color-muted);
}

.event-card__link {
    font-size: 0.9rem;
    color: var(--color-charcoal);
}

.events__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.event-carousel-wrapper {
    width: 75vw;              /* hero size */
    max-width: 1100px;
    margin: 0 auto;
}

.event-carousel-wrapper .carousel {
    width: 100% !important;   /* THIS is the missing piece */
}

.event-carousel-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

#event_heading {
    margin-top: 3.6rem;
    text-align: center;
    margin-bottom: 2rem;
}


/* Giving */
.giving {
    padding: 4rem 1.5rem;
    background: var(--color-gold-soft);
}

.giving__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

    .giving__inner p {
        color: #222;
        margin-bottom: 1.5rem;
    }

/* Footer */
.site-footer {
    background: var(--color-charcoal);
    color: #fff;
    padding: 3rem 1.5rem 1.5rem;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.site-footer__identity {
    max-width: 520px;
}

.site-footer__name {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-footer__legal-name {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.55;
}

.site-footer__legal-name strong {
    color: #fff;
    font-weight: 600;
}

.site-footer__address {
    margin: 0;
    font-style: normal;
    line-height: 1.55;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem 1.5rem;
    max-width: 520px;
}

.site-footer__contact-link {
    flex-basis: 100%;
    text-align: right;
}

.footer__link,
.footer__link:visited,
.footer__link:active {
    color: #fff;
    font-weight: 600;
    text-decoration-color: transparent;
    text-underline-offset: 0.25em;
    font-size: 0.95rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer__link:hover {
    color: var(--color-gold-soft);
    text-decoration-color: currentColor;
}

.footer__link:focus-visible {
    outline: 2px solid var(--color-gold-soft);
    outline-offset: 4px;
}

.site-footer__copyright {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

/* Contact page */
.contact-page {
    padding-top: 60px;
    background: var(--color-bg);
}

.contact-intro {
    padding: 4.5rem 1.5rem 2.5rem;
    text-align: center;
    background: var(--color-cream);
}

.contact-intro h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--color-charcoal);
}

.contact-intro p:last-child {
    max-width: 660px;
    margin: 0.75rem auto 0;
    color: var(--color-muted);
}

.contact-intro__eyebrow {
    margin: 0 0 0.5rem;
    color: #8a641e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-section {
    padding: 3.5rem 1.5rem 4.5rem;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border-top: 5px solid var(--color-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.form-field {
    margin: 0 0 1.75rem;
}

.form-field label,
.form-fieldset legend {
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
    font-weight: 700;
}

.field-optional,
.field-hint {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.field-required {
    color: #8f2f25;
}

.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #aaa;
    border-radius: var(--radius-sm);
    background: #fffdf9;
    color: var(--color-text);
    font: inherit;
}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
}

.form-field input[type="email"]:focus,
.form-field textarea:focus,
.radio-option:focus-within {
    outline: 3px solid rgba(217, 164, 65, 0.35);
    border-color: #9b6c15;
}

.form-fieldset {
    padding: 0;
    border: 0;
}

.field-hint {
    margin: 0 0 0.75rem;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 52px;
    margin: 0 !important;
    padding: 0.75rem;
    border: 1px solid #c9c2b8;
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    cursor: pointer;
}

.radio-option:has(input:checked) {
    border-color: var(--color-gold);
    background: #fff3d8;
}

.radio-option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-gold);
}

.textarea-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.character-counter {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.contact-form__submit {
    min-width: 160px;
    border: 0;
    font-weight: 700;
}

.contact-form__submit:hover {
    background: #bd8420;
    color: #fff;
}

.form-status {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: #eef6e9;
    color: #315522;
}

.giving-preview {
    scroll-margin-top: 76px;
    padding: 0 1.5rem 4.5rem;
}

.giving-preview__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.25rem);
    border: 1px solid #dfc998;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #fffaf1, #f6e3b9);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.giving-preview__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--color-charcoal);
    color: var(--color-gold-soft);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.giving-preview__eyebrow {
    margin: 0 0 0.4rem;
    color: #765114;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.giving-preview h2 {
    color: var(--color-charcoal);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.giving-preview__inner > p:not(.giving-preview__eyebrow):not(.giving-preview__note) {
    max-width: 570px;
    margin: 0.75rem auto 1.5rem;
    color: #4f4f4f;
}

.giving-preview__button,
.giving-preview__button:disabled {
    border-color: #9b762f;
    background: #e4d2aa;
    color: #5f512f;
    cursor: not-allowed;
    font-weight: 700;
    opacity: 1;
}

.giving-preview__note {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.82rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero {
        padding-top: 7rem;
    }

    .hero__title {
        font-size: 2.1rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .welcome__inner,
    .sermons__featured {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 2.25rem 1.25rem 1.25rem;
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 1.75rem;
    }

    .site-footer__nav {
        justify-content: flex-start;
        gap: 0.75rem 1.25rem;
    }

    .site-footer__contact-link {
        text-align: left;
    }

    .site-footer__copyright {
        margin-top: 1.75rem;
    }

    .contact-intro {
        padding-top: 3.5rem;
    }

    .contact-section {
        padding: 2rem 1rem 3rem;
    }

    .giving-preview {
        padding: 0 1rem 3rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .sermons-intro {
        padding-top: 3.5rem;
    }

    .live-service {
        padding: 3rem 1rem;
    }

    .live-service__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sermon-archive {
        padding: 3.5rem 1rem;
    }

/* Tabbing for paragraphs */
    .indent-sm {
         text-indent: 1em; 
     }
    .indent-md { 
        text-indent: 2em; 
    }
    .indent-lg {
        text-indent: 3em; 
    }


}

/* Event count dropdown */
.events__controls {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#eventLimit {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--color-gold);
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
    border-radius: var(--radius-sm);
    padding: 0.5rem 2.25rem 0.5rem 0.85rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;

    /* Charcoal dropdown arrow */
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-charcoal) 50%),
        linear-gradient(135deg, var(--color-charcoal) 50%, transparent 50%);
    background-position:
        right 15px center,
        right 10px center;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

#eventLimit:hover {
    background-color: var(--color-gold-soft);
}

#eventLimit:focus-visible {
    outline: 2px solid var(--color-charcoal);
    outline-offset: 3px;
}

/* Responsive header navigation */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-charcoal);
    border-radius: var(--radius-sm);
    background: var(--color-gold);
    color: var(--color-charcoal);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-toggle:focus-visible,
.site-header .nav__link:focus-visible {
    outline: 2px solid var(--color-charcoal);
    outline-offset: 3px;
}



@media (max-width: 900px) {
    .site-alert__inner {
        padding: 0.6rem 1rem;
        justify-content: space-between;
    }

    .site-alert__content {
        display: block;
        text-align: left;
    }

    .site-alert__title,
    .site-alert__message {
        display: block;
    }

    .site-alert__link { display: inline-block; }

    .site-header__inner {
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .site-header .brand { min-width: 0; }
    .site-header .brand__logo { flex-shrink: 0; }
    .site-header .brand__name {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .nav-toggle:not([hidden]) { display: inline-flex; }

    .site-header.nav-ready .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.25rem;
        padding: 1rem;
        max-height: calc(100vh - 76px);
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        background: var(--color-cream);
        box-shadow: var(--shadow-soft);
    }

    .site-header.nav-ready .nav.is-open { display: flex; }
    .site-header .nav__link {
        display: block;
        padding: 0.75rem 1rem;
        }
    }

/* Church calendar */
.calendar-site {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Inter", system-ui, sans-serif;
    --calendar-gold: #e8b22a;
    --calendar-charcoal: #1a1a1a;
    --calendar-cream: #f7f3e8;
    --calendar-wheat: #ede3c4;
    color: var(--calendar-charcoal);
    background: var(--calendar-cream);
}

.calendar-page {
    padding: calc(var(--site-alert-height, 0px) + clamp(5.5rem, 10vw, 8rem)) 0 clamp(3rem, 7vw, 6rem);
}

.calendar-page__inner {
    width: min(calc(100% - 2rem), 1100px);
    margin-inline: auto;
}

.calendar-page__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-top: 4px solid var(--calendar-gold);
    color: var(--calendar-charcoal);
    background: var(--calendar-wheat);
}

.calendar-page h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.calendar-download a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: .75rem 1.15rem;
    border-radius: 2px;
    color: var(--calendar-charcoal);
    background: var(--calendar-gold);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.calendar-download a:hover,
.calendar-download a:focus-visible {
    background: #f2c34e;
}

.calendar-download a:focus-visible {
    outline: 2px solid var(--calendar-charcoal);
    outline-offset: 3px;
}

.calendar-download p {
    max-width: 38ch;
    margin: .65rem 0 0;
    color: #5e5a51;
    font-size: .85rem;
}

.calendar-page iframe {
    display: block;
    width: 100%;
    height: clamp(500px, 72vh, 760px);
    border: 1px solid #d9d1bf;
    border-top: 0;
    background: #fffdf8;
    box-shadow: var(--shadow-soft);
}
