:root {
  --bg: #f3f4f6;
  /* page background changed to light gray */
  --fg: #111827;
  --muted: #6b7280;
  --accent: #0f766e;
}

/* small utility for inline green text highlights used in headings */
.text-green {
  color: var(--accent);
}

* {
  box-sizing: border-box
}

html {
  height: 100%;
  background: var(--bg);
}

/* page background lives on html so areas outside panels/header/footer stay gray */
body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: transparent;
  /* allow html gray to show through around panels */
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* when the mobile nav is open, prevent page scroll */
body.nav-open {
  overflow: hidden
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
  border-bottom: 1px solid #eef2f5;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
  z-index: 90;
  /* raised so the header and its slide-over menu sit above the overlay */
  backdrop-filter: blur(6px);
}

/* mobile menu toggle button */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: transform .18s ease, background-color .12s ease;
}

.menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.06)
}

.menu-toggle[aria-expanded="true"] {
  color: var(--accent);
  transform: translateY(-2px)
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  padding: 6px;
  border-radius: 8px;

  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .18s ease;
  will-change: transform, box-shadow, background-color;
}

.brand:focus-visible {
  outline: none;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
  transform: translateY(-4px);
  background: rgba(15, 118, 110, 0.03);
  border-radius: 10px;
}

.brand:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.06);
  background: rgba(15, 118, 110, 0.03);
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  transform-origin: center;
  will-change: transform, box-shadow;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  line-height: 1;
  transition: color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
  will-change: color, transform;
}

.brand-tagline {
  font-size: 12px;
  line-height: 1.1;
  color: var(--muted);
  white-space: nowrap;
  transition: color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  color: var(--accent);
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .14s ease, color .12s ease;
  will-change: transform;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
  background: rgba(15, 118, 110, 0.06);
  outline: none;
  transform: translateY(-4px) scale(1.02);
}

/* Primary call-to-action */
.adopt-btn {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.adopt-btn:hover,
.adopt-btn:focus {
  background: #0b5e50;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
  border-color: transparent;
}

/* Mobile styles: collapse nav into a slide-over drawer */
@media (max-width:820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* hide original nav until toggled open */
  .header-actions {
    position: fixed;
    top: 64px;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 80%;
    transform: translateX(100%);
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    box-shadow: -10px 20px 60px rgba(15, 118, 110, 0.08);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    transition: transform .36s cubic-bezier(.2, .8, .2, 1);
    z-index: 110;
    /* ensure the open drawer stacks above overlays and other page elements */
    border-left: 1px solid rgba(17, 24, 39, 0.04);
  }

  .header-actions.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* make CTA prominent in mobile menu */
  .nav-link.adopt-btn {
    margin-top: 6px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* small device header adjustments */
  .site-header {
    padding: 0 10px;
    height: 64px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tagline {
    font-size: 11px;
  }
}

/* when nav is open show a subtle overlay (use a real element so it can receive pointer events) */
@media (max-width:820px) {
  .nav-overlay {
    position: fixed;
    inset: 64px 0 0 0;
    /* sit below the header */
    background: rgba(0, 0, 0, 0.28);
    z-index: 65;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
    -webkit-tap-highlight-color: transparent;
  }

  /* when nav is open enable interactions on the overlay */
  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Desktop: ensure header-actions are inline */
@media (min-width:821px) {
  .header-actions {
    position: static;
    height: auto;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-left: 0;
  }
}


/* Hero */
.hero {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* Reserve space for the fixed header so hero content never sits under it,
     and keep the hero prominent while reducing excess vertical space. */
  padding: calc(64px + 6px) 12px 8px;
  min-height: calc(75vh - 64px);
}

.hero-inner {
  max-width: 1200px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  width: 100%;
}

/* left column (text) */
.hero-left {
  flex: 1 1 48%;
  text-align: left;
  min-width: 260px;
}

.hero h1 {
  margin: 0 0 12px 0;
  font-size: 40px;
  line-height: 1.05;
  color: var(--fg);
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 680px;
}

/* right column (image) */
.hero-right {
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 448px;
  /* limit image height to 80% of previous 560px */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(15, 118, 110, 0.08);

  /* subtle lift for hero image */
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  will-change: transform, box-shadow;
}

.hero-right:hover .hero-image,
.hero-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(15, 118, 110, 0.10);
}

/* Responsive: stack on narrow screens */
@media (max-width:820px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    width: 100%
  }

  .hero-right {
    width: 100%;
    margin-top: 16px
  }

  .hero h1 {
    font-size: 28px
  }

  .hero-sub {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto
  }
}

/* Buttons inside hero */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.06);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  cursor: pointer;
  margin: 0 6px;

  /* smooth motion and shadow changes */
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s cubic-bezier(.2, .8, .2, 1), background-color .12s ease;
  will-change: transform, box-shadow;
}

/* Icon-only buttons (used for edit icons) should not show the standard button border and need compact sizing */
.icon-btn {
  border: 0;
  background: transparent;
  padding: 6px;
  min-width: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08)
}

/* Remove border and compact the delete (danger) icon in table action cells so it appears as an icon-only control */
.pets-table .btn.danger,
.pets-table a.btn.danger {
  border: 0;
  background: transparent;
  padding: 6px;
  min-width: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #dc2626;
  /* red for delete icons (tailwind red-600) */
}

/* Make edit/delete icon buttons show a darker green background on hover (keeps icon visible) */
.pets-table .icon-btn:hover,
.pets-table .btn.danger:hover,
.pets-table a.btn.danger:hover {
  background: #064e3b;
  /* darker green on hover */
  color: #fff;
  transform: none;
  /* keep hover subtle for icons */
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.12);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.08);
}

/* Specific blue styling for the top-right "+ Add Pet" button */
.btn.primary.add-pet,
a.btn.primary.add-pet {
  background: #2563eb;
  /* blue-600 */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.btn.primary.add-pet:hover,
a.btn.primary.add-pet:hover {
  background: #1e40af;
  /* blue-800 on hover (keeps blue background) */
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.16);
}

.btn.primary:hover {
  background: #0b5e50;
  /* darker green on hover */
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.16);
  border-color: transparent;
}

.btn:hover {
  background: rgba(15, 118, 110, 0.06);
  color: var(--fg);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* Mobile: ensure header fits in one screen height and touch targets are adequate */
@media (max-width:420px) {
  .site-header {
    height: 64px;
    padding: 0 10px
  }

  .brand-name {
    font-size: 16px
  }

  .brand-logo {
    width: 44px;
    height: 44px
  }

  .icon-btn {
    height: 44px;
    min-width: 44px
  }

  .nav-links {
    gap: 6px
  }

  .nav-link {
    padding: 10px 8px;
    font-size: 13px
  }

  .adopt-btn {
    padding: 10px 10px
  }

  /* Responsive hero sizing */
  .hero h1 {
    font-size: 22px
  }

  .hero-sub {
    font-size: 14px
  }

  .hero-inner {
    padding: 16px
  }

  .btn {
    padding: 10px 12px;
    font-size: 14px;
    margin: 6px 4px
  }
}

/* Green banner below main content */
.green-banner {
  width: 100%;
  background: linear-gradient(90deg, #047857 0%, #059669 100%);
  color: #fff;
  padding: 16px 12px;
  /* increased vertical padding to raise divider height */
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.green-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* center the inner content horizontally */
  gap: 12px;
  padding: 10px;
  /* slightly larger inner padding for better balance */
  flex-wrap: wrap;
}

/* ensure the stats block centers its items when using inline styles in HTML */
.green-banner-stats {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.green-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.green-banner-content .banner-text {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
}

.green-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.banner-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: transparent;
  padding: 10px 14px;
  border-radius: 10px;
}

.banner-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px)
}

/* Mobile: compact banner layout */
@media (max-width:540px) {
  .green-banner-inner {
    padding: 12px;
    align-items: flex-start
  }

  .green-banner-actions {
    width: 100%;
    justify-content: flex-start
  }

  .green-banner-content {
    width: 100%
  }
}

/* Pets section */
.pets-section {
  width: 100%;
  padding: 12px 12px;
  /* reduced top/bottom padding to close gap under hero */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}



/* Current Listings table styles */
.table-wrap {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  /* sharper, more defined border */
  border: 1px solid rgba(17, 24, 39, 0.12);
  /* reduce diffuse shadow and add a crisper, shallow elevation */
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}

.pets-table {
  background: #fff;
  /* align table border with the stronger container border for a crisper look */
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.pets-table caption {
  color: var(--fg);
  padding: 12px 16px;
  font-weight: 800;
  font-size: 18px;
}

.pets-table thead {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), rgba(15, 118, 110, 0.02));
}

.pets-table th,
.pets-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  /* stronger, slightly darker divider between each pet row for clearer separation */
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  vertical-align: middle;
}

/* Right-align the Actions column so action buttons sit flush to the right edge */
.pets-table th:nth-child(7),
.pets-table td:nth-child(7) {
  text-align: right;
}

/* status pill styles for table status cells */
.status {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1;
  min-width: 72px;
  text-align: center;
}

/* green background for Available status */
.status.available {
  background: #bbf7d0;
  /* light green background */
  color: #064e3b;
  /* darker green text for contrast */
  border: 1px solid rgba(6, 78, 59, 0.06);
}

/* gray background for Pending status */
.status.pending {
  background: #f3f4f6;
  /* light gray */
  color: #374151;
  /* gray-700 text for contrast */
  border: 1px solid rgba(17, 24, 39, 0.04);
  font-weight: 700;
  /* ensure Pending appears bold */
}

/* Adopted: light gray background, non-bold and italic */
.status.adopted {
  background: #f3f4f6;
  /* light gray */
  color: #374151;
  /* gray-700 text for contrast */
  border: 1px solid rgba(17, 24, 39, 0.04);
  font-weight: 400;
  /* non-bold */
  font-style: italic;
}

.pets-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pets-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.02);
}

.pets-table img {
  display: block;
  border-radius: 8px;
}

/* Responsive adjustments for small screens: stack action buttons and allow table scroll */
@media (max-width:820px) {
  .pets-table {
    min-width: 640px;
  }
}

@media (max-width:540px) {
  .pets-table {
    min-width: 520px;
  }

  .pets-table th:nth-child(3),
  .pets-table td:nth-child(3),
  /* hide species column */
  .pets-table th:nth-child(5),
  .pets-table td:nth-child(5) {
    display: none;
  }

  .pets-table td,
  .pets-table th {
    padding: 10px;
    font-size: 13px;
  }
}

.pets-inner h2 {
  margin: 0 0 14px 0;
  font-size: 44px;
  /* enlarged for stronger emphasis */
  line-height: 1.03;
  color: var(--fg);
  font-weight: 700;
}

/* Responsive: scale the heading down on narrow viewports so layout stays balanced */
@media (max-width:540px) {
  .pets-inner h2 {
    font-size: 32px;
  }
}

/* header for pets section with "View All" link */
.pets-header {
  margin-bottom: 6px;
}

.view-all {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}

.view-all:hover,
.view-all:focus {
  background: rgba(15, 118, 110, 0.06);
  outline: none;
  text-decoration: none;
}

/* Make filter controls responsive at all sizes: allow wrapping and let controls flex */
.pets-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  /* allow controls to wrap to new lines */
  width: auto;
}

/* give selects and buttons a flexible basis so they can grow/shrink */
.pets-filters select,
.pets-filters .btn {
  flex: 0 1 180px;
  /* preferred width but allow shrinking */
  min-width: 120px;
  max-width: 100%;
  box-sizing: border-box;
}

/* when space is tight make controls stretch full width for touch-friendliness */
@media (max-width:640px) {

  .pets-filters select,
  .pets-filters .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Ensure the header stacks nicely on small screens */
@media (max-width:540px) {
  .pets-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }

  .view-all {
    align-self: flex-start
  }
}

/* Grid layout */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

/* When filters leave exactly one visible pet, keep that card at normal size
   and center it instead of letting the grid stretch it across the viewport. */
.pets-grid.single {
  justify-content: center;
  /* center the single column */
  grid-template-columns: 1fr;
  /* keep a single column so card width is controlled */
}

.pets-grid.single .pet-card {
  max-width: 420px;
  /* cap width so it doesn't stretch too wide on large viewports */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: block;
}

/* Message shown when filters return no matching pets */
.no-results {
  margin: 18px 0 6px;
  padding: 12px;
  text-align: center;
  background: #ffffff;
  color: var(--muted);
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.03);
}

/* Pet card */
.pet-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  /* Pronounced border to better define card edges while keeping the existing soft shadow */
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.pet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.08);
  /* slightly intensify border on hover for a subtle interactive cue */
  border-color: rgba(15, 118, 110, 0.18);
}

.photo-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
  background: #f0f0f0;
}

.pet-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;

  /* smooth scaling on hover via parent */
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), filter .28s ease;
  will-change: transform, filter;
}

/* species badge positioned upper-left on the photo */
.pet-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.10);
  z-index: 3;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

/* slightly smaller badge on very small screens */
@media (max-width:420px) {
  .pet-badge {
    font-size: 11px;
    padding: 5px 7px;
    top: 8px;
    left: 8px;
  }
}

.pet-card:hover .pet-photo {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.pet-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pet-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pet-name {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
  font-weight: 700;
}

.pet-age {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(15, 118, 110, 0.06);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.pet-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
  flex: 1;
}

.pet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

/* Ensure buttons inside cards are full-width on small screens */
@media (max-width:540px) {
  .pets-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px
  }

  .pet-photo {
    height: 140px
  }

  .pet-actions .btn {
    flex: 1
  }
}

/* Center the post text below the adoptable pets (desktop) and provide layout for contact + form */
.pets-post {
  text-align: center;
}

/* Intro panel above adoption: light gray background and padding so the intro text stands out */
.adopt-intro {
  background: #f3f4f6;
  /* light gray */
  padding: 12px;
  border-radius: 10px;
  display: block;
  width: 100%;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.03);
  margin-bottom: 10px;
  text-align: center;
}

/* Larger, responsive heading for the adoption path intro */
#adoption-path-heading {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  margin: 0;
  color: var(--fg);
}

/* Scale the adoption-path heading down on small viewports so it fits cleanly */
@media (max-width:540px) {
  #adoption-path-heading {
    font-size: 20px;
    line-height: 1.08;
  }
}

/* independent adoption path section: full-bleed panel that aligns with viewport edges */
.adoption-path-section {
  /* make the section span the full viewport width while keeping its content padded */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f3f4f6;
  /* light gray */
  padding: 18px 12px;
  border-radius: 0;
  /* flush to edges */
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.03);
}

/* keep adopt-steps and step cards light gray, ensure the section doesn't double up visual padding on small screens */
@media (max-width:820px) {
  .adoption-path-section {
    padding: 14px 10px;
  }
}

/* two-column contact + form layout */
.contact-form-wrapper {
  padding: 12px 8px;
  max-width: 1200px;
  width: 100%;
  margin: 18px auto;
  box-sizing: border-box;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  /* widened form column so inputs are longer */
  gap: 20px;
  align-items: start;
  max-width: 100%;
  margin: 0 auto;
}

/* contact details */
.contact-details {
  text-align: left;
  padding: 8px 12px;
}

.contact-details .details-block {
  margin-bottom: 8px;
  color: var(--muted);
}

/* align small icons with contact text */
.contact-details .details-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-details .details-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
}

/* ensure inline SVGs scale to fill the larger icon container */
.contact-details .details-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-details .details-text {
  flex: 1;
  min-width: 0;
}

/* form styles */
.contact-form {
  background: linear-gradient(180deg, #fff, #fbfbfb);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field-label {
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
  text-align: left;
  display: block;
  width: 100%;
}

/* inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
  /* white fill for input interiors */
  font-size: 14px;
  color: var(--fg);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.12);
}

/* small devices: stack columns and keep full width */
@media (max-width:820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-details {
    order: 2;
  }

  /* show form first on narrow screens */
  .adopt-steps {
    margin-top: 12px;
  }
}


/* Adoption steps: horizontal row with compact cards */
.adopt-steps {
  display: flex;
  gap: 40px;
  /* increased spacing between steps */
  margin-top: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  /* give the steps section a light-gray panel background with padding and rounded corners */
  background: #f3f4f6;
  padding: 16px;
  border-radius: 12px;
  /* ensure the steps container fully contains its child cards and aligns with surrounding content */
  width: 100%;
  margin: 0;
  max-width: 100%;
}

.adopt-steps .step {
  background: transparent;
  /* step cards now let the parent light-gray panel show through */
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.04);
  flex: 1 1 200px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  /* center contents horizontally so the number sits above the title */
  text-align: center;
  transition: transform .18s ease;
  /* smooth slide for first/last adjustments */
}

/* remove desktop nudges so each step sits fully inside the parent container */
.adopt-steps .step:first-child,
.adopt-steps .step:last-child {
  transform: none;
}

.adopt-steps .step-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  /* lift the number above the decorative line and ensure it sits visually on top */
  position: relative;
  z-index: 2;
  margin: -8px auto 8px;
  /* negative top margin pulls the badge above the line */
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.12);
}

.adopt-steps .step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.adopt-steps .step-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  /* remove flex so descriptions wrap naturally when centered */
}

/* Stack steps vertically on narrow screens while keeping spacing consistent */
@media (max-width:540px) {

  /* On narrow screens keep the steps full-width and remove negative margins to fit the viewport */
  .adopt-steps {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
  }

  .adopt-steps .step {
    min-width: unset
  }

  .adopt-steps .step {
    align-items: center;
    text-align: center
  }

  .adopt-steps .step-desc {
    width: 100%
  }

  .adopt-steps .step-index {
    margin: 0 auto 6px
  }

  /* cancel desktop nudges on small viewports */
  .adopt-steps .step:first-child,
  .adopt-steps .step:last-child {
    transform: none;
  }
}

/* decorative horizontal line behind step numbers */
.adopt-steps {
  position: relative;
}

.adopt-steps::before {
  content: "";
  position: absolute;
  height: 6px;
  background: #bbf7d0;
  /* light green */
  /* nudge the decorative line down so the step numbers sit visually above it */
  top: 37px;
  z-index: 0;
  border-radius: 4px;

  /* span using CSS variables set from JS; fall back to sensible insets */
  left: var(--adopt-line-left, 80px);
  right: var(--adopt-line-right, 80px);
  width: auto;
  max-width: none;
}

/* reduce the left/right inset on narrower viewports so the line scales naturally */
@media (max-width:820px) {
  .adopt-steps::before {
    left: 48px;
    right: 48px;
    top: 34px;
  }
}

.adopt-steps .step {
  position: relative;
  z-index: 1;
  /* ensure cards appear above the line */
}

/* hide the decorative line on narrow screens (stacked layout) */
@media (max-width:540px) {
  .adopt-steps::before {
    display: none
  }
}

/* Footer styles */
.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 18px 12px 28px;
  margin-top: 18px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 220px;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .18s ease;
  will-change: transform, box-shadow, background-color;
}

.footer-brand:focus-visible {
  outline: none;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
  transform: translateY(-4px);
  background: rgba(15, 118, 110, 0.03);
  border-radius: 10px;
}

.footer-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  transform-origin: center;
  will-change: transform, box-shadow;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.08);
}

.footer-name {
  transition: color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
  will-change: color, transform;
}

.footer-name:hover,
.footer-brand:focus-visible .footer-name {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent
}

.footer-name {
  display: flex;
  flex-direction: column;
  line-height: 1
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500
}

/* Social links under brand name */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  /* increased spacing to separate social icons from logo/name */
  align-items: center;
}

.social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  transition: background-color .12s ease, transform .12s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-link:hover,
.social-link:focus {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  outline: none;
  border-color: transparent;
}

/* columns */
.footer-columns {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-col {
  min-width: 160px;
  max-width: 260px
}

.footer-col-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none
}

/* contact & actions */
.footer-contact {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--accent);
  text-decoration: none;
  outline: none;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0 0 8px 0
}

.footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

.site-footer .btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px
}

/* adapt button styles for dark footer */
.site-footer .btn.primary {
  background: #0f766e;
  color: #fff;
  border-color: transparent;
}

.site-footer .btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Donate button (global) make outside-footer donate orange */
.btn.donate {
  background: #f59e0b;
  /* amber */
  color: #0b0b0b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.btn.donate:hover,
.btn.donate:focus {
  background: #d97706;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* Donate button in footer: high-contrast amber variant */
.site-footer .btn.donate {
  background: #f59e0b;
  /* amber */
  color: #0b0b0b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.site-footer .btn.donate:hover,
.site-footer .btn.donate:focus {
  background: #d97706;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* keep non-primary footer buttons subtle, but make primary footer CTA darker on hover */
.site-footer .btn:hover {
  filter: brightness(1.05);
  transform: none;
}

/* explicitly darken primary footer CTA on hover to match site primary behavior */
.site-footer .btn.primary:hover {
  background: #0b5e50;
  color: #fff;
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.16);
}

/* bottom row */
.footer-bottom {
  max-width: 1200px;
  margin: 12px auto 0;
  padding-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: none
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0
}

/* Responsive footer: stack on small screens */
@media (max-width:820px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start
  }

  .footer-columns {
    justify-content: flex-start
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }
}

/* container for form fields inside the contact form: distinct background and padding */
.form-fields {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.04);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.03);
}

/* Pagination styles */
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  flex-wrap: wrap;
}

.pagination .per-page-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  min-width: 120px;
}

.page-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.06);
  font-weight: 700;
  cursor: pointer;
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
}

.page-btn:disabled,
.page-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* make the pagination compact on very small screens */
@media (max-width:420px) {
  .pagination {
    gap: 6px;
    margin: 12px 0;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 6px 8px;
    font-size: 13px
  }

  .pagination .per-page-select {
    min-width: 100px;
  }
}

/* slightly reduce internal padding on very small screens to maintain fit */
@media (max-width:420px) {
  .form-fields {
    padding: 10px;
    gap: 8px;
  }
}

/* Modal (Add Pet) styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 120;
  opacity: 0;
  transition: opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 130;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #fff, #fbfbfb);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.3);
  padding: 16px;
  outline: none;

  /* keep modal usable on short viewports: cap height and allow vertical scrolling */
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--fg);
}

/* subtitle shown under the modal title */
.modal-sub {
  margin: 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  width: 100%;
  display: block;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  z-index: 3;
}

.modal-close:focus {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.06);
  outline: none;
}

.modal-form .field {
  margin-bottom: 8px;
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #fff;
  font-size: 14px;
  color: var(--fg);
}

/* Make the primary button inside the Add Pet modal blue (overrides global primary) */
.modal .btn.primary,
.modal-form .btn.primary {
  background: #2563eb;
  /* blue-600 */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.modal .btn.primary:hover,
.modal-form .btn.primary:hover {
  background: #1e40af;
  /* blue-800 (keeps blue background) */
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.16);
}

/* Donate modal: make its "Donate" submit button match the orange Donate button style */
.donate-modal #donate-submit {
  background: #f59e0b;
  /* amber */
  color: #0b0b0b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.donate-modal #donate-submit:hover,
.donate-modal #donate-submit:focus {
  background: #d97706;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* ----------------------------------
   Adopt This Pet – green submit button
----------------------------------- */
.modal .btn.primary.adopt-green {
  background-color: #0f766e;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.12);
}

.modal .btn.primary.adopt-green:hover {
  background-color: #0b5e50;
  color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.18);
}

/* Green variant used specifically for the Edit ("Save Changes") button in the modal */
.modal .btn.save-green,
.modal-form .btn.save-green {
  background: var(--accent);
  /* site accent green */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.08);
}

.modal .btn.save-green:hover,
.modal-form .btn.save-green:hover {
  background: #0b5e50;
  /* darker green on hover */
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 94, 80, 0.12);
}

/* Delete confirmation modal: make its primary action a red button to signal destructive action */
.delete-modal .btn.primary,
#delete-confirm {
  background: #dc2626;
  /* red-600 */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.08);
}

.delete-modal .btn.primary:hover,
#delete-confirm:hover {
  background: #b91c1c;
  /* red-700 */
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.12);
}

@media (max-width:540px) {

  /* Keep Add/Edit modal usable on short viewports but avoid forcing full-height.
     Default modal-panel remains scrollable; on very small screens it aligns to the bottom
     for Add/Edit flows, but delete-modal gets a different treatment below. */
  .modal-panel {
    padding: 12px;
    max-width: 100%;
    /* avoid forcing full viewport height so short confirm dialogs don't extend too far */
    height: auto;
    max-height: calc(100vh - 96px);
    border-radius: 12px;
    align-self: flex-end;
    justify-self: center;
    overflow: auto;
  }

  .modal {
    align-items: flex-end;
    padding: 12px;
  }

  /* Specific rule for the smaller Delete confirmation modal: center vertically
     and cap its height so it won't extend so far down on narrow screens. */
  .delete-modal .modal-panel {
    align-self: center;
    max-height: calc(100vh - 120px);
    height: auto;
    margin: 0 12px;
    overflow: auto;
  }
}



/* keep the image block purely decorative and align left column sizing */
.top-left-image-wrap {
  pointer-events: none;
  /* decorative */
  flex: 0 0 50vw;
  /* take up half the viewport width */
  display: flex;
  align-items: stretch;
  /* stretch the image to fill the wrap's height */
  padding-left: 0;
  box-sizing: border-box;
}

/* Constrain the image to a comfortable width so side content fits */
.top-left-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  /* fill the wrap's height so image and side column match */
  border-radius: 20px;
  object-fit: cover;
  border: 6px solid #ffffff;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.12);
  transition: transform .28s ease, box-shadow .28s ease;
  flex: 1 1 auto;
}

/* right column holds the two stacked sections */
.side-sections {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
  height: 100%;
  /* match the image height via parent stretch */
  justify-content: space-between;
  /* distribute top section, pet stats, and CTA so their combined height equals image */
}

/* individual side sections styling */
.side-section {
  background: #ffffff;
  padding: 14px;
  /* match the hero image's prominent rounded corners, white border and layered shadow */
  border-radius: 20px;
  border: 6px solid #ffffff;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* keep sections' intrinsic height so spacing + CTA can be distributed evenly */
  flex: 0 0 auto;
  min-height: 0;
  /* allow flex children to shrink properly within column */
}

/* titles and text inside side sections */
.side-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.05;
}

.side-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* availability pill used in side sections */
.availability-text {
  display: inline-block;
  background: #86efac;
  /* brighter light-green for stronger availability emphasis */
  color: #064e3b;
  /* darker green text for contrast */
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.06);
  width: fit-content;
}

/* Paw icon used in the Get Involved side section keep it left aligned and appropriately sized */
.paw-icon {
  display: block;
  width: 64px;
  height: 64px;
  color: var(--accent);
  flex: 0 0 auto;
}

/* Volunteer content to the right of the paw icon: small label + larger value */
.volunteer-row {
  align-items: center;
}

.volunteer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.species-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1;
}

.species-value {
  font-size: 20px;
  color: var(--fg);
  font-weight: 800;
  line-height: 1;
}

/* simple divider used inside the volunteer side-section */
.volunteer-divider {
  width: 100%;
  height: 2px;
  /* slightly thicker for better visibility */
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.12));
  border-radius: 2px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.06);
  /* subtle lift for contrast */
}

/* On very small screens, stack the paw above the text for better fit */
@media (max-width:420px) {
  .volunteer-row {
    flex-direction: row;
    gap: 10px;
  }

  .side-section#volunteer-section .volunteer-row {
    align-items: center;
  }

  .volunteer-content {
    align-items: flex-start;
  }
}

/* ensure buttons inside side sections align left on wide screens and full width on small screens */
.side-section .btn {
  align-self: flex-start;
}

/* Adopt CTA container under the two stacked side sections */
.adopt-cta {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
  /* keep CTA pinned to the bottom of the side column so its bottom edge aligns with image base */
  margin-top: auto;
  align-self: stretch;
}

/* make the adopt CTA prominent but constrained so it fits the side column */
.adopt-cta .adopt-this-btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 30px rgba(15, 118, 110, 0.08);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* stretch CTA to match side column width when aligned to bottom */
  width: 100%;
}

/* On narrow screens make CTA stretch full width for touch friendliness */
@media (max-width:540px) {
  .adopt-cta {
    width: 100%;
  }

  .adopt-cta .adopt-this-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }

  .image-and-sections {
    flex-direction: column;
    padding: 10px;
    margin-top: calc(64px + 8px);
  }

  .top-left-image {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }

  .side-sections {
    width: 100%;
  }

  .side-section .btn {
    width: 100%;
    align-self: stretch;
  }
}

/* Center the "About" / Get Involved section content and align its edges with other full-width content */
.get-involved-section {
  /* make this a full-bleed section but align its inner content to the same centered max-width as other rows */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 18px 12px;

  background: transparent;
  /* let the inner panel keep the white card look */
}

.get-involved-section .get-involved-inner {
  max-width: 1200px;
  /* match main content width used elsewhere */
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  /* keep the white card styling inside the constrained inner container */
  background: #ffffff;
  border-radius: 20px;
  border: 6px solid #ffffff;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.12);
  padding: 12px;
}

.get-involved-section .gi-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.get-involved-section .gi-text {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
}

/* Adopt Pet popup extra fields spacing */
.adopt-extra-field {
  margin-top: 8px;
}

/* Volunteer signature canvas: keep it responsive */
#vol-signature-canvas {
  width: 100%;
  max-width: 520px;
  height: 120px;
}


/* =========================
   Wishlist page layout
   ========================= */

.wishlist-page {
  width: 100%;
  flex: 1 1 auto;
  padding: calc(64px + 20px) 12px 24px;
}

.wishlist-page-intro {
  max-width: 1400px;
  margin: 0 auto 18px auto;
  padding: 0 6px;
  text-align: left;
}

.wishlist-page-title {
  margin: 0 0 8px 0;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--fg);
}

.wishlist-page-description {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 900px;
}

.wishlist-page-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wishlist-page-title {
  text-align: center;
}

.wishlist-page-description {
  text-align: center;
  max-width: 700px;
}

/* Responsive scaling */
@media (max-width:700px) {
  .wishlist-page-title {
    font-size: 30px;
  }

  .wishlist-page-description {
    font-size: 15px;
  }
}

.wishlist-donate-info {
  max-width: 1100px;
  /* smaller overall width */
  margin: 0 auto 16px auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  /* less dominant image */
  gap: 14px;
  align-items: center;
  /* prevents tall stretching */
}

.wishlist-donate-image-panel,
.wishlist-donate-text-panel,
.wishlist-donate-donation-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.10);
  border-radius: 20px;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  min-width: 0;
}

.wishlist-donate-image-panel {
  height: 180px;
  min-height: 180px;
}

.wishlist-donate-donation-panel {
  min-height: 180px;
  height: 100%;
  padding: 24px;
  border-radius: 20px;
  justify-content: center;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.08);
}

.wishlist-donate-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-donate-text-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.wishlist-donate-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--fg);
}

.wishlist-donate-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.wishlist-donate-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.wishlist-donate-link:hover,
.wishlist-donate-link:focus {
  text-decoration: underline;
  outline: none;
}

.wishlist-donate-btn {
  margin: 4px 0 0 0;
}

@media (max-width:900px) {
  .wishlist-donate-info {
    grid-template-columns: 1fr;
  }

  .wishlist-donate-image-panel {
    height: 160px;
  }

  .wishlist-donate-image {
    height: 100%;
  }
}

@media (max-width:700px) {
  .wishlist-donate-text-panel {
    padding: 18px;
  }

  .wishlist-donate-title {
    font-size: 26px;
  }

  .wishlist-donate-text {
    font-size: 15px;
  }
}

.wishlist-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.wishlist-category-section {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.10);
  border-radius: 20px;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.08);
  padding: 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}



.wishlist-items-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  flex: 1 1 auto;
  height: 100%;
}

.wishlist-section-photo-wrap {
  position: relative;
  width: 100%;
}

.wishlist-section-price-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #f97316;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.wishlist-section-photo {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
}

.wishlist-section-item-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--fg);
  text-align: left;
}

.wishlist-section-item-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
}

.wishlist-section-item-text {
  flex: 1 1 auto;
}

.wishlist-section-donate-btn {
  align-self: center;
  margin-top: 8px;
  background: #f97316;
  color: #ffffff;
  border-color: transparent;
  min-width: 160px;
}

.wishlist-section-donate-btn:hover,
.wishlist-section-donate-btn:focus {
  background: #ea580c;
  color: #ffffff;
  border-color: transparent;
}

.recurring-donation-card {
  gap: 16px;
}

.recurring-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.recurring-amt-btn {
  border: 2px solid #f97316;
  background: #ffffff;
  color: #f97316;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recurring-amt-btn:hover,
.recurring-amt-btn.active {
  background: #f97316;
  color: #ffffff;
}

.recurring-custom-row {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.recurring-custom-row[hidden] {
  display: none;
}

.recurring-custom-row:focus-within {
  border-color: #f97316;
}

.recurring-currency-label {
  padding: 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  background: #f9f9f9;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 2px solid #ddd;
}

.recurring-custom-amount {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 12px;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.recurring-note {
  background: #fff8f0;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.recurring-paypal-badge {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.wishlist-item-card {
  background: #f9fafb;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishlist-item-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--fg);
}

.wishlist-item-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.wishlist-item-title-scroll,
.wishlist-item-description-scroll {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.wishlist-item-title-scroll {
  flex: 1 1 auto;
}

.wishlist-item-title {
  margin: 0;
  min-width: max-content;
  width: max-content;
  max-width: none;
}

.wishlist-item-description {
  margin: 0;
  min-width: max-content;
  width: max-content;
  max-width: none;
  line-height: 1.6;
}

.wishlist-item-description-scroll {
  display: block;
}

.wishlist-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
  flex: 0 0 auto;
}

.wishlist-priority-badge.priority-high {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.wishlist-priority-badge.priority-medium {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.wishlist-priority-badge.priority-low {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.wishlist-priority-badge.priority-unknown {
  background: #e5e7eb;
  color: #374151;
  border-color: #d1d5db;
}

.wishlist-item-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.wishlist-item-meta {
  margin: 0;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.4;
}

.wishlist-item-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wishlist-item-link:hover,
.wishlist-item-link:focus {
  background: #0b5e50;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 94, 80, 0.14);
  outline: none;
}

.wishlist-loading,
.wishlist-empty-state p {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px dashed rgba(15, 118, 110, 0.16);
  color: var(--muted);
  font-weight: 600;
}

@media (max-width:1100px) {
  .wishlist-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px) {
  .wishlist-page {
    padding: calc(64px + 16px) 10px 18px;
  }

  .wishlist-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wishlist-category-section {
    padding: 16px;
    height: 100%;
  }

  .wishlist-category-title {
    font-size: 24px;
  }
}

@media (max-width:820px) {
  .donation-info-panels {
    grid-template-columns: 1fr;
  }

  .donation-info-panel-spacer {
    display: none;
  }

  .donation-info-panel-nonprofit {
    text-align: left;
  }
}

.donation-info-panels {
  max-width: 900px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  gap: 20px;
  align-items: stretch;
  justify-content: center;
}

.donation-info-panel-spacer {
  visibility: hidden;
}

.donation-info-panel {
  flex: 1 1 420px;
  /* increased base width */
  padding: 28px 24px;
  /* more inner space */
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.06);
  min-height: 220px;
  /* ensures taller panels */
}

.donation-info-panel-any-amount {
  background: #000000;
  color: #ffffff;
  text-align: left;
}

.donation-info-panel-nonprofit {
  background: transparent;
  color: var(--fg);
  text-align: right;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.donation-info-title {
  font-size: 26px;
  /* larger heading */
  margin-bottom: 12px;
}

.donation-info-text {
  font-size: 16px;
  /* slightly larger body text */
  line-height: 1.6;
}

.donation-info-btn {
  margin: 18px 0 0 0;
  align-self: flex-start;
}

.donation-info-btn-light {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.donation-info-btn-light:hover,
.donation-info-btn-light:focus {
  background: #f3f4f6;
  color: #000000;
  border-color: #f3f4f6;
}

.donation-any-amount-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.donation-any-amount-label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.donation-any-amount-form {
  margin-top: 16px;
}

.donation-any-amount-input {
  font-size: 18px;
  padding: 12px 14px;
}

.donation-any-amount-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #4b5563;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  min-height: 56px;
}

.donation-any-amount-currency {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  flex: 0 0 auto;
}

.donation-any-amount-input {
  flex: 1 1 auto;
  /* allows it to expand */
  width: 100%;
  /* fills available space */
  min-width: 0;
  /* prevents flex overflow issues */
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  padding: 14px 0;
}

.donation-any-amount-input:focus {
  outline: none;
}

/* Orange border on the whole input field container when focused */
.donation-any-amount-input-wrap:focus-within {
  border: 2px solid #f97316;
  /* orange */
}

border:1px solid rgba(255, 255, 255, 0.14);

.donation-any-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.donation-any-amount-input::-webkit-outer-spin-button,
.donation-any-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.donation-any-amount-input[type="number"] {
  -moz-appearance: textfield;
}



.donation-info-panel-any-amount .donation-info-btn {
  margin: 0;
}

/* Venmo donation options */
.donation-payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.donation-payment-actions .btn {
  margin-left: 0;
  margin-right: 0;
}

.donation-payment-actions-any-amount {
  justify-content: flex-start;
}

.donation-info-btn-venmo,
.donation-venmo-btn {
  background: #008cff;
  color: #ffffff;
  border-color: transparent;
}

.donation-info-btn-venmo:hover,
.donation-info-btn-venmo:focus,
.donation-venmo-btn:hover,
.donation-venmo-btn:focus {
  background: #0074d4;
  color: #ffffff;
  border-color: transparent;
}

.recurring-venmo-badge {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 540px) {
  .donation-payment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .donation-payment-actions .btn,
  .donation-venmo-btn {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Align PayPal and Venmo donation buttons consistently */
.wishlist-card-payment-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.wishlist-card-payment-actions form {
  display: flex;
  flex: 1 1 0;
  margin: 0;
}

.wishlist-card-payment-actions .wishlist-section-donate-btn {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: stretch;
}

.donation-payment-actions-any-amount .btn,
.recurring-payment-actions .btn {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 540px) {
  .wishlist-card-payment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wishlist-card-payment-actions form,
  .wishlist-card-payment-actions .wishlist-section-donate-btn {
    width: 100%;
  }
}



/* Static JavaScript-free navigation: desktop links remain visible. */
.mobile-nav-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 821px) {
  .site-header { position: sticky; top: 0; height: auto; min-height: 64px; flex-wrap: wrap; padding: 8px 12px; }
  .site-header .brand { flex: 0 1 340px; min-width: 0; }
  .site-header .header-actions { flex: 1 1 680px; min-width: 0; justify-content: flex-end; }
  .site-header .nav-links { flex-wrap: wrap; justify-content: flex-end; white-space: normal; gap: 4px 6px; }
  .site-header .nav-link { font-size: 16px; line-height: 1.3; padding: 7px 9px; white-space: nowrap; }
}
@media (max-width: 820px) {
  .site-header .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .header-actions { display: none; position: fixed; top: 64px; right: 0; height: calc(100dvh - 64px); width: min(320px, 80vw); max-width: 80vw; overflow-y: auto; transform: none; background: #fff; }
  .site-header .mobile-nav-checkbox:checked ~ .header-actions { display: flex; }
  .site-header .mobile-nav-checkbox:focus-visible + .menu-toggle { outline: 3px solid var(--accent); outline-offset: 3px; }
  .site-header .nav-links { flex-direction: column; white-space: normal; }
}

/* Native HTML monthly payment choices (no JS). */
.recurring-native-form, .recurring-custom-native-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.recurring-amount-options { border: 0; margin: 0; padding: 0; display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.recurring-amount-options label { position: relative; cursor: pointer; }
.recurring-amount-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.recurring-amount-options .recurring-amt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 17px; cursor: pointer; }
.recurring-amount-options input:checked + .recurring-amt-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.recurring-amount-options input:focus-visible + .recurring-amt-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.recurring-custom-native-form { margin-top: 7px; padding-top: 14px; border-top: 1px solid rgba(17,24,39,.1); }
.recurring-custom-row { display: flex !important; align-items: center; }
.recurring-custom-amount { flex: 1; min-width: 0; }
.recurring-custom-submit { align-self: center; max-width: 100%; }

/* Compact the recurring donation card without JavaScript or affecting other cards. */
.recurring-donation-section {
  align-self: start;
  height: auto;
}
.recurring-donation-section .recurring-donation-card {
  flex: 0 0 auto;
  height: auto;
  gap: 8px;
}
.recurring-donation-section .wishlist-section-item-title {
  font-size: 22px;
  line-height: 1.2;
}
.recurring-donation-section .wishlist-section-item-text {
  flex: 0 0 auto;
  line-height: 1.4;
}
.recurring-donation-section .recurring-native-form {
  gap: 9px;
}
.recurring-donation-section .recurring-amount-options {
  gap: 6px;
}
.recurring-donation-section .recurring-amount-options .recurring-amt-btn {
  min-height: 36px;
  padding: 5px 12px;
  font-size: 14px;
}
.recurring-donation-section .recurring-payment-actions {
  gap: 8px;
}
.recurring-donation-section .recurring-payment-actions .btn {
  margin: 0;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}
.recurring-other-details {
  margin-top: 2px;
  border-top: 1px solid rgba(17,24,39,.1);
  padding-top: 8px;
}
.recurring-other-details > summary {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}
.recurring-other-details > summary:hover {
  text-decoration: underline;
}
.recurring-other-details .recurring-custom-native-form {
  margin-top: 9px;
  padding-top: 0;
  border-top: none;
  gap: 8px;
}
.recurring-other-details .recurring-custom-amount {
  padding: 9px;
}
.recurring-other-details .recurring-custom-submit {
  margin: 0;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}
.recurring-donation-section .recurring-paypal-badge {
  line-height: 1.35;
  text-align: left;
  font-size: 12px;
}


/* Small viewport: prevent a long shelter name from pushing the CSS-only menu offscreen. */
@media (max-width: 820px) {
  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .site-header .brand-text { min-width: 0; }
  .site-header .brand-name { overflow-wrap: break-word; line-height: 1.05; }
  .site-header .menu-toggle { flex: 0 0 44px; justify-content: center; }
}
@media (max-width: 420px) {
  .site-header .brand { gap: 5px; padding: 2px; }
  .site-header .brand-name { font-size: 13px; }
  .site-header .brand-tagline { font-size: 10px; white-space: normal; }
}
