/*
Theme Name: Wish Stories — End the Wait
Theme URI: https://ntxwish.org
Author: Make-A-Wish North Texas
Description: Wish Stories re-skinned in the Make-A-Wish North Texas "End the Wait" campaign brand — Forest, Cream, Mint, Wish Orange, Sun and Sky; GT Flexa / PP Editorial New (web fallbacks: Anton, Archivo, Instrument Serif); hand-drawn signature marks. Same layout and templates as the Wish Stories theme.
Version: 1.0.0
Text Domain: wishstories-ntx
*/

/* ═════════════════════════════════════════════════════════
   0. TOKENS — straight from ntxwish.org/brand-guidelines
   ═════════════════════════════════════════════════════════ */
:root {
    /* palette */
    --cream:   #F6F1E7;
    --paper:   #FBF8F1;
    --white:   #FFFFFF;
    --forest:  #063C3C;
    --ink-2:   #1F3A3A;
    --mint:    #03D2C7;
    --orange:  #FE6E0A;
    --peach:   #FFA36E;
    --sun:     #FFC800;
    --sky:     #6FD3FF;
    --purple:  #B87EFF;
    --rule:      rgba(6, 60, 60, 0.18);
    --rule-soft: rgba(6, 60, 60, 0.10);
    --cream-rule: rgba(246, 241, 231, 0.18);

    /* three voices */
    --display:   "GT Flexa X Compressed", "Anton", "Archivo Narrow", Impact, sans-serif;
    --sans:      "GT Flexa", "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
    --editorial: "PP Editorial New", "Instrument Serif", "Times New Roman", serif;

    /* rhythm */
    --track:   0.18em;   /* utility caps tracking */
    --track-xl: 0.22em;  /* eyebrows */
    --radius:  3px;      /* chips, inputs */
    --pill:    100px;    /* buttons — as on ntxwish.org */
    --gutter:  40px;
    --max:     1400px;
    --ease:    cubic-bezier(0.6, 0, 0.2, 1);
}

/* ─── Licensed brand faces ─────────────────────────────────
   Drop the licensed GT Flexa / PP Editorial New files into
   assets/fonts/ and un-comment. Until then the Google fallbacks
   named in the brand guide (Anton, Archivo, Instrument Serif)
   are loaded from functions.php.

@font-face {
    font-family: "GT Flexa X Compressed";
    src: url("assets/fonts/GT-Flexa-X-Compressed-Bold.woff2") format("woff2"),
         url("assets/fonts/GT-Flexa-X-Compressed-Bold.woff") format("woff");
    font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "GT Flexa";
    src: url("assets/fonts/GT-Flexa-Standard-Bold.woff2") format("woff2"),
         url("assets/fonts/GT-Flexa-Standard-Bold.woff") format("woff");
    font-weight: 600 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "PP Editorial New";
    src: url("assets/fonts/PPEditorialNew-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "PP Editorial New";
    src: url("assets/fonts/PPEditorialNew-Italic.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap;
}
*/

/* ═════════════════════════════════════════════════════════
   1. RESET & BASE
   ═════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--editorial);
    font-size: 19px;
    line-height: 1.65;
    color: var(--forest);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 400; /* Anton ships one weight; GT Flexa XComp is already Bold */
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--forest);
}

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

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

::selection {
    background: var(--sun);
    color: var(--forest);
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

/* utility caps — "The Utility" voice */
.caps,
.kicker,
.eyebrow {
    font-family: var(--sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--track);
}

.eyebrow {
    font-size: 11px;
    letter-spacing: var(--track-xl);
    color: var(--orange);
}

/* ═════════════════════════════════════════════════════════
   2. BUTTONS — one system, three colorways
   ═════════════════════════════════════════════════════════ */
.btn,
.view-all-link,
.giving-btn,
.clear-search-btn,
.submit-page .wpforms-container .wpforms-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover,
.view-all-link:hover,
.giving-btn:hover,
.clear-search-btn:hover,
.submit-page .wpforms-container .wpforms-submit:hover {
    transform: translateY(-1px);
}

/* Mint + Forest — AAA. Primary action. */
.btn--mint,
.giving-btn,
.submit-page .wpforms-container .wpforms-submit {
    background: var(--mint);
    color: var(--forest);
    border-color: var(--mint);
}
.btn--mint:hover,
.giving-btn:hover,
.submit-page .wpforms-container .wpforms-submit:hover {
    background: var(--forest);
    color: var(--mint);
    border-color: var(--forest);
}
.giving-btn.giving-btn--ghost {
    background: transparent;
    color: var(--forest);
    border-color: rgba(6, 60, 60, 0.35);
}
.giving-btn.giving-btn--ghost:hover {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

/* Forest + Cream — AAA. Default on colored surfaces. */
.btn--forest,
.view-all-link {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}
.btn--forest:hover,
.view-all-link:hover {
    background: var(--cream);
    color: var(--forest);
}

/* Orange + White — the main button on ntxwish.org */
.btn--orange,
.giving-btn--ask {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn--orange:hover,
.giving-btn--ask:hover {
    background: #d95500;
    color: var(--white);
    border-color: #d95500;
}

/* Ghost — quiet secondary, as .btn-ghost on ntxwish.org */
.btn--outline,
.btn--ghost,
.clear-search-btn,
.giving-btn--ghost {
    background: transparent;
    color: var(--forest);
    border-color: rgba(6, 60, 60, 0.35);
}
.btn--outline:hover,
.btn--ghost:hover,
.clear-search-btn:hover,
.giving-btn--ghost:hover {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}
.site-footer .btn--ghost {
    color: var(--cream);
    border-color: rgba(246, 241, 231, 0.35);
}

.btn,
.view-all-link,
.giving-btn {
    white-space: nowrap;
}

.btn svg,
.view-all-link svg,
.giving-btn svg {
    width: 22px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}
.btn:hover svg,
.view-all-link:hover svg,
.giving-btn:hover svg {
    transform: translateX(4px);
}

/* ═════════════════════════════════════════════════════════
   3. SIGNATURE MARKS — hand-drawn, one per surface,
      drawn in on scroll (marks.js adds .is-drawn)
   ═════════════════════════════════════════════════════════ */
.mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    color: inherit;
}

/* The stacking context lives on the element that HOLDS the mark, so the
   mark's svg (z-index -1) sits behind every word of the heading, not just
   the circled one — neighbouring lines stay readable. */
.mark-host,
h1:has(> .mark), h2:has(> .mark), h3:has(> .mark), p:has(> .mark),
.intro-text,
.giving-hero-title,
.footer-ask h2,
.more-stories-inner h2,
.impact-item {
    position: relative;
    isolation: isolate;
}

.mark > svg {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    color: var(--mark-color, var(--orange));
    clip-path: inset(0 100% 0 0);
    will-change: clip-path;
    /* same draw as ntxwish.org: 0.9s, cubic-bezier(0.25, 1, 0.5, 1) */
    transition: clip-path 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.mark.is-drawn > svg {
    clip-path: inset(0 0 0 0);
}

/* Underline — sits beneath the promise */
.mark--underline > svg {
    left: -5%;
    width: 110%;
    height: 0.34em;
    bottom: -0.22em;
}

/* Circle (wide) — locks onto the agent word: you / her / him / now */
.mark--circle {
    padding: 0 0.06em;
}
.mark--circle > svg {
    left: 50%;
    top: 50%;
    width: 137.5%;
    height: 175%;
    transform: translate(-50%, -50%);
    overflow: visible;
}

/* Asterisk — energy burst beside a stat, upper-right */
.mark--asterisk > svg {
    width: 0.5em;
    height: 0.5em;
    top: -0.28em;
    right: -0.6em;
    clip-path: none;
    transform: scale(0) rotate(-40deg);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}
.mark--asterisk.is-drawn > svg {
    transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .mark > svg { transition: none; clip-path: none; transform: none; }
}

/* ═════════════════════════════════════════════════════════
   4. HEADER — Forest + Cream (AAA)
   ═════════════════════════════════════════════════════════ */
.site-header {
    background: var(--forest);
    color: var(--cream);
    position: relative;
    border-bottom: 5px solid var(--mint);
}

.header-bg {
    display: none;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-height: 96px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    flex-shrink: 0;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.site-logo .logo-rule {
    width: 1px;
    height: 44px;
    background: var(--cream-rule);
}

.site-logo .site-wordmark {
    font-family: var(--display);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cream);
    padding-top: 2px;
    white-space: nowrap;
}

.header-nav-mobile {
    display: none;
}

.header-nav-desktop {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
}

.header-nav-desktop a,
.header-nav-mobile > a {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--cream);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    transition: color 0.2s;
}

/* hand-drawn underline, chalk-drawn on hover / active */
.header-nav-desktop a .nav-underline {
    position: absolute;
    left: -3%;
    width: 106%;
    height: 6px;
    bottom: -1px;
    color: var(--sun);
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-nav-desktop a:hover,
.header-nav-desktop a.active,
.header-nav-mobile > a:hover,
.header-nav-mobile > a.active {
    color: var(--sun);
}

.header-nav-desktop a:hover .nav-underline,
.header-nav-desktop a.active .nav-underline {
    clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    .header-nav-desktop a .nav-underline { transition: none; }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10000;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--cream);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--sun);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--sun);
}

/* Compact pill — header Donate button */
.btn--sm {
    padding: 11px 20px;
    font-size: 11px;
    letter-spacing: 0.14em;
}

/* Header Donate — sits after the last nav tab on desktop,
   left of the hamburger on mobile */
.header-donate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-nav-desktop .header-donate {
    margin-left: 8px;
}

/* beat the generic .header-nav-desktop a rules (padding / size / colour) */
.header-nav-desktop .header-donate .btn {
    padding: 11px 20px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--white);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-nav-desktop .header-donate .btn:hover {
    color: var(--white);
}

/* wrapper for the mobile Donate + hamburger; hidden on desktop so it
   doesn't become a third flex item and re-centre the nav */
.header-actions {
    display: none;
    align-items: center;
    gap: 14px;
}

.header-donate--mobile {
    display: none;
}

/* Admin-only inline editor for the donate link */
.donate-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--cream-rule);
    border-radius: 50%;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}

.donate-edit-btn:hover,
.donate-edit-btn:focus-visible {
    opacity: 1;
    color: var(--sun);
    border-color: var(--sun);
    outline: none;
}

.donate-editor {
    position: fixed;
    z-index: 10002;
    width: min(420px, calc(100vw - 32px));
    background: var(--paper);
    color: var(--forest);
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(6, 60, 60, 0.28);
    padding: 16px;
    display: none;
    font-family: var(--sans);
}

.donate-editor.is-open {
    display: block;
}

.donate-editor label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--track);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.donate-editor input[type="url"] {
    width: 100%;
    font: 500 14px/1.4 var(--sans);
    color: var(--forest);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.donate-editor input[type="url"]:focus {
    outline: 2px solid var(--mint);
    outline-offset: 1px;
    border-color: var(--mint);
}

.donate-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.donate-editor-actions .btn {
    padding: 10px 18px;
    font-size: 11px;
}

.donate-editor-status {
    font-size: 12px;
    margin-left: auto;
    color: var(--ink-2);
}

.donate-editor-status.is-error {
    color: #b3300a;
}

.donate-editor-status.is-saved {
    color: #0a7a5c;
}

.donate-editor-backend {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-2);
    text-decoration: underline;
}

/* ═════════════════════════════════════════════════════════
   5. INTRO — search + reading-voice intro
   ═════════════════════════════════════════════════════════ */
.intro-section {
    background: var(--cream);
    padding: 64px 0 44px;
}

.intro-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.search-wrap {
    flex-shrink: 0;
    width: 320px;
}

.search-wrap .search-label {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--track-xl);
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
}

.search-wrap form {
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 3px solid var(--forest);
    padding: 6px 0 10px;
    transition: border-color 0.2s;
}

.search-wrap form:focus-within {
    border-color: var(--orange);
}

.search-wrap input[type="text"],
.search-wrap input[type="search"] {
    border: none;
    background: transparent;
    font-family: var(--editorial);
    font-size: 22px;
    color: var(--forest);
    width: 100%;
    outline: none;
    padding: 0;
}

.search-wrap input::placeholder {
    color: var(--forest);
    opacity: 0.55;
    font-style: italic;
}

.search-wrap button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--forest);
    padding: 0 0 0 10px;
    flex-shrink: 0;
    display: flex;
    transition: color 0.2s;
}

.search-wrap button:hover {
    color: var(--orange);
}

.intro-text {
    flex: 1;
    font-family: var(--editorial);
    font-size: 22px;
    line-height: 1.6;
    color: var(--forest);
    max-width: 880px;
}

.intro-text em {
    font-style: italic;
    color: var(--forest);
}

/* ═════════════════════════════════════════════════════════
   6. CATEGORY FILTER
   ═════════════════════════════════════════════════════════ */
.category-filter {
    background: var(--cream);
    position: relative;
}

.category-filter-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.category-filter a {
    display: inline-block;
    padding: 18px 0 18px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--forest);
    position: relative;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.category-filter a:hover,
.category-filter a.active {
    opacity: 1;
}

/* hand-drawn underline, chalk-drawn on hover / active */
.category-filter a .cat-underline {
    position: absolute;
    left: -3%;
    width: 106%;
    height: 6px;
    bottom: 9px;
    color: var(--orange);
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-filter a:hover .cat-underline,
.category-filter a.active .cat-underline {
    clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    .category-filter a .cat-underline { transition: none; }
}

/* ═════════════════════════════════════════════════════════
   7. POST GRID — halo on hover
   ═════════════════════════════════════════════════════════ */
.posts-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--gutter) 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: var(--forest);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    opacity: 1;
    transform: scale(1);
    will-change: opacity, transform;
}

.post-card img,
.post-card .post-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.post-card:hover img {
    transform: scale(1.05);
}

/* the halo — a generous, slightly-imperfect cream trace */
.post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 var(--cream);
    transition: box-shadow 0.35s var(--ease);
    z-index: 2;
}

.post-card:hover::after,
.post-card:focus-visible::after {
    box-shadow: inset 0 0 0 8px var(--cream);
}

.post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky);
}

.post-card-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--forest);
}

.post-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(6,60,60,0) 0%, rgba(6,60,60,0.55) 45%, rgba(6,60,60,0.92) 100%);
    padding: 72px 24px 22px;
    z-index: 1;
}

.post-card-overlay .post-cat {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: var(--track-xl);
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: 8px;
}

.post-card-overlay h3 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.04;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    transition: transform 0.4s var(--ease);
}

.post-card:hover .post-card-overlay h3 {
    transform: translateY(-3px);
}

/* Outside stories (news coverage on another site): a round Sun badge top-right with
   the box-with-arrow icon so the card reads as "leaves this site". */
.post-card-source {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--forest);
    pointer-events: none;
    transition: transform 0.4s var(--ease);
}

.post-card:hover .post-card-source {
    transform: translateY(-2px);
}

.ext-icon {
    width: 14px;
    height: 14px;
    flex: none;
    vertical-align: -1px;
}

.post-nav-title .ext-icon {
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.15em;
}

/* visually hidden, read by screen readers */
.wsntx-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ═════════════════════════════════════════════════════════
   8. SINGLE POST
   ═════════════════════════════════════════════════════════ */
.single-hero {
    max-width: 1100px;
    margin: 40px auto 0;
    max-height: 560px;
    overflow: hidden;
    background: var(--forest);
}

.single-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 560px;
}

.single-hero-video {
    max-height: none;
    height: auto;
    background: var(--forest);
}

.video-embed {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 960px) {
    .single-hero {
        max-width: 100%;
        margin-top: 0;
        max-height: 420px;
        position: relative;
        z-index: 1;
    }

    .single-hero img {
        max-height: 420px;
    }

    .single-hero .simpleParallax {
        overflow: hidden !important;
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .single-hero,
    .single-hero img {
        max-height: 300px;
    }
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 30px 72px;
}

.single-meta {
    margin-bottom: 20px;
}

/* Category tag on a Sun paint swipe (the brand's underline stroke, stretched) */
.single-meta {
    position: relative;
    isolation: isolate;
}

.single-meta .cat-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--forest);
    padding: 9px 14px 8px;
    margin-right: 10px;
    white-space: nowrap;
}

.mark--swipe > svg {
    left: -4px;
    top: 0;
    width: calc(100% + 8px);
    height: 100%;
    color: var(--sun);
}

.single-content h1 {
    font-family: var(--display);
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 400;
    color: var(--forest);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.date-share-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

.date-share-row .post-date {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    opacity: 0.75;
}

.date-share-row .share-links {
    padding-left: 20px;
    border-left: 1px solid var(--rule);
}

.share-links {
    display: flex;
    gap: 16px;
}

.share-links a {
    color: var(--forest);
    opacity: 0.55;
    display: flex;
    transition: opacity 0.2s, color 0.2s;
}

.share-links a:hover {
    opacity: 1;
    color: var(--orange);
}

/* The Reading Voice */
.single-content .entry-content {
    font-family: var(--editorial);
    font-size: clamp(18px, 1.35vw, 21px);
    line-height: 1.65;
    color: var(--forest);
}

.single-content .entry-content p {
    margin-bottom: 1.35em;
}

.single-content .entry-content a {
    color: var(--forest);
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.single-content .entry-content a:hover {
    color: var(--orange);
}

.single-content .entry-content h2,
.single-content .entry-content h3 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--forest);
    line-height: 1.08;
    margin: 1.8em 0 0.6em;
}

.single-content .entry-content h2 { font-size: 34px; }
.single-content .entry-content h3 { font-size: 26px; }

/* Pull quote: PP Editorial Italic 28/36 */
.single-content .entry-content blockquote {
    font-family: var(--editorial);
    font-style: italic;
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--forest);
    border-left: 4px solid var(--orange);
    padding: 6px 0 6px 28px;
    margin: 40px 0;
}

.single-content .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-content .entry-content img {
    border-radius: 0;
    margin: 32px 0;
}

.single-content .entry-content ul,
.single-content .entry-content ol {
    margin: 0 0 1.35em 1.4em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: var(--track);
    margin-bottom: 30px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--orange);
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 45%;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--track-xl);
    color: var(--orange);
}

.post-nav-title {
    font-family: var(--editorial);
    font-style: italic;
    font-size: 19px;
    color: var(--forest);
    line-height: 1.3;
    transition: color 0.2s;
}

.post-nav-link:hover .post-nav-title {
    color: var(--orange);
}

@media (max-width: 550px) {
    .post-nav {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .post-nav-link {
        max-width: 50%;
    }

    .post-nav-title {
        display: none;
    }

    .post-nav-label {
        font-size: 12px;
    }
}

/* ═════════════════════════════════════════════════════════
   9. MORE STORIES — the Sun close (Forest on Sun, AAA)
   ═════════════════════════════════════════════════════════ */
.more-stories {
    background: var(--sun);
    color: var(--forest);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.more-stories-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    text-align: center;
}

.more-stories-inner .post-card-overlay {
    text-align: left;
}

.more-stories-inner .eyebrow {
    color: var(--forest);
    opacity: 0.7;
    margin-bottom: 12px;
}

.more-stories-inner h2 .mark { --mark-color: var(--orange); }

.more-stories-inner h2 {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    color: var(--forest);
    line-height: 1.02;
    margin-bottom: 36px;
}

.more-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.more-stories-grid .post-card:nth-child(4) {
    display: none;
}

/* halo reads as forest on the sun surface */
.more-stories .post-card:hover::after,
.more-stories .post-card:focus-visible::after {
    box-shadow: inset 0 0 0 8px var(--sun);
}

@media (max-width: 900px) {
    .more-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .more-stories-grid .post-card:nth-child(4) {
        display: block;
    }
}

@media (max-width: 550px) {
    .more-stories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .more-stories-grid .post-card:nth-child(4) {
        display: none;
    }

    .more-stories {
        padding: 48px 0 56px;
    }

    .more-stories-inner {
        padding: 0 20px;
    }
}

/* ═════════════════════════════════════════════════════════
   10. FOOTER — Forest + Cream
   ═════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--forest);
    color: var(--cream);
    padding: 0 var(--gutter) 32px;
}

/* the ask, before the columns */
.footer-ask {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--cream-rule);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.footer-ask h2 {
    font-family: var(--display);
    font-size: clamp(44px, 5.6vw, 84px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.0;
    letter-spacing: -0.01em;
    max-width: 22ch;
}

.footer-ask h2 .mark { --mark-color: var(--sun); }

/* smaller circle, tucked behind "You" at the start of line two */
.footer-ask h2 .mark--circle > svg {
    width: 114%;
    height: 132%;
    top: 52%;
}

.footer-ask-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    max-width: 380px;
}

.footer-ask-side p {
    font-family: var(--editorial);
    font-size: 19px;
    line-height: 1.5;
    color: var(--cream);
    opacity: 0.9;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px 0 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-col-logo {
    text-align: left;
}

.footer-col-nav,
.footer-col-social {
    text-align: left;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-tagline {
    margin-top: 20px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--track-xl);
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.6;
}

.footer-col-nav h4,
.footer-col-social h4 {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--track-xl);
    color: var(--sun);
    margin-bottom: 20px;
}

.footer-col-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-nav ul li {
    margin-bottom: 12px;
}

.footer-col-nav ul li a {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--cream);
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.footer-col-nav ul li a:hover {
    opacity: 1;
    color: var(--sun);
}

.social-links {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
}

.social-links a {
    color: var(--cream);
    opacity: 0.85;
    display: flex;
    transition: opacity 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--sun);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: var(--max);
    margin: 48px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--cream-rule);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.5;
}

/* ═════════════════════════════════════════════════════════
   11. PAGINATION
   ═════════════════════════════════════════════════════════ */
/* Infinite scroll sentinel: sits below the grid, shows a quiet status while loading,
   and a pill button only after repeated failed fetches. It is removed from the page
   once the last story is in. */
.load-more {
    max-width: var(--max);
    margin: 0 auto 56px;
    padding: 0 var(--gutter);
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.load-more-status {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--track-xl);
    text-transform: uppercase;
    color: var(--forest);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.load-more.is-loading .load-more-status,
.load-more-status:not(:empty) {
    opacity: 0.7;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--forest);
    background: transparent;
    border: 1px solid rgba(6, 60, 60, 0.35);
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.load-more-btn:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.pagination {
    max-width: var(--max);
    margin: 0 auto 56px;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border: 1px solid rgba(6, 60, 60, 0.35);
    border-radius: var(--pill);
    color: var(--forest);
    transition: 0.2s;
}

.pagination a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.pagination span.current {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.pagination span.dots {
    border-color: transparent;
}

/* ═════════════════════════════════════════════════════════
   12. PAGES & FORMS
   ═════════════════════════════════════════════════════════ */
.page-content {
    min-height: 60vh;
}

.page-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px var(--gutter) 88px;
}

.page-inner h1 {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 20px;
}

.page-intro {
    font-family: var(--editorial);
    font-size: 20px;
    line-height: 1.6;
    color: var(--forest);
    margin-bottom: 40px;
}

.submit-page {
    max-width: 760px;
    padding-top: 56px;
}

.form-wrap {
    margin-top: 0;
}

.form-kicker {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

.form-kicker .eyebrow {
    display: block;
    margin-bottom: 10px;
}

.form-kicker p {
    font-family: var(--editorial);
    font-size: 20px;
    line-height: 1.5;
    color: var(--forest);
}

/* WPForms — square, forest-lined, cream paper */
.submit-page .wpforms-container .wpforms-field-label {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 12px;
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.submit-page .wpforms-container .wpforms-field-sublabel,
.submit-page .wpforms-container .wpforms-field-description {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-2);
    opacity: 0.75;
}

.submit-page .wpforms-container input[type="text"],
.submit-page .wpforms-container input[type="email"],
.submit-page .wpforms-container input[type="tel"],
.submit-page .wpforms-container input[type="url"],
.submit-page .wpforms-container input[type="number"],
.submit-page .wpforms-container select,
.submit-page .wpforms-container textarea {
    border: 2px solid var(--forest);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: var(--editorial);
    font-size: 18px;
    color: var(--forest);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.submit-page .wpforms-container input:focus,
.submit-page .wpforms-container textarea:focus,
.submit-page .wpforms-container select:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(254, 110, 10, 0.18);
}

.submit-page .wpforms-container textarea {
    min-height: 180px;
}

.submit-page .wpforms-container .wpforms-submit-container {
    text-align: left;
    padding-top: 10px;
}

/* WPForms ships its own button styles at high specificity — out-rank them. */
.submit-page div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit,
.submit-page div.wpforms-container-full .wpforms-form .wpforms-page-button,
.submit-page .wpforms-container .wpforms-submit-container button[type="submit"],
.submit-page .wpforms-container .wpforms-submit {
    background: var(--orange) !important;
    background-color: var(--orange) !important;
    color: var(--white) !important;
    border: 1px solid var(--orange) !important;
    border-radius: var(--pill) !important;
    box-shadow: none !important;
    font-family: var(--sans) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding: 18px 34px !important;
    height: auto !important;
    min-height: 0 !important;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease) !important;
}

.submit-page div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:hover,
.submit-page div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:focus,
.submit-page .wpforms-container .wpforms-submit-container button[type="submit"]:hover,
.submit-page .wpforms-container .wpforms-submit:hover {
    background: #d95500 !important;
    background-color: #d95500 !important;
    color: var(--white) !important;
    border-color: #d95500 !important;
    transform: translateY(-1px);
}

/* WPForms modern markup: inputs + labels */
.submit-page div.wpforms-container-full .wpforms-form input[type="text"],
.submit-page div.wpforms-container-full .wpforms-form input[type="email"],
.submit-page div.wpforms-container-full .wpforms-form input[type="tel"],
.submit-page div.wpforms-container-full .wpforms-form input[type="url"],
.submit-page div.wpforms-container-full .wpforms-form input[type="number"],
.submit-page div.wpforms-container-full .wpforms-form select,
.submit-page div.wpforms-container-full .wpforms-form textarea {
    border: 2px solid var(--forest);
    border-radius: 2px;
    background: var(--white);
    color: var(--forest);
    font-family: var(--editorial);
    font-size: 18px;
    padding: 14px 16px;
    height: auto;
}

.submit-page div.wpforms-container-full .wpforms-form input:focus,
.submit-page div.wpforms-container-full .wpforms-form textarea:focus,
.submit-page div.wpforms-container-full .wpforms-form select:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(254, 110, 10, 0.18);
}

.submit-page div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 12px;
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.submit-page div.wpforms-container-full .wpforms-form .wpforms-field-sublabel,
.submit-page div.wpforms-container-full .wpforms-form .wpforms-field-description {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-2);
}

.submit-page div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: var(--orange);
}

.form-notice {
    background: var(--sun);
    color: var(--forest);
    padding: 28px;
    border-radius: 2px;
    font-family: var(--editorial);
    font-size: 19px;
    text-align: center;
}

/* ═════════════════════════════════════════════════════════
   13. GIVING PAGE — six-chapter rhythm:
       Forest hero → Sky data → Cream ask → Orange story → Cream ask
   ═════════════════════════════════════════════════════════ */
.giving-hero {
    position: relative;
    min-height: 580px;
    background: var(--forest);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.giving-hero.parallax {
    background: var(--forest) !important;
}

.giving-hero.parallax .parallax-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.giving-hero.parallax .parallax-img img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.giving-hero.parallax .parallax-img img.parallax-ready {
    opacity: 1;
}

/* Forest wash — hero pairing, Forest + Cream (AAA) */
.giving-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 60, 60, 0.82);
    z-index: 1;
}

.giving-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 96px var(--gutter);
}

.giving-hero .eyebrow {
    color: var(--sun);
    display: block;
    margin-bottom: 28px;
    position: relative;
    z-index: 3; /* above the circle mark's overshoot */
}

.giving-hero-title {
    font-family: var(--display);
    font-size: clamp(60px, 9vw, 140px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.giving-hero-title .mark { --mark-color: var(--sun); }

/* single-word hero circle: the tighter .circle-svg ratio from the ntxwish.org hero */
.giving-hero-title .mark--circle > svg {
    width: 110%;
    height: 118%;
    top: 54%;
}

.nowrap {
    white-space: nowrap;
}

.giving-hero-text {
    font-family: var(--editorial);
    font-size: clamp(19px, 1.6vw, 23px);
    color: var(--cream);
    opacity: 0.92;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
}

/* Reportage: Sky + Forest (AAA) — data callouts */
.giving-impact {
    background: var(--sky);
    color: var(--forest);
    padding: 64px var(--gutter);
}

.giving-impact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.impact-item {
    color: var(--forest);
    padding-left: 22px;
    border-left: 3px solid var(--forest);
}

.impact-number {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(64px, 7.5vw, 112px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.impact-number .mark { --mark-color: var(--orange); }

.impact-label {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--track-xl);
    opacity: 0.8;
    max-width: 22ch;
    line-height: 1.5;
}

/* Giving Blocks (Donate / Volunteer) */
.giving-block {
    padding: 96px var(--gutter);
}

.giving-donate {
    background: var(--cream);
}

.giving-volunteer {
    background: var(--paper);
    border-top: 1px solid var(--rule-soft);
}

.giving-block-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.giving-block-inner.reverse {
    direction: rtl;
}

.giving-block-inner.reverse > * {
    direction: ltr;
}

/* photo on a color block — the campaign's cut-out gesture */
.giving-block-image {
    position: relative;
}

.giving-block-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: 16px 16px 0 var(--sun);
}

.giving-volunteer .giving-block-image img {
    box-shadow: -16px 16px 0 var(--mint);
}

.giving-stroke-icon {
    display: none;
}

.giving-block-content .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.giving-block-content h2 {
    font-family: var(--display);
    font-size: clamp(40px, 4.4vw, 60px);
    font-weight: 400;
    color: var(--forest);
    line-height: 1.02;
    margin-bottom: 18px;
}

.giving-block-content p {
    font-family: var(--editorial);
    font-size: 20px;
    line-height: 1.6;
    color: var(--forest);
    margin-bottom: 32px;
    max-width: 46ch;
}

/* Orange story — display-size italic on Wish Orange (large text only) */
.giving-quote-section {
    background: var(--orange);
    color: var(--cream);
    padding: 88px var(--gutter);
    text-align: center;
}

.giving-quote-inner {
    max-width: 860px;
    margin: 0 auto;
}

.giving-quote-inner blockquote {
    font-family: var(--editorial);
    font-size: clamp(28px, 3.4vw, 42px);
    font-style: italic;
    color: var(--cream);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.giving-quote-inner cite {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: var(--track-xl);
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.9;
    font-style: normal;
}

@media (max-width: 768px) {
    .giving-hero {
        min-height: 460px;
    }

    .giving-hero.parallax {
        background-attachment: scroll;
    }

    .giving-hero-inner {
        padding: 72px 20px;
    }

    .giving-hero-text {
        font-size: 18px;
    }

    .giving-block {
        padding: 56px 20px;
    }

    .giving-block-inner,
    .giving-block-inner.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .giving-block-image img,
    .giving-volunteer .giving-block-image img {
        box-shadow: 10px 10px 0 var(--sun);
    }

    .giving-volunteer .giving-block-image img {
        box-shadow: 10px 10px 0 var(--mint);
    }

    .giving-impact {
        padding: 48px 20px;
    }

    .giving-impact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .giving-quote-section {
        padding: 56px 20px;
    }

    .page-inner {
        padding: 32px 20px 64px;
    }
}

/* ═════════════════════════════════════════════════════════
   14. NO POSTS / NO RESULTS
   ═════════════════════════════════════════════════════════ */
.no-posts {
    text-align: center;
    padding: 88px 30px;
    font-family: var(--editorial);
    font-style: italic;
    font-size: 22px;
    color: var(--forest);
    opacity: 0.7;
    grid-column: 1 / -1;
}

.no-results-msg {
    text-align: center;
    padding: 64px 30px;
    max-width: var(--max);
    margin: 0 auto;
}

.no-results-msg p {
    font-family: var(--editorial);
    font-style: italic;
    font-size: 22px;
    color: var(--forest);
    margin-bottom: 24px;
}

/* ═════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═════════════════════════════════════════════════════════ */
@media (max-width: 1250px) {
    .category-filter a {
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .category-filter-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 28px;
    }

    .category-filter-inner::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 1100px) {
    :root { --gutter: 30px; }

    .site-logo .site-wordmark {
        font-size: 26px;
    }

    .footer-ask {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1400px) {
    .header-nav-desktop {
        gap: 26px;
    }

    .site-logo {
        gap: 16px;
    }

    .site-logo img {
        height: 50px;
    }

    .site-logo .site-wordmark {
        font-size: 26px;
    }
}

@media (max-width: 1250px) {
    .header-nav-desktop {
        display: none;
    }

    .site-header {
        position: relative;
        z-index: 10001;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: flex;
    }

    .header-donate--mobile {
        display: inline-flex;
    }

    /* Mobile menu — Forest sheet, display-size links */
    .header-nav-mobile {
        display: flex;
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: var(--forest);
        flex-direction: column;
        padding: 48px var(--gutter) 40px;
        gap: 0;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.45s var(--ease);
        overflow-y: auto;
        justify-content: flex-start;
    }

    .header-nav-mobile.open {
        transform: translateX(0);
    }

    .mobile-overlay {
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 60, 60, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header-nav-mobile > a {
        font-family: var(--display);
        font-size: clamp(26px, 7.6vw, 56px);
        white-space: nowrap;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.05;
        padding: 18px 0;
        border-bottom: 1px solid var(--cream-rule);
        text-align: left;
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
    }

    .header-nav-mobile.open > a {
        opacity: 1;
        transform: translateX(0);
    }

    .header-nav-mobile.open > a:nth-child(1) { transition-delay: 0.1s; }
    .header-nav-mobile.open > a:nth-child(2) { transition-delay: 0.18s; }
    .header-nav-mobile.open > a:nth-child(3) { transition-delay: 0.26s; }

    .header-nav-mobile .mobile-nav-ask .btn {
        align-self: flex-start;
    }

    .header-nav-mobile .mobile-nav-ask {
        margin-top: auto;
        padding-top: 32px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        opacity: 0;
        transition: opacity 0.4s ease 0.34s;
    }

    .header-nav-mobile.open .mobile-nav-ask {
        opacity: 1;
    }

    .header-nav-mobile .mobile-nav-ask .eyebrow {
        color: var(--sun);
    }
}

@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .intro-section {
        padding: 44px 0 32px;
    }

    .intro-inner {
        flex-direction: column;
        gap: 28px;
    }

    .search-wrap {
        width: 100%;
    }

    .intro-text {
        font-size: 20px;
    }

    .search-wrap input[type="text"],
    .search-wrap input[type="search"] {
        font-size: 20px;
    }

    .category-filter-inner {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-filter-inner::-webkit-scrollbar {
        display: none;
    }

    .category-filter a {
        white-space: nowrap;
        font-size: 11px;
        padding: 16px 0 13px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
        align-items: center;
        min-height: 80px;
    }

    .site-logo {
        gap: 14px;
        padding: 14px 0;
    }

    .site-logo img {
        height: 44px;
    }

    .site-logo .logo-rule {
        height: 34px;
    }

    .site-logo .site-wordmark {
        font-size: 22px;
    }

    .header-nav-mobile,
    .mobile-overlay {
        top: 80px;
    }

    .single-hero img {
        max-height: 300px;
    }

    .single-content {
        padding: 40px 20px 60px;
    }

    .site-footer {
        padding: 0 20px 28px;
    }

    .footer-ask {
        padding: 48px 0 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: left;
    }

    .footer-logo img {
        height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 550px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-card {
        aspect-ratio: 4 / 3;
    }

    .post-card-overlay h3 {
        font-size: 24px;
    }

    .site-logo {
        gap: 10px;
    }

    .site-logo img {
        height: 34px;
    }

    .site-logo .site-wordmark {
        font-size: 19px;
        letter-spacing: 0.03em;
    }

    .site-logo .logo-rule {
        height: 26px;
    }

    .header-inner {
        min-height: 72px;
    }

    .header-nav-mobile,
    .mobile-overlay {
        top: 72px;
    }

    .header-nav-mobile {
        padding: 32px 20px 32px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-donate--mobile .btn {
        padding: 9px 14px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .site-logo {
        gap: 10px;
    }

    .intro-inner,
    .category-filter-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .single-content {
        padding: 32px 20px 56px;
    }

    .single-content h1 {
        font-size: 40px;
    }

    .single-content .entry-content blockquote {
        padding-left: 18px;
    }
}

/* ═════════════════════════════════════════════════════════
   SMALL PHONES — logo, wordmark, Donate and hamburger share one row
   ═════════════════════════════════════════════════════════ */
@media (max-width: 430px) {
    .header-inner {
        padding: 0 16px;
        min-height: 64px;
    }

    .header-nav-mobile,
    .mobile-overlay {
        top: 64px;
    }

    .site-logo {
        gap: 8px;
        padding: 12px 0;
    }

    .site-logo img {
        height: 30px;
    }

    .site-logo .logo-rule {
        height: 22px;
    }

    .site-logo .site-wordmark {
        font-size: 16px;
        letter-spacing: 0.02em;
    }

    .header-actions {
        gap: 6px;
    }

    .header-donate--mobile {
        gap: 4px;
    }

    .header-donate--mobile .btn {
        padding: 8px 11px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .donate-edit-btn {
        width: 22px;
        height: 22px;
    }

    .donate-edit-btn svg {
        width: 12px;
        height: 12px;
    }

    .menu-toggle {
        padding: 4px;
    }

    .menu-toggle span {
        width: 24px;
        margin: 4px 0;
    }

    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header-nav-mobile {
        padding: 24px 16px 28px;
    }
}

/* 360–375px phones: shave the row so the wordmark clears the Donate pill */
@media (max-width: 380px) {
    .site-logo {
        gap: 6px;
    }

    .site-logo img {
        height: 28px;
    }

    .site-logo .site-wordmark {
        font-size: 15px;
        letter-spacing: 0.01em;
    }

    .header-actions {
        gap: 4px;
    }

    .header-donate--mobile .btn {
        padding: 8px 10px;
        letter-spacing: 0.04em;
    }

    .donate-edit-btn {
        width: 20px;
        height: 20px;
    }

    .menu-toggle {
        padding: 4px 2px;
    }
}

/* Narrowest phones: the Make-A-Wish mark alone carries the header */
@media (max-width: 340px) {
    .site-logo .logo-rule,
    .site-logo .site-wordmark {
        display: none;
    }
}
