:root {
  --cream: #f0e8d2;
  --cream-2: #e2d4b3;
  --sage: #3b7d94;
  --sage-deep: #1f5066;
  --terra: #ed7563;
  --terra-deep: #c14635;
  --brown: #1b3a55;
  --paper: #faf3e0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Accessibility utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--brown);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--terra-deep);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}
body {
  background: var(--cream);
  color: var(--brown);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='250' height='250'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.2 0 0 0 0 0.32 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 1000;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 100px;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 8px 0 var(--brown);
  gap: 16px;
}
.site-nav .brand {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav .brand em { font-style: italic; color: var(--sage-deep); }
.site-nav .brand .paw {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--terra);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.site-nav .brand .paw::before,
.site-nav .brand .paw::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--terra);
  border-radius: 50%;
}
.site-nav .brand .paw::before { top: -6px; left: 3px; }
.site-nav .brand .paw::after { top: -6px; right: 3px; }
.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav .nav-links a {
  color: var(--brown);
  text-decoration: none;
  transition: color 0.3s;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { color: var(--terra-deep); }
.nav-toggle {
  display: none;
  background: var(--terra-deep);
  color: var(--paper);
  border: none;
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Hero */
.hero {
  padding: 120px 6vw 50px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero .tag-curve {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage);
  color: #fff;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  transform: rotate(-2deg);
}
.hero .tag-curve .dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
h1.headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(56px, 8.5vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--brown);
}
h1.headline .scribble {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--terra-deep);
  font-style: normal;
  display: inline-block;
  position: relative;
  transform: rotate(-2deg);
}
h1.headline .scribble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 Q 50 -2, 100 4 T 198 4' stroke='%23ed7563' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat;
  background-size: 100% 100%;
}
h1.headline em { font-style: italic; color: var(--sage-deep); }
.hero p.lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.6;
  color: #3a4d62;
  max-width: 48ch;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-disclaimer {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a5d72;
  max-width: 68ch;
}
.btn-primary {
  background: var(--brown);
  color: var(--cream);
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 0 var(--terra-deep);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 8px 0 var(--terra-deep);
}
.btn-primary:active {
  transform: translate(2px, 4px);
  box-shadow: 0 2px 0 var(--terra-deep);
}
.btn-secondary {
  background: var(--paper);
  color: var(--brown);
  padding: 14px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--brown);
  transition: transform 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { transform: rotate(-2deg); }

.hero .right {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 400px;
  margin: 0 auto;
  align-self: center;
}
.hero-photo-cluster {
  position: relative;
  width: 100%;
  height: 100%;
}
.polaroid {
  background: white;
  padding: 14px 14px 54px;
  box-shadow: 0 20px 40px -20px rgba(27, 58, 85, 0.35);
  position: absolute;
}
.polaroid .ph {
  width: 240px;
  height: 240px;
  background-size: cover;
  background-position: center;
}
.polaroid img.ph {
  object-fit: cover;
  object-position: center;
  display: block;
  background: none;
}
.polaroid .cap {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--brown);
  text-transform: lowercase;
}
/* Fan layout – spread horizontally, minimal overlap */
.pol-1 {
  left: 0;
  top: 10%;
  transform: rotate(-4deg);
  animation: bob 6s ease-in-out infinite;
  --rot: -4deg;
  z-index: 2;
}
.pol-2 {
  left: 38%;
  top: 0;
  transform: rotate(5deg);
  animation: bob 7s ease-in-out infinite 1s;
  --rot: 5deg;
  z-index: 3;
}
.pol-2 .ph { width: 190px; height: 190px; }
.pol-3 {
  left: 56%;
  top: 32%;
  transform: rotate(-8deg);
  animation: bob 5.5s ease-in-out infinite 2s;
  --rot: -8deg;
  z-index: 1;
}
.pol-3 .ph { width: 155px; height: 155px; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, -4deg)); }
  50% { transform: translateY(-8px) rotate(var(--rot, -4deg)); }
}

/* Urgent spotlight */
.urgent-section {
  padding: 0 6vw 48px;
}
.urgent-banner {
  background: var(--terra);
  color: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  padding: 28px 28px 32px;
  box-shadow: 0 8px 0 var(--brown);
}
.urgent-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 24px;
  text-align: center;
}
.urgent-banner h2 em { font-style: italic; }

.urgent-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}
.urgent-carousel.is-static {
  justify-content: center;
}
.urgent-carousel.is-static .carousel-btn,
.urgent-carousel.is-static .urgent-dots {
  display: none;
}
.urgent-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.urgent-track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brown);
  background: var(--paper);
  color: var(--brown);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  padding: 0;
}
.carousel-btn:hover:not(:disabled) {
  transform: scale(1.08);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.urgent-carousel:not(.is-static) .carousel-btn:disabled {
  opacity: 1;
  cursor: pointer;
}
.urgent-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.urgent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(251, 243, 226, 0.65);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.urgent-dot.active {
  background: var(--paper);
  transform: scale(1.2);
}
.urgent-card {
  flex: 0 0 180px;
  display: block;
  background: var(--paper);
  color: var(--brown);
  border-radius: 18px;
  text-decoration: none;
  width: 180px;
  overflow: hidden;
  border: 2px solid var(--brown);
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 0 var(--brown);
}
.urgent-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 0 10px 0 var(--brown);
}
.urgent-card .urgent-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.urgent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.urgent-card .urgent-info {
  padding: 14px 14px 16px;
}
.urgent-card strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.urgent-card span {
  font-size: 13px;
  color: #3a4d62;
  display: block;
}

/* Section shared */
.dogs-section {
  padding: 100px 6vw;
  position: relative;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title .pre {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  color: var(--terra-deep);
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 10px;
}
.section-title h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  color: var(--brown);
}
.section-title h2 em { color: var(--sage-deep); font-style: italic; }
.section-title p {
  margin-top: 16px;
  color: #4a5d72;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
#dogs .section-title p {
  max-width: 80ch;
}

.dogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1300px;
  margin: 0 auto;
}
.dogs-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Fresh faces: up to 3 dogs, centered horizontally */
#new-arrivals .dogs-grid.compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}
#new-arrivals .dog-card {
  flex: 0 1 320px;
  max-width: 100%;
}

.dog-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 16px 16px 22px;
  border: 2px solid var(--brown);
  box-shadow: 0 10px 0 var(--brown);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.dog-card:hover {
  transform: translate(-3px, -6px) rotate(-1deg);
  box-shadow: 0 16px 0 var(--brown);
}
.dog-card .pic {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  display: block;
  overflow: hidden;
}
.dog-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--terra);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  transform: rotate(8deg);
}
.dog-card .badge.new { background: var(--sage); }
.dog-card .badge.urgent { background: var(--terra-deep); }
.dog-card .body { padding: 18px 8px 4px; }
.dog-card .dog-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 12px;
}
.dog-card .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pill {
  background: var(--cream-2);
  color: var(--brown);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}
.pill.sage { background: rgba(59, 125, 148, 0.18); color: var(--sage-deep); }
.dog-card .desc {
  font-size: 15px;
  color: #3a4d62;
  line-height: 1.55;
}
.dog-card .meet {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--terra-deep);
}
.dog-card:hover .meet .arr { transform: translateX(6px) rotate(-8deg); }
.dog-card .meet .arr { transition: transform 0.4s; display: inline-block; }

/* Collection grids */
.collections-section {
  padding: 80px 6vw;
  background: var(--cream-2);
  position: relative;
}
.collections-section::before,
.collections-section::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 24px;
  left: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'><path d='M0 12 Q 12.5 0, 25 12 T 50 12 T 75 12 T 100 12 V 24 H 0 Z' fill='%23f0e8d2'/></svg>") repeat-x;
  background-size: 100px 24px;
}
.collections-section::before { top: -1px; transform: rotate(180deg); }
.collections-section::after { bottom: -1px; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.collection-grid.breeds {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin-bottom: 40px;
}
.collection-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 2px solid var(--brown);
  box-shadow: 0 8px 0 var(--brown);
  text-decoration: none;
  color: var(--paper);
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}
.collection-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 0 12px 0 var(--brown);
}
.collection-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.collection-card .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 58, 85, 0.85), rgba(27, 58, 85, 0.2));
}
.collection-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
}
.collection-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1.1;
}
.collection-card .count {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}
.breed-picker {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.breed-picker label {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--terra-deep);
  margin-bottom: 12px;
}
.breed-picker select {
  width: 100%;
  padding: 14px 20px;
  border-radius: 100px;
  border: 2px solid var(--brown);
  background: var(--paper);
  color: var(--brown);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231b3a55' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

/* Event teaser */
.event-section {
  padding: 80px 6vw;
}
.event-card {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 10px 0 var(--brown);
}
.event-date-pill {
  background: var(--sage);
  color: var(--cream);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  min-width: 90px;
}
.event-date-pill .day {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  line-height: 1;
}
.event-date-pill .month {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.event-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
}
.event-card p {
  color: #3a4d62;
  font-size: 15px;
  margin-bottom: 12px;
}
.event-card .venue {
  font-size: 14px;
  color: var(--sage-deep);
  font-weight: 500;
}

/* Name generator teaser */
.namegen-section {
  padding: 80px 6vw;
  background: var(--paper);
  border-top: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
  text-align: center;
}
.namegen-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* Stats bar */
.stats-wrap {
  padding: 0;
}
.stats {
  background: var(--sage);
  color: var(--cream);
  padding: 60px 6vw;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
}
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 24px;
  left: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'><path d='M0 12 Q 12.5 0, 25 12 T 50 12 T 75 12 T 100 12 V 24 H 0 Z' fill='%23f0e8d2'/></svg>") repeat-x;
  background-size: 100px 24px;
}
.stats::before { top: -1px; transform: rotate(180deg); }
.stats::after { bottom: -1px; }
.stat { text-align: center; position: relative; }
.stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--cream);
}
.stat .lbl {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(251, 243, 226, 0.85);
}

/* Footer */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 60px 6vw 30px;
  text-align: center;
}
.site-footer .big {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 16px;
}
.site-footer .big em { color: var(--terra); font-style: italic; }
.site-footer .scribble {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--cream-2);
  display: block;
  margin-bottom: 24px;
}
.site-footer .disclaimer {
  max-width: 1000px;
  margin: 0 auto 32px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(251, 243, 226, 0.75);
}
.site-footer .disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .disclaimer a:hover {
  color: var(--cream);
}
.site-footer .sm {
  font-size: 13px;
  color: rgba(251, 243, 226, 0.85);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 243, 226, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-nav .nav-links { display: none; }
  .site-nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 2px solid var(--brown);
    border-radius: 24px;
    padding: 20px 28px;
    box-shadow: 0 8px 0 var(--brown);
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .site-nav { position: relative; top: 0; left: 0; right: 0; margin: 16px; border-radius: 24px; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding: 24px 5vw 40px; }
  .home-page .home-hero .right,
  .dogs-list-page .dogs-list-hero .right { margin-top: 20px; }
  .home-page .home-hero .hero-photo-row { gap: 0; justify-content: center; }
  .home-page .home-hero .pol-2,
  .home-page .home-hero .pol-3 { display: none; }
  .home-page .home-hero .pol-1 { transform: rotate(-3deg); --rot: -3deg; margin-bottom: 0; }
  .home-page .home-hero .polaroid-trio .ph { width: 180px; height: 180px; }
  .polaroid-single .ph { width: 220px; height: 220px; }
  .dogs-list-page .dogs-list-hero .polaroid-single .ph {
    width: clamp(160px, 50vw, 280px);
    height: clamp(160px, 50vw, 280px);
  }
  .dogs-list-page .dogs-list-hero .right {
    min-height: auto;
    overflow: visible;
  }
  .dogs-grid { grid-template-columns: 1fr; }
  .collection-grid,
  .collection-grid.breeds { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; text-align: center; }
  .event-date-pill { margin: 0 auto; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
}

@media (min-width: 901px) {
  .site-nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; pointer-events: none; }
  .site-nav-wrap .site-nav { pointer-events: auto; }
  .home-page .home-hero .right,
  .dogs-list-page .dogs-list-hero .right,
  .breed-page .breed-hero .right { margin-left: auto; }
}

/* Shared single-photo hero (homepage + available dogs) */
.hero-photo-single {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.polaroid-single {
  position: relative;
  left: auto;
  top: auto;
  transform: rotate(-3deg);
  animation: bob 6s ease-in-out infinite;
  --rot: -3deg;
}
.polaroid-single .ph {
  width: 240px;
  height: 240px;
}

.home-page .home-hero,
.dogs-list-page .dogs-list-hero,
.breed-page .breed-hero {
  padding-bottom: 50px;
}

.home-page .home-hero .right {
  max-width: 640px;
  height: auto;
  min-height: 240px;
}

.home-page .home-hero .hero-photo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  width: 100%;
  padding: 8px 0;
}

.home-page .home-hero .polaroid-trio {
  position: relative;
  left: auto;
  top: auto;
  padding: 10px 10px 44px;
  flex: 0 0 auto;
}

.home-page .home-hero .polaroid-trio .ph {
  width: 168px;
  height: 168px;
}

.home-page .home-hero .polaroid-trio .cap {
  font-size: 20px;
  bottom: 10px;
}

.home-page .home-hero .pol-1 {
  transform: rotate(-5deg);
  animation: bob 6s ease-in-out infinite;
  --rot: -5deg;
  margin-bottom: 6px;
}

.home-page .home-hero .pol-2 {
  transform: rotate(4deg);
  animation: bob 7s ease-in-out infinite 1s;
  --rot: 4deg;
  margin-bottom: 22px;
}

.home-page .home-hero .pol-2 .ph {
  width: 182px;
  height: 182px;
}

.home-page .home-hero .pol-3 {
  transform: rotate(-6deg);
  animation: bob 5.5s ease-in-out infinite 2s;
  --rot: -6deg;
}

.dogs-list-page .dogs-list-hero {
  grid-template-columns: 1.15fr 0.85fr;
}

.dogs-list-page .dogs-list-hero .right {
  max-width: none;
  height: auto;
  min-height: 340px;
}

.dogs-list-page .dogs-list-hero .hero-photo-single {
  min-height: 340px;
}

.dogs-list-page .dogs-list-hero .polaroid-single {
  padding: 14px 14px 56px;
}

.dogs-list-page .dogs-list-hero .polaroid-single .ph {
  width: clamp(260px, 24vw, 340px);
  height: clamp(260px, 24vw, 340px);
}

.dogs-list-page .dogs-list-hero .polaroid-single .cap {
  font-size: 24px;
  bottom: 14px;
}

.home-page .home-hero .headline,
.dogs-list-page .dogs-list-hero .headline,
.breed-page .breed-hero .headline {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
}

.dogs-list-page .filters-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 6vw;
}
.dogs-list-page .filters-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--brown);
}
.dogs-list-page .filters-section h2 em {
  font-style: italic;
  color: var(--terra-deep);
}
.dogs-list-page .filter-bar {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 8px 0 var(--brown);
}
.dogs-list-page .filter-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 14px;
}
.dogs-list-page .filter-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
}
.dogs-list-page .filter-row input,
.dogs-list-page .filter-row select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--cream-2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  color: var(--brown);
}
.dogs-list-page .filter-row input:focus,
.dogs-list-page .filter-row select:focus {
  border-color: var(--sage);
}
.dogs-list-page .filter-row input:focus:not(:focus-visible),
.dogs-list-page .filter-row select:focus:not(:focus-visible) {
  outline: none;
}
.dogs-list-page .filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.dogs-list-page .filter-actions .results {
  font-size: 14px;
  color: #3a4d62;
}
.dogs-list-page .filter-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a5d72;
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.dogs-list-page .btn-clear {
  background: none;
  border: 2px solid var(--brown);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--brown);
  transition: transform 0.2s;
}
.dogs-list-page .btn-clear:hover:not(:disabled) {
  transform: rotate(-2deg);
}
.dogs-list-page .btn-clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dogs-list-page .dog-card[hidden] {
  display: none;
}

.dogs-list-page .dogs-list-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 6vw 60px;
}
.dogs-list-page .per-page {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}
.dogs-list-page .per-page select {
  padding: 8px 12px;
  border: 2px solid var(--brown);
  border-radius: 100px;
  font-family: inherit;
  background: var(--paper);
  color: var(--brown);
}
.dogs-list-page .dogs-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.dogs-list-page .dogs-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.dogs-list-page .dogs-pagination a,
.dogs-list-page .dogs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--brown);
  color: var(--brown);
  background: var(--paper);
}
.dogs-list-page .dogs-pagination .active {
  background: var(--brown);
  color: var(--cream);
}
.dogs-list-page .dogs-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.dogs-list-page .empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--brown);
}
.dogs-list-page .empty-state p {
  font-size: 18px;
  color: #3a4d62;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .dogs-list-page .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .dogs-list-page .dogs-list-grid,
  .breed-page .dogs-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dogs-list-page .filter-row {
    grid-template-columns: 1fr;
  }
}

.breed-page .breed-hero {
  grid-template-columns: 0.9fr 1.3fr;
}

.breed-page .breed-hero .right {
  max-width: none;
  height: auto;
  min-height: 420px;
}

.breed-page .hero-photo-single {
  min-height: 420px;
}

.breed-page .polaroid-single {
  padding: 16px 16px 64px;
}

.breed-page .polaroid-single .ph {
  width: clamp(300px, 32vw, 420px);
  height: clamp(300px, 32vw, 420px);
}

.breed-page .polaroid-single .cap {
  font-size: 28px;
  bottom: 18px;
}

.breed-page .breed-intro-section {
  padding-top: 60px;
  padding-bottom: 20px;
}

.breed-page .section-title p {
  max-width: 80ch;
}

.breed-page .breed-dogs-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 6vw 60px;
}

.breed-page .dogs-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.breed-page .filter-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a5d72;
  text-align: center;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.breed-page .breed-empty-state {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--brown);
}

.breed-page .breed-empty-state p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: #3a4d62;
}

.breed-page .breed-learn-section {
  padding-top: 80px;
  padding-bottom: 100px;
}

.breed-page .breed-learn-action {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .breed-page .breed-hero .right {
    margin-top: 20px;
  }
  .breed-page .polaroid-single .ph {
    width: clamp(160px, 55vw, 300px);
    height: clamp(160px, 55vw, 300px);
  }
}

@media (max-width: 560px) {
  .breed-page .breed-hero .right {
    margin-left: auto;
  }
}

/* Name generator page */
.name-generator-page .namegen-hero {
  padding-bottom: 50px;
}

.name-generator-page .namegen-hero .right {
  max-width: none;
  height: auto;
  min-height: 280px;
}

.name-generator-page .namegen-hero .headline {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
}

.name-generator-page .namegen-polaroid-ph {
  background: linear-gradient(145deg, var(--sage) 0%, var(--sage-deep) 100%);
  position: relative;
  overflow: hidden;
}

.name-generator-page .namegen-sticker {
  position: absolute;
  background: var(--paper);
  color: var(--brown);
  border: 2px solid var(--brown);
  border-radius: 10px;
  padding: 5px 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  box-shadow: 0 3px 0 var(--brown);
  white-space: nowrap;
  line-height: 1.1;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.name-generator-page .namegen-sticker.namegen-sticker-fading {
  opacity: 0;
}

.name-generator-page .namegen-sticker-1 {
  top: 36px;
  left: 24px;
  transform: rotate(-8deg);
}

.name-generator-page .namegen-sticker-accent {
  background: var(--terra);
  color: var(--paper);
}

.name-generator-page .namegen-sticker-2 {
  top: 36px;
  right: 22px;
  transform: rotate(7deg);
}

.name-generator-page .namegen-sticker-3 {
  top: 74px;
  left: 12px;
  transform: rotate(-5deg);
}

.name-generator-page .namegen-sticker-4 {
  top: 74px;
  right: 10px;
  transform: rotate(5deg);
}

.name-generator-page .namegen-sticker-5 {
  bottom: 74px;
  left: 12px;
  transform: rotate(4deg);
}

.name-generator-page .namegen-sticker-6 {
  bottom: 74px;
  right: 10px;
  transform: rotate(-5deg);
}

.name-generator-page .namegen-sticker-7 {
  bottom: 36px;
  left: 24px;
  transform: rotate(5deg);
}

.name-generator-page .namegen-sticker-8 {
  bottom: 36px;
  right: 22px;
  transform: rotate(-6deg);
}

.name-generator-page .namegen-sticker-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  font-size: 20px;
  padding: 10px 18px;
  z-index: 2;
  background: white;
  box-shadow: 0 4px 0 var(--brown);
}

.name-generator-page .namegen-form-section {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 0 6vw;
}

.name-generator-page .namegen-form-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--brown);
}

.name-generator-page .namegen-form-section h2 em {
  font-style: italic;
  color: var(--terra-deep);
}

.name-generator-page .namegen-form {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 8px 0 var(--brown);
}

.name-generator-page .namegen-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.name-generator-page .namegen-gender legend,
.name-generator-page .namegen-letter label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
}

.name-generator-page .namegen-gender {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.name-generator-page .namegen-gender-options {
  display: flex;
  gap: 12px;
}

.name-generator-page .namegen-radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--cream-2);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  transition: border-color 0.2s, background 0.2s;
}

.name-generator-page .namegen-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.name-generator-page .namegen-radio:has(input:checked) {
  border-color: var(--sage);
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--sage);
}

.name-generator-page .namegen-letter select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--cream-2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  color: var(--brown);
}

.name-generator-page .namegen-letter select:focus {
  border-color: var(--sage);
}
.name-generator-page .namegen-letter select:focus:not(:focus-visible) {
  outline: none;
}

.name-generator-page .namegen-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #4a5d72;
}

.name-generator-page .namegen-form-actions {
  margin-top: 24px;
  text-align: center;
}

.name-generator-page .namegen-validation {
  margin-top: 12px;
  font-size: 14px;
  color: var(--terra-deep);
}

.name-generator-page .namegen-total {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: #4a5d72;
}

.name-generator-page .namegen-total span {
  font-weight: 700;
  color: var(--sage-deep);
}

.name-generator-page .namegen-results-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 6vw 80px;
}

.name-generator-page .namegen-results-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--brown);
}

.name-generator-page .namegen-results-section h2 em {
  font-style: italic;
  color: var(--terra-deep);
}

.name-generator-page .namegen-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.name-generator-page .name-result {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--brown);
  padding: 28px 20px;
  text-align: center;
}

.name-generator-page .name-result-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-generator-page .name-result-label,
.name-generator-page .name-result-tail {
  font-size: 14px;
  color: #4a5d72;
}

.name-generator-page .name-result-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brown);
  line-height: 1.1;
}

.name-generator-page .namegen-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--brown);
}

.name-generator-page .namegen-empty p {
  font-size: 16px;
  color: #3a4d62;
  margin: 0;
}

.name-generator-page .namegen-again-wrap {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 768px) {
  .name-generator-page .namegen-form-row {
    grid-template-columns: 1fr;
  }

  .name-generator-page .namegen-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .name-generator-page .namegen-hero .right {
    margin-top: 20px;
  }
}

@media (min-width: 901px) {
  .name-generator-page .namegen-hero .right {
    margin-left: auto;
  }
}

/* Dog profile page */
.dog-profile-page {
  padding-bottom: 60px;
}

.dog-profile-hero {
  padding: 120px 6vw 48px;
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.dog-profile-main {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 48px;
  align-items: stretch;
}

.dog-profile-photo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.dog-profile-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.dog-profile-polaroid-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.dog-profile-photo-wrap .dog-profile-polaroid {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  overflow: visible;
  background: #fff;
  border: none;
  padding: 14px 14px 56px;
  box-shadow: 0 20px 40px -20px rgba(27, 58, 85, 0.35);
  transform: rotate(-3deg);
  animation: bob 6s ease-in-out infinite;
  --rot: -3deg;
  cursor: pointer;
}

.dog-profile-urgent {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--terra-deep);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(27, 58, 85, 0.22);
  animation: urgent-badge-float 5s ease-in-out infinite;
  transform: rotate(8deg);
}

@keyframes urgent-badge-float {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(11deg) translateY(-4px); }
}

.dog-profile-polaroid .ph {
  width: clamp(260px, 28vw, 340px);
  height: clamp(260px, 28vw, 340px);
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dog-profile-polaroid .cap {
  font-size: 24px;
  bottom: 14px;
}

.dog-profile-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: center;
}

.dog-profile-block {
  display: flex;
  margin-bottom: 0;
}

.dog-profile-block-details,
.dog-profile-block-traits {
  flex: 0 0 auto;
}

.dog-profile-block .dog-profile-wide-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: none;
  height: auto;
}

.dog-profile-details-card .dog-profile-details {
  align-content: start;
}

.dog-profile-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--brown);
  margin-bottom: 28px;
}

.dog-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.dog-profile-details .detail-chip {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dog-profile-details dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
}

.dog-profile-details-card {
  padding: 22px 28px;
}

.dog-profile-details-card h2 {
  margin-bottom: 12px;
}

.dog-profile-details dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  margin: 0;
}

.dog-profile-block h2,
.dog-profile-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--brown);
  margin-bottom: 16px;
}

.dog-profile-block h2 em,
.dog-profile-section h2 em {
  font-style: italic;
  color: var(--sage-deep);
}

.dog-profile-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dog-profile-empty {
  font-size: 16px;
  color: #4a5d72;
  line-height: 1.6;
}

.dog-profile-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 6vw 40px;
}

.dog-profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.dog-profile-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--brown);
  box-shadow: 0 6px 0 var(--brown);
  background: var(--paper);
}

.dog-profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dog-profile-picflow p {
  font-size: 17px;
  color: #3a4d62;
  line-height: 1.6;
}

.dog-profile-picflow a {
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dog-profile-picflow a:hover {
  color: var(--terra-deep);
}

.dog-profile-bio {
  font-size: 18px;
  line-height: 1.65;
  color: #3a4d62;
  max-width: 72ch;
}

.dog-profile-disclaimer {
  padding-top: 8px;
}

.dog-profile-wide-card {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 8px 0 var(--brown);
  width: 100%;
}

.dog-profile-wide-card h2 {
  margin-bottom: 16px;
}

.dog-profile-disclaimer p {
  font-size: 15px;
  line-height: 1.65;
  color: #4a5d72;
  margin: 0;
}

.dog-profile-adopt {
  padding-top: 8px;
}

.dog-profile-adopt-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
}

.dog-profile-adopt-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: #3a4d62;
  margin-bottom: 12px;
}

.dog-profile-adopt-copy p:last-child {
  margin-bottom: 0;
}

.dog-profile-adopt-action {
  display: flex;
  justify-content: flex-end;
}

.dog-profile-adopt-action .btn-primary {
  white-space: nowrap;
}

.dog-profile-contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: start;
}

.dog-profile-contact-title {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.dog-profile-contact-card .contact-name {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--brown);
  margin-bottom: 16px;
}

.dog-profile-contact-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #3a4d62;
  margin-bottom: 8px;
}

.dog-profile-contact-card a {
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 500;
}

.dog-profile-contact-card a:hover {
  color: var(--terra-deep);
  text-decoration: underline;
}

.dog-profile-contact-hours-col {
  border-left: 2px solid rgba(27, 58, 85, 0.12);
  padding-left: 48px;
}

.dog-profile-contact-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--brown);
  margin: 0 0 16px;
}

.dog-profile-hours {
  list-style: none;
  display: grid;
  gap: 8px;
}

.dog-profile-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: #3a4d62;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(27, 58, 85, 0.12);
}

.dog-profile-hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dog-profile-more {
  padding: 0 6vw 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.dog-profile-more-banner {
  background: var(--sage);
  color: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 8px 0 var(--brown);
  text-align: center;
}

.dog-profile-more-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 24px;
  color: var(--paper);
}

.dog-profile-more-banner .btn-primary {
  background: var(--paper);
  color: var(--brown);
  box-shadow: 0 6px 0 var(--brown);
}

.dog-profile-more-banner .btn-primary:hover {
  box-shadow: 0 8px 0 var(--brown);
}

.dog-profile-unavailable-main {
  align-items: center;
}

.dog-profile-unavailable-message-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.dog-profile-unavailable-message {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  color: var(--brown);
  text-align: center;
  max-width: 28ch;
  margin: 0;
}

@media (max-width: 900px) {
  .dog-profile-hero {
    padding-top: 24px;
  }

  .dog-profile-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dog-profile-photo-col {
    display: flex;
    justify-content: center;
  }

  .dog-profile-photo-wrap {
    width: 100%;
    max-width: 320px;
  }

  .dog-profile-polaroid .ph {
    width: min(300px, 88vw);
    height: min(300px, 88vw);
  }

  .dog-profile-cards {
    gap: 24px;
  }

  .dog-profile-cards {
    height: auto;
    justify-content: flex-start;
  }

  .dog-profile-details {
    grid-template-columns: 1fr;
  }

  .dog-profile-adopt-card {
    grid-template-columns: 1fr;
  }

  .dog-profile-adopt-action {
    justify-content: flex-start;
  }

  .dog-profile-contact-card {
    grid-template-columns: 1fr;
  }

  .dog-profile-contact-hours-col {
    border-left: none;
    padding-left: 0;
    padding-top: 24px;
    border-top: 2px solid rgba(27, 58, 85, 0.12);
  }
}

/* Events pages */
.events-page .events-hero {
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
.events-page .events-hero .headline {
  font-size: clamp(48px, 7vw, 96px);
}
.events-page .events-hero .lede {
  max-width: 72ch;
}
.events-list-section {
  padding: 40px 6vw 100px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
  max-width: 1300px;
  margin: 0 auto;
}
.event-list-card {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 0 var(--brown);
  display: flex;
  flex-direction: column;
}
.event-list-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}
.event-list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-list-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.event-date-pill-inline {
  align-self: flex-start;
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  min-width: 70px;
  margin-bottom: 4px;
}
.event-date-pill-inline .day {
  font-size: 28px;
}
.event-list-card-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  line-height: 1.15;
  color: var(--brown);
}
.events-past-page .event-list-card-body h2 {
  min-height: calc(2 * 1.15em);
}
.event-list-card-body p {
  color: #3a4d62;
  font-size: 15px;
  line-height: 1.55;
}
.event-list-card-body .venue {
  font-size: 14px;
  color: var(--sage-deep);
  font-weight: 500;
  margin-top: auto;
}
.event-list-card-body .event-time {
  font-size: 14px;
  color: #4a5d72;
  font-weight: 500;
}
.events-empty {
  text-align: center;
  padding: 60px 28px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--brown);
}
.events-empty p {
  font-size: 18px;
  line-height: 1.6;
  color: #3a4d62;
}
.events-empty a {
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.events-empty a:hover {
  color: var(--terra-deep);
}
.events-actions {
  text-align: center;
  margin-top: 48px;
}
a.event-list-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.event-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 var(--brown);
}
.event-detail-page .events-hero .headline {
  font-size: clamp(40px, 6vw, 72px);
}
.event-detail-page .events-hero {
  padding-left: 4vw;
  padding-right: 4vw;
}
.event-detail-page .events-hero .left {
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.event-detail-page .events-hero .lede {
  max-width: none;
}
.event-info-card {
  background: var(--paper);
  border: 1.5px solid rgba(27, 58, 85, 0.25);
  border-radius: 20px;
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 28px 0;
}
.event-info-row {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid rgba(27, 58, 85, 0.12);
}
.event-info-row:last-child {
  border-right: none;
}
.event-info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 125, 148, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.event-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}
.event-info-value {
  font-size: 16px;
  color: #3a4d62;
  line-height: 1.45;
}
.event-info-value strong {
  color: var(--sage-deep);
  font-weight: 600;
}
@media (max-width: 768px) {
  .event-info-card {
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
  }
  .event-info-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid rgba(27, 58, 85, 0.12);
    padding-bottom: 18px;
  }
  .event-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
.event-detail-section {
  padding: 20px 4vw 100px;
}
.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 40px;
  max-width: 1500px;
  margin: 0 auto 48px;
  align-items: start;
}
.event-detail-image {
  border: 2px solid var(--brown);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 0 var(--brown);
  background: var(--cream);
}
.event-detail-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.event-detail-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.event-detail-description {
  font-size: 17px;
  line-height: 1.7;
  color: #3a4d62;
}
@media (max-width: 860px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }
}

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

/* 404 page */
.error-page .error-hero {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: left;
  padding-bottom: 60px;
}

.error-page .error-hero-inner {
  max-width: 620px;
}

.error-page .error-hero .lede {
  margin-left: 0;
  margin-right: 0;
}

.error-page .error-hero .hero-cta {
  justify-content: flex-start;
}

.error-page .error-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-page .error-trail-illustration {
  width: min(100%, 420px);
  height: auto;
  animation: error-illustration-bob 4s ease-in-out infinite;
}

@keyframes error-illustration-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.error-page .error-dogs-section {
  padding-top: 0;
}

.error-page .error-dogs-section .dogs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.error-page .error-quick-links-section {
  padding: 20px 6vw 80px;
}

.error-page .error-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.error-page .error-quick-link {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 20px;
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 0 var(--brown);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.error-page .error-quick-link:hover {
  transform: translate(-2px, -4px);
  box-shadow: 0 12px 0 var(--brown);
}

.error-page .error-quick-link-label {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--brown);
  margin-bottom: 6px;
}

.error-page .error-quick-link-count {
  display: block;
  font-size: 13px;
  color: #4a5d72;
}

.error-page .error-event-section {
  padding-top: 0;
}

.error-page .error-cta-section {
  padding: 20px 6vw 100px;
}

.error-page .error-cta-banner {
  background: var(--sage);
  color: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 28px;
  padding: 64px 8vw;
  box-shadow: 0 10px 0 var(--brown);
  width: 100%;
  max-width: none;
}

.error-page .error-cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}

.error-page .error-cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
  margin-bottom: 0;
  color: var(--paper);
  max-width: 28ch;
}

.error-page .error-cta-copy {
  flex: 1;
}

.error-page .error-cta-sub {
  margin-top: 12px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: rgba(250, 243, 224, 0.88);
  max-width: 32ch;
}

.error-page .error-cta-banner .btn-primary {
  background: var(--paper);
  color: var(--brown);
  box-shadow: 0 6px 0 var(--brown);
  flex-shrink: 0;
  white-space: nowrap;
}

.error-page .error-cta-banner .btn-primary:hover {
  box-shadow: 0 8px 0 var(--brown);
}

@media (max-width: 900px) {
  .error-page .error-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
  }

  .error-page .error-hero-inner {
    max-width: none;
  }

  .error-page .error-hero .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .error-page .error-hero .hero-cta {
    justify-content: center;
  }

  .error-page .error-trail-illustration {
    max-width: 320px;
  }

  .error-page .error-quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .error-page .error-dogs-section .dogs-grid {
    grid-template-columns: 1fr;
  }

  .error-page .error-cta-banner {
    padding: 48px 28px;
  }

  .error-page .error-cta-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .error-page .error-cta-banner h2 {
    max-width: none;
  }

  .error-page .error-cta-sub {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .error-page .error-quick-links {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile hero fixes ───────────────────────────────────────────────────
   These rules MUST live after the desktop .dogs-list-page/.breed-page rules
   (which appear earlier in this file) so they win the source-order tie-break
   at equal CSS specificity.

   ROOT CAUSE of the polaroid cut-off:
   The base mobile rule  .hero { grid-template-columns: 1fr }  only has one
   class selector (specificity 0,1,0).  The page-specific rules
   .dogs-list-page .dogs-list-hero  and  .breed-page .breed-hero  have TWO
   class selectors (0,2,0) and silently win — keeping those heroes two-column
   on mobile.  At 375 px the photo column ends up ~123 px wide while the
   polaroid needs ~200 px → clipped.  We override here with equal specificity
   but later source order.
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Force single-column layout for the heroes that override .hero via
     higher specificity desktop rules. */
  .dogs-list-page .dogs-list-hero,
  .breed-page .breed-hero {
    grid-template-columns: 1fr;
  }

  /* Remove the tilt: rotate() makes the polaroid visually wider/taller than
     its CSS box, which can clip against the screen edge. Flat looks clean. */
  .dogs-list-page .dogs-list-hero .polaroid-single,
  .breed-page .breed-hero .polaroid-single {
    transform: none;
    animation: none;
  }

  /* Scale the photo with the screen width (desktop default of clamp(260px…)
     was winning due to source order and forcing the photo too wide). */
  .dogs-list-page .dogs-list-hero .polaroid-single .ph,
  .breed-page .breed-hero .polaroid-single .ph {
    width: clamp(150px, 45vw, 240px);
    height: clamp(150px, 45vw, 240px);
  }

  /* Relax fixed min-heights so the container shrinks to actual photo size. */
  .dogs-list-page .dogs-list-hero .right,
  .breed-page .breed-hero .right {
    min-height: auto;
  }
  .dogs-list-page .dogs-list-hero .hero-photo-single,
  .breed-page .hero-photo-single {
    min-height: auto;
  }
}

/* ── Tablet: 2-column grids (560px – 900px) ────────────────────────── */
@media (min-width: 560px) and (max-width: 900px) {
  .dogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .dogs-list-page .dogs-list-grid,
  .breed-page .dogs-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .collection-grid,
  .collection-grid.breeds {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .name-generator-page .namegen-results {
    grid-template-columns: repeat(2, 1fr);
  }
  .error-page .error-dogs-section .dogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Small phones (≤ 480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Hero headlines – slightly smaller minimum on narrow screens */
  .home-page .home-hero .headline,
  .dogs-list-page .dogs-list-hero .headline,
  .breed-page .breed-hero .headline {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.1;
  }

  /* Single hero polaroid – a touch smaller on tiny phones */
  .home-page .home-hero .polaroid-trio .ph {
    width: 150px;
    height: 150px;
  }

  /* Urgent carousel – smaller cards and buttons to fit narrow banners */
  .urgent-banner {
    padding: 20px 16px 24px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Section vertical padding – less breathing room needed on small screens */
  .dogs-section { padding: 60px 5vw; }
  .collections-section { padding: 60px 5vw; }
  .event-section { padding: 60px 5vw; }
  .namegen-section { padding: 60px 5vw; }

  /* Filter bar – tighter padding on small phones */
  .dogs-list-page .filter-bar {
    padding: 20px 16px;
  }
}

/* ── Very small phones (≤ 380px) ───────────────────────────────────── */
@media (max-width: 380px) {
  /* Nav brand text – prevent overflow on 320px screens */
  .site-nav {
    padding: 12px 18px;
  }
  .site-nav .brand {
    font-size: 18px;
  }

}

/* ── Dog Slideshow (TV kiosk page) ── */
body.slideshow-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slideshow-page .site-nav-wrap,
.slideshow-page footer {
  display: none;
}

.slideshow-page main {
  height: 100%;
  overflow: hidden;
}

.slideshow-page-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slideshow-hero {
  text-align: center;
  padding: 20px 6vw 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.slideshow-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  color: var(--brown);
  margin-bottom: 6px;
}

.slideshow-lede {
  font-size: clamp(14px, 1.8vw, 18px);
  color: #4a5d72;
  max-width: 560px;
  margin: 0 auto;
}

.slideshow-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 3vw 16px;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.slideshow {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.slideshow-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-slide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(10px, 1.4vh, 20px);
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  min-height: 0;
}

@keyframes slideshow-card-in {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.slideshow-slide.is-entering .slideshow-card {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slideshow-slide.is-entering .slideshow-card {
    opacity: 1;
    transform: none;
  }

  .slideshow-track {
    transition: none;
  }
}

/* Float theme – soft shadow cards, no chunky borders */
.slideshow-theme-float .slideshow-card {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(27, 58, 85, 0.1), 0 1px 3px rgba(27, 58, 85, 0.06);
  transition: box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.slideshow-theme-float .slideshow-card:hover,
.slideshow-theme-float .slideshow-card:focus-visible {
  box-shadow: 0 20px 48px rgba(27, 58, 85, 0.14), 0 4px 12px rgba(27, 58, 85, 0.08);
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

.slideshow-theme-float .slideshow-card-pic {
  flex: 1 1 auto;
  min-height: 0;
  background-size: cover;
  background-position: center;
}

.slideshow-theme-float .slideshow-card-body {
  flex-shrink: 0;
  padding: 10px 14px 12px;
}

.slideshow-theme-float .slideshow-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  margin-bottom: 4px;
  color: var(--brown);
}

.slideshow-theme-float .slideshow-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  color: #4a5d72;
}

.slideshow-theme-float .slideshow-card-details {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slideshow-theme-float .slideshow-card-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terra-deep);
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1;
  padding: 0 0.35em;
  opacity: 0.9;
}

.slideshow-theme-float .slideshow-card-gender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.slideshow-theme-float .slideshow-card-gender.gender-male {
  background: rgba(59, 125, 148, 0.2);
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 1.5px rgba(31, 80, 102, 0.25);
}

.slideshow-theme-float .slideshow-card-gender.gender-female {
  background: rgba(237, 117, 99, 0.22);
  color: var(--terra-deep);
  box-shadow: inset 0 0 0 1.5px rgba(193, 70, 53, 0.2);
}

.slideshow-theme-float .slideshow-card-gender.gender-unknown {
  background: rgba(74, 93, 114, 0.12);
  color: #4a5d72;
  font-size: 14px;
}

.slideshow-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 6vw;
  text-align: center;
}

.slideshow-empty p {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--sage-deep);
  max-width: 520px;
}

@media (max-width: 1199px) {
  .slideshow-slide {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: clamp(10px, 1.4vh, 20px);
  }
}

@media (max-width: 767px) {
  .slideshow-hero {
    padding: 16px 5vw 8px;
  }

  .slideshow-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .slideshow-wrap {
    padding: 4px 4vw 12px;
  }

  .slideshow-theme-float .slideshow-card-gender {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
}

@media (max-height: 800px) {
  .slideshow-hero {
    padding: 12px 6vw 8px;
  }

  .slideshow-headline {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 4px;
  }

  .slideshow-lede {
    font-size: 14px;
  }

  .slideshow-theme-float .slideshow-card-body {
    padding: 8px 12px 10px;
  }

  .slideshow-theme-float .slideshow-card-name {
    font-size: clamp(16px, 1.4vw, 20px);
  }
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 100px 6vw 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb li + li::before {
  content: "›";
  opacity: 0.35;
  font-size: 15px;
  line-height: 1;
}
.breadcrumb a {
  color: var(--brown);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
.breadcrumb a:hover {
  opacity: 1;
  color: var(--terra-deep);
}
.breadcrumb li[aria-current="page"] span {
  opacity: 1;
  font-weight: 600;
}

/* When breadcrumbs precede the hero, reduce the hero's top padding so the
   combined breadcrumb top-padding + hero top-padding stays proportional. */
.has-breadcrumbs .hero,
.has-breadcrumbs .dog-profile-hero {
  padding-top: 20px;
}

/* Slideshow is a TV kiosk — hide breadcrumbs there */
.slideshow-page .breadcrumb {
  display: none;
}

@media (max-width: 900px) {
  .breadcrumb {
    padding: 16px 5vw 0;
  }
  .has-breadcrumbs .hero,
  .has-breadcrumbs .dog-profile-hero {
    padding-top: 12px;
  }
}

