: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 steps: 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;
  }
}

/* New 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;
  }
}

/* Two-column hero: decorative image on the left, two stacked sections on the right */
.image-and-sections {
  display: flex;
  gap: 20px;
  align-items: stretch;
  /* ensure left image and right column match height */
  margin-top: calc(64px + 8px);
  /* keep consistent offset below fixed header */
  padding: 12px;
  /* rhythm with site padding */
  box-sizing: border-box;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* keep the image block purely decorative and make the pet photo smaller */
.top-left-image-wrap {
  pointer-events: none;
  /* decorative */
  flex: 0 0 38%;
  max-width: 440px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-left: 0;
  box-sizing: border-box;
}

/* Keep the pet image smaller without stretching it to the full column height */
.top-left-image {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  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-wrap {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  .top-left-image {
    width: 85%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    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;
}


/* Keep the original sliding drawer and make every item reachable on small screens. */
@media (max-width: 820px) {
  .site-header .header-actions { height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header .nav-links { padding-bottom: 24px; }
  .site-header .nav-link { font-size: 16px; }
}
.footer-name-link { color: inherit; text-decoration: none; }
.footer-name-link:hover { color: var(--accent); }
/* CSS-only handling of long pet values, formerly controlled by JavaScript. */
#volunteer-section .volunteer-row { min-width: 0; }
#volunteer-section .volunteer-content { min-width: 0; flex: 1 1 auto; max-width: 100%; }
#volunteer-section .species-value, #about-section .side-title, #about-section .side-text, .get-involved-section .gi-title { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }

/* Switch to the existing mobile-style drawer whenever the real navigation
   cannot fit next to the branding, including on desktop and browser zoom. */
body.nav-compact .site-header { height:64px; flex-wrap:nowrap; }
body.nav-compact .site-header .brand { min-width:0; flex:1 1 auto; }
body.nav-compact .brand-text { min-width:0; overflow:hidden; }
body.nav-compact .brand-name { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.nav-compact .menu-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; position:relative; z-index:112; }
body.nav-compact .site-header .header-actions {
  position:fixed; top:64px; right:0; height:calc(100vh - 64px);
  height:calc(100dvh - 64px); width:320px; max-width:80%;
  padding:20px; display:flex; align-items:flex-start;
  transform:translateX(100%); background:linear-gradient(180deg,#fff,#fbfbfb);
  box-shadow:-10px 20px 60px rgba(15,118,110,.08);
  border-left:1px solid rgba(17,24,39,.04); z-index:110;
  overflow-y:auto; overscroll-behavior:contain;
  transition:transform .36s cubic-bezier(.2,.8,.2,1);
}
body.nav-compact .site-header .header-actions.open { transform:translateX(0); }
body.nav-compact .site-header .nav-links { display:flex; flex-direction:column; gap:12px; align-items:flex-start; width:100%; white-space:normal; padding-bottom:24px; flex-wrap:nowrap; }
body.nav-compact .site-header .nav-link { width:100%; justify-content:flex-start; padding:12px 14px; font-size:16px; border-radius:10px; white-space:normal; }
body.nav-compact .site-header .nav-link.adopt-btn { justify-content:center; margin-top:6px; }
body.nav-compact .nav-overlay {
  position:fixed; inset:64px 0 0; z-index:65;
  background:rgba(0,0,0,.28); opacity:0; pointer-events:none;
  transition:opacity .24s ease;
}
body.nav-compact.nav-open .nav-overlay { opacity:1; pointer-events:auto; }
/* Keep the original one-row header whenever the links fit. */
body:not(.nav-compact) .site-header { position:fixed; height:64px; flex-wrap:nowrap; }

/* Security hardening: preserve layout after removing presentational inline attributes. */
#volunteer-section .volunteer-row { display: flex; align-items: center; gap: 12px; }
#volunteer-section .volunteer-row:not(:first-child) { margin-top: 4px; }
/* This class was previously styled by an inline SVG <style> element. */
.s { fill: var(--accent); }
