/* ============================================================
   GIVE Analytics — main.css
   Architecture: Tokens → Reset → Base → Layout → Nav →
                 Sections → Components → Forms → Footer →
                 Utilities → Responsive (descending)
   ============================================================ */

@import url("fontawesome-all.min.css");

/* ── 1. DESIGN TOKENS ──────────────────────────────────────────────────────── */

:root {
    /* Background */
    --bg:           #2e3842;
    --bg-dark:      #1d2730;
    --bg-darker:    #192637;

    /* Blue (primary) */
    --blue-vd:      #0f161f;
    --blue-dark:    #192637;
    --blue-med:     #324c6f;
    --blue:         #386aab;
    --blue-light:   #5b88c2;
    --blue-lighter: #95b4dd;
    --blue-pale:    #dee8f6;

    /* Green (accent) */
    --green-dark:   #103431;
    --green-med:    #216761;
    --green:        #1ea499;
    --green-bright: #32cfc2;
    --green-light:  #79e6dd;

    /* Yellow (CTA) */
    --yellow:       #f4ac45;
    --yellow-hover: #f39f2b;

    /* Coral */
    --coral:        #ff7f50;
    --coral-hover:  #ff6933;

    /* Dark scale */
    --dark-vd:      #17181d;
    --dark-dark:    #17191d;
    --dark-med:     #2e3139;
    --dark:         #404554;
    --dark-light:   #61677b;
    --dark-muted:   #989eb1;

    /* Text */
    --text:         #ffffff;
    --text-muted:   rgba(255, 255, 255, 0.65);
    --text-subtle:  rgba(255, 255, 255, 0.4);

    /* Borders */
    --border:       rgba(255, 255, 255, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.075);

    /* Typography */
    --font-body:    "Open Sans", Helvetica, Arial, sans-serif;
    --text-xs:      0.75rem;
    --text-sm:      0.875rem;
    --text-base:    1rem;
    --text-lg:      1.125rem;
    --text-xl:      1.25rem;
    --text-2xl:     1.5rem;
    --text-3xl:     1.875rem;
    --text-4xl:     2.5rem;
    --text-5xl:     3.5rem;
    --leading-base: 1.65;
    --leading-tight: 1.3;
    --weight-light:  200;
    --weight-normal: 300;
    --weight-medium: 400;
    --weight-semi:   600;
    --weight-bold:   800;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Borders / radii */
    --radius-sm: 0.1875rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --ease:      0.2s ease;
    --ease-slow: 0.4s ease;

    /* Layout */
    --container-max:   75rem;
    --container-wide:  87.5rem;
    --container-prose: 45rem;

    /* Nav */
    --nav-height:       4.5rem;
    --nav-height-small: 3.75rem;
}

/* ── 2. RESET ───────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }

ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote::before, blockquote::after,
q::before, q::after { content: ''; content: none; }

table { border-collapse: collapse; border-spacing: 0; }

input, select, textarea, button {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

mark { background: transparent; color: inherit; }

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

a { color: inherit; text-decoration: none; }

/* ── 3. BASE ─────────────────────────────────────────────────────────────────── */

body {
    background:    var(--bg);
    color:         var(--text);
    font-family:   var(--font-body);
    font-size:     0.9375rem;
    font-weight:   var(--weight-light);
    line-height:   var(--leading-base);
    letter-spacing: 0.04em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-light);
    line-height: var(--leading-tight);
    letter-spacing: 0.03em;
}

h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  font-weight: var(--weight-normal); }
h5 { font-size: var(--text-lg);  font-weight: var(--weight-medium); }
h6 { font-size: var(--text-sm);  font-weight: var(--weight-medium); opacity: .6; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: var(--weight-semi); }
em, i      { font-style: italic; }

a { transition: color var(--ease); }
a:hover { color: var(--blue-light); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-2xl) 0;
}

/* ── 4. LAYOUT ───────────────────────────────────────────────────────────────── */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--wide  { max-width: var(--container-wide); }
.container--prose { max-width: var(--container-prose); }

.section { padding: var(--space-4xl) 0; }
.section--sm { padding: var(--space-3xl) 0; }
.section--lg { padding: 7rem 0; }

/* Section background variants */
.section--dark   { background: var(--bg-dark); }
.section--darker { background: var(--bg-darker); }
.section--blue   { background: var(--blue-dark); }
.section--blue-med { background: var(--blue-med); }
.section--green  { background: var(--green-dark); }
.section--tint   { background: rgba(255,255,255,.04); }

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__header h2 { margin-bottom: var(--space-md); }

.section__header p {
    max-width: 42.5rem;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: var(--text-lg);
}

/* Grid */
.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--6 { grid-template-columns: repeat(3, 1fr); }

/* ── 5. NAVIGATION ────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(29, 39, 48, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--ease-slow), border-color var(--ease-slow);
}

.site-header.is-scrolled {
    background: rgba(23, 25, 29, 0.97);
    border-color: var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--ease);
}

.site-logo:hover { opacity: .8; }
.site-logo svg   { height: 1rem; width: auto; fill: #ffffff; }

/* Desktop navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.site-nav a {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: .06em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color var(--ease);
}

.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }

/* CTA button in nav */
.btn--nav {
    padding: 0.5rem 1.25rem;
    background: var(--blue);
    color: var(--text) !important;
    border-radius: var(--radius-md);
    font-size: var(--text-sm) !important;
    font-weight: var(--weight-semi) !important;
    letter-spacing: .04em !important;
    transition: background var(--ease) !important;
    text-transform: none !important;
}

.btn--nav:hover { background: var(--blue-light) !important; color: var(--text) !important; }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3125rem;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--ease);
}

.nav-toggle:hover { opacity: .7; }

.nav-toggle__bar {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    z-index: 999;
    overflow-y: auto;
    padding: var(--space-2xl) var(--space-xl);
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity var(--ease), transform var(--ease);
}

.nav-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
}

.nav-drawer nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.nav-drawer nav a {
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: color var(--ease), padding-left var(--ease);
}

.nav-drawer nav a:hover {
    color: var(--text);
    padding-left: var(--space-sm);
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--blue);
    color: #fff;
    z-index: 10000;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    transition: top var(--ease);
}

.skip-link:focus { top: var(--space-md); }

/* ── 6. HERO BANNER ─────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-darker);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/1.jpg");
    background-size: cover;
    background-position: center;
    opacity: .15;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(23, 38, 55, 0.6) 0%,
        rgba(25, 38, 55, 0.85) 60%,
        rgba(46, 56, 66, 1) 100%
    );
    /* Normal state: overlay is partly transparent so background image peeks through */
    opacity: 0.75;
    transition: opacity 3s ease-in-out 1.5s;
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
    max-width: 50rem;
    margin: 0 auto;
    /* Transition fires when is-preload class is removed */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero__icon {
    margin: 0 auto var(--space-md);
    opacity: .9;
}

.hero__icon svg {
    width: 6em;
    height: 6em;
    fill: none;
    stroke: #fff;
    stroke-width: 20;
    margin: 0 auto;
}

.hero__wordmark {
    position: relative;
    display: inline-block;
    padding: 0.5em 1.5em;
    margin: 0 auto var(--space-lg);
    /* Transition fires when is-preload class is removed */
    transition: opacity 0.6s ease 0.25s;
}

/* Horizontal accent lines above and below wordmark */
.hero__wordmark::before,
.hero__wordmark::after {
    content: '';
    display: block;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: width 0.85s ease 0.75s;
    width: 100%;
}

.hero__wordmark::before { top: -10px; left: 0; }
.hero__wordmark::after  { bottom: -8px; right: 0; }

.hero__wordmark svg {
    height: 2rem;
    width: auto;
    fill: #fff;
    margin: 0 auto;
}

.hero__tagline {
    font-size: var(--text-lg);
    color: var(--text-muted);
    letter-spacing: .04em;
    text-transform: none;
    margin-bottom: var(--space-2xl);
    /* Transition fires when is-preload class is removed */
    transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    /* Transition fires when is-preload class is removed */
    transition: opacity 0.6s ease 0.75s, transform 0.6s ease 0.75s;
}

/* ── Preload: initial (hidden) state — transitions fire on class removal ── */

html.is-preload .hero__inner {
    opacity: 0;
    transform: scale(0.96);
}

html.is-preload .hero__wordmark {
    opacity: 0;
}

html.is-preload .hero__wordmark::before,
html.is-preload .hero__wordmark::after {
    width: 0;
}

html.is-preload .hero__tagline {
    opacity: 0;
    transform: translateY(1.5rem);
}

html.is-preload .hero__actions {
    opacity: 0;
    transform: translateY(1.5rem);
}

/* Overlay starts fully opaque — "curtain rises" effect */
html.is-preload .hero__overlay {
    opacity: 1;
}

/* Inner page hero */
.page-hero {
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    text-align: center;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-subtle);
}

.page-hero__icon {
    margin: 0 auto;
}

.page-hero__icon svg {
    width: auto;
    height: 5.5em;
    fill: none;
    stroke: rgba(255,255,255,.5);
    stroke-width: 20;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-sm);
}

.page-hero p {
    color: var(--text-muted);
    font-size: var(--text-lg);
    max-width: 33.75rem;
    margin: 0 auto;
}

/* ── 7. SECTION — INTRO / ICONS ──────────────────────────────────────────────── */

.section--intro { background: var(--blue-med); text-align: center; }

.intro__text {
    max-width: 45rem;
    margin: 0 auto var(--space-3xl);
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: 1.8;
}

.intro__icons {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
}

.intro__icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform var(--ease), box-shadow var(--ease);
}

.icon-circle:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.icon-circle--1 { border-color: var(--green-bright); color: var(--green-bright); }
.icon-circle--2 { border-color: #00f0ff; color: #00f0ff; }
.icon-circle--3 { border-color: #76ddff; color: #76ddff; }

/* ── 8. SECTION — FEATURES (6-CARD GRID) ────────────────────────────────────── */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }

.feature-card {
    padding: var(--space-xl);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.feature-card:hover {
    background: rgba(255,255,255,.07);
    border-color: var(--border);
    transform: translateY(-0.125rem);
}

.feature-card__icon {
    font-size: 2rem;
    color: var(--green-bright);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-sm);
}

.feature-card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* ── 9. SECTION — SPOTLIGHTS ─────────────────────────────────────────────────── */

.spotlights { display: flex; flex-direction: column; }

.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 26.25rem;
}

.spotlight:nth-child(even) .spotlight__image { order: 2; }
.spotlight:nth-child(even) .spotlight__content { order: 1; }

.spotlight__image {
    overflow: hidden;
    position: relative;
}

.spotlight__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.spotlight:hover .spotlight__image img { transform: scale(1.03); }

.spotlight__content {
    padding: var(--space-4xl) var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
}

.spotlight:nth-child(2) .spotlight__content { background: var(--bg-darker); }
.spotlight:nth-child(3) .spotlight__content { background: var(--blue-dark); }
.spotlight:nth-child(4) .spotlight__content { background: var(--dark-vd); }
.spotlight:nth-child(5) .spotlight__content { background: var(--green-dark); }

.spotlight__content h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.spotlight__content h4 {
    font-size: var(--text-base);
    color: var(--text-muted);
    font-weight: var(--weight-normal);
    margin-bottom: var(--space-lg);
}

.spotlight__content p { color: var(--text-muted); margin: 0; }

.spotlight__content a { color: var(--blue-light); }
.spotlight__content a:hover { color: var(--blue-lighter); }

/* ── 10. SECTION — CTA ───────────────────────────────────────────────────────── */

.section--cta {
    background: var(--bg-dark);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.cta__text {
    max-width: 42.5rem;
    margin: 0 auto var(--space-2xl);
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.cta__text a { color: var(--blue-light); }
.cta__text a:hover { color: var(--blue-lighter); }

.cta__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── 11. SECTION — CROSS-PROMO ───────────────────────────────────────────────── */

.section--xpromo {
    background: var(--blue-dark);
    text-align: center;
}

.section--xpromo p { color: var(--text-muted); max-width: 37.5rem; margin: 0 auto var(--space-2xl); }

/* ── 12. BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    letter-spacing: .05em;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-0.0625rem); }
.btn:active { transform: translateY(0); }

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

.btn--primary:hover {
    background: var(--green-bright);
    border-color: var(--green-bright);
    color: var(--bg-darker);
}

.btn--outline {
    background: transparent;
    color: var(--blue-lighter);
    border-color: var(--blue-lighter);
}

.btn--outline:hover {
    background: rgba(149, 180, 221, 0.15);
    border-color: var(--blue-pale);
    color: var(--blue-pale);
}

.btn--green {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn--green:hover {
    background: var(--green-bright);
    border-color: var(--green-bright);
    color: #fff;
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: var(--text-sm); }
.btn--lg { padding: 1rem 2.5rem; font-size: var(--text-lg); }

/* HTMX loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
.htmx-request .htmx-normal { display: none; }

/* ── 13. FORMS ────────────────────────────────────────────────────────────────── */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-group--full { grid-column: 1 / -1; }

.form-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    letter-spacing: .04em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem var(--space-md);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    line-height: var(--leading-base);
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-subtle); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue-light);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(91, 136, 194, 0.2);
}

.form-textarea { resize: vertical; min-height: 8.75rem; }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background var(--ease), border-color var(--ease);
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.28rem;
    top: 0.08rem;
    width: 0.32rem;
    height: 0.58rem;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

.form-checkbox span { font-size: var(--text-sm); color: var(--text-muted); }

.form-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Form response */
#form-response { margin-top: var(--space-xl); }

.form-success {
    padding: var(--space-xl);
    background: rgba(30, 164, 153, 0.12);
    border: 1px solid rgba(30, 164, 153, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
}

.form-success h3 {
    color: var(--green-bright);
    margin-bottom: var(--space-md);
}

.form-success--full {
    padding: var(--space-3xl) var(--space-xl);
}

.form-error {
    padding: var(--space-lg);
    background: rgba(255, 100, 50, 0.1);
    border: 1px solid rgba(255, 100, 50, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* reCAPTCHA notice */
.recaptcha-notice {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    margin-top: var(--space-sm);
}

.recaptcha-notice a { color: var(--text-subtle); text-decoration: underline; }

/* ── 14. FOOTER ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
}

/* ── Main footer body ── */

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* ── Brand column ── */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
}

.footer-wordmark {
    margin-bottom: var(--space-xs);
}

.footer-wordmark__logo {
    height: 1.25rem;
    width: auto;
    display: block;
}

.footer-wordmark__reg {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    letter-spacing: 0.04em;
    margin: var(--space-xs) 0 0;
}

.footer-wordmark__name {
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
    margin: 0 0 var(--space-xs);
}

.footer-wordmark__give {
    color: var(--green-bright);
}

.footer-wordmark__rule {
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--green);
    margin: var(--space-sm) 0;
    opacity: 0.55;
}

.footer-wordmark__tagline {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin: 0;
    white-space: nowrap;
}

.footer-address {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--text-subtle);
    line-height: 1.75;
    overflow-wrap: break-word;
}

.footer-contact-link {
    font-size: var(--text-sm);
    color: var(--blue-lighter);
    letter-spacing: 0.04em;
    transition: color var(--ease);
}

.footer-contact-link:hover {
    color: var(--text);
}

/* ── Navigation columns ── */

.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-col__heading {
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col__list a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--ease), padding-left var(--ease);
}

.footer-col__list a:hover {
    color: var(--text);
    padding-left: var(--space-xs);
}

/* External link indicator — small up-right arrow via pseudo-element */
.footer-col__ext::before {
    content: "\2197"; /* ↗ */
    font-size: 0.65em;
    opacity: 0.5;
    line-height: 1;
}

.footer-col__note {
    margin-top: var(--space-lg);
    font-size: var(--text-xs);
    color: var(--text-subtle);
    line-height: 1.75;
    overflow-wrap: break-word;
}

/* ── Bottom bar ── */

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-lg) 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: baseline;
    gap: var(--space-xl);
}

.footer-bottom__copy,
.footer-bottom__disclaimer {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    margin: 0;
    letter-spacing: 0.04em;
    line-height: 1.6;
    overflow-wrap: break-word;
    min-width: 0;
}

.footer-bottom__disclaimer {
    text-align: right;
    margin-left: auto;
}

/* ── 15. COOKIE NOTICE ────────────────────────────────────────────────────────── */

.cookie-notice {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    left: auto;
    max-width: 24rem;
    z-index: 5000;
    background: var(--dark-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.cookie-notice p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.cookie-notice a { color: var(--blue-light); text-decoration: underline; }

.cookie-notice__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ── 16. CONTENT / LEGAL PAGES ────────────────────────────────────────────────── */

.content-body {
    max-width: var(--container-prose);
    margin: 0 auto;
}

.content-body h4 {
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    margin: var(--space-2xl) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text);
}

.content-body h5 {
    font-size: var(--text-base);
    font-weight: var(--weight-semi);
    margin: var(--space-xl) 0 var(--space-sm);
    color: var(--blue-lighter);
}

.content-body p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.content-body ul,
.content-body ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    line-height: 1.8;
}

.content-body a { color: var(--blue-light); text-decoration: underline; }
.content-body a:hover { color: var(--blue-lighter); }
.content-body a.btn { color: #fff; text-decoration: none; }
.content-body a.btn:hover { color: var(--bg-darker); }

.content-body strong { color: var(--text); font-weight: var(--weight-semi); }

/* Table */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
}

.content-body table th,
.content-body table td {
    padding: var(--space-md);
    border: 1px solid var(--border-subtle);
    text-align: left;
    color: var(--text-muted);
    vertical-align: top;
}

.content-body table th {
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-weight: var(--weight-semi);
}

.content-body table tr:nth-child(even) td {
    background: rgba(255,255,255,.02);
}

/* About sections */
.about-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
}

.about-section:last-child { border-bottom: none; }

/* ── 17. ERROR PAGE ───────────────────────────────────────────────────────────── */

.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.error-page__code {
    font-size: 6rem;
    font-weight: var(--weight-light);
    color: var(--blue);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-page h2 {
    margin-bottom: var(--space-md);
    font-size: var(--text-2xl);
}

.error-page p { color: var(--text-muted); margin-bottom: var(--space-2xl); }

/* ── 18. ABOUT MISSION CARDS ─────────────────────────────────────────────────── */

.mission-block {
    padding: var(--space-2xl);
    background: rgba(255,255,255,.04);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--blue);
    margin-bottom: var(--space-xl);
}

.mission-block h4 {
    color: var(--blue-lighter);
    font-size: var(--text-base);
    font-weight: var(--weight-semi);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: var(--space-md);
}

.mission-block p,
.mission-block li { color: var(--text-muted); line-height: 1.8; }

.mission-block ol {
    list-style: decimal;
    padding-left: var(--space-xl);
    margin-top: var(--space-md);
}

.mission-block li { margin-bottom: var(--space-sm); }

/* Team profile (about page) */
.team-profile {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: var(--space-2xl);
    align-items: start;
    margin-top: var(--space-lg);
}

.team-profile__photo img {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid var(--blue);
    display: block;
}

.team-profile__name {
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    color: var(--text) !important;
    margin-bottom: 0.2rem !important;
}

.team-profile__title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--blue-light) !important;
    margin-bottom: var(--space-lg) !important;
}

@media (max-width: 600px) {
    .team-profile {
        grid-template-columns: 1fr;
    }
    .team-profile__photo img {
        width: 7rem;
        height: 7rem;
    }
}

/* ── 19. UTILITIES ────────────────────────────────────────────────────────────── */

.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-subtle  { color: var(--text-subtle); }
.text-sm      { font-size: var(--text-sm); }
.text-lg      { font-size: var(--text-lg); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

[x-cloak] { display: none !important; }

/* ── 20. SCROLL-REVEAL ────────────────────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-2rem); }
[data-reveal="right"] { transform: translateX(2rem); }
[data-reveal="scale"] { transform: scale(0.93); }

[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed,
[data-reveal="scale"].is-revealed { transform: none; }

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── 21. RESPONSIVE BREAKPOINTS (descending) ─────────────────────────────────── */


@media screen and (max-width: 80rem) {
    body { font-size: 0.8125rem; }
}

@media screen and (max-width: 64rem) {
    .spotlight { grid-template-columns: 1fr; min-height: auto; }
    .spotlight:nth-child(even) .spotlight__image { order: 1; }
    .spotlight:nth-child(even) .spotlight__content { order: 2; }
    .spotlight__image { height: 17.5rem; }
    .spotlight__content { padding: var(--space-2xl); }
    .features { grid-template-columns: repeat(2, 1fr); }
    /* Footer: collapse to 2-col nav + full-width brand at tablet */
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media screen and (max-width: 48rem) {
    body { font-size: 0.75rem; }

    .site-nav { display: none; }
    .nav-toggle { display: flex; }
    .nav-drawer { display: block; }

    .hero__wordmark svg { height: 1.5rem; }
    .hero__tagline { font-size: var(--text-base); }

    .section { padding: var(--space-3xl) 0; }
    .section--lg { padding: var(--space-4xl) 0; }

    .section__header { margin-bottom: var(--space-2xl); }
    .section__header h2 { font-size: var(--text-2xl); }

    .intro__icons { flex-direction: column; align-items: center; gap: var(--space-xl); }

    .features { grid-template-columns: 1fr; }
    .grid--2, .grid--3, .grid--6 { grid-template-columns: 1fr; }

    .form-grid { grid-template-columns: 1fr; }

    /* Footer: single column stack on mobile */
    .footer-inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .footer-brand { gap: var(--space-sm); }
    .footer-bottom__inner { flex-direction: column; align-items: center; gap: var(--space-sm); }
    .footer-bottom__copy,
    .footer-bottom__disclaimer { text-align: center; margin-left: 0; }

    .cta__actions { flex-direction: column; align-items: center; }
    .hero__actions { flex-direction: column; align-items: center; }

    .container { padding: 0 var(--space-lg); }

    .page-hero h1 { font-size: var(--text-3xl); }
}

@media screen and (max-width: 40rem) {
    body { font-size: 0.6875rem; letter-spacing: 0.025em; }

    .cookie-notice { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); max-width: none; }

    .btn { width: 100%; justify-content: center; }
    .btn--nav { width: auto; }

    .hero__icon svg { width: 4em; height: 4em; }

    .error-page__code { font-size: 4rem; }

    .mission-block { padding: var(--space-lg); }

    .content-body h4 { font-size: var(--text-lg); }

    .spotlight__content { padding: var(--space-xl); }
    .spotlight__image { height: 13.75rem; }
}

@media screen and (max-width: 30rem) {
    .site-header__inner { padding: 0 var(--space-md); }
    .container { padding: 0 var(--space-md); }
    .hero__inner { padding-left: var(--space-md); padding-right: var(--space-md); }
    .cookie-notice { padding: var(--space-lg); }
    .cookie-notice__actions { flex-direction: column; }
    .cookie-notice__actions .btn { width: 100%; }
}

@media screen and (max-width: 26.25rem) {
    .nav-drawer { padding: var(--space-xl) var(--space-md); }
}

@media screen and (orientation: landscape) and (max-height: 31.25rem) {
    .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-2xl)); padding-bottom: var(--space-2xl); }
}

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

/* ─────────────────────────────────────────────────────────────────────────────
 * 17. DEEP PAGE EXPANSION (services/{slug}, sectors/{slug}, insights, FAQs)
 * ───────────────────────────────────────────────────────────────────────────── */

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

/* Body hook for deep pages (lets us tighten layout if needed). */
body.deep-page { background: var(--bg, #f7f8fa); }

/* ── Page hero (inner pages with breadcrumb) ───────────────────────────────── */
.page-hero--noicon { padding-top: calc(var(--nav-height, 80px) + var(--space-2xl, 3rem)); padding-bottom: var(--space-2xl, 3rem); }
.page-hero--noicon h1 { margin-top: var(--space-md, 1rem); }

.breadcrumbs {
    margin: 0 auto var(--space-md, 1rem);
    max-width: 60rem;
    text-align: center;
}
.breadcrumbs__list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.4em; }
.breadcrumbs__item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    transition: color 120ms ease, border-color 120ms ease;
}
.breadcrumbs__item a:hover,
.breadcrumbs__item a:focus { color: #fff; border-color: rgba(255,255,255,0.7); }
.breadcrumbs__item span[aria-current="page"] { color: #fff; font-weight: 500; }
.breadcrumbs__sep { color: rgba(255,255,255,0.4); }

@media (max-width: 30rem) {
    /* On narrow viewports, hide all but the last two visually; keep in DOM for SR. */
    .breadcrumbs__item:not(:nth-last-child(-n+2)) { display: none; }
}

/* ── Section helpers ───────────────────────────────────────────────────────── */
.section__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-bright, #1ea499);
    margin: 0 0 var(--space-sm, 0.75rem);
}
.section__lede {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-muted, rgba(255,255,255,0.75));
    margin: 0 0 var(--space-lg, 1.5rem);
    max-width: 60ch;
}

/* ── Service-card grids on /services.php and /sectors.php overview pages ─── */
.service-card-grid,
.sector-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin: var(--space-xl, 2rem) 0;
}

/* ── Clickable feature card variant ────────────────────────────────────────── */
.feature-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.feature-card--link:hover,
.feature-card--link:focus-visible {
    transform: translateY(-2px);
    border-color: var(--green-bright, #1ea499);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.feature-card--link:focus-visible { outline: 2px solid var(--green-bright, #1ea499); outline-offset: 2px; }
.feature-card__more {
    display: inline-block;
    margin-top: var(--space-sm, 0.75rem);
    font-size: 0.875rem;
    color: var(--green-bright, #1ea499);
    letter-spacing: 0.02em;
}

/* ── Deliverables (six-item bullet list on service pages) ──────────────────── */
.deliverables-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md, 1rem) 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md, 1rem) var(--space-lg, 1.5rem);
}
.deliverables-list li {
    position: relative;
    padding: var(--space-sm, 0.75rem) 0 var(--space-sm, 0.75rem) 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--text, rgba(255,255,255,0.92));
    font-size: 0.9375rem;
    line-height: 1.55;
}
.deliverables-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.15rem;
    width: 12px; height: 12px;
    border-left: 2px solid var(--green-bright, #1ea499);
    border-bottom: 2px solid var(--green-bright, #1ea499);
    transform: rotate(-45deg);
}

/* ── Related services list ─────────────────────────────────────────────────── */
.related-list { list-style: none; padding: 0; margin: var(--space-md, 1rem) 0 0; }
.related-list li {
    padding: var(--space-sm, 0.75rem) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted, rgba(255,255,255,0.75));
    line-height: 1.55;
}
.related-list li a { color: var(--blue-light, #5b88c2); text-decoration: none; }
.related-list li a:hover { text-decoration: underline; }

/* ── Engagement narrative (sector inline example) ──────────────────────────── */
.engagement-narrative p { margin-bottom: var(--space-md, 1rem); }
.engagement-narrative p:last-child { margin-bottom: 0; }
.engagement-narrative__more {
    margin-top: var(--space-md, 1rem);
    font-size: 0.875rem;
}
.engagement-narrative__more a {
    color: var(--green-bright, #1ea499);
    text-decoration: none;
    border-bottom: 1px solid rgba(30,164,153,0.5);
}
.engagement-narrative__more a:hover { border-color: var(--green-bright, #1ea499); }

/* ── Cross-promo section (GIVE Network handoff block) ──────────────────────── */
.section--xpromo {
    background:
        radial-gradient(at top left, rgba(30,164,153,0.14), transparent 60%),
        radial-gradient(at bottom right, rgba(56,106,171,0.10), transparent 55%),
        #2e3842;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.xpromo__actions { margin-top: var(--space-lg, 1.5rem); }
.xpromo__foundation {
    margin-top: var(--space-md, 1rem);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}
.xpromo__foundation a {
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
}
.xpromo__foundation a:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ── Engagement cards (on /engagements.php aggregated case studies) ────────── */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin: var(--space-xl, 2rem) 0;
}
.engagement-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: var(--space-lg, 1.5rem);
    transition: border-color 160ms ease, transform 160ms ease;
}
.engagement-card:hover { border-color: rgba(30,164,153,0.45); transform: translateY(-2px); }
.engagement-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-bright, #1ea499);
    background: rgba(30,164,153,0.12);
    border-radius: 999px;
    padding: 0.2em 0.7em;
    margin-bottom: var(--space-sm, 0.75rem);
}
.engagement-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 var(--space-sm, 0.75rem);
    color: #fff;
}
.engagement-card__summary {
    color: var(--text-muted, rgba(255,255,255,0.75));
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 var(--space-md, 1rem);
}
.engagement-card__outcomes {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted, rgba(255,255,255,0.75));
}
.engagement-card__outcomes li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4em;
    line-height: 1.5;
}
.engagement-card__outcomes li::before {
    content: "›";
    position: absolute; left: 0; top: 0;
    color: var(--green-bright, #1ea499);
    font-weight: 700;
}

/* ── Insights listing ──────────────────────────────────────────────────────── */
.insight-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg, 1.5rem) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg, 1.5rem);
}
@media (min-width: 48rem) { .insight-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .insight-list { grid-template-columns: repeat(3, 1fr); } }

.insight-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: var(--space-lg, 1.5rem);
    position: relative;
    transition: border-color 160ms ease, transform 160ms ease;
}
.insight-card:hover { border-color: rgba(30,164,153,0.45); transform: translateY(-2px); }
.insight-card__meta {
    font-size: 0.75rem;
    color: var(--text-subtle, rgba(255,255,255,0.55));
    margin: 0 0 var(--space-sm, 0.75rem);
    letter-spacing: 0.02em;
}
.insight-card__sep { margin: 0 0.4em; opacity: 0.5; }
.insight-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 var(--space-sm, 0.75rem);
}
.insight-card__title a {
    color: #fff;
    text-decoration: none;
}
.insight-card__title a::after {
    content: "";
    position: absolute; inset: 0;
    /* stretched link so whole card is clickable */
}
.insight-card__title a:focus-visible { outline: 2px solid var(--green-bright, #1ea499); outline-offset: 4px; }
.insight-card__summary {
    color: var(--text-muted, rgba(255,255,255,0.75));
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg, 1.5rem);
    margin: var(--space-2xl, 3rem) 0 0;
    font-size: 0.9375rem;
}
.pagination a {
    color: var(--green-bright, #1ea499);
    text-decoration: none;
    border-bottom: 1px solid rgba(30,164,153,0.5);
    padding-bottom: 1px;
}
.pagination a:hover { border-color: var(--green-bright, #1ea499); }
.pagination__page { color: var(--text-muted, rgba(255,255,255,0.65)); }

/* ── Insights article (single post) ────────────────────────────────────────── */
.insight-article {
    background: var(--bg-darker, #2e3842);
}
.insight-article__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl, 3rem);
    align-items: start;
}
@media (min-width: 64rem) {
    .insight-article__grid {
        grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
    }
}
.insight-article__body { max-width: 68ch; }
.insight-article__meta {
    font-size: 0.875rem;
    color: var(--text-subtle, rgba(255,255,255,0.55));
    letter-spacing: 0.02em;
    margin: 0 0 var(--space-lg, 1.5rem);
}
.insight-article__sep { margin: 0 0.45em; opacity: 0.5; }
.insight-article__prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text, rgba(255,255,255,0.92)); }
.insight-article__prose h2 { font-size: 1.5rem; margin-top: 2em; }
.insight-article__prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.insight-article__prose blockquote {
    margin: 1.5em 0;
    padding: 0.1em 1.25em;
    border-left: 4px solid var(--green-bright, #1ea499);
    color: var(--text-muted, rgba(255,255,255,0.75));
    font-style: italic;
}
.insight-article__prose p + p { margin-top: 1em; }

.insight-article__sidebar { position: sticky; top: calc(var(--nav-height, 80px) + 1rem); }
.author-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: var(--space-lg, 1.5rem);
    text-align: center;
}
.author-card__photo {
    width: 88px; height: 88px;
    border-radius: 999px;
    object-fit: cover;
    margin: 0 auto var(--space-sm, 0.75rem);
    display: block;
    border: 2px solid rgba(255,255,255,0.15);
}
.author-card__name { font-weight: 600; margin: 0; color: #fff; }
.author-card__role { font-size: 0.8125rem; color: var(--text-subtle, rgba(255,255,255,0.6)); margin: 0.25em 0 var(--space-sm, 0.75rem); }
.author-card__bio { font-size: 0.875rem; color: var(--text-muted, rgba(255,255,255,0.75)); line-height: 1.55; margin: 0; }
.insight-article__share {
    margin-top: var(--space-md, 1rem);
    font-size: 0.875rem;
    text-align: center;
}
.insight-article__share a {
    color: var(--green-bright, #1ea499);
    text-decoration: none;
    border-bottom: 1px solid rgba(30,164,153,0.5);
}
.insight-article__share a:hover { border-color: var(--green-bright, #1ea499); }

@media (max-width: 64rem) {
    .insight-article__sidebar { position: static; }
}

/* ── FAQ accordion (native <details>/<summary>) ────────────────────────────── */
.faq-accordion { margin: var(--space-xl, 2rem) 0; }
.faq-group { margin-bottom: var(--space-2xl, 3rem); }
.faq-group__heading {
    font-size: 1.25rem;
    margin: 0 0 var(--space-md, 1rem);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5em;
}
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-md, 1rem) 0;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md, 1rem);
    transition: color 120ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    width: 12px; height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
    flex-shrink: 0;
    margin-right: 0.4em;
    opacity: 0.7;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--green-bright, #1ea499); }
.faq-item__body {
    padding: 0 0 var(--space-lg, 1.5rem);
    color: var(--text-muted, rgba(255,255,255,0.75));
    line-height: 1.65;
    font-size: 0.9375rem;
}
.faq-item__body p { margin: 0 0 0.8em; }
.faq-item__body p:last-child { margin: 0; }

/* ── Navigation: desktop dropdowns ─────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.1em;
}
.nav-dropdown > a {
    /* parent link styling matches existing .site-nav a; nothing extra */
}
.nav-dropdown__trigger {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.4em 0.4em;
    margin: 0;
    color: inherit;
    cursor: pointer;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
}
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible { background: rgba(255,255,255,0.06); outline: none; }
.nav-dropdown__chevron {
    width: 10px; height: 7px;
    transition: transform 160ms ease;
}
.nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron { transform: rotate(180deg); }
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 18rem;
    background: var(--bg-dark, #232b33);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    z-index: 200;
}
.nav-dropdown__menu li { display: block; }
.nav-dropdown__menu a {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
    background: rgba(30,164,153,0.12);
    color: #fff;
    border-left-color: var(--green-bright, #1ea499);
    outline: none;
}
.nav-dropdown__divider {
    list-style: none;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.4rem 0.25rem;
}
.nav-dropdown__viewall { font-style: italic; color: var(--green-bright, #1ea499) !important; }

/* ── Navigation: mobile drawer accordion ───────────────────────────────────── */
.nav-drawer__group { display: block; }
.nav-drawer__group-toggle {
    width: 100%;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.75rem 0;
    text-align: left;
    color: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md, 1rem);
}
.nav-drawer__chevron {
    width: 12px; height: 8px;
    transition: transform 160ms ease;
    opacity: 0.7;
    flex-shrink: 0;
}
.nav-drawer__chevron.is-open { transform: rotate(180deg); }
.nav-drawer__sublist {
    list-style: none;
    padding: 0 0 var(--space-sm, 0.75rem) var(--space-md, 1rem);
    margin: 0;
    border-left: 2px solid rgba(255,255,255,0.08);
    margin-left: 0.25rem;
}
.nav-drawer__sublist li { display: block; }
.nav-drawer__sublist a {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.75);
}
.nav-drawer__sublist a:hover { color: #fff; }
.nav-drawer__viewall { color: var(--green-bright, #1ea499) !important; font-style: italic; }

/* ── Mobile responsiveness for the new components ──────────────────────────── */
@media (max-width: 48rem) {
    .insight-article { padding-top: var(--space-xl, 2rem); padding-bottom: var(--space-xl, 2rem); }
    .breadcrumbs__list { font-size: 0.8125rem; }
    .nav-dropdown__menu { left: auto; right: 0; }
}

