/* ==========================================================================
   Calvary Commission Intl. — styles.css
   Mobile-first. Bootstrap 5.3 provides the grid and components; this file
   provides brand tokens, layout and custom components only.
   ========================================================================== */

/* --- Webfont: Newsreader (self-hosted, variable) --------------------------
   One display serif on every OS, instead of a system stack that resolves to
   Iowan on macOS, Palatino on Windows and Times elsewhere. Latin + latin-ext
   subsets; SIL OFL (see assets/fonts/OFL.txt). Preloaded in
   includes/header.php so the first heading does not flash. The single file
   carries the whole 400-700 weight axis, so nothing is faux-bolded. */
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/newsreader-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/newsreader-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
    /* Brand palette */
    --cc-green-900: #12301F;
    --cc-green-700: #1E4D33;
    --cc-green-500: #2E6B45;
    --cc-maroon-700: #7A2230;
    --cc-maroon-900: #4F1620;
    --cc-ink: #1B1B1B;
    --cc-muted: #55605A;
    --cc-white: #FFFFFF;
    --cc-cream: #F6F4EF;
    --cc-line: #DEDAD2;
    --cc-focus: #F2B705;

    /* The book-specific caution yellow — measured from the Watch Your Step
       cover itself. It is the book's motif, not a site-wide accent. */
    --cc-caution: #FBC82F;

    /* Giving Tuesday band: pastel gold, a warm paper tone that stands apart
       from the maroon Jubilee band above it. Ink and maroon text on it are
       11:1 and 8:1 respectively. */
    --cc-gold-100: #F6DFA2;
    --cc-gold-300: #E7CB85;

    /* Text on dark brand bands (green-900 / maroon-900).
       --cc-on-dark-muted is ~10:1 on --cc-green-900, so body copy stays legible. */
    --cc-on-dark: #F4F7F5;
    --cc-on-dark-muted: #D8E2DB;
    --cc-on-dark-accent: #E9C9A0;

    /* Type */
    --cc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --cc-font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

    /* Spacing scale */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    --radius: .5rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px rgba(18, 48, 31, .08);
    --shadow-md: 0 6px 20px rgba(18, 48, 31, .12);
    --touch: 44px;

    --cc-header-h: 72px;
    /* The pinned top stack (header + the announcement bands). main.js measures
       the real height; this is the pre-JS guess, in the same spirit as
       --cc-header-h. */
    --cc-topbar-h: 12rem;
}

/* --- Base ----------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.cc-body {
    font-family: var(--cc-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cc-ink);
    background: var(--cc-white);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cc-font-display);
    color: var(--cc-green-900);
    line-height: 1.2;
    letter-spacing: -.01em;
}

p { margin-bottom: 1rem; }

/* Visible focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--cc-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.cc-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.cc-skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 2000;
    background: var(--cc-green-900);
    color: var(--cc-white);
    padding: var(--space-3) var(--space-5);
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    transition: top .15s ease-in-out;
}
.cc-skip-link:focus {
    top: 0;
    color: var(--cc-white);
}

/* --- Header / navigation -------------------------------------------------- */
/* The header and the announcement bands stick together as ONE stack at the top
   of the viewport, so page content is pushed down by all of them and none of
   them can be scrolled away. --cc-topbar-h is measured by main.js and drives the
   hero cap and scroll-margin-top, so the fold and in-page anchors both land
   clear of the stack. */
.cc-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.cc-header {
    background: var(--cc-white);
    border-bottom: 1px solid var(--cc-line);
}

.cc-navbar { padding-block: var(--space-2); }

.cc-brand { display: inline-flex; align-items: center; }
.cc-logo { height: 44px; width: auto; }
@media (min-width: 992px) {
    .cc-logo { height: 52px; }
}

.cc-nav .nav-link {
    color: var(--cc-green-900);
    font-weight: 600;
    padding: var(--space-3) var(--space-3);
    min-height: var(--touch);
    display: flex;
    align-items: center;
}
.cc-nav .nav-link:hover,
.cc-nav .nav-link:focus { color: var(--cc-maroon-700); }
.cc-nav .nav-link.active { color: var(--cc-maroon-700); }

.cc-dropdown { border: 1px solid var(--cc-line); }
.cc-dropdown .dropdown-item { min-height: var(--touch); display: flex; align-items: center; }
.cc-dropdown .dropdown-item:focus,
.cc-dropdown .dropdown-item:hover { background: var(--cc-cream); color: var(--cc-green-900); }

/* Custom hamburger (keeps tap target >= 44px) */
.cc-toggler {
    border: 1px solid var(--cc-line);
    border-radius: var(--radius);
    width: var(--touch);
    height: var(--touch);
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--cc-white);
}
.cc-toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cc-green-900);
}
.cc-toggler[aria-expanded="true"] .cc-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cc-toggler[aria-expanded="true"] .cc-toggler-bar:nth-child(2) { opacity: 0; }
.cc-toggler[aria-expanded="true"] .cc-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The page behind the open mobile menu must not scroll. */
html.cc-menu-open { overflow: hidden; }

@media (max-width: 991.98px) {
    .cc-nav-actions { padding-top: var(--space-3); }
    .cc-nav .nav-link { padding-inline: 0; }

    /* Instant, not Bootstrap's default height "grow". The plugin's completion
       callback still runs (it falls back to a ~5ms timer when there is no
       transition), so `show`/`collapsing` still swap cleanly. */
    .cc-navbar .collapsing { transition: none; }

    /* The open menu is a full-screen panel under the header, not an accordion
       that pushes the page down. `--cc-header-h` is kept exact by main.js; the
       padding matches the Bootstrap container so items line up with the brand
       at every width (12px is the container's own side padding). */
    .cc-navbar .navbar-collapse {
        position: fixed;
        top: var(--cc-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        background: var(--cc-white);
        padding: var(--space-4) var(--space-3) var(--space-6);
        /* Above the announcement bands, which are later siblings in the same
           pinned stack and would otherwise paint over the open menu. */
        z-index: 2;
    }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .cc-navbar .navbar-collapse {
        padding-inline: calc((100% - 540px) / 2 + var(--space-3));
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .cc-navbar .navbar-collapse {
        padding-inline: calc((100% - 720px) / 2 + var(--space-3));
    }
}

/* --- Jubilee banner (site-wide) ------------------------------------------- */
/* Sits between the header and <main>, so it is the first thing on every page.
   Maroon rather than green keeps it clear of the header and the footer band. */
.cc-jubilee {
    background: var(--cc-maroon-900);
    color: var(--cc-on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.cc-jubilee-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding-block: var(--space-2);
    text-align: center;
}
.cc-jubilee-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding-inline: .4rem;
    border: 1px solid var(--cc-on-dark-accent);
    border-radius: 999px;
    color: var(--cc-on-dark-accent);
    font-family: var(--cc-font-display);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}
.cc-jubilee-text { font-size: .95rem; line-height: 1.45; }
.cc-jubilee-text strong { color: var(--cc-white); }
/* "1977–2027" must never break at the dash. */
.cc-jubilee-years { white-space: nowrap; }
/* A block, so the link always starts its own line instead of breaking
   mid-phrase. At desktop that makes the band two lines; on a phone the
   statement above takes two, and the banner reads across three. */
.cc-jubilee-link {
    display: block;
    margin-top: .1rem;
    color: var(--cc-on-dark-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.cc-jubilee-link:hover,
.cc-jubilee-link:focus { color: var(--cc-white); }
@media (max-width: 575.98px) {
    .cc-jubilee-inner { flex-direction: column; gap: var(--space-1); }
    /* Break right before "Jubilee" rather than mid-year: drop the separator and
       start the anniversary line fresh. */
    .cc-jubilee-sep { display: none; }
    .cc-jubilee-text strong { display: block; }
}

/* --- Giving Tuesday band -------------------------------------------------- */
/* Date-windowed (GIVING_TUESDAY_START/END in config/constants.php), so the band
   appears and retires on its own. Pastel gold rather than green or maroon: it
   sits directly under the maroon Jubilee band, and gold is the one warm tone
   that separates the two without reading as a second Jubilee strip. Text is
   dark, so the band takes the green/maroon ink colours rather than the
   on-dark ones. */
.cc-givingtuesday {
    background: var(--cc-gold-100);
    color: var(--cc-green-900);
    border-bottom: 1px solid var(--cc-gold-300);
}
.cc-givingtuesday-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding-block: var(--space-3);
    text-align: center;
}
.cc-givingtuesday-text {
    font-size: .95rem;
    line-height: 1.45;
    /* Let the sentence wrap inside itself instead of pushing the button out. */
    min-width: 0;
    text-wrap: balance;
}
.cc-givingtuesday-text strong { color: var(--cc-maroon-900); }
/* The CTA is the sitewide .cc-btn / .cc-btn-give button - maroon fill, white
   text, 44px tall - not a text link. It is the loudest thing in the band and
   reserves the same height the old link did, so the strip does not grow. Its
   accessible name carries "to Giving Tuesday" because the same link shows up
   in a flat links list on every page. */
.cc-givingtuesday-link { white-space: nowrap; }
/* The global focus treatment is gold + green-900. On this gold band the gold
   line disappears, so the CTA keeps the dark half only: a 3px green-900 ring
   (10.9:1 on gold) with no outer halo. The tighter vertical padding keeps the
   pill at 44px (8 + 24 + 8 + 4px border), the height the old text link already
   reserved, so the strip does not grow. */
.cc-givingtuesday .cc-btn {
    --bs-btn-padding-y: .5rem;
    --bs-btn-focus-box-shadow: none;
}
.cc-givingtuesday .cc-btn:focus-visible {
    outline: 3px solid var(--cc-green-900);
    outline-offset: 3px;
    box-shadow: none;
}
@media (min-width: 768px) {
    .cc-givingtuesday-inner {
        flex-direction: row;
        /* Sentence and CTA are one unit: centring them together caps the gap at
           the flex gap instead of stretching it across the whole container. */
        justify-content: center;
        gap: var(--space-4);
        text-align: left;
    }
}

/* --- Rotating announcement band ------------------------------------------ */
/* Up to two messages can be live at once: the Jubilee banner (a switch) and
   Giving Tuesday (a date window). Rather than stack two pinned rows under the
   header, both slides share one grid cell and crossfade, so the band is always
   exactly as tall as the taller message and the pinned stack never shifts.
   Only when both are live is the .cc-band-rotator wrapper emitted; a lone band
   shows with no motion. The crossfade is pure CSS, so it works with JS off, and
   it pauses on hover/focus (see below). */
.cc-band-rotator { display: grid; }
.cc-band-rotator > .cc-band-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cc-band-fade 10s ease-in-out infinite;
}
/* Half a cycle out of phase, so one slide is always visible. */
.cc-band-rotator > .cc-band-slide:nth-child(2) { animation-delay: -5s; }

/* Pause while the band is hovered or holds keyboard focus, so a message can be
   read. The hidden slide is out of the tab order (visibility: hidden), so focus
   can only ever land on the visible one - no invisible focus target. */
.cc-band-rotator:hover > .cc-band-slide,
.cc-band-rotator:focus-within > .cc-band-slide { animation-play-state: paused; }

@keyframes cc-band-fade {
    0%, 44%  { opacity: 1; visibility: visible; }
    50%, 94% { opacity: 0; visibility: hidden; }
    100%     { opacity: 1; visibility: visible; }
}

/* No motion for those who ask for none: hold the first message and hide the
   rest. visibility also keeps a hidden slide out of the tab order and the
   accessibility tree, so a keyboard user can never land on an invisible link. */
@media (prefers-reduced-motion: reduce) {
    .cc-band-rotator > .cc-band-slide {
        animation: none !important;
        opacity: 1;
        visibility: visible;
    }
    .cc-band-rotator > .cc-band-slide:nth-child(2) { display: none; }
}

/* --- Buttons -------------------------------------------------------------- */
.cc-btn {
    --bs-btn-padding-y: .75rem;
    --bs-btn-padding-x: 1.25rem;
    font-weight: 700;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* Bootstrap's .btn:focus-visible sets outline to 0 and, for these custom
   buttons, supplies no box-shadow - so Apply, Give and every other .cc-btn had
   no visible focus indicator at all. Draw a two-tone ring instead: gold (the
   site focus colour) against green-900. Gold alone is only 1.8:1 on white;
   green-900 alone disappears on the dark green bands. Together, the dark outer
   band carries the contrast on light backgrounds and the gold inner band does
   it on dark ones. Set here rather than per button so no future .cc-btn
   inherits the same bug. */
.cc-btn:focus-visible {
    outline: 2px solid var(--cc-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--cc-green-900);
}

.cc-btn-give {
    background: var(--cc-maroon-700);
    border-color: var(--cc-maroon-700);
    color: var(--cc-white);
}
.cc-btn-give:hover,
.cc-btn-give:focus { background: var(--cc-maroon-900); border-color: var(--cc-maroon-900); color: var(--cc-white); }

.cc-btn-primary {
    background: var(--cc-green-700);
    border-color: var(--cc-green-700);
    color: var(--cc-white);
}
.cc-btn-primary:hover,
.cc-btn-primary:focus { background: var(--cc-green-900); border-color: var(--cc-green-900); color: var(--cc-white); }

.cc-btn-outline {
    background: transparent;
    border-color: var(--cc-green-700);
    color: var(--cc-green-900);
}
.cc-btn-outline:hover,
.cc-btn-outline:focus { background: var(--cc-green-700); color: var(--cc-white); }

.cc-btn-light {
    background: var(--cc-white);
    border-color: var(--cc-white);
    color: var(--cc-green-900);
}
.cc-btn-light:hover,
.cc-btn-light:focus { background: var(--cc-cream); border-color: var(--cc-cream); color: var(--cc-green-900); }

/* --- Sections ------------------------------------------------------------- */
.cc-section { padding-block: var(--space-7); }
@media (min-width: 992px) { .cc-section { padding-block: var(--space-8); } }

.cc-section--cream { background: var(--cc-cream); }
.cc-section--green { background: var(--cc-green-900); color: var(--cc-white); }
.cc-section--green h1, .cc-section--green h2, .cc-section--green h3 { color: var(--cc-white); }
.cc-section--maroon { background: var(--cc-maroon-900); color: var(--cc-white); }
.cc-section--maroon h1, .cc-section--maroon h2, .cc-section--maroon h3 { color: var(--cc-white); }

.cc-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--cc-maroon-700);
    margin-bottom: var(--space-2);
}
.cc-section--green .cc-eyebrow,
.cc-section--maroon .cc-eyebrow { color: var(--cc-on-dark-accent); }

.cc-section-heading { margin-bottom: var(--space-5); }
.cc-lead { font-size: 1.125rem; color: var(--cc-muted); }
.cc-section--green .cc-lead,
.cc-section--maroon .cc-lead,
.cc-page-header .cc-lead,
.cc-newsletter-band .cc-lead { color: var(--cc-on-dark-muted); }
/* A link inside the dark page header needs its own colour: the default link
   colour is a maroon that is unreadable on green. */
.cc-page-header .cc-lead a {
    color: var(--cc-white);
    text-decoration: underline;
    text-underline-offset: .15em;
}
.cc-page-header .cc-lead a:hover { color: var(--cc-on-dark-accent); }

/* --- B-roll hero band ----------------------------------------------------- */
/* Decorative: art only, never copy. On phones it is plain 16:9 - the source's
   own ratio, so nothing is cropped. From tablet up it fills the first screen
   below the pinned top stack, so the welcome band starts just under the fold. */
.cc-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--cc-green-900);
    overflow: hidden;
}
@media (min-width: 768px) {
    .cc-hero {
        /* Exactly the viewport minus the pinned top stack: the hero is the whole
           first screen and the welcome band begins on the next. There is no
           height cap now that a single announcement band sits above it, so the
           16:9 source is cropped far less than it used to be. */
        aspect-ratio: auto;
        height: calc(100vh - var(--cc-topbar-h));
        height: calc(100svh - var(--cc-topbar-h));
    }
}
.cc-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Anchor the frame to the TOP: the band is wider than the 16:9 source, so
       `cover` crops the bottom (floor and table) rather than the top, which
       would trim heads. The poster image obeys this too. */
    object-position: center top;
    border: 0;
}
/* The band carries NO visible control - it just loops. It still needs a way to
   stop the motion for WCAG 2.2.2, so this button is parked off the band and only
   paints when a keyboard user focuses it (the .cc-skip-link pattern); a pointer
   user never sees a control. */
.cc-hero-pause {
    position: absolute;
    left: var(--space-3);
    top: -100px;
    z-index: 3;
    padding: var(--space-2) var(--space-3);
    border: 0;
    border-radius: var(--radius);
    background: rgba(18,48,31,.9);
    color: var(--cc-white);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    transition: top .15s ease-in-out;
}
.cc-hero-pause:focus {
    top: var(--space-3);
    outline: 3px solid var(--cc-focus);
    outline-offset: 2px;
}

/* --- Welcome band: copy left, director's video right ---------------------- */
.cc-intro h1 {
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    max-width: 26ch;
    text-wrap: balance;
    margin-bottom: var(--space-3);
}
.cc-intro .cc-lead {
    font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
    max-width: 62ch;
    margin-bottom: 0;
}
.cc-welcome { margin: 0; }
.cc-welcome-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: var(--cc-green-900);
    box-shadow: 0 0 0 1px rgba(255,255,255,.16), var(--shadow-md);
}
.cc-welcome-caption {
    margin-top: var(--space-3);
    font-size: .9rem;
    color: var(--cc-on-dark-muted);
}

/* --- CTA cards ------------------------------------------------------------ */
/* Art fills the card; the keyword and its always-visible blurb sit together at
   the foot, where the scrim is strongest. The row is a grid and each card is a
   subgrid of it, so all four cards share the same three tracks - art, keyword,
   blurb. Keywords therefore line up across the row even though the blurbs wrap
   to different heights, and no card can change height on hover. */
.cc-cta-grid {
    display: grid;
    /* One group of two rows per card: a flexible top track (the keyword is
       centred in it) and the blurb. A card spans both, which is what lets its
       subgrid share the tracks with its neighbours. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(9rem, 1fr) auto);
    gap: var(--space-4);
    align-items: stretch;
}
@media (min-width: 576px) {
    .cc-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(9rem, 1fr) auto);
    }
}
@media (min-width: 1200px) {
    .cc-cta-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: minmax(9rem, 1fr) auto;
    }
}

.cc-cta-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--cc-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
/* The scroll-reveal utility later in the sheet owns `transition` with its own
   shorthand. Keep the hover pair in a more specific rule so the lift and shadow
   ease like the Media page cards instead of snapping. */
.cc-cta-card.cc-reveal {
    transition: opacity .5s ease, translate .5s ease,
        box-shadow .2s ease, transform .2s ease;
}
/* Bottom-weighted, but much lighter than before: the art now reads all the way
   into the copy area, and the dark SVG gradients under the white text still
   clear 4.5:1 at the foot. */
/* Bottom-weighted scrim, tuned for real photographs: light at the very top so
   the photo still reads, then dark enough by the keyword (centred) and the blurb
   (below it) that white copy clears WCAG against the brightest photo. */
.cc-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(18,48,31,.10) 0%,
        rgba(18,48,31,.50) 28%,
        rgba(18,48,31,.72) 50%,
        rgba(18,48,31,.86) 100%);
}
/* Same lift as the Media page cards. The shadow is a step stronger than theirs
   (10px offset, 24px blur, 18% black) because these cards are dark: a 12% shadow
   around a dark face reads much weaker than the same shadow around the Media
   page's white cards. */
.cc-cta-card:focus-visible {
    /* The global a:focus-visible rule squares corners to 2px; keep the card's
       own radius so focus does not reshape it. */
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    transform: translateY(-2px);
}
@media (hover: hover) {
    .cc-cta-card:hover {
        box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
        transform: translateY(-2px);
    }
}

.cc-cta-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Real photographs are much brighter than the old abstract art, so they are
       dimmed a little; the scrim below does the rest. Together they keep the
       white keyword and blurb at WCAG contrast over any photo. */
    filter: brightness(.75);
}

.cc-cta-num {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(18,48,31,.55);
    color: var(--cc-white);
    font-size: .85rem;
    font-weight: 700;
}

/* Keyword and blurb are the card's two tracks. The keyword sits in the flexible
   first track and is centred in it, so it reads high on the card between the top
   edge and the sentence below. The blurb is always visible now - it is no longer
   a hover reveal - so the copy is there on first paint, touch, keyboard and
   reduced motion alike. Both sit above the scrim (z-index 1). */
.cc-cta-keyword {
    grid-row: 1;
    align-self: center;
    position: relative;
    z-index: 2;
    margin: 0;
    padding-inline: var(--space-4);
    font-family: var(--cc-font-display);
    /* Sized for the narrowest state it is ever shown in: a card at 1200px is
       about a fifth of the row. "Conference" has to fit there in one piece. */
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.1;
    color: var(--cc-white);
    text-align: center;
    text-wrap: balance;
    /* A soft halo so the keyword stays crisp over the busiest part of a photo. */
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.cc-cta-desc {
    grid-row: 2;
    position: relative;
    z-index: 2;
    justify-self: center;
    align-self: start;
    width: 100%;
    max-width: 34ch;
    margin: 0;
    padding: 0 var(--space-4) var(--space-5);
    /* 1rem, not .95rem: this is the copy the note said was too small to read. */
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
    color: var(--cc-on-dark);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

@media (prefers-reduced-motion: reduce) {
    .cc-cta-card,
    .cc-cta-card.cc-reveal { transition: none; }
}

/* --- Inline CTA link ------------------------------------------------------ */
/* Used by cards and bands on other pages (missions, missionaries, story). */
.cc-cta-link { font-weight: 700; color: var(--cc-maroon-700); }
.cc-cta-link::after { content: "\2192"; margin-left: .35rem; transition: margin .15s ease; }
.cc-cta-link:hover { color: var(--cc-maroon-900); }
.cc-cta-link:hover::after { margin-left: .55rem; }

/* --- Go page map ---------------------------------------------------------- */
.cc-map { margin-top: var(--space-6); }

.cc-map-svg {
    display: block;
    width: 100%;
    height: auto;
    background: var(--cc-green-900);
    border-radius: var(--radius-lg);
}

.cc-map-land { fill: var(--cc-green-700); }

.cc-map-pin-hit { fill: transparent; stroke: transparent; stroke-width: 3; }
.cc-map-pin-dot {
    fill: var(--cc-on-dark-accent);
    stroke: var(--cc-green-900);
    stroke-width: 2;
    transition: fill .15s ease, stroke .15s ease;
}
.cc-map-pin-label {
    fill: var(--cc-white);
    font-family: var(--cc-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(18,48,31,.8);
    stroke-width: 3px;
    stroke-linejoin: round;
}
.cc-map-pin:hover .cc-map-pin-dot { fill: var(--cc-white); }
.cc-map-pin:focus { outline: none; }
.cc-map-pin:focus-visible .cc-map-pin-hit { stroke: var(--cc-focus); }
.cc-map-pin[aria-current="true"] .cc-map-pin-dot {
    fill: var(--cc-white);
    stroke: var(--cc-on-dark-accent);
}
.cc-map-pin[aria-current="true"] .cc-map-pin-label { fill: var(--cc-on-dark-accent); }

/* Labels would be unreadable once the map shrinks to phone width; the place
   links below carry the names there. */
@media (max-width: 767px) {
    .cc-map-pin-label { display: none; }
}

.cc-map-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}
.cc-map-tab {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--cc-line);
    border-radius: 999px;
    background: var(--cc-white);
    color: var(--cc-green-900);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cc-map-tab:hover {
    border-color: var(--cc-green-500);
    background: var(--cc-cream);
    color: var(--cc-green-900);
}
.cc-map-tab[aria-selected="true"] {
    border-color: var(--cc-green-700);
    background: var(--cc-green-700);
    color: var(--cc-white);
}

.cc-map-panels { margin-top: var(--space-5); }
.cc-base {
    padding: var(--space-5);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius-lg);
    background: var(--cc-white);
}
.cc-base + .cc-base { margin-top: var(--space-4); }
.cc-base-name { font-size: 1.5rem; margin-bottom: var(--space-2); }
.cc-base-blurb {
    max-width: 60ch;
    margin-bottom: var(--space-2);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--cc-ink);
}
.cc-base-note { margin-bottom: 0; color: var(--cc-muted); }
.cc-base-trips-heading {
    margin: var(--space-4) 0 var(--space-3);
    font-size: 1.05rem;
}

.cc-trip-list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.cc-trip {
    padding-left: var(--space-4);
    border-left: 3px solid var(--cc-maroon-700);
}
.cc-trip-name { margin-bottom: var(--space-2); font-weight: 700; }
.cc-trip-meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--space-1) var(--space-3);
    margin: 0;
    font-size: .9rem;
}
.cc-trip-meta dt { font-weight: 600; color: var(--cc-green-900); }
.cc-trip-meta dd { margin: 0; color: var(--cc-muted); }

.cc-trips-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--cc-line);
}
@media (min-width: 768px) {
    .cc-trips-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* --- Cards / generic ------------------------------------------------------ */
/* Maroon outline rather than a hairline grey: on the cream and white bands
   these panels read as flat white boxes otherwise, and the brand accent gives
   the group a shape without a fill. */
.cc-card {
    background: var(--cc-white);
    border: 1px solid var(--cc-maroon-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: inset 0 3px 0 var(--cc-maroon-700), var(--shadow-sm);
}
.cc-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cc-card-body { padding: var(--space-5); }
.cc-card-title { font-size: 1.2rem; }

/* A standalone panel for one piece of information (the mailing address on
   /grow/apply/). Same brand treatment as .cc-card, but it is not part of an
   equal-height grid, so it sizes to its content - .cc-card's height:100% would
   stretch it to the height of the taller column beside it. */
.cc-callout {
    background: var(--cc-white);
    border: 1px solid var(--cc-maroon-700);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 3px 0 var(--cc-maroon-700), var(--shadow-sm);
    padding: var(--space-5);
}

/* --- Whole-block links -------------------------------------------------------
   A block with a single destination makes the whole block the target. The real
   link keeps its own text, so the accessible name stays meaningful ("Ask about
   this trip", "2025 sessions"); a transparent ::after layer spreads it across
   the block. Nothing is nested, and keyboard focus still lands on one control -
   the ring is drawn around the block by the layer's outline. */
.cc-block-link {
    position: relative;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.cc-block-link .cc-cover-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.cc-block-link .cc-cover-link:focus-visible { outline: none; }
.cc-block-link .cc-cover-link:focus-visible::after {
    /* Inset, because .cc-card clips its overflow and would cut an outside ring. */
    outline: 3px solid var(--cc-focus);
    outline-offset: -3px;
}
.cc-block-link:hover,
.cc-block-link:focus-within {
    border-color: var(--cc-green-700);
    box-shadow: var(--shadow-md);
}
/* .cc-card carries an inset maroon bar; keep it while the shadow deepens. */
.cc-card.cc-block-link:hover,
.cc-card.cc-block-link:focus-within {
    box-shadow: inset 0 3px 0 var(--cc-maroon-700), var(--shadow-md);
}
.cc-block-link:hover .cc-card-title,
.cc-block-link:focus-within .cc-card-title { color: var(--cc-maroon-700); }
@media (hover: hover) {
    .cc-block-link:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .cc-block-link { transition: none; }
    .cc-block-link:hover { transform: none; }
}

/* Stat band */
.cc-stat-band { display: grid; gap: var(--space-5); grid-template-columns: 1fr; text-align: center; }
@media (min-width: 768px) { .cc-stat-band { grid-template-columns: repeat(3, 1fr); } }
.cc-stat-num { font-family: var(--cc-font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--cc-maroon-700); }
.cc-section--green .cc-stat-num { color: #E9C9A0; }
.cc-stat-label { font-weight: 600; }

/* --- Newsletter band ------------------------------------------------------ */
.cc-newsletter-band {
    background: var(--cc-maroon-900);
    color: var(--cc-white);
    padding-block: var(--space-6);
}
.cc-newsletter-heading { color: var(--cc-white); margin-bottom: var(--space-2); }
.cc-newsletter-sub { color: #F0E2E4; }

/* --- Footer --------------------------------------------------------------- */
.cc-footer { background: var(--cc-green-900); color: var(--cc-on-dark-muted); }
.cc-footer-main { padding-block: var(--space-7); }
.cc-footer-brand { font-family: var(--cc-font-display); font-size: 1.5rem; color: var(--cc-white); margin-bottom: var(--space-3); }
.cc-footer-desc { color: var(--cc-on-dark-muted); font-size: .95rem; max-width: 70ch; }
.cc-footer-address { color: var(--cc-on-dark-muted); font-size: .95rem; }

/* Group heading: small-caps treatment plus a hairline rule, so the link list
   below reads as its own group instead of a continuation of the heading. */
.cc-footer-heading {
    color: var(--cc-white);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.cc-footer-links { list-style: none; padding: 0; margin: 0; }
.cc-footer-links li { display: flex; align-items: center; min-height: var(--touch); }
.cc-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: var(--cc-on-dark);
    text-decoration: none;
}
.cc-footer-links a:hover,
.cc-footer-links a:focus { color: var(--cc-white); text-decoration: underline; text-underline-offset: .2em; }
.cc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-block: var(--space-4);
    font-size: .875rem;
    color: var(--cc-on-dark-muted);
}
.cc-footer-bottom a { color: var(--cc-on-dark); }

/* --- Thought for the Day (footer right column + popup) ----------------------
   Site-wide widget. The card is the toggle; the popup is a native <dialog>
   upgraded by thought.js. Reduced-motion users get no animation. */
.cc-thought { margin-top: var(--space-5); }

/* Heading matches .cc-footer-brand exactly (display serif, 1.5rem, white),
   so the two column headings sit on one line across the footer. */
.cc-thought-heading {
    font-family: var(--cc-font-display);
    font-size: 1.5rem;
    line-height: 1.65;
    color: var(--cc-white);
    margin: 0 0 var(--space-3);
}

/* The card: the whole box is the click target. A translucent panel plus a
   sand rule separates it from the muted footer link text without adding a
   colour. Hover lifts it slightly to say "this is interactive". */
.cc-thought-card,
.cc-thought-plain {
    display: block;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 3px solid var(--cc-on-dark-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
}
button.cc-thought-card {
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition:
        transform .2s cubic-bezier(.2, .9, .3, 1),
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}
button.cc-thought-card:hover,
button.cc-thought-card:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
button.cc-thought-card:focus-visible {
    outline: 2px solid var(--cc-focus);
    outline-offset: 2px;
}

.cc-thought-text {
    display: block;
    font-family: var(--cc-font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--cc-white);
}
.cc-thought-hint {
    display: block;
    margin-top: var(--space-3);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cc-on-dark-accent);
}
.cc-thought-pending {
    font-size: .95rem;
    color: var(--cc-on-dark-muted);
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 3px solid var(--cc-on-dark-accent);
    border-radius: var(--radius-lg);
    margin: 0;
}

/* Popup ---------------------------------------------------------------------
   Portrait card, centred in the middle third of the screen at desktop;
   full-width minus margins on a phone. */
.cc-thought-dialog {
    width: min(24rem, calc(100vw - var(--space-5)));
    max-height: min(82dvh, 42rem);
    margin: auto;
    padding: var(--space-6) var(--space-5);
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--cc-cream);
    color: var(--cc-ink);
    overflow-y: auto;
}

/* Desktop and tablets read differently: a short card floating in a vast dim
   wastes the screen. There the popup opens up to a wide, screen-proportioned
   panel — most of the viewport's width, its height still capped to the same
   82dvh — and the longer line-length limit keeps the text readable. */
@media (min-width: 48em) {
    .cc-thought-dialog {
        width: min(52rem, calc(100vw - 2 * var(--space-6)));
        max-height: 82dvh;
        padding: var(--space-7) var(--space-7);
    }
    .cc-thought-title {
        font-size: 1.9rem;
        margin-bottom: var(--space-4);
    }
    .cc-thought-quote {
        max-width: 60ch;
        font-size: 1.15rem;
        padding-left: var(--space-5);
    }
    .cc-thought-expanded {
        max-width: 68ch;
        font-size: 1.05rem;
    }
    .cc-thought-close {
        margin-top: var(--space-5);
    }
}

/* The rest of the page dims under the backdrop so the thought carries
   the focus. blur is a quiet extra; it degrades to the tint alone. */
.cc-thought-dialog::backdrop {
    background: rgba(18, 48, 31, .72);
    backdrop-filter: blur(3px);
}

.cc-thought-date {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cc-maroon-700);
    margin: 0 0 var(--space-2);
}
.cc-thought-title {
    font-family: var(--cc-font-display);
    font-size: 1.5rem;
    line-height: 1.65;
    color: var(--cc-green-900);
    margin: 0 0 var(--space-3);
}
.cc-thought-quote {
    font-family: var(--cc-font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--cc-green-900);
    margin: 0 0 var(--space-4);
    padding-left: var(--space-4);
    border-left: 3px solid var(--cc-green-500);
}
.cc-thought-expanded {
    color: var(--cc-ink);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 var(--space-5);
    white-space: pre-line;
}

/* Close matches the maroon .cc-btn style used elsewhere on the site. */
.cc-thought-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    padding: 0 var(--space-5);
    background: var(--cc-maroon-700);
    border: 2px solid var(--cc-maroon-700);
    border-radius: var(--radius);
    color: var(--cc-white);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.cc-thought-close:hover,
.cc-thought-close:focus-visible { background: var(--cc-maroon-900); border-color: var(--cc-maroon-900); }

/* Animation: the card slides up and fades in with easing; the backdrop
   fades in with it. Closing runs the reverse, briefly. */
.cc-thought-dialog[open],
.cc-thought-dialog::backdrop {
    animation: cc-thought-in .3s ease-out both;
}
.cc-thought-dialog[open] { animation: cc-thought-card-in .35s cubic-bezier(.2, .9, .3, 1) both; }
.cc-thought-dialog.cc-thought-closing { animation: cc-thought-out .15s ease-in both; }
.cc-thought-dialog.cc-thought-closing::backdrop { animation: cc-thought-backdrop-out .15s ease-in both; }

@keyframes cc-thought-card-in {
    from { opacity: 0; transform: translateY(var(--space-5)); }
}
@keyframes cc-thought-in {
    from { opacity: 0; }
}
@keyframes cc-thought-out {
    to { opacity: 0; transform: translateY(var(--space-3)); }
}
@keyframes cc-thought-backdrop-out {
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-thought-dialog[open],
    .cc-thought-dialog::backdrop,
    .cc-thought-dialog.cc-thought-closing,
    .cc-thought-dialog.cc-thought-closing::backdrop,
    button.cc-thought-card {
        animation: none;
        transition: none;
    }
}

/* --- Books ----------------------------------------------------------------
   One page per book, purchase on Amazon. The caution yellow is book-specific:
   it decorates Watch Your Step and is never a large fill or a site-wide accent. */
.cc-book-cover {
    margin: 0;
    max-width: 18rem;
}
.cc-book-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.cc-book-title {
    font-family: var(--cc-font-display);
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--cc-white);
    margin-bottom: var(--space-2);
}
.cc-book-subtitle {
    font-family: var(--cc-font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--cc-on-dark-muted);
    margin-bottom: var(--space-1);
}
.cc-book-author {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cc-on-dark-accent);
    margin-bottom: var(--space-5);
}
.cc-book-unlisted {
    font-size: .85rem;
    color: var(--cc-on-dark-muted);
    margin: var(--space-3) 0 0;
}
.cc-book-unlisted a { color: var(--cc-on-dark); }

/* Buy + format dropdown. The separator gets real side-rhythm; a raw "·"
   between text nodes renders without spacing. */
.cc-book-buy-sep { margin: 0 .35em; }
.cc-book-format {
    margin-top: var(--space-4);
    max-width: 17rem;
}
.cc-book-format-label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--cc-on-dark-muted);
    margin-bottom: var(--space-1);
}
.cc-book-format-select {
    background: var(--cc-white);
    color: var(--cc-ink);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius);
    font-weight: 600;
    padding: .6em .75em;
    min-height: var(--touch);
}
.cc-book-format-select:focus-visible {
    outline: 2px solid var(--cc-focus);
    outline-offset: 2px;
}

/* Caution badge: the one deliberate yellow moment, on the homepage band. It is
   a span, not an <abbr> — no help cursor, no dotted underline. The box is nudged
   a hair taller than the serif caps beside it so CAUTION fills the same
   vertical height as "Watch Your Step", resting on the shared baseline. */
.cc-book-caution {
    display: inline-block;
    background: var(--cc-caution);
    color: var(--cc-green-900);
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    cursor: default;
    padding: .12em .3em .05em;
    margin-right: .12em;
    border-radius: calc(var(--radius) * .5);
    text-transform: uppercase;
}

/* Dark band on the homepage: the yellow reads as the hazard stripe behind the
   cover, angled so it feels like tape, not a colour block. */
.cc-book-band-cover {
    position: relative;
    max-width: 18rem;
}
.cc-book-band-cover::before {
    content: "";
    position: absolute;
    inset: -1rem -1.25rem auto;
    height: 2.75rem;
    background: repeating-linear-gradient(
        -45deg,
        var(--cc-caution) 0 14px,
        var(--cc-green-900) 14px 28px
    );
    border-radius: 6px;
    transform: rotate(-2deg);
}
.cc-book-band-cover img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
/* On a phone the cover's column is full width, so centre the graphic in it. */
@media (max-width: 767.98px) {
    .cc-book-band-cover { margin-inline: auto; }
}
.cc-book-band-title { color: var(--cc-white); }
.cc-book-hero .cc-eyebrow { color: var(--cc-on-dark-accent); }
.cc-book-hero .cc-eyebrow-caution { color: var(--cc-caution); }

/* The band eyebrow sits on the dark band; keep it sand for contrast, and let
   the caution chip + stripe carry the book's yellow. */

/* Books index tiles */
.cc-book-tile {
    display: block;
    height: 100%;
    background: var(--cc-white);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform .2s cubic-bezier(.2, .9, .3, 1), box-shadow .2s ease;
}
.cc-book-tile:hover,
.cc-book-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.cc-book-tile:focus-visible { outline: 2px solid var(--cc-focus); outline-offset: 2px; }
.cc-book-tile-cover {
    display: block;
    width: 55%;
    height: auto;
    margin: 0 auto;
    padding-top: var(--space-5);
}
.cc-book-tile-body {
    display: block;
    padding: var(--space-4) var(--space-5) var(--space-4);
    text-align: center;
}
.cc-book-tile-title {
    display: block;
    font-family: var(--cc-font-display);
    font-size: 1.2rem;
    color: var(--cc-green-900);
}
.cc-book-tile-sub {
    display: block;
    font-size: .9rem;
    color: var(--cc-muted);
    margin-top: var(--space-1);
}
.cc-book-tile-link {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cc-maroon-700);
    margin-top: var(--space-3);
}

/* Cross-links on a book page */
a.cc-book-item {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    text-decoration: none;
    color: inherit;
}
a.cc-book-item:hover strong,
a.cc-book-item:focus-visible strong { text-decoration: underline; text-underline-offset: .2em; }
.cc-book-item-cover {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}
.cc-book-item-body { display: flex; flex-direction: column; }
.cc-book-item-body strong { color: var(--cc-green-900); font-family: var(--cc-font-display); }
.cc-book-item-body span { color: var(--cc-muted); font-size: .85rem; }

/* Specs list */
.cc-book-specs { margin: 0; }
.cc-book-spec {
    display: grid;
    grid-template-columns: minmax(6rem, 32%) 1fr;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--cc-line);
}
.cc-book-spec:last-child { border-bottom: 0; }
.cc-book-spec dt {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cc-muted);
    padding-top: .15rem;
}
.cc-book-spec dd { margin: 0; }

/* --- Forms ---------------------------------------------------------------- */
.cc-form { max-width: 720px; }
.cc-label { display: block; font-weight: 600; margin-bottom: var(--space-2); color: inherit; }
.cc-required { color: var(--cc-maroon-700); }
.cc-section--green .cc-required,
.cc-section--maroon .cc-required,
.cc-newsletter-band .cc-required { color: #FFD9DE; }
.cc-optional { font-weight: 400; color: var(--cc-muted); font-size: .85rem; }
/* The newsletter band sits on maroon, where --cc-muted only reaches 2.2:1. */
.cc-newsletter-band .cc-optional { color: var(--cc-on-dark-muted); }

.cc-input {
    min-height: var(--touch);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius);
    padding: var(--space-3);
}
.cc-input:focus { border-color: var(--cc-green-700); box-shadow: 0 0 0 .2rem rgba(30,77,51,.2); }

.cc-field-error { color: var(--cc-maroon-700); font-weight: 600; margin: var(--space-2) 0 0; font-size: .9rem; }
.cc-newsletter-band .cc-field-error,
.cc-section--green .cc-field-error,
.cc-section--maroon .cc-field-error { color: #FFD9DE; }

.cc-input[aria-invalid="true"] { border-color: var(--cc-maroon-700); }

.cc-form-status { margin-top: var(--space-4); font-weight: 600; min-height: 1.5em; }
.cc-form-status[data-state="success"] { color: var(--cc-green-500); }
.cc-form-status[data-state="error"] { color: var(--cc-maroon-700); }
.cc-newsletter-band .cc-form-status[data-state="success"] { color: #CDEBD9; }
.cc-newsletter-band .cc-form-status[data-state="error"] { color: #FFD9DE; }

/* Honeypot: visually hidden but still submitted by naive bots */
.cc-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --- Video gallery (Cup of Joe) ------------------------------------------- */
.cc-gallery { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .cc-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cc-gallery { grid-template-columns: repeat(3, 1fr); } }

.cc-video-card {
    display: flex;
    flex-direction: column;
    background: var(--cc-white);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.cc-video-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}
.cc-video-button img { width: 100%; height: 100%; object-fit: cover; }
.cc-video-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18,48,31,.25);
    transition: background .15s ease;
}
.cc-video-button:hover::after,
.cc-video-button:focus::after { background: rgba(18,48,31,.05); }
.cc-video-play {
    position: absolute;
    z-index: 2;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--cc-maroon-700);
    color: var(--cc-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    pointer-events: none;
}
.cc-video-body { padding: var(--space-4); }
.cc-video-title { font-size: 1.05rem; margin-bottom: var(--space-1); }
.cc-video-meta { color: var(--cc-muted); font-size: .85rem; margin: 0; }

/* In-page player: a native <dialog> (same pattern as the Thought popup), so the
   background is inert, focus is trapped, Esc closes and it paints above the
   sticky header. The shell sizes the video to the viewport (up to 1200px, never
   more than ~76vh tall) with the close control in a bar above the frame, and is
   edge-to-edge on phones. */
.cc-video-modal {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    color: var(--cc-white);
    overflow: visible;
}
.cc-video-modal::backdrop { background: rgba(0,0,0,.85); }

.cc-video-modal-shell {
    width: min(1200px, 94vw, calc(76vh * 16 / 9));
}

/* The ✕ lives here, above the video, so it never covers YouTube's own controls. */
.cc-video-modal-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 .4rem;
}
.cc-video-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.9));
    transition: opacity .4s ease, background .15s ease;
}
.cc-video-close:hover { background: rgba(0,0,0,.45); }
.cc-video-close:focus-visible { outline: 2px solid var(--cc-focus); outline-offset: 2px; }
/* Left alone while the viewer watches: dims after a moment of stillness, back
   to full on any pointer move, key or focus (see gallery.js). */
.cc-video-close.is-idle { opacity: .55; }

.cc-video-modal-inner {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cc-video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.cc-video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cc-video-modal-foot {
    margin: .75rem 0 0;
    text-align: center;
    font-size: .9rem;
}
.cc-video-modal-watch { color: var(--cc-white); font-weight: 600; }
.cc-video-modal-watch:hover { color: var(--cc-on-dark-accent); }

/* Lock the page behind the open player. */
html.cc-video-open { overflow: hidden; }

@media (max-width: 767px) {
    .cc-video-modal-shell { width: 100vw; }
    .cc-video-modal-bar { padding: 0 .35rem .4rem; }
    .cc-video-modal-inner { border-radius: 0; }
}

.cc-video-modal[open] { animation: cc-video-in .25s ease-out both; }
.cc-video-modal[open]::backdrop { animation: cc-video-backdrop-in .25s ease-out both; }
.cc-video-modal.cc-video-closing { animation: cc-video-out .15s ease-in both; }
.cc-video-modal.cc-video-closing::backdrop { animation: cc-video-backdrop-out .15s ease-in both; }

@keyframes cc-video-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cc-video-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cc-video-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-video-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .cc-video-modal[open],
    .cc-video-modal[open]::backdrop,
    .cc-video-modal.cc-video-closing,
    .cc-video-modal.cc-video-closing::backdrop { animation: none; }
}

/* --- Director's Corner archive -------------------------------------------- */
.cc-archive-count { color: var(--cc-muted); font-size: .95rem; }
.cc-archive-count a { color: var(--cc-maroon-700); font-weight: 600; }

/* Category filter. Plain links, so the list narrows with JavaScript off. */
.cc-archive-filter { margin-bottom: var(--space-6); }
.cc-archive-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    margin: 0;
}
.cc-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: var(--touch);
    padding: 0 var(--space-4);
    border: 2px solid var(--cc-line);
    border-radius: 999px;
    background: var(--cc-white);
    color: var(--cc-green-900);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cc-chip:hover,
.cc-chip:focus { border-color: var(--cc-green-700); background: var(--cc-cream); }
.cc-chip.is-active {
    background: var(--cc-green-700);
    border-color: var(--cc-green-700);
    color: var(--cc-white);
}
.cc-chip-count {
    min-width: 1.5rem;
    padding: 0 .45rem;
    border-radius: 999px;
    background: var(--cc-cream);
    color: var(--cc-muted);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}
.cc-chip.is-active .cc-chip-count { background: rgba(255, 255, 255, .2); color: var(--cc-white); }

.cc-archive-list { list-style: none; padding: 0; margin: 0; }
.cc-archive-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--cc-line);
}
.cc-archive-list > li:last-child .cc-archive-item {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
@media (min-width: 768px) {
    .cc-archive-item { flex-direction: row; gap: var(--space-5); align-items: flex-start; }
    .cc-archive-thumb { flex: 0 0 240px; }
    .cc-archive-body { flex: 1 1 auto; min-width: 0; }
}
.cc-archive-thumb {
    display: block;
    width: 240px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cc-white);
}
/* contain, never cover: the newsletter banners are ~2:1, so a 4:3 crop cut the
   wordmark off. The whole image shows, letterboxed on the white frame. */
.cc-archive-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cc-archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: var(--space-1);
    color: var(--cc-muted);
    font-size: .875rem;
}
.cc-archive-meta a { color: var(--cc-maroon-700); font-weight: 600; }
.cc-archive-title { font-size: 1.35rem; margin-bottom: var(--space-2); }
.cc-archive-title a,
.cc-teaser-title { color: inherit; text-decoration: none; }
.cc-archive-title a:hover,
.cc-archive-title a:focus,
.cc-teaser-title:hover,
.cc-teaser-title:focus { color: var(--cc-maroon-700); text-decoration: underline; }
.cc-archive-excerpt { color: var(--cc-muted); }
.cc-archive-foot { margin-top: var(--space-6); color: var(--cc-muted); }

/* Load more. A wide, quiet button: a real link to ?page=N that works with
   JavaScript off, which archive.js upgrades to append in place. */
.cc-archive-more { margin-top: var(--space-5); }
.cc-loadmore {
    display: block;
    width: 100%;
    min-height: var(--touch);
    padding: var(--space-3) var(--space-4);
    background: var(--cc-cream);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius);
    color: var(--cc-green-900);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.cc-loadmore:hover {
    background: var(--cc-white);
    border-color: var(--cc-green-700);
    text-decoration: none;
}
.cc-loadmore:focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 2px; }
.cc-loadmore[aria-disabled="true"] { cursor: default; color: var(--cc-muted); }
.cc-archive-end { margin: var(--space-5) 0 0; color: var(--cc-muted); text-align: center; }
.cc-archive-end[hidden] { display: none; }

/* Homepage teaser */
.cc-teaser-media {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cc-white);
}
.cc-teaser-media img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* The teaser shows the brand mark rather than the latest letter's banner: a
   ~2:1 banner would sit small inside this frame. The mark gets a closer shape
   (2:1) and even margins all round. */
.cc-teaser-media--logo {
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 1;
    padding: var(--space-5);
}
.cc-teaser-media--logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* --- Single letter -------------------------------------------------------- */
.cc-letter-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: var(--space-2);
    color: var(--cc-on-dark-muted);
    font-size: .875rem;
}
.cc-letter-meta a {
    color: var(--cc-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-letter-lead { margin: 0 0 var(--space-6); }
.cc-letter-lead img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background: var(--cc-cream);
}
.cc-letter img { max-width: 100%; height: auto; border-radius: var(--radius); }
.cc-letter > img,
.cc-letter p > img { display: block; margin-block: var(--space-5); }
.cc-letter-back { margin-top: var(--space-6); }

.cc-letter-nav-band { padding-block: var(--space-6); }
.cc-letter-nav-link {
    display: block;
    min-height: var(--touch);
    padding-block: var(--space-2);
    color: var(--cc-green-900);
    text-decoration: none;
}
.cc-letter-nav-label {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--cc-maroon-700);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cc-letter-nav-title {
    display: block;
    font-family: var(--cc-font-display);
    font-size: 1.15rem;
    line-height: 1.3;
}
.cc-letter-nav-link:hover .cc-letter-nav-title,
.cc-letter-nav-link:focus .cc-letter-nav-title { color: var(--cc-maroon-700); text-decoration: underline; }

/* --- Team ----------------------------------------------------------------- */
.cc-team-card { text-align: center; }
.cc-team-photo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto var(--space-3);
    background: var(--cc-cream);
}
/* Three weights, strongest first: the name, the board position in bold, then a
   local-only role in italic at a lighter weight. --cc-muted is ~5.6:1 on white
   and ~5.3:1 on cream, so the third line stays comfortably legible; do not
   lighten it further. */
.cc-team-name { font-size: 1.1rem; margin-bottom: .15rem; }
.cc-team-position {
    margin-bottom: .1rem;
    color: var(--cc-maroon-700);
    font-weight: 700;
    font-size: .95rem;
}
.cc-team-local {
    margin-bottom: 0;
    color: var(--cc-muted);
    font-style: italic;
    font-weight: 400;
    font-size: .9rem;
}

/* --- Missionaries page ------------------------------------------------------
   Rounded-rectangle give cards: portrait (or monogram), name, optional
   location link. The card is covered by the stretched .cc-give-cover link
   (nucleus), which the location link sits above in z-order so both are
   clickable without nesting anchors. */
.cc-give-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--cc-white);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    height: 100%;
}
.cc-give-photo {
    width: 120px;
    max-width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: var(--space-3);
    background: var(--cc-cream);
}
.cc-give-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    max-width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--cc-cream);
    color: var(--cc-green-700);
    font-family: var(--cc-font-display);
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: var(--space-3);
    border: 1px solid var(--cc-line);
}
.cc-give-name {
    display: block;
    font-family: var(--cc-font-display);
    font-size: 1.1rem;
    line-height: 1.35;
    color: var(--cc-ink);
}
.cc-give-place {
    display: inline-block;
    margin-top: .25rem;
    position: relative;
    z-index: 2;
    color: var(--cc-maroon-700);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: underline;
    text-decoration-color: rgba(113, 40, 40, .4);
    text-underline-offset: 2px;
}
.cc-give-place:hover,
.cc-give-place:focus-visible { color: var(--cc-maroon-900); }
.cc-give-cover { position: static; }
.cc-give-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}
.cc-give-card:hover .cc-give-name { color: var(--cc-maroon-700); }
/* Hover affordance on the card itself, purely decorative (the cover link
   carries the hover). */
@media (hover: hover) {
    .cc-give-card { transition: box-shadow .2s ease, transform .2s ease; }
    .cc-give-card:hover,
    .cc-give-card:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    }
}

/* Top "Give Now" action. */
.cc-give-now { min-width: 14rem; }
.cc-give-now-note {
    max-width: 42rem;
    margin: var(--space-3) auto 0;
    font-size: .95rem;
    color: var(--cc-muted);
}

/* Two platforms, each its own card, so a button and the platform it belongs to
   read as one choice. Nucleus is primary (maroon rule and button); PayPal is
   the alternate, and the designation dropdown lives inside its card because the
   select is what that form posts. */
.cc-give-intro { max-width: 46rem; }
.cc-give-options { margin-top: var(--space-5); }

.cc-give-option {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    background: var(--cc-white);
    border: 1px solid var(--cc-line);
    border-top: 3px solid var(--cc-green-700);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.cc-give-option--primary { border-top-color: var(--cc-maroon-700); }

.cc-give-option-title {
    margin: 0 0 var(--space-2);
    color: var(--cc-green-900);
}
.cc-give-option-desc {
    margin: 0 0 var(--space-4);
    color: var(--cc-muted);
}
.cc-give-field-label {
    margin-bottom: var(--space-2);
    font-weight: 700;
    color: var(--cc-green-900);
}
.cc-give-select {
    width: 100%;
    min-height: var(--touch);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--cc-line);
    border-radius: .5rem;
    background: var(--cc-white);
    color: var(--cc-ink);
    font: inherit;
    font-size: 1rem;
}
.cc-give-select:focus-visible {
    outline: 3px solid var(--cc-focus);
    outline-offset: 2px;
}
.cc-give-option-help {
    margin: var(--space-3) 0 var(--space-4);
    font-size: .9rem;
    color: var(--cc-muted);
}
/* Full width and pushed to the foot of the card: the button belongs to the
   option above it, and both cards' buttons line up. */
.cc-give-option-btn {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

/* Other ways to give: two prominent items, no card, each with an icon tile in
   the same art style as the homepage "ways to join the mission" boxes. */
.cc-give-ways {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5) var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .cc-give-ways { grid-template-columns: repeat(2, 1fr); }
}
.cc-give-way { display: flex; align-items: center; gap: var(--space-4); }
.cc-give-way-icon {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.cc-give-way-title {
    margin: 0 0 .25rem;
    font-family: var(--cc-font-display);
    font-size: 1.25rem;
    color: var(--cc-green-900);
}
.cc-give-way-value { margin: 0; font-size: 1.1rem; }
.cc-give-way-value a { color: var(--cc-maroon-700); font-weight: 700; }
.cc-give-way-value a:hover,
.cc-give-way-value a:focus-visible { color: var(--cc-maroon-900); }

/* --- Media page ------------------------------------------------------------ */
.cc-media-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cc-white);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-decoration: none;
}
.cc-media-kind {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cc-green-700);
    margin-bottom: .35rem;
}
.cc-media-name {
    font-family: var(--cc-font-display);
    font-size: 1.35rem;
    color: var(--cc-ink);
    margin-bottom: .5rem;
}
.cc-media-blurb { color: var(--cc-muted); font-size: .95rem; }
.cc-media-cta {
    margin-top: auto;
    padding-top: var(--space-3);
    color: var(--cc-maroon-700);
    font-weight: 600;
}
@media (hover: hover) {
    .cc-media-card { transition: box-shadow .2s ease, transform .2s ease; }
    .cc-media-card:hover,
    .cc-media-card:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    }
    .cc-media-card:hover .cc-media-name,
    .cc-media-card:focus-visible .cc-media-name { color: var(--cc-maroon-700); }
}
/* The "Coming Soon" podcast card is a plain <div>, so no link affordance. */
.cc-media-coming { background: var(--cc-cream); }
.cc-media-coming .cc-media-cta { color: var(--cc-muted); font-weight: 400; font-style: italic; }
.cc-media-coming .cc-media-name,
.cc-media-coming .cc-media-kind { color: var(--cc-muted); }
/* Top "Give Now" action. */

/* --- Beliefs --------------------------------------------------------------- */
/* Sticky index on desktop, full statement beside it. The index is ordinary
   anchor links, so it works without JavaScript; main.js only marks the section
   currently in view. */
.cc-beliefs-index {
    padding: var(--space-4);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius-lg);
    background: var(--cc-cream);
}
.cc-beliefs-index ol {
    display: grid;
    gap: .4rem;
    margin: 0;
    padding-left: 1.25rem;
}
.cc-beliefs-index a {
    color: var(--cc-green-900);
    font-weight: 600;
    text-decoration: none;
}
.cc-beliefs-index a:hover { color: var(--cc-maroon-700); text-decoration: underline; }
.cc-beliefs-index a[aria-current="true"] { color: var(--cc-maroon-700); }
@media (min-width: 992px) {
    .cc-beliefs-index {
        position: sticky;
        top: calc(var(--cc-topbar-h) + 1rem);
    }
}
.cc-belief {
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--cc-line);
}
.cc-belief:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
.cc-belief p { max-width: 72ch; margin-bottom: 0; }

/* --- Page header / breadcrumbs -------------------------------------------- */
/* Dark on the left, lighter on the right, so the band has depth instead of a
   flat fill. Every text colour below still measures >= 4.5:1 at the lightest
   point it can sit on (--cc-green-500 is the limit). */
.cc-page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg,
        var(--cc-green-900) 0%,
        var(--cc-green-700) 58%,
        var(--cc-green-500) 100%);
    color: var(--cc-on-dark);
    padding-block: var(--space-6) var(--space-7);
}
.cc-page-header > .container { position: relative; z-index: 1; }

/* Faded cross, anchored right. The source art is black on transparent, so it is
   used as a mask and takes its colour from `background-color` - painting it as
   an image would put black on dark green and it would vanish. Decorative: it is
   a pseudo-element, so it never reaches the accessibility tree. */
.cc-page-header::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(42%, 460px);
    background-color: var(--cc-white);
    -webkit-mask: url("/assets/img/cross-only-black.png") no-repeat right center / contain;
            mask: url("/assets/img/cross-only-black.png") no-repeat right center / contain;
    opacity: .07;
    pointer-events: none;
}
@media (max-width: 767.98px) {
    /* Narrower bands put the mark straight under the lead copy, so it is pulled
       back rather than removed - enough to read as texture, not as a smudge. */
    .cc-page-header::after { width: 60%; opacity: .05; }
}
.cc-page-header h1 { color: var(--cc-white); }
.cc-breadcrumbs { margin-bottom: var(--space-4); font-size: .875rem; }
.cc-breadcrumbs-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; }
.cc-breadcrumbs-item { color: var(--cc-on-dark-muted); }
.cc-breadcrumbs-item + .cc-breadcrumbs-item::before { content: "/"; margin-right: var(--space-2); color: rgba(255,255,255,.55); }
.cc-breadcrumbs-item a { color: var(--cc-on-dark); }
.cc-breadcrumbs-item a:hover,
.cc-breadcrumbs-item a:focus { color: var(--cc-white); }

/* --- Prose (long-form content) -------------------------------------------- */
.cc-prose { max-width: 68ch; }
.cc-prose h2 { margin-top: var(--space-6); font-size: 1.6rem; }
.cc-prose h3 { margin-top: var(--space-5); font-size: 1.25rem; }

/* --- Back to top ---------------------------------------------------------- */
.cc-back-to-top {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1040;
    width: var(--touch);
    height: var(--touch);
    border-radius: 50%;
    border: 0;
    background: var(--cc-green-700);
    color: var(--cc-white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.cc-back-to-top:hover,
.cc-back-to-top:focus { background: var(--cc-green-900); color: var(--cc-white); }

/* --- Reveal on scroll ----------------------------------------------------- */
/* Uses the independent `translate` property, not `transform`: reveal and hover
   both need to move the same element (the CTA cards among them), and a
   `transform` here silently overrode every hover lift on a revealed element. */
.cc-reveal { opacity: 0; translate: 0 12px; transition: opacity .5s ease, translate .5s ease; }
.cc-reveal.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .cc-reveal { opacity: 1; translate: none; } }

/* --- Utility -------------------------------------------------------------- */
.cc-measure { max-width: 60ch; }

/* Sticky header offset for in-page anchors. Applied to every id, not just
   :target, so JS-driven smooth scrollIntoView (hash not yet set) keeps the
   sticky header clear of the heading too. */
[id] { scroll-margin-top: calc(var(--cc-topbar-h) + 1rem); }


/* --- Conference ----------------------------------------------------------- */
/* Banner slideshow. The first slide ships visible and the rest are positioned
   off-stage to the right, so with JavaScript off the band is still a usable
   single image. slideshow.js adds the sweep, the controls and the timer. */
.cc-section--tight { padding-block: var(--space-6); }
.cc-section--tight-top { padding-top: var(--space-5); }

.cc-slideshow {
    position: relative;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--cc-green-900);
    box-shadow: var(--shadow-md);
}
.cc-slideshow-track { position: absolute; inset: 0; }
.cc-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(6%);
    transition: opacity .5s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
.cc-slide.is-active { opacity: 1; transform: none; z-index: 1; }
.cc-slide.is-prev { transform: translateX(-6%); }
.cc-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cc-slide-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-7) var(--space-5) var(--space-4);
    background: linear-gradient(0deg,
        rgba(18,48,31,.92) 0%,
        rgba(18,48,31,.7) 45%,
        rgba(18,48,31,0) 100%);
    color: var(--cc-white);
}
.cc-slide-year {
    font-family: var(--cc-font-display);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1;
}
.cc-slide-theme { color: var(--cc-on-dark); }
.cc-slide-link {
    margin-left: auto;
    color: var(--cc-white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.cc-slide-link:hover { color: var(--cc-on-dark-accent); }

.cc-slideshow-controls {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 2;
    display: flex;
    gap: var(--space-2);
}
.cc-slideshow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: var(--touch);
    height: var(--touch);
    padding-inline: var(--space-2);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    background: rgba(18,48,31,.82);
    color: var(--cc-white);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
}
.cc-slideshow-btn:hover { background: var(--cc-green-900); }
.cc-slideshow-btn:focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 2px; }
.cc-slideshow-toggle { padding-inline: var(--space-3); }

.cc-slideshow-icon {
    display: inline-block;
    width: .65rem;
    height: .75rem;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}
.cc-slideshow-toggle[aria-pressed="true"] .cc-slideshow-icon {
    width: 0;
    height: 0;
    border-left: 9px solid currentColor;
    border-right: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Conference banner list. Each banner is one whole-block link to that year's
   YouTube playlist. The list is two across from tablet up; because the frame is
   a fixed 3:1 (`--cc-banner-ratio`) and the artwork is shown whole, halving the
   width halves each banner's height, so the whole archive is half as tall as
   the single-column version and needs far less scrolling. Phones stay one up,
   where a half-width banner would be too small to read. A text overlay (the
   year, plus a watch cue) sits over each banner and fades out on hover to
   reveal the artwork uncovered. */
.cc-banner-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .cc-banner-list { grid-template-columns: repeat(2, 1fr); }
}
.cc-banner-link {
    --cc-banner-ratio: 3 / 1;
    position: relative;
    display: block;
    /* The ratio lives on the block, so a year without artwork still has the
       panel's height (the absolutely-positioned overlay adds none). */
    aspect-ratio: var(--cc-banner-ratio);
    /* The whole block is the link, so no underline: the overlay's year would
       otherwise inherit one from the anchor (in Bootstrap's link blue). */
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--cc-green-900), var(--cc-green-700));
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.cc-banner-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--cc-banner-ratio);
    object-fit: cover;
}

/* The overlay covers the banner until hover, then fades away (eased) to show
   the artwork beneath. It is a scrim plus the year, so the label stays legible
   whatever the artwork does. */
.cc-banner-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    text-align: center;
    color: var(--cc-on-dark);
    background: linear-gradient(135deg, rgba(18, 48, 31, .84), rgba(30, 77, 51, .76));
    opacity: 1;
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1);
}
.cc-banner-year {
    font-family: var(--cc-font-display);
    /* Sized for the two-up cell (about half the old single-column width), so the
       year does not dominate the shorter frame. */
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
}
.cc-banner-cta {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cc-on-dark-accent);
}
.cc-banner-link:focus-visible {
    outline: 3px solid var(--cc-focus);
    outline-offset: 3px;
}
@media (hover: hover) {
    .cc-banner-link:hover { box-shadow: var(--shadow-md); }
    /* Mouse only: pointer hover reveals the artwork. Keyboard focus keeps the
       overlay, so the year stays visible while the ring shows the target. */
    .cc-banner-link:hover .cc-banner-overlay { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cc-banner-link { transition: none; }
    .cc-banner-overlay { transition: none; }
}

.cc-archive-foot {
    max-width: 70ch;
    margin: var(--space-5) 0 0;
    color: var(--cc-muted);
}

@media (max-width: 575.98px) {
    .cc-year { grid-template-columns: 1fr; }
    .cc-slide-link { margin-left: 0; }
    .cc-slideshow-controls { top: var(--space-2); right: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
    .cc-slide { transition: none; }
}

/* --- Giving Tuesday landing page (focused campaign layout) ---------------- */
/* $page_layout = 'landing' swaps the full nav and announcement bands for a slim
   sticky bar and a minimal footer, so the campaign page has one job. main.js
   finds no .cc-topbar here, so --cc-topbar-h stays at the value set below and
   drives the in-page anchor offset. */
.cc-landing { --cc-topbar-h: 4.5rem; }

.cc-landing-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--cc-white);
    border-bottom: 1px solid var(--cc-line);
}
.cc-landing-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-2);
}
.cc-landing-bar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.cc-landing-bar-site {
    color: var(--cc-green-900);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.cc-landing-bar-site:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
    /* Phones keep the bar to brand + Give; the footer carries the way back. */
    .cc-landing-bar-site { display: none; }
}

/* --- Hero: full-bleed photography, editorial copy, give panel ------------- */
/* The photo is a real <img> (not a CSS background) so it can be preloaded and
   it is the LCP element. The scrim keeps every line of copy at 4.5:1 or better
   over the busiest part of the frame. */
.cc-gt-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: calc(100svh - 4.5rem);
    background: var(--cc-green-900);
    color: var(--cc-on-dark);
}
@supports not (height: 100svh) {
    .cc-gt-hero { min-height: calc(100vh - 4.5rem); }
}
.cc-gt-hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}
.cc-gt-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 48, 31, .08) 0%, rgba(18, 48, 31, .28) 55%, rgba(18, 48, 31, .82) 100%),
        linear-gradient(90deg, rgba(18, 48, 31, .8) 0%, rgba(18, 48, 31, .46) 45%, rgba(18, 48, 31, .02) 100%);
}
.cc-gt-hero-grid {
    display: grid;
    gap: var(--space-6);
    align-items: center;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 992px) {
    .cc-gt-hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(21rem, .8fr);
        gap: var(--space-8);
        padding-block: clamp(3rem, 6vw, 5rem);
    }
}
.cc-gt-hero-copy { max-width: 36rem; }
.cc-gt-hero .cc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--cc-on-dark-accent);
    margin-bottom: var(--space-3);
}
.cc-gt-hero .cc-eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 2px;
    background: var(--cc-gold-300);
}
.cc-gt-hero-title {
    font-size: clamp(3rem, 8.5vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.025em;
    font-weight: 500;
    color: var(--cc-white);
    margin: 0 0 var(--space-4);
    text-wrap: balance;
}
.cc-gt-hero-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.55;
    color: var(--cc-on-dark-muted);
    max-width: 32rem;
    margin: 0;
}
.cc-gt-hero-jubilee {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(233, 201, 160, .45);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cc-on-dark-accent);
}
.cc-gt-hero-jubilee-num {
    font-family: var(--cc-font-display);
    font-size: 2.35rem;
    line-height: .8;
    letter-spacing: 0;
}
.cc-gt-hero-panel { width: 100%; max-width: 30rem; }
@media (min-width: 992px) { .cc-gt-hero-panel { justify-self: end; } }
@media (max-width: 991.98px) {
    .cc-gt-hero { min-height: auto; }
    .cc-gt-hero-panel { max-width: 34rem; }
}

/* --- The give panel ------------------------------------------------------- */
.cc-gt-panel {
    background: var(--cc-white);
    color: var(--cc-ink);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--cc-gold-300);
    padding: clamp(1.15rem, 2.4vw, 1.75rem);
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .6);
}
.cc-gt-panel-eyebrow {
    margin: 0 0 var(--space-3);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cc-maroon-700);
}
.cc-gt-freq {
    display: flex;
    gap: .25rem;
    padding: .25rem;
    margin-bottom: var(--space-4);
    background: var(--cc-cream);
    border: 1px solid var(--cc-line);
    border-radius: 999px;
}
.cc-gt-freq[hidden] { display: none; }
.cc-gt-freq-btn {
    flex: 1 1 0;
    min-height: var(--touch);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cc-muted);
    font: inherit;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.cc-gt-freq-btn:hover { color: var(--cc-green-900); }
.cc-gt-freq-btn[aria-pressed="true"] {
    background: var(--cc-green-700);
    color: var(--cc-white);
    box-shadow: var(--shadow-sm);
}
.cc-gt-freq-btn:focus-visible {
    outline: 3px solid var(--cc-focus);
    outline-offset: 2px;
}
.cc-gt-amounts {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}
.cc-gt-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: var(--space-2) var(--space-2);
    border: 1.5px solid var(--cc-green-700);
    border-radius: var(--radius);
    background: var(--cc-white);
    color: var(--cc-green-900);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cc-gt-amount:hover,
.cc-gt-amount:focus,
.cc-gt-amount:focus-visible {
    background: var(--cc-green-700);
    border-color: var(--cc-green-700);
    color: var(--cc-white);
}
.cc-gt-amounts-other { grid-column: 1 / -1; }
.cc-gt-amount--other { border-style: dashed; }
.cc-gt-panel-give { width: 100%; font-size: 1.05rem; }
.cc-gt-panel-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .3rem .55rem;
    margin: var(--space-3) 0 0;
    font-size: .85rem;
    text-align: center;
}
.cc-gt-panel-alt a {
    color: var(--cc-green-700);
    font-weight: 600;
    text-underline-offset: .15em;
}
.cc-gt-panel-alt a:hover { color: var(--cc-maroon-700); }
.cc-gt-panel.is-enhanced .cc-gt-monthly-fallback { display: none; }
.cc-gt-panel.is-enhanced .cc-gt-panel-dot:first-of-type { display: none; }
.cc-gt-panel-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: var(--space-3) 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--cc-line);
    font-size: .78rem;
    color: var(--cc-muted);
}
.cc-gt-panel-secure svg { flex: 0 0 auto; }

/* --- Trust strip ---------------------------------------------------------- */
.cc-gt-truststrip {
    background: var(--cc-cream);
    border-bottom: 1px solid var(--cc-line);
}
.cc-gt-truststrip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.75rem;
    margin: 0;
    padding-block: .85rem;
    list-style: none;
    font-size: .8rem;
    font-weight: 600;
    color: var(--cc-muted);
}
.cc-gt-truststrip-list li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.cc-gt-truststrip-list svg { color: var(--cc-green-700); }

/* --- Who we are ----------------------------------------------------------- */
.cc-gt-who { background: var(--cc-white); }
.cc-gt-split {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}
@media (min-width: 992px) {
    .cc-gt-split {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        gap: var(--space-8);
    }
}
.cc-gt-split-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--cc-green-900);
    box-shadow: var(--shadow-md);
}
.cc-gt-split-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}
.cc-gt-split-motto {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--cc-green-900);
    border-top: 3px solid var(--cc-gold-300);
}
.cc-gt-split-motto-text {
    font-family: var(--cc-font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .06em;
    color: var(--cc-white);
}
.cc-gt-split-motto-sub {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cc-on-dark-accent);
}
.cc-gt-split-copy { max-width: 40rem; }
.cc-gt-split-copy h2 { margin-bottom: var(--space-4); }

/* --- Our goal ------------------------------------------------------------- */
.cc-gt-goal-head {
    display: grid;
    gap: var(--space-5);
    align-items: end;
}
@media (min-width: 992px) {
    .cc-gt-goal-head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-8);
    }
}
.cc-gt-goal-figure {
    margin: 0;
    font-family: var(--cc-font-display);
    font-size: clamp(3.25rem, 9vw, 6.25rem);
    font-weight: 600;
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--cc-maroon-700);
    font-variant-numeric: tabular-nums;
}
.cc-gt-goal-caption {
    margin: var(--space-2) 0 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cc-muted);
}
.cc-gt-goal-copy { max-width: 42rem; }
.cc-gt-goal-copy p:last-child { margin-bottom: 0; }

.cc-gt-alloc { margin-top: var(--space-7); }
.cc-gt-alloc-bar {
    display: flex;
    height: .9rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--cc-line);
    box-shadow: inset 0 1px 2px rgba(18, 48, 31, .15);
}
.cc-gt-alloc-seg { display: block; height: 100%; }
/* Fixed split: 200k / 100k / 500k. Change these if the amounts change. */
.cc-gt-alloc-seg--center { flex: 200; background: var(--cc-maroon-700); }
.cc-gt-alloc-seg--vans   { flex: 100; background: var(--cc-gold-300); }
.cc-gt-alloc-seg--campus { flex: 500; background: var(--cc-green-700); }
.cc-gt-alloc-legend {
    display: grid;
    gap: .55rem 1.5rem;
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
    font-size: .88rem;
    color: var(--cc-muted);
}
@media (min-width: 768px) {
    .cc-gt-alloc-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cc-gt-alloc-legend li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2rem .5rem;
}
.cc-gt-alloc-dot {
    flex: 0 0 auto;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    translate: 0 .05rem;
}
.cc-gt-alloc-dot--center { background: var(--cc-maroon-700); }
.cc-gt-alloc-dot--vans   { background: var(--cc-gold-300); }
.cc-gt-alloc-dot--campus { background: var(--cc-green-700); }
.cc-gt-alloc-amount { color: var(--cc-green-900); }

.cc-gt-projects {
    display: grid;
    gap: var(--space-5);
    margin-top: var(--space-7);
}
@media (min-width: 768px) {
    .cc-gt-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cc-gt-project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cc-white);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cc-gt-project-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--cc-green-900);
}
.cc-gt-project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.cc-gt-project-body {
    padding: var(--space-5);
    border-top: 3px solid var(--cc-maroon-700);
}
.cc-gt-project-amount {
    font-family: var(--cc-font-display);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--cc-maroon-700);
    margin: 0 0 var(--space-2);
    font-variant-numeric: tabular-nums;
}
.cc-gt-project-text {
    margin: 0;
    font-size: .96rem;
    color: var(--cc-muted);
}
@media (hover: hover) {
    .cc-gt-project:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .cc-gt-project:hover .cc-gt-project-media img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .cc-gt-project,
    .cc-gt-project-media img { transition: none; }
    .cc-gt-project:hover { transform: none; }
    .cc-gt-project:hover .cc-gt-project-media img { transform: none; }
}

/* --- Jubilee facts -------------------------------------------------------- */
.cc-gt-jubilee {
    position: relative;
    overflow: hidden;
}
.cc-gt-jubilee .container { position: relative; z-index: 1; }
.cc-gt-jubilee-head {
    max-width: 44rem;
    margin-bottom: var(--space-6);
}
.cc-gt-jubilee-mark {
    position: absolute;
    right: -.16em;
    bottom: -.44em;
    z-index: 0;
    font-family: var(--cc-font-display);
    font-size: clamp(16rem, 30vw, 26rem);
    font-weight: 600;
    line-height: .7;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
    user-select: none;
}
.cc-gt-stats { text-align: left; }
@media (min-width: 768px) { .cc-gt-stats { text-align: center; } }
.cc-gt-stats .cc-stat-label { color: var(--cc-on-dark-muted); }

/* --- Scripture ------------------------------------------------------------ */
.cc-gt-scripture {
    position: relative;
    overflow: hidden;
    background: var(--cc-maroon-900);
    color: var(--cc-white);
    padding-block: clamp(3rem, 7vw, 5.5rem);
}
.cc-gt-scripture::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 120% at 50% 0%, rgba(233, 201, 160, .12), transparent 70%);
    pointer-events: none;
}
.cc-gt-scripture .container { position: relative; }
.cc-gt-scripture-quote {
    max-width: 52rem;
    margin: 0 auto;
    padding-top: var(--space-5);
    border-top: 2px solid var(--cc-gold-300);
    text-align: center;
}
.cc-gt-scripture-quote p {
    margin: 0;
    font-family: var(--cc-font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.32;
    letter-spacing: -.005em;
    color: #fdf6ea;
    text-wrap: balance;
}
.cc-gt-scripture-quote footer {
    margin-top: var(--space-4);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cc-on-dark-accent);
}
.cc-gt-scripture-quote cite {
    margin-left: .5rem;
    font-style: normal;
    opacity: .8;
}

/* --- Give section --------------------------------------------------------- */
.cc-gt-give { background: var(--cc-white); }
.cc-gt-give-head { max-width: 46rem; }
.cc-gt-give-grid {
    display: grid;
    gap: var(--space-5);
    margin-top: var(--space-6);
    align-items: start;
}
@media (min-width: 992px) {
    .cc-gt-give-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
}
.cc-gt-give .cc-gt-panel { max-width: none; box-shadow: var(--shadow-md); }
.cc-gt-give-note {
    margin: var(--space-3) 0 0;
    text-align: center;
    font-size: .88rem;
    color: var(--cc-muted);
}
.cc-gt-ways {
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid var(--cc-line);
}
.cc-gt-ways-title {
    margin: 0 0 var(--space-4);
    font-size: 1.35rem;
}
.cc-gt-trust {
    max-width: 40rem;
    margin: var(--space-6) auto 0;
    text-align: center;
    color: var(--cc-muted);
    font-size: .92rem;
}

/* --- Sticky mobile give bar ---------------------------------------------- */
.cc-gt-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: .7rem max(1rem, env(safe-area-inset-left)) calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(18, 48, 31, .97);
    color: var(--cc-white);
    border-top: 1px solid rgba(233, 201, 160, .35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    transform: translateY(110%);
    transition: transform .25s ease;
}
.cc-gt-sticky[hidden] { display: none; }
.cc-gt-sticky.is-visible { transform: none; }
.cc-gt-sticky-text {
    margin: 0;
    line-height: 1.2;
    font-size: .85rem;
}
.cc-gt-sticky-text strong {
    display: block;
    font-family: var(--cc-font-display);
    font-size: 1.15rem;
    color: var(--cc-white);
}
.cc-gt-sticky-text span { color: var(--cc-on-dark-muted); }
@media (min-width: 992px) { .cc-gt-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .cc-gt-sticky { transition: none; }
}
/* The bar sits over the back-to-top button and the footer's last line; lift
   both while it is active. */
@media (max-width: 991.98px) {
    body.cc-has-give-bar { padding-bottom: 5.25rem; }
    /* The sticky bar is the persistent action on a phone; the back-to-top
       button would otherwise land on the footer's link row. */
    body.cc-has-give-bar .cc-back-to-top { display: none; }
}

/* Campaign promo at the top of /give/ while the window is open. */
.cc-gt-promo {
    background: var(--cc-gold-100);
    color: var(--cc-green-900);
    border-bottom: 1px solid var(--cc-gold-300);
}
.cc-gt-promo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3) var(--space-4);
    padding-block: var(--space-4);
    text-align: center;
}
.cc-gt-promo-eyebrow {
    margin: 0 0 .15rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cc-maroon-900);
}
.cc-gt-promo-text { font-size: 1.05rem; }

.cc-landing-foot {
    background: var(--cc-green-900);
    color: var(--cc-on-dark);
    padding-block: var(--space-7);
    text-align: center;
}
.cc-landing-foot-brand {
    font-family: var(--cc-font-display);
    font-size: 1.4rem;
    color: var(--cc-white);
    margin-bottom: var(--space-2);
}
.cc-landing-foot-legal {
    color: var(--cc-on-dark-muted);
    font-size: .9rem;
    max-width: 36rem;
    margin: 0 auto var(--space-4);
}
.cc-landing-foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-5);
    margin-bottom: var(--space-5);
}
.cc-landing-foot-links a { color: var(--cc-on-dark); font-weight: 600; }
.cc-landing-foot-links a:hover { color: var(--cc-white); }
.cc-landing-foot-copy { color: var(--cc-on-dark-muted); font-size: .85rem; margin: 0; }

/* --- Social links ---------------------------------------------------------- */
/* One inline-SVG icon per channel (Facebook, Instagram, YouTube), no icon font
   and no external request. Each link is a round ≥44px target; the icon paints
   with currentColor, so the `--dark` modifier recolours the whole row for the
   green footer band. */
.cc-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
}
.cc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch);
    height: var(--touch);
    border-radius: 999px;
    color: var(--cc-green-700);
    background: var(--cc-cream);
    border: 1px solid var(--cc-line);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cc-social-icon { width: 22px; height: 22px; display: block; }
.cc-social-link:hover,
.cc-social-link:focus-visible {
    background: var(--cc-green-700);
    border-color: var(--cc-green-700);
    color: var(--cc-white);
}
/* Keep the pill shape while the global focus ring is drawn. */
.cc-social-link:focus-visible { border-radius: 999px; }

.cc-social--dark .cc-social-link {
    color: var(--cc-on-dark);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
}
.cc-social--dark .cc-social-link:hover,
.cc-social--dark .cc-social-link:focus-visible {
    background: var(--cc-white);
    border-color: var(--cc-white);
    color: var(--cc-green-900);
}

/* --- Instagram band -------------------------------------------------------- */
.cc-insta-heading { max-width: 60ch; }
.cc-insta-grid {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 576px) {
    .cc-insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .cc-insta-grid--teaser { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .cc-insta-grid--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .cc-insta-grid--grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cc-insta-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: var(--cc-cream);
    box-shadow: var(--shadow-sm);
}
.cc-insta-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.cc-insta-link:focus-visible {
    outline: 3px solid var(--cc-focus);
    outline-offset: 2px;
    border-radius: var(--radius);
}
/* A small Instagram badge rises into the corner on hover/focus, so the tile
   reads as "open on Instagram". Touch devices get no badge — the whole tile is
   already the link. */
.cc-insta-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(18, 48, 31, .8);
    color: var(--cc-white);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}
.cc-insta-badge .cc-social-icon { width: 15px; height: 15px; }
.cc-insta-link:hover .cc-insta-badge,
.cc-insta-link:focus-visible .cc-insta-badge { opacity: 1; transform: none; }
@media (hover: hover) {
    .cc-insta-link:hover .cc-insta-img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .cc-insta-img,
    .cc-insta-badge { transition: none; }
    .cc-insta-link:hover .cc-insta-img { transform: none; }
}
.cc-insta-follow { margin: var(--space-6) 0 0; text-align: center; }

/* The incoming layer for the placeholder cross-fade (assets/js/instagram.js):
   stacked over the base image and faded in, then reset. */
.cc-insta-img--over {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
