/* Amelia Air — static rebuild of the Squarespace site.
   Values measured from the live site at 1440px (Squarespace 7.1 theme). */

:root {
  --navy: #253551;          /* accent: buttons, nav, "bright" sections */
  --charcoal: #2a2829;      /* darkAccent: footer and "dark" bands */
  --stone: #e0e0db;         /* lightAccent: "light" sections, cards */
  --ink: #000;
  --white: #fff;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --content: 1200px;
  --gutter: 3vw;
  --section-pad: 3.3vw;
  --header-h: 126px;
  /* Page-level colours (swapped by the dark theme; brand colours above stay fixed) */
  --bg: var(--white);
  --fg: var(--ink);
  --link: var(--navy);       /* navy used as text: nav, links, headings on white */
  --surface: var(--stone);   /* "light" sections and cards */
  --line: rgba(0, 0, 0, .12);
}

/* Dark theme: chosen with the switch in the site menu (see site.js), never automatic. */
[data-theme="dark"] {
  --bg: #15171b;
  --fg: #e7e7e4;
  --link: #a9bfe6;
  --surface: #262a30;
  --line: rgba(255, 255, 255, .22);
  color-scheme: dark;
}
[data-theme="dark"] .logo img { filter: brightness(0) invert(1); }
[data-theme="dark"] .btn { background: #34507e; }
[data-theme="dark"] .theme-bright .btn, [data-theme="dark"] .theme-dark .btn, [data-theme="dark"] .theme-black .btn { background: var(--white); }
[data-theme="dark"] .form select:not(.theme-bright *, .theme-dark *) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23e7e7e4' stroke-width='1.6'/%3E%3C/svg%3E"); }
[data-theme="dark"] .form select option { color: var(--fg); background: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }

h1, h2, h3, h4 { font-weight: 500; margin: 0 0 1rem; line-height: 1.4; }
h1 { font-size: 4rem; line-height: 1.4; }
h2 { font-size: 2.8rem; line-height: 1.3; }
h3 { font-size: 2.2rem; line-height: 1.333; }
h4 { font-size: 1.2rem; line-height: 1.389; }
.text-large { font-size: 1.4rem; line-height: 1.8; }
.text-small { font-size: .892rem; line-height: 1.8; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.spacer { min-height: 1em; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: normal;
  padding: 1.2rem 2.004rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .15s ease;
  text-align: center;
}
.btn:hover { opacity: .8; }
.btn-small { font-size: .892rem; }
.btn-large { font-size: 1.1rem; }
.button-row { margin: 1.5rem 0; }
.button-row.align-center, .center .button-row { text-align: center; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); }
.header-inner {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2.3vw var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo img { width: 373px; max-width: 100%; height: auto; }
.logo { flex: 0 1 373px; }
.main-nav { margin-left: auto; display: flex; gap: .9em; }
.main-nav a {
  color: var(--link);
  text-decoration: none;
  font-size: 1rem;
  padding: .1em 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .social { color: var(--link); display: inline-flex; width: 20px; height: 20px; }
.header-actions .social svg { width: 20px; height: 20px; }
.header-actions .social:first-child { margin-left: .5rem; }
.btn-header { font-size: .892rem; margin-left: 1.5rem; }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative; color: var(--link);
}
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; top: var(--mobile-header-h, 90px); background: var(--bg); z-index: 19;
  padding: 2rem 6vw; display: flex; flex-direction: column; align-items: center; gap: 2rem; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.mobile-menu nav a { font-size: 1.75rem; color: var(--link); text-decoration: none; }
.mobile-menu .btn { width: 100%; max-width: 420px; }
.mobile-social { display: flex; gap: 1.5rem; }
.mobile-social a { color: var(--link); }
.mobile-extra { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; max-width: 420px; }
.mobile-extra a { color: var(--link); }

/* Site menu: hamburger at the far right of the desktop header (theme switch + admin) */
.site-menu { position: relative; margin-left: .4rem; }
.site-menu-toggle {
  display: grid; align-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 10px;
  border: 0; background: none; cursor: pointer; color: var(--link);
}
.site-menu-toggle span { display: block; height: 1.5px; background: currentColor; }
.site-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px; padding: .4rem 0;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.site-menu-panel[hidden] { display: none; }
.site-menu-panel > a, .site-menu-panel > button {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: .6rem 1.1rem; font: inherit; font-size: .95rem; line-height: 1.4; text-align: left;
  color: var(--link); background: none; border: 0; text-decoration: none; cursor: pointer;
}
.site-menu-panel > a:hover, .site-menu-panel > button:hover { background: var(--surface); }
.theme-toggle { font: inherit; color: var(--link); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .8rem; }
.theme-toggle .switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--line); transition: background .15s; }
.theme-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
.theme-toggle[aria-checked="true"] .switch { background: var(--link); }
.theme-toggle[aria-checked="true"] .switch::after { transform: translateX(14px); background: var(--bg); }
.menu-open { overflow: hidden; }

/* ---------- Sections & themes ---------- */
.section { position: relative; padding: var(--section-pad) 0; }
.section.pad-lg { padding: calc(var(--section-pad) * 2) 0; }
.section.tight { padding: 1.5rem 0; }
.section.min-small { min-height: 33vh; display: flex; align-items: center; }
.section.min-medium { min-height: 66vh; display: flex; align-items: center; }
.section.min-small > .container, .section.min-medium > .container { width: 100%; }
.theme-light { background: var(--surface); }
.theme-dark { background: var(--charcoal); color: var(--white); }
.theme-bright { background: var(--navy); color: var(--white); }
.theme-bright .btn, .theme-dark .btn, .theme-black .btn { background: var(--white); color: var(--navy); }
.theme-bright-inverse { background: var(--bg); color: var(--link); }
.theme-black { color: var(--white); background: #000; }
.section-bg { position: absolute; inset: 0; overflow: hidden; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; }
.section-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); }
.section-bg + .container { position: relative; }

main .section:not([class*="theme-"]) p a:not(.btn) { color: var(--link); }

.band { padding: 2rem 0; text-align: center; }
.band.band-slim { padding: 25px 0; }
.band h4 { margin: 0; }
.band a { color: var(--stone); }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 6%; align-items: center; }
.cols-2.top { align-items: start; }
.center { text-align: center; }

/* ---------- Home ---------- */
.hero { position: relative; height: 100vh; min-height: 420px; max-height: 1100px; overflow: hidden; background: #ddd; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero .slide.active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px;
  background: rgba(255, 255, 255, .85); border: 0; cursor: pointer; display: grid; place-items: center; color: #333;
}
.slide-arrow svg { width: 12px; height: 12px; }
.slide-arrow.prev { left: 22px; }
.slide-arrow.next { right: 22px; }

.home-intro.pad-lg { padding: 4rem 0 5rem; }
.home-intro .cols-2 { align-items: start; grid-template-columns: 48.6% 40%; column-gap: 11.4%; }
.home-intro h4 { margin: 0 0 2.2rem; }
.home-intro p { margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 10%; align-items: center; }
.feature h3 { margin-bottom: 2rem; }
.feature .button-row { margin: 2.7rem 0 0; }
.feature figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 541 / 609; object-fit: cover; }

.counter-section { min-height: 717px; display: flex; align-items: flex-end; }
.counter { text-align: center; width: 100%; padding-bottom: 1rem; }
.counter-value { display: block; font-size: 60px; line-height: 2em; }
.counter-label { display: block; text-transform: uppercase; font-size: 22px; line-height: 1.2em; }

.summary { position: relative; }
.summary-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; height: 32px; margin: 0; }
.summary-nav button { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; color: var(--fg); padding: 4px; }
.summary-nav button:disabled { opacity: .3; cursor: default; }
.summary-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.summary-track::-webkit-scrollbar { display: none; }
.summary-item { scroll-snap-align: start; text-align: center; }
.summary-item a { text-decoration: none; }
.summary-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: .8rem; }
.summary-item h3 { font-size: 20px; font-weight: 300; line-height: 1.2; margin: 0 0 .5rem; }
.summary-item p { font-size: .875rem; line-height: 1.4; margin: 0 auto; }
.summary .button-row { margin: 4.65rem 0 1rem; }

.signup { display: grid; grid-template-columns: 1fr 480px; gap: 3rem 0; align-items: center; }
.newsletter { padding-top: 15px; }
.section:has(> .signup) { padding-bottom: 66px; }
.signup .wings img { width: 377px; max-width: 100%; margin: 0 auto 2.1rem; }
.signup .wings { max-width: 373px; }
.signup h3 { font-size: 2.2rem; text-align: center; margin: 0; }
.newsletter p { text-align: center; max-width: 480px; margin: 0 auto 3.6rem; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; }
.newsletter-form input {
  font: inherit; font-size: 1rem; line-height: 1.3; padding: 1.4rem 2rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); min-width: 0; flex: 0 1 280px;
}
.newsletter-form .btn { font-size: 1rem; line-height: 1.3; padding: 1.4rem 2rem; }
.form-status { margin-top: 1rem; text-align: center; }
.form-status[data-state="error"] { color: #b00020; }
.theme-dark .form-status[data-state="error"], .theme-bright .form-status[data-state="error"] { color: #ffb4b4; }

/* ---------- Generic content ---------- */
.prose { max-width: 680px; margin: 0 auto; }
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: .892rem; margin-top: .6rem; }
.prose figcaption:has(p) { font-size: 1rem; }  /* Squarespace image-card text, not a caption */
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 2px solid currentColor; font-size: 1.2rem; }
.prose .button-row { text-align: center; }

/* Video facade (click to play) */
figure.video { margin: 2rem 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0, 0, 0, .55); transition: background .15s;
}
.yt .play::after {
  content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.yt:hover .play { background: rgba(0, 0, 0, .8); }
.yt iframe, .video .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .embed { position: relative; aspect-ratio: 16 / 9; }
figure.video figcaption { margin-top: .75rem; }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 8px; margin: 2rem 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 4vw; }
.lightbox img { max-height: 92vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 1rem; }
.lightbox .lb-close { top: 0; right: 0; }
.lightbox .lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0; top: 50%; transform: translateY(-50%); }

/* ---------- About ---------- */
.mission.pad-lg { padding-bottom: 7rem; }
.mission h2 { margin-bottom: 2rem; }
.mission .wide-image { margin: 2.2rem 0 2.1rem; }
.mission .wide-image img { width: 100%; aspect-ratio: 1200 / 475; object-fit: cover; }
.team { display: flex; flex-direction: column; gap: 34px; margin-top: 34px; }
.member { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 10%; align-items: center; }
.member img { width: 100%; }
.member h4 { margin-bottom: 2.2rem; }
.team-heading { margin-top: 6.4rem; }
.about-closing { min-height: 958px; align-items: flex-start; padding-top: 6rem; }
.about-closing h4 { max-width: 600px; margin: 0 auto; text-align: center; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 2.5%; align-items: start; }
.contact-grid figure { margin: 0; }
.contact-page h2 { margin-bottom: 2rem; }
.contact-page .form { margin-top: 2.1rem; }
.contact-grid figure img { width: 100%; }
.social-icons { display: flex; gap: 14px; margin-top: 1rem; }
.social-icons a { display: inline-flex; width: 22px; height: 22px; }
.social-icons svg { width: 22px; height: 22px; }

.form { margin-top: 1.75rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.form legend, .form .field > label { display: block; padding: 0 0 4px; }
.form .req { opacity: .7; font-size: .892rem; margin-left: .35em; }
.form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .name-row label { font-size: .892rem; }
.form .field { margin-bottom: 1.25rem; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  display: block; width: 100%; font: inherit; color: inherit; background: transparent; border: 0;
  border-bottom: 1px solid currentColor; border-radius: 0; padding: 5px 0; outline-offset: 2px;
}
.form select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 28px; font-size: .892rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center / 18px 11px;
}
.theme-bright .form select, .theme-dark .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }
.theme-bright-inverse .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23253551' stroke-width='1.6'/%3E%3C/svg%3E"); }
.form select option { color: #000; }
.form textarea { min-height: 100px; resize: vertical; }
.form .field:has(.check) { margin-bottom: .5rem; }
.form .check { display: flex; gap: .6rem; align-items: center; font-size: .892rem; }
.form .check input { width: 14px; height: 14px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: .25rem; }
.form-success { padding: 1.5rem 0; }

/* ---------- Details ---------- */
.details-grid { display: grid; grid-template-columns: 1fr; gap: 82px; }
.details-grid figure { margin: 0; }
.details-grid h3 { margin-bottom: 3.25rem; }
.details-grid p { margin-bottom: 1.4rem; }
.details-grid .button-row { margin-top: 3.2rem; }
.details-grid img { width: 100%; }

/* ---------- Shop ---------- */
.shop-hero { min-height: calc(66vh - 159px); display: flex; align-items: center; overflow: hidden; }
.shop-hero h2 { margin: 0; font-size: 3.8rem; line-height: 1; text-align: center; }
.shop-hero .divider { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; color: var(--navy); }
.shop-body.pad-lg { padding: 3.3vw 0 9.6vw; }
.shop-body .cols-2 { grid-template-columns: 53.75% 1fr; gap: 0; }
.shop-body p.lead { max-width: 695px; margin: 0 auto 2.8rem; text-align: center; }
.shop-body figure { margin: 0; }
.shop-body .button-row { text-align: center; margin: 0; }

/* ---------- Vet clinics ---------- */
.vet-hero .cols-2 { grid-template-columns: 645fr 493fr; gap: 3rem 5%; }
.vet-hero h2 { font-size: .6rem; margin-bottom: 2rem; }
.vet-hero { padding: 37px 0; }
.vet-hero img { aspect-ratio: 645 / 651 !important; }
.vet-hero .button-row { text-align: center; margin-top: 3.2rem; }
.vet-hero .btn { font-size: 1rem; min-width: 292px; }
.partner.pad-lg { padding: var(--section-pad) 0; }
.partner h2 { margin-bottom: 3.25rem; }
.partner .cols-2 { grid-template-columns: 45.33% 36.92%; gap: 3rem 9.33%; align-items: start; }
.partner .copy p + p { margin-top: .5rem; }
.partner .form { margin-top: 0; }
.vet-counter { min-height: 717px; align-items: flex-start; display: flex; padding-top: 4rem; }

/* ---------- Donate ---------- */
.donate-hero { display: grid; grid-template-columns: 393px minmax(0, 635px); gap: 3rem 5.6%; align-items: start; }
.donate-hero h3 { margin-bottom: 2rem; }
.donate-hero p { margin-bottom: 2.5rem; }
.donate-hero .btn { min-width: 342px; }
.circles { position: relative; aspect-ratio: 635 / 431; }
.circles img { position: absolute; border-radius: 50%; object-fit: cover; }
.circles .c1 { width: 67.9%; aspect-ratio: 1; left: 0; top: 0; z-index: 1; }
.circles .c2 { width: 44.6%; aspect-ratio: 1; left: 55.4%; top: 0; }
.legacy { display: grid; grid-template-columns: 25% 1fr; gap: 2rem 0; align-items: start; }
.legacy > a { justify-self: center; }
.legacy img { width: 232px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.legacy .button-row { text-align: center; margin: 17.8px 0 0 -33.33%; }
.legacy .btn { min-width: 400px; font-size: 1rem; padding-top: 14px; padding-bottom: 14px; }
.ecard-wrap { min-height: 400px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.4rem 5.08%; }
.tier { text-align: center; }
.tier img { width: 100%; aspect-ratio: 191 / 247; object-fit: cover; border-radius: 20px; }
.tier .card { background: var(--surface); margin-top: 10px; padding: 11.44px 11.44px 1.2rem; min-height: 180px; aspect-ratio: 191 / 247; }
.tier h4 { font-weight: 500; margin-bottom: 2rem; }
.tier h4 a { color: var(--link); }
.tier p { font-size: 14px; line-height: 1.8; }
.donate-closing.pad-lg { padding: 3vw 0 7.7vw; }
.donate-closing p { max-width: 600px; margin: 0 auto 2rem; }
.donate-closing img { width: 600px; margin: 0 auto; }

/* ---------- Press ---------- */
.press-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.press-card { background: var(--surface); padding: 23px; text-align: center; }
.press-card img { width: 100%; aspect-ratio: 340 / 256; object-fit: cover; margin-bottom: 14px; }
.press-card h2 { font-size: 1.6rem; line-height: 1.3; margin-bottom: .2rem; }
.press-card p { margin-bottom: 14px; }
.press-card .btn { font-size: .892rem; }
.press-intro h2 { margin-bottom: 2rem; }
.press-media { padding: var(--section-pad) 0 calc(var(--section-pad) * 2); }
.press-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem 3.5%; }
.press-videos figure.video { margin: 0; }

/* ---------- Blog ---------- */
.page-rescuetails main, .page-post main, .page-pilot main { background: var(--navy); }
.blog-header { padding: var(--section-pad) var(--gutter); text-align: center; }
.blog-header h1 { font-size: 2.8rem; line-height: 1.3; margin: 0; }
.blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10.4vw; align-items: start; max-width: none; padding: var(--section-pad) var(--gutter) calc(var(--section-pad) * 1.5); }
.blog-col { display: flex; flex-direction: column; gap: 100px; }
.blog-item { text-align: center; }
.blog-item img { width: 100%; height: auto; margin-bottom: 25px; }
.blog-item .date { font-size: 1rem; font-weight: 400; line-height: 1.2; display: block; margin-bottom: 1.25rem; }
.blog-item h2 { font-size: 2.2rem; line-height: 1.4; margin: 0 0 1.4rem; }
.blog-item h2 a { text-decoration: none; }
.blog-item p { font-size: .892rem; margin-bottom: 1.3rem; }
.blog-item .more { font-size: .892rem; text-underline-offset: 4px; }
.pager { display: flex; justify-content: space-between; padding: 0 0 4rem; font-size: 1rem; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.post { padding: calc(var(--section-pad) * 1.6) 0 2rem; }
.post-header { max-width: 680px; margin: 0 auto 2.4rem; }
.post-header h1 { font-size: 4rem; line-height: 1.4; margin: 0 0 1rem; }
.post-meta { font-size: 1rem; font-weight: 400; display: flex; gap: .8rem; flex-wrap: wrap; }
.post-meta a { text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; padding: 4rem 0 5rem; }
.post-nav a { text-decoration: none; display: flex; align-items: center; gap: 1rem; max-width: 48%; }
.post-nav a:only-child { max-width: 100%; }
.post-nav .next { margin-left: auto; text-align: right; }
.post-nav .label { display: block; font-size: .75rem; opacity: .8; }
.post-nav .title { font-size: 2.2rem; font-weight: 500; line-height: 1.2; }
.pilot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 6%; padding: var(--section-pad) 0 5rem; }

/* ---------- Dashboard / 404 ---------- */
.dashboard-link { text-align: center; padding: 6rem 0; }
.dashboard-link .btn { border-radius: 8px; background: #2a78d6; font-weight: 600; padding: 14px 28px; }
.dashboard-link p { font-size: 14px; opacity: .7; margin-top: 1.5rem; }
.notfound { text-align: center; padding: 8rem 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 73px; }
.footer-grid { display: grid; grid-template-columns: 1fr 172px 172px; gap: 2rem 33px; }
.footer-about h4 { margin-bottom: 2.4rem; }
.footer-about p { font-size: .892rem; }
.footer-links p { font-size: 1rem; margin-bottom: .9rem; line-height: 1.8; }
.footer-links strong { font-weight: 700; }
.site-version { font-size: .892rem; line-height: 1.8; margin-top: 3rem; opacity: .7; }

/* ---------- Responsive ---------- */
/* Centered photo (page editor layouts). Medium by default; .photo-sm / .photo-lg / .photo-full resize it. */
.photo-center { margin: 0 auto; max-width: 640px; }
.photo-center img { width: 100%; }
.photo-center.photo-sm { max-width: 400px; }
.photo-center.photo-lg { max-width: 900px; }
.photo-center.photo-full { max-width: none; }
.photo-center + p, .photo-center + h2, .photo-center + h3, .photo-center + h4 { margin-top: 1.6rem; }
* + .photo-center { margin-top: 1.6rem; }

/* ---------- Admin console (/admin) ---------- */
.admin { min-height: 60vh; }
.admin h2 { font-size: 2rem; margin-bottom: 1.2rem; }
.admin h3 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.admin code { font-size: .9em; }
.admin-form { display: grid; gap: 1rem; max-width: 520px; }
.admin-form label { display: grid; gap: .3rem; font-size: .95rem; }
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="password"], .admin-form input[type="number"],
.admin-nav input, .admin-form textarea {
  font: inherit; font-size: .95rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: .55rem .7rem; border-radius: 3px; width: 100%;
}
.admin-form textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; min-height: 420px; }
.admin-form .btn { justify-self: start; font-size: .95rem; padding: .9rem 1.8rem; }
.admin-inline { grid-template-columns: 1fr auto; align-items: end; max-width: 640px; margin-bottom: 1rem; }
.admin-check { display: flex !important; align-items: center; gap: .6rem; }
.admin-prefix { display: flex; align-items: center; gap: .2rem; }
.admin-hint, .admin-note { font-size: .85rem; opacity: .75; }
.admin-link { font: inherit; font-size: .9rem; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.admin-link.danger, .admin-icon.danger { color: #c0392b; }
[data-theme="dark"] .admin-link.danger, [data-theme="dark"] .admin-icon.danger { color: #ff8a80; }
.admin-link:disabled, .admin-icon:disabled, .admin .btn:disabled { opacity: .45; cursor: default; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; }
.admin-who { font-size: .9rem; }
.admin-badge { display: inline-block; margin-left: .4rem; padding: 0 .5rem; font-size: .75rem; font-weight: 500; line-height: 1.7; color: var(--bg); background: var(--link); border-radius: 3px; }
.admin-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin: 1rem 0 1.5rem; }
.admin-tabs button { font: inherit; font-size: 1rem; color: var(--fg); background: none; border: 0; border-bottom: 2px solid transparent; padding: .6rem 1rem; cursor: pointer; margin-bottom: -1px; }
.admin-tabs button[aria-selected="true"] { color: var(--link); border-bottom-color: currentColor; font-weight: 500; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 1.2rem; }
.admin-table th, .admin-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-weight: 500; }
.admin-actions { text-align: right !important; white-space: nowrap; }
.admin-actions .admin-link + .admin-link { margin-left: 1rem; }
.admin-nav { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; max-width: 760px; }
.admin-nav li { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .5rem; align-items: center; }
.admin-row-buttons { display: flex; gap: .2rem; }
.admin-icon { width: 32px; height: 32px; font: inherit; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.admin-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.admin-buttons .btn { font-size: .95rem; padding: .9rem 1.8rem; }
.admin-msg, .admin-publish { padding: .8rem 1rem; border-left: 3px solid var(--link); background: var(--surface); font-size: .92rem; margin: 1rem 0; }
.admin-publish-text { margin: 0 0 .55rem; }
.admin-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  padding: .8rem 1rem; margin: 1rem 0; border: 1px solid var(--line); font-size: .92rem; }
.admin-live p { margin: 0; flex: 1 1 320px; }
.admin-live .btn { font-size: .9rem; padding: .75rem 1.4rem; }
.admin-progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.admin-progress span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--link); transition: width .5s linear, background-color .3s; }
.admin-publish:is([data-state="waiting"], [data-state="queued"], [data-state="running"]) .admin-progress span {
  background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .35) 50%, transparent 100%);
  background-size: 200px 100%; background-repeat: no-repeat; animation: admin-shimmer 1.4s linear infinite;
}
@keyframes admin-shimmer { from { background-position: -200px 0; } to { background-position: calc(100% + 200px) 0; } }
@media (prefers-reduced-motion: reduce) { .admin-progress span { animation: none !important; transition: none; } }
.admin-publish[data-state="done"] { border-left-color: #2e8b57; }
.admin-publish[data-state="done"] .admin-progress span { background-color: #2e8b57; }
.admin-publish[data-state="failed"] { border-left-color: #c0392b; }
.admin-publish[data-state="failed"] .admin-progress span { background-color: #c0392b; }
.admin-msg[data-kind="error"] { border-left-color: #c0392b; }
.admin-msg[data-kind="ok"] { border-left-color: #2e8b57; }
/* Visual page editor (page-editor.js): full-screen over the admin page */
.pe-open { overflow: hidden; }
.pe { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #e9ebef; color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.4; }
.pe-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; background: #1f2d44; color: #fff; flex-wrap: wrap; }
.pe-heading { font-weight: 600; margin-right: .5rem; }
.pe-spacer { flex: 1; }
.pe-group { display: inline-flex; }
.pe-bar button { font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: .35rem .8rem; cursor: pointer; }
.pe-group button:first-child { border-radius: 4px 0 0 4px; }
.pe-group button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.pe-bar button[aria-pressed="true"] { background: rgba(255,255,255,.18); }
.pe-bar button:disabled { opacity: .4; cursor: default; }
.pe-bar .btn { background: #fff; color: #1f2d44; border-color: #fff; font-weight: 600; padding: .35rem 1.2rem; letter-spacing: 0; }
.pe-main { flex: 1; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.pe-stage { position: relative; display: flex; justify-content: center; padding: 12px; min-height: 0; }
.pe-frame { width: 100%; height: 100%; border: 0; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); transition: width .2s; }
.pe-phone .pe-frame { width: 390px; }
.pe-html { width: 100%; height: 100%; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 1rem; border: 1px solid #c8ccd4; resize: none; }
.pe-side { background: #fff; border-left: 1px solid #d5d9e0; padding: 1rem; overflow-y: auto; }
.pe-side h4 { font-size: 1rem; font-weight: 600; margin: 0 0 .7rem; }
.pe-side ul { padding-left: 1.1rem; margin: 0; }
.pe-side li { margin-bottom: .45rem; }
.pe-side label { display: grid; gap: .25rem; margin-bottom: .8rem; font-size: 13px; }
.pe-side small { color: #666; }
.pe-side input[type="text"], .pe-side textarea, .pe-side select { font: inherit; padding: .45rem .55rem; border: 1px solid #c8ccd4; border-radius: 4px; width: 100%; color: #111; background: #fff; }
.pe-side button { font: inherit; padding: .35rem .7rem; border: 1px solid #c8ccd4; border-radius: 4px; background: #f5f6f8; cursor: pointer; color: #111; }
.pe-side .pe-check { display: flex; align-items: center; gap: .5rem; }
.pe-prefix { display: flex; align-items: center; gap: .2rem; }
.pe-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; }
.pe-note { color: #666; font-size: 12.5px; margin: .2rem 0 .8rem; }
.pe-thumb { width: 100%; max-height: 180px; object-fit: contain; background: #f0f1f4; margin-bottom: .8rem; }
.pe-thumb-dark { background: #15171b; }
.pe-dark { border-top: 1px solid #e3e6eb; margin-top: .4rem; padding-top: .9rem; }
.pe-file { display: block !important; padding: .55rem .7rem; border: 1px dashed #8a93a3; border-radius: 4px; text-align: center; cursor: pointer; }
.pe-file input { display: block; margin: .4rem auto 0; font-size: 12px; }
.pe-templates { display: grid; gap: .5rem; }
.pe-templates button { text-align: left; padding: .6rem .8rem; }
.pe-settings { border-bottom: 1px solid #e3e6eb; padding-bottom: .6rem; margin-bottom: 1rem; }
.pe-settings summary { cursor: pointer; font-weight: 600; margin-bottom: .7rem; }
.pe-msg { margin-top: 1rem; padding: .6rem .8rem; border-left: 3px solid #c0392b; background: #fbeeee; font-size: 13px; }
.pe-msg[data-kind="ok"] { border-left-color: #2e8b57; background: #edf7f1; }
.pe-msg[data-kind="info"] { border-left-color: #2f6fdf; background: #eef3fc; }
@media (max-width: 900px) {
  .pe-main { grid-template-columns: 1fr; grid-template-rows: 1fr 40%; }
  .pe-side { border-left: 0; border-top: 1px solid #d5d9e0; }
}

@media (max-width: 640px) {
  .admin-inline, .admin-nav li { grid-template-columns: 1fr; }
  .admin-actions { text-align: left !important; }
}

@media (max-width: 1100px) {
  .main-nav { gap: .6em; }
  .main-nav a { font-size: .9rem; }
  .btn-header { margin-left: .5rem; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tier .card { aspect-ratio: auto; }
}
@media (max-width: 960px) {
  :root { --gutter: 6vw; --section-pad: 3.5rem; }
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .header-inner { padding: 1.4rem var(--gutter); }
  .logo { flex-basis: 240px; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.75rem; }
  .cols-2, .feature, .signup, .contact-grid, .details-grid, .donate-hero, .member, .partner .cols-2 { grid-template-columns: 1fr; }
  .hero { height: 70vh; }
  .summary-track { grid-auto-columns: 80%; }
  .press-cards { grid-template-columns: 1fr 1fr; }
  .press-videos { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; gap: 5rem; }
  .blog-col { display: contents; }
  .blog-item h2 { font-size: 1.75rem; }
  .post-header h1 { font-size: 2.4rem; }
  .post-nav .title { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 4rem 0 5rem; }
  .footer-about { padding-right: 0; }
  .vet-hero .cols-2, .partner .cols-2, .shop-body .cols-2 { grid-template-columns: 1fr; }
  .donate-hero h3 { font-size: 1.75rem; }
  .shop-hero h2 { font-size: 2.2rem; line-height: 1.25; }
  .shop-body .cols-2 { gap: 1.5rem; }
  .shop-body.pad-lg { padding: 3.5rem 0; }
  .footer-about { grid-column: 1 / -1; }
  .legacy { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .counter-section, .vet-counter { min-height: 420px; }
  .donate-hero .btn { min-width: 0; width: 100%; }
  .mission .wide-image img { aspect-ratio: 16 / 9; }
  .home-intro .cols-2 { grid-template-columns: 1fr; }
  .details-grid { gap: 2.5rem; }
  .details-grid h3 { margin-bottom: 1.5rem; }
  .home-intro .center + p { max-width: 36em; margin: 0 auto; }
  .legacy .button-row { margin-left: 0; }
  .legacy .btn { min-width: 0; width: 100%; }
  .donate-closing img { width: 100%; }
  .about-closing { min-height: 600px; padding-top: 4rem; }
  .blog-list { gap: 5rem; }
  .shop-hero { min-height: 50vh; }
}
@media (max-width: 640px) {
  .press-cards, .tiers, .pilot-list { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { flex-basis: auto; }
  .gallery { --cols: 2 !important; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.14rem; }
  .text-large { font-size: 1.27rem; }
  .press-card h2 { font-size: 1.4rem; }
  .blog-item h2 { font-size: 1.8rem; }
  .counter-value { font-size: 44px; }
  .counter-label { font-size: 17px; }
  /* Phone spacing measured against the old Squarespace site at 390px */
  :root { --section-pad: 30px; }
  .header-inner { padding: 23.5px var(--gutter); }
  .logo { flex-basis: 200px; }
  .band.band-slim { padding: 11.5px 0; }
  .donate-hero { row-gap: 35px; }
  .donate-hero p { margin-bottom: 15px; }
  .donate-hero .btn { display: block; width: 166px; min-width: 0; margin: 0 auto; padding: 4.5px 32px; }
  .circles { margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 390 / 383; }
  .circles .c1 { width: 82.6%; }
  .circles .c2 { width: 42%; left: 49%; top: 57.2%; }
  .legacy { row-gap: 0; }
  .legacy img { width: 144px; display: block; }
  .legacy p:has(+ .button-row) { margin-bottom: 0; }
  .legacy .button-row { margin-top: 0; }
  .legacy .btn { width: 172px; padding: 0 32px; }
  .section:has(> .ecard-wrap) { padding-top: 65px; }
  .tiers { row-gap: 46px; }
  .tier img { aspect-ratio: 343 / 560; }
  .tier:nth-child(1) img { aspect-ratio: 343 / 420; }
  .tier:nth-child(3) img { aspect-ratio: 343 / 525; }
  .tier .card { margin-top: 0; padding: 31px 12px 29.5px; }
  .donate-closing.pad-lg { padding: 30px 0 77px; }
  .site-footer { padding: 46px 0 33px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .footer-about { margin-bottom: 47px; }
  .team-heading { margin-top: 34px; }
  .member h4 { margin-bottom: 12px; }
  .vet-hero .cols-2 { row-gap: 1px; }
  .vet-hero figure { margin: 0 calc(-1 * var(--gutter)) !important; }
  .vet-hero img { width: 100%; aspect-ratio: 390 / 339 !important; object-fit: cover; }
  .vet-hero h2 { font-size: 48px; line-height: 1.4; text-align: center; margin-bottom: 14px; }
  .vet-hero .button-row { margin-top: 15px; }
  .vet-hero .btn { display: block; min-width: 0; }
  .partner h2 { margin-bottom: 24px; }
  .partner .cols-2 { row-gap: 11px; }
  .contact-page.pad-lg { padding-top: 76px; }
  .contact-grid { row-gap: 33px; }
  .contact-grid > div:first-child { display: contents; }
  .contact-grid .social-icons { order: 2; margin-top: 0; }
  .section.pad-lg:has(> .details-grid) { padding-top: 76px; }
  .details-grid { gap: 24px; }
  .details-grid h3 { margin-bottom: 13px; }
  .details-grid p { margin-bottom: 16.4px; }
  .details-grid .button-row { margin-top: 13px; }
  .shop-hero { min-height: 474px; }
  .shop-hero h2 { font-size: 17.4px; line-height: 1; }
  .shop-body p.lead { margin-bottom: 30px; }
  .shop-body .cols-2 { gap: 35px; }
  .shop-body .button-row { order: -1; }
  .shop-body.pad-lg { padding-bottom: 73px; }
  .partner .copy p[style*="margin-top"] { margin-top: 11px !important; }
  .blog-item .date { margin-bottom: 8px; }
  .hero { height: 100vh; }
  .home-intro.pad-lg { padding: 46px 0 48px; }
  .home-intro .cols-2 { row-gap: 34px; }
  .section:has(> .feature) { padding: 46px 0 47px; }
  .feature { row-gap: 36px; }
  .feature figure { order: -1; }
  .feature h3 { margin-bottom: 25px; }
  .feature .button-row { margin-top: 36px; }
  .counter-section { min-height: 307px; }
  .vet-counter { min-height: 334px; }
  .summary-track { grid-auto-columns: calc((100% - 7px) / 2); gap: 7px; }
  .summary-item img { margin-bottom: 16px; }
  .summary-item h3 { font-size: 20px; }
  .signup .wings { max-width: none; }
  .signup h3 { font-size: 28.96px; }
  .newsletter-form { align-items: center; gap: 32px; }
  .newsletter-form input { width: 280px; flex: none; }
  .newsletter-form .btn { padding: 1.4rem 2rem; }
  .mission.pad-lg { padding-bottom: 76px; }
  .about-closing { padding-top: 77px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide { transition: none; }
  .summary-track { scroll-behavior: auto; }
}
.newsletter-form { flex-wrap: wrap; }
.newsletter-form .form-status { flex-basis: 100%; margin: .5rem 0 0; }
