/* Shared header shelf, mobile menu, and tap-target helpers. */
.site-head,
header.sticky,
.nav-wrap {
  background: #FAF7F2;
  padding-bottom: 10px;
}
html { scroll-padding-top: 96px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0A0A0B;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { background: #F3EEE7; }
.nav-toggle:focus-visible { outline: 2px solid #C8125E; outline-offset: 2px; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle[aria-expanded="true"] .nav-ico-open { display: none; }
.nav-toggle .nav-ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-ico-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  width: calc(100% - 24px);
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(236, 230, 222, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 32px -18px rgba(40, 20, 30, 0.35);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #0A0A0B;
  font-size: 15px;
}
.mobile-nav a:hover { background: #FAF7F2; }
.mobile-nav .mobile-nav-cta {
  background: #0A0A0B;
  color: #fff;
  font-weight: 600;
  justify-content: center;
  margin-top: 6px;
}
.mobile-nav .mobile-nav-cta:hover { background: #000; color: #fff; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .mobile-nav,
  .mobile-nav.is-open { display: none !important; }
}

/* "Recommended" labels should never wrap mid-word. */
.tag,
.rec-badge {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Article and contact tap targets */
nav[aria-label="Breadcrumb"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  box-sizing: border-box;
}
.prose-hf a { position: relative; }
.prose-hf a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 44px;
  transform: translateY(-50%);
}

/* Desktop primary nav: py-2.5 alone is 42.5px tall. Both axes must be >= 44px. */
nav[aria-label="Primary"] a,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
}

/* Blog index "Back to Hookfull" and similar standalone back links. */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  box-sizing: border-box;
  vertical-align: middle;
}

nav[aria-label="Footer"] a {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

/* FAQ and article in-body links share the 44px hit pad (look unchanged). */
#faq a, .faq a, article .prose a, article p a {
  position: relative;
}
#faq a::after, .faq a::after, article .prose a::after, article p a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 44px;
  transform: translateY(-50%);
}
