:root {
    --black: #101010;
    --ink: #181818;
    --muted: #666666;
    --line: #dedede;
    --soft: #f5f5f5;
    --paper: #fafafa;
    --white: #ffffff;
    --accent: #242424;
    --accent-dark: #555555;
    --accent-soft: #f0f0f0;
    --success: #237a4b;
    --danger: #b13b31;
    --shadow-sm: 0 8px 24px rgba(20, 20, 16, 0.07);
    --shadow-md: 0 22px 55px rgba(20, 20, 16, 0.12);
    --container: 1240px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

html {
    scroll-padding-top: 104px;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
    line-height: 1.65;
}

@supports (overflow: clip) {
    html {
        overflow-x: clip;
    }
}

::selection {
    color: var(--white);
    background: var(--accent);
}

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

[data-public-content] {
    min-height: 60vh;
    transition: opacity 160ms ease;
}

[data-public-content].is-navigating {
    opacity: 0.55;
    pointer-events: none;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 580ms ease, transform 580ms ease;
}

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

.container {
    width: min(calc(100% - 64px), var(--container));
}

.container--narrow {
    width: min(calc(100% - 64px), 780px);
}

.site-header {
    position: sticky;
    top: 0;
    height: 88px;
    background: rgba(250, 250, 250, 0.96);
    border-bottom: 1px solid rgba(16, 16, 16, 0.1);
    backdrop-filter: blur(14px);
}

.nav-shell {
    gap: 38px;
}

.brand {
    height: 72px;
    gap: 12px;
}

.brand img {
    width: 52px;
    height: 56px;
}

.brand__wordmark {
    display: flex;
    min-width: 172px;
    flex-direction: column;
    line-height: 1.15;
}

.brand__wordmark strong {
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.brand__wordmark small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.desktop-nav {
    gap: 26px;
}

.desktop-nav a,
.nav-link {
    font-size: 13px;
    font-weight: 760;
}

.desktop-nav a::after {
    right: auto;
    bottom: -12px;
    width: 18px;
    height: 3px;
    background: var(--accent);
}

.header-search,
.listing-search,
.mobile-search {
    background: var(--white);
    border-color: var(--line);
    border-radius: var(--radius-sm);
}

.header-search {
    width: min(280px, 24vw);
}

.header-search:focus-within,
.listing-search:focus-within,
.mobile-search:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(36, 36, 36, 0.18);
}

.button {
    min-height: 48px;
    padding-inline: 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 820;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    color: var(--white);
    background: #2d2d2d;
    border-color: #2d2d2d;
    box-shadow: 0 10px 24px rgba(16, 16, 16, 0.15);
}

.button--accent {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.button--accent:hover {
    color: var(--white);
    background: #3a3a3a;
    border-color: #3a3a3a;
}

.button--outline {
    color: var(--ink);
    background: transparent;
    border-color: var(--ink);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.text-link svg {
    transition: transform 180ms ease;
}

.text-link:hover svg {
    transform: translateX(4px);
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--accent-dark);
    font-size: 11px;
    letter-spacing: 0;
}

.home-hero {
    padding: 72px 0 0;
    overflow: hidden;
}

.home-hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
    align-items: end;
    margin-bottom: 42px;
    gap: 80px;
}

.home-hero__intro h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(48px, 6.7vw, 92px);
    font-weight: 850;
    line-height: 0.98;
}

.home-hero__message {
    padding-bottom: 6px;
}

.home-hero__message p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}

.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-track {
    width: 100%;
    max-height: 690px;
    aspect-ratio: 16 / 8.15;
    margin: 0;
    background: #e7e7e7;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 0 rgba(16, 16, 16, 0.16);
}

.hero-slide {
    transform: translateX(24px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.hero-slide img {
    object-fit: contain;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    color: var(--black);
    background: var(--white);
    border: 1px solid rgba(16, 16, 16, 0.12);
    box-shadow: var(--shadow-sm);
    transition: background 180ms ease, transform 180ms ease;
}

.carousel-arrow:hover {
    color: var(--white);
    background: var(--accent);
    transform: translateY(-50%) scale(1.04);
}

.carousel-dots {
    right: 28px;
    bottom: 24px;
    left: auto;
    padding: 9px 12px;
    background: rgba(16, 16, 16, 0.78);
    border-radius: 999px;
}

.carousel-dots button {
    width: 6px;
    height: 6px;
    border: 0;
}

.carousel-dots button.is-active {
    width: 22px;
    background: var(--white);
}

.overview {
    margin-top: -1px;
    background: var(--black);
}

.overview-card {
    grid-template-columns: 1.35fr repeat(3, 1fr);
    min-height: 142px;
    color: var(--white);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.overview-lead {
    display: flex;
    padding: 30px 36px 30px 0;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.overview-lead span {
    color: #d4d4d4;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.overview-lead strong {
    max-width: 250px;
    margin-top: 7px;
    font-size: 20px;
    line-height: 1.35;
}

.overview-item {
    padding: 30px 26px;
}

.overview-item:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.16);
}

.overview-icon {
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--accent);
    border-radius: var(--radius-sm);
}

.overview-item strong {
    color: var(--white);
    font-size: 19px;
}

.overview-item span:last-child {
    color: rgba(255, 255, 255, 0.58);
}

.section {
    padding: 112px 0;
}

.home-section--latest,
.home-section--stories {
    background: var(--white);
}

.section-heading {
    margin-bottom: 48px;
    text-align: left;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 820;
    line-height: 1.05;
}

.section-heading p {
    max-width: 480px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 90px;
}

.section-heading--split > div:last-child .text-link {
    margin-top: 14px;
}

.section-heading--editorial {
    display: grid;
    grid-template-columns: 70px minmax(0, 1.2fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 28px;
}

.section-index {
    align-self: start;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 850;
}

.program-band {
    padding: 0;
}

.program-band::after {
    display: none;
}

.horizontal-slider__track {
    grid-auto-columns: calc((100% - 48px) / 3);
    padding: 8px 3px 26px;
}

.horizontal-slider__control {
    top: -48px;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.horizontal-slider__control:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.horizontal-slider__control--prev {
    right: 52px;
    left: auto;
}

.horizontal-slider__control--next {
    right: 0;
}

.program-card {
    border-color: var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.program-card:hover {
    border-color: #b7b7b7;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.program-card__image {
    position: relative;
    background: #ececec;
}

.program-card__image::after {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border: 3px solid var(--white);
    border-radius: 50%;
    content: "";
}

.program-card__body {
    min-height: 224px;
    padding: 22px;
}

.category-label {
    margin-bottom: 14px;
    padding: 4px 8px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 10px;
    text-transform: uppercase;
}

.program-card h3 {
    min-height: 52px;
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 790;
}

.program-card__progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
}

.program-card__progress-label svg {
    color: var(--ink);
}

.program-card__meta span,
.donation-values span,
.remaining-row span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.program-card__meta strong {
    font-size: 13px;
}

.progress {
    height: 7px;
    margin-top: 18px;
    overflow: visible;
    background: #e6e6e6;
    border-radius: 999px;
}

.progress span {
    min-width: 4px;
    background: var(--accent);
    border-radius: inherit;
}

.progress span::after {
    display: none;
}

.category-chips {
    margin-bottom: 42px;
    gap: 10px;
}

.category-chip {
    min-height: 42px;
    background: transparent;
    border-color: var(--line);
    border-radius: var(--radius-sm);
}

.category-chip:hover,
.category-chip.is-active {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.program-grid {
    gap: 28px;
}

.section-action {
    justify-content: flex-start;
    margin-top: 46px;
}

.article-card {
    height: 100%;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.article-card__image {
    border-radius: var(--radius-md);
}

.article-card__image img {
    transition: transform 420ms ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.035);
}

.article-card__body {
    min-height: 138px;
    padding: 20px 4px 0;
}

.article-card__label {
    display: block;
    margin-bottom: 9px;
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 820;
    text-transform: uppercase;
}

.article-card h3 {
    margin-bottom: 18px;
    font-size: 19px;
    line-height: 1.35;
}

.article-card__body > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.article-card__body > div svg {
    transition: transform 180ms ease;
}

.article-card:hover .article-card__body > div svg {
    transform: translate(3px, -3px);
}

.donation-cta {
    padding: 0;
    background: var(--black);
}

.donation-cta__inner {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    min-height: 330px;
    padding: 70px 0;
    gap: 42px;
    background: transparent;
    border-radius: 0;
}

.donation-cta__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: var(--black);
    background: #f0f0f0;
    border-radius: var(--radius-md);
}

.donation-cta__mark svg {
    width: 32px;
    height: 32px;
}

.donation-cta h2 {
    max-width: 720px;
    margin-bottom: 16px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.08;
}

.donation-cta p {
    max-width: 620px;
}

.site-footer {
    padding: 0 0 34px;
    background: var(--white);
    border-top: 0;
}

.footer-intro {
    display: grid;
    grid-template-columns: 0.6fr 1.7fr auto;
    align-items: center;
    min-height: 180px;
    gap: 34px;
    border-bottom: 1px solid var(--line);
}

.footer-kicker {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.footer-intro p {
    max-width: 650px;
    margin: 0;
    font-size: clamp(25px, 3vw, 40px);
    font-weight: 780;
    line-height: 1.18;
}

.footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(130px, 0.65fr)) minmax(250px, 1.15fr);
    padding-top: 64px;
    padding-bottom: 54px;
    gap: 54px;
}

.footer-brand img {
    width: 68px;
    height: 72px;
}

.footer-brand p {
    max-width: 390px;
}

.site-footer h2 {
    font-size: 13px;
    text-transform: uppercase;
}

.social-links a {
    border-radius: var(--radius-sm);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-legal > div {
    display: flex;
    gap: 22px;
}

.listing-hero {
    padding: 86px 0 0;
}

.listing-hero__copy {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.55fr);
    align-items: end;
    gap: 80px;
}

.listing-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.02;
}

.listing-hero__copy > p {
    margin: 0 0 8px;
    color: var(--muted);
}

.listing-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 70px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.listing-title-row {
    margin: 0;
}

.filter-bar {
    gap: 10px;
}

.select-field {
    min-width: 200px;
}

.select-field select {
    height: 44px;
    background-color: var(--white);
    border-color: var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.listing-content {
    padding-top: 54px;
}

.listing-content .program-card__body {
    min-height: 236px;
}

.editorial-banner {
    padding: 90px 0;
    color: var(--white);
    background: var(--black);
}

.editorial-banner .container {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 0.65fr;
    align-items: end;
    gap: 54px;
}

.editorial-banner__index {
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
    text-transform: uppercase;
}

.editorial-banner h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
}

.editorial-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

.article-grid--listing {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 56px 28px;
}

.article-grid--listing > .article-card {
    grid-column: span 4;
}

.article-grid--listing > .article-card:first-child {
    grid-column: span 8;
}

.article-grid--listing > .article-card:first-child .article-card__image {
    aspect-ratio: 16 / 8.5;
}

.program-detail__intro {
    padding: 64px 0 46px;
}

.program-detail__intro .back-link {
    margin-bottom: 56px;
}

.program-detail__headline {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 80px;
}

.program-detail__headline h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.04;
}

.program-detail__headline > p {
    margin: 0 0 8px;
    color: var(--muted);
}

.program-detail__body {
    padding-bottom: 120px;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 54px;
}

.detail-main {
    padding-top: 0;
}

.program-detail__media {
    width: 100%;
    max-height: 610px;
    margin: 0;
    background: #e8e8e8;
    border-radius: var(--radius-md);
}

.detail-tabs {
    position: sticky;
    top: 88px;
    z-index: 5;
    margin: 30px 0 54px;
    padding: 6px;
    background: rgba(245, 245, 245, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.detail-tabs button {
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.detail-tabs button.is-active {
    color: var(--white);
    background: var(--accent);
}

.tab-panel__heading {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: baseline;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.tab-panel__heading span {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 850;
}

.tab-panel__heading h2 {
    margin: 0;
    font-size: 26px;
}

.prose {
    color: #3f3f3f;
    font-size: 17px;
    line-height: 1.95;
}

.donation-summary {
    top: 116px;
    margin-top: 0;
    padding: 30px;
    border-color: #cfcfcf;
    border-top: 5px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.donation-summary__eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.donation-summary h2 {
    margin-bottom: 30px;
    font-size: 21px;
}

.donation-summary__percentage {
    display: block;
    margin: 12px 0 20px;
    color: var(--accent-dark);
    font-size: 11px;
}

.remaining-row {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.share-panel {
    padding: 20px 0 0;
    border-width: 1px 0 0;
    border-radius: 0;
}

.donor-list article > span {
    color: var(--white);
    background: var(--accent);
    border-radius: var(--radius-sm);
}

.donation-flow-page,
.payment-instruction-page {
    background: var(--soft);
}

.donation-form-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
    gap: 34px;
}

.donation-form-card,
.donation-program-preview,
.payment-card {
    border-color: var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.donation-form-card {
    padding: 38px;
    border-top: 5px solid var(--accent);
}

.donation-form-head h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.donation-presets button {
    border-radius: var(--radius-sm);
}

.donation-presets button:hover,
.donation-presets button.is-selected {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.donation-amount-input:focus-within,
.donation-field input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(36, 36, 36, 0.18);
}

.donation-anonymous,
.donation-form-note,
.payment-security-note {
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
}

.donation-program-preview {
    position: sticky;
    top: 118px;
    overflow: hidden;
}

.payment-status {
    border-radius: var(--radius-md);
}

.payment-card {
    overflow: hidden;
    border-top: 5px solid var(--accent);
}

.payment-exact-amount {
    background: var(--black);
}

.payment-exact-amount button:hover,
.bank-account-row button:hover,
.payment-exact-amount button.is-copied,
.bank-account-row button.is-copied {
    color: var(--white);
    background: var(--accent);
}

.bank-transfer-card {
    background: var(--soft);
    border-radius: var(--radius-sm);
}

.article-detail__head {
    padding: 72px 0 50px;
}

.article-detail__headline {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 80px;
}

.article-detail__headline .back-link {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.article-detail__head h1 {
    max-width: 900px;
    font-size: clamp(42px, 5.8vw, 74px);
    line-height: 1.03;
}

.article-detail__head p {
    margin-bottom: 4px;
    font-size: 17px;
    line-height: 1.7;
}

.article-detail__image {
    width: min(calc(100% - 64px), 1120px);
    padding: 14px;
    background: #e8e8e8;
    border-radius: var(--radius-md);
}

.article-detail__image img {
    max-height: 640px;
    object-fit: contain;
}

.article-detail__content {
    padding-top: 72px;
    padding-bottom: 120px;
}

.page-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.page-banner::after {
    position: absolute;
    top: 0;
    right: 6vw;
    width: 160px;
    height: 100%;
    background: #e4e4e4;
    content: "";
    opacity: 0.92;
    transform: skewX(-9deg);
    transform-origin: top;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: clamp(42px, 5.6vw, 72px);
}

.about-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 90px;
}

.about-image {
    border-radius: var(--radius-md);
}

.static-page {
    padding-top: 60px;
}

.faq-list details {
    padding: 26px 0;
}

.faq-list summary {
    font-size: 18px;
}

.contact-layout {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 80px;
}

.contact-info {
    background: transparent;
    border: 0;
}

.contact-info > div {
    padding: 24px 0;
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.contact-info svg {
    color: var(--accent-dark);
}

.contact-form {
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius-md);
}

.contact-form input,
.contact-form textarea {
    border-radius: var(--radius-sm);
}

.empty-state {
    border: 1px dashed #bdbdbd;
    border-radius: var(--radius-md);
}

.toast {
    top: 108px;
    border-radius: var(--radius-sm);
}

@media (max-width: 1180px) {
    .brand__wordmark,
    .nav-link {
        display: none;
    }

    .nav-shell {
        gap: 26px;
    }

    .header-search {
        width: min(260px, 25vw);
    }

    .home-hero__intro,
    .listing-hero__copy,
    .program-detail__headline,
    .article-detail__headline {
        gap: 48px;
    }

    .overview-card {
        grid-template-columns: repeat(3, 1fr);
    }

    .overview-lead {
        display: none;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 32px;
    }

    .footer-grid {
        gap: 34px;
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 72px;
    }

    .container,
    .container--narrow,
    .article-detail__image {
        width: min(calc(100% - 40px), var(--container));
    }

    .site-header {
        height: 70px;
    }

    .nav-shell {
        justify-content: space-between;
    }

    .brand {
        height: 60px;
    }

    .brand img {
        width: 45px;
        height: 49px;
    }

    .desktop-nav,
    .header-search,
    .nav-actions {
        display: none;
    }

    .mobile-search-button {
        display: inline-flex;
        color: var(--ink);
        background: transparent;
        border: 0;
    }

    .mobile-search-panel {
        top: 70px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .mobile-bottom-nav {
        height: 70px;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        position: relative;
        color: #818181;
        font-size: 10px;
    }

    .mobile-bottom-nav a::before {
        position: absolute;
        top: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--accent);
        content: "";
        transform: translateX(-50%);
        transition: width 180ms ease;
    }

    .mobile-bottom-nav a.active {
        color: var(--ink);
    }

    .mobile-bottom-nav a.active::before {
        width: 34px;
    }

    .home-hero {
        padding-top: 46px;
    }

    .home-hero__intro,
    .section-heading--split,
    .listing-hero__copy,
    .program-detail__headline,
    .article-detail__headline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-hero__intro {
        margin-bottom: 32px;
    }

    .home-hero__intro h1 {
        font-size: clamp(46px, 11vw, 72px);
    }

    .home-hero__message {
        max-width: 600px;
    }

    .hero-track {
        aspect-ratio: 16 / 9;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .overview-card {
        min-height: 116px;
    }

    .overview-item {
        padding: 24px 18px;
        gap: 12px;
    }

    .overview-icon {
        width: 36px;
        height: 36px;
    }

    .overview-item strong {
        font-size: 16px;
    }

    .section {
        padding: 84px 0;
    }

    .section-heading--editorial {
        grid-template-columns: 42px 1fr;
    }

    .section-heading--editorial > p {
        grid-column: 2;
    }

    .horizontal-slider__track {
        grid-auto-columns: calc((100% - 22px) / 2);
        gap: 22px;
    }

    .program-grid--three,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-cta__inner {
        grid-template-columns: 70px 1fr;
    }

    .donation-cta__inner > .button {
        grid-column: 2;
        justify-self: start;
    }

    .footer-intro {
        grid-template-columns: 1fr auto;
    }

    .footer-intro p {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-intro > .button {
        grid-column: 2;
        grid-row: 2;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .listing-hero {
        padding-top: 60px;
    }

    .listing-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .filter-bar {
        width: 100%;
    }

    .select-field {
        width: 50%;
    }

    .article-grid--listing > .article-card,
    .article-grid--listing > .article-card:first-child {
        grid-column: span 6;
    }

    .editorial-banner .container {
        grid-template-columns: 80px 1fr;
    }

    .editorial-banner p {
        grid-column: 2;
    }

    .program-detail__intro {
        padding-top: 44px;
    }

    .program-detail__intro .back-link {
        margin-bottom: 36px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-tabs {
        top: 70px;
    }

    .donation-summary {
        position: relative;
        top: auto;
        grid-row: 1;
    }

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

    .donation-program-preview {
        position: relative;
        top: auto;
        grid-row: 1;
    }

    .page-banner::after {
        right: -60px;
        opacity: 0.45;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .container,
    .container--narrow,
    .article-detail__image {
        width: min(calc(100% - 28px), var(--container));
    }

    .home-hero {
        padding-top: 34px;
    }

    .home-hero__intro h1 {
        font-size: 46px;
    }

    .home-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero-track {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        border-radius: var(--radius-md);
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        right: 12px;
        bottom: 10px;
        padding: 7px 9px;
    }

    .overview-card {
        grid-template-columns: repeat(3, 1fr);
        min-height: 104px;
    }

    .overview-item {
        align-items: center;
        padding: 18px 6px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .overview-item div {
        align-items: center;
    }

    .overview-item strong {
        font-size: 13px;
    }

    .overview-item span:last-child {
        font-size: 9px;
    }

    .section {
        padding: 68px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .section-heading--editorial {
        grid-template-columns: 1fr;
    }

    .section-heading--editorial > p {
        grid-column: 1;
    }

    .section-index {
        display: none;
    }

    .horizontal-slider,
    .program-band {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        overflow: hidden;
    }

    .horizontal-slider__track {
        width: 100%;
        max-width: 100%;
        grid-auto-columns: 86%;
        gap: 14px;
        padding-right: 14px;
    }

    .horizontal-slider__control {
        display: none;
    }

    .category-chips {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .program-grid--three,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .program-card__body {
        min-height: 210px;
    }

    .donation-cta__inner {
        grid-template-columns: 1fr;
        padding: 58px 0;
        gap: 26px;
    }

    .donation-cta__inner > .button {
        grid-column: 1;
    }

    .donation-cta__mark {
        width: 58px;
        height: 58px;
    }

    .footer-intro {
        grid-template-columns: 1fr;
        padding: 44px 0;
        gap: 22px;
    }

    .footer-intro p,
    .footer-intro > .button {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-intro > .button {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        padding-top: 46px;
        padding-bottom: 40px;
        gap: 38px 22px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .footer-legal > div {
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .listing-hero h1,
    .program-detail__headline h1,
    .article-detail__head h1,
    .editorial-banner h1 {
        font-size: 42px;
    }

    .listing-hero__copy {
        gap: 18px;
    }

    .listing-tools {
        margin-top: 46px;
    }

    .listing-title-row,
    .filter-bar {
        width: 100%;
    }

    .listing-title-row {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .listing-search.mobile-only {
        display: flex !important;
        width: 100%;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .select-field {
        width: auto;
        min-width: 0;
    }

    .article-grid--listing {
        display: grid;
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .article-grid--listing > .article-card,
    .article-grid--listing > .article-card:first-child {
        grid-column: 1;
    }

    .editorial-banner {
        padding: 64px 0;
    }

    .editorial-banner .container {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .editorial-banner p {
        grid-column: 1;
    }

    .editorial-banner__index {
        display: none;
    }

    .program-detail__intro {
        padding-bottom: 32px;
    }

    .program-detail__media {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        border-radius: var(--radius-md);
    }

    .detail-tabs {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        overflow-x: auto;
    }

    .mobile-search button {
        margin-right: 0;
    }

    .detail-tabs button {
        min-width: max-content;
        padding-inline: 12px;
        font-size: 11px;
    }

    .donation-summary,
    .donation-form-card,
    .contact-form {
        padding: 24px;
    }

    .donation-summary__eyebrow,
    .donation-summary > .category-label,
    .donation-summary > h2,
    .donation-summary .remaining-row,
    .donation-summary .share-panel {
        display: none;
    }

    .donation-summary .donation-values {
        margin-top: 0;
    }

    .donation-summary .progress--large {
        margin-bottom: 10px;
    }

    .donation-summary__percentage {
        margin: 8px 0 18px;
    }

    .donation-form-layout {
        gap: 20px;
    }

    .donation-presets {
        grid-template-columns: 1fr 1fr;
    }

    .payment-card__head,
    .payment-breakdown,
    .payment-exact-amount,
    .bank-transfer-card,
    .payment-donor-row,
    .payment-actions {
        padding-right: 22px;
        padding-left: 22px;
    }

    .article-detail__headline {
        gap: 20px;
    }

    .article-detail__image {
        padding: 8px;
    }

    .page-banner {
        padding: 68px 0;
    }

    .page-banner::after {
        display: none;
    }

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

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

/* ─── Instagram Reels Slider ─────────────────────────────── */
.home-section--reels {
    background: var(--soft);
}

.reels-slider {
    position: relative;
    margin-top: 32px;
}

.reels-slider__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    cursor: grab;
    user-select: none;
    /* Align items to top so cards with varying heights look tidy */
    align-items: flex-start;
}

.reels-slider__track::-webkit-scrollbar {
    display: none;
}

.reels-slider__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* Each item holds one blockquote/Instagram embed card */
.reels-slider__item {
    flex: 0 0 328px;
    scroll-snap-align: start;
    min-width: 0;
    /* Fixed height — crops excess caption so all cards are the same height */
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Override Instagram's default max-width so cards fit our item width */
.reels-slider__item .instagram-media {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: var(--radius-md) !important;
}

.reels-slider__arrow {
    position: absolute;
    top: 300px; /* vertically centred within 600px fixed-height cards */
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 160ms ease, opacity 160ms ease;
    color: var(--ink);
}

.reels-slider__arrow:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.reels-slider__arrow:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.reels-slider__arrow--prev {
    left: -20px;
}

.reels-slider__arrow--next {
    right: -20px;
}

.reels-slider__arrow svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Admin icon for reels list */
.admin-reel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md, 8px);
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    flex-shrink: 0;
}

.admin-reel-icon svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 680px) {
    .reels-slider__item {
        flex: 0 0 290px;
        height: 600px;
    }

    .reels-slider__arrow--prev {
        left: -4px;
    }

    .reels-slider__arrow--next {
        right: -4px;
    }
}

