/* TreatShelf header — Dogs/Cats dropdowns on desktop, hamburger on mobile */
body.nav-open { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 242, 0.94);
  border-bottom: 1px solid rgba(213, 221, 216, 0.9);
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}
.site-header-start {
  display: flex;
  align-items: center;
  gap: 1.35rem 1.75rem;
  min-width: 0;
}
.site-header .brand {
  font-family: var(--font-display, "Instrument Serif", Georgia, serif);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--brand, #0f3d32);
  text-decoration: none;
  flex: 0 0 auto;
}

/* Desktop inline menu — sits beside the brand */
.site-menu {
  display: none;
  align-items: center;
  gap: 0.35rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu-item {
  position: relative;
}
.site-menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft, #3a4a44);
  cursor: pointer;
}
.site-menu-btn:hover,
.site-menu-item.is-open .site-menu-btn {
  color: var(--brand, #0f3d32);
}
.site-menu-sub {
  list-style: none;
  margin: 0;
  /* Pad the top so the hit area bridges header → panel; no dead gap on the way down */
  padding: 0.55rem 0.4rem 0.4rem;
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  min-width: 11.5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none;
  z-index: 70;
}
.site-menu-sub::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.45rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--line, #d5ddd8);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 32, 28, 0.08);
}
.site-menu-item.is-open .site-menu-sub,
.site-menu-item:hover .site-menu-sub,
.site-menu-item:focus-within .site-menu-sub {
  display: grid;
  gap: 0.15rem;
}
.site-menu-sub a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ink-soft, #3a4a44);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
  white-space: nowrap;
}
.site-menu-sub a:hover {
  background: rgba(15, 61, 50, 0.06);
  color: var(--brand, #0f3d32);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line, #d5ddd8);
  border-radius: 10px;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  font: inherit;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--brand, #0f3d32);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(calc(2px + 0.28rem)) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(calc(-2px - 0.28rem)) rotate(-45deg);
}

/* Mobile drawer */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 32, 28, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 22rem);
  height: 100%;
  background: #f7faf7;
  border-left: 1px solid var(--line, #d5ddd8);
  padding: 4.75rem 1.15rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.site-nav.is-open .site-nav-panel { transform: translateX(0); }

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.site-nav-list > li > a,
.nav-acc-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line, #d5ddd8);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #14201c);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.site-nav-list > li > a:hover,
.nav-acc-btn:hover { border-color: #7fb89a; }
.nav-acc-btn::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted, #6a7872);
  border-bottom: 2px solid var(--muted, #6a7872);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
.nav-acc-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.nav-sub {
  list-style: none;
  margin: 0.35rem 0 0.55rem;
  padding: 0.25rem 0 0.25rem 0.65rem;
  display: none;
  gap: 0.2rem;
}
.nav-sub.is-open { display: grid; }
.nav-sub a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--ink-soft, #3a4a44);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
}
.nav-sub a:hover {
  background: rgba(15, 61, 50, 0.06);
  color: var(--brand, #0f3d32);
}
.nav-meta {
  margin: 1.25rem 0.25rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #d5ddd8);
  display: grid;
  gap: 0.55rem;
}
.nav-meta a {
  color: var(--muted, #6a7872);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-meta a:hover { color: var(--brand, #0f3d32); }

@media (min-width: 860px) {
  .site-menu { display: flex; }
  .nav-toggle { display: none; }
  .site-nav { display: none !important; }
}
