:root {
    --color-bg: #f4f1ea;
    --color-bg-alt: #eef3ef;
    --color-panel: rgba(255, 255, 255, 0.82);
    --color-surface: rgba(255, 255, 255, 0.92);
    --color-primary: #1f775b;
    --color-primary-dark: #13503d;
    --color-primary-soft: rgba(31, 119, 91, 0.12);
    --color-secondary: #f08a4b;
    --color-muted: #66707a;
    --color-border: rgba(32, 44, 36, 0.09);
    --color-ink: #1a1d1f;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --shadow-soft: 0 18px 40px rgba(17, 24, 20, 0.08);
    --shadow-hover: 0 22px 50px rgba(17, 24, 20, 0.14);
    --content-width: 1760px;
    --layout-wide: 1760px;
    --layout-content: 1520px;
    --layout-readable: 900px;
    --layout-gutter: clamp(1rem, 2vw, 2rem);
    --layout-section-gap: clamp(1.4rem, 2.2vw, 2.4rem);
    --layout-card-gap: clamp(0.85rem, 1.4vw, 1.1rem);
    --layout-page-gap: clamp(1.8rem, 2.8vw, 3.4rem);
}

.page-shell {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-content));
    margin-inline: auto;
    padding-block: var(--layout-section-gap) 3rem;
    display: grid;
    gap: var(--layout-page-gap);
}

.page-shell--wide {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
}

.page-shell--content {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-content));
}

.page-shell--readable {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-readable));
}

.page-shell--fullbleed {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
}

main.home-page.page-shell--fullbleed {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    padding-inline: 0;
    padding-block: 0 3rem;
}

main.home-page.page-shell--fullbleed > .hero,
main.home-page.page-shell--fullbleed > .section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

main.home-page.page-shell--fullbleed > .hero {
    border-left-width: 0;
    border-right-width: 0;
    border-radius: 0;
}

main.home-page.page-shell--fullbleed > .section {
    border-left-width: 0;
    border-right-width: 0;
    border-radius: 0;
}

.page-shell--compact {
    gap: var(--layout-section-gap);
}

body.donate-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 119, 91, 0.10), transparent 24%),
        radial-gradient(circle at 90% 8%, rgba(240, 138, 75, 0.10), transparent 20%),
        linear-gradient(180deg, #f6f3ec 0%, #fbfbf8 52%, #eef4ef 100%);
}

body.donate-page .site-footer {
    margin-top: 1.5rem;
}

.donate-layout {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    display: grid;
    gap: 1rem;
}

.donate-alert {
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.donate-alert__content {
    display: grid;
    gap: 0.25rem;
}

.donate-alert--error {
    border-color: rgba(212, 71, 95, 0.24);
}

.donate-alert--success {
    border-color: rgba(31, 119, 91, 0.24);
}

.donate-card {
    padding: clamp(1.25rem, 2vw, 1.85rem);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.donate-hero,
.donate-shell,
.donate-thanks-card,
.donate-links-grid {
    display: grid;
    gap: 1rem;
}

.donate-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    align-items: stretch;
}

.donate-hero__copy,
.donate-hero__panel,
.donate-trust,
.donate-form,
.donate-thanks-card {
    display: grid;
    gap: 1rem;
}

.donate-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.donate-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donate-chip--is-paid {
    background: rgba(31, 119, 91, 0.14);
    color: var(--color-primary-dark);
}

.donate-chip--is-pending,
.donate-chip--is-initiated {
    background: rgba(240, 138, 75, 0.16);
    color: #8c4a17;
}

.donate-chip--is-failed,
.donate-chip--is-cancelled {
    background: rgba(212, 71, 95, 0.14);
    color: #a33148;
}

.donate-panel__eyebrow,
.donate-trust__head .section__eyebrow,
.donate-form__head .section__eyebrow {
    margin: 0;
}

.donate-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    line-height: 1.7;
}

.donate-trust-list li {
    position: relative;
    padding-left: 1.55rem;
}

.donate-trust-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 900;
}

.donate-trust-list--compact {
    gap: 0.85rem;
}

.donate-panel__state {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(31, 119, 91, 0.08);
    border: 1px solid rgba(31, 119, 91, 0.14);
}

.donate-panel__label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.donate-panel__muted {
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.donate-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
    align-items: start;
}

.donate-form__section {
    display: grid;
    gap: 0.85rem;
}

.donate-form__head {
    display: grid;
    gap: 0.25rem;
}

.donate-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.donate-amount-card {
    min-height: 102px;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(31, 119, 91, 0.14);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.78);
    color: var(--color-primary-dark);
    text-align: left;
    display: grid;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.donate-amount-card:hover,
.donate-amount-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(31, 119, 91, 0.28);
    box-shadow: 0 18px 40px rgba(17, 24, 20, 0.12);
}

.donate-amount-card.is-active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: rgba(31, 119, 91, 0.92);
    color: #fff;
}

.donate-amount-card--custom {
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.78);
}

.donate-amount-card__value {
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.2;
}

.donate-amount-card__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    opacity: 0.78;
}

.donate-custom-wrap {
    display: none;
    gap: 0.5rem;
}

.donate-custom-wrap.is-visible {
    display: grid;
}

.donate-field {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--color-ink);
}

.donate-field input,
.donate-field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: #fff;
    font: inherit;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.donate-field textarea {
    resize: vertical;
    min-height: 120px;
}

.donate-field input:focus,
.donate-field textarea:focus {
    outline: none;
    border-color: rgba(31, 119, 91, 0.36);
    box-shadow: 0 0 0 4px rgba(31, 119, 91, 0.12);
}

.donate-field__hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.donate-form__footer {
    display: grid;
    gap: 0.8rem;
}

.donate-form__note {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.donate-submit {
    width: 100%;
    justify-content: center;
}

.donate-trust__foot {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(240, 138, 75, 0.08);
    border: 1px solid rgba(240, 138, 75, 0.16);
    display: grid;
    gap: 0.35rem;
    line-height: 1.6;
}

.donate-disabled {
    display: grid;
    gap: 1rem;
}

.donate-disabled__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.donate-thanks-layout {
    gap: 1rem;
}

.donate-thanks-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.donate-summary-list {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.donate-summary-list > div {
    display: grid;
    gap: 0.18rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(32, 44, 36, 0.08);
}

.donate-summary-list dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    font-weight: 800;
}

.donate-summary-list dd {
    margin: 0;
    font-weight: 700;
}

.donate-thanks-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.donate-thanks-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.donate-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donate-link-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.donate-link-card:hover,
.donate-link-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(31, 119, 91, 0.18);
}

.donate-link-card__eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    font-weight: 800;
}

.donate-link-card strong {
    font-size: 1.02rem;
}

.donate-link-card span:last-child {
    color: var(--color-muted);
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .donate-hero,
    .donate-shell,
    .donate-thanks-hero,
    .donate-thanks-card,
    .donate-links-grid {
        grid-template-columns: 1fr;
    }

    .donate-thanks-card__actions {
        justify-content: flex-start;
    }

    .donate-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .donate-layout {
        width: min(calc(100% - 1rem), var(--content-width));
        padding-top: 1rem;
    }

    .donate-card {
        border-radius: 24px;
    }

    .donate-amount-grid {
        grid-template-columns: 1fr;
    }

    .donate-disabled__actions,
    .donate-thanks-card__actions {
        width: 100%;
    }

    .donate-disabled__actions .cta-button,
    .donate-thanks-card__actions .cta-button {
        width: 100%;
        justify-content: center;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 119, 91, 0.08), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(240, 138, 75, 0.08), transparent 24%),
        linear-gradient(180deg, var(--color-bg) 0%, #fbfaf7 46%, var(--color-bg-alt) 100%);
    color: var(--color-ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-rendering: optimizeLegibility;
}

body > main {
    flex: 1 0 auto;
    width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(8, 28, 23, 0.22), rgba(8, 28, 23, 0.08)),
        linear-gradient(135deg, rgba(23, 87, 72, 0.88) 0%, rgba(35, 118, 95, 0.92) 45%, rgba(21, 71, 59, 0.96) 100%);
    box-shadow: 0 18px 48px rgba(5, 33, 26, 0.26);
    backdrop-filter: blur(8px);
    overflow: clip;
}

.site-header::before,
.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.site-header::before {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at 86% 20%, rgba(240, 138, 75, 0.12), transparent 18%);
    opacity: 0.95;
}

.site-header::after {
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.site-menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.site-header__inner,
.site-footer__inner {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 1rem var(--layout-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__inner {
    gap: 1.1rem;
    position: relative;
    z-index: 2;
    min-height: 5.8rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-decoration: none;
    flex: 0 0 auto;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
    transform: translateY(-1px);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.brand img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.site-nav {
    display: flex;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.site-nav--desktop {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.1rem 0.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    min-width: 0;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.site-header__trust {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.site-header__trust i {
    color: #fff;
    font-size: 0.95rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0.005em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(7, 19, 15, 0.04);
    backdrop-filter: blur(10px);
}

.nav-link .nav-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-link .nav-icon i {
    color: #fff;
    opacity: 0.92;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.nav-link.is-active,
.auth-link.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-primary-dark);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.nav-link.is-active .nav-icon i {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}

.site-header__cta {
    min-height: 2.85rem;
    padding: 0.68rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #ffffff, #eef4f0);
    color: var(--color-primary-dark);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 14px 26px rgba(6, 18, 14, 0.12);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff, #e7f1eb);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 30px rgba(6, 18, 14, 0.14);
}

.site-header__menu-button {
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(7, 19, 15, 0.08);
    backdrop-filter: blur(10px);
}

.site-header__menu-button:hover,
.site-header__menu-button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 14px 26px rgba(7, 19, 15, 0.12);
}

.site-header__mobile-panel {
    display: none;
}

.site-header__mobile-panel-inner {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 0 0 1rem;
}

.site-nav--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 1rem 0.25rem;
}

.site-nav--mobile .nav-link {
    width: 100%;
    justify-content: flex-start;
}

.site-header__mobile-actions {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.auth-nav {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-link:hover,
.auth-link:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.7);
}

.auth-link.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-primary-dark);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.auth-page-topbar {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-content));
    margin: 0 auto;
    padding: 0.8rem var(--layout-gutter) 0;
    display: flex;
    justify-content: flex-end;
}

.auth-page-topbar .auth-nav {
    justify-content: flex-end;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(224, 223, 221, 0.9);
    box-shadow: 0 14px 28px rgba(17, 31, 25, 0.08);
    backdrop-filter: blur(12px);
}

.auth-page-topbar .auth-link {
    color: var(--color-primary-dark);
    background: rgba(47, 107, 83, 0.08);
    border-color: rgba(47, 107, 83, 0.12);
}

.auth-page-topbar .auth-link:hover,
.auth-page-topbar .auth-link:focus-visible {
    background: rgba(47, 107, 83, 0.14);
    border-color: rgba(47, 107, 83, 0.18);
}

.auth-page-topbar .auth-link.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 1120px) {
    .site-header__inner {
        gap: 1rem;
    }

    .site-nav--desktop,
    .site-header__actions {
        display: none;
    }

    .site-header__menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .site-menu-toggle:checked ~ .site-header__mobile-panel {
        display: block;
    }

    .site-header__mobile-panel {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background:
            linear-gradient(180deg, rgba(9, 28, 23, 0.28), rgba(9, 28, 23, 0.2)),
            rgba(10, 28, 23, 0.22);
        backdrop-filter: blur(14px);
    }

    .site-header__mobile-panel-inner {
        width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
        padding: 0.4rem 0 1rem;
    }

    .site-nav--mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0.75rem 1rem 0.4rem;
    }

    .site-nav--mobile .nav-link {
        width: auto;
        justify-content: flex-start;
    }

    .site-header__mobile-actions {
        padding: 0.85rem 1rem 1rem;
    }

    .site-header__cta--mobile {
        width: 100%;
        text-align: center;
    }

    .auth-page-topbar {
        justify-content: stretch;
    }

    .auth-page-topbar .auth-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .auth-page-topbar .auth-link {
        flex: 1 1 120px;
    }
}

@media (max-width: 768px) {
    .site-header__inner,
    .hero,
    .section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header__inner {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
        min-height: 5.2rem;
    }

    .site-header__menu-button {
        margin-left: auto;
    }

    .brand {
        padding-right: 0.6rem;
    }

    .brand img {
        height: 46px;
    }

    .site-header__mobile-actions .auth-link,
    .site-header__mobile-actions .site-header__cta {
        width: 100%;
    }

    .site-nav--mobile {
        grid-template-columns: 1fr;
        padding-top: 0.25rem;
    }

    body.home-page .hero h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 13vw, 4.4rem);
        line-height: 1;
    }
}

.hero {
    position: relative;
    padding: 3rem 1rem 2rem;
    margin: 0 auto 3rem;
    max-width: 1100px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
    border-radius: inherit;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.hero__text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-button {
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
}

.cta-button--primary {
    background: var(--color-primary);
    color: #fff;
}

.cta-button--attention {
    position: relative;
    box-shadow:
        0 0 0 0 rgba(240, 138, 75, 0.45),
        0 14px 30px rgba(31, 119, 91, 0.22);
    animation: ctaAttentionPulse 1.8s ease-in-out infinite;
}

.cta-button--attention:hover,
.cta-button--attention:focus-visible {
    box-shadow:
        0 0 0 6px rgba(240, 138, 75, 0.16),
        0 18px 34px rgba(31, 119, 91, 0.28);
}

.cta-button--secondary {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid #ffffff55;
    color: #fff;
}

.cta-button--map {
    background: var(--color-secondary);
    color: #1d1d1d;
}

@keyframes ctaAttentionPulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(240, 138, 75, 0.34),
            0 14px 30px rgba(31, 119, 91, 0.22);
        transform: translateY(0);
    }

    50% {
        box-shadow:
            0 0 0 10px rgba(240, 138, 75, 0),
            0 18px 38px rgba(31, 119, 91, 0.28);
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-button--attention {
        animation: none;
    }
}

.section {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-content));
    margin: 0 auto 3rem;
    padding: 0 var(--layout-gutter);
}

.section__header {
    margin-bottom: 1rem;
}

.section__title {
    font-size: 1.8rem;
    margin: 0;
}

.section__subtitle {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}

.cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--color-panel);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card__image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
}

.card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.badge {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #e9f4f0;
    color: var(--color-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section--donate {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 4rem;
}

.donate__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section--donate .cta-button {
    width: fit-content;
}

body.home-page .hero {
    position: relative;
    max-width: var(--content-width);
    margin: 0 auto 4rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border-radius: clamp(28px, 3vw, 44px);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-hover);
}

body.home-page .hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(7, 15, 13, 0.78) 0%, rgba(8, 21, 17, 0.62) 46%, rgba(8, 21, 17, 0.24) 100%),
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.28), transparent 26%),
        radial-gradient(circle at 8% 18%, rgba(31, 119, 91, 0.24), transparent 28%),
        radial-gradient(circle at 96% 100%, rgba(255, 255, 255, 0.12), transparent 24%);
}

body.home-page .hero::after {
    content: none;
}

body.home-page .hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2.75rem);
    align-items: stretch;
    min-height: clamp(620px, 62vw, 820px);
}

body.home-page .hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(13, 25, 20, 0.22), rgba(13, 25, 20, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    max-width: 100%;
}

body.home-page .badge--hero {
    width: fit-content;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(14px);
}

body.home-page .hero h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(3rem, 5.6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

body.home-page .hero__text {
    max-width: 64ch;
    margin: 0;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.92);
}

body.home-page .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.25rem;
}

body.home-page .cta-button {
    position: relative;
    overflow: hidden;
    padding: 0.98rem 1.35rem;
    min-height: 3.25rem;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(10, 16, 13, 0.14);
    font-weight: 800;
    letter-spacing: 0.01em;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

body.home-page .cta-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.55rem;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

body.home-page .cta-button__icon i {
    line-height: 1;
}

body.home-page .cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 42%);
    opacity: 0.35;
    pointer-events: none;
}

body.home-page .cta-button:hover,
body.home-page .cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(10, 16, 13, 0.18);
}

body.home-page .cta-button--primary {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7f4 100%);
    color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

body.home-page .cta-button--secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(14px);
}

body.home-page .cta-button--map {
    background: linear-gradient(135deg, rgba(240, 138, 75, 0.98), rgba(232, 113, 44, 0.98));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.home-page .hero__signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.6rem;
}

body.home-page .hero-signal {
    position: relative;
    display: grid;
    gap: 0.25rem;
    min-height: 112px;
    padding: 1.05rem 1.05rem 1rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

body.home-page .hero-signal::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--signal-accent, rgba(255, 255, 255, 0.45)), rgba(255, 255, 255, 0.04));
}

body.home-page .hero-signal__value {
    font-size: clamp(1.85rem, 2.7vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.04em;
}

body.home-page .hero-signal__label {
    font-size: 0.8rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

body.home-page .hero-signal--lost {
    --signal-accent: rgba(233, 72, 72, 0.95);
    background:
        linear-gradient(135deg, rgba(233, 72, 72, 0.34), rgba(233, 72, 72, 0.16)),
        rgba(255, 255, 255, 0.08);
}

body.home-page .hero-signal--found {
    --signal-accent: rgba(33, 178, 116, 0.95);
    background:
        linear-gradient(135deg, rgba(33, 178, 116, 0.34), rgba(33, 178, 116, 0.16)),
        rgba(255, 255, 255, 0.08);
}

body.home-page .hero-signal--helped {
    --signal-accent: rgba(240, 138, 75, 0.95);
    background:
        linear-gradient(135deg, rgba(240, 138, 75, 0.34), rgba(240, 138, 75, 0.16)),
        rgba(255, 255, 255, 0.08);
}

body.home-page .hero__micro-link {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.5;
}

body.home-page .hero__micro-link a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

body.home-page .hero__stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.95rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(247, 250, 247, 0.87));
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    box-shadow:
        0 18px 44px rgba(10, 16, 13, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    color: var(--color-ink);
}

body.home-page .hero__stats-head {
    display: grid;
    gap: 0.45rem;
    padding: 0.2rem 0.2rem 0.1rem;
}

body.home-page .hero__stats-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 1.9vw, 2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

body.home-page .hero__stats-head p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

body.home-page .hero__eyebrow--stats {
    width: fit-content;
    margin-bottom: 0;
}

body.home-page .hero__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

body.home-page .hero__stats-grid--pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

body.home-page .hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.12), rgba(240, 138, 75, 0.12));
    border: 1px solid rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.home-page .hero-stat {
    position: relative;
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1rem 1rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 245, 0.92));
    border: 1px solid rgba(31, 119, 91, 0.08);
    box-shadow: 0 16px 32px rgba(10, 16, 13, 0.08);
    overflow: hidden;
}

body.home-page .hero-stat::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-accent, var(--color-primary)), rgba(31, 119, 91, 0.1));
}

body.home-page .hero-stat--primary {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.95), rgba(19, 80, 61, 0.96));
    color: #fff;
    border-color: rgba(31, 119, 91, 0.3);
    box-shadow: 0 18px 34px rgba(18, 54, 42, 0.22);
}

body.home-page .hero-stat:nth-child(2) {
    --stat-accent: #1f775b;
}

body.home-page .hero-stat:nth-child(3) {
    --stat-accent: #f08a4b;
}

body.home-page .hero-stat:nth-child(4) {
    --stat-accent: #4a7bd8;
}

body.home-page .hero-stat__value {
    font-size: clamp(1.9rem, 2.7vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

body.home-page .hero-stat__label {
    font-size: 0.92rem;
    line-height: 1.45;
    color: inherit;
    opacity: 0.86;
}

body.home-page .hero__stats-note {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-muted);
}

body.home-page .section--mission {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.1), transparent 26%),
        radial-gradient(circle at bottom left, rgba(240, 138, 75, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 247, 0.85));
}

body.home-page .mission-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

body.home-page .mission-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(31, 119, 91, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 247, 0.92));
    box-shadow: 0 14px 30px rgba(10, 16, 13, 0.07);
}

body.home-page .mission-stat__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--mission-accent, var(--color-primary)), rgba(31, 119, 91, 0.92));
    flex: 0 0 auto;
    box-shadow: 0 10px 18px rgba(31, 119, 91, 0.16);
}

body.home-page .mission-stat__icon i {
    font-size: 1rem;
}

body.home-page .mission-stat__value {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--color-primary-dark);
}

body.home-page .mission-stat__label {
    display: block;
    margin-top: 0.25rem;
    color: #4a5560;
    font-size: 0.84rem;
    line-height: 1.35;
}

body.home-page .mission-stat--lost {
    --mission-accent: #ea4a47;
}

body.home-page .mission-stat--found {
    --mission-accent: #1db874;
}

body.home-page .mission-stat--adoption {
    --mission-accent: #f08a4b;
}

body.home-page .mission-stat--community {
    --mission-accent: #5f7ee6;
}

body.home-page .mission-stat--stories {
    --mission-accent: #9f64d6;
}

body.home-page .section--directions {
    background:
        radial-gradient(circle at top left, rgba(31, 119, 91, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 247, 0.88));
}

body.home-page .direction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.home-page .direction-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
    padding: 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(31, 119, 91, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 247, 0.92));
    box-shadow: 0 16px 34px rgba(10, 16, 13, 0.08);
}

body.home-page .direction-card__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--direction-accent, var(--color-primary)), rgba(31, 119, 91, 0.92));
    box-shadow: 0 12px 24px rgba(31, 119, 91, 0.14);
}

body.home-page .direction-card__icon i {
    font-size: 1.1rem;
}

body.home-page .direction-card__content {
    display: grid;
    gap: 0.65rem;
}

body.home-page .direction-card__content h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.25;
}

body.home-page .direction-card__content p {
    margin: 0;
    color: #4a5560;
    line-height: 1.55;
}

body.home-page .direction-card__action {
    justify-self: start;
    min-height: 2.75rem;
    padding-inline: 1rem;
    background: rgba(31, 119, 91, 0.1);
    border: 1px solid rgba(31, 119, 91, 0.14);
    color: var(--color-primary-dark);
    font-weight: 800;
}

body.home-page .direction-card--lost {
    --direction-accent: #ea4a47;
}

body.home-page .direction-card--found {
    --direction-accent: #1db874;
}

body.home-page .direction-card--adoption {
    --direction-accent: #f08a4b;
}

body.home-page .section {
    max-width: var(--content-width);
    margin: 0 auto 4.5rem;
    padding: clamp(1.2rem, 2.2vw, 1.8rem) clamp(1rem, 2vw, 2rem);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
}

body.home-page .section__header {
    margin-bottom: 1.4rem;
}

body.home-page .section__header--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

body.home-page .section__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.65rem;
}

body.home-page .section__title {
    font-size: clamp(2rem, 2.8vw, 3.1rem);
    line-height: 1.05;
    margin: 0;
}

body.home-page .section__subtitle {
    max-width: 58ch;
    margin-top: 0.65rem;
    color: #4a5560;
    line-height: 1.6;
}

body.home-page .section__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 119, 91, 0.1);
    text-decoration: none;
    font-weight: 700;
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.home-page .section__action:hover,
body.home-page .section__action:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

body.home-page .workflow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.home-page .workflow__step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(31, 119, 91, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 247, 0.9));
    box-shadow: 0 14px 28px rgba(10, 16, 13, 0.06);
}

body.home-page .workflow__index {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px rgba(31, 119, 91, 0.22);
}

body.home-page .workflow__step h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

body.home-page .workflow__step p {
    margin: 0;
    line-height: 1.6;
    color: #4a5560;
}

body.home-page .cards.cards--home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.1rem;
}

body.home-page .cards.cards--home.cards--home--single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

body.home-page .cards.cards--home.cards--home--single .card--case {
    width: 100%;
}

body.home-page .card.card--case {
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 247, 0.92));
    border: 1px solid rgba(31, 119, 91, 0.08);
    box-shadow: 0 18px 42px rgba(10, 16, 13, 0.08);
}

body.home-page .card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

body.home-page .card__image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

body.home-page .card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(10, 16, 13, 0.04) 0%, rgba(10, 16, 13, 0.34) 100%);
}

body.home-page .badge--status {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-dark);
    border: 0;
}

body.home-page .badge--status--large {
    padding: 0.55rem 1rem;
    min-height: 2.25rem;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(18, 20, 18, 0.12);
}

body.home-page .badge--status.is-lost {
    background: #ea4a47;
    color: #fff;
}

body.home-page .badge--status.is-found {
    background: #1db874;
    color: #fff;
}

body.home-page .badge--status.is-lost,
body.home-page .badge--status.is-found {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.home-page .card__date {
    margin-left: auto;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

body.home-page .card__body {
    display: grid;
    gap: 0.7rem;
    padding: 1.1rem 1.1rem 1.2rem;
}

body.home-page .card__body h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

body.home-page .card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a5560;
    font-size: 0.95rem;
}

body.home-page .card__meta i {
    color: var(--color-secondary);
}

body.home-page .card--case .cta-button--secondary {
    justify-self: start;
    background: rgba(31, 119, 91, 0.1);
    border: 1px solid rgba(31, 119, 91, 0.14);
    color: var(--color-primary-dark);
    font-weight: 800;
}

body.home-page .card--case .cta-button--secondary.is-lost {
    background: #ea4a47;
    border-color: #ea4a47;
    color: #fff;
}

body.home-page .card--case .cta-button--secondary.is-found {
    background: #1db874;
    border-color: #1db874;
    color: #fff;
}

body.home-page .card--case .cta-button--secondary.is-lost:hover,
body.home-page .card--case .cta-button--secondary.is-lost:focus-visible {
    background: #df3d3a;
    border-color: #df3d3a;
}

body.home-page .card--case .cta-button--secondary.is-found:hover,
body.home-page .card--case .cta-button--secondary.is-found:focus-visible {
    background: #17a867;
    border-color: #17a867;
}

body.home-page .card--case .post-type-badge--lost {
    background: rgba(233, 72, 72, 0.18);
    color: #df3d3a;
}

body.home-page .stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.1rem;
}

body.home-page .stories-grid--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

body.home-page .stories-grid--single .story-card {
    width: 100%;
    max-width: 720px;
    justify-self: center;
}

body.home-page .story-card {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.92));
    border: 1px solid rgba(31, 119, 91, 0.08);
    box-shadow: 0 18px 42px rgba(10, 16, 13, 0.08);
}

body.home-page .story-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

body.home-page .story-card__body {
    display: grid;
    gap: 0.7rem;
    padding: 1.2rem;
}

body.home-page .badge--story {
    width: fit-content;
    background: rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
}

body.home-page .story-card__body h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

body.home-page .story-card__body p {
    margin: 0;
    color: #4a5560;
    line-height: 1.6;
}

body.home-page .story-card__link {
    width: fit-content;
    text-decoration: none;
    font-weight: 700;
    color: var(--color-primary-dark);
}

body.home-page .story-card__link:hover,
body.home-page .story-card__link:focus-visible {
    text-decoration: underline;
}

body.home-page .section--adoption {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.16), transparent 26%),
        radial-gradient(circle at left bottom, rgba(31, 119, 91, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 248, 0.9));
}

body.home-page .section--adoption::before,
body.home-page .section--adoption::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.6;
}

body.home-page .section--adoption::before {
    width: 17rem;
    height: 17rem;
    top: -6rem;
    right: -4rem;
    background: radial-gradient(circle, rgba(240, 138, 75, 0.18), transparent 70%);
}

body.home-page .section--adoption::after {
    width: 14rem;
    height: 14rem;
    left: -5rem;
    bottom: -6rem;
    background: radial-gradient(circle, rgba(31, 119, 91, 0.14), transparent 70%);
}

body.home-page .section--adoption > * {
    position: relative;
    z-index: 1;
}

body.home-page .adoption-section__intro {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.home-page .adoption-section__header {
    margin-bottom: 0;
    gap: 1rem;
    align-items: start;
}

body.home-page .adoption-section__action {
    align-self: start;
    white-space: nowrap;
}

body.home-page .adoption-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

body.home-page .adoption-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 252, 250, 0.72));
    border: 1px solid rgba(31, 119, 91, 0.08);
    box-shadow: 0 14px 30px rgba(10, 16, 13, 0.06);
    backdrop-filter: blur(10px);
}

body.home-page .adoption-stat-card::before {
    content: none;
}

body.home-page .adoption-stat-card__icon {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 16px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.12), rgba(240, 138, 75, 0.12));
    color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

body.home-page .adoption-stat-card__icon i {
    font-size: 1.05rem;
}

body.home-page .adoption-stat-card__body {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

body.home-page .adoption-stat-card--active .adoption-stat-card__icon {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.14), rgba(31, 119, 91, 0.06));
}

body.home-page .adoption-stat-card--adopted .adoption-stat-card__icon {
    background: linear-gradient(135deg, rgba(90, 126, 106, 0.12), rgba(31, 119, 91, 0.08));
}

body.home-page .adoption-stat-card--profiles .adoption-stat-card__icon {
    background: linear-gradient(135deg, rgba(75, 110, 138, 0.12), rgba(31, 119, 91, 0.06));
}

body.home-page .adoption-stat-card--urgent .adoption-stat-card__icon {
    background: linear-gradient(135deg, rgba(240, 138, 75, 0.18), rgba(240, 138, 75, 0.08));
    color: #9a541f;
}

body.home-page .adoption-stat-card__label {
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-muted);
}

body.home-page .adoption-stat-card__value {
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-ink);
}

body.home-page .adoption-section__note {
    max-width: 72ch;
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(31, 119, 91, 0.18);
    color: #45545c;
    line-height: 1.65;
}

body.home-page .adoption-section__cards-header {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
    padding-top: 0.25rem;
}

body.home-page .adoption-section__cards-header .section__eyebrow {
    width: fit-content;
}

body.home-page .adoption-section__cards-note {
    margin: 0;
    color: #46555d;
    line-height: 1.6;
}

body.home-page .adoption-carousel {
    display: flex;
    gap: 0.95rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0.15rem 0.35rem;
    margin: 0 -0.15rem 1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.home-page .adoption-carousel::-webkit-scrollbar {
    height: 10px;
}

body.home-page .adoption-carousel::-webkit-scrollbar-track {
    background: rgba(31, 119, 91, 0.06);
    border-radius: 999px;
}

body.home-page .adoption-carousel::-webkit-scrollbar-thumb {
    background: rgba(31, 119, 91, 0.24);
    border-radius: 999px;
}

body.home-page .adoption-card {
    flex: 0 0 clamp(260px, 27vw, 320px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.94));
    border: 1px solid rgba(31, 119, 91, 0.08);
    box-shadow: 0 18px 38px rgba(10, 16, 13, 0.08);
    scroll-snap-align: start;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.home-page .adoption-card:hover,
body.home-page .adoption-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(10, 16, 13, 0.12);
    border-color: rgba(31, 119, 91, 0.14);
}

body.home-page .adoption-card__media {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

body.home-page .adoption-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.home-page .adoption-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(10, 16, 13, 0.04), rgba(10, 16, 13, 0.38));
}

body.home-page .adoption-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.home-page .adoption-card__badge {
    padding: 0.35rem 0.62rem;
    min-height: 1.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-page .adoption-card__badge--urgent {
    background: #ea4a47;
    color: #fff;
}

body.home-page .adoption-card__badge--vaccinated {
    background: rgba(31, 119, 91, 0.94);
    color: #fff;
}

body.home-page .adoption-card__body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.72rem;
    padding: 1rem 1rem 1.05rem;
    flex: 1 1 auto;
}

body.home-page .adoption-card__body h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

body.home-page .adoption-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    color: #4a5560;
    font-size: 0.92rem;
    line-height: 1.45;
}

body.home-page .adoption-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.home-page .adoption-card__species {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.home-page .adoption-card__meta i {
    color: var(--color-secondary);
}

body.home-page .adoption-card__action {
    justify-self: start;
    align-self: end;
    width: fit-content;
    min-height: 2.85rem;
    background: rgba(31, 119, 91, 0.1);
    border: 1px solid rgba(31, 119, 91, 0.14);
    color: var(--color-primary-dark);
    font-weight: 800;
}

body.home-page .adoption-empty-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(31, 119, 91, 0.08), rgba(240, 138, 75, 0.08)),
        rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 119, 91, 0.12);
    box-shadow: 0 16px 34px rgba(10, 16, 13, 0.08);
}

body.home-page .adoption-empty-state__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 119, 91, 0.22);
}

body.home-page .adoption-empty-state__icon i {
    font-size: 1.3rem;
}

body.home-page .adoption-empty-state__copy {
    display: grid;
    gap: 0.35rem;
}

body.home-page .adoption-empty-state__copy h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

body.home-page .adoption-empty-state__copy p {
    margin: 0;
    color: #4a5560;
    line-height: 1.6;
}

body.home-page .adoption-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

body.home-page .adoption-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 119, 91, 0.08);
    justify-content: center;
    max-width: 1040px;
    margin-inline: auto;
}

body.home-page .adoption-cta-row .cta-button {
    flex: 1 1 220px;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 119, 91, 0.14);
    color: var(--color-primary-dark);
    box-shadow: 0 12px 24px rgba(10, 16, 13, 0.08);
}

body.home-page .adoption-cta-row .cta-button--primary {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.96));
    color: #fff;
    border-color: rgba(31, 119, 91, 0.22);
}

body.home-page .adoption-cta-row .cta-button--secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.96));
    color: var(--color-primary-dark);
}

body.home-page .section--donate {
    border-radius: 34px;
    padding: clamp(1.35rem, 2.5vw, 2.1rem);
    background:
        linear-gradient(135deg, rgba(31, 119, 91, 0.12), rgba(240, 138, 75, 0.12)),
        rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(31, 119, 91, 0.12);
    box-shadow: 0 18px 42px rgba(10, 16, 13, 0.08);
}

body.home-page .donate__body {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

body.home-page .donate__body .section__subtitle {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    body.home-page .hero__inner {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    body.home-page .hero__stats {
        order: -1;
    }

    body.home-page .workflow {
        grid-template-columns: 1fr;
    }

    body.home-page .mission-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .direction-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .section {
        border-radius: 28px;
    }
}

@media (max-width: 900px) {
    body.home-page .hero__signals,
    body.home-page .hero__stats-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .mission-stats {
        grid-template-columns: 1fr;
    }

    body.home-page .section__header--split,
    body.home-page .donate__body {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home-page .adoption-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .adoption-card {
        flex-basis: clamp(250px, 62vw, 320px);
    }
}

@media (max-width: 640px) {
    body.home-page .hero {
        margin: 0 auto 0.9rem;
        padding: 0.45rem;
        border-radius: 22px;
        box-shadow: 0 14px 26px rgba(10, 16, 13, 0.14);
    }

    body.home-page .hero__copy {
        padding: 0.85rem;
        gap: 0.55rem;
        border-radius: 18px;
    }

    body.home-page .hero h1 {
        max-width: 11ch;
        font-size: clamp(1.95rem, 10vw, 2.7rem);
        line-height: 0.98;
        letter-spacing: -0.055em;
    }

    body.home-page .cards.cards--home,
    body.home-page .stories-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .adoption-stats {
        gap: 0.7rem;
    }

    body.home-page .adoption-stat-card {
        padding: 0.85rem;
        border-radius: 18px;
    }

    body.home-page .adoption-stat-card__label {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    body.home-page .adoption-stat-card__value {
        font-size: clamp(1.35rem, 7vw, 1.85rem);
    }

    body.home-page .adoption-section__note {
        padding-left: 0.85rem;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    body.home-page .adoption-card {
        flex-basis: clamp(240px, 80vw, 300px);
        border-radius: 20px;
    }

    body.home-page .adoption-card__overlay {
        padding: 0.6rem;
    }

    body.home-page .adoption-card__badge {
        padding: 0.3rem 0.55rem;
        min-height: 1.6rem;
        font-size: 0.64rem;
    }

    body.home-page .adoption-card__body {
        padding: 0.8rem;
        gap: 0.45rem;
    }

    body.home-page .adoption-card__body h3 {
        font-size: 0.98rem;
    }

    body.home-page .adoption-card__meta {
        gap: 0.35rem 0.55rem;
        font-size: 0.8rem;
    }

    body.home-page .adoption-card__species {
        padding: 0.22rem 0.45rem;
        font-size: 0.62rem;
    }

    body.home-page .adoption-card__action {
        width: 100%;
        min-height: 2.5rem;
        font-size: 0.82rem;
    }

    body.home-page .adoption-empty-state {
        padding: 0.9rem;
        border-radius: 18px;
        gap: 0.75rem;
    }

    body.home-page .adoption-empty-state__icon {
        width: 3rem;
        height: 3rem;
    }

    body.home-page .adoption-empty-state__copy h3 {
        font-size: 0.98rem;
    }

    body.home-page .adoption-empty-state__copy p {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    body.home-page .adoption-cta-row .cta-button {
        flex-basis: 100%;
    }

    body.home-page .adoption-section__action {
        width: 100%;
        justify-content: center;
    }

    body.home-page .hero__stats {
        padding: 0.7rem;
        border-radius: 18px;
        gap: 0.6rem;
        box-shadow: 0 14px 24px rgba(10, 16, 13, 0.08);
    }

    body.home-page .section {
        padding: 0.85rem;
        border-radius: 20px;
    }
}

.posts-header {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto 1rem;
    padding: 0 var(--layout-gutter);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.posts-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.posts-header h1 {
    margin: 0;
    font-size: 2rem;
}

.posts-header p {
    max-width: 62ch;
    margin: 0.5rem 0 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.posts-header__cta {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 138, 75, 0.25);
    background: linear-gradient(135deg, #f49a61 0%, #ef7742 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(239, 119, 66, 0.24);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.posts-header__cta:hover,
.posts-header__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(239, 119, 66, 0.3);
    filter: saturate(1.05);
}

.posts-demo {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 1.2rem var(--layout-gutter);
    display: grid;
    gap: 1rem;
}

.posts-demo__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.posts-demo__head h2 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.4rem;
}

.posts-demo__head p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
    max-width: 70ch;
}

.posts-demo__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.posts-demo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.posts-empty-state {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 2rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 244, 233, 0.98) 100%);
    border: 1px solid rgba(30, 63, 48, 0.12);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.posts-empty-state__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.posts-empty-state h2 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
}

.posts-empty-state p {
    margin: 0;
    max-width: 68ch;
    color: var(--color-muted);
    line-height: 1.65;
}

.posts-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.posts-filters {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto 2rem;
    padding: 1.25rem var(--layout-gutter);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 1rem;
}

.posts-filters form {
    display: grid;
    gap: 0.75rem;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.filters-row input,
.filters-row select,
.filters-row button {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 0.95rem;
}

.cards.posts-grid {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.posts-grid--demo {
    padding: 0;
}

.posts-grid__summary {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(47, 107, 83, 0.08);
    border: 1px solid rgba(47, 107, 83, 0.12);
    color: var(--color-primary-dark);
}

.posts-grid__summary strong {
    font-size: 1.4rem;
}

.posts-grid__summary span {
    font-size: 0.95rem;
}

.post-card {
    background: var(--color-panel);
    border-radius: 22px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 14px 30px rgba(19, 28, 22, 0.05);
}

.post-card--resolved {
    background: linear-gradient(180deg, rgba(90, 170, 110, 0.16) 0%, rgba(90, 170, 110, 0.08) 100%);
    border-color: rgba(90, 170, 110, 0.55);
    box-shadow: 0 14px 30px rgba(34, 96, 49, 0.12);
}

.post-card--archived {
    background: linear-gradient(180deg, rgba(101, 109, 96, 0.18) 0%, rgba(101, 109, 96, 0.08) 100%);
    border-color: rgba(101, 109, 96, 0.6);
    box-shadow: 0 14px 30px rgba(46, 54, 48, 0.12);
}

.post-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9ece8;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(18, 24, 20, 0.02) 0%, rgba(18, 24, 20, 0.28) 100%);
}

.post-card__ribbon,
.post-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-card__ribbon {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.post-card__ribbon--lost {
    background: rgba(233, 72, 72, 0.92);
    border-color: rgba(233, 72, 72, 0.7);
    color: #ffffff;
}

.post-card__ribbon--found {
    background: rgba(31, 119, 91, 0.92);
    border-color: rgba(31, 119, 91, 0.7);
    color: #ffffff;
}

.post-card__status {
    margin-left: auto;
}

.post-card__status.status-badge--active,
.post-card__status.status-inline--active {
    color: #ffffff;
}

.post-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.post-card--resolved .post-card__body {
    background: rgba(255, 255, 255, 0.5);
}

.post-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.post-card__title-row h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.post-card__species {
    flex-shrink: 0;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.post-card__meta-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 0.86rem;
}

.post-card__meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-card__excerpt {
    min-height: 3rem;
    margin: 0;
    color: #2a2a2a;
    line-height: 1.55;
}

.post-card__actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.post-card__actions .cta-button {
    font-size: 0.9rem;
}

.post-card__actions .cta-button--secondary {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(47, 107, 83, 0.18);
}

.status-badge--resolved,
.status-inline--resolved {
    background: rgba(33, 105, 54, 0.92);
    color: #f3fff6;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.status-badge--finished {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.72) 0 0.32rem, transparent 0.38rem),
        radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.72) 0 0.32rem, transparent 0.38rem),
        linear-gradient(135deg, #fff8cf 0%, #fff0a8 50%, #ffe17f 100%);
    border: 1px solid rgba(196, 145, 0, 0.3);
    color: #5b4300 !important;
    box-shadow: 0 12px 24px rgba(183, 122, 0, 0.14);
}

.status-badge--finished::before,
.status-badge--finished::after {
    content: '';
    position: absolute;
    inset: auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 20%, rgba(255, 255, 255, 0.95) 21% 22%, rgba(255, 255, 255, 0) 23% 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 90, 0.95) 0 9%, rgba(255, 220, 90, 0) 10% 100%);
    filter: drop-shadow(0 0 6px rgba(255, 199, 0, 0.45));
    opacity: 0.9;
    animation: case-firework-burst 2.8s ease-out infinite;
}

.status-badge--finished::before {
    top: -0.6rem;
    right: -0.45rem;
}

.status-badge--finished::after {
    bottom: -0.65rem;
    left: -0.35rem;
    animation-delay: 1.1s;
}

.status-inline--finished {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.72) 0 0.32rem, transparent 0.38rem),
        radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.72) 0 0.32rem, transparent 0.38rem),
        linear-gradient(135deg, #fff8cf 0%, #fff0a8 50%, #ffe17f 100%);
    border: 1px solid rgba(196, 145, 0, 0.3);
    color: #5b4300 !important;
    box-shadow: 0 12px 24px rgba(183, 122, 0, 0.14);
}

.status-inline--finished::before,
.status-inline--finished::after {
    content: '';
    position: absolute;
    inset: auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 20%, rgba(255, 255, 255, 0.95) 21% 22%, rgba(255, 255, 255, 0) 23% 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 90, 0.95) 0 9%, rgba(255, 220, 90, 0) 10% 100%);
    filter: drop-shadow(0 0 6px rgba(255, 199, 0, 0.45));
    opacity: 0.9;
    animation: case-firework-burst 2.8s ease-out infinite;
}

.status-inline--finished::before {
    top: -0.6rem;
    right: -0.45rem;
}

.status-inline--finished::after {
    bottom: -0.65rem;
    left: -0.35rem;
    animation-delay: 1.1s;
}

.status-badge--archived,
.status-inline--archived {
    background: rgba(74, 82, 72, 0.94);
    color: #f7fbf5;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.post-card--demo {
    border-color: rgba(31, 119, 91, 0.16);
}

.pagination {
    width: min(calc(100% - 20px), 1900px);
    margin: 2rem auto;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-muted);
}

.pagination .active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 640px) {
    .posts-header {
        flex-direction: column;
        width: calc(100% - 1rem);
        padding: 0 0.5rem;
    }

    .posts-header__cta {
        align-self: flex-start;
    }

    .posts-filters,
    .cards.posts-grid,
    .posts-demo,
    .pagination {
        width: calc(100% - 1rem);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .posts-demo__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards.posts-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        grid-template-columns: 1fr 1fr;
    }

    .post-card__title-row {
        flex-direction: column;
    }

    .post-card__status {
        margin-left: 0;
    }

    .post-card__overlay {
        align-items: flex-start;
        padding: 0;
        background: none;
    }

    .post-card__ribbon,
    .post-card__status {
        position: absolute;
        top: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.68rem;
    }

    .post-card__ribbon {
        left: 0;
    }

    .post-card__status {
        right: 0;
    }
}

.public-detail-shell,
.post-detail {
    width: min(calc(100% - (var(--layout-gutter) * 2)), 1600px);
    margin: 0 auto;
    padding: 1rem var(--layout-gutter) 0;
}

.public-detail-grid,
.post-detail__layout.public-detail-grid,
.story-detail__hero.public-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    gap: 1.75rem;
    align-items: start;
}

.public-detail-main,
.public-detail-sidebar {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.post-detail .detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.post-detail .detail-main {
    display: grid;
    gap: 1rem;
}

.post-detail .detail-gallery img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.post-detail .detail-block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    padding: 1.25rem;
}

.post-detail .detail-block--secondary dl {
    display: grid;
    gap: 0.75rem;
}

.post-detail .detail-block dt {
    font-weight: 700;
}

.post-detail .detail-block dd {
    margin: 0;
    color: var(--color-muted);
}

.post-detail .detail-sidebar .detail-card {
    margin-bottom: 1rem;
}

.detail-sidebar-card {
    display: grid;
    gap: 0.85rem;
}

.owner-card {
    gap: 0.85rem;
}

.owner-card__eyebrow {
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.owner-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.owner-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.95), rgba(20, 67, 51, 0.95));
    box-shadow: 0 14px 28px rgba(17, 24, 20, 0.12);
}

.owner-card--anonymous .owner-card__avatar,
.owner-card--unknown .owner-card__avatar {
    background: linear-gradient(135deg, rgba(104, 116, 126, 0.92), rgba(57, 67, 74, 0.92));
}

.owner-card--admin .owner-card__avatar {
    background: linear-gradient(135deg, rgba(16, 84, 58, 0.98), rgba(12, 48, 37, 0.98));
}

.owner-card--volunteer .owner-card__avatar {
    background: linear-gradient(135deg, rgba(48, 128, 98, 0.96), rgba(26, 86, 63, 0.96));
}

.owner-card--registered .owner-card__avatar {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.9), rgba(42, 92, 70, 0.9));
}

.owner-card--shelter .owner-card__avatar,
.owner-card--organization .owner-card__avatar {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.92), rgba(27, 78, 61, 0.92));
}

.owner-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owner-card__copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.owner-card__name {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--color-ink);
}

.owner-card__meta {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.owner-card__meta--small {
    font-size: 0.84rem;
}

.owner-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.owner-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
}

.owner-card__badge--verified {
    background: rgba(31, 119, 91, 0.14);
    color: var(--color-primary-dark);
}

.owner-card__badge--source {
    background: rgba(240, 138, 75, 0.12);
    color: #9a551f;
}

.owner-card__badge--privacy {
    background: rgba(20, 29, 35, 0.08);
    color: #4f5a64;
}

.owner-card__badge--system {
    background: rgba(16, 84, 58, 0.12);
    color: #1f5b42;
}

.owner-card__badge--muted {
    background: rgba(103, 112, 120, 0.12);
    color: #5d6870;
}

.owner-card__note,
.owner-card__privacy {
    margin: 0;
    line-height: 1.55;
    color: var(--color-muted);
}

.owner-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.detail-facts-list {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.detail-facts-list > div {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 0.72rem;
    border-bottom: 1px dashed rgba(32, 44, 36, 0.12);
}

.detail-facts-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-facts-list dt {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-muted);
}

.detail-facts-list dd {
    margin: 0;
    color: var(--color-ink);
    font-weight: 700;
    line-height: 1.45;
}

.detail-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    background: #f7f7f7;
    border-radius: 20px;
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .public-detail-grid,
    .post-detail__layout.public-detail-grid,
    .story-detail__hero.public-detail-grid,
    .post-detail .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-card--sticky {
        position: static;
    }
}

body.is-locked {
    overflow: hidden;
}

.post-detail .cta-button--secondary {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-primary-dark);
}

.timeline-feed {
    display: grid;
    gap: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

.timeline-feed::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(47, 107, 83, 0.55), rgba(47, 107, 83, 0.08));
}

.timeline-card {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.75rem;
}

.timeline-card__rail {
    position: relative;
}

.timeline-card__rail::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 1rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(47, 107, 83, 0.12);
}

.timeline-card__body {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    padding: 1rem 1rem 0.9rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 0.65rem;
}

.timeline-card--important .timeline-card__body {
    border-color: rgba(31, 119, 91, 0.24);
    box-shadow: 0 16px 34px rgba(31, 119, 91, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 245, 0.98));
}

.timeline-card__badge i {
    margin-right: 0.35rem;
}

.timeline-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.timeline-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #edf6f1;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.timeline-card__time {
    color: var(--color-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.timeline-card__body h3 {
    margin: 0;
    font-size: 1.05rem;
}

.timeline-card__body p {
    margin: 0;
    line-height: 1.55;
}

.timeline-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.timeline-card__location {
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: #f8fbf9;
    border: 1px solid #dfe9e3;
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.timeline-card__source {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.timeline-card__image {
    border: none;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.timeline-card__image img {
    width: 100%;
    max-width: 240px;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.timeline-modal,
.timeline-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.timeline-modal[hidden],
.timeline-lightbox[hidden] {
    display: none !important;
}

.timeline-modal__backdrop,
.timeline-lightbox::before {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(12, 20, 16, 0.72);
    backdrop-filter: blur(6px);
}

.timeline-modal__panel {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    padding: 1.2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.timeline-modal__close,
.timeline-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: none;
    background: #eef3ef;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}

.timeline-form {
    display: grid;
    gap: 1rem;
}

.timeline-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-form__full {
    grid-column: 1 / -1;
}

.timeline-form__check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.timeline-form__check label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0;
}

.timeline-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
}

.timeline-form input,
.timeline-form select,
.timeline-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    font: inherit;
    background: #fff;
}

.timeline-form textarea {
    min-height: 120px;
    resize: vertical;
}

.timeline-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.timeline-form__notice {
    padding: 1rem;
    border-radius: 18px;
    background: #f7f8fa;
    border: 1px solid var(--color-border);
}

.timeline-lightbox {
    display: grid;
    place-items: center;
}

.timeline-lightbox__close {
    color: #1d1d1d;
}

.timeline-lightbox img {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 84vh;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.timeline-table__meta {
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

.timeline-table__thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 0.5rem;
}

.timeline-table__flag {
    margin-top: 0.35rem;
    color: #a13a3a;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .timeline-card {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .timeline-card__head,
    .timeline-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-modal__panel {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .timeline-feed {
        padding-left: 0;
    }

    .timeline-feed::before {
        left: 8px;
    }

    .timeline-card {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .timeline-card__rail::after {
        left: 1px;
    }

    .timeline-card__body {
        padding: 0.9rem;
    }

    .timeline-lightbox img {
        max-width: 96vw;
    }
}

.post-detail {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.post-detail__hero {
    background: linear-gradient(135deg, rgba(25, 32, 29, 0.96), rgba(39, 92, 71, 0.94));
    color: #fff;
    border-radius: 30px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    margin: 1rem 0 1.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

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

.post-detail__hero-head h1 {
    margin: 0.5rem 0 0.4rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.post-detail__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.post-detail__badges {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.post-type-badge,
.status-badge,
.status-inline,
.section-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.post-type-badge--lost {
    background: rgba(233, 72, 72, 0.18);
    color: #df3d3a;
}

.post-type-badge--found {
    background: rgba(109, 210, 170, 0.18);
    color: #9bf0cb;
}

.status-badge--active,
.status-inline--active {
    background: rgba(26, 93, 62, 0.9);
    color: #f4fff9;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.status-badge--sheltered_temp,
.status-badge--in_shelter,
.status-inline--sheltered_temp,
.status-inline--in_shelter {
    background: rgba(96, 166, 255, 0.18);
    color: #b9d4ff;
}

.status-badge--in_clinic,
.status-inline--in_clinic {
    background: rgba(255, 180, 87, 0.18);
    color: #ffd29b;
}

.status-badge--reunited,
.status-inline--reunited {
    background: rgba(154, 116, 255, 0.18);
    color: #d4c1ff;
}

.status-badge--closed,
.status-badge--hidden,
.status-inline--closed,
.status-inline--hidden {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.84);
}

.status-inline--closed,
.status-inline--hidden {
    background: #edf0f3;
    color: #545b65;
}

.section-pill {
    background: rgba(47, 107, 83, 0.1);
    color: var(--color-primary);
}

.section-pill--danger {
    background: rgba(180, 49, 68, 0.12);
    color: #a32c40;
}

.post-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.post-detail__media,
.post-detail__sidebar {
    display: grid;
    gap: 1rem;
}

.gallery,
.detail-card,
.contact-card,
.found-panel {
    background: var(--color-panel);
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.gallery {
    padding: 1rem;
}

.gallery__main {
    border-radius: 20px;
    overflow: hidden;
    background: #eef4f0;
}

.gallery__main img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.gallery__thumb {
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: #f4f6f2;
    cursor: pointer;
}

.gallery__thumb.is-active {
    border-color: var(--color-primary);
}

.gallery__thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.detail-card,
.contact-card,
.found-panel {
    padding: 1.15rem 1.2rem;
}

.detail-card h2,
.contact-card h2,
.found-panel h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.found-panel {
    display: grid;
    gap: 0.9rem;
}

.found-panel--sos {
    border-left: 4px solid #b43144;
}

.detail-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.map-block {
    min-height: 220px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dfece5, #c8dde0);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.map-block__pin {
    width: 58px;
    height: 58px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-primary);
    transform: rotate(-45deg);
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    box-shadow: 0 10px 24px rgba(47, 107, 83, 0.3);
}

.map-block__pin::after {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: #fff;
}

.map-block__content {
    margin-left: 5rem;
    display: grid;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.location-fallback {
    padding: 1rem 0;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline__item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 0.35rem;
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(47, 107, 83, 0.12);
}

.timeline__time {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.comment-list {
    display: grid;
    gap: 0.85rem;
}

.comment-thread {
    display: grid;
    gap: 1rem;
}

.comment-thread__head {
    align-items: flex-start;
}

.comment-thread__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.comment-thread__open {
    white-space: nowrap;
}

.comment-thread__open-icon,
.comment-modal__pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.45rem;
    line-height: 1;
}

.comment-thread__summary {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(47, 107, 83, 0.07), rgba(47, 107, 83, 0.03));
    border: 1px solid rgba(47, 107, 83, 0.12);
}

.comment-thread__summary p {
    margin: 0;
    line-height: 1.55;
}

.comment-modal[hidden] {
    display: none !important;
}

.comment-modal {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.1rem 1.15rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(245, 233, 205, 0.26), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6faf6 100%);
    border: 1px solid rgba(47, 107, 83, 0.14);
    box-shadow: 0 18px 40px rgba(19, 30, 24, 0.06);
    margin-top: 0.5rem;
    overflow: hidden;
}

.comment-modal--inline {
    animation: comment-modal-expand 180ms ease-out;
}

.comment-modal__close {
    border: none;
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary-dark);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    width: fit-content;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.comment-modal__close--inline {
    justify-self: end;
}

.comment-modal__head {
    display: grid;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(47, 107, 83, 0.1);
}

.comment-form--modal {
    margin-bottom: 0;
}

@keyframes comment-modal-expand {
    from {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 2000px;
    }
}

.comment-thread__eyebrow {
    margin: 0 0 0.2rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comment {
    padding: 1rem 1rem 1.05rem;
    background:
        linear-gradient(180deg, #fcfdfb 0%, #f7faf6 100%);
    border: 1px solid rgba(47, 107, 83, 0.12);
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(19, 30, 24, 0.05);
    position: relative;
    overflow: hidden;
}

.comment::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), rgba(31, 119, 91, 0.22));
}

.comment__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    align-items: flex-start;
}

.comment__meta > div {
    display: grid;
    gap: 0.25rem;
}

.comment__identity {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.comment__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(31, 119, 91, 0.14), rgba(31, 119, 91, 0.08));
    border: 1px solid rgba(47, 107, 83, 0.16);
    color: var(--color-primary-dark);
    font-weight: 800;
}

.comment__identity-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.comment__owner-note {
    color: var(--color-primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.comment__owner-note::-webkit-details-marker {
    display: none;
}

.comment__owner-contact {
    display: grid;
    gap: 0.45rem;
}

.comment__owner-name {
    margin-left: 0.25rem;
    font-weight: 800;
}

.comment__owner-menu {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: rgba(31, 119, 91, 0.07);
    border: 1px solid rgba(31, 119, 91, 0.12);
}

.comment__owner-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 700;
}

.comment__owner-action:hover,
.comment__owner-action:focus-visible {
    text-decoration: underline;
}

.comment__owner-action--disabled {
    opacity: 0.7;
}

.comment__meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.comment__meta-right {
    display: grid;
    gap: 0.35rem;
    justify-items: end;
    text-align: right;
}

.comment__badge,
.comment__flag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #edf4ef;
    color: var(--color-primary-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.comment__flag {
    background: #fff2e5;
    color: #9d5d08;
}

.comment__contact {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.comment-form__account-note {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(31, 119, 91, 0.08);
    border: 1px solid rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
}

.comment-form__account-note .muted {
    margin: 0.3rem 0 0;
}

.comment__body {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.comment__body p {
    margin: 0;
    color: var(--color-ink);
    line-height: 1.6;
}

.comment__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.comment-case-button {
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(31, 119, 91, 0.18);
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.comment-case-button:hover,
.comment-case-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 24, 20, 0.08);
    border-color: rgba(31, 119, 91, 0.3);
}

.comment-case-button i {
    font-size: 0.9rem;
}

.report-button {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-primary-dark);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.report-button:hover,
.report-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 24, 20, 0.08);
    border-color: rgba(31, 119, 91, 0.28);
}

.report-button--inline {
    padding: 0.48rem 0.95rem;
}

.timeline-card__actions,
.post-detail__report {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.timeline-card__flag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.16rem 0.52rem;
    border-radius: 999px;
    background: #fff2e5;
    color: #9d5d08;
    font-size: 0.74rem;
    font-weight: 700;
}

.timeline-card__flag--important {
    background: rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
}

.comment__image {
    display: block;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    margin-top: 0.85rem;
}

.comment__image img {
    display: block;
    width: min(200px, 100%);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--color-border);
}

.report-modal,
.report-page {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.report-page {
    position: static;
    inset: auto;
    z-index: 1;
    padding: 1.5rem 0 3rem;
}

.report-modal[hidden] {
    display: none !important;
}

.report-modal__backdrop {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(12, 20, 16, 0.72);
    backdrop-filter: blur(6px);
}

.report-modal__panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(88vh, 880px);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    padding: 1.3rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.report-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: none;
    background: #eef3ef;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}

.report-modal__head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.report-page__card {
    width: min(860px, 100%);
    margin: 0 auto;
}

.report-page__target {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(31, 119, 91, 0.06);
    border: 1px solid rgba(31, 119, 91, 0.12);
    margin-bottom: 1rem;
}

.report-form {
    display: grid;
    gap: 1rem;
}

.report-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.report-form__field {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 245, 0.96));
    border: 1px solid rgba(47, 107, 83, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.report-form__full {
    grid-column: 1 / -1;
}

.report-form__label {
    display: grid;
    gap: 0.15rem;
}

.report-form__label-title {
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.15;
}

.report-form__label-note {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.report-form select,
.report-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(47, 107, 83, 0.16);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-form select {
    min-height: 3rem;
    padding: 0.78rem 2.4rem 0.78rem 0.95rem;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-primary-dark) 50%),
        linear-gradient(135deg, var(--color-primary-dark) 50%, transparent 50%);
    background-position:
        calc(100% - 1.05rem) calc(50% - 2px),
        calc(100% - 0.8rem) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.report-form textarea {
    min-height: 120px;
    padding: 0.9rem 0.95rem;
    resize: vertical;
}

.report-form select:focus,
.report-form textarea:focus {
    border-color: rgba(47, 107, 83, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.1);
    transform: translateY(-1px);
}

.report-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-form {
    display: grid;
    gap: 0.95rem;
    padding: 1.15rem;
    border: 1px solid rgba(47, 107, 83, 0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(245, 233, 205, 0.38), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6faf6 100%);
    box-shadow: 0 18px 40px rgba(19, 30, 24, 0.06);
    margin-bottom: 1rem;
}

.comment-form__intro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.comment-form__intro-copy h3 {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
}

.comment-form__intro-copy p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
    max-width: 48rem;
}

.comment-form__intro-note {
    margin-top: 0.55rem !important;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(31, 119, 91, 0.07);
    border: 1px solid rgba(47, 107, 83, 0.12);
    color: var(--color-primary-dark) !important;
    font-weight: 600;
}

.comment-form__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.comment-form__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.comment-form__body {
    display: grid;
    gap: 1rem;
}

.comment-form__status {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 107, 83, 0.14);
    background: rgba(47, 107, 83, 0.06);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.comment-form__status.is-error {
    border-color: rgba(212, 71, 95, 0.22);
    background: rgba(212, 71, 95, 0.08);
    color: #9d2f45;
}

.comment-form__status.is-success {
    border-color: rgba(31, 119, 91, 0.18);
    background: rgba(31, 119, 91, 0.07);
    color: var(--color-primary-dark);
}

.comment-form__status.is-pending {
    border-color: rgba(205, 138, 0, 0.34);
    background: linear-gradient(135deg, rgba(255, 240, 179, 0.96), rgba(255, 226, 128, 0.9));
    color: #7a4b00;
    box-shadow: 0 12px 24px rgba(205, 138, 0, 0.12);
    font-weight: 700;
}

.comment-form__surface {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(47, 107, 83, 0.12);
    backdrop-filter: blur(4px);
}

.comment-form__lead {
    display: grid;
    gap: 0.45rem;
}

.comment-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: start;
}

.comment-form__full {
    grid-column: 1 / -1;
}

.comment-field {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 245, 0.95));
    border: 1px solid rgba(47, 107, 83, 0.12);
}

.comment-field label {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.comment-field__title {
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.1;
}

.comment-field__hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted);
}

.comment-field__hint--soft {
    line-height: 1.45;
}

.comment-form label {
    font-weight: 700;
    color: var(--color-primary-dark);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    align-self: start;
    padding-top: 0.95rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="file"] {
    border-radius: 16px;
    border: 1px solid rgba(47, 107, 83, 0.16);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="file"]:focus {
    border-color: rgba(47, 107, 83, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.12);
}

.comment-form__check {
    display: flex;
    align-items: center;
    padding-top: 0.2rem;
}

.comment-form__check label {
    margin-bottom: 0;
    font-weight: 500;
}

.comment-form__check-note {
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.comment-form__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.comment-form__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.comment-form__note {
    display: grid;
    gap: 0.2rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.comment-form__note strong {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.comment-form__note span {
    line-height: 1.55;
}

.comment-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8f4 100%);
    border: 1px solid rgba(47, 107, 83, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.comment-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.comment-file__button {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(47, 107, 83, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comment-file__button strong,
.comment-file__button span {
    color: #fff;
}

.comment-file__button:hover,
.comment-file__button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(47, 107, 83, 0.26);
}

.comment-file__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1rem;
}

.comment-file__button-copy {
    display: grid;
    gap: 0.1rem;
    line-height: 1.1;
}

.comment-file__button-copy strong {
    font-size: 0.95rem;
}

.comment-file__button-copy span {
    font-size: 0.78rem;
    opacity: 0.84;
}

.comment-file__meta {
    display: grid;
    gap: 0.1rem;
    justify-self: end;
    text-align: right;
}

.comment-file__label {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comment-file__name {
    color: var(--color-primary-dark);
    font-weight: 700;
    word-break: break-word;
}

.comment-form__notice {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(47, 107, 83, 0.08), rgba(47, 107, 83, 0.03));
    border: 1px dashed rgba(47, 107, 83, 0.25);
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.comment-form__notice p {
    margin: 0;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.comment-list__empty {
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed rgba(47, 107, 83, 0.2);
    color: var(--color-muted);
}

@media (max-width: 720px) {
    .case-management-panel__head,
    .last-location {
        flex-direction: column;
    }

    .case-management-panel__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .case-management-chip {
        width: 100%;
        justify-content: center;
    }

    .last-location__actions {
        align-items: stretch;
    }

    .location-nav {
        justify-content: flex-start;
    }

    .location-nav__button {
        width: 100%;
        justify-content: center;
    }

    .case-management-modal__panel {
        padding: 1rem;
        border-radius: 22px;
    }

    .case-management-form__check {
        align-items: flex-start;
    }

    .comment-thread__actions {
        justify-content: flex-start;
    }

    .comment-thread__open {
        width: 100%;
        justify-content: center;
    }

    .comment-modal {
        padding: 1rem;
        border-radius: 22px;
    }

    .comment-modal__close {
        width: 100%;
        justify-content: center;
    }

    .comment-form__intro {
        flex-direction: column;
    }

    .comment-form__surface {
        padding: 0.9rem;
    }

    .comment-form__grid {
        grid-template-columns: 1fr;
    }

    .comment-field {
        padding: 0.85rem 0.9rem 0.95rem;
    }

    .comment-file {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .comment-form__lead textarea {
        min-height: 140px;
    }

    .comment-file__meta {
        justify-self: start;
        text-align: left;
    }

    .comment-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-form__actions {
        justify-content: stretch;
    }

    .comment-form__actions .cta-button {
        width: 100%;
        justify-content: center;
    }

    .comment__meta {
        gap: 0.75rem;
    }

    .comment__identity {
        width: 100%;
    }

    .comment__avatar {
        width: 2rem;
        height: 2rem;
    }
}

.vm-alert,
.form-alert {
    width: 100%;
    margin: 0 0 1rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(27, 38, 34, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 250, 0.92));
    box-shadow: 0 16px 34px rgba(17, 24, 20, 0.06);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    overflow: hidden;
}

.vm-alert:last-child,
.form-alert:last-child {
    margin-bottom: 0;
}

.vm-alert__marker {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.3rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.35);
    box-shadow: 0 0 0 8px rgba(31, 119, 91, 0.08);
    flex: 0 0 auto;
}

.vm-alert__content {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.vm-alert__title {
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.vm-alert__body,
.vm-alert__note {
    color: var(--color-ink);
    line-height: 1.6;
}

.vm-alert__body {
    font-weight: 500;
}

.vm-alert__note {
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.vm-alert__details {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.35rem;
    color: var(--color-ink);
    line-height: 1.55;
}

.vm-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.vm-alert__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.72rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(31, 119, 91, 0.12);
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.vm-alert__action:hover,
.vm-alert__action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 20, 0.08);
}

.vm-alert__action--primary {
    background: linear-gradient(135deg, var(--color-primary), #4a9170);
    border-color: rgba(31, 119, 91, 0.22);
    color: #fff;
}

.vm-alert__action--info {
    background: rgba(34, 104, 168, 0.08);
    border-color: rgba(34, 104, 168, 0.14);
    color: #21496c;
}

.vm-alert__action--warning {
    background: rgba(240, 138, 75, 0.12);
    border-color: rgba(240, 138, 75, 0.18);
    color: #8c4a17;
}

.vm-alert__action--error {
    background: rgba(212, 71, 95, 0.09);
    border-color: rgba(212, 71, 95, 0.18);
    color: #a33148;
}

.vm-alert--success,
.form-alert--success {
    border-color: rgba(31, 119, 91, 0.18);
    background: linear-gradient(180deg, rgba(239, 248, 243, 0.98), rgba(246, 252, 248, 0.94));
}

.vm-alert--success .vm-alert__marker,
.form-alert--success .vm-alert__marker {
    background: rgba(31, 119, 91, 0.9);
    box-shadow: 0 0 0 8px rgba(31, 119, 91, 0.08);
}

.vm-alert--error,
.form-alert--error {
    border-color: rgba(212, 71, 95, 0.2);
    background: linear-gradient(180deg, rgba(255, 242, 244, 0.98), rgba(255, 247, 248, 0.94));
}

.vm-alert--error .vm-alert__marker,
.form-alert--error .vm-alert__marker {
    background: rgba(212, 71, 95, 0.9);
    box-shadow: 0 0 0 8px rgba(212, 71, 95, 0.08);
}

.vm-alert--warning,
.form-alert--warning {
    border-color: rgba(217, 159, 48, 0.22);
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(255, 252, 244, 0.94));
}

.vm-alert--warning .vm-alert__marker,
.form-alert--warning .vm-alert__marker {
    background: rgba(217, 159, 48, 0.95);
    box-shadow: 0 0 0 8px rgba(217, 159, 48, 0.1);
}

.vm-alert--info,
.form-alert--info {
    border-color: rgba(87, 130, 170, 0.18);
    background: linear-gradient(180deg, rgba(245, 249, 252, 0.98), rgba(248, 251, 253, 0.94));
}

.vm-alert--info .vm-alert__marker,
.form-alert--info .vm-alert__marker {
    background: rgba(87, 130, 170, 0.9);
    box-shadow: 0 0 0 8px rgba(87, 130, 170, 0.08);
}

.site-flash-wrap {
    width: min(1200px, calc(100% - 2rem));
    margin: 1rem auto 0;
}

.site-flash {
    margin-bottom: 0;
}

.site-flash-wrap .vm-alert {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .vm-alert,
    .form-alert {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.95rem 0.95rem 1rem;
    }

    .vm-alert__marker {
        margin-top: 0;
        width: 0.8rem;
        height: 0.8rem;
    }

    .vm-alert__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vm-alert__action {
        width: 100%;
    }
}

.field-error,
.form-error,
body.support-project-page .support-project-field-error {
    color: #b42318;
    font-weight: 600;
}

.field-error,
.form-error,
body.support-project-page .support-project-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.register-card .hint,
.profile-section .hint,
.login-card .hint,
body.support-project-page .hint {
    color: #b42318;
    font-weight: 600;
}

.form-error {
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
}

.comment__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment__photos img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-comment {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(31, 119, 91, 0.06);
    border: 1px solid rgba(31, 119, 91, 0.08);
    display: grid;
    gap: 0.3rem;
}

.detail-comment strong {
    color: var(--color-primary-dark);
}

.detail-comment p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.post-detail__actions {
    display: grid;
    gap: 0.65rem;
}

.post-detail__actions--stacked {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.post-detail__actions--stacked .cta-button {
    width: 100%;
    justify-content: center;
}

.post-detail--demo .detail-card {
    background: rgba(255, 255, 255, 0.92);
}

.cta-button--small {
    padding: 0.55rem 0.9rem;
    min-height: 2.5rem;
    font-size: 0.9rem;
}

.case-management-panel {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 244, 0.95));
    border: 1px solid rgba(31, 119, 91, 0.14);
    box-shadow: 0 18px 38px rgba(17, 24, 20, 0.08);
}

.case-management-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.case-management-panel__head h2 {
    margin-bottom: 0.15rem;
}

.case-management-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.case-management-chip {
    border: 1px solid rgba(31, 119, 91, 0.14);
    background: #fff;
    color: var(--color-primary-dark);
    border-radius: 16px;
    padding: 0.72rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(17, 24, 20, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.case-management-chip:hover,
.case-management-chip:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17, 24, 20, 0.08);
    border-color: rgba(31, 119, 91, 0.24);
}

.case-management-chip i {
    color: var(--color-primary);
}

.case-management-chip--danger {
    border-color: rgba(212, 71, 95, 0.18);
    color: #a33148;
}

.case-management-chip--danger i {
    color: #a33148;
}

.detail-card--location-summary {
    display: grid;
    gap: 0.9rem;
}

.last-location {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(31, 119, 91, 0.06), rgba(31, 119, 91, 0.03));
    border: 1px solid rgba(31, 119, 91, 0.12);
}

.last-location__meta {
    display: grid;
    gap: 0.28rem;
}

.last-location__meta strong {
    color: var(--color-primary-dark);
    font-size: 1.02rem;
}

.last-location__meta span {
    color: var(--color-muted);
}

.last-location__date {
    font-size: 0.88rem;
    color: var(--color-muted);
}

.last-location__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.location-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    align-items: center;
}

.location-nav__button {
    white-space: nowrap;
}

.location-nav__copy-action,
.post-location-map__copy-action {
    display: grid;
    gap: 0.35rem;
}

.location-nav__copy-action .location-nav__button,
.post-location-map__copy-action .post-location-map__button {
    width: 100%;
}

.location-nav__feedback {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.last-location__empty {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.case-management-modal__panel {
    width: min(980px, 100%);
}

.case-management-modal__head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.case-management-form__check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.case-management-form__check input {
    width: auto;
    margin: 0;
}

.case-management-modal [data-case-status-wrap][hidden],
.case-management-modal [data-case-use-source-image-wrap][hidden] {
    display: none !important;
}

.case-location-map {
    display: grid;
    gap: 0.9rem;
    grid-column: 1 / -1;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(31, 119, 91, 0.12);
    background: linear-gradient(180deg, rgba(250, 252, 251, 0.98), rgba(242, 247, 244, 0.98));
}

.case-location-map__head {
    display: grid;
    gap: 0.25rem;
}

.case-location-map__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.case-location-map__title {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark);
}

.case-location-map__copy {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.case-location-map__canvas-wrap {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(31, 119, 91, 0.14);
    background: linear-gradient(135deg, rgba(232, 241, 236, 0.98), rgba(225, 236, 244, 0.98));
    box-shadow: 0 18px 44px rgba(19, 37, 30, 0.08);
}

.case-location-map__canvas {
    width: 100%;
    height: 320px;
    min-height: 320px;
}

.case-location-map__status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    text-align: center;
    color: #365042;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14));
    backdrop-filter: blur(2px);
    font-weight: 700;
    letter-spacing: 0.01em;
    z-index: 2;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.case-location-map.is-ready .case-location-map__status {
    opacity: 0;
    visibility: hidden;
}

.case-location-map__clear {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 520;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 119, 91, 0.16);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-primary-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(10, 16, 13, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.case-location-map__clear:hover,
.case-location-map__clear:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(10, 16, 13, 0.16);
    background: #fff;
}

.case-location-map__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(31, 119, 91, 0.08);
}

.case-location-map__meta strong {
    color: var(--color-primary-dark);
}

.case-location-map__meta span {
    color: var(--color-muted);
    line-height: 1.45;
}

.case-location-map__fallback {
    padding: 0.9rem 1rem 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(31, 119, 91, 0.16);
    background: linear-gradient(180deg, rgba(249, 251, 250, 0.96), rgba(241, 245, 242, 0.96));
}

.case-location-map__fallback > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.case-location-map__fallback > summary::-webkit-details-marker {
    display: none;
}

.case-location-map__fallback-grid {
    margin-top: 0.85rem;
}

.case-location-map__fallback-note {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    line-height: 1.45;
}

.case-location-map.is-fallback .case-location-map__canvas-wrap {
    display: none;
}

.case-location-map.is-fallback .case-location-map__status {
    color: #8a5139;
}

.case-location-map__canvas-wrap .leaflet-bottom.leaflet-right .leaflet-control-zoom {
    margin-right: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 16px 32px rgba(10, 16, 13, 0.16);
    border: 1px solid rgba(31, 119, 91, 0.14);
    border-radius: 16px;
    overflow: hidden;
}

.case-location-map__canvas-wrap .leaflet-control-zoom a {
    width: 2.7rem;
    height: 2.7rem;
    line-height: 2.7rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-primary-dark);
    border-color: rgba(31, 119, 91, 0.12);
}

.case-location-map__canvas-wrap .leaflet-control-zoom a:hover,
.case-location-map__canvas-wrap .leaflet-control-zoom a:focus-visible {
    background: #fff;
    color: var(--color-primary);
}

.case-location-map__canvas-wrap .leaflet-control-zoom a.leaflet-disabled {
    background: rgba(255, 255, 255, 0.76);
    color: rgba(33, 48, 40, 0.45);
}

.timeline-form__hint {
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.cta-button--outline {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-primary-dark);
}

.post-summary {
    display: grid;
    gap: 0.75rem;
}

.post-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed var(--color-border);
    font-size: 0.96rem;
}

.post-summary__row span {
    color: var(--color-muted);
}

.contact-form {
    display: grid;
    gap: 0.65rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    padding: 0.8rem 0.95rem;
    font: inherit;
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

.muted {
    color: var(--color-muted);
}

.chip-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip-status__pill {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #edf6f1;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.chip-status__pill--unknown {
    background: #f0f1ef;
    color: var(--color-muted);
}

.chip-status__pill--checked_has_chip {
    background: #fff2e1;
    color: #a85f0d;
}

.chip-status__pill--checked_no_chip {
    background: #edf7f2;
    color: #1f6a48;
}

.chip-note {
    display: grid;
    gap: 0.4rem;
}

.sos-summary {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff7f8 0%, #fff 100%);
    border: 1px solid rgba(180, 49, 68, 0.18);
}

.sos-form {
    display: grid;
    gap: 0.9rem;
}

.sos-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.sos-form__full {
    grid-column: 1 / -1;
}

.sos-form__actions {
    display: flex;
    justify-content: flex-start;
}

.sos-form label,
.sos-response-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.sos-form input,
.sos-form textarea,
.sos-form select,
.sos-response-form input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    padding: 0.75rem 0.9rem;
    font: inherit;
    background: #fff;
}

.sos-form textarea {
    min-height: 100px;
    resize: vertical;
}

.sos-form__notice {
    padding: 1rem;
    border-radius: 16px;
    background: #f8f9f7;
    border: 1px dashed var(--color-border);
}

.clinic-cards {
    display: grid;
    gap: 0.85rem;
}

.clinic-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, #fff 0%, #fafcf9 100%);
    display: grid;
    gap: 0.65rem;
}

.clinic-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.clinic-card__head h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}

.clinic-card__head p,
.clinic-card__meta,
.clinic-card__distance {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.clinic-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.clinic-badge {
    display: inline-flex;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: #edf6f1;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.clinic-badge--accent {
    background: #fff1e1;
    color: #9b5c0b;
}

.clinic-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.clinic-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.clinic-card__button--outline {
    background: #fff;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.clinic-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.6rem;
}

body.login-page,
body.register-page,
body.reset-page,
body.profile-page,
body.helper-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(196, 234, 222, 0.9), transparent 38%),
        radial-gradient(circle at right 20%, rgba(212, 163, 115, 0.18), transparent 30%),
        linear-gradient(180deg, #f8fbf9 0%, #f3f6f2 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
    gap: 2rem;
    width: min(calc(100% - (var(--layout-gutter) * 2)), 1320px);
    margin: 0 auto;
    padding: 2rem var(--layout-gutter);
}

.login-copy {
    position: relative;
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(140deg, rgba(47, 107, 83, 0.95) 0%, rgba(29, 119, 92, 0.9) 56%, rgba(29, 119, 92, 0.75) 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(16, 45, 33, 0.28);
}

.login-copy::before,
.login-copy::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-copy::before {
    width: 180px;
    height: 180px;
    right: -50px;
    top: -50px;
    background: rgba(255, 255, 255, 0.08);
}

.login-copy::after {
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: -110px;
    background: rgba(212, 163, 115, 0.12);
}

.login-brand {
    margin-bottom: 1.25rem;
}

.login-brand img {
    height: 60px;
}

.login-eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.85;
}

.login-copy h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
}

.login-intro {
    margin: 0;
    max-width: 52ch;
    font-size: 1.04rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.login-benefits {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.login-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.login-benefits li::before {
    content: '•';
    color: var(--color-secondary);
    font-size: 1.2rem;
    line-height: 1;
    flex: 0 0 auto;
    margin-top: 0.05rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(224, 223, 221, 0.7);
    border-radius: 30px;
    padding: 1.7rem;
    box-shadow: 0 24px 60px rgba(17, 31, 25, 0.12);
}

.login-card__header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.8rem;
}

.login-card__header p {
    margin: 0 0 1.2rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 0.9rem 1rem;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3.2rem;
}

.login-field input:focus {
    outline: none;
    border-color: rgba(47, 107, 83, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.12);
}

.login-field input:disabled,
.register-check input:disabled,
.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-actions {
    margin-top: 0.25rem;
}

.login-submit {
    width: 100%;
    min-height: 3.25rem;
    border-radius: 16px;
    box-shadow: 0 14px 24px rgba(47, 107, 83, 0.22);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: 0;
    background: transparent;
    color: var(--color-primary-dark);
    font: inherit;
    font-weight: 700;
    padding: 0.38rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary);
    outline: none;
}

.password-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.login-links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 600;
}

.login-links a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.login-links a:hover,
.login-links a:focus-visible {
    text-decoration: underline;
}

.login-links a.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.register-copy {
    background: linear-gradient(140deg, rgba(29, 119, 92, 0.95) 0%, rgba(47, 107, 83, 0.88) 48%, rgba(27, 58, 45, 0.96) 100%);
}

.register-card {
    display: grid;
    gap: 1rem;
}

.register-form {
    gap: 0.9rem;
}

.register-form .login-field {
    display: grid;
    gap: 0.35rem;
}

.register-check {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: rgba(247, 249, 247, 0.82);
    display: grid;
    gap: 0.35rem;
}

.register-check label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 600;
    margin: 0;
}

.register-check input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.register-note {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.register-success {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: #f0f9f4;
    border: 1px solid rgba(47, 107, 83, 0.18);
}

.register-success h3 {
    margin: 0;
    font-size: 1.15rem;
}

.register-success p {
    margin: 0;
    line-height: 1.6;
}

.profile-page {
    padding-top: 1.5rem;
}

.helper-page__wrap {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
}

.helper-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.helper-card {
    padding: 1.25rem;
}

.helper-form {
    display: grid;
    gap: 1rem;
}

.helper-grid {
    display: grid;
    gap: 0.9rem;
}

.helper-grid--checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.helper-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.helper-grid--full {
    grid-column: 1 / -1;
}

.helper-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.helper-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-weight: 600;
}

.helper-radio input {
    margin: 0;
}

.helper-radius-custom {
    width: 120px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.helper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-dashboard {
    display: grid;
    gap: 1.25rem;
}

.profile-dashboard,
.helper-page__wrap {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-content));
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.profile-hero__copy,
.profile-summary {
    border-radius: 28px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
}

.profile-hero__copy h1 {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.profile-hero__copy p {
    max-width: 68ch;
    color: var(--color-muted);
    line-height: 1.65;
    margin: 0.6rem 0 0;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.profile-summary h2 {
    margin: 0.65rem 0 0.2rem;
}

.profile-summary .profile-meta {
    margin-top: 1rem;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.45rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(224, 223, 221, 0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 96px;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.profile-tab:hover,
.profile-tab:focus-visible,
.profile-tab.is-active {
    background: rgba(47, 107, 83, 0.1);
    border-color: rgba(47, 107, 83, 0.2);
    transform: translateY(-1px);
}

.profile-sections {
    display: grid;
    gap: 1rem;
}

.profile-privacy-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-privacy-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    background: #fafcf9;
    border: 1px solid var(--color-border);
}

.profile-privacy-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.profile-gdpr-form {
    display: grid;
    gap: 0.65rem;
}

.profile-gdpr-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.profile-gdpr-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    padding: 0.8rem 0.95rem;
    font: inherit;
    background: #fff;
    resize: vertical;
}

.profile-gdpr-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-section {
    gap: 1rem;
    scroll-margin-top: 140px;
}

.profile-section__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.profile-section__head h2 {
    margin: 0.35rem 0 0.2rem;
}

.profile-section__head p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.profile-form {
    display: grid;
    gap: 1rem;
}

.profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.profile-field {
    display: grid;
    gap: 0.35rem;
}

.profile-field label,
.profile-check {
    font-weight: 600;
    color: #252525;
}

.profile-field input,
.profile-field textarea,
.profile-field select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    padding: 0.8rem 0.95rem;
    font: inherit;
    background: #fff;
}

.profile-field input[readonly] {
    background: #f7f8f6;
    color: var(--color-muted);
}

.profile-note {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.profile-form--checks {
    gap: 0.75rem;
}

.profile-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f8faf7;
    border: 1px solid var(--color-border);
}

.profile-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex: 0 0 auto;
}

.profile-notification-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.profile-notification-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 20px;
    background: #fafcf9;
    border: 1px solid var(--color-border);
}

.profile-notification-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.profile-notification-card__head h3 {
    margin: 0.3rem 0 0.2rem;
    font-size: 1.05rem;
}

.profile-notification-card__head p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.profile-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
}

.profile-toggle input {
    width: 1rem;
    height: 1rem;
    margin: 0.2rem 0 0;
    flex: 0 0 auto;
}

.profile-toggle__copy strong {
    display: block;
    margin-bottom: 0.2rem;
}

.profile-toggle__copy span {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-empty {
    display: grid;
    gap: 0.5rem;
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px dashed var(--color-border);
    background: #fafbf9;
}

.profile-post-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.profile-post-card {
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: minmax(128px, 168px) minmax(0, 1fr);
    align-items: stretch;
}

.profile-post-card__media {
    min-height: 100%;
    background: #ecefe9;
}

.profile-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-post-card__body {
    padding: 0.85rem 0.9rem;
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.profile-post-card__badges,
.profile-post-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-post-card__actions .cta-button {
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}

.profile-post-card__body h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.profile-post-card__excerpt {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-post-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.profile-inline-form {
    display: inline-flex;
}

.helper-summary {
    display: grid;
    gap: 0.85rem;
}

.helper-summary strong {
    font-size: 1.05rem;
}

.profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.profile-card {
    display: grid;
    gap: 0.75rem;
}

.profile-card h2 {
    margin: 0;
}

.profile-meta {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.profile-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed var(--color-border);
}

.profile-meta dt {
    font-weight: 600;
}

.profile-meta dd {
    margin: 0;
    color: var(--color-muted);
    text-align: right;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--color-muted);
    display: grid;
    gap: 0.55rem;
}

.verify-page .profile-card {
    max-width: 620px;
}

html,
body {
    overflow-x: clip;
}

body {
    min-width: 320px;
}

body > main {
    min-width: 0;
}

.page-shell,
.page-shell--wide,
.page-shell--content,
.page-shell--readable,
.section,
.posts-header,
.posts-filters,
.posts-demo,
.cards.posts-grid,
.post-detail,
.partner-detail,
.stories-layout,
.story-detail,
.help-layout,
.donate-layout,
.login-shell,
.profile-dashboard,
.helper-page__wrap,
.map-hero,
.map-layout,
.add-page {
    min-width: 0;
}

.site-header__inner,
.site-footer__inner,
.auth-nav {
    min-width: 0;
}

.site-footer__links a,
.site-footer__powered,
.site-footer__button,
.site-footer__social-link,
.posts-header__cta,
.posts-empty-state__actions .cta-button,
.posts-demo__actions .cta-button,
.story-card__link,
.partner-card__view-link,
.partner-card__links a,
.partner-detail__links a,
.help-card__link,
.profile-tab,
.admin-card a,
.admin-card button {
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .site-header__inner {
        gap: 0.65rem;
        min-height: 5rem;
    }

    .brand img {
        height: 40px;
    }

    .site-header__menu-button {
        padding-inline: 0.85rem;
    }

    .site-header__mobile-actions {
        padding: 0.85rem 0.75rem 1rem;
    }

    .site-header__mobile-actions .auth-nav {
        width: 100%;
        flex-direction: column;
    }

    .site-header__mobile-actions .auth-nav .auth-link {
        width: 100%;
        min-width: 0;
    }

    .auth-page-topbar {
        width: calc(100% - 1rem);
        padding-inline: 0.5rem;
    }

    .auth-page-topbar .auth-nav {
        flex-direction: column;
        width: 100%;
    }

    .auth-page-topbar .auth-link {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .site-footer__cta,
    .site-footer__grid,
    .site-footer__bar {
        border-radius: 22px;
    }

    .site-footer__cta-actions {
        width: 100%;
    }

    .site-footer__button {
        width: 100%;
        min-width: 0;
    }

    .site-footer__powered {
        width: 100%;
        justify-content: center;
    }

    .posts-header,
    .posts-filters,
    .posts-demo,
    .cards.posts-grid,
    .pagination,
    .post-detail,
    .partner-detail,
    .stories-layout,
    .story-detail,
    .help-layout,
    .donate-layout,
    .profile-dashboard,
    .helper-page__wrap {
        width: calc(100% - 1rem);
    }

    .posts-filters,
    .posts-demo__head,
    .posts-empty-state,
    .post-detail .detail-block,
    .partner-card,
    .partner-detail__summary,
    .stories-toolbar,
    .story-detail__summary,
    .help-card,
    .profile-hero__copy,
    .profile-summary,
    .profile-section,
    .login-card {
        border-radius: 20px;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .posts-header__cta,
    .posts-empty-state__actions .cta-button,
    .posts-demo__actions .cta-button,
    .post-card__actions .cta-button,
    .post-detail .cta-button,
    .partner-card__actions .cta-button,
    .story-card__actions .cta-button,
    .partner-detail__actions .cta-button,
    .stories-hero__actions .cta-button,
    .stories-toolbar__actions .cta-button,
    .story-detail__actions .cta-button,
    .help-hero__actions .cta-button,
    .help-card__actions .cta-button,
    .help-bottom .cta-button,
    .profile-actions .button,
    .profile-actions .cta-button,
    .helper-actions .button,
    .helper-actions .cta-button,
    .donate-hero__actions .cta-button,
    .donate-disabled__actions .cta-button,
    .donate-submit {
        width: 100%;
        justify-content: center;
    }

    .post-card__body,
    .story-card__body,
    .partner-card,
    .help-card,
    .profile-post-card__body {
        padding: 0.95rem;
    }

    .post-card__overlay,
    .story-card__overlay,
    .story-detail__media-overlay {
        inset: 0.75rem;
    }

    .story-detail__media {
        min-height: 340px;
    }

    .profile-tabs {
        gap: 0.35rem;
    }

    .profile-tab {
        width: 100%;
    }

    .profile-post-card__meta,
    .profile-meta div,
    .profile-notification-card__head,
    .help-section__head,
    .section__header--split,
    .posts-demo__head,
    .stories-demo__head,
    .partner-card__head,
    .partner-detail__hero,
    .story-detail__hero,
    .help-priority__step,
    .help-priority__checklist {
        gap: 0.75rem;
    }

    .partner-detail__hero,
    .stories-hero,
    .story-detail__hero,
    .help-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .login-copy {
        padding: 1.5rem;
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .helper-hero {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        position: static;
    }

    .profile-form__grid {
        grid-template-columns: 1fr;
    }

    .profile-notification-grid {
        grid-template-columns: 1fr;
    }

    .profile-post-card {
        grid-template-columns: 1fr;
    }

    .profile-post-card__media {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .helper-grid--checks,
    .helper-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 1rem;
        gap: 1rem;
    }

    .login-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .login-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .profile-hero__copy,
    .profile-summary,
    .profile-section {
        padding: 1rem;
        border-radius: 22px;
    }

    .profile-tabs {
        padding: 0.35rem;
    }

    .profile-tab {
        width: 100%;
    }

    .profile-post-card__meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .profile-post-card__body {
        padding: 0.9rem;
    }

    .profile-post-card__actions .cta-button {
        width: 100%;
        justify-content: center;
    }

    .helper-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .helper-radio {
        width: 100%;
        justify-content: flex-start;
    }

    .helper-radius-custom {
        width: 100%;
    }

    .case-location-map__canvas-wrap,
    .case-location-map__canvas {
        min-height: 280px;
        height: 280px;
    }

    .case-location-map__clear {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    body.home-page .hero {
        margin: 0.6rem auto 1.2rem;
        padding: 0.6rem;
        border-radius: 24px;
    }

    body.home-page .hero__inner {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        min-height: unset;
    }

    body.home-page .hero__copy {
        padding: 1rem;
        gap: 0.8rem;
        border-radius: 20px;
    }

    body.home-page .hero h1 {
        max-width: 100%;
        font-size: clamp(2.1rem, 9vw, 3rem);
        line-height: 1.02;
        letter-spacing: -0.03em;
    }

    body.home-page .hero__text {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    body.home-page .hero__actions {
        gap: 0.6rem;
        padding-top: 0.1rem;
    }

    body.home-page .hero__actions .cta-button {
        width: 100%;
        justify-content: center;
        min-height: 3rem;
        padding: 0.85rem 1rem;
        font-size: 0.94rem;
    }

    body.home-page .hero__signals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin-top: 0.15rem;
    }

    body.home-page .hero-signal {
        min-height: 92px;
        padding: 0.8rem 0.75rem;
        border-radius: 18px;
    }

    body.home-page .hero-signal__value {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    body.home-page .hero-signal__label {
        font-size: 0.72rem;
        line-height: 1.25;
        letter-spacing: 0.06em;
    }

    body.home-page .hero__stats {
        padding: 0.85rem;
        border-radius: 20px;
        gap: 0.75rem;
    }

    body.home-page .hero__micro-link {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    body.home-page .hero__stats-head {
        gap: 0.35rem;
    }

    body.home-page .hero__stats-head h2 {
        font-size: 1rem;
    }

    body.home-page .hero__stats-head p,
    body.home-page .hero__stats-note {
        display: none;
    }

    body.home-page .hero__stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    body.home-page .hero__stats-grid--pills {
        grid-template-columns: none;
        justify-content: flex-start;
    }

    body.home-page .hero-pill {
        min-height: 2.2rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.72rem;
    }

    body.home-page .hero-stat {
        min-height: 78px;
        padding: 0.65rem 0.7rem;
        border-radius: 16px;
    }

    body.home-page .hero-stat__value {
        font-size: clamp(1.25rem, 6vw, 1.7rem);
    }

    body.home-page .hero-stat__label {
        font-size: 0.7rem;
        line-height: 1.2;
        letter-spacing: 0.03em;
    }

    body.home-page .workflow {
        gap: 0.55rem;
    }

    body.home-page .workflow__step {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.75rem;
        border-radius: 16px;
    }

    body.home-page .workflow__index {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.8rem;
    }

    body.home-page .workflow__step h3 {
        font-size: 0.95rem;
    }

    body.home-page .workflow__step p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body.home-page .mission-stat,
    body.home-page .direction-card {
        padding: 0.85rem;
        border-radius: 18px;
    }

    body.home-page .mission-stat {
        gap: 0.75rem;
    }

    body.home-page .mission-stat__icon,
    body.home-page .direction-card__icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    body.home-page .mission-stat__value {
        font-size: 1.18rem;
    }

    body.home-page .direction-grid {
        gap: 0.8rem;
    }

    body.home-page .direction-card {
        gap: 0.75rem;
    }

    body.home-page .direction-card__content h3 {
        font-size: 1rem;
    }

    body.home-page .direction-card__content p {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    body.home-page .section {
        margin-bottom: 0.95rem;
        padding: 0.75rem;
        border-radius: 22px;
    }

    body.home-page .section__header {
        margin-bottom: 0.8rem;
    }

    body.home-page .section__title {
        font-size: clamp(1.3rem, 6.4vw, 1.75rem);
    }

    body.home-page .section__subtitle {
        margin-top: 0.35rem;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body.home-page .section__action {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 0.9rem;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    body.home-page .cards.cards--home,
    body.home-page .stories-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    body.home-page .stories-grid--single {
        grid-template-columns: 1fr;
    }

    body.home-page .stories-grid--single .story-card {
        max-width: none;
    }

    body.home-page .mission-stats {
        gap: 0.65rem;
    }

    body.home-page .mission-stat {
        align-items: flex-start;
    }

    body.home-page .mission-stat__label {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    body.home-page .direction-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.home-page .direction-card__action,
    body.home-page .adoption-empty-state__actions .cta-button,
    body.home-page .adoption-cta-row .cta-button {
        width: 100%;
        justify-content: center;
    }

    body.home-page .card.card--case,
    body.home-page .story-card {
        border-radius: 18px;
    }

    body.home-page .card__media,
    body.home-page .story-card__image {
        aspect-ratio: 16 / 9;
    }

    body.home-page .card__overlay {
        padding: 0.55rem;
        gap: 0.4rem;
    }

    body.home-page .badge--status--large {
        padding: 0.34rem 0.6rem;
        min-height: 1.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    body.home-page .card__date {
        padding: 0.26rem 0.5rem;
        font-size: 0.68rem;
    }

    body.home-page .card__body,
    body.home-page .story-card__body {
        padding: 0.75rem;
        gap: 0.35rem;
    }

    body.home-page .card__body h3,
    body.home-page .story-card__body h3 {
        font-size: 0.96rem;
        line-height: 1.25;
    }

    body.home-page .card__meta,
    body.home-page .story-card__body p {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    body.home-page .card--case .cta-button--secondary {
        width: 100%;
        justify-content: center;
        min-height: 2.5rem;
        padding: 0.58rem 0.8rem;
        font-size: 0.82rem;
    }

    body.home-page .story-card__link {
        font-size: 0.84rem;
    }

    body.home-page .section--donate {
        padding: 0.8rem;
        border-radius: 18px;
    }

    body.home-page .donate__body {
        gap: 0.6rem;
    }

    body.home-page .donate__body .section__subtitle {
        margin-top: 0.3rem;
    }

    body.home-page .section--donate .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body.home-page .hero {
        margin-top: 0;
        padding: 0.35rem;
        border-radius: 18px;
    }

    body.home-page .hero__copy {
        padding: 0.7rem;
    }

    body.home-page .hero__signals {
        grid-template-columns: 1fr;
    }

    body.home-page .hero-signal {
        min-height: 72px;
    }

    body.home-page .hero__stats-head h2 {
        font-size: 0.98rem;
    }

    body.home-page .section {
        padding: 0.65rem;
        border-radius: 18px;
    }

    body.home-page .section__eyebrow {
        font-size: 0.72rem;
        padding: 0.3rem 0.65rem;
    }

    body.home-page .adoption-carousel {
        gap: 0.75rem;
        margin-bottom: 0.9rem;
        padding-bottom: 0.25rem;
    }

    body.home-page .hero-pill {
        width: 100%;
    }

    body.home-page .card.card--case,
    body.home-page .story-card {
        border-radius: 18px;
    }

    body.home-page .card__overlay {
        padding: 0.6rem;
    }
}

@media (max-width: 360px) {
    body.home-page .hero__copy {
        padding: 0.65rem;
    }

    body.home-page .hero h1 {
        max-width: none;
        font-size: clamp(1.9rem, 11vw, 2.35rem);
        line-height: 1.03;
        letter-spacing: -0.03em;
    }

    body.home-page .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.home-page .hero__actions .cta-button {
        width: 100%;
        min-height: 3rem;
        padding-inline: 0.9rem;
    }

    body.home-page .hero__signals,
    body.home-page .hero__stats-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .hero-signal,
    body.home-page .hero-stat {
        min-height: unset;
        padding: 0.7rem;
    }

    body.home-page .mission-stats {
        grid-template-columns: 1fr;
    }

    body.home-page .adoption-stats {
        grid-template-columns: 1fr;
    }

    body.home-page .hero-signal__value,
    body.home-page .hero-stat__value {
        font-size: clamp(1.2rem, 8vw, 1.55rem);
    }

    body.home-page .hero-signal__label,
    body.home-page .hero-stat__label {
        font-size: 0.68rem;
    }
}

.clinic-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.detail-card--sticky {
    position: sticky;
    top: 98px;
}

@media (max-width: 640px) {
    .post-detail {
        padding-inline: 0.75rem;
    }

    .post-detail__hero {
        border-radius: 24px;
    }

    .post-summary__row,
    .comment__meta,
    .clinic-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment__meta-right {
        justify-items: start;
        text-align: left;
    }

    .comment__meta-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form__grid {
        grid-template-columns: 1fr;
    }

    .sos-form__grid {
        grid-template-columns: 1fr;
    }

    .clinic-card__badges {
        justify-content: flex-start;
    }
}

.site-footer {
    position: relative;
    margin-top: auto;
    color: #e7f0eb;
    background:
        radial-gradient(circle at top left, rgba(84, 153, 125, 0.2), transparent 32%),
        radial-gradient(circle at 92% 10%, rgba(240, 138, 75, 0.16), transparent 24%),
        linear-gradient(180deg, #0e1512 0%, #09110f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.site-footer::before,
.site-footer::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.45;
    pointer-events: none;
}

.site-footer::before {
    inset: auto auto 8% -6%;
    width: 18rem;
    height: 18rem;
    background: rgba(47, 107, 83, 0.2);
}

.site-footer::after {
    inset: 10% -4% auto auto;
    width: 13rem;
    height: 13rem;
    background: rgba(240, 138, 75, 0.16);
}

.site-footer__inner {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
    justify-content: stretch;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: clamp(1.35rem, 2.4vw, 2.4rem) clamp(1rem, 2vw, 2rem) 1.25rem;
    position: relative;
    z-index: 1;
}

.site-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.35rem, 2.3vw, 2rem);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(13, 22, 18, 0.98), rgba(16, 30, 23, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.site-footer__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer__cta-copy {
    max-width: 52rem;
}

.site-footer__cta-copy h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    line-height: 1.1;
    color: #fff;
}

.site-footer__cta-copy p {
    margin: 0.75rem 0 0;
    max-width: 58ch;
    line-height: 1.7;
    color: rgba(232, 241, 236, 0.82);
}

.site-footer__cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
    flex: 0 0 auto;
}

.site-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 15rem;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__button:hover,
.site-footer__button:focus-visible {
    transform: translateY(-2px);
}

.site-footer__button--primary {
    color: #08110e;
    background: linear-gradient(135deg, #fff4df 0%, #f9c88e 100%);
    box-shadow: 0 16px 28px rgba(240, 138, 75, 0.22);
}

.site-footer__button--primary:hover,
.site-footer__button--primary:focus-visible {
    box-shadow: 0 20px 36px rgba(240, 138, 75, 0.32);
}

.site-footer__button--ghost {
    color: #ecf5ef;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.site-footer__button--ghost:hover,
.site-footer__button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 1rem clamp(1rem, 2vw, 1.8rem);
    padding: clamp(1rem, 1.8vw, 1.4rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__col {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.site-footer__col-title {
    margin: 0;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer__text,
.site-footer__muted {
    margin: 0;
    color: rgba(232, 241, 236, 0.82);
    line-height: 1.7;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.site-footer__links a {
    color: #f3faf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: #fff;
    transform: translateX(4px);
    opacity: 1;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.92rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4fbf7;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer__social-badge {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.25rem 0;
    color: rgba(231, 240, 235, 0.72);
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.92rem;
}

.site-footer__powered {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3faf6;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer__powered:hover,
.site-footer__powered:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.site-footer__powered-logo {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    display: block;
}

.site-footer__powered-copy {
    display: grid;
    line-height: 1.1;
}

.site-footer__powered-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(231, 240, 235, 0.62);
}

.site-footer__powered-copy strong {
    font-size: 0.95rem;
}

.legal-layout,
.info-page__layout,
.donate-layout {
    margin: 0 auto;
    padding: 1rem 0 3rem;
    display: grid;
    gap: 1.2rem;
}

.legal-layout {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-readable));
}

.info-page__layout {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
}

.donate-layout {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
}

.legal-card,
.info-panel,
.info-card,
.donate-shell .card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.legal-card {
    padding: clamp(1.2rem, 2vw, 2rem);
    display: grid;
    gap: 1rem;
    line-height: 1.75;
}

.legal-card h2,
.info-card h2,
.info-panel h2,
.donate-form h2,
.donate-info h2,
.donate-state h2 {
    margin: 0;
    font-size: 1.35rem;
}

.legal-card p,
.info-card p,
.info-panel p,
.donate-info p,
.donate-state p {
    margin: 0;
    color: var(--color-muted);
}

.legal-card ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--color-muted);
    line-height: 1.75;
}

.legal-card h3 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.1rem;
}

.legal-card p + h2,
.legal-card ul + h2,
.legal-card p + h3,
.legal-card ul + h3 {
    margin-top: 1rem;
}

.legal-card a {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.legal-card__updated {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: var(--color-muted);
}

.info-hero,
.donate-hero,
.donate-state,
.donate-disabled {
    padding: clamp(1.2rem, 2.2vw, 2rem);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.info-hero,
.donate-hero {
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.15), transparent 30%),
        radial-gradient(circle at 5% 12%, rgba(31, 119, 91, 0.15), transparent 30%),
        rgba(255, 255, 255, 0.78);
}

.info-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    padding: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.info-card__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.info-card a {
    width: fit-content;
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.info-card a:hover,
.info-card a:focus-visible {
    text-decoration: underline;
}

.info-panel {
    padding: clamp(1.2rem, 2vw, 1.8rem);
}

.info-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.help-page {
    background:
        radial-gradient(circle at top left, rgba(31, 119, 91, 0.08), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(240, 138, 75, 0.1), transparent 24%),
        linear-gradient(180deg, #f7fbf8 0%, #f2f7f3 42%, #eef3ef 100%);
}

.help-layout {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 1rem 0 3rem;
    display: grid;
    gap: 1rem;
}

.help-hero,
.help-bottom,
.help-card,
.help-faq__item {
    border-radius: 28px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 2rem);
}

.help-hero__copy {
    display: grid;
    gap: 0.9rem;
}

.help-hero__text {
    max-width: 60ch;
    line-height: 1.75;
}

.help-hero__lead {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(31, 119, 91, 0.08);
    color: #244d3c;
    line-height: 1.7;
    border: 1px solid rgba(31, 119, 91, 0.12);
}

.help-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.help-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.help-quick-action {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 18px rgba(18, 49, 38, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-quick-action:hover,
.help-quick-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(31, 119, 91, 0.24);
    box-shadow: 0 14px 26px rgba(18, 49, 38, 0.08);
}

.help-quick-action__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1rem;
}

.help-quick-action__copy {
    display: grid;
    gap: 0.15rem;
    line-height: 1.45;
}

.help-quick-action__copy strong {
    font-size: 0.98rem;
}

.help-quick-action__copy span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.help-hero__note {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.help-hero__note a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.help-hero__note a:hover,
.help-hero__note a:focus-visible {
    text-decoration: underline;
}

.help-hero__disclaimer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    padding: 0.75rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(31, 119, 91, 0.15);
    background: rgba(255, 255, 255, 0.7);
    color: #244d3c;
}

.help-hero__disclaimer span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.help-hero__disclaimer strong {
    font-size: 0.96rem;
}

.help-hero__panel {
    display: grid;
    gap: 0.85rem;
}

.help-hero__panel-card {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.96));
    color: #fff;
    display: grid;
    gap: 0.45rem;
}

.help-hero__panel-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.help-hero__panel-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.help-hero__panel-label {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.75;
    font-weight: 700;
}

.help-hero__panel-list {
    display: grid;
    gap: 0.65rem;
}

.help-mini-step {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--color-border);
    display: grid;
    gap: 0.2rem;
}

.help-mini-step span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.help-mini-step strong {
    font-size: 1rem;
}

.help-mini-step p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.help-section {
    display: grid;
    gap: 1rem;
}

.help-section__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.help-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.help-card {
    padding: 1.15rem;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    inset: auto -14% -30% auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 119, 91, 0.08) 0%, rgba(31, 119, 91, 0) 70%);
    pointer-events: none;
}

.help-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.help-card__body {
    display: grid;
    gap: 0.45rem;
}

.help-card__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.help-card__body h3 {
    margin: 0;
    font-size: 1.15rem;
}

.help-card__body p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.help-card__note {
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    background: rgba(31, 119, 91, 0.08);
    color: #244d3c;
    font-size: 0.92rem;
}

.help-card__list {
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.25rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.help-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.help-card__link {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.help-card__link:hover,
.help-card__link:focus-visible {
    text-decoration: underline;
}

.help-card--volunteer .help-card__icon {
    background: rgba(240, 138, 75, 0.14);
    color: #8a4a12;
}

.help-card--found_animal .help-card__icon {
    background: rgba(55, 124, 184, 0.12);
    color: #24528d;
}

.help-card--partners .help-card__icon {
    background: rgba(54, 132, 103, 0.12);
    color: #1e6d4f;
}

.help-card--donate .help-card__icon {
    background: rgba(240, 138, 75, 0.16);
    color: #8a4a12;
}

.help-section--priority {
    display: grid;
    gap: 1rem;
}

.help-priority {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 1rem;
}

.help-priority__steps {
    display: grid;
    gap: 0.75rem;
}

.help-priority__step,
.help-priority__checklist {
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.help-priority__step {
    padding: 1rem 1.05rem;
    display: grid;
    gap: 0.35rem;
}

.help-priority__step h3,
.help-priority__checklist h3 {
    margin: 0;
    font-size: 1.05rem;
}

.help-priority__step p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.help-priority__checklist {
    padding: 1.05rem;
    display: grid;
    gap: 0.85rem;
}

.help-priority__checklist-head {
    display: grid;
    gap: 0.25rem;
}

.help-checklist,
.help-no-go {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.5rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.help-priority__note {
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: rgba(240, 138, 75, 0.12);
    color: #7d4215;
    display: grid;
    gap: 0.45rem;
}

.help-priority__note strong {
    font-size: 0.95rem;
}

.help-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.help-route-card {
    padding: 1.1rem;
    border-radius: 26px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.7rem;
}

.help-route-card--urgent {
    background: linear-gradient(180deg, rgba(255, 248, 244, 0.95), rgba(255, 255, 255, 0.92));
    border-color: rgba(240, 138, 75, 0.18);
}

.help-route-card__label {
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.help-route-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.help-route-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.help-faq {
    display: grid;
    gap: 0.75rem;
}

.help-faq__item {
    overflow: hidden;
}

.help-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.help-faq__item summary::-webkit-details-marker {
    display: none;
}

.help-faq__item summary::after {
    content: '+';
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.help-faq__item[open] summary::after {
    content: '−';
}

.help-faq__body {
    padding: 0 1.05rem 1rem;
    color: var(--color-muted);
    line-height: 1.75;
}

.help-faq__body p {
    margin: 0;
}

.help-bottom {
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.94), rgba(19, 80, 61, 0.98));
    color: #fff;
}

.help-bottom .section__title,
.help-bottom .section__subtitle,
.help-bottom .section__eyebrow {
    color: inherit;
}

.help-bottom .section__subtitle {
    opacity: 0.86;
}

.help-bottom__copy {
    display: grid;
    gap: 0.45rem;
    max-width: 56rem;
}

.help-bottom__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.help-bottom .cta-button--secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 1100px) {
    .help-hero,
    .help-priority,
    .help-route-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .help-quick-actions {
        grid-template-columns: 1fr;
    }

    .help-hero__disclaimer {
        align-items: flex-start;
    }

    .help-bottom {
        align-items: stretch;
    }

    .help-bottom__actions {
        width: 100%;
    }

    .help-bottom .cta-button {
        width: 100%;
        justify-content: center;
    }
}

body.stories-page,
body.story-page {
    background:
        radial-gradient(circle at top left, rgba(31, 119, 91, 0.08), transparent 26%),
        radial-gradient(circle at 86% 8%, rgba(240, 138, 75, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbf8 0%, #eef3ef 45%, #eaf0ec 100%);
}

.stories-layout,
.story-detail {
    width: min(calc(100% - (var(--layout-gutter) * 2)), 1600px);
    margin: 0 auto;
    padding: 1rem 0 3rem;
    display: grid;
    gap: 1rem;
}

.stories-layout {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
}

.stories-hero,
.stories-toolbar,
.stories-disabled,
.stories-empty,
.stories-demo,
.story-detail__summary,
.story-section,
.story-bottom-cta {
    border-radius: 32px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.stories-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 2rem);
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.12), transparent 26%),
        radial-gradient(circle at 8% 12%, rgba(31, 119, 91, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
}

.stories-hero__copy {
    display: grid;
    gap: 0.9rem;
}

.stories-hero__text {
    max-width: 62ch;
    line-height: 1.75;
}

.stories-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stories-hero__promise {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(31, 119, 91, 0.08);
    border: 1px solid rgba(31, 119, 91, 0.12);
    display: grid;
    gap: 0.25rem;
}

.stories-hero__promise strong {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary-dark);
}

.stories-hero__promise span {
    color: #244d3c;
    line-height: 1.7;
}

.stories-hero__panel {
    display: grid;
    gap: 0.85rem;
}

.stories-hero__panel-card {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.98));
    color: #fff;
    display: grid;
    gap: 0.3rem;
    box-shadow: 0 16px 28px rgba(19, 80, 61, 0.15);
}

.stories-hero__panel-card--accent {
    background: linear-gradient(135deg, rgba(240, 138, 75, 0.96), rgba(173, 97, 45, 0.98));
}

.stories-hero__panel-card--demo {
    background: linear-gradient(135deg, rgba(52, 83, 147, 0.95), rgba(32, 64, 120, 0.96));
}

.stories-hero__panel-card strong {
    font-size: 1.75rem;
    line-height: 1;
}

.stories-hero__panel-card span {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.stories-hero__panel-label {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.stories-toolbar {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.09), transparent 24%),
        radial-gradient(circle at left top, rgba(240, 138, 75, 0.07), transparent 18%),
        rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(47, 107, 83, 0.12);
    position: relative;
    overflow: hidden;
}

.stories-toolbar::before {
    content: '';
    position: absolute;
    inset: auto -16% -34% auto;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 119, 91, 0.11), transparent 68%);
    pointer-events: none;
}

.stories-toolbar__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stories-toolbar__copy {
    display: grid;
    gap: 0.35rem;
    max-width: 48rem;
}

.stories-toolbar__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.stories-toolbar__copy h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--color-primary-dark);
}

.stories-toolbar__copy p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.stories-toolbar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.stories-toolbar__legend-item {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.stories-toolbar__form {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(220px, 0.65fr) auto;
    gap: 0.9rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.stories-field {
    display: grid;
    gap: 0.45rem;
}

.stories-field span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.stories-field select {
    width: 100%;
}

.stories-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.1rem;
    padding: 0 1rem;
    border-radius: 20px;
    border: 1px solid rgba(47, 107, 83, 0.16);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stories-search:focus-within {
    border-color: rgba(47, 107, 83, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.1);
}

.stories-search__icon {
    color: var(--color-primary);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.stories-search input {
    border: 0;
    box-shadow: none;
    padding-inline: 0;
    background: transparent;
    min-height: 3rem;
}

.stories-search input:focus {
    box-shadow: none;
}

.stories-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.stories-toolbar__clear {
    min-height: 3rem;
}

.stories-grid--archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    gap: 0.85rem;
    justify-content: start;
}

.stories-grid--demo {
    margin-top: 0.25rem;
}

.story-card--archive {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    display: grid;
    width: 100%;
}

.story-card--archive.is-featured {
    border-color: rgba(31, 119, 91, 0.18);
    box-shadow: 0 22px 44px rgba(18, 49, 38, 0.12);
}

.story-card__media {
    position: relative;
    display: block;
    overflow: hidden;
}

.story-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.story-card__media:hover .story-card__image,
.story-card__media:focus-visible .story-card__image {
    transform: scale(1.03);
}

.story-card__overlay,
.story-detail__media-overlay {
    position: absolute;
    inset: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 18, 15, 0.04) 0%, rgba(11, 18, 15, 0.46) 100%);
}

body.stories-page .badge--story,
body.story-page .badge--story {
    background: rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
}

body.stories-page .badge--featured,
body.story-page .badge--featured {
    background: rgba(240, 138, 75, 0.16);
    color: #8a4a12;
}

.story-card__body {
    display: grid;
    gap: 0.6rem;
    padding: 0.9rem 0.9rem 1rem;
}

.story-card__body h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.story-card__body p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.story-card--demo {
    border-color: rgba(31, 119, 91, 0.14);
}

.story-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.story-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.story-card__days {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.story-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stories-disabled,
.stories-empty {
    padding: clamp(1.2rem, 2vw, 2rem);
    display: grid;
    gap: 0.85rem;
}

.stories-demo {
    padding: clamp(1.2rem, 2vw, 2rem);
    display: grid;
    gap: 1rem;
}

.stories-demo__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.stories-demo__head .section__subtitle {
    max-width: 68ch;
}

.stories-demo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stories-disabled__actions,
.stories-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stories-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.stories-pagination a,
.stories-pagination span {
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
}

.stories-pagination span.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.story-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 1rem;
    align-items: stretch;
}

.story-detail__media {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 520px;
    background: #dbe6df;
    box-shadow: var(--shadow-soft);
}

.story-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-detail__summary {
    padding: clamp(1.2rem, 2vw, 2rem);
    display: grid;
    gap: 1rem;
    align-content: start;
}

.story-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.story-detail__fact {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(31, 119, 91, 0.06);
    border: 1px solid rgba(31, 119, 91, 0.08);
    display: grid;
    gap: 0.25rem;
}

.story-detail__fact span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.story-detail__fact strong {
    font-size: 1rem;
    line-height: 1.35;
}

.story-detail__fact--status-active {
    background: rgba(26, 93, 62, 0.95);
    border-color: rgba(26, 93, 62, 0.95);
}

.story-detail__fact--status-active span,
.story-detail__fact--status-active strong {
    color: #ffffff;
}

.story-detail__fact--status-resolved {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.7) 0 0.4rem, transparent 0.46rem),
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.7) 0 0.4rem, transparent 0.46rem),
        linear-gradient(135deg, #fff8cf 0%, #fff0a8 48%, #ffe17f 100%);
    border-color: rgba(196, 145, 0, 0.3);
    box-shadow: 0 14px 30px rgba(183, 122, 0, 0.15);
}

.story-detail__fact--status-resolved::before,
.story-detail__fact--status-resolved::after {
    content: '';
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 20%, rgba(255, 255, 255, 0.95) 21% 22%, rgba(255, 255, 255, 0) 23% 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 90, 0.95) 0 8%, rgba(255, 220, 90, 0) 9% 100%);
    filter: drop-shadow(0 0 8px rgba(255, 199, 0, 0.45));
    opacity: 0.85;
    animation: case-firework-burst 2.8s ease-out infinite;
    z-index: 0;
}

.story-detail__fact--status-resolved::before {
    top: -1.6rem;
    right: -0.7rem;
}

.story-detail__fact--status-resolved::after {
    bottom: -1.7rem;
    left: -0.6rem;
    animation-delay: 1.1s;
}

.story-detail__fact--status-resolved span,
.story-detail__fact--status-resolved strong {
    position: relative;
    z-index: 1;
    color: #5b4300;
}

.story-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.story-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.story-detail__meta a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.story-detail__meta a:hover,
.story-detail__meta a:focus-visible {
    text-decoration: underline;
}

.story-section {
    padding: clamp(1.2rem, 2vw, 1.8rem);
    display: grid;
    gap: 1rem;
}

.story-section__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.story-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #dbe6df;
    aspect-ratio: 4 / 3;
}

.story-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.story-before-after__item {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #dbe6df;
    position: relative;
    aspect-ratio: 4 / 3;
}

.story-before-after__item span {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 17, 14, 0.72);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-before-after__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-timeline {
    display: grid;
    gap: 0.85rem;
}

.story-timeline__item {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(31, 119, 91, 0.06);
    border: 1px solid rgba(31, 119, 91, 0.08);
    display: grid;
    gap: 0.45rem;
}

.story-timeline__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
}

.story-timeline__type {
    font-weight: 800;
    color: var(--color-primary-dark);
}

.story-timeline__date {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.story-timeline__item p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.75;
}

.story-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-muted);
    max-width: 74ch;
}

.story-content p {
    margin: 0;
}

.story-thanks {
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(240, 138, 75, 0.08);
    border: 1px solid rgba(240, 138, 75, 0.12);
    color: var(--color-muted);
    line-height: 1.75;
}

.story-bottom-cta {
    padding: clamp(1.2rem, 2vw, 1.8rem);
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.94), rgba(19, 80, 61, 0.98));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.story-bottom-cta .section__title,
.story-bottom-cta .section__subtitle,
.story-bottom-cta .section__eyebrow {
    color: inherit;
}

.story-bottom-cta .section__subtitle {
    opacity: 0.88;
}

.story-bottom-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.partners-layout {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-wide));
    margin: 0 auto;
    padding: 1rem 0 3rem;
    display: grid;
    gap: 1rem;
}

.partners-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 2rem);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.14), transparent 30%),
        radial-gradient(circle at 10% 10%, rgba(31, 119, 91, 0.16), transparent 28%),
        rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-soft);
}

.partners-hero__lede {
    margin: -0.35rem 0 0;
    max-width: 72ch;
    color: #405048;
    font-size: 1.02rem;
    line-height: 1.65;
}

.partners-hero__copy {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.partners-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.partners-hero__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.partners-explainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.partners-explainer__card {
    padding: 1.15rem 1.2rem;
    border-radius: 28px;
    border: 1px solid rgba(47, 107, 83, 0.12);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.08), transparent 24%),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.6rem;
}

.partners-explainer__card h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-primary-dark);
}

.partners-explainer__card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.partners-explainer__eyebrow {
    margin: 0;
    color: var(--color-primary);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

.partners-stat {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 0.2rem;
}

.partners-stat--highlight {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.95), rgba(19, 80, 61, 0.96));
    color: #fff;
    border-color: rgba(31, 119, 91, 0.24);
}

.partners-stat__value {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.partners-stat__label {
    font-size: 0.92rem;
    color: inherit;
    opacity: 0.8;
}

.partners-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 1rem;
    align-items: start;
}

.partners-toolbar--single {
    grid-template-columns: 1fr;
}

.partners-filters-panel,
.partners-map,
.partners-summary,
.partners-empty,
.partner-card {
    border-radius: 28px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.partners-filters-panel {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 247, 0.9)),
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.14), transparent 22%),
        radial-gradient(circle at left top, rgba(240, 138, 75, 0.10), transparent 18%);
    border: 1px solid rgba(47, 107, 83, 0.14);
    border-left: 6px solid rgba(31, 119, 91, 0.74);
    position: relative;
    overflow: hidden;
}

.partners-filters-panel::before {
    content: '';
    position: absolute;
    inset: auto -12% -32% auto;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 119, 91, 0.14), transparent 68%);
    pointer-events: none;
}

.partners-filters-panel .partners-filters__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.partners-filters-panel .partners-filters__copy {
    display: grid;
    gap: 0.3rem;
    max-width: 48rem;
}

.partners-filters-panel .partners-filters__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.partners-filters-panel .partners-filters__copy h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--color-primary-dark);
}

.partners-filters-panel .partners-filters__copy p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.partners-filters-panel .partners-filters__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.partners-filters-panel .partners-filters__legend-item {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.partners-filters-panel input,
.partners-filters-panel select {
    margin-bottom: 0;
}

.partners-filters-panel .partners-filters__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.partners-field {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 247, 0.98));
    border: 1px solid rgba(47, 107, 83, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 24px rgba(17, 24, 20, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.partners-field:focus-within {
    border-color: rgba(47, 107, 83, 0.24);
    box-shadow: 0 18px 34px rgba(17, 24, 20, 0.10);
    transform: translateY(-1px);
}

.partners-field--search {
    grid-column: 1 / -1;
    padding: 1rem 1rem 1.05rem;
}

.partners-field--control {
    grid-column: span 4;
}

.partners-filters-panel .partners-filters__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: end;
    justify-content: flex-end;
}

.partners-field label {
    color: var(--color-primary-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.partners-field__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.partners-field__hint {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.partners-field input,
.partners-field select {
    width: 100%;
    margin-bottom: 0;
    border-radius: 18px;
    border: 1px solid rgba(47, 107, 83, 0.14);
    background: #fff;
    color: var(--color-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.partners-field select,
.partners-field input {
    font-weight: 700;
}

.partners-field input:focus,
.partners-field select:focus {
    outline: none;
    border-color: rgba(47, 107, 83, 0.35);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.10);
    transform: translateY(-1px);
}

.partners-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.1rem;
    padding: 0 1rem 0 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 107, 83, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.partners-search:focus-within {
    border-color: rgba(47, 107, 83, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.1);
}

.partners-search__icon {
    color: var(--color-primary);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.partners-search input {
    border: 0;
    box-shadow: none;
    padding-inline: 0;
    background: transparent;
    min-height: 3rem;
}

.partners-search input:focus {
    box-shadow: none;
}

.partners-field--toggle {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 245, 0.96));
    border: 1px solid rgba(47, 107, 83, 0.12);
    min-height: 100%;
    grid-column: span 4;
    align-content: center;
}

.partners-field--type {
    background:
        linear-gradient(180deg, rgba(31, 119, 91, 0.08), rgba(248, 251, 248, 0.98)),
        rgba(255, 255, 255, 0.92);
    border-color: rgba(31, 119, 91, 0.14);
}

.partners-field--city {
    background:
        linear-gradient(180deg, rgba(240, 138, 75, 0.08), rgba(248, 251, 248, 0.98)),
        rgba(255, 255, 255, 0.92);
    border-color: rgba(240, 138, 75, 0.16);
}

.partners-field--control select {
    min-height: 3rem;
    padding: 0.78rem 2.45rem 0.78rem 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-primary-dark) 50%),
        linear-gradient(135deg, var(--color-primary-dark) 50%, transparent 50%);
    background-position:
        calc(100% - 1.05rem) calc(50% - 2px),
        calc(100% - 0.8rem) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.partners-field--type select {
    color: var(--color-primary-dark);
}

.partners-field--city input {
    color: var(--color-ink);
}

.partners-field--control input {
    min-height: 3rem;
    padding: 0.78rem 0.95rem;
}

.partners-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.partners-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.partners-toggle__ui {
    position: relative;
    width: 2.55rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(47, 107, 83, 0.18);
    border: 1px solid rgba(47, 107, 83, 0.18);
    transition: background 0.18s ease, border-color 0.18s ease;
    flex: 0 0 auto;
}

.partners-toggle__ui::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.15rem;
    width: 1.08rem;
    height: 1.08rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 14px rgba(17, 24, 20, 0.18);
    transform: translateY(-50%);
    transition: transform 0.18s ease;
}

.partners-toggle input:checked + .partners-toggle__ui {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.partners-toggle input:checked + .partners-toggle__ui::after {
    transform: translate(1.1rem, -50%);
}

.partners-toggle__copy {
    line-height: 1.25;
    font-size: 0.95rem;
}

.partners-map {
    padding: 1.1rem;
    display: grid;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.partners-map::before {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 119, 91, 0.16) 0%, rgba(31, 119, 91, 0) 70%);
    pointer-events: none;
}

.partners-map__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.partners-map h2 {
    margin: 0;
    font-size: 1.25rem;
}

.partners-map p {
    margin: 0;
    color: var(--color-muted);
}

.partners-map__notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.partners-map-panel {
    padding: 1.1rem;
    display: grid;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--color-border);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(240, 138, 75, 0.08), transparent 22%),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.partners-map-panel__head {
    display: grid;
    gap: 0.3rem;
}

.partners-map-panel__head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-primary-dark);
}

.partners-map-panel__head p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.partners-map-panel__canvas {
    position: relative;
    min-height: 440px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(47, 107, 83, 0.12);
    background:
        linear-gradient(180deg, rgba(242, 247, 243, 0.88), rgba(255, 255, 255, 0.78));
}

.partners-map-panel__canvas--error {
    display: grid;
    place-items: center;
    color: var(--color-muted);
}

.partners-map-panel__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.partners-map-panel__empty {
    min-height: 220px;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px dashed rgba(47, 107, 83, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-muted);
    display: grid;
    gap: 0.5rem;
    align-content: center;
}

.partners-chip,
.partner-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.partners-chip--clinic {
    background: rgba(31, 119, 91, 0.12);
}

.partners-chip--shelter {
    background: rgba(240, 138, 75, 0.14);
}

.partners-chip--ngo {
    background: rgba(59, 102, 177, 0.14);
}

.partners-summary {
    padding: 0.85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.partners-summary__label {
    color: var(--color-muted);
    font-weight: 700;
}

.partners-summary__value {
    color: var(--color-ink);
    font-weight: 600;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.partners-section {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.partners-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.2rem 0.2rem 0;
}

.partners-section__head h2 {
    margin: 0.25rem 0 0.25rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.partners-section__head p {
    margin: 0;
    color: var(--color-muted);
    max-width: 68ch;
    line-height: 1.6;
}

.partners-grid--adoption {
    margin-top: 0.15rem;
}

.partner-card--adoption {
    border-color: rgba(31, 119, 91, 0.18);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.9);
}

.partner-card {
    padding: 1.1rem;
    display: grid;
    gap: 0.95rem;
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.06), transparent 28%),
        rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(47, 107, 83, 0.12);
}

.partner-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.partner-card__head h2 {
    margin: 0.2rem 0 0.15rem;
    font-size: 1.15rem;
}

.partner-card__subtitle,
.partner-card__description,
.partner-card__meta,
.partner-detail__intro,
.partner-detail__empty {
    margin: 0;
    color: var(--color-muted);
}

.partner-card__badges,
.partner-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.partner-badge--type {
    background: rgba(31, 119, 91, 0.1);
    color: var(--color-primary-dark);
}

.partner-badge--clinic {
    background: rgba(31, 119, 91, 0.12);
}

.partner-badge--shelter {
    background: rgba(240, 138, 75, 0.14);
    color: #8a4a12;
}

.partner-badge--ngo {
    background: rgba(59, 102, 177, 0.14);
    color: #254f9c;
}

.partner-badge--verified {
    background: rgba(31, 119, 91, 0.16);
    color: var(--color-primary-dark);
}

.partner-badge--accent {
    background: rgba(240, 138, 75, 0.18);
    color: #8a4a12;
}

.partner-badge--open {
    background: rgba(52, 145, 102, 0.14);
    color: #1e6d4f;
}

.partner-badge--inactive {
    background: rgba(104, 113, 121, 0.12);
    color: #5b6570;
}

.partner-card__view-link {
    align-self: flex-start;
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.partner-card__view-link:hover,
.partner-card__view-link:focus-visible {
    text-decoration: underline;
}

.partner-card__chips,
.partner-detail__chips,
.partner-detail__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.partner-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.partner-fact {
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    gap: 0.2rem;
}

.partner-fact span {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.partner-fact strong {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.partner-fact--yes {
    border-color: rgba(31, 119, 91, 0.18);
    background: rgba(31, 119, 91, 0.08);
}

.partner-fact--no {
    border-color: rgba(104, 113, 121, 0.18);
    background: rgba(104, 113, 121, 0.07);
}

.partner-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.partner-card__links a,
.partner-detail__links a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.partner-card__links a:hover,
.partner-card__links a:focus-visible,
.partner-detail__links a:hover,
.partner-detail__links a:focus-visible {
    text-decoration: underline;
}

.partner-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.partner-card__actions .cta-button {
    padding-inline: 1rem;
}

.partners-empty {
    padding: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.partners-pagination {
    margin-top: 0.25rem;
}

.partner-detail {
    width: min(calc(100% - (var(--layout-gutter) * 2)), var(--layout-content));
    margin: 0 auto;
    padding: 1rem 0 3rem;
    display: grid;
    gap: 1rem;
}

.partner-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 2rem);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.14), transparent 26%),
        radial-gradient(circle at 8% 8%, rgba(240, 138, 75, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.partner-detail__hero-copy {
    display: grid;
    gap: 0.9rem;
}

.partner-detail__intro {
    max-width: 68ch;
    line-height: 1.7;
}

.partner-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.partner-detail__hero-aside {
    display: grid;
    gap: 0.75rem;
}

.partner-detail__image {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.partner-detail__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.partner-detail__summary {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--color-border);
    display: grid;
    gap: 0.3rem;
}

.partner-detail__summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    font-weight: 700;
}

.partner-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 1rem;
    align-items: start;
}

.partner-detail__main,
.partner-detail__sidebar {
    display: grid;
    gap: 1rem;
}

.partner-detail__meta {
    display: grid;
    gap: 0.5rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.partner-detail__empty {
    line-height: 1.65;
}

.partner-detail .detail-card p {
    line-height: 1.7;
}

.partner-detail__links {
    display: flex;
    flex-direction: column;
}

.partners-map-marker-wrap {
    background: transparent;
    border: 0;
}

.partners-map-marker {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--marker-color, var(--color-primary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(17, 24, 20, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.partners-map-marker i {
    font-size: 0.92rem;
}

.partners-map-marker--verified {
    box-shadow: 0 0 0 4px rgba(31, 119, 91, 0.12), 0 12px 24px rgba(17, 24, 20, 0.18);
}

.partners-map-popup-container .leaflet-popup-content {
    margin: 0;
}

.partners-map-popup-container .leaflet-popup-content-wrapper,
.partners-map-popup-container .leaflet-popup-tip {
    background: #fff;
}

.partners-map-popup {
    display: grid;
    gap: 0.55rem;
    min-width: 220px;
    max-width: 280px;
}

.partners-map-popup__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.partners-map-popup__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.partners-map-popup__type,
.partners-map-popup__meta {
    color: var(--color-muted);
    line-height: 1.45;
    font-size: 0.92rem;
}

.partners-map-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.2rem;
}

.partners-map-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(47, 107, 83, 0.14);
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.partners-map-popup__button--primary {
    background: linear-gradient(135deg, var(--color-primary), #2ba46f);
    color: #fff;
    border-color: transparent;
}

.partner-card__media {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--color-border);
}

.partner-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    display: block;
}

body.partners-page .section__title,
body.partner-detail-page .section__title {
    max-width: 14ch;
}

body.partners-page .section__title {
    max-width: 20ch;
}

.donate-layout {
    padding-bottom: 3.5rem;
}

.donate-alert {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.donate-alert--error {
    border-color: rgba(212, 71, 95, 0.3);
}

.donate-alert--success {
    border-color: rgba(31, 119, 91, 0.3);
}

.donate-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.donate-hero__copy {
    max-width: 54rem;
}

.donate-hero__meta {
    display: grid;
    gap: 0.5rem;
    min-width: 220px;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(16, 22, 19, 0.05);
    border: 1px solid rgba(16, 22, 19, 0.08);
}

.donate-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.donate-badge.is-test {
    background: rgba(31, 119, 91, 0.12);
    color: var(--color-primary-dark);
}

.donate-badge.is-live {
    background: rgba(240, 138, 75, 0.18);
    color: #8c4a17;
}

.donate-state {
    background: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 0.8rem;
}

.donate-state--pending {
    border-color: rgba(240, 138, 75, 0.24);
}

.donate-state--success {
    border-color: rgba(31, 119, 91, 0.24);
}

.donate-state__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.donate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.donate-form,
.donate-info {
    padding: clamp(1.2rem, 2vw, 1.8rem);
    display: grid;
    gap: 1rem;
}

.donate-form__section {
    display: grid;
    gap: 0.8rem;
}

.donate-form__section--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.donate-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.donate-preset {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 107, 83, 0.16);
    background: rgba(31, 119, 91, 0.06);
    color: var(--color-primary-dark);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.donate-preset:hover,
.donate-preset:focus-visible {
    transform: translateY(-2px);
    background: rgba(31, 119, 91, 0.1);
    border-color: rgba(47, 107, 83, 0.28);
}

.donate-preset.is-active {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.96));
    color: #fff;
    border-color: rgba(31, 119, 91, 0.96);
}

.donate-preset--custom {
    background: rgba(240, 138, 75, 0.08);
    border-color: rgba(240, 138, 75, 0.18);
}

.donate-field {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--color-ink);
}

.donate-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: #fff;
    font: inherit;
}

.donate-submit {
    width: fit-content;
}

.donate-info ul {
    margin: 0;
    padding-inline-start: 1.1rem;
    color: var(--color-muted);
    line-height: 1.75;
}

.donate-info__callout,
.donate-disabled {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(31, 119, 91, 0.08);
    border: 1px solid rgba(31, 119, 91, 0.12);
}

.donate-info__callout strong,
.donate-disabled h2 {
    display: block;
    margin-bottom: 0.35rem;
}

body.donate-page .site-footer {
    margin-top: 2rem;
}

@media (max-width: 1180px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__cta-actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .donate-shell,
    .info-grid,
    .info-panel__grid,
    .help-hero,
    .help-bottom,
    .stories-hero,
    .story-detail__hero,
    .partners-hero,
    .partners-toolbar,
    .partner-detail__hero,
    .partner-detail__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-footer__bar,
    .donate-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__button {
        min-width: 12rem;
    }

    .donate-form__section--two,
    .donate-presets {
        grid-template-columns: 1fr;
    }

    .help-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .help-section__head {
        align-items: start;
        flex-direction: column;
    }

    .stories-toolbar__form {
        grid-template-columns: 1fr;
    }

    .stories-toolbar__actions {
        justify-content: stretch;
    }

    .stories-toolbar__actions .button,
    .stories-toolbar__actions .primary,
    .stories-toolbar__actions .cta-button {
        width: 100%;
    }

    .stories-toolbar__head {
        flex-direction: column;
    }

    .stories-toolbar__legend {
        justify-content: flex-start;
    }

    .story-detail__facts,
    .story-before-after {
        grid-template-columns: 1fr;
    }

    .story-section__head,
    .story-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .partners-filters-panel .partners-filters__grid {
        grid-template-columns: 1fr;
    }

    .partners-field--wide,
    .partners-field--checkbox,
    .partners-filters-panel .partners-filters__actions {
        grid-column: auto;
    }

    .partners-filters-panel .partners-filters__head {
        flex-direction: column;
    }

    .partners-filters-panel .partners-filters__legend {
        justify-content: flex-start;
    }

    .partners-explainer,
    .partners-field--search,
    .partners-field--control,
    .partners-filters-panel .partners-filters__actions {
        grid-column: 1 / -1;
    }

    .partners-field {
        padding: 0.9rem 0.9rem 0.95rem;
    }

    .partners-field__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .partners-explainer {
        grid-template-columns: 1fr;
    }

    .partners-field--toggle {
        padding: 0.8rem 0.85rem;
    }

    .partners-filters-panel .partners-filters__actions {
        justify-content: stretch;
    }

    .partners-filters-panel .partners-filters__actions .cta-button {
        width: 100%;
        justify-content: center;
    }

    .partners-field--control select,
    .partners-field--control input {
        padding-inline: 0.9rem;
    }

    .partners-map-panel__canvas {
        min-height: 360px;
    }

    .partner-card__facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer__inner {
        padding-inline: 0.75rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer__button {
        width: 100%;
    }

    .site-footer__bar {
        gap: 0.75rem;
    }

    .site-footer__powered {
        width: 100%;
        justify-content: center;
    }

    .legal-layout,
    .info-page__layout,
    .donate-layout {
        width: min(calc(100% - 1rem), var(--content-width));
    }

    .legal-card,
    .info-hero,
    .info-card,
    .info-panel,
    .donate-hero,
    .donate-state,
    .donate-disabled,
    .donate-form,
    .donate-info,
    .help-hero,
    .help-card,
    .help-faq__item,
    .help-bottom,
    .stories-hero,
    .stories-toolbar,
    .stories-disabled,
    .stories-empty,
    .story-detail__summary,
    .story-section,
    .story-bottom-cta,
    .partners-hero,
    .partners-filters-panel,
    .partners-map,
    .partners-map-panel,
    .partners-summary,
    .partner-card,
    .partner-detail__hero,
    .partner-detail__summary {
        border-radius: 24px;
    }

    .story-detail__media {
        min-height: 320px;
        border-radius: 24px;
    }

    .story-card--archive {
        border-radius: 24px;
    }
}

body.donate-page .donate-layout {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    display: grid;
    gap: 1rem;
}

body.donate-page .donate-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    align-items: stretch;
}

body.donate-page .donate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
    align-items: start;
}

body.donate-page .donate-alert {
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

body.donate-page .donate-disabled {
    display: grid;
    gap: 1rem;
}

body.donate-page .donate-form {
    display: grid;
    gap: 1rem;
}

body.donate-page .donate-thanks-layout {
    gap: 1rem;
}

body.donate-page .donate-thanks-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

body.donate-page .donate-thanks-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

@media (max-width: 1180px) {
    body.donate-page .donate-layout,
    body.donate-page .donate-hero,
    body.donate-page .donate-shell,
    body.donate-page .donate-thanks-hero,
    body.donate-page .donate-thanks-card,
    body.donate-page .donate-links-grid {
        grid-template-columns: 1fr;
    }

    body.donate-page .donate-thanks-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body.donate-page .donate-layout {
        width: min(calc(100% - 1rem), var(--content-width));
        padding-top: 1rem;
    }

    body.donate-page .donate-card {
        border-radius: 24px;
    }

    body.donate-page .donate-amount-grid {
        grid-template-columns: 1fr;
    }

    body.donate-page .donate-disabled__actions,
    body.donate-page .donate-thanks-card__actions {
        width: 100%;
    }

    body.donate-page .donate-disabled__actions .cta-button,
body.donate-page .donate-thanks-card__actions .cta-button {
        width: 100%;
        justify-content: center;
    }
}

body.support-project-page {
    background:
        radial-gradient(circle at top left, rgba(82, 97, 255, 0.08), transparent 34%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 30%),
        linear-gradient(180deg, #f7f8fb 0%, #f3f5f9 100%);
}

body.support-project-page .support-project-layout {
    width: min(calc(100% - 2rem), 1520px);
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    display: grid;
    gap: 1.1rem;
}

body.donate-page {
    background:
        radial-gradient(circle at top left, rgba(31, 119, 91, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.10), transparent 24%),
        linear-gradient(180deg, #f7f4ee 0%, #fcfcfa 55%, #eef5f0 100%);
}

body.donate-page .donate-layout {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.2rem 0 4rem;
    display: grid;
    gap: 0.9rem;
}

body.donate-page .donate-card {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.07), transparent 24%),
        radial-gradient(circle at left bottom, rgba(240, 138, 75, 0.05), transparent 20%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 60px rgba(24, 36, 29, 0.08);
    backdrop-filter: blur(18px);
}

body.donate-page .donate-alert {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(47, 107, 83, 0.12);
    box-shadow: 0 18px 42px rgba(24, 36, 29, 0.06);
}

body.donate-page .donate-hero,
body.donate-page .donate-shell {
    display: grid;
    gap: 1rem;
}

body.donate-page .donate-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
    align-items: stretch;
}

body.donate-page .donate-hero__copy {
    display: grid;
    gap: 0.8rem;
    padding: clamp(1rem, 1.6vw, 1.5rem);
    position: relative;
    overflow: hidden;
}

body.donate-page .donate-hero__copy::after {
    content: '';
    position: absolute;
    inset: auto -8% -15% auto;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 119, 91, 0.10), transparent 70%);
    pointer-events: none;
}

body.donate-page .donate-hero__mode {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(31, 119, 91, 0.07);
    border: 1px solid rgba(31, 119, 91, 0.12);
}

body.donate-page .donate-hero__mode-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-muted);
}

body.donate-page .donate-hero__mode p,
body.donate-page .donate-hero__footnote,
body.donate-page .donate-trust__intro {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

body.donate-page .donate-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.1rem;
}

body.donate-page .donate-hero__footnote {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.1rem;
}

body.donate-page .donate-hero__footnote strong {
    color: var(--color-primary-dark);
    font-size: 1rem;
}

body.donate-page .donate-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.donate-page .donate-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.09);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.donate-page .donate-hero__panel {
    display: grid;
    gap: 0.7rem;
    padding: clamp(0.9rem, 1.4vw, 1.2rem);
}

body.donate-page .donate-hero__panel-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(47, 107, 83, 0.12);
}

body.donate-page .donate-hero__panel-card--status {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.96));
    color: #fff;
    border-color: rgba(31, 119, 91, 0.25);
}

body.donate-page .donate-hero__panel-card--status .donate-panel__label,
body.donate-page .donate-hero__panel-card--status .donate-panel__muted {
    color: rgba(255, 255, 255, 0.84);
}

body.donate-page .donate-shell {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    align-items: start;
}

body.donate-page .donate-form,
body.donate-page .donate-trust {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 2vw, 1.9rem);
}

body.donate-page .donate-form {
    position: relative;
    isolation: isolate;
    border-color: rgba(31, 119, 91, 0.16);
    box-shadow:
        0 28px 64px rgba(17, 24, 20, 0.11),
        0 0 0 1px rgba(31, 119, 91, 0.04) inset;
}

body.donate-page .donate-form::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.3rem;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(90deg, rgba(31, 119, 91, 0.95), rgba(240, 138, 75, 0.92));
    pointer-events: none;
}

body.donate-page .donate-form__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

body.donate-page .donate-form__head {
    display: grid;
    gap: 0.25rem;
    max-width: 44rem;
}

body.donate-page .donate-form__lead {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

body.donate-page .donate-form__badge {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(31, 119, 91, 0.07);
    border: 1px solid rgba(31, 119, 91, 0.12);
    min-width: 160px;
}

body.donate-page .donate-form__badge-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    font-weight: 800;
}

body.donate-page .donate-form__badge strong {
    color: var(--color-primary-dark);
    font-size: 0.95rem;
}

body.donate-page .donate-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

body.donate-page .donate-amount-card {
    display: grid;
    gap: 0.3rem;
    min-height: 124px;
    padding: 1.05rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(47, 107, 83, 0.14);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(24, 36, 29, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.donate-page .donate-amount-card:hover,
body.donate-page .donate-amount-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(24, 36, 29, 0.08);
    border-color: rgba(47, 107, 83, 0.26);
}

body.donate-page .donate-amount-card.is-active {
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.96));
    color: #fff;
    border-color: rgba(31, 119, 91, 0.96);
}

body.donate-page .donate-amount-card--custom {
    background: rgba(240, 138, 75, 0.08);
    border-color: rgba(240, 138, 75, 0.18);
}

body.donate-page .donate-amount-card--custom.is-active {
    background: linear-gradient(135deg, rgba(240, 138, 75, 0.96), rgba(185, 96, 29, 0.96));
    border-color: rgba(240, 138, 75, 0.96);
}

body.donate-page .donate-amount-card__value {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.donate-page .donate-amount-card__label {
    font-size: 0.9rem;
    font-weight: 700;
}

body.donate-page .donate-amount-card__hint {
    font-size: 0.78rem;
    color: inherit;
    opacity: 0.76;
}

body.donate-page .donate-custom-wrap {
    display: none;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(31, 119, 91, 0.08), rgba(31, 119, 91, 0.03));
    border: 1px solid rgba(31, 119, 91, 0.14);
}

body.donate-page .donate-custom-wrap.is-visible {
    display: grid;
}

body.donate-page .donate-field {
    display: grid;
    gap: 0.38rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

body.donate-page .donate-field--panel {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(47, 107, 83, 0.12);
}

body.donate-page .donate-field--custom {
    padding: 0;
    border: 0;
    background: transparent;
}

body.donate-page .donate-field input,
body.donate-page .donate-field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 107, 83, 0.16);
    background: #fff;
    font: inherit;
}

body.donate-page .donate-field textarea {
    min-height: 144px;
    resize: vertical;
}

body.donate-page .donate-field input:focus,
body.donate-page .donate-field textarea:focus {
    border-color: rgba(47, 107, 83, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 107, 83, 0.1);
}

body.donate-page .donate-field__hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

body.donate-page .donate-form__section {
    display: grid;
    gap: 0.95rem;
}

body.donate-page .donate-form__section--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.donate-page .donate-form__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(31, 119, 91, 0.08);
}

body.donate-page .donate-form__note {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

body.donate-page .donate-form__note strong {
    color: var(--color-primary-dark);
}

body.donate-page .donate-submit {
    min-width: min(320px, 100%);
    justify-content: center;
}

body.donate-page .donate-trust {
    display: grid;
    gap: 0.9rem;
    position: sticky;
    top: 92px;
}

body.donate-page .donate-trust__head {
    display: grid;
    gap: 0.35rem;
}

body.donate-page .donate-trust__intro {
    max-width: 42ch;
}

body.donate-page .donate-trust__steps {
    display: grid;
    gap: 0.7rem;
}

body.donate-page .donate-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(31, 119, 91, 0.05);
    border: 1px solid rgba(31, 119, 91, 0.1);
}

body.donate-page .donate-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.96), rgba(19, 80, 61, 0.96));
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body.donate-page .donate-step strong {
    display: block;
    color: var(--color-primary-dark);
    margin-bottom: 0.15rem;
}

body.donate-page .donate-step p,
body.donate-page .donate-trust__foot p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

body.donate-page .donate-trust__foot {
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(31, 119, 91, 0.95), rgba(19, 80, 61, 0.95));
    color: #fff;
    display: grid;
    gap: 0.35rem;
}

body.donate-page .donate-trust__foot strong {
    color: #fff;
}

body.donate-page .donate-trust__foot p {
    color: rgba(255, 255, 255, 0.84);
}

body.donate-page .donate-disabled--premium {
    display: grid;
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 1.8rem);
}

body.donate-page .donate-disabled__copy {
    display: grid;
    gap: 0.35rem;
}

body.donate-page .donate-disabled__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 1180px) {
    body.donate-page .donate-hero,
    body.donate-page .donate-shell {
        grid-template-columns: 1fr;
    }

    body.donate-page .donate-trust {
        position: static;
        top: auto;
    }
}

@media (max-width: 900px) {
    body.donate-page .donate-hero__panel-card--metrics {
        grid-template-columns: 1fr;
    }

    body.donate-page .donate-form__section--two,
    body.donate-page .donate-amount-grid {
        grid-template-columns: 1fr;
    }

    body.donate-page .donate-form__top {
        flex-direction: column;
    }

    body.donate-page .donate-form__badge {
        width: 100%;
    }
}

@media (max-width: 720px) {
    body.donate-page .donate-layout {
        width: min(calc(100% - 1rem), var(--content-width));
        padding-top: 1rem;
    }

    body.donate-page .donate-card {
        border-radius: 24px;
    }

    body.donate-page .donate-hero__copy,
    body.donate-page .donate-hero__panel,
    body.donate-page .donate-form,
    body.donate-page .donate-trust {
        padding: 1rem;
    }

    body.donate-page .donate-hero__actions,
    body.donate-page .donate-disabled__actions {
        width: 100%;
    }

    body.donate-page .donate-hero__actions .cta-button,
    body.donate-page .donate-disabled__actions .cta-button,
    body.donate-page .donate-submit {
        width: 100%;
        justify-content: center;
    }

    body.donate-page .donate-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    body.donate-page .donate-step {
        grid-template-columns: 1fr;
    }
}

/* Layout system overrides */
@media (min-width: 1024px) {
    .posts-filters,
    .stories-toolbar,
    .partners-filters-panel {
        position: sticky;
        top: 92px;
        z-index: 8;
    }
}

body.partners-page .partners-toolbar {
    grid-template-columns: 1fr !important;
    align-items: stretch;
}

body.partners-page .partners-filters-panel {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

@media (max-width: 1023px) {
    .page-shell,
    .page-shell--wide,
    .page-shell--content,
    .page-shell--readable,
    .section,
    .posts-header,
    .posts-filters,
    .posts-demo,
    .cards.posts-grid,
    .post-detail,
    .story-detail,
    .partner-detail,
    .help-layout,
    .stories-layout,
    .partners-layout,
    .donate-layout,
    .login-shell,
    .profile-dashboard,
    .helper-page__wrap,
    .legal-layout,
    .info-page__layout {
        width: min(calc(100% - 1rem), 100%);
    }

    .page-shell,
    .page-shell--wide,
    .page-shell--content,
    .page-shell--readable {
        padding-inline: var(--layout-gutter);
    }
}

@media (max-width: 719px) {
    .posts-filters,
    .stories-toolbar,
    .partners-filters-panel {
        position: static;
    }

    .page-shell,
    .page-shell--wide,
    .page-shell--content,
    .page-shell--readable {
        padding-block: var(--layout-section-gap) 2.2rem;
    }
}

body.support-project-page .support-project-hero,
body.support-project-page .support-project-section--split,
body.support-project-page .support-project-thanks {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
    gap: 1rem;
    align-items: stretch;
}

body.support-project-page .support-project-hero__copy,
body.support-project-page .support-project-hero__panel,
body.support-project-page .support-project-thanks__copy,
body.support-project-page .support-project-thanks__actions,
body.support-project-page .support-project-card,
body.support-project-page .support-project-trust,
body.support-project-page .support-project-form {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
    border: 1px solid var(--color-border);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

body.support-project-page .support-project-hero__copy,
body.support-project-page .support-project-hero__panel,
body.support-project-page .support-project-thanks__copy,
body.support-project-page .support-project-thanks__actions {
    padding: 1.65rem;
}

body.support-project-page .support-project-hero__copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

body.support-project-page .support-project-hero__copy h1 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.3rem, 4.8vw, 4.35rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--color-ink);
}

body.support-project-page .support-project-hero__copy > p:last-of-type {
    max-width: 68ch;
}

body.support-project-page .support-project-hero__text,
body.support-project-page .support-project-section p,
body.support-project-page .support-project-form__head p {
    color: var(--color-muted);
    line-height: 1.7;
}

body.support-project-page .support-project-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: var(--color-accent);
    font-weight: 800;
}

body.support-project-page .support-project-hero__chips,
body.support-project-page .support-project-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

body.support-project-page .support-project-chip,
body.support-project-page .support-project-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary-dark);
    border: 1px solid rgba(31, 119, 91, 0.12);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.support-project-page .support-project-hero__actions,
body.support-project-page .support-project-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.support-project-page .support-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.support-project-page .support-project-button:hover {
    transform: translateY(-1px);
}

body.support-project-page .support-project-button--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(31, 119, 91, 0.18);
}

body.support-project-page .support-project-button--secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ink);
}

body.support-project-page .support-project-hero__panel,
body.support-project-page .support-project-trust {
    display: grid;
    gap: 1rem;
    align-content: start;
}

body.support-project-page .support-project-hero__card {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(31, 119, 91, 0.12);
    box-shadow: 0 10px 28px rgba(17, 24, 20, 0.05);
}

body.support-project-page .support-project-hero__card h2,
body.support-project-page .support-project-hero__card h3 {
    margin: 0;
    color: var(--color-ink);
}

body.support-project-page .support-project-hero__card--accent {
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.88);
}

body.support-project-page .support-project-hero__fineprint {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

body.support-project-page .support-project-pill {
    background: rgba(240, 138, 75, 0.10);
    border-color: rgba(240, 138, 75, 0.14);
    color: #8a4e20;
}

body.support-project-page .support-project-checklist,
body.support-project-page .support-project-bullets {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.55rem;
    color: var(--color-foreground);
}

body.support-project-page .support-project-section {
    display: grid;
    gap: 1rem;
}

body.support-project-page .support-project-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

body.support-project-page .support-project-grid {
    display: grid;
    gap: 1rem;
}

body.support-project-page .support-project-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.support-project-page .support-project-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.support-project-page .support-project-card,
body.support-project-page .support-project-trust {
    padding: 1.35rem;
}

body.support-project-page .support-project-card--muted,
body.support-project-page .support-project-card--highlight {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

body.support-project-page .support-project-note {
    padding: 1rem 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}

body.support-project-page .support-project-form {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

body.support-project-page .support-project-form__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
    gap: 1rem;
    align-items: start;
}

body.support-project-page .support-project-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.06), transparent 24%),
        rgba(250, 252, 249, 0.92);
    border: 1px solid rgba(31, 119, 91, 0.10);
}

body.support-project-page .support-project-field {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 119, 91, 0.10);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.support-project-page .support-project-field:focus-within {
    border-color: rgba(31, 119, 91, 0.24);
    box-shadow: 0 16px 32px rgba(17, 24, 20, 0.08);
    transform: translateY(-1px);
}

body.support-project-page .support-project-field label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-ink);
}

body.support-project-page .support-project-field input,
body.support-project-page .support-project-field select,
body.support-project-page .support-project-field textarea {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    color: var(--color-ink);
    border: 1px solid rgba(26, 37, 58, 0.12);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.support-project-page .support-project-field textarea {
    min-height: 170px;
    resize: vertical;
}

body.support-project-page .support-project-field input::placeholder,
body.support-project-page .support-project-field textarea::placeholder {
    color: #96a0aa;
}

body.support-project-page .support-project-field input:focus,
body.support-project-page .support-project-field select:focus,
body.support-project-page .support-project-field textarea:focus {
    outline: none;
    border-color: rgba(31, 119, 91, 0.35);
    box-shadow: 0 0 0 4px rgba(31, 119, 91, 0.10);
}

body.support-project-page .support-project-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
        linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.15rem;
}

body.support-project-page .support-project-form__full {
    grid-column: 1 / -1;
}

body.support-project-page .support-project-field-error {
    margin-top: 0.45rem;
    color: #b42318;
    font-size: 0.92rem;
}

body.support-project-page .support-project-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.1rem;
}

body.support-project-page .support-project-form__aside {
    display: grid;
    gap: 1rem;
}

body.support-project-page .support-project-form__aside-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.2rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 119, 91, 0.12);
    box-shadow: 0 12px 28px rgba(17, 24, 20, 0.06);
}

body.support-project-page .support-project-form__aside-card--soft {
    background:
        radial-gradient(circle at top right, rgba(240, 138, 75, 0.08), transparent 24%),
        rgba(255, 255, 255, 0.88);
}

body.support-project-page .support-project-form__aside-card h3 {
    margin: 0;
    color: var(--color-ink);
}

body.support-project-page .support-project-form__aside-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.support-project-page .support-project-form__aside-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 119, 91, 0.12);
    background: rgba(31, 119, 91, 0.06);
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

body.support-project-page .support-project-form__aside-links a:hover,
body.support-project-page .support-project-form__aside-links a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(31, 119, 91, 0.22);
}

body.support-project-page .support-project-thanks {
    align-items: stretch;
}

body.support-project-page .support-project-thanks__actions {
    align-content: center;
}

body.support-project-page .support-project-thanks__meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}

@media (max-width: 1180px) {
    body.support-project-page .support-project-layout,
    body.support-project-page .support-project-hero,
    body.support-project-page .support-project-section--split,
    body.support-project-page .support-project-thanks,
    body.support-project-page .support-project-grid--two,
    body.support-project-page .support-project-grid--three,
    body.support-project-page .support-project-form__grid,
    body.support-project-page .support-project-form__shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body.support-project-page .support-project-layout {
        width: min(calc(100% - 1rem), var(--content-width));
        padding-top: 1rem;
    }

    body.support-project-page .support-project-hero__copy,
    body.support-project-page .support-project-hero__panel,
    body.support-project-page .support-project-thanks__copy,
    body.support-project-page .support-project-thanks__actions,
    body.support-project-page .support-project-card,
    body.support-project-page .support-project-trust,
    body.support-project-page .support-project-form {
        border-radius: 24px;
    }

    body.support-project-page .support-project-hero__actions,
    body.support-project-page .support-project-thanks__actions,
    body.support-project-page .support-project-form__actions {
        width: 100%;
    }

    body.support-project-page .support-project-button {
        width: 100%;
    }

    body.support-project-page .support-project-form__grid,
    body.support-project-page .support-project-form__aside {
        padding: 0.85rem;
    }
}

body.not-found-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(31, 119, 91, 0.10), transparent 24%),
        radial-gradient(circle at 92% 8%, rgba(240, 138, 75, 0.10), transparent 20%),
        linear-gradient(180deg, #f7f4ee 0%, #fbfbf8 52%, #eef4ef 100%);
}

body.not-found-page .site-footer {
    margin-top: 1.5rem;
}

body.not-found-page .not-found-layout {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    display: grid;
    gap: 1rem;
}

body.not-found-page .not-found-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

body.not-found-page .not-found-card,
body.not-found-page .not-found-note {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

body.not-found-page .not-found-card {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

body.not-found-page .not-found-card--primary h1 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-ink);
}

body.not-found-page .not-found-eyebrow,
body.not-found-page .not-found-aside__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-primary);
}

body.not-found-page .not-found-subtitle {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.72;
    max-width: 62ch;
}

body.not-found-page .not-found-path {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(31, 119, 91, 0.08);
    border: 1px solid rgba(31, 119, 91, 0.14);
}

body.not-found-page .not-found-path__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-muted);
}

body.not-found-page .not-found-path strong {
    font-size: 0.98rem;
    color: var(--color-primary-dark);
    word-break: break-word;
}

body.not-found-page .not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.not-found-page .not-found-card--aside {
    align-content: start;
}

body.not-found-page .not-found-mini-grid {
    display: grid;
    gap: 0.75rem;
}

body.not-found-page .not-found-mini-card,
body.not-found-page .not-found-suggestion {
    text-decoration: none;
}

body.not-found-page .not-found-mini-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(31, 119, 91, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-ink);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.not-found-page .not-found-mini-card span,
body.not-found-page .not-found-suggestion__copy span {
    color: var(--color-muted);
    line-height: 1.55;
}

body.not-found-page .not-found-mini-card strong {
    color: var(--color-primary-dark);
}

body.not-found-page .not-found-mini-card:hover,
body.not-found-page .not-found-mini-card:focus-visible,
body.not-found-page .not-found-suggestion:hover,
body.not-found-page .not-found-suggestion:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(31, 119, 91, 0.26);
    box-shadow: var(--shadow-hover);
    outline: none;
}

body.not-found-page .not-found-section {
    display: grid;
    gap: 1rem;
}

body.not-found-page .not-found-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

body.not-found-page .not-found-section__hint {
    margin: 0;
    max-width: 40ch;
    color: var(--color-muted);
    line-height: 1.6;
}

body.not-found-page .not-found-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

body.not-found-page .not-found-suggestion {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid rgba(31, 119, 91, 0.12);
    background:
        radial-gradient(circle at top right, rgba(31, 119, 91, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.88);
    color: var(--color-ink);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.not-found-page .not-found-suggestion__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 119, 91, 0.08);
    color: var(--color-primary);
    font-size: 1rem;
}

body.not-found-page .not-found-suggestion__copy {
    display: grid;
    gap: 0.24rem;
}

body.not-found-page .not-found-suggestion__copy strong {
    color: var(--color-primary-dark);
    font-size: 1rem;
}

body.not-found-page .not-found-note {
    padding: 1.1rem 1.2rem;
    color: var(--color-muted);
    line-height: 1.7;
}

body.not-found-page .not-found-note p {
    margin: 0;
}

@media (max-width: 1180px) {
    body.not-found-page .not-found-hero,
    body.not-found-page .not-found-grid {
        grid-template-columns: 1fr;
    }

    body.not-found-page .not-found-section__head {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 720px) {
    body.not-found-page .not-found-layout {
        width: min(calc(100% - 1rem), var(--content-width));
        padding-top: 1rem;
    }

    body.not-found-page .not-found-card,
    body.not-found-page .not-found-note {
        border-radius: 24px;
    }

    body.not-found-page .not-found-actions {
        width: 100%;
    }

    body.not-found-page .not-found-actions .cta-button {
        width: 100%;
    }

    body.not-found-page .not-found-suggestion {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.not-found-page .not-found-suggestion > i {
        display: none;
    }
}

.case-resolution-page .section__subtitle {
    max-width: 68ch;
}

.case-resolution-page__shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    display: grid;
    gap: 1.2rem;
}

.case-resolution-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 1rem;
    align-items: stretch;
}

.case-resolution-hero__copy,
.case-resolution-summary,
.case-resolution-card,
.case-resolution-banner {
    padding: 1.25rem;
    border-radius: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.case-resolution-banner > * {
    position: relative;
    z-index: 1;
}

.case-resolution-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.case-resolution-summary {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.case-resolution-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.case-resolution-card--form,
.case-resolution-sidebar {
    display: grid;
    gap: 1rem;
}

.case-resolution-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.case-resolution-card__label,
.case-resolution-step__label {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-muted);
}

.case-resolution-form {
    display: grid;
    gap: 1rem;
}

.case-resolution-step {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.7);
}

.case-resolution-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 600;
    line-height: 1.5;
}

.case-resolution-confirm input {
    margin-top: 0.25rem;
}

.case-resolution-form__actions,
.case-resolution-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.case-resolution-banner {
    display: grid;
    gap: 1rem;
}

.case-resolution-banner__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.case-resolution-banner--resolved {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78) 0 0.45rem, transparent 0.5rem),
        radial-gradient(circle at 18% 28%, rgba(255, 240, 140, 0.92) 0 0.18rem, transparent 0.22rem),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.78) 0 0.45rem, transparent 0.5rem),
        radial-gradient(circle at 88% 30%, rgba(255, 240, 140, 0.92) 0 0.18rem, transparent 0.22rem),
        linear-gradient(135deg, #fff8cf 0%, #fff0a8 45%, #ffe17f 100%);
    border-color: rgba(196, 145, 0, 0.28);
    color: #5b4300;
    box-shadow: 0 18px 40px rgba(183, 122, 0, 0.18);
}

.case-resolution-banner--resolved::before,
.case-resolution-banner--resolved::after {
    content: '';
    position: absolute;
    inset: auto;
    width: 9rem;
    height: 9rem;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.95;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 18%, rgba(255, 255, 255, 0.95) 19% 20%, rgba(255, 255, 255, 0) 21% 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 90, 0.95) 0 7%, rgba(255, 220, 90, 0) 8% 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 171, 0, 0.75) 0 2%, rgba(255, 171, 0, 0) 3% 100%);
    filter: drop-shadow(0 0 10px rgba(255, 199, 0, 0.5));
    animation: case-firework-burst 2.8s ease-out infinite;
    z-index: 0;
}

.case-resolution-banner--resolved::before {
    top: -2rem;
    left: -1rem;
}

.case-resolution-banner--resolved::after {
    top: -1.5rem;
    right: -1rem;
    animation-delay: 1.1s;
}

.case-resolution-banner--resolved .section__eyebrow,
.case-resolution-banner--resolved .case-resolution-card__label,
.case-resolution-banner--resolved .case-resolution-card,
.case-resolution-banner--resolved .case-resolution-banner__note,
.case-resolution-banner--resolved .case-resolution-banner__note--soft {
    color: #5b4300;
}

.case-resolution-banner--resolved .badge {
    background: rgba(91, 67, 0, 0.12);
    border-color: rgba(91, 67, 0, 0.18);
    color: #5b4300;
}

.case-resolution-banner--resolved .case-resolution-card {
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(91, 67, 0, 0.14);
}

.case-resolution-banner--resolved .case-resolution-banner__note {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(91, 67, 0, 0.12);
}

.case-resolution-banner--resolved .cta-button--primary,
.case-resolution-banner--resolved .cta-button--secondary,
.case-resolution-banner--resolved .cta-button--outline {
    box-shadow: none;
}

@keyframes case-firework-burst {
    0% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.95;
    }
    45% {
        transform: scale(1) rotate(90deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35) rotate(180deg);
        opacity: 0;
    }
}

.case-resolution-banner__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.case-resolution-card {
    padding: 1rem 1.05rem;
}

.case-resolution-banner__note {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(31, 119, 91, 0.08);
    border: 1px solid rgba(31, 119, 91, 0.14);
}

.case-resolution-banner__note--soft {
    background: rgba(240, 138, 75, 0.1);
    border-color: rgba(240, 138, 75, 0.18);
}

.case-resolution-summary .badge,
.case-resolution-banner .badge {
    width: fit-content;
}

.case-resolution-preview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
    color: var(--color-muted);
    font-size: 0.88rem;
}

@media (max-width: 1080px) {
    .case-resolution-hero,
    .case-resolution-layout {
        grid-template-columns: 1fr;
    }

    .case-resolution-banner__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .case-resolution-page__shell {
        width: min(calc(100% - 1rem), var(--content-width));
    }

    .case-resolution-banner__grid {
        grid-template-columns: 1fr;
    }

    .case-resolution-hero__head,
    .case-resolution-banner__head,
    .case-resolution-card__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
