/* ------------------------------------------------------------------
   Lancashire LGBT — design system
   Vibe: the logo's DNA — rounded, overlapping, translucent colour.
   Rules: text is always ink; colour lives in the graphic system
   (blob clusters, wave dividers, squiggles) and pink for actions.
   ------------------------------------------------------------------ */

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-var.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'Caveat';
    src: url('../fonts/caveat-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage-var.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-400i.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    /* Brand — from the logo */
    --pink: #e8008c;
    --pink-deep: #c40077;
    --blue: #065dad;
    --cyan: #04a4cc;
    --purple: #975fa7;
    --green: #a9c938;
    --yellow: #f6c738;
    --orange: #fc9400;

    /* Neutrals */
    --ink: #23343f;
    --ink-soft: #55676f;
    --paper: #ffffff;
    --tint: #f4f8f9;

    /* Type */
    --font-display: 'Bricolage Grotesque', sans-serif; /* alts still loaded: Manrope */
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script: 'Caveat', cursive;

    /* Layout */
    --content-width: 46rem;
    --wide-width: 74rem;
    --gutter: 1.5rem;
    --radius: 22px;

    /* Motion */
    --spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 2.2em 0 0.5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p, ul, ol { margin: 0 0 1.2em; }

a { color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.content-width { max-width: var(--content-width); margin-inline: auto; padding-inline: var(--gutter); }
.wide-width { max-width: var(--wide-width); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1.2rem;
    z-index: 300;
    border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Buttons ------------------------------------------------------ */

.button,
.wp-block-button__link {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.7rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover,
.wp-block-button__link:hover { background: var(--pink-deep); color: #fff; transform: translateY(-1px); }

.button--outline {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink);
}
.button--outline:hover { background: var(--ink); color: #fff; }

/* --- EXIT quick-escape button ------------------------------------ */

.exit-button {
    position: fixed;
    right: 0;
    top: 38%;
    /* Above EVERYTHING. This is the quick-escape: if a layer can cover it,
       someone who needs off this site right now can't get off it.
       It sat at 250, which was only ever safe by luck — the directory veil
       (290) can't reach it because that veil is nested inside
       .page-hero__inner {z-index:1}, so its z-index is scoped to that
       stacking context. The search overlay is a body-level child, so at 280
       it *did* paint over EXIT. Any new full-screen layer must stay below
       this number — and don't rely on a parent trapping it. */
    z-index: 400;
    background: var(--pink);
    color: #fff;
    border: 3px solid #fff;
    border-right: none;
    border-radius: 999px 0 0 999px;
    padding: 0.8rem 1.1rem 0.8rem 1.3rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(35, 52, 63, 0.25);
}
.exit-button:hover,
.exit-button:focus { background: var(--ink); }

/* --- Header ------------------------------------------------------- */
/* Floats over the hero: logo in a white circle, nav in a white pill.
   On scroll it condenses: nav links collapse, the pill glides left and
   docks onto the shrunken logo circle as one island. */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}
body.admin-bar .site-header { top: 32px; }

.site-header__inner {
    max-width: var(--wide-width);
    margin-inline: auto;
    padding: clamp(1rem, 2.5vw, 1.6rem) var(--gutter) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Social — bare icons sitting straight on the hero, no card of their own.
   margin-right:auto keeps them hugging the logo (the header row is
   space-between, so without it they'd drift to the middle).
   Colour follows the hero's own ink rule via the class body_class puts on
   <body>: white on purple/pink, ink on green/cyan where white would fail,
   and ink over the plain tint hero on news/search/404 (no class = fallback). */
.site-social {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1.2vw, 0.9rem);
    margin: 0 auto 0 clamp(0.9rem, 1.8vw, 1.4rem);
    padding: 0;
    list-style: none;
    color: var(--hero-ink, var(--ink));
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
/* The glyph is 1.15rem, but the link stays a 24px hit area (WCAG 2.5.8) —
   the footer pair is the only social route on phones. */
.site-social a {
    display: grid;
    place-items: center;
    width: 1.5rem;
    aspect-ratio: 1;
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s var(--spring);
}
.site-social a:hover { opacity: 1; transform: translateY(-2px); }
.site-social svg { width: 1.15rem; height: 1.15rem; display: block; }

/* Gone once the island docks. visibility, not just opacity — otherwise they
   stay in the tab order while invisible (same trap as the collapsed nav). */
.site-header.is-scrolled .site-social {
    opacity: 0;
    visibility: hidden;
}

/* No room for logo + icons + pill on a phone — the Donate pill gets pushed
   off the right edge. The footer carries social there instead. */
@media (max-width: 700px) {
    .site-header .site-social { display: none; }
}

/* Footer — ink on the light tint, and they don't hide or fade. */
.site-social--footer {
    margin: 1.1rem 0 0;
    color: var(--ink);
}
.site-social--footer a { opacity: 0.7; }
.site-social--footer a:hover { opacity: 1; color: var(--pink-deep); }

.site-header .custom-logo-link,
.site-header__logo {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(5.25rem, 8.5vw, 6.75rem);
    aspect-ratio: 1;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 28px rgba(35, 52, 63, 0.16);
    text-decoration: none;
    flex-shrink: 0;
    transition: width 0.55s var(--spring), background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header .custom-logo {
    max-height: 58%;
    max-width: 62%;
    width: auto;
    transform: translateY(5%);
    transition: max-height 0.55s var(--spring), max-width 0.55s var(--spring);
}
.site-header__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }

.site-header__pill {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.45rem;
    box-shadow: 0 6px 28px rgba(35, 52, 63, 0.16);
    transition: transform 0.55s var(--spring), padding 0.55s var(--spring);
}

/* Condensed island (scrolled): circle dissolves, pill swallows the logo */
.site-header.is-scrolled .custom-logo-link,
.site-header.is-scrolled .site-header__logo {
    width: 3.25rem;
    background: transparent;
    box-shadow: none;
}
.site-header.is-scrolled .custom-logo { max-height: 82%; max-width: 86%; }
.site-header.is-scrolled .site-header__pill {
    transform: translateX(var(--dock, 0px));
    padding-left: 4.4rem;
}

.site-nav {
    display: grid;
    grid-template-columns: 1fr;
    transition: grid-template-columns 0.5s var(--spring), opacity 0.3s ease, visibility 0.5s;
}
/* visibility as well as opacity: a 0fr column still leaves the links in the
   keyboard tab order, so they'd be tabbable while invisible. */
.site-header.is-scrolled .site-nav:not(.is-open) {
    grid-template-columns: 0fr;
    opacity: 0;
    visibility: hidden;
}
.site-header.is-scrolled .site-nav__list,
.site-header.nav-anim .site-nav__list {
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* While measuring dock distance, everything snaps instantly */
.site-header.is-measuring,
.site-header.is-measuring * { transition: none !important; }

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list > li > a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink);
}
.site-nav__list > li > a:hover,
.site-nav__list > li.current-menu-item > a,
.site-nav__list > li.current-menu-ancestor > a { background: var(--tint); color: var(--pink-deep); }

/* Dropdowns */
.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    background: #fff;
    border-radius: 16px;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    display: none;
    z-index: 210;
}
/* The accordion wrapper stays out of the desktop dropdown's way */
.site-nav .sub-wrap { display: contents; }
.site-nav .menu-item-has-children:hover > .sub-wrap > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-wrap > .sub-menu { display: block; }
.site-nav .sub-menu a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
}
.site-nav .sub-menu a:hover { background: var(--tint); color: var(--pink-deep); }
.site-nav .sub-menu .sub-menu { position: static; box-shadow: none; padding: 0 0 0 0.9rem; display: block; }

.site-header__donate { flex-shrink: 0; }

.nav-toggle {
    display: none;
    align-items: center;
    background: none;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle:hover { background: var(--tint); }
.site-header.is-scrolled .nav-toggle { display: inline-flex; }

/* The panel menu. The toggle only exists on mobile and on the condensed
   island, so .is-open always means "panel" — one floating card either way,
   hung off whichever end of the pill is nearer the middle of the screen. */
.site-nav.is-open {
    display: block;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: auto;
    width: min(21rem, calc(100vw - 2rem));
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 44px rgba(35, 52, 63, 0.22);
    padding: 0.6rem;
    opacity: 1;
}
/* Docked left on scroll, so the panel drops from the left edge instead */
.site-header.is-scrolled .site-nav.is-open { left: 0; right: auto; }

.site-nav.is-open .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    overflow: visible;
    min-width: 0;
    padding: 0;
}
.site-nav.is-open .site-nav__list > li > a { display: block; }

/* Panel menu — the condensed island's dropdown and the mobile menu are the
   same thing. Twenty-odd links is too long to scroll, so each parent
   collapses into an accordion and only the section you're in starts open. */
.site-nav .sub-toggle { display: none; }

.site-nav.is-open .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.site-nav.is-open .menu-item-has-children > a { flex: 1; }

.site-nav.is-open .sub-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
}
.site-nav.is-open .sub-toggle:hover { background: var(--tint); color: var(--pink-deep); }
.site-nav.is-open .sub-toggle__chevron {
    width: 0.48rem;
    height: 0.48rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.35s var(--spring);
}
.site-nav.is-open .is-expanded > .sub-toggle .sub-toggle__chevron {
    transform: translateY(0.08rem) rotate(-135deg);
}

.site-nav.is-open .sub-wrap {
    display: grid;
    grid-template-rows: 0fr;
    flex-basis: 100%;
    transition: grid-template-rows 0.4s var(--spring);
}
.site-nav.is-open .is-expanded > .sub-wrap { grid-template-rows: 1fr; }
.site-nav.is-open .sub-wrap > .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    border-radius: 0;
    margin: 0 0 0 0.9rem;
    padding: 0 0 0 0.85rem;
    border-left: 2px solid var(--tint);
    transition: visibility 0.4s;
}
.site-nav.is-open .is-expanded > .sub-wrap > .sub-menu { visibility: visible; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-header__inner { padding-inline: 1rem; }
    .site-header__pill { padding: 0.35rem 0.4rem; }
    /* The pill stays a pill — the menu is the floating panel above */
    .site-nav { display: none; margin: 0; }
    .site-header__donate { padding: 0.45rem 1.1rem; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header * { transition: none !important; }
}

@media (max-width: 380px) {
    .site-header__donate { display: none; }
}

/* --- Page hero ------------------------------------------------------ */

.page-hero {
    position: relative;
    background: var(--tint);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero__inner {
    position: relative;
    max-width: var(--wide-width);
    margin-inline: auto;
    padding: clamp(9.5rem, 15vw, 13rem) var(--gutter) clamp(4.5rem, 8vw, 7rem);
    text-align: center;
    z-index: 1;
}
/* The h1 is a small handwritten label — you clicked it, you know where you
   are. The intro underneath is the statement and carries the size. */
.page-hero h1,
.page-hero__label {
    margin: 0 auto;
    max-width: 24ch;
    font-family: var(--font-script);
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}
.page-hero .entry-meta { margin: 0.75rem 0 0; color: var(--ink-soft); font-weight: 500; }

/* Hero colour — one of four brand hues, random each load. The class sits on
   the <article> so the hero, lede heading and sidebar share the same hue.
   --hero-ink: text on the hero; --hero-deep: the hue made text-safe on white. */

.hero-grad-0 { --hero-c: #975fa7; --hero-ink: #fff;       --hero-deep: #975fa7; }
.hero-grad-1 { --hero-c: #de1b53; --hero-ink: #fff;       --hero-deep: #de1b53; }
.hero-grad-2 { --hero-c: #a4cf5c; --hero-ink: var(--ink); --hero-deep: #6f8f2b; }
.hero-grad-3 { --hero-c: #42b8d2; --hero-ink: var(--ink); --hero-deep: #1c86a0; }

/* One hue only: light falls from the top right, deepens bottom left,
   with a breath of film grain over it so the flat colour has air. */
.page-hero--grad {
    background:
        linear-gradient(
            250deg,
            color-mix(in srgb, var(--hero-c), #fff 16%) 0%,
            var(--hero-c) 52%,
            color-mix(in srgb, var(--hero-c), #000 18%) 100%
        );
}
.page-hero--grad::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
    mix-blend-mode: overlay;
    opacity: 0.6;
    pointer-events: none;
}
/* Halftone dot field down the hero's right side (canvas, drawn in main.js).
   First child of .page-hero so every later sibling paints over it. */
.hero-dots {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(46%, 620px);
    height: 100%; /* the media reset's height:auto would squash it to the bitmap ratio */
    pointer-events: none;
}

.page-hero--grad h1,
.page-hero--grad .page-hero__label { color: var(--hero-ink, #fff); }
.page-hero--grad .page-hero__intro {
    color: var(--hero-ink, #fff);
    margin: 1rem auto 0;
    max-width: 21ch;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.6vw, 4.1rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

/* **words** in the excerpt get a white brush underline */
.page-hero__intro strong {
    font-weight: inherit;
    padding-bottom: 0.06em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.2 C 24 4.6, 58 3.2, 117 5 C 88 6.4, 44 7.6, 10 10.4 C 30 8.6, 70 7.4, 112 6.6' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom / 100% 0.18em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Optional CTA under the hero statement (per-page "Hero button" meta box).
   White pill so it holds on all four hero colours; text in the hero's
   text-safe deep shade. */
.page-hero__cta {
    margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
    background: #fff;
    color: var(--hero-deep, var(--pink));
    font-size: 1.05rem;
    padding: 0.85rem 2.1rem;
    box-shadow: 0 10px 26px rgba(35, 52, 63, 0.16);
}
.page-hero__cta:hover {
    background: #fff;
    color: var(--hero-deep, var(--pink));
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(35, 52, 63, 0.22);
}

/* Archive view toggle (e.g. Directory: Services / Groups) — segmented
   pill in the hero; active segment goes white like the hero CTA. */
.view-toggle {
    display: inline-flex;
    margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.view-toggle__option {
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    color: var(--hero-ink, #fff);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.view-toggle__option:hover { background: rgba(255, 255, 255, 0.14); }
.view-toggle__option.is-active {
    background: #fff;
    color: var(--hero-deep, var(--pink));
    box-shadow: 0 10px 26px rgba(35, 52, 63, 0.16);
}

/* Directory geo tools — postcode search + list/map switch, shown in the
   hero when the active view has 'geo' => true. */
.dir-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.dir-postcode {
    display: flex;
    align-items: center;
    padding: 0.35rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(35, 52, 63, 0.16);
}
.dir-postcode input {
    border: none;
    background: none;
    font: inherit;
    color: var(--ink);
    padding: 0.45rem 0.6rem 0.45rem 1.1rem;
    width: min(11rem, 40vw);
}
.dir-postcode input:focus { outline: none; }
.dir-postcode input::placeholder { color: color-mix(in srgb, var(--ink) 45%, #fff); }
.dir-status {
    margin: 0.9rem auto 0;
    color: var(--hero-ink, #fff);
    font-weight: 600;
}

/* Full-screen "searching" moment while the postcode lookup runs —
   sits under the EXIT tab (z 300) so the escape route stays on top. */
.dir-overlay[hidden] { display: none; }
.dir-overlay {
    position: fixed;
    inset: 0;
    z-index: 290;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    animation: dir-overlay-in 0.25s ease;
}
@keyframes dir-overlay-in {
    from { opacity: 0; }
}
.dir-overlay__text {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--ink);
}
.dir-overlay__dots { display: flex; gap: 0.6rem; }
.dir-overlay__dots span {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--pink);
    animation: dir-dot 1s ease-in-out infinite;
}
.dir-overlay__dots span:nth-child(2) { background: var(--blue); animation-delay: 0.12s; }
.dir-overlay__dots span:nth-child(3) { background: var(--purple); animation-delay: 0.24s; }
.dir-overlay__dots span:nth-child(4) { background: var(--cyan); animation-delay: 0.36s; }
@keyframes dir-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.7rem); }
}
@media (prefers-reduced-motion: reduce) {
    .dir-overlay { animation: none; }
    .dir-overlay__dots span { animation: none; }
}

.item-section { scroll-margin-top: 7rem; }
.item-section__distance {
    display: inline-block;
    margin-left: 0.9rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    vertical-align: middle;
    background: color-mix(in srgb, var(--ink) 6%, #fff);
    color: color-mix(in srgb, var(--ink) 70%, #fff);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
}

/* Feature image — 16:9, straddles the hero's bottom edge into the white
   below (Trevor-style). The hero gets extra bottom padding to sit behind
   the image's top half; the image pulls itself up by the overlap. */
.page-hero--feature {
    margin-bottom: 0;
}
.page-hero--feature .page-hero__inner {
    padding-bottom: clamp(9rem, 16vw, 14rem);
}
.page-hero__feature {
    --fs-main: min(58rem, calc(100vw - 2 * var(--gutter)));
    --fs-side: clamp(15rem, 22vw, 22rem);
    --fs-gap: clamp(1.25rem, 3vw, 2.5rem);
    /* Sides tuck 40% of their width underneath the active image */
    --fs-step: calc((var(--fs-main) + var(--fs-side)) / 2 - var(--fs-side) * 0.4);
    position: relative;
    z-index: 1;
    height: calc(var(--fs-main) * 9 / 16);
    margin: calc(-1 * clamp(6rem, 11vw, 9.5rem)) 0 clamp(2.5rem, 5vw, 4.5rem);
}
/* Every slide lives at the centre and is pushed into place by --fs-x/--fs-y.
   Sides sit under the active image (z) and 30% lower (y). The two "far"
   slots wait invisibly off the viewport edges so the wrap-around move
   between them never shows. */
.page-hero__feature-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--fs-side);
    z-index: 1;
    filter: grayscale(1);
    transform: translate(calc(-50% + var(--fs-x, 0px)), var(--fs-y, -20%));
    transition:
        transform 0.9s cubic-bezier(0.33, 0, 0.15, 1),
        width 0.9s cubic-bezier(0.33, 0, 0.15, 1),
        filter 0.9s ease,
        opacity 0.9s ease;
}
.page-hero__feature-slide.is-active {
    --fs-y: -50%;
    width: var(--fs-main);
    z-index: 3;
    filter: none;
}
.page-hero__feature-slide.is-next { --fs-x: var(--fs-step); }
.page-hero__feature-slide.is-prev { --fs-x: calc(-1 * var(--fs-step)); }
.page-hero__feature-slide.is-far-next,
.page-hero__feature-slide.is-far-prev {
    z-index: 0;
    opacity: 0;
}
.page-hero__feature-slide.is-far-next { --fs-x: calc(var(--fs-step) + var(--fs-side) + var(--fs-gap)); }
.page-hero__feature-slide.is-far-prev { --fs-x: calc(-1 * (var(--fs-step) + var(--fs-side) + var(--fs-gap))); }
.page-hero__feature-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(35, 52, 63, 0.18);
}

@media (max-width: 980px) {
    .page-hero__feature-slide:not(.is-active) { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero__feature-slide { transition: none; }
}

/* Circle feature image (CPT singles) — sits centred under the hero text
   and straddles the hero's bottom edge, half into the white below. The
   hero reserves the circle's top half in its bottom padding. */
.page-hero--circle,
.page-hero__circle { --circle: clamp(13rem, 26vw, 17rem); }
.page-hero--circle { margin-bottom: 0; }
.page-hero--circle .page-hero__inner {
    padding-bottom: calc(clamp(2.75rem, 4.5vw, 3.75rem) + var(--circle) / 2);
}
.page-hero__circle {
    position: relative;
    z-index: 1;
    width: var(--circle);
    margin: calc(var(--circle) / -2) auto clamp(2rem, 4vw, 3rem);
}
.page-hero__circle img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 18px 48px rgba(35, 52, 63, 0.18);
}

/* Fact pills shown in the hero (CPT singles) — translucent white so they
   hold on every hero colour. */
.page-hero__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
}
.page-hero__facts .item-fact {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hero-ink, #fff);
}

/* --- Video embed (webinar singles) ---------------------------------- */

.video-embed { margin: 2.5rem 0; }
.video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(35, 52, 63, 0.18);
}

.single-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0 0;
}

/* --- Groups (CPT) --------------------------------------------------- */

.item-archive { padding-block: 1rem 3rem; }
.item-section { padding-block: clamp(1.5rem, 3vw, 2.5rem) 0; }
.item-section__title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin: 0 0 0.5rem;
}

/* Accordion sections (archive views with 'accordion' => true) — the
   category header is a grey card that expands; item cards inside flip
   to white so they still read as cards. */
.item-accordion {
    background: color-mix(in srgb, var(--ink) 4%, #fff);
    border-radius: var(--radius);
    interpolate-size: allow-keywords;
}
.item-accordion + .item-accordion { margin-top: 0.75rem; }
.item-accordion__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem clamp(1.5rem, 3.5vw, 2.25rem);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: -0.01em;
}
.item-accordion__summary::-webkit-details-marker { display: none; }
.item-accordion__count {
    margin-left: auto;
    padding: 0.15rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 9%, #fff);
    color: color-mix(in srgb, var(--ink) 75%, #fff);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
}
.item-accordion__summary::after {
    content: "";
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2323343f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.3s ease;
}
.item-accordion[open] > .item-accordion__summary::after { transform: rotate(180deg); }
.item-accordion__body { padding: 0 clamp(0.75rem, 1.5vw, 1rem) clamp(0.75rem, 1.5vw, 1rem); }
.item-accordion .item-row { background: #fff; }
.item-accordion .item-row + .item-row { margin-top: 0.75rem; }
.item-accordion::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 0.35s allow-discrete, opacity 0.35s ease, block-size 0.35s ease;
}
.item-accordion[open]::details-content {
    opacity: 1;
    block-size: auto;
}

/* One group per row: circle image left, content right. Rows cycle
   through the four brand colours for the circle ring and fact pills. */
.item-row {
    --row-c: var(--purple);
    display: grid;
    grid-template-columns: clamp(10rem, 20vw, 14rem) 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.75rem);
    background: color-mix(in srgb, var(--ink) 4%, #fff);
    border-radius: var(--radius);
}
.item-row:nth-child(4n+2) { --row-c: var(--pink); }
.item-row:nth-child(4n+3) { --row-c: var(--cyan); }
.item-row:nth-child(4n+4) { --row-c: var(--blue); }
.item-row + .item-row { margin-top: clamp(1rem, 2vw, 1.5rem); }
.item-row--no-media { grid-template-columns: 1fr; }

.item-row .item-row__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--row-c);
    background: #fff;
}
.item-row__body h3 { margin-top: 0; }
.item-row__body h3 a { color: inherit; text-decoration: none; }
.item-row__body h3 a:hover { color: var(--row-c); }

.item-row__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block: 0.75rem;
}
.item-fact {
    display: inline-block;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--row-c) 12%, #fff);
    color: color-mix(in srgb, var(--row-c) 70%, var(--ink));
    font-size: 0.9rem;
    font-weight: 600;
}
.item-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (max-width: 700px) {
    .item-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .item-row__media { width: min(12rem, 60vw); }
    .item-row__facts, .item-row__actions { justify-content: center; }
}

/* --- Entry content -------------------------------------------------- */

.entry-content { padding-block: 1rem 3rem; }

/* Lede — the first h3 opens the page big, in the hero's colour */
.entry-content > h3:first-of-type {
    color: var(--hero-deep, var(--purple));
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.4em;
}

.entry-content ul { padding-left: 1.3rem; }
.entry-content ul li { padding-left: 0.3rem; }
.entry-content ul li::marker { color: var(--pink); }
.entry-content ol li::marker { color: var(--pink-deep); font-weight: 600; }

.entry-content img { border-radius: var(--radius); }
.entry-content .is-style-rounded img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.entry-content .is-style-rounded { max-width: 300px; }
.entry-content figure.is-style-rounded:not(.alignleft):not(.alignright) { margin-inline: auto; }

.entry-content .alignleft { float: left; margin: 0.4rem 1.75rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0.4rem 0 1rem 1.75rem; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ''; display: block; clear: both; }
@media (max-width: 640px) {
    .entry-content .alignleft,
    .entry-content .alignright { float: none; margin: 1rem auto; }
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--tint);
    border-radius: var(--radius);
    border-left: 6px solid var(--purple);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content .wp-block-table table { border-collapse: collapse; width: 100%; }
.entry-content .wp-block-table td,
.entry-content .wp-block-table th { border: 1px solid #dbe4e7; padding: 0.6rem 0.9rem; }

.entry-thumbnail { padding-top: 2rem; }
.entry-thumbnail img { border-radius: var(--radius); }

/* --- Post cards ----------------------------------------------------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.post-card {
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 14px rgba(35, 52, 63, 0.09);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(35, 52, 63, 0.14); }
.post-card__image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.post-card__date { margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.post-card__title { font-size: 1.15rem; margin: 0; }
.post-card__title a { text-decoration: none; color: var(--ink); }
.post-card__title a:hover { color: var(--pink-deep); }
.post-card__excerpt { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.post-card__more { font-weight: 600; margin-top: auto; padding-top: 0.5rem; }

.pagination-nav { padding-bottom: 3rem; }
.pagination-nav .nav-links { display: flex; gap: 0.5rem; justify-content: center; }
.pagination-nav .page-numbers {
    display: inline-block;
    min-width: 2.4rem;
    text-align: center;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}
.pagination-nav .page-numbers.current { background: var(--pink); color: #fff; }
.pagination-nav a.page-numbers:hover { background: var(--tint); }

/* --- Home ------------------------------------------------------------
   One idea per section, flat colour blocks, plenty of air. Section
   furniture (label / title / lede / more) is shared by every band below. */

.home-section__label {
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--pink-deep);
    margin: 0 0 0.4rem;
}
.home-section__title {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.home-section__lede {
    margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
    max-width: 46ch;
    font-size: 1.15rem;
    color: var(--ink-soft);
}
.home-section__more { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0; }

/* Sections stack with generous, even rhythm */
.home-doors,
.home-groups,
.home-stats,
.home-quotes,
.home-events,
.home-news,
.home-newsletter { margin-block: clamp(4rem, 9vw, 7.5rem); }

/* Hero — two actions instead of the single per-page CTA. The margin lives on
   the row, not the buttons: .page-hero__cta's own margin-top is invisible on
   one line but becomes a gap the moment they wrap. */
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.home-hero__actions .page-hero__cta { margin-top: 0; }
.page-hero__cta--ghost {
    background: transparent;
    color: var(--hero-ink, #fff);
    box-shadow: inset 0 0 0 2px currentColor;
}
.page-hero__cta--ghost:hover {
    background: var(--hero-ink, #fff);
    color: var(--hero-deep);
}

/* Three doors */
.home-doors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}
.home-door {
    --door-c: var(--pink);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: var(--radius);
    background: var(--door-c);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s var(--spring), box-shadow 0.2s ease;
}
.home-door--pink   { --door-c: #de1b53; }
.home-door--cyan   { --door-c: #1c86a0; }
.home-door--purple { --door-c: #7a4a8c; }
.home-door:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgb(35 52 63 / 0.22);
    color: #fff;
}
.home-door__kicker {
    font-family: var(--font-script);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.9;
}
.home-door__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
}
.home-door__text { font-size: 0.98rem; line-height: 1.6; opacity: 0.92; }
.home-door__go {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Groups */
.home-groups__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.home-group { --g-c: var(--purple); text-align: center; }
.home-group:nth-child(4n+1) { --g-c: var(--pink); }
.home-group:nth-child(4n+2) { --g-c: var(--cyan); }
.home-group:nth-child(4n+3) { --g-c: var(--blue); }
.home-group a { text-decoration: none; color: inherit; display: block; }
.home-group__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--g-c);
    background: var(--tint);
    transition: transform 0.2s var(--spring);
}
.home-group a:hover .home-group__img { transform: translateY(-4px); }
.home-group__name {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
}
.home-group a:hover .home-group__name { color: var(--g-c); }
.home-group__when {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* Impact — a flat colour block, the one loud moment on the page */
.home-stats {
    background: var(--blue);
    color: #fff;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.home-stats .home-section__label { color: #fff; opacity: 0.85; }
.home-stats .home-section__title { color: #fff; }
.home-stats__grid {
    list-style: none;
    margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}
.home-stat__figure {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--yellow);
}
.home-stat__text {
    display: block;
    margin-top: 0.6rem;
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 30ch;
}

/* Voices */
.home-quotes__grid {
    list-style: none;
    margin: clamp(1.5rem, 3vw, 2rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}
.home-quote {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--ink) 4%, #fff);
    display: flex;
    flex-direction: column;
}
.home-quote blockquote { margin: 0; }
.home-quote blockquote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}
.home-quote blockquote p::before { content: '“'; }
.home-quote blockquote p::after  { content: '”'; }
.home-quote cite {
    margin-top: auto;
    padding-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pink-deep);
}

/* What's on */
.home-events__list { list-style: none; margin: 0; padding: 0; }
.home-event {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
    padding: 1.1rem 0;
    border-top: 2px solid color-mix(in srgb, var(--ink) 10%, #fff);
}
.home-event:last-child { border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, #fff); }
.home-event__date {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--purple);
    color: #fff;
    line-height: 1;
}
.home-event__day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.home-event__mon { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.home-event__body { display: block; }
.home-event__body a {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.home-event__body a:hover { color: var(--pink-deep); }
.home-event__meta { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--ink-soft); }

/* News */
.home-news__grid {
    list-style: none;
    margin: clamp(1.5rem, 3vw, 2rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.home-post { display: flex; flex-direction: column; }
.home-post__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.home-post__media img,
.home-post__media--none {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.home-post:hover .home-post__media img { transform: scale(1.04); }
.home-post__date {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.home-post__title { margin: 0.3rem 0 0.4rem; font-size: 1.2rem; line-height: 1.3; }
.home-post__title a { color: inherit; text-decoration: none; }
.home-post__title a:hover { color: var(--pink-deep); }
.home-post__excerpt { margin: 0 0 0.8rem; font-size: 0.96rem; color: var(--ink-soft); line-height: 1.6; }
.home-post__more {
    margin-top: auto;
    font-weight: 600;
    color: var(--pink-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Newsletter */
.home-newsletter { background: var(--tint); padding-block: clamp(3rem, 6vw, 4.5rem); }
.home-newsletter__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.home-newsletter__copy .home-section__title { margin-bottom: 0.4rem; }
.home-newsletter__copy p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
.home-newsletter__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.home-newsletter__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.home-newsletter__input {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 0.7rem 1.1rem;
    border: 2px solid color-mix(in srgb, var(--ink) 15%, #fff);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}
.home-newsletter__input:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.home-newsletter__hp { position: absolute; left: -5000px; }

@media (max-width: 900px) {
    .home-doors,
    .home-quotes__grid,
    .home-news__grid { grid-template-columns: 1fr; }
    .home-stats__grid { grid-template-columns: 1fr; gap: 2rem; }
    .home-newsletter__inner { grid-template-columns: 1fr; }
    .home-stat__text { max-width: none; }
}

@media (max-width: 560px) {
    .home-groups__grid { grid-template-columns: repeat(2, 1fr); }
    .home-event { grid-template-columns: 3.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .home-door, .home-group__img, .home-post__media img { transition: none; }
}

/* --- Search --------------------------------------------------------- */

/* The trigger lives in the island, so it survives the dock (the social icons
   don't — they're secondary; this is utility). */
.search-toggle {
    display: grid;
    place-items: center;
    width: 2.4rem;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease;
}
.search-toggle svg { width: 1.15rem; height: 1.15rem; }
.search-toggle:hover { background: var(--tint); }

/* Overlay. Pair every display rule with a [hidden] guard — author display
   beats the attribute's UA display:none. */
.search-overlay[hidden] { display: none; }
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 280; /* below the EXIT tab (400) — that always wins */
    display: grid;
    place-items: start center;
    padding: clamp(1rem, 6vh, 5rem) var(--gutter);
    background: rgba(255, 255, 255, 0.97);
    animation: search-veil-in 0.2s ease;
}
@keyframes search-veil-in { from { opacity: 0; } }

.search-overlay__panel {
    position: relative;
    width: min(46rem, 100%);
    animation: search-panel-in 0.35s var(--spring) both;
}
@keyframes search-panel-in {
    from { opacity: 0; transform: translateY(-0.75rem); }
}
.search-overlay__close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2.75rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    line-height: 1;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--ink-soft);
    cursor: pointer;
}
.search-overlay__close:hover { background: var(--tint); color: var(--ink); }

.search-overlay__label {
    display: block;
    margin-bottom: 0.9rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.search-overlay__row,
.search-hero__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search-overlay__input {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 0.8rem 1.3rem;
    border: 2px solid color-mix(in srgb, var(--ink) 15%, #fff);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink);
}
.search-overlay__input:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 1px;
    border-color: transparent;
}

.search-overlay__chips { margin-top: 1.6rem; }
.search-overlay__chips-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.search-overlay__chips ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.search-overlay__chips a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}
.search-overlay__chips a:hover { background: var(--pink); color: #fff; }

/* Results page */
.search-hero__form { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.search-hero__row { justify-content: center; max-width: 32rem; margin-inline: auto; }
.search-results__body { margin-block: clamp(2.5rem, 5vw, 4rem); }
.search-note {
    margin: 0 0 2rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--yellow) 25%, #fff);
    font-size: 0.95rem;
}
.search-group + .search-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.search-group__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.search-group__list { margin: 0; padding: 0; list-style: none; }
.search-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius);
}
.search-row:hover { background: color-mix(in srgb, var(--ink) 4%, #fff); }
.search-row__media img,
.search-row__media--none {
    display: block;
    width: 4.5rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    background: var(--tint);
}
.search-row__title { margin: 0 0 0.2rem; font-size: 1.1rem; line-height: 1.3; }
.search-row__title a { color: inherit; text-decoration: none; }
.search-row__title a:hover { color: var(--pink-deep); }
.search-row__text { margin: 0; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; }

.search-empty__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

/* The pill has no room for a 4th item on a phone — the panel carries search.
   Styled like a search field rather than a button, since that's the job. */
.nav-search { display: none; }
.nav-search {
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    border: 2px solid color-mix(in srgb, var(--ink) 12%, #fff);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.nav-search svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.nav-search:hover { border-color: var(--pink); color: var(--ink); }

@media (max-width: 700px) {
    .site-header__pill .search-toggle { display: none; }
    .site-nav.is-open .nav-search { display: flex; margin-bottom: 0.9rem; }
}

/* --- CTA band ------------------------------------------------------- */

.cta-band {
    position: relative;
    background: var(--tint);
    overflow: hidden;
    border-radius: 50% 50% 0 0 / clamp(36px, 6vw, 84px) clamp(36px, 6vw, 84px) 0 0;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}
.cta-band__inner {
    position: relative;
    max-width: var(--wide-width);
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.cta-band h2 { margin: 0 0 0.35rem; }
.cta-band p { margin: 0; max-width: 44ch; color: var(--ink-soft); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --- The Events Calendar -------------------------------------------- */

/* Point TEC's own design tokens at the brand */
:root {
    --tec-color-accent-primary: var(--pink);
    --tec-color-accent-primary-hover: var(--pink-deep);
    --tec-color-accent-primary-active: var(--pink-deep);
    --tec-color-button-primary: var(--pink);
    --tec-color-button-primary-hover: var(--pink-deep);
    --tec-color-text-primary: var(--ink);
    --tec-color-text-secondary: var(--ink-soft);
    --tec-color-text-events-title: var(--ink);
    --tec-color-background-events-bar-submit-button: var(--pink);
    --tec-color-background-events-bar-submit-button-hover: var(--pink-deep);
    --tec-color-background-events-bar-submit-button-active: var(--pink-deep);
    --tec-color-icon-active: var(--pink);
    --tec-font-family-sans-serif: var(--font-body);
}

/* The injected hero sits inside TEC's max-width wrapper — break it out
   to full bleed (body overflow-x: clip eats the scrollbar gap). TEC's
   .tribe-common reset zeroes margins/paddings at equal specificity, so
   these selectors carry the .tribe-common prefix. */
.tribe-common.tribe-events .tribe-common-l-container.tribe-events-l-container { padding-top: 0; }
#tribe-events-pg-template.tribe-events-pg-template { padding-top: 0; margin-top: 0; }
.tribe-common .events-hero,
.tribe-events-pg-template .events-hero {
    width: 100vw;
    margin: 0 calc(50% - 50vw) clamp(2rem, 4vw, 3rem);
}
.tribe-common .events-hero .page-hero__inner,
.tribe-events-pg-template .events-hero .page-hero__inner {
    max-width: var(--wide-width);
    margin-inline: auto;
    padding: clamp(9.5rem, 15vw, 13rem) var(--gutter) clamp(4.5rem, 8vw, 7rem);
}
.tribe-common .events-hero .page-hero__label,
.tribe-events-pg-template .events-hero .page-hero__label { margin: 0 auto; }

/* Calendar chrome: display face for the month title, pill controls */
.tribe-events .tribe-events-c-top-bar__datepicker-button {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-ical__link {
    border-radius: 999px;
    font-weight: 600;
}
.tribe-events .tribe-events-c-search__input,
.tribe-events input.tribe-events-c-search__input {
    border-radius: 999px;
}

/* Single event: title lives in the hero now */
.tribe-events-single .tribe-events-single-event-title { display: none; }
.tribe-events-single .tribe-events-back { margin-bottom: 1rem; }
.tribe-events-single .tribe-events-back a,
.tribe-events-single .tribe-events-event-meta a { font-weight: 600; }
.tribe-events-single .tribe-events-schedule > div {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pink) 10%, #fff);
    color: var(--pink-deep);
}
.tribe-events-notices {
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--yellow) 22%, #fff);
    color: var(--ink);
    padding: 0.9rem 1.3rem;
}

/* --- Footer --------------------------------------------------------- */

.site-footer { background: var(--tint); padding: 1.5rem 0 2rem; }
.site-footer__inner {
    max-width: var(--wide-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 800px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
.site-footer__brand img { max-height: 84px; width: auto; }
.site-footer__brand p { color: var(--ink-soft); font-size: 0.92rem; margin: 0.75rem 0 0; }
.site-footer h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer__list a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.site-footer__list a:hover { color: var(--pink-deep); text-decoration: underline; }
.site-footer__logos {
    max-width: var(--wide-width);
    margin: 2.75rem auto 0;
    padding-inline: var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}
.site-footer__logos img { max-height: 72px; width: auto; }
.site-footer__meta {
    max-width: var(--wide-width);
    margin: 2.5rem auto 0;
    padding: 1.25rem var(--gutter) 0;
    border-top: 1px solid #dde6e9;
    color: var(--ink-soft);
    font-size: 0.88rem;
}
.site-footer__meta p { margin: 0; }
.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer__legal a { color: var(--ink-soft); }
.site-footer__legal a:hover { color: var(--pink-deep); }

/* --- Donate widget ---------------------------------------------------
   Pick an amount (or type one) and hand off to PayPal. The markup lives in
   a core/html block on Make A Donation; the behaviour is in main.js. */

.donate-box {
    background: var(--tint);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem);
    margin: 2.5rem 0;
}
.donate-box h3 { margin: 0 0 0.3rem; }
.donate-box__hint { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }

.donate-box__amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.donate-box__amt {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.donate-box__amt:hover { border-color: var(--pink); color: var(--pink-deep); }
.donate-box__amt.is-selected { border-color: var(--pink); color: var(--pink-deep); }

.donate-box__custom {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.1rem;
    transition: border-color 0.2s ease;
}
.donate-box__custom:focus-within { border-color: var(--pink); }
.donate-box__custom span {
    display: grid;
    place-items: center;
    width: 2.75rem;
    align-self: stretch;
    color: var(--ink-soft);
    font-weight: 600;
}
.donate-box__custom input {
    flex: 1;
    border: 0;
    outline: 0;
    background: none;
    padding: 0.85rem 0.9rem 0.85rem 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink);
    min-width: 0;
}
.donate-box__submit { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.donate-box__submit[disabled] { background: var(--ink-soft); cursor: not-allowed; transform: none; }
.donate-box__submit img { height: 1.05em; vertical-align: -0.15em; margin-left: 0.15rem; }

@media (max-width: 480px) {
    .donate-box__amounts { grid-template-columns: 1fr 1fr; }
}

