:root {
    color-scheme: light;
    --ink: #1f2933;
    --muted: #637080;
    --paper: #f4f7fb;
    --surface: #ffffff;
    --line: #d8e0e8;
    --accent: #c83c5a;
    --accent-dark: #a92742;
    --forest: #234e5f;
    --forest-light: #dfeff2;
    --focus: #1769e0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    margin: 0;
    background: var(--paper);
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

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

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--ink);
    color: #fff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgb(31 41 51 / 10%);
    background: rgb(244 247 251 / 94%);
    backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.hero__inner,
.section,
.support-callout,
.page-shell,
.article-shell {
    width: min(74rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.brand__mark {
    width: 3.25rem;
    height: auto;
    flex: 0 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.7rem, 1.5vw, 1.25rem);
    font-size: 0.9rem;
    font-weight: 650;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
    text-decoration: underline;
}

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 0.14em;
}

.site-nav__accent {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
}

.hero {
    overflow: hidden;
    background: var(--forest);
    color: #fff;
}

.hero__inner {
    display: grid;
    min-height: clamp(27rem, 56vh, 38rem);
    grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.hero__copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow,
.support-callout .eyebrow {
    color: #ffc1cc;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    letter-spacing: -0.055em;
    line-height: 0.93;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.12;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

.hero__lead {
    max-width: 41rem;
    margin-bottom: 2rem;
    color: #deebef;
    font-size: clamp(1.05rem, 2.1vw, 1.32rem);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.button--light {
    background: #fff;
    color: var(--forest);
}

.button--light:hover {
    background: var(--paper);
}

.text-link {
    font-weight: 750;
}

.hero .text-link {
    color: #fff;
}

.hero__visual {
    position: relative;
    min-height: 25rem;
}

.hero__circle {
    position: absolute;
    display: block;
    border-radius: 48% 52% 45% 55%;
}

.hero__circle--large {
    inset: 5% -4% 0 4%;
    background: #83c5c9;
    transform: rotate(-8deg);
}

.hero__circle--small {
    width: 43%;
    aspect-ratio: 1;
    right: -5%;
    top: -5%;
    background: var(--accent);
}

.hero__word {
    position: absolute;
    right: 8%;
    bottom: 16%;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-style: italic;
    transform: rotate(-7deg);
}

.section {
    padding-block: clamp(3.25rem, 6vw, 5rem);
}

.section--tinted {
    position: relative;
}

.section--tinted::before {
    position: absolute;
    z-index: -1;
    inset: 0 50%;
    width: 100vw;
    background: var(--forest-light);
    content: "";
    transform: translateX(-50%);
}

.section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.content-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--forest-light);
}

.content-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.content-card:hover .content-card__image img {
    transform: scale(1.025);
}

.content-card__body {
    padding: 1.4rem;
}

.content-card time,
.article-heading time {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.content-card h3 a {
    text-decoration: none;
}

.content-card h3 a:hover {
    text-decoration: underline;
}

.content-card__more {
    font-size: 0.92rem;
    font-weight: 750;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed #aab6c2;
    border-radius: 1rem;
    text-align: center;
}

.support-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-block: clamp(3rem, 6vw, 5rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 1.75rem;
    background: var(--accent);
    color: #fff;
}

.support-callout > div {
    max-width: 47rem;
}

.support-callout p {
    margin: 1rem 0 0;
    color: #fff;
}

.page-shell,
.article-shell {
    min-height: 52vh;
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumbs ol {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    color: var(--line);
    content: "/";
}

.breadcrumbs [aria-current="page"] {
    color: var(--ink);
}

.page-heading {
    max-width: 55rem;
    margin-bottom: 3rem;
}

.page-heading h1,
.article-heading h1 {
    color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
}

.page-heading > p:last-child,
.article-lead {
    max-width: 48rem;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.article-heading {
    margin-bottom: 2.5rem;
}

.taxonomy-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.taxonomy-links a {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.taxonomy-links a:hover {
    border-color: var(--accent);
}

.taxonomy-links .taxonomy-links__tag {
    color: var(--accent-dark);
}

.article-cover {
    margin: 0 0 3rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--forest-light);
}

.article-cover img {
    width: 100%;
    max-height: 40rem;
    object-fit: cover;
}

.prose {
    max-width: 48rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.8vw, 1.22rem);
    line-height: 1.78;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h2,
.prose h3 {
    margin-top: 2.2em;
    margin-bottom: 0.7em;
}

.prose h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.prose h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.prose p,
.prose li {
    color: #394655;
}

.prose a {
    color: var(--accent-dark);
}

.prose blockquote {
    margin: 2rem 0;
    padding: 0.3rem 0 0.3rem 1.5rem;
    border-left: 4px solid var(--accent);
    font-size: 1.15em;
    font-style: italic;
}

.prose img {
    height: auto;
    border-radius: 1rem;
}

.preview-banner {
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
    border: 1px solid #d69232;
    border-radius: 0.75rem;
    background: #fff3d3;
    color: #593b0b;
    font-weight: 650;
}

.team {
    margin-top: clamp(4rem, 9vw, 7rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--line);
}

.team__heading {
    margin-bottom: 2rem;
}

.team__heading h2 {
    font-size: clamp(1.85rem, 3.8vw, 3rem);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.team-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.team-card > img,
.team-card__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.team-card__placeholder {
    display: grid;
    place-items: center;
    background: var(--forest-light);
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
}

.team-card__body {
    padding: 1.35rem;
}

.team-card__position {
    margin-bottom: 0.7rem;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 750;
}

.team-card__body > p:last-child {
    margin-bottom: 0;
}

.profile-details {
    margin-top: clamp(3.5rem, 8vw, 6rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
}

.profile-details h2,
.donation-callout h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

.details-list {
    margin: 0;
    border-top: 1px solid var(--line);
}

.details-list > div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
}

.details-list dt {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.details-list dd {
    margin: 0;
}

.details-list__multiline {
    white-space: pre-line;
}

.donation-callout {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 1.5rem;
    background: var(--forest-light);
}

.donation-callout p {
    max-width: 40rem;
}

.document-list {
    border-top: 1px solid var(--line);
}

.document-row {
    display: grid;
    grid-template-columns: minmax(10rem, 0.28fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.document-row__meta {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.83rem;
}

.document-row h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 2.7vw, 1.85rem);
}

.document-row p {
    margin-bottom: 0;
}

.document-row__number {
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 750;
}

.search-form {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.search-form__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.search-form__controls button {
    min-width: 7rem;
    margin: 0;
}

.search-form__error {
    margin: 0.75rem 0 0;
    color: #8b1f16;
    font-weight: 650;
}

.search-results {
    margin-top: 3rem;
}

.search-results > h2 {
    margin-bottom: 1.5rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    letter-spacing: 0;
}

.search-results__list {
    border-top: 1px solid var(--line);
}

.search-result {
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.search-result__meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.search-result h3 {
    margin-bottom: 0.5rem;
}

.search-result p {
    margin-bottom: 0;
}

.animal-filters {
    margin-bottom: 2rem;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.animal-collections {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: -1rem 0 1.5rem;
}

.animal-collections a {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.animal-collections a:hover {
    border-color: var(--accent);
}

.animal-collections a[aria-current="page"] {
    border-color: var(--forest);
    background: var(--forest);
    color: #fff;
}

.animal-filters__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.animal-filters__grid label:first-child {
    grid-column: span 8;
}

.animal-filters__grid label:nth-child(2),
.animal-filters__grid label:nth-child(n + 3) {
    grid-column: span 4;
}

.animal-filters label {
    display: grid;
    gap: 0.45rem;
}

.animal-filters label > span {
    font-size: 0.83rem;
    font-weight: 750;
}

select {
    appearance: none;
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 2.4rem 0.65rem 0.85rem;
    border: 1px solid #b9c4cf;
    border-radius: 0.75rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4' stroke='%2322251f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 0.9rem center;
    background-repeat: no-repeat;
    background-size: 0.85rem;
    color: inherit;
    font: inherit;
    font-size: 0.94rem;
}

.animal-filters__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.animal-filters__actions .button {
    margin-top: 0;
}

.animal-catalog__summary {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.animal-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.animal-card__visual {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--forest-light);
    text-decoration: none;
}

.animal-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.animal-card:hover .animal-card__visual img {
    transform: scale(1.025);
}

.animal-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 9vw, 7rem);
}

.animal-card__body {
    padding: 1.4rem;
}

.animal-card__body h3 a {
    text-decoration: none;
}

.animal-card__facts {
    display: flex;
    gap: 0.35rem 0.8rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.animal-card__facts span:not(:last-child)::after {
    margin-left: 0.8rem;
    color: #a3afbb;
    content: "·";
}

.animal-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--forest);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.animal-card__visual .animal-status {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 15%);
}

.animal-status--adopted {
    background: var(--accent);
}

.animal-status--treatment,
.animal-status--temporarily_unavailable {
    background: #76558f;
}

.animal-status--memorial {
    background: #555b65;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.pagination a:last-child {
    justify-self: end;
}

.pagination > span {
    color: var(--muted);
}

.animal-profile__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.animal-profile__heading h1 {
    margin-bottom: 0;
}

.animal-gallery {
    margin-bottom: clamp(3rem, 7vw, 5rem);
}

.animal-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.animal-gallery__item {
    overflow: hidden;
    margin: 0;
    border-radius: 1.25rem;
    background: var(--ink);
}

.animal-gallery__item:first-child {
    grid-column: 1 / -1;
}

.animal-gallery__image-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.animal-gallery__item img,
.animal-gallery__item video,
.animal-gallery__item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    object-fit: cover;
}

.animal-gallery__item:first-child img,
.animal-gallery__item:first-child video,
.animal-gallery__item:first-child iframe {
    max-height: 42rem;
}

.animal-gallery__item figcaption {
    padding: 0.8rem 1rem;
    color: #f1ede4;
    font-size: 0.86rem;
}

.gallery-dialog {
    width: min(70rem, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: #151713;
    color: #fff;
}

.gallery-dialog::backdrop {
    background: rgb(10 11 9 / 82%);
}

.gallery-dialog img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.gallery-dialog p {
    margin: 0;
    padding: 1rem 1.25rem;
    color: #fff;
}

.gallery-dialog__close {
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    place-items: center;
    border-radius: 999px;
    background: rgb(0 0 0 / 72%);
    font-size: 1.8rem;
    line-height: 1;
}

.animal-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.animal-profile__text-section {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.animal-profile__text-section h2,
.animal-facts h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.animal-facts {
    position: sticky;
    top: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.animal-facts .details-list > div {
    grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.animal-facts__actions {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.animal-similar {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
}

.site-footer {
    margin-top: auto;
    padding-block: 2.5rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.86rem;
}

.site-footer__inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 3rem;
}

.brand--footer {
    color: #fff;
    font-size: 1.2rem;
}

.brand--footer .brand__mark {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.site-footer p {
    max-width: 29rem;
    margin: 0.8rem 0 0;
    color: #c9d2dc;
    line-height: 1.5;
}

.site-footer .site-footer__copyright {
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

.footer-contacts {
    display: grid;
    gap: 0.3rem;
    margin-top: 1rem;
    color: #c9d2dc;
    font-size: 0.84rem;
    font-style: normal;
}

.footer-contacts a {
    width: fit-content;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
}

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

/* Authentication screens */
.shell {
    display: grid;
    min-height: 65vh;
    place-items: center;
    padding: 3rem 1.25rem;
}

.card {
    width: min(42rem, 100%);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: 0 1rem 3rem rgb(37 36 31 / 8%);
}

.auth-card {
    display: grid;
    max-width: 28rem;
    gap: 0.75rem;
}

.auth-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 7vw, 3rem);
}

label {
    font-weight: 700;
}

input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #b9c4cf;
    border-radius: 0.75rem;
    background: #fff;
    color: inherit;
    font: inherit;
}

input:focus {
    border-color: var(--accent);
}

input[type="checkbox"] {
    width: 1.1rem;
    min-height: 1.1rem;
    accent-color: var(--accent);
}

button {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    background: #183845;
    color: #fff;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: #fde8e5;
    color: #8b1f16;
}

.alert-success {
    background: #e7f5eb;
    color: #245c32;
}

.form-help {
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #8b1f16;
}

.auth-actions {
    display: grid;
    gap: 0.75rem;
}

.back-link {
    justify-self: center;
    color: var(--muted);
}

.admin-operation-card {
    max-width: 34rem;
}

.operation-note {
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 0.3rem solid var(--accent);
    border-radius: 0.65rem;
    background: #fbecef;
}

.operation-note p {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
}

.operation-summary {
    display: grid;
    gap: 0;
    overflow: hidden;
    margin: 0 0 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #f8fafc;
}

.operation-summary div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.operation-summary div + div {
    border-top: 1px solid var(--line);
}

.operation-summary dt {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.operation-summary dd {
    overflow-wrap: anywhere;
    margin: 0;
}

.operation-preview {
    max-height: 18rem;
    overflow: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fff;
    font-size: 0.95rem;
}

.operation-preview > :first-child {
    margin-top: 0;
}

.operation-preview > :last-child {
    margin-bottom: 0;
}

/* Fundraisers and public reporting */
.fundraiser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.fundraiser-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.fundraiser-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--forest-light);
}

.fundraiser-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fundraiser-card__body {
    padding: 1.2rem;
}

.fundraiser-card__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.8rem;
}

.fundraiser-status {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: var(--forest-light);
    color: var(--forest);
    font-weight: 750;
}

.fundraiser-status--paused,
.fundraiser-status--planned {
    background: #fff0ce;
    color: #714b0c;
}

.fundraiser-status--completed {
    background: #e1eee4;
    color: #245c32;
}

.fundraiser-card h2 {
    margin: 0.8rem 0 0.55rem;
    font-size: 1.25rem;
}

.fundraiser-card h2 a {
    text-decoration: none;
}

.fundraiser-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.fundraiser-progress {
    overflow: hidden;
    height: 0.55rem;
    margin-top: 1rem;
    border-radius: 999px;
    background: #dce4ec;
}

.fundraiser-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.fundraiser-progress--overfunded span {
    background: repeating-linear-gradient(135deg, var(--accent) 0 0.7rem, #f09aad 0.7rem 1.4rem);
}

.fundraiser-progress--large {
    height: 0.8rem;
    margin-top: 1.5rem;
}

.fundraiser-card__amounts {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.65rem 0 1rem;
}

.fundraiser-card__amounts span {
    color: var(--muted);
    font-size: 0.82rem;
}

.fundraiser-trust-note {
    max-width: 52rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border-left: 0.3rem solid var(--forest);
    border-radius: 0.75rem;
    background: var(--forest-light);
}

.fundraiser-trust-note h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.content-fundraisers {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.content-fundraisers .fundraiser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fundraiser-profile__back {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.fundraiser-profile__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--line);
}

.fundraiser-profile__hero:has(.fundraiser-profile__copy:only-child) {
    grid-template-columns: minmax(0, 48rem);
}

.fundraiser-profile__copy h1 {
    max-width: 48rem;
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.fundraiser-profile__lead {
    max-width: 44rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.6;
}

.fundraiser-profile__amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.8rem 0 1.4rem;
}

.fundraiser-profile__amounts div {
    display: grid;
    gap: 0.15rem;
}

.fundraiser-profile__amounts strong {
    font-size: 1.1rem;
}

.fundraiser-profile__amounts span {
    color: var(--muted);
    font-size: 0.78rem;
}

.fundraiser-profile__cover {
    overflow: hidden;
    margin: 0;
    border-radius: 1.25rem;
    background: var(--forest-light);
}

.fundraiser-profile__cover img {
    width: 100%;
    max-height: 28rem;
    object-fit: cover;
}

.fundraiser-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.fundraiser-profile__main h2,
.fundraiser-section h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.fundraiser-accounting {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.fundraiser-accounting h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.fundraiser-accounting > p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.fundraiser-section {
    margin-top: clamp(3rem, 7vw, 5rem);
}

.fundraiser-timeline {
    display: grid;
    gap: 1.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--line);
}

.fundraiser-timeline article {
    position: relative;
}

.fundraiser-timeline article::before {
    position: absolute;
    top: 0.25rem;
    left: -1.65rem;
    width: 0.7rem;
    height: 0.7rem;
    border: 0.2rem solid var(--paper);
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.fundraiser-timeline time,
.expense-list time,
.report-card time {
    color: var(--muted);
    font-size: 0.8rem;
}

.fundraiser-timeline h3 {
    margin: 0.25rem 0 0.5rem;
}

.fundraiser-outcome {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--forest-light);
}

.expense-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.expense-list article {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.2rem;
}

.expense-list article + article {
    border-top: 1px solid var(--line);
}

.expense-list h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.expense-list p {
    margin: 0.25rem 0;
}

.expense-list small,
.report-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
}

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

.report-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.report-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--forest-light);
}

.report-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-card > div {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.report-card span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-card h3 {
    margin: 0;
    font-size: 1rem;
}

.report-card__fundraiser {
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.fundraiser-section__more {
    display: inline-block;
    margin-top: 1.25rem;
}

.report-filters {
    display: grid;
    grid-template-columns: minmax(7rem, 0.55fr) minmax(14rem, 1.45fr) minmax(12rem, 1fr) auto;
    gap: 0.9rem;
    align-items: end;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.report-filters label {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.report-filters label > span {
    font-size: 0.8rem;
}

.report-filters__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-filters__actions .button {
    margin: 0;
    white-space: nowrap;
}

.report-catalog__summary {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 56rem) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding-block: 1rem;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        white-space: nowrap;
    }

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

    .hero__visual {
        min-height: 13rem;
    }

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

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

    .fundraiser-profile__hero,
    .fundraiser-profile__layout {
        grid-template-columns: 1fr;
    }

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

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

    .animal-filters__grid label:first-child {
        grid-column: 1 / -1;
    }

    .animal-filters__grid label:nth-child(n + 2) {
        grid-column: auto;
    }

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

    .animal-profile__layout {
        grid-template-columns: 1fr;
    }

    .animal-facts {
        position: static;
    }
}

@media (max-width: 40rem) {
    .site-header__inner,
    .site-footer__inner,
    .hero__inner,
    .section,
    .support-callout,
    .page-shell,
    .article-shell {
        width: min(100% - 1.5rem, 74rem);
    }

    .site-nav {
        gap: 1rem;
        flex-wrap: wrap;
        overflow: visible;
        white-space: normal;
    }

    .hero__inner {
        min-height: auto;
        padding-block: 3rem;
    }

    .hero__visual {
        display: none;
    }

    .section__heading,
    .support-callout,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .fundraiser-grid,
    .report-grid,
    .fundraiser-profile__amounts {
        grid-template-columns: 1fr;
    }

    .expense-list article {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

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

    .animal-filters__grid,
    .animal-grid,
    .animal-gallery__grid {
        grid-template-columns: 1fr;
    }

    .animal-filters__grid label:first-child,
    .animal-filters__grid label:nth-child(n + 2) {
        grid-column: auto;
    }

    .animal-gallery__item:first-child {
        grid-column: auto;
    }

    .animal-profile__heading,
    .animal-filters__actions {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .pagination a:last-child {
        justify-self: start;
    }

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

    .details-list > div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .document-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .document-row .button {
        width: fit-content;
    }

    .search-form__controls {
        grid-template-columns: 1fr;
    }

    .support-callout {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.form-global-error {
    margin-block: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #bd5c55;
    border-radius: 0.75rem;
    color: #7a211c;
    background: #fff0ee;
}

.form-global-error ul {
    margin: 0;
    padding-left: 1.25rem;
}
