/* ==========================================================================
   Lake Talon Conservation Association — theme stylesheet (v1.1)
   Light, clean, blue-on-white. Brand blue matches the LTCA logo.

   Motion rules for this theme: animation only ever confirms something the
   visitor did (hover, open, copy, submit) or eases new content into view.
   Nothing loops except the slow waves, and everything stops for visitors
   who ask their device for reduced motion.
   ========================================================================== */

:root {
    --blue: #3b5eab;
    --blue-dark: #2c478a;
    --blue-deep: #1c2f5c;
    --blue-tint: #eaf0fa;
    --blue-tint-2: #f4f7fc;
    --sky: #c9d8f1;
    --ink: #1f2937;
    --ink-soft: #4b5563;
    --ink-muted: #6b7280;
    --line: #e1e7f0;
    --line-strong: #cdd7e6;
    --paper: #ffffff;
    --paper-alt: #f7f9fc;
    --success: #1f7a4d;
    --danger: #b42318;

    --accent: var(--ghost-accent-color, var(--blue));

    --font-heading: var(--gh-font-heading, "Montserrat", "Segoe UI", Arial, sans-serif);
    --font-body: var(--gh-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
    --font-script: "Lobster", "Brush Script MT", cursive;

    --wrap: 1160px;
    --wrap-narrow: 800px;
    --gutter: 20px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(28, 47, 92, 0.06), 0 2px 6px rgba(28, 47, 92, 0.05);
    --shadow: 0 1px 2px rgba(28, 47, 92, 0.06), 0 10px 28px -6px rgba(28, 47, 92, 0.14);
    --shadow-lg: 0 2px 4px rgba(28, 47, 92, 0.06), 0 24px 48px -12px rgba(28, 47, 92, 0.24);
    --ring: 0 0 0 2px #fff, 0 0 0 5px var(--accent);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);        /* quick start, soft landing */
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --fast: 0.18s;
    --med: 0.35s;
    --slow: 0.7s;

    --header-h: 76px;
    --header-h-compact: 62px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h-compact) + 24px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.is-locked { overflow: hidden; }
/* A pasted URL or a long word wraps instead of widening the page */
.gh-content, .page-title, .post-card-title, .link-tile-label { overflow-wrap: break-word; }

::selection { background: var(--sky); color: var(--blue-deep); }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--fast); }
a:hover { color: var(--blue-dark); }

/* The transparent outline is invisible normally, but Windows high-contrast
   mode paints it, where the box-shadow ring is removed */
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-radius: 6px; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--blue-deep);
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.015em;
    font-weight: 800;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.hero-title { margin: 0; line-height: 0; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 14px; background: var(--blue-deep); color: #fff;
    border-radius: 8px; font-weight: 600; transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.kicker {
    font-family: var(--font-heading);
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 0.6em;
}

/* --------------------------------------------------------------------------
   Motion: scroll reveal (main.js marks below-the-fold items with
   data-reveal, then adds .is-revealed as they scroll into view)
   -------------------------------------------------------------------------- */

/* An animation (not a transition) with backwards fill, so once it has
   played the element's own hover transitions work untouched. */
.js [data-reveal]:not(.is-revealed) { opacity: 0; }
.js [data-reveal].is-revealed { animation: rise var(--slow) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(-10% 100% -20% 0); } to { clip-path: inset(-10% -2% -20% 0); } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* Smooth cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 0.16s ease-in both fade reverse; }
::view-transition-new(root) { animation: 0.28s var(--ease) both fade; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .js [data-reveal]:not(.is-revealed) { opacity: 1; }
    .wave { animation: none !important; }
    @view-transition { navigation: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
    padding: 0.68em 1.35em;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.93rem;
    border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: background var(--fast), color var(--fast), border-color var(--fast),
                box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(59, 94, 171, 0.6); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 10px 22px -8px rgba(59, 94, 171, 0.7); }
.btn-secondary { background: #fff; color: var(--accent); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); background: var(--blue-tint-2); color: var(--blue-dark); }
.btn:focus-visible { box-shadow: var(--ring); border-radius: 999px; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--med) var(--ease), border-color var(--med), background var(--med);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -12px rgba(28, 47, 92, 0.25);
}
.site-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    min-height: var(--header-h); max-width: 1280px;
    transition: min-height var(--med) var(--ease);
}
.site-header.is-scrolled .site-header-inner { min-height: var(--header-h-compact); }

.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.site-brand-logo { height: 52px; width: auto; transition: height var(--med) var(--ease), transform var(--med) var(--ease); }
.site-header.is-scrolled .site-brand-logo { height: 42px; }
.site-brand:hover .site-brand-logo { transform: translateY(-1px); }

.site-nav { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: flex-end; }
.site-nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav-cta { white-space: nowrap; }

.nav-link {
    position: relative;
    display: inline-block; padding: 8px 10px; border-radius: 8px;
    font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
    color: var(--blue-deep); text-decoration: none; white-space: nowrap;
    transition: color var(--fast), background var(--fast);
}
/* A short bar grows under the hovered or current item */
.site-nav-list > .nav-link::after, .nav-group-toggle::before {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
    border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform var(--med) var(--ease);
}
.site-nav-list > .nav-link:hover::after, .nav-group:hover .nav-group-toggle::before,
.site-nav-list > .nav-link.is-current::after, .nav-group-toggle.is-current::before { transform: scaleX(1); }
.nav-link:hover { color: var(--accent); }
.nav-link.is-current { color: var(--accent); }

@media (max-width: 1240px) and (min-width: 1081px) {
    .nav-link { font-size: 0.84rem; padding: 8px 8px; }
    .site-nav-list > .nav-link::after, .nav-group-toggle::before { left: 8px; right: 8px; }
    .site-nav-cta { padding-left: 1em; padding-right: 1em; }
}

/* Drop-downs, built by main.js from menu labels that start with a dash.
   Each item gets an icon picked from its label; the parent page itself
   sits at the bottom as "Go to …". */
.nav-group { position: relative; }
.nav-group-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; cursor: pointer; line-height: inherit;
}
.nav-group-toggle::after {
    content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg); opacity: 0.7;
    transition: transform var(--med) var(--ease);
}
.nav-group.is-open .nav-group-toggle::after { transform: translateY(1px) rotate(225deg); }
@media (hover: hover) and (min-width: 1081px) {
    .nav-group:hover .nav-group-toggle::after { transform: translateY(1px) rotate(225deg); }
}
.nav-group-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; width: 290px; margin-left: -145px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); padding: 8px;
    display: flex; flex-direction: column; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top center;
    /* Closing waits a beat, so a mouse that slips off the menu for a
       moment does not lose it */
    transition: opacity var(--fast) ease 0.12s, transform var(--fast) ease 0.12s, visibility 0s linear 0.3s;
}
/* little pointer up to the menu item */
.nav-group-menu::after {
    content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
    background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.nav-group-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-group.is-open .nav-group-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--fast) ease, transform var(--med) var(--ease), visibility 0s;
}
@media (hover: hover) and (min-width: 1081px) {
    .nav-group:hover .nav-group-menu {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity var(--fast) ease, transform var(--med) var(--ease), visibility 0s;
    }
    /* Escape closes a menu the mouse opened (main.js) */
    .nav-group.is-dismissed:not(.is-open) .nav-group-menu { opacity: 0; visibility: hidden; transition: none; }
}
.nav-group-inner { display: flex; flex-direction: column; }
.nav-group-menu .nav-link {
    display: flex; align-items: center; gap: 12px; white-space: nowrap;
    padding: 8px 12px 8px 8px; border-radius: 12px; font-weight: 600; font-size: 0.92rem;
    transition: background var(--fast), color var(--fast);
}
.nav-item-icon {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: var(--blue-tint); color: var(--accent); transition: transform var(--med) var(--ease);
}
.nav-item-icon svg { width: 18px; height: 18px; }
.nav-group-menu .nav-link:hover { background: var(--blue-tint-2); color: var(--blue-deep); }
.nav-group-menu .nav-link:hover .nav-item-icon { transform: scale(1.08) rotate(-4deg); }
.nav-group-menu .nav-link.is-current { background: var(--blue-tint); }
.nav-group-menu .nav-link.is-overview {
    order: 99; margin-top: 6px; padding: 12px 12px 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px;
    color: var(--accent); font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700; justify-content: space-between;
}
.nav-group-menu .nav-link.is-overview:hover { background: none; }
.nav-group-menu .nav-link.is-overview .arrow { transition: transform var(--med) var(--ease); }
.nav-group-menu .nav-link.is-overview:hover .arrow { transform: translateX(4px); }

.site-nav-actions { display: flex; align-items: center; gap: 10px; }
.site-search {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
    color: var(--blue-deep); cursor: pointer; transition: background var(--fast), color var(--fast), transform var(--med) var(--ease);
}
.site-search:hover { background: var(--blue-tint); color: var(--accent); transform: rotate(-8deg); }
.site-search:focus-visible { border-radius: 50%; }
.site-search svg { width: 20px; height: 20px; }

.site-nav-toggle {
    display: none; width: 44px; height: 44px; padding: 12px 10px; border-radius: 10px;
    background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.site-nav-toggle:hover { background: var(--blue-tint-2); }
.site-nav-toggle span { display: block; height: 2.5px; background: var(--blue-deep); border-radius: 2px; transition: transform var(--med) var(--ease), opacity var(--fast); }

.nav-backdrop {
    position: fixed; inset: 0; z-index: 40; background: rgba(15, 25, 50, 0.32);
    opacity: 0; visibility: hidden; transition: opacity var(--med), visibility 0s linear var(--med);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity var(--med), visibility 0s; }

@media (max-width: 1080px) {
    .site-brand-logo { height: 44px; }
    .site-header.is-scrolled .site-brand-logo { height: 38px; }
    .site-nav-toggle { display: flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 8px;
        max-height: calc(100vh - var(--header-h-compact)); overflow-y: auto; overscroll-behavior: contain;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 10px var(--gutter) 20px;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity var(--fast), transform var(--med) var(--ease), visibility 0s linear var(--med);
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--fast), transform var(--med) var(--ease), visibility 0s; }
    .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav-list > * { opacity: 0; transform: translateY(-6px); transition: opacity var(--med) var(--ease), transform var(--med) var(--ease); }
    .site-nav.is-open .site-nav-list > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 40ms); }
    .nav-link { padding: 13px 12px; border-radius: 10px; font-size: 1.02rem; }
    .site-nav-list > .nav-link::after, .nav-group-toggle::before { display: none; }
    .nav-link.is-current { background: var(--blue-tint); }
    .nav-group { display: flex; flex-direction: column; }
    .nav-group-toggle { justify-content: space-between; width: 100%; }
    .nav-group-menu {
        position: static; width: auto; margin: 0 0 0 12px; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 10px;
        border-left: 2px solid var(--line);
        opacity: 1; visibility: visible; transform: none; display: grid; grid-template-rows: 0fr;
        transition: grid-template-rows var(--med) var(--ease);
    }
    .nav-group-menu::before, .nav-group-menu::after { display: none; }
    .nav-group-menu > .nav-group-inner { overflow: hidden; }
    .nav-group:not(.is-open) .nav-group-menu { visibility: hidden; transition: grid-template-rows var(--med) var(--ease), visibility 0s linear var(--med); }
    .nav-group.is-open .nav-group-menu { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--med) var(--ease), visibility 0s; }
    .nav-group-menu .nav-link { font-size: 1rem; }
    .nav-group-menu .nav-link.is-overview { border-top: 0; margin: 0; padding: 12px; font-size: 0.9rem; justify-content: flex-start; gap: 8px; }
    .site-nav-actions { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
    .site-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
    .site-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
    .site-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Waves (partials/waves.hbs) — the lake motif along band edges
   -------------------------------------------------------------------------- */

.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(34px, 5vw, 64px); pointer-events: none; overflow: hidden; }
.waves svg { width: 100%; height: 100%; overflow: visible; }
.wave { animation: drift 38s linear infinite; }
.wave-back { fill: var(--sky); opacity: 0.55; animation-duration: 52s; animation-direction: reverse; }
.wave-front { fill: var(--paper); }

.footer-waves { top: 1px; bottom: auto; transform: translateY(-100%); }
.footer-waves .wave-front { fill: var(--blue-deep); }
.footer-waves .wave-back { fill: var(--blue); opacity: 0.45; }

/* --------------------------------------------------------------------------
   Home page hero
   -------------------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 420px at 50% 0%, rgba(201, 216, 241, 0.75), transparent 70%),
        linear-gradient(180deg, var(--blue-tint-2) 0%, #eef3fb 100%);
}
.hero.has-photo .hero-bg { bottom: clamp(90px, 16vw, 200px); }
.hero-inner { text-align: center; padding: clamp(40px, 7vw, 84px) var(--gutter) clamp(56px, 7vw, 88px); }
.hero.has-photo .hero-inner { padding-bottom: clamp(28px, 4vw, 44px); }

.hero-logo { width: min(540px, 80vw); margin: 0 auto 6px; animation: rise 0.9s var(--ease) both; }
.hero-tagline {
    font-family: var(--font-script);
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    color: var(--accent); line-height: 1.2; margin: 0 0 10px;
    /* The script line is "written" left to right, like a signature */
    animation: wipe 1.3s var(--ease-in-out) 0.35s both;
}
.hero-lede { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 1.18rem; animation: rise 0.8s var(--ease) 0.7s both; }

.hero-photo-wrap { max-width: 1240px; }
.hero-photo {
    margin: 0; overflow: hidden; border-radius: var(--radius-lg);
    aspect-ratio: 21 / 8; max-height: 480px; width: 100%;
    box-shadow: var(--shadow-lg);
    animation: rise 1s var(--ease) 0.2s both;
    background: var(--sky);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.6s var(--ease) both; }
@media (max-width: 700px) {
    .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

/* --------------------------------------------------------------------------
   Home page body — each H2 in the page becomes a section (main.js).
   No boxes: the Goal reads as a statement, the rest sit side by side.
   -------------------------------------------------------------------------- */

.home-body { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.home-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 56px; }
.home-sections > * + * { margin-top: 0; }
@media (min-width: 820px) {
    .home-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-section:first-child:nth-last-child(odd), .home-section.is-wide { grid-column: 1 / -1; }
}
.home-section { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; align-content: start; }
.home-section > * { grid-column: 2; }
.home-section > h2 { font-size: 1.3rem; margin: 12px 0 0.45em; padding: 0; }
.home-section > * + * { margin-top: 0.7em; }
.home-section > h2 + * { margin-top: 0; }
.home-section > :last-child { margin-bottom: 0; }
.home-section p { color: var(--ink-soft); }

/* Icon beside each heading. It never changes colour: it is not a button. */
.section-icon {
    grid-column: 1; grid-row: 1 / span 2; align-self: start;
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    border: 1.5px solid var(--sky); background: #fff; color: var(--accent);
}
.section-icon svg { width: 24px; height: 24px; }
@media (max-width: 420px) {
    .home-section { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
    .section-icon { width: 40px; height: 40px; }
    .section-icon svg { width: 20px; height: 20px; }
    .home-section > h2 { hyphens: auto; overflow-wrap: break-word; }
}

/* The Goal: a centred statement with the logo's double wave under it */
.home-section.is-goal {
    display: block; text-align: center; max-width: 880px; width: 100%; margin: 0 auto;
    padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line);
}
.home-section.is-goal .section-icon { display: none; }
.home-section.is-goal > h2 {
    font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.home-section.is-goal > p {
    font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.35;
    color: var(--blue-deep); letter-spacing: -0.01em; text-wrap: balance;
}
.home-section.is-goal::after {
    content: ""; display: block; width: 120px; height: 18px; margin: 26px auto 0;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M2 12C30 2 60 2 90 8s22 4 28 2' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M14 16c20-5 40-5 58-2' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M2 12C30 2 60 2 90 8s22 4 28 2' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M14 16c20-5 40-5 58-2' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-section.is-acknowledgement p { font-style: italic; color: var(--blue-deep); }

.home-news { padding: 0 0 clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head .kicker { margin-bottom: 0.3em; }
.section-title { margin: 0; }
.section-link { font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.section-link span { display: inline-block; transition: transform var(--med) var(--ease); }
.section-link:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Page headers (pages, posts, listings)
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative; isolation: isolate;
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(201, 216, 241, 0.6), transparent 70%),
        linear-gradient(180deg, var(--blue-tint-2), #eef3fb);
    padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}
.page-hero-inner > * { animation: rise 0.7s var(--ease) both; }
.page-hero-inner > :nth-child(2) { animation-delay: 0.06s; }
.page-hero-inner > :nth-child(3) { animation-delay: 0.12s; }
.page-hero-inner > :nth-child(4) { animation-delay: 0.18s; }
.page-title { margin-bottom: 0.25em; }
.page-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; margin-bottom: 0; }

.page-crumb { margin: 0 0 0.7em; font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.page-crumb a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); transition: background var(--fast), border-color var(--fast); }
.page-crumb a:hover { background: #fff; border-color: var(--accent); }
.page-crumb a span { display: inline-block; transition: transform var(--med) var(--ease); }
.page-crumb a:hover span { transform: translateX(-3px); }

.post-meta { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0.7em; }
.post-meta a { text-decoration: none; font-weight: 700; }

.page-feature { margin: -24px 0 0; position: relative; z-index: 1; }
.page-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 480px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-feature figcaption { text-align: center; font-size: 0.9rem; color: var(--ink-muted); margin-top: 10px; }

.page-content { padding: 28px 0 clamp(56px, 7vw, 96px); }
.page-full-noimage .page-content { padding-top: 16px; }

.post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 72px; border-top: 1px solid var(--line); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    display: inline-block; padding: 5px 13px; border-radius: 999px;
    background: var(--blue-tint); color: var(--blue-deep); font-size: 0.85rem; font-weight: 600; text-decoration: none;
    transition: background var(--fast), color var(--fast), transform var(--med) var(--ease);
}
.tag-chip:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.listing { padding: 8px 0 clamp(56px, 7vw, 96px); }
.empty-note { color: var(--ink-muted); }
.error-page { text-align: center; }
.error-page .page-lede { margin: 0 auto; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

/* "On this page" — jump links for long pages (main.js, 3+ headings) */
.toc {
    position: sticky; top: calc(var(--header-h-compact) + 10px); z-index: 30;
    margin: 0 0 8px; padding: 6px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent; border-radius: 999px;
    transition: border-color var(--med), box-shadow var(--med) var(--ease);
}
.toc.is-stuck { border-color: var(--line); box-shadow: 0 10px 28px -12px rgba(28, 47, 92, 0.35); }
.toc-inner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toc .toc-label { padding-left: 12px; flex: none; align-self: center; }

.toc-list { position: relative; display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 2px; list-style: none; }
.toc-list::-webkit-scrollbar { display: none; }
@property --fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
/* Chips scrolled out of view fade out instead of being cut off. main.js
   sets the two widths: an edge only fades while there is more that way. */
.toc-list {
    --fade-l: 0px; --fade-r: 0px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    transition: --fade-l var(--med) linear, --fade-r var(--med) linear;
}
.gh-content > .toc + h2 { margin-top: 1.1em; }
.toc-label { flex: none; align-self: center; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.toc a {
    position: relative; z-index: 1;
    display: inline-block; white-space: nowrap; padding: 6px 14px; border-radius: 999px;
    font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--blue-deep);
    background: var(--paper-alt); border: 1px solid var(--line);
    transition: color var(--med) var(--ease), border-color var(--fast), background var(--fast);
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }
/* The blue pill slides from chip to chip rather than blinking on and off */
.toc a.is-active { color: #fff; background: transparent; border-color: transparent; }
.toc-marker {
    position: absolute; left: 0; top: 2px; bottom: 2px; width: 0; z-index: 0;
    border-radius: 999px; background: var(--accent); opacity: 0;
    transition: transform var(--med) var(--ease), width var(--med) var(--ease), opacity var(--fast);
}
.toc-marker.is-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toc-marker { transition: none; } }
.gh-content > h2 { scroll-margin-top: calc(var(--header-h-compact) + 88px); }

/* Heading target flash after a jump link, so the eye lands in the right place */
@keyframes flash { 0% { background: var(--blue-tint); } 100% { background: transparent; } }
.gh-content > h2.is-target { animation: flash 1.6s var(--ease) both; border-radius: 8px; }

/* --------------------------------------------------------------------------
   Post cards (news) — no box: a rounded photo with the words underneath
   -------------------------------------------------------------------------- */

.post-grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card-media { overflow: hidden; aspect-ratio: 3 / 2; border-radius: 16px; background: var(--blue-tint); margin-bottom: 16px; transition: box-shadow var(--med) var(--ease); }
.post-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card:hover .post-card-media { box-shadow: var(--shadow); }
.post-card-noimage { padding-top: 18px; border-top: 3px solid var(--accent); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.post-card-tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.post-card-title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.post-card-title a {
    color: var(--blue-deep); text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size var(--med) var(--ease), color var(--fast);
}
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.post-card-title a:focus-visible { box-shadow: none; }
.post-card:focus-within .post-card-media { box-shadow: var(--ring); }
.post-card:hover .post-card-title a { color: var(--accent); background-size: 100% 2px; }
.post-card-excerpt { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.post-card-more { margin-top: auto; padding-top: 6px; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.post-card-more .arrow { display: inline-block; transition: transform var(--med) var(--ease); }
.post-card:hover .post-card-more .arrow { transform: translateX(5px); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pagination-status { color: var(--ink-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Editor content (what Directors type in the Ghost editor)
   -------------------------------------------------------------------------- */

.gh-content > * + * { margin-top: 1.1em; }
.gh-content > h2 { margin-top: 2.1em; padding-top: 0.2em; }
.gh-content > h2:first-child, .gh-content > h3:first-child { margin-top: 0; }
.gh-content > h3 { margin-top: 1.6em; }
.gh-content > h2 + h3, .gh-content > h2 + p, .gh-content > h3 + p, .gh-content > h2 + ul, .gh-content > h3 + ul { margin-top: 0.5em; }
.gh-content p { margin-bottom: 0; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; margin: 0; }
.gh-content li + li { margin-top: 0.35em; }
.gh-content li::marker { color: var(--accent); }
.gh-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 2.5em 0; }
.gh-content blockquote {
    margin: 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--accent);
    color: var(--ink-soft); font-size: 1.12rem;
}
.gh-content img { border-radius: var(--radius-sm); }
/* Photos never take over the screen; click one for the full picture. PNGs
   (maps, diagrams) are left uncropped. */
.kg-image-card img:not([src*=".png"]) { width: 100%; max-height: 560px; object-fit: cover; }
.gh-content > .stat-list { margin-top: 1.8em; margin-bottom: 0.6em; }
.gh-content > .kg-button-card + * { margin-top: 1.6em; }
.gh-content figcaption { text-align: center; font-size: 0.9rem; color: var(--ink-muted); margin-top: 10px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.gh-content th, .gh-content td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gh-content tr:last-child td { border-bottom: 0; }
.gh-content tbody tr { transition: background var(--fast); }
.gh-content tbody tr:hover { background: var(--blue-tint-2); }
.gh-content th { background: var(--paper-alt); font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-deep); }
.gh-content iframe { max-width: 100%; }
.gh-content .kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }

/* Copy button beside email addresses (main.js) */
.copy-btn {
    display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
    margin-left: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: #fff; color: var(--ink-soft); font: 600 0.75rem/1.4 var(--font-body); cursor: pointer;
    transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--med) var(--ease);
}
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn:active { transform: scale(0.94); }
.copy-btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.site-footer .copy-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #dbe6ff; }
.site-footer .copy-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.site-footer .copy-btn.is-copied { background: var(--success); border-color: var(--success); }

/* Contact cards (main.js): an email link on its own line, and the address
   under it, become two cards with actions */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 22px 24px 24px; border-radius: 20px; background: var(--blue-tint-2); border: 1px solid var(--line);
}
.contact-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.contact-card-icon svg { width: 22px; height: 22px; }
.gh-content .contact-card-label { margin: 0; font-family: var(--font-heading); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.contact-card-value { font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; color: var(--blue-deep); text-decoration: none; overflow-wrap: anywhere; }
.contact-card-value:hover { color: var(--accent); }
.contact-card-address { font-style: normal; font-size: 1.02rem; line-height: 1.55; color: var(--blue-deep); }
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.btn-small { padding: 0.5em 1em; font-size: 0.82rem; }
.btn-small svg { width: 14px; height: 14px; }
.btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }

/* Toast (used by copy) */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 300;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 999px; background: var(--blue-deep); color: #fff;
    font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-lg);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #8fe0b4; }

/* ---- Shapes main.js recognises in ordinary editor content -------------
   Directors only type bulleted lists, bold words and headings. Only things
   you can click react to the mouse; everything else stays still. */

/* Open rows: no outer box, just a thin line above and below each item, in
   columns. An odd number of items leaves plain white space, never an
   empty box. Used by link lists, name lists and directory entries. */
.gh-content ul.link-list, .gh-content ul.people-list, .entry-grid {
    list-style: none; padding: 0; margin-left: 0;
    display: grid; gap: 0 36px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
/* A list of years or documents is a sequence: one column, so 2026, 2025,
   2024 read straight down instead of zigzagging across two columns */
.gh-content ul.link-list { grid-template-columns: 1fr; }
.gh-content ul.link-list > li, .gh-content ul.people-list > li, .entry-grid > .entry-card {
    margin: 0 0 -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.gh-content ul.people-list { margin-top: 1.4em; }

/* An item that does not fit its list's shape stays an ordinary bullet
   instead of stripping the styling off the whole list */
.gh-content ul[class] > li.list-plain {
    display: list-item; list-style: disc inside; grid-column: 1 / -1;
    margin: 0; padding: 10px 0; border: 0; color: var(--ink); font-size: 1rem;
}
.gh-content ul[class] > li.list-plain::marker { color: var(--accent); }

/* Link rows — any bulleted list where every item is a link */
.link-tile {
    position: relative; height: 100%;
    display: flex; align-items: center; gap: 14px; margin: 4px -10px; padding: 10px;
    border-radius: 12px; text-decoration: none; color: var(--blue-deep);
    transition: background var(--fast);
}
.link-tile:hover { background: var(--blue-tint-2); color: var(--blue-deep); }
.link-tile:focus-visible { border-radius: 12px; box-shadow: inset 0 0 0 3px var(--accent); }
.link-tile-icon {
    flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    background: var(--blue-tint); color: var(--accent);
    transition: transform var(--med) var(--ease);
}
.link-tile-icon svg { width: 19px; height: 19px; }
.link-tile:hover .link-tile-icon { transform: scale(1.08); }
.link-tile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.link-tile-label { font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.link-tile-meta { font-size: 0.95rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.link-tile-go { margin-left: auto; flex: none; color: var(--accent); opacity: 0.55; transform: translateX(-4px); transition: transform var(--med) var(--ease), opacity var(--fast); }
.link-tile-go svg { width: 16px; height: 16px; }
.link-tile:hover .link-tile-go, .link-tile:focus-visible .link-tile-go { opacity: 1; transform: none; }

/* Placeholder rows: "#" or "#link…" addresses */
.link-tile.is-placeholder { cursor: help; color: var(--ink-muted); }
.link-tile.is-placeholder .link-tile-icon { background: var(--paper-alt); color: var(--ink-muted); }
.link-tile.is-placeholder:hover { background: var(--paper-alt); }
.link-tile.is-placeholder:hover .link-tile-icon { transform: none; }
.link-tile.is-placeholder .link-tile-meta { display: inline-block; align-self: flex-start; margin-top: 3px; padding: 0 8px; border-radius: 999px; background: #fdf3d8; color: #7a4f00; font-size: 0.85rem; font-weight: 600; }
.link-tile.is-placeholder .link-tile-go { display: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.link-tile.is-nudged .link-tile-text { animation: nudge 0.3s ease; }

/* Without JS, keep a plain tidy list */
.gh-content ul.link-list > li > a:not(.link-tile) { display: block; padding: 12px 16px; text-decoration: none; font-weight: 600; }

/* Name rows — any bulleted list where every item reads "Name – Role" */
.gh-content ul.people-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.person-avatar {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue-tint); color: var(--accent);
    font-family: var(--font-heading); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em;
}
.person-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; color: var(--ink-soft); font-size: 0.95rem; }
.gh-content ul.people-list strong { font-family: var(--font-heading); color: var(--blue-deep); font-size: 1rem; }

/* Numbered entries — three or more H3s in a row starting "1.", "2."…
   (Business Directory; the numbers match the map) */
.entry-card { position: relative; padding: 18px 0 20px 50px; font-size: 0.97rem; color: var(--ink-soft); }
.entry-card > h3 { font-size: 1.05rem; margin: 0 0 6px; }
.entry-card > p { margin: 0; }
.entry-card > * + * { margin-top: 6px; }
.entry-num {
    position: absolute; left: 0; top: 17px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem;
}

/* Stat row — a list where every item starts with something bold and short:
   "**$35** a year per property". The numbers count up once, on arrival. */
.gh-content ul.stat-list {
    list-style: none; padding: 0; display: grid; gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.gh-content ul.stat-list > li { margin: 0; padding: 20px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35; }
.gh-content ul.stat-list > li + li { border-left: 1px solid var(--line); }
.gh-content ul.stat-list strong { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .gh-content ul.stat-list { grid-template-columns: 1fr 1fr; }
    .gh-content ul.stat-list > li:nth-child(odd) { border-left: 0; }
    .gh-content ul.stat-list > li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Feature grid — a list where every item starts with a bold title followed
   by a sentence or two: "**Fish habitat.** We got the MNR to…" */
.gh-content ul.feature-list { list-style: none; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.gh-content ul.feature-list > li { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; align-content: start; color: var(--ink-soft); font-size: 0.98rem; }
.feature-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--accent); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--blue-deep); margin: 8px 0 4px; }

/* Timeline — a list where every item starts with a year: "1991 – Incorporated…" */
.gh-content ul.timeline { list-style: none; padding: 0; position: relative; }
.gh-content ul.timeline::before { content: ""; position: absolute; left: 78px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sky), var(--accent)); border-radius: 2px; }
.gh-content ul.timeline > li { position: relative; margin: 0; padding: 0 0 22px 104px; min-height: 30px; }
.gh-content ul.timeline > li:last-child { padding-bottom: 0; }
.gh-content ul.timeline > li::after { content: ""; position: absolute; left: 72px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline-year { position: absolute; left: 0; top: 0; width: 60px; text-align: right; white-space: nowrap; font-family: var(--font-heading); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Percentage bars — a list where every item ends in a percentage:
   "Summer student program – 84%". Bars fill in when they arrive. */
.gh-content ul.bar-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.gh-content ul.bar-list > li { margin: 0; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-weight: 600; color: var(--blue-deep); }
.bar-value { font-family: var(--font-heading); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; border-radius: 999px; background: var(--blue-tint); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--blue-dark), var(--accent)); transform-origin: left; }
.js .bar-list:not(.is-filled) .bar-fill { transform: scaleX(0); }
.gh-content ul.stat-list > li.list-plain { border-top: 1px solid var(--line); }
.bar-list.is-filled .bar-fill { transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }

/* Numbered steps — any numbered list on a page */
.page-content > ol { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.page-content > ol > li { counter-increment: step; position: relative; margin: 0; padding: 4px 0 0 52px; min-height: 36px; }
.page-content > ol > li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 800;
}

/* Photo credit that slides up over a gallery photo on hover (main.js) */
.kg-gallery-image { position: relative; }
.photo-credit {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
    background: linear-gradient(rgba(10, 17, 35, 0), rgba(10, 17, 35, 0.6) 40%, rgba(10, 17, 35, 0.85)); color: #fff; font-size: 0.9rem; font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0; transform: translateY(6px); transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
    pointer-events: none;
}
.kg-gallery-image:hover .photo-credit, .kg-gallery-image:has(img:focus-visible) .photo-credit { opacity: 1; transform: none; }
.kg-gallery-image img:focus-visible, .kg-image-card img:focus-visible {
    box-shadow: none; outline: 3px solid var(--accent); outline-offset: -3px;
}
.kg-gallery-image:has(img:focus-visible) { z-index: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent); overflow: visible; }
.kg-gallery-image:has(img:focus-visible) img { border-radius: var(--radius-sm); }

/* Ghost cards */
/* Ghost cards keep the normal gap to the text around them; photos and
   galleries get a bit more, so they don't crowd the words */
.gh-content > .kg-card + *, .gh-content > * + .kg-card { margin-top: 1.6em; }
.gh-content > .kg-image-card + *, .gh-content > .kg-gallery-card + *,
.gh-content > * + .kg-image-card, .gh-content > * + .kg-gallery-card { margin-top: 2.4em; }
.gh-content > .kg-toggle-card + .kg-toggle-card { margin-top: 0.6em; }
.kg-width-wide { margin-left: calc(50% - min(50vw, 570px)); width: min(100vw, 1140px); }
.kg-width-wide img { border-radius: var(--radius); }
.kg-width-full { margin-left: calc(50% - 50vw); width: 100vw; }
.kg-width-full img { border-radius: 0; }
@media (max-width: 1180px) { .kg-width-wide { margin-left: 0; width: 100%; } }

.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.gh-content .kg-button-card .kg-btn {
    display: inline-flex; align-items: center; height: auto; padding: 0.8em 1.6em; border-radius: 999px;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-decoration: none;
    transition: background var(--fast), transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.gh-content .kg-button-card .kg-btn:hover { transform: translateY(-1px); }
.gh-content .kg-button-card .kg-btn:active { transform: scale(0.97); }
.gh-content .kg-button-card .kg-btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(59, 94, 171, 0.6); }
.gh-content .kg-button-card .kg-btn-accent:hover { background: var(--blue-dark); color: #fff; }

.kg-callout-card { display: flex; gap: 14px; padding: 20px 24px; border-radius: 14px; background: var(--blue-tint); }
.kg-callout-card-white { background: #fff; border: 1px solid var(--line); }
.kg-callout-card-grey { background: var(--paper-alt); }
.kg-callout-card-blue { background: var(--blue-tint); }
.kg-callout-card-green { background: #e7f5ec; }
.kg-callout-card-yellow { background: #fdf5dc; }
.kg-callout-card-red { background: #fde8e8; }
.kg-callout-emoji { font-size: 1.4rem; line-height: 1.2; }
.kg-callout-text { margin: 0; }

.kg-file-card-container {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit;
    background: #fff; box-shadow: var(--shadow-sm);
    transition: border-color var(--fast), box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.kg-file-card-container:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.kg-file-card-title { font-family: var(--font-heading); font-weight: 700; color: var(--blue-deep); }
.kg-file-card-caption { color: var(--ink-soft); font-size: 0.95rem; }
.kg-file-card-metadata { font-size: 0.85rem; color: var(--ink-muted); }
.kg-file-card-icon svg { width: 28px; height: 28px; color: var(--accent); transition: transform var(--med) var(--ease); }
.kg-file-card-container:hover .kg-file-card-icon svg { transform: translateY(2px); }

.kg-bookmark-container {
    display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
    background: #fff; box-shadow: var(--shadow-sm);
    transition: border-color var(--fast), box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.kg-bookmark-container:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.kg-bookmark-content { padding: 16px 20px; flex: 1; }
.kg-bookmark-title { font-family: var(--font-heading); font-weight: 700; color: var(--blue-deep); }
.kg-bookmark-description { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }
.kg-bookmark-metadata { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-muted); margin-top: 10px; }
.kg-bookmark-icon { width: 18px; height: 18px; }
.kg-bookmark-thumbnail { flex: 0 0 200px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (max-width: 600px) { .kg-bookmark-thumbnail { display: none; } }

/* Toggle cards slide open: the content row grows from 0 to its height
   while the text fades in. The theme takes over from Ghost's own toggle
   styles so the two don't fight (Ghost's version just snaps). */
.gh-content .kg-toggle-card {
    display: grid; grid-template-rows: auto 1fr;
    border: 1px solid var(--line); border-radius: 16px; padding: 0; background: #fff;
    transition: grid-template-rows 0.45s var(--ease), border-color var(--fast), box-shadow var(--med);
}
.js .gh-content .kg-toggle-card { grid-template-rows: auto 0fr; }
.js .gh-content .kg-toggle-card[data-kg-toggle-state="open"], .gh-content .kg-toggle-card[data-kg-toggle-state="open"] { grid-template-rows: auto 1fr; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.gh-content .kg-toggle-card:hover { border-color: var(--line-strong); }
.gh-content .kg-toggle-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; border-radius: 16px; transition: background var(--fast); }
.gh-content .kg-toggle-heading:hover { background: var(--blue-tint-2); }
.gh-content .kg-toggle-heading-text { margin: 0; font-size: 1.08rem; }
.gh-content .kg-toggle-card-icon {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
    background: var(--blue-tint); color: var(--accent); cursor: pointer;
    transition: transform var(--med) var(--ease), background var(--fast);
}
.gh-content .kg-toggle-card-icon svg { width: 14px; height: 14px; transform: none !important; }
.gh-content .kg-toggle-card-icon svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gh-content .kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon { transform: rotate(180deg); }
.gh-content .kg-toggle-content {
    min-height: 0; overflow: hidden; margin: 0; padding: 0 20px; height: auto !important;
    position: static; top: 0; color: var(--ink-soft);
}
.js .gh-content .kg-toggle-card:not([data-kg-toggle-state="open"]) .kg-toggle-content {
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.45s;
}
.gh-content .kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-content { opacity: 1; visibility: visible; transition: opacity 0.4s ease 0.1s, visibility 0s; }
.gh-content .kg-toggle-content > :first-child { margin-top: 2px; }
.gh-content .kg-toggle-content > :last-child { margin-bottom: 20px; }
.gh-content .kg-toggle-content > * + * { margin-top: 0.9em; }

.kg-header-card { border-radius: var(--radius); padding: 40px 24px; text-align: center; }

/* Photo galleries (the Ghost "gallery" card) */
.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-image { flex: 1 1 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--blue-tint); }
.kg-gallery-image img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 0; cursor: zoom-in;
    transition: transform 0.8s var(--ease), filter var(--med);
}
/* A short gallery stays as a row: photos keep their proportions and share
   a height, like a contact sheet. Nothing is cropped either way. */
.kg-gallery-row { align-items: flex-start; }
.kg-gallery-container:not(.is-masonry) .kg-gallery-image { background: none; }
.kg-gallery-container:not(.is-masonry) .kg-gallery-image img { height: auto; object-fit: fill; border-radius: var(--radius-sm); }

/* Masonry: photos keep their own proportions and stack like a pinboard.
   The browser picks the number of columns from the width. */
.kg-gallery-container.is-masonry {
    display: block; columns: 260px; column-gap: 12px;
}
.kg-gallery-container.is-masonry .kg-gallery-image {
    break-inside: avoid; margin: 0 0 12px; display: block; background: none;
}
.kg-gallery-container.is-masonry .kg-gallery-image img {
    height: auto; object-fit: fill; border-radius: var(--radius-sm);
}
@media (max-width: 500px) { .kg-gallery-container.is-masonry { columns: 1; } }
.kg-gallery-image:hover img { transform: scale(1.02); filter: saturate(1.08); }
.kg-image-card:not(.kg-width-full) img { cursor: zoom-in; transition: filter var(--med); }
.kg-image-card:not(.kg-width-full) img:hover { filter: brightness(1.03) saturate(1.05); }
@media (max-width: 600px) { .kg-gallery-row, .kg-gallery-container { gap: 6px; } }

/* Lightbox for gallery and image cards */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 64px 72px;
    background: rgba(10, 17, 35, 0.94);
    opacity: 0; visibility: hidden; transition: opacity var(--med) var(--ease), visibility 0s linear var(--med);
    touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity var(--med) var(--ease), visibility 0s; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-img {
    max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    transform: scale(0.96); opacity: 0; transition: transform var(--med) var(--ease), opacity var(--med) var(--ease);
}
.lightbox.is-open .lightbox-img.is-loaded { transform: none; opacity: 1; }
.lightbox-img.from-left { transform: translateX(-30px); }
.lightbox-img.from-right { transform: translateX(30px); }
.lightbox-caption { margin: 0; text-align: center; color: #dbe4f5; font-size: 0.95rem; max-width: 70ch; min-height: 1.4em; }
.lightbox-count { position: absolute; top: 22px; left: 24px; color: #aebbdc; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; }
.lightbox-btn {
    position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 50%;
    width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center;
    transition: background var(--fast), transform var(--med) var(--ease);
}
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-btn:focus-visible { border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }
.lightbox-close { top: 14px; right: 16px; }
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox-prev:hover { transform: translateX(-3px); }
.lightbox-next:hover { transform: translateX(3px); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next, .lightbox.is-single .lightbox-count { display: none; }
@media (max-width: 700px) {
    .lightbox { padding: 60px 12px 24px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; margin: 0; }
    .lightbox-img { max-height: calc(100vh - 190px); }
}

/* --------------------------------------------------------------------------
   Social links
   -------------------------------------------------------------------------- */

.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--blue-deep); font-weight: 600; font-size: 0.92rem; text-decoration: none;
    transition: background var(--fast), border-color var(--fast), transform var(--med) var(--ease);
}
.social-link svg { width: 20px; height: 20px; color: var(--accent); transition: transform var(--med) var(--ease); }
.social-link:hover { border-color: var(--accent); background: var(--blue-tint); transform: translateY(-2px); }
.social-link:hover svg { transform: scale(1.12); }
.gh-content .social-links { margin-top: 0; }

/* --------------------------------------------------------------------------
   Newsletter & footer
   -------------------------------------------------------------------------- */

.newsletter { position: relative; background: var(--blue-tint); }
.newsletter-inner { display: grid; gap: 28px; padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(72px, 9vw, 110px); align-items: center; }
@media (min-width: 820px) { .newsletter-inner { grid-template-columns: 1.2fr 1fr; } }
.newsletter-title { margin-bottom: 0.3em; }
.newsletter-copy p:last-child { margin: 0; color: var(--ink-soft); }
.newsletter-form {
    display: flex; flex-wrap: wrap; gap: 8px; position: relative;
    padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    box-shadow: var(--shadow-sm); transition: box-shadow var(--med) var(--ease), border-color var(--fast);
}
.newsletter-form:focus-within { border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.newsletter-input {
    flex: 1 1 200px; min-width: 0; padding: 10px 16px; font: inherit; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
}
.newsletter-input:focus { outline: none; }
.newsletter-button { min-width: 128px; }
.newsletter-spinner {
    position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
    opacity: 0; animation: spin 0.7s linear infinite;
}
.newsletter-form.loading .newsletter-button-label { opacity: 0; }
.newsletter-form.loading .newsletter-spinner { opacity: 1; }
.newsletter-form.loading .newsletter-button { pointer-events: none; }
.newsletter-status {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 12px);
    align-items: center; gap: 8px; margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--success);
}
.newsletter-status svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: pop 0.5s var(--ease) both; }
.newsletter-status svg path { stroke-dasharray: 40; animation: draw 0.5s var(--ease) 0.25s both; }
.newsletter-form.success [data-members-success], .newsletter-form.error [data-members-error] { display: flex; animation: rise 0.4s var(--ease) both; }
.newsletter-form.success { border-color: var(--success); }
.newsletter-error { color: var(--danger); }
.newsletter-form.error { border-color: var(--danger); animation: nudge 0.35s ease; }

.site-footer { position: relative; background: var(--blue-deep); color: #cfd9ee; padding: clamp(28px, 4vw, 48px) 0 28px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: #dbe6ff; text-decoration-color: currentColor; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.footer-logo { width: 200px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-tagline { margin-top: 14px; max-width: 320px; color: #aebbdc; }
.footer-heading { font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-nav-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-nav-list .nav-link { color: #dbe6ff; padding: 3px 0; font-weight: 500; font-size: 0.98rem; transition: color var(--fast), transform var(--med) var(--ease); }
.footer-nav-list .nav-link:hover { background: none; color: #fff; transform: translateX(4px); }
.footer-nav-list .nav-link.is-child { padding-left: 14px; opacity: 0.85; }
.footer-contact p { margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; min-width: 0; }
.footer-address { color: #aebbdc; font-size: 0.95rem; }
.site-footer .social-link { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.site-footer .social-link svg { color: #fff; }
.site-footer .social-link:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); }
.footer-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem; color: #aebbdc;
}
.footer-base p { margin: 0; }

/* When the newsletter box is hidden, give the footer waves room */
.site-main + .site-footer { margin-top: clamp(34px, 5vw, 64px); }

/* --------------------------------------------------------------------------
   Back to top — appears after a couple of screens; the ring shows how far
   down the page you are
   -------------------------------------------------------------------------- */

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 45;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: var(--accent); box-shadow: var(--shadow);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility 0s linear var(--med), box-shadow var(--med);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility 0s, box-shadow var(--med); }
.to-top:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.to-top:focus-visible { border-radius: 50%; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.to-top .ring-track { fill: none; stroke: var(--blue-tint); stroke-width: 3; }
.to-top .ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.to-top .arrow { position: relative; width: 18px; height: 18px; inset: auto; transition: transform var(--med) var(--ease); }
.to-top:hover .arrow { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Print — minutes and reports pages print cleanly
   -------------------------------------------------------------------------- */

@media print {
    .site-header, .site-footer, .newsletter, .site-nav-toggle, .skip-link, .waves, .toc, .to-top, .copy-btn { display: none !important; }
    .page-hero { background: none; padding: 0 0 12px; }
    body { font-size: 11pt; }
    .js [data-reveal] { opacity: 1 !important; animation: none !important; }
    a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
