/* ============================================================
   BREED PAGES
   Depends on the CSS variables (--color-*, --radius-*, --shadow-*,
   --transition) defined in content-base.css. Load this after
   content-base.css on any page that uses it.
   ============================================================ */


.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }

.breed-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  display: block;
}

.article__cta-inline { text-align: center; margin: 0 0 2rem; }

.breed-cta {
  display: inline-block;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition);
}
.breed-cta:hover { background: var(--color-accent-hover); }
.breed-cta--primary { display: block; }
.breed-cta--primary::after { content: " \2192"; }
.breed-cta--primary { box-shadow: 0 6px 16px rgba(45, 106, 79, 0.22); }
.breed-cta-note { text-align: center; font-size: 0.82rem; color: var(--color-muted); margin: 0.6rem 0 0; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: none;
}
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  .article { padding-bottom: 6rem; }
}
.sticky-cta .breed-cta { width: 100%; }
.sticky-cta .breed-cta--sticky::after { content: ""; }

h2.section-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin: 0 0 1rem;
}
.section-label--feeding { color: var(--color-feeding-accent); margin-bottom: 0; }

.quick-facts {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.quick-facts ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding-left: 0;
  margin-bottom: 1.25rem;
}
.quick-facts__tile { border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.quick-facts__tile--tan { background: var(--color-tan-tint); text-align: center; }
.quick-facts__tile--green { background: var(--color-accent-tint); text-align: center; }
.quick-facts__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.quick-facts__tile--green .quick-facts__label { color: var(--color-accent); }
.quick-facts__value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--color-text); }
.quick-facts__sublabel {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.life-stage-bar { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; }
.life-stage-bar__segment { flex: 1; }
.life-stage-bar__segment--puppy { background: #96C7A8; }
.life-stage-bar__segment--adolescent { background: #4F8D6C; }
.life-stage-bar__segment--adult { background: var(--color-accent-hover); }
.life-stage-bar__segment--senior { background: var(--color-feeding-accent); }
.life-stage-legend { display: flex; justify-content: space-between; margin-top: 0.6rem; }
.life-stage-legend__item { font-size: 0.85rem; }
.life-stage-legend__item strong { display: block; font-weight: 700; color: var(--color-text); }
.life-stage-legend__item span { display: block; color: var(--color-muted); font-size: 0.78rem; margin-top: 0.15rem; }

.callout {
  background: var(--color-feeding-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout__header { display: flex; align-items: center; gap: 0.5rem; }
.callout__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-feeding-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout p { margin: 0.5rem 0 0; color: var(--color-text); font-style: italic; }

.energy-temperament {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.energy-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.6rem 0 1.1rem; }
.energy-row__label { flex: 0 0 auto; font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.energy-bar { display: flex; gap: 4px; flex: 1 1 auto; margin: 0; }
.energy-bar__segment { flex: 1; height: 10px; border-radius: var(--radius-pill); background: var(--color-accent-tint); }
.energy-bar__segment--filled { background: var(--color-accent); }

.health-notes__heading { font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 1.1rem 0 0.4rem; }
.health-notes__heading:first-of-type { margin-top: 0; }

.faq { margin: 2rem 0; }
.faq__heading { font-size: 1.4rem; font-weight: 800; color: var(--color-text); margin: 2rem 0 1rem; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.similar-breeds { margin: 2.5rem 0 1rem; }
.similar-breeds h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.similar-breeds__carousel { position: relative; }
.similar-breeds ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 0 0.5rem;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.similar-breeds ul::-webkit-scrollbar { display: none; }
.similar-breeds li { flex: 0 0 auto; margin-bottom: 0; }
.similar-breeds a {
  display: block;
  width: 150px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
}
.similar-breeds__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 78px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-tint);
  margin-bottom: 0.5rem;
}
.similar-breeds__thumb svg { width: 32px; height: 32px; color: var(--color-accent); opacity: 0.55; }
.similar-breeds__name { display: block; }
.similar-breeds__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-accent);
  cursor: pointer;
  z-index: 5;
  padding: 0;
}
.similar-breeds__arrow--prev { left: -6px; }
.similar-breeds__arrow--next { right: -6px; }
.similar-breeds__arrow[hidden] { display: none; }

.breed-page h1 { font-size: 2rem; }

/* ============================================================
   BREEDS HUB (/breeds/ index page)
   Reuses --color-* tokens from content-base.css wherever they're
   a close match; two new tokens below for shades the existing
   palette doesn't have (hero-dark green, neutral search/tab tint).
   ============================================================ */
:root {
  --color-hub-hero: #12361e;
  --color-hub-hero-muted: #C0D4C4;
  --color-hub-tint: #F0EEE9;
}

.hub-hero { background: var(--color-hub-hero); padding: 18px 20px 26px; }
.hub-hero .site-header { position: static; background: transparent; border-bottom: none; }
.hub-hero .site-header__brand { color: #fff; }
.hub-hero .site-header__link { color: var(--color-hub-hero-muted); }
.hub-hero .site-header__nav a:nth-child(2) { color: #fff; }
.hub-hero .site-header__link:hover,
.hub-hero .site-header__link:focus-visible { color: #fff; }

.hub-hero__content { padding-top: 22px; }
.hub-hero__crumb { font-size: 12px; color: var(--color-hub-hero-muted); margin-bottom: 10px; }
.hub-hero__title { font-size: 30px; line-height: 1.1; color: #fff; margin-bottom: 10px; }
.hub-hero__subhead { font-size: 14px; line-height: 1.55; color: var(--color-hub-hero-muted); margin: 0 0 18px; }

.breed-cta--hub-hero,
.breed-cta--hub-banner {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: none;
}
.breed-cta--hub-hero { color: var(--color-hub-hero); }
.breed-cta--hub-hero:hover { background: var(--color-hub-tint); }
.breed-cta--hub-banner { color: var(--color-accent); }
.breed-cta--hub-banner:hover { background: var(--color-hub-tint); }

.hub-tabs { position: sticky; top: 0; z-index: 10; background: var(--color-surface); padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
.hub-tabs__scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.hub-tabs__scroll::-webkit-scrollbar { display: none; }
.hub-tab {
  flex-shrink: 0;
  border: none;
  background: var(--color-hub-tint);
  color: var(--color-muted);
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.hub-tab--active { background: var(--color-hub-hero); color: #fff; }

.hub-search { padding: 12px 20px 0; }
.hub-search__box { display: flex; align-items: center; gap: 10px; background: var(--color-hub-tint); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 9px 12px; }
.hub-search__box svg { flex-shrink: 0; }
.hub-search__box input { border: none; background: transparent; outline: none; font-size: 13.5px; font-family: inherit; color: var(--color-text); width: 100%; }

.hub-result-count { font-size: 13px; color: var(--color-muted); font-weight: 600; margin-bottom: 14px; }
.hub-group { margin-bottom: 26px; }
.hub-group__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.hub-group__head h2 { font-weight: 800; font-size: 16px; color: var(--color-text); margin: 0; }
.hub-group__count { font-size: 12px; color: var(--color-muted); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }

.hub-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; }
.hub-card__img { aspect-ratio: 4 / 3; background: var(--color-accent-tint); overflow: hidden; }
.hub-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity var(--transition); }
.hub-card__body { padding: 12px; }
.hub-card__name { font-weight: 700; font-size: 14px; color: var(--color-text); margin-bottom: 4px; }
.hub-card__weight { font-size: 12px; color: var(--color-muted); margin-bottom: 6px; }
.hub-card__link { font-size: 12px; font-weight: 700; color: var(--color-accent); }

.hub-cta-banner { background: var(--color-accent); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; margin: 8px 0 26px; }
.hub-cta-banner__headline { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 6px; }
.hub-cta-banner__sub { font-size: 13px; color: var(--color-hub-tint); margin-bottom: 14px; }
