.preserve-lines { white-space: pre-line; }
:root {
  --ink: #252322;
  --muted: #6d625c;
  --paper: #fffaf2;
  --cream: #f4e8d4;
  --rust: #a94d38;
  --rust-dark: #783426;
  --sage: #6f8061;
  --line: #e4d5c1;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper) url('images/backgrounds/spring.jpg') center top / cover fixed; font-family: Georgia, 'Times New Roman', serif; line-height: 1.65; }
a { color: var(--rust-dark); }
a:hover { color: var(--rust); }
.site-header { background: rgba(255, 250, 242, .65); border-bottom: 1px solid rgba(228, 213, 193, .8); position: sticky; top: 0; z-index: 5; overflow-anchor: none; transition: box-shadow .2s ease; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.header-inner { max-width: var(--max); margin: auto; padding: 1rem 1.4rem; display: flex; align-items: center; justify-content: flex-start; gap: 2rem; flex-wrap: wrap; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .85rem; order: 1; margin: 0 0 0 auto; max-height: 160px; overflow: hidden; opacity: 1; will-change: opacity; transition: opacity .15s ease-out; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand img.archive-logo { width: 500px; height: 160px; object-fit: contain; }
.brand > span { display: none; }
.compact-brand { display: none; flex: 0 0 auto; order: 3; margin-left: auto; line-height: 0; border: 0; padding: 0; background: transparent; cursor: pointer; }
.compact-brand img { width: 72px; height: 62px; object-fit: contain; }
.brand strong { display: block; font-size: 1.2rem; line-height: 1.15; }
.brand span { color: var(--muted); font-size: .8rem; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .25rem; width: 100%; margin-left: 0; order: 2; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; padding: .45rem .65rem; border-radius: 3px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--rust-dark); background: var(--cream); }
.account-menu { position: relative; margin-left: auto; border-left: 1px solid var(--line); padding-left: .65rem; }
.account-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--rust-dark); cursor: pointer; }
.account-button:hover, .account-button[aria-expanded='true'] { background: var(--cream); }
.account-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-dropdown { position: absolute; top: calc(100% + .55rem); right: 0; z-index: 10; display: none; min-width: 190px; padding: .35rem; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(37, 35, 34, .16); }
.account-dropdown[data-open] { display: grid; }
.account-dropdown a { display: block; padding: .55rem .7rem; white-space: nowrap; }
.account-dropdown a:hover { background: var(--cream); }
.account-menu[hidden], .account-dropdown a[hidden] { display: none; }
.menu-button { display: none !important; }
.site-header.compact { box-shadow: 0 2px 12px rgba(37, 35, 34, .12); }
.site-header.compact .header-inner { position: relative; min-height: 72px; padding: .3rem 6.5rem .3rem 1.4rem; gap: .75rem; flex-wrap: wrap; }
.site-header.compact .header-inner { position: relative; }
.site-header.compact .brand { width: 0; max-height: 0; margin: 0; flex: 0 0 0; opacity: 0; transform: translateY(-12px); }
.site-header.compact .compact-brand { display: block; }
.site-header.compact .account-menu > .account-button { display: none; }
.site-header.compact .account-dropdown { position: fixed; top: 4.3rem; right: max(1.4rem, calc((100vw - var(--max)) / 2 + 1.4rem)); }
.site-header.compact .menu-button { display: block; order: 1; }
.site-header.compact .nav { display: flex; justify-content: flex-start; width: 100%; order: 4; }
.site-header.compact .brand { order: 2; }
.site-header.compact .compact-brand { position: absolute; top: .3rem; right: 1.4rem; order: 3; margin-left: 0; }
.hero { min-height: 580px; display: grid; align-items: end; background: linear-gradient(90deg, rgba(27,21,17,.72), rgba(27,21,17,.05)), url('images/index3.JPG') center/cover; }
.hero-content { max-width: var(--max); width: 100%; margin: auto; padding: 6rem 1.4rem 4.5rem; color: white; }
.eyebrow { color: var(--rust-dark); text-transform: uppercase; letter-spacing: .12em; font: 700 .72rem/1.2 Arial, sans-serif; }
.hero .eyebrow { color: #f3c8a5; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); max-width: 760px; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; color: var(--rust-dark); }
.hero p { max-width: 570px; font-size: 1.2rem; margin: 0 0 1.6rem; }
.button { display: inline-block; background: var(--rust); color: white; text-decoration: none; padding: .75rem 1.1rem; border: 0; border-radius: 3px; font: 700 .9rem Arial, sans-serif; }
.button:hover { background: var(--rust-dark); color: white; }
.button.secondary { background: transparent; border: 1px solid currentColor; color: inherit; margin-left: .5rem; }
.section { max-width: var(--max); margin: auto; padding: 5rem 1.4rem; }
.section-intro { max-width: 650px; margin-bottom: 2rem; padding: 1.4rem 1.6rem 1.5rem; background: rgba(255, 250, 242, .65); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; box-shadow: 0 8px 24px rgba(37, 35, 34, .14); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.section-intro .eyebrow, .content-grid > div:first-child .eyebrow, .content.text-panel .eyebrow { color: var(--rust-dark); }
.cream-band { background: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: white; border: 1px solid var(--line); padding: 1.5rem; }
.card p { color: var(--muted); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: -1.5rem -1.5rem 1rem; width: calc(100% + 3rem); }
.support-page { padding-top: 3.5rem; }
.support-page > .content { padding: 0; }
.support-block { padding: 2rem 0 2.5rem; border-bottom: 1px solid rgba(120, 52, 38, .2); }
.support-block:first-child { padding-top: 0; }
.support-block:last-child { border-bottom: 0; }
.support-block-heading { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: rgba(255, 250, 242, .86); border: 1px solid rgba(120, 52, 38, .18); border-radius: 6px; }
.support-block-heading h2 { margin: .25rem 0 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.support-block-heading > p { margin: 0; max-width: 650px; color: var(--muted); }
.support-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.support-card { display: grid; align-content: start; gap: .55rem; min-width: 0; padding: 1.35rem; background: rgba(255, 250, 242, .9); border: 1px solid rgba(120, 52, 38, .24); border-radius: 6px; }
.support-card h3, .support-card p { margin-top: 0; }
.support-card p { color: #403631; }
.support-card .paypal-form { margin-top: auto; padding-top: .5rem; }
.support-store .support-card { max-width: 620px; }
.support-link-card { grid-template-columns: minmax(120px, .38fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.support-link-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: rgba(255, 255, 255, .84); border: 1px solid var(--line); }
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 4rem max(1.4rem, calc((100% - var(--max)) / 2)); }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); max-width: 850px; }
.page-hero p { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.success-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 3rem; align-items: stretch; }
.success-hero-copy { align-self: center; }
.success-hero .recent-adoptions { margin: 0; padding: 1rem 0 0 2rem; border-top: 0; border-left: 1px solid var(--line); }
.success-hero .recent-adoptions h2 { font-size: 1.8rem; }
.success-hero .recent-list { grid-template-columns: 1fr; gap: .75rem; }
.success-hero .success-card { width: 66.666%; padding: .75rem; gap: .65rem; }
.success-hero .success-notes { -webkit-line-clamp: 3; }
.content { max-width: var(--max); margin: auto; padding: 4rem 1.4rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 3rem; }
.content-grid > div:first-child, .content.text-panel { padding: 1.6rem; background: rgba(255, 250, 242, .65); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; box-shadow: 0 8px 24px rgba(37, 35, 34, .14); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.foster-card { padding: 1.6rem; background: rgba(255, 250, 242, .65); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; box-shadow: 0 8px 24px rgba(37, 35, 34, .14); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.foster-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr); gap: 2rem; align-items: start; }
.foster-intro h2 { margin-top: 0; }
.foster-support { display: grid; gap: 1rem; }
.foster-support img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foster-support .callout { margin: 0; }
.adoption-live { margin-bottom: 2rem; padding: 1.2rem 1.3rem; background: rgba(255, 255, 255, .58); border: 1px solid rgba(120, 52, 38, .2); border-radius: 6px; }
.adoption-live .eyebrow { color: var(--rust-dark); }
.adoptable-section { margin: 0 0 3rem; padding: 1.3rem; background: rgba(255, 255, 255, .58); border: 1px solid rgba(120, 52, 38, .2); border-radius: 6px; }
.adoptable-section h2 { font-size: 2rem; }
.adoptable-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.adoptable-card { display: grid; gap: 1rem; padding: 1rem; background: white; border: 1px solid var(--line); }
.adoptable-card-image, .adoptable-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.adoptable-card h3 { margin-bottom: .35rem; }
.adoptable-card-link { display: block; color: var(--rust-dark); text-decoration: none; }
.adoptable-card-link:hover { text-decoration: underline; }
.adoptable-card p { margin: 0; }
.adoptable-meta { color: var(--rust-dark); font: 700 .78rem/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.adoptable-status-icons { display: flex; flex-wrap: wrap; gap: .35rem; margin: .55rem 0 .7rem; min-height: 32px; align-items: center; }
.adoptable-status-icons img { width: 32px; height: 32px; object-fit: contain; }
.animal-status-wrap { margin: 1rem 0 1.25rem; }
.animal-status-wrap .adoptable-status-icons { margin: 0; }
.status-legend { margin-top: .45rem; color: var(--muted); font-size: .78rem; }
.status-legend summary { display: inline-block; cursor: pointer; color: var(--rust-dark); }
.status-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem .75rem; margin-top: .65rem; padding: .7rem; background: rgba(244, 232, 212, .55); border: 1px solid var(--line); }
.status-legend-grid > span { display: flex; align-items: center; gap: .4rem; }
.status-legend-grid img { width: 24px; height: 24px; object-fit: contain; }
.loading-state, .adoptable-status { color: var(--muted); }
.adoptable-status { margin: .75rem 0 0; font-size: .85rem; }
.success-page { max-width: var(--max); background: rgba(255, 250, 242, .96); }
.success-page .eyebrow, .recent-adoptions .eyebrow { color: var(--rust-dark); }
.success-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-bottom: 1rem; }
.success-toolbar h2 { margin-bottom: .4rem; }
.success-summary { color: var(--muted); margin: 0; }
.success-filters { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
.success-filters label { display: grid; gap: .25rem; color: var(--muted); font: 700 .78rem/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.success-filters input, .success-filters select { min-height: 42px; padding: .55rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.success-presets { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 0 1.8rem; border-bottom: 1px solid var(--line); }
.success-presets button { border: 1px solid var(--line); padding: .5rem .7rem; background: rgba(255, 255, 255, .65); color: var(--rust-dark); cursor: pointer; font: 700 .82rem Arial, sans-serif; }
.success-presets button:hover { background: var(--cream); }
.success-list, .recent-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: 1.8rem; }
.success-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1.5rem; }
.success-pagination[hidden] { display: none; }
.success-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.success-page-status { min-width: 7rem; color: var(--muted); text-align: center; font: 700 .82rem/1.2 Arial, sans-serif; }
.success-page-size { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font: 700 .78rem/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.success-page-size select { min-height: 42px; padding: .55rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.success-card { display: grid; gap: 1rem; padding: 1rem; background: white; border: 1px solid var(--line); }
.success-card-image, .success-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.success-card h3 { margin-bottom: .3rem; }
.success-notes { color: var(--muted); margin: .65rem 0 0; font-size: .9rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.recent-adoptions { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.recent-adoptions h2 { font-size: 2rem; margin: .35rem 0 0; }
.recent-list { padding-top: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adoption-page .content-grid { display: block; }
.adoption-page .content-grid > aside { margin: 1.5rem 0; }
.animal-profile { max-width: var(--max); background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 24px rgba(37, 35, 34, .14); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.animal-profile-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.animal-profile-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); border: 1px solid var(--line); }
.animal-profile-description { max-width: none; }
.animal-adoption { width: 100%; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.animal-adoption h2 { font-size: 1.8rem; }
.animal-adoption .callout { margin-top: 1.5rem; }
.animal-facts { display: grid; grid-template-columns: minmax(100px, .35fr) 1fr; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.animal-facts dt, .animal-facts dd { margin: 0; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.animal-facts dt { font-weight: 700; }
.animal-facts dd { color: var(--muted); }
.content p, .content li { max-width: 700px; }
.content ul { padding-left: 1.2rem; }
.callout { border-left: 4px solid var(--sage); background: #eef1e9; padding: 1.3rem 1.5rem; margin: 1.5rem 0; }
.embed-shell { margin-top: 1rem; padding: 1rem; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 6px; }
.embed { display: block; min-height: 520px; width: 100%; border: 1px solid var(--line); background: white; }
.embed-loading { margin: 0 0 .7rem; color: var(--muted); font: 700 .8rem/1.3 Arial, sans-serif; }
.embed-fallback { display: block; margin-top: .75rem; color: var(--rust-dark); font: 700 .82rem/1.3 Arial, sans-serif; }
.embed-shell.embed-loaded .embed-fallback { margin-top: .55rem; }
.admin-panel { max-width: 760px; padding: 1.6rem; background: rgba(255, 250, 242, .8); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; box-shadow: 0 8px 24px rgba(37, 35, 34, .14); }
.admin-panel form { display: grid; gap: .55rem; margin-bottom: 2.5rem; }
.admin-panel h2 { font-size: 1.8rem; margin-top: 0; }
.admin-panel label { font-weight: 700; }
.admin-panel label span, .form-note { color: var(--muted); font-weight: 400; }
.admin-panel input, .admin-panel select, .admin-panel textarea { width: 100%; padding: .7rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.admin-panel input[type='checkbox'] { width: auto; }
.admin-panel .button { justify-self: start; margin-top: .6rem; cursor: pointer; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.admin-settings-grid > div { display: grid; gap: .55rem; align-content: start; }
.admin-settings-grid h3 { margin: 0 0 .25rem; }
.admin-settings-grid input, .admin-settings-grid select { width: 100%; padding: .7rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.saved-state { min-height: 1.5rem; color: var(--muted); }
.saved-state.success { color: var(--sage); }
.saved-state.error { color: var(--rust-dark); }
.test-result { border-top: 1px solid var(--line); padding-top: 1rem; }
.test-result h2 { margin-bottom: .5rem; }
.test-result pre { max-height: 360px; overflow: auto; padding: 1rem; background: #292521; color: #f7ecdc; white-space: pre-wrap; overflow-wrap: anywhere; font: .8rem/1.5 Consolas, monospace; }
.admin-locked { max-width: 760px; padding: 1.6rem; background: rgba(255, 250, 242, .8); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; }
.admin-header { position: sticky; }
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; max-width: var(--max); margin: auto; padding: 3rem 1.4rem 5rem; }
.admin-sidebar { align-self: start; position: sticky; top: 86px; padding: 1.4rem; background: rgba(255, 250, 242, .86); border: 1px solid var(--line); border-radius: 8px; }
.admin-sidebar h1 { font-size: 2rem; margin: .35rem 0 1.3rem; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav-group { display: grid; gap: .2rem; margin-bottom: .9rem; }
.admin-nav-group > span { padding: .35rem .65rem; color: var(--muted); font: 700 .7rem/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.admin-nav a { padding: .55rem .65rem; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a[aria-current='page'] { color: var(--rust-dark); background: var(--cream); border-left-color: var(--rust); }
.admin-workspace { min-width: 0; }
.admin-section { padding: 1.8rem; background: rgba(255, 250, 242, .8); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; box-shadow: 0 8px 24px rgba(37, 35, 34, .14); }
.admin-section h2 { font-size: 2.5rem; }
.admin-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.admin-card-grid article, .admin-list-row { display: grid; gap: .45rem; align-content: start; padding: 1rem; background: rgba(255, 255, 255, .64); border: 1px solid var(--line); }
.admin-card-grid article span, .admin-list-row span { color: var(--muted); font-size: .92rem; }
.admin-card-grid .button { justify-self: start; margin-top: .5rem; }
.background-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.background-card { display: grid; gap: .7rem; padding: .7rem; background: rgba(255, 255, 255, .64); border: 1px solid var(--line); cursor: pointer; }
.background-card:hover, .background-card:focus-visible { border-color: var(--rust); box-shadow: 0 0 0 2px rgba(120, 52, 38, .14); outline: 0; }
.background-card.selected { border: 2px solid var(--rust); padding: calc(.7rem - 1px); }
.background-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); }
.background-card div { display: grid; gap: .2rem; }
.background-card span { color: var(--muted); font-size: .82rem; }
.background-card .button { justify-self: start; margin: 0; }
.admin-editor { display: grid; gap: .55rem; max-width: 680px; }
.admin-editor h3 { margin-top: 1rem; }
.admin-editor textarea { resize: vertical; }
.site-content-editor { max-width: none; gap: 1.25rem; }
.site-content-editor fieldset { display: grid; gap: .85rem; min-width: 0; margin: 0; padding: 1.25rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .48); }
.site-content-editor legend { padding: 0 .45rem; color: var(--rust-dark); font-size: 1.15rem; font-weight: 700; }
.site-content-editor label { display: grid; gap: .3rem; color: var(--muted); font: 700 .78rem/1.25 Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.site-content-editor input, .site-content-editor textarea { width: 100%; min-width: 0; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 3px; background: rgba(255, 255, 255, .9); color: var(--ink); font: 1rem/1.4 Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.site-content-editor input { min-height: 2.75rem; }
.site-content-editor textarea { min-height: 7rem; }
.site-content-editor label:has(textarea[rows='2']) textarea { min-height: 5rem; }
.site-content-editor .button { justify-self: start; margin-top: .25rem; }
.image-link-widget { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: .45rem; }
.image-link-preview { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; object-fit: contain; background: #fff; }
.image-link-widget input[type='file'] { max-width: 16rem; font-size: .8rem; }
.image-link-widget .button { margin-top: 0; }
.donation-tier-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.donation-tier-buttons .paypal-form { margin: 0; }
.identity-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.identity-tabs button { border: 0; border-bottom: 3px solid transparent; padding: .65rem .8rem; background: transparent; color: var(--muted); cursor: pointer; font: 700 .8rem Arial, sans-serif; }
.identity-tabs button[aria-selected='true'] { border-bottom-color: var(--rust); color: var(--rust-dark); }
[data-identity-panel][hidden] { display: none; }
.admin-animal-preview { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.admin-preview-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.admin-preview-heading h3 { margin: 0 0 .25rem; }
.admin-preview-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.admin-animal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.admin-animal-card { display: grid; gap: .65rem; padding: .7rem; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); }
.admin-animal-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.admin-animal-card h4 { margin: 0 0 .2rem; }
.admin-animal-card .adoptable-meta { margin: 0 0 .6rem; font-size: .7rem; }
.admin-animal-card .button { padding: .45rem .6rem; font-size: .78rem; }
.admin-success-preview { margin-top: 1.5rem; }
.admin-preview-subsection { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.animal-detail-dialog { width: min(1080px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0 1.5rem 1.5rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(37, 35, 34, .3); overflow: auto; }
.animal-detail-dialog::backdrop { background: rgba(37, 35, 34, .56); }
.animal-detail-dialog > form { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; background: var(--cream); }
.animal-detail-bar-info { min-width: 0; overflow: hidden; color: var(--rust-dark); font: 700 .85rem/1.2 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dialog-close { border: 1px solid var(--line); padding: .45rem .7rem; background: white; color: var(--rust-dark); cursor: pointer; font: 700 .8rem Arial, sans-serif; }
.success-detail-body { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.success-detail-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: white; }
.success-detail-body h3 { margin: .25rem 0 .35rem; font-size: 2rem; }
.success-detail-body .success-notes { white-space: pre-line; }
.animal-detail-content { padding-top: .5rem; }
.animal-detail-heading { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); grid-template-areas: 'image intro' 'image identity'; gap: .85rem 1.25rem; align-items: start; }
.animal-detail-heading > div:first-child { grid-area: intro; }
.animal-detail-heading > .animal-detail-image { grid-area: image; }
.animal-detail-heading > fieldset { grid-area: identity; }
.animal-detail-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: white; }
.animal-detail-heading h3 { margin: .25rem 0 .35rem; font-size: 2rem; }
.animal-detail-heading fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; align-content: start; min-width: 0; padding: .75rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.animal-detail-heading fieldset label:last-child { grid-column: 1 / -1; }
.animal-detail-heading input, .animal-detail-heading textarea { width: 100%; min-width: 0; padding: .45rem; border: 1px solid var(--line); background: white; color: var(--ink); font: .85rem/1.35 inherit; }
.animal-detail-heading textarea { min-height: clamp(12rem, 24vh, 18rem); resize: vertical; }
.animal-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.25rem; }
.animal-edit-grid fieldset { display: grid; gap: .45rem; align-content: start; min-width: 0; padding: .75rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.animal-edit-grid legend { padding: 0 .35rem; font-weight: 700; }
.animal-edit-grid label { display: grid; gap: .2rem; color: var(--muted); font: 700 .72rem/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.animal-edit-grid input, .animal-edit-grid textarea { width: 100%; min-width: 0; padding: .45rem; border: 1px solid var(--line); background: white; color: var(--ink); font: .85rem/1.35 inherit; }
.animal-edit-grid textarea { min-height: 3.2rem; resize: vertical; }
.api-parameters { display: grid; gap: .55rem; margin: .5rem 0; }
.api-parameters:empty { display: none; }
.api-parameters input[type='checkbox'] { width: auto; }
.test-result { margin-top: 2rem; }
.account-panel { max-width: 760px; padding: 1.6rem; background: rgba(255, 250, 242, .8); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; box-shadow: 0 8px 24px rgba(37, 35, 34, .14); }
.account-detail { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.account-detail span { overflow-wrap: anywhere; color: var(--muted); }
.site-footer { background: #292521; color: #f7ecdc; padding: 3rem 1.4rem 1.5rem; }
.footer-inner { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer a { color: #f3c8a5; }
.site-footer .footer-inner:first-child p a { white-space: nowrap; }
.site-footer .social-link { display: inline-flex; align-items: center; gap: .45rem; margin-right: .75rem; }
.site-footer .social-icon { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.support-link-card { display: grid; grid-template-columns: minmax(120px, .38fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.support-link-image { width: 100%; height: 135px; object-fit: contain; object-position: left center; margin: 0; }
.footer-note { border-top: 1px solid #554940; margin-top: 2rem; padding-top: 1rem; color: #c7b9aa; font-size: .82rem; }
@media (max-width: 760px) {
  .brand { width: 100%; justify-content: center; }
  .brand img.archive-logo { width: min(500px, 100%); height: auto; }
  .site-header.compact .menu-button { display: none !important; }
  .menu-button { display: none !important; }
  .nav { display: flex; width: 100%; justify-content: flex-start; }
  .site-header.compact .nav { display: flex; width: 100%; }
  .site-header.compact .header-inner { min-height: 68px; padding-right: 5.5rem; }
  .site-header.compact .compact-brand { right: .75rem; }
  .nav a { width: auto; }
  .account-menu { width: 100%; margin-left: 0; border-left: 0; border-top: 1px solid var(--line); padding: .5rem 0 0; }
  .account-button { margin-left: .65rem; }
  .account-dropdown { position: static; margin-top: .5rem; box-shadow: none; }
  .hero { min-height: 650px; }
  .hero-content { padding-bottom: 3rem; }
  .button.secondary { margin: .7rem 0 0; }
  .grid, .content-grid { grid-template-columns: 1fr; }
  .support-block-heading { grid-template-columns: 1fr; gap: .35rem; align-items: start; }
  .support-card-grid { grid-template-columns: 1fr; }
  .support-link-card { grid-template-columns: minmax(100px, .4fr) minmax(0, 1fr); }
  .foster-intro { grid-template-columns: 1fr; }
  .foster-support { width: min(100%, 260px); justify-self: center; }
  .adoptable-list { grid-template-columns: 1fr; }
  .success-hero { grid-template-columns: 1fr; gap: 2rem; }
  .success-hero .recent-adoptions { padding: 2rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .success-toolbar { grid-template-columns: 1fr; gap: 1rem; }
  .success-filters { align-items: stretch; }
  .success-filters label, .success-filters input, .success-filters .button { width: 100%; }
  .success-list, .recent-list { grid-template-columns: 1fr; }
  .success-hero .success-card { width: 100%; }
  .animal-profile-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .animal-detail-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); padding: 0 .85rem .85rem; }
  .animal-detail-heading { grid-template-columns: 1fr; grid-template-areas: 'intro' 'image' 'identity'; }
  .animal-detail-image { max-width: 240px; }
  .animal-edit-grid { grid-template-columns: 1fr; }
  .status-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.5rem; }
  .admin-sidebar { position: static; }
  .admin-nav { display: flex; overflow-x: auto; padding-bottom: .3rem; }
  .admin-nav a { flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .admin-nav a:hover, .admin-nav a[aria-current='page'] { border-left-color: transparent; border-bottom-color: var(--rust); }
  .admin-section { padding: 1.2rem; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .section, .content { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
