/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/fraunces-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #fffbf5;
  --bg-soft: #f6efe4;
  --bg-warm: #fdebd3;
  --surface: #ffffff;
  --ink: #1d2721;
  --ink-muted: #526058;
  --border: #e7dbc9;
  --border-strong: #d5c3aa;
  --terracotta: #d95d39;
  --terracotta-dark: #b84524;
  --terracotta-soft: #fde8df;
  --pine: #1b4332;
  --pine-mid: #2d6a4f;
  --pine-soft: #e3f1ea;
  --marigold: #e89624;
  --marigold-soft: #fef2d6;
  --sky: #257394;
  --sky-soft: #e2f2f8;
  --plum: #7c3a6b;
  --plum-soft: #f5e6f1;
  --sage: #4a7c59;
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 10px 28px rgba(27, 67, 50, 0.09);
  --shadow-lg: 0 18px 42px rgba(27, 67, 50, 0.13);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine);
  line-height: 1.18;
  margin-top: 0;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.45rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 54px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.section-head p { margin: 4px 0 0; color: var(--ink-muted); max-width: 650px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--terracotta-dark); background: var(--terracotta-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 251, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.24rem;
  color: var(--pine); text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--marigold) 100%);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.93rem;
  color: var(--ink); transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--terracotta-soft); color: var(--terracotta-dark); text-decoration: none;
}
.nav-cta {
  background: var(--pine) !important; color: #fff !important;
  padding: 8px 15px !important;
}
.nav-cta:hover { background: var(--pine-mid) !important; color: #fff !important; }
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--pine); cursor: pointer;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 162, 54, 0.22), transparent 44%),
    radial-gradient(circle at 88% 12%, rgba(217, 93, 57, 0.16), transparent 40%),
    radial-gradient(circle at 75% 88%, rgba(45, 106, 79, 0.14), transparent 42%),
    linear-gradient(180deg, #fff6e8 0%, #fffbf5 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 54px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px; align-items: center;
}
.hero-sub { font-size: 1.08rem; color: var(--ink-muted); margin: 0 0 22px; max-width: 560px; }

/* Search box */
.search-box {
  position: relative; background: var(--surface);
  border: 2px solid var(--pine); border-radius: 16px;
  display: flex; align-items: center; padding: 6px;
  box-shadow: var(--shadow-md); max-width: 560px;
}
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; padding: 10px 14px; color: var(--ink); min-width: 0;
}
.search-box button {
  background: var(--terracotta); color: #fff; border: 0; border-radius: 11px;
  padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.search-box button:hover { background: var(--terracotta-dark); }
.search-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: none;
  max-height: 360px; overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-hit {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none;
}
.search-hit:last-child { border-bottom: 0; }
.search-hit:hover { background: var(--bg-soft); text-decoration: none; }
.search-hit img { width: 46px; height: 36px; border-radius: 8px; object-fit: cover; object-position: center 22%; flex-shrink: 0; }
.search-hit-ph { width: 46px; height: 36px; border-radius: 8px; background: var(--pine-soft); color: var(--pine); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; }
.search-hit strong { display: block; font-size: 0.95rem; color: var(--pine); }
.search-hit small { color: var(--ink-muted); font-size: 0.82rem; }

/* Quick chips */
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 0.86rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink);
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--terracotta); background: var(--terracotta-soft); color: var(--terracotta-dark); text-decoration: none; }
.chip-pine { background: var(--pine-soft); border-color: #b7dcc8; color: var(--pine); }
.chip-sky { background: var(--sky-soft); border-color: #b5d9e8; color: #195670; }
.chip-marigold { background: var(--marigold-soft); border-color: #f3d28e; color: #8c5308; }
.chip-plum { background: var(--plum-soft); border-color: #dec0d7; color: var(--plum); }
.chip-terra { background: var(--terracotta-soft); border-color: #f3c1ae; color: var(--terracotta-dark); }

/* Hero dog bento mosaic */
.hero-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mosaic-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 2px solid #fff; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.4; display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mosaic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.mosaic-label {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(27, 67, 50, 0.86); color: #fff;
  padding: 5px 9px; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
  backdrop-filter: blur(4px); display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.mosaic-label span:last-child { opacity: 0.85; font-weight: 500; font-size: 0.72rem; }
.mosaic-card.accent-terra { border-color: #f6c2b0; }
.mosaic-card.accent-marigold { border-color: #f7d68d; }
.mosaic-card.accent-sky { border-color: #b8dce9; }
.mosaic-card.accent-pine { border-color: #b7dcc8; }
.mosaic-card.accent-plum { border-color: #dfc0d8; }

/* Stats ribbon */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px;
}
.stat-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 16px; box-shadow: var(--shadow-sm);
}
.stat-pill strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--pine); line-height: 1.1; }
.stat-pill span { font-size: 0.83rem; color: var(--ink-muted); font-weight: 600; }

/* Interactive visual finder */
.finder-panel {
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md);
}
.finder-controls {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.field-group label {
  display: block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--pine); margin-bottom: 6px;
}
.field-group select, .field-group input {
  width: 100%; padding: 10px 12px; border-radius: 11px;
  border: 1.5px solid var(--border-strong); background: var(--bg);
  font: inherit; font-size: 0.94rem; color: var(--ink);
}
.finder-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 18px 0 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.finder-count { font-weight: 700; color: var(--pine); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 0.94rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-mid); color: #fff; }
.btn-ghost { background: var(--bg-soft); border-color: var(--border-strong); color: var(--pine); }
.btn-ghost:hover { background: var(--terracotta-soft); border-color: var(--terracotta); color: var(--terracotta-dark); }

/* Breed card grids */
.breed-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.breed-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.breed-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  color: var(--ink);
}
.breed-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--terracotta); text-decoration: none;
}
.breed-thumb {
  position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden;
}
.breed-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
}
.breed-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--pine-soft) 0%, var(--marigold-soft) 100%);
  color: var(--pine); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.breed-thumb-fallback small { font-family: var(--font-body); font-size: 0.74rem; color: var(--ink-muted); font-weight: 600; }
.size-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255, 251, 245, 0.94); color: var(--pine);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; text-transform: capitalize;
}
.breed-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.breed-body h3 { font-size: 1.07rem; margin: 0; color: var(--pine); }
.breed-origin { font-size: 0.82rem; font-weight: 700; color: var(--terracotta-dark); }
.breed-snippet { font-size: 0.86rem; color: var(--ink-muted); margin: 2px 0 0; }
.breed-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 8px; }
.mini-tag {
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-muted);
}

/* Colorful hub cards */
.hub-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.hub-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 5px solid var(--terracotta);
  border-radius: var(--radius-md); padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
  color: var(--ink); transition: transform 0.15s, box-shadow 0.15s;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.hub-card.tone-pine { border-top-color: var(--pine-mid); }
.hub-card.tone-marigold { border-top-color: var(--marigold); }
.hub-card.tone-sky { border-top-color: var(--sky); }
.hub-card.tone-plum { border-top-color: var(--plum); }
.hub-card.tone-sage { border-top-color: var(--sage); }
.hub-card h3 { font-size: 1.08rem; margin: 0; }
.hub-card p { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }
.hub-count { font-size: 0.78rem; font-weight: 800; color: var(--terracotta-dark); margin-top: auto; padding-top: 6px; }

/* A-Z bar */
.az-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.az-pill {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong);
  font-weight: 800; color: var(--pine); font-size: 0.92rem;
}
.az-pill:hover, .az-pill.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; text-decoration: none; }
.az-pill.disabled { opacity: 0.35; pointer-events: none; }

/* Breed Detail Page */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--pine-mid); font-weight: 600; }
.detail-hero {
  background: linear-gradient(180deg, #fff6e8 0%, #fffbf5 100%);
  border-bottom: 1px solid var(--border); padding: 28px 0 42px;
}
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px; align-items: start;
}
.detail-photo-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.detail-photo-wrap {
  background: var(--bg-soft); aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
}
.detail-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.photo-credit {
  padding: 10px 14px; font-size: 0.78rem; color: var(--ink-muted);
  border-top: 1px solid var(--border); background: var(--surface); line-height: 1.45;
}
.photo-credit a { color: var(--pine-mid); font-weight: 600; }
.quick-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 18px 0;
}
.fact-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 14px;
}
.fact-box small { display: block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.fact-box strong { display: block; font-size: 0.98rem; color: var(--pine); margin-top: 2px; }

.detail-sections {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start;
}
.card-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card-panel h2 { font-size: 1.45rem; margin-bottom: 12px; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.spec-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.spec-item small { display: block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--terracotta-dark); }
.spec-item span { display: block; font-size: 0.94rem; color: var(--ink); margin-top: 2px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }
.study-callout {
  background: var(--sky-soft); border: 1px solid #b8dce9; border-left: 4px solid var(--sky);
  border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-size: 0.92rem;
}
.study-callout strong { color: #154d66; }

/* Compare table */
.compare-hero-pair {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-bottom: 28px;
}
.vs-badge {
  width: 56px; height: 56px; border-radius: 999px;
  background: linear-gradient(135deg, var(--terracotta), var(--marigold));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.data-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.data-table th, table.data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data-table th { background: var(--bg-soft); color: var(--pine); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.data-table tr:last-child td { border-bottom: 0; }
table.data-table tr:hover td { background: #fffaf2; }

/* FAQ */
.faq-item { border-top: 1px solid var(--border); padding: 14px 0; }
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item h3 { font-size: 1.04rem; margin-bottom: 5px; }
.faq-item p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

/* Footer */
.site-footer {
  background: var(--pine); color: #e4efe9; padding: 48px 0 32px; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer p, .site-footer li { font-size: 0.9rem; color: #cce0d5; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: #f6d59d; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.84rem; color: #b7d2c3;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .detail-grid, .detail-sections { grid-template-columns: 1fr; }
  .breed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 14px 20px; flex-direction: column; align-items: stretch; gap: 6px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 28px 0 36px; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mosaic-card:nth-child(n+5) { display: none; }
  .breed-grid, .breed-grid-3, .hub-grid, .hub-grid-4 { grid-template-columns: 1fr; }
  .finder-controls, .quick-facts, .spec-list, .footer-grid { grid-template-columns: 1fr; }
  .compare-hero-pair { grid-template-columns: 1fr; justify-items: center; }
  .section { padding: 36px 0; }
}

/* ===== Generator extensions (build/extra.css) ===== */
.hero h1 { margin-bottom: 14px; }
.mosaic-credit { margin: 10px 2px 0; font-size: 0.76rem; color: var(--ink-muted); }
.mosaic-credit a { color: var(--pine-mid); font-weight: 600; }
.page-hero {
  background: linear-gradient(180deg, #fff6e8 0%, #fffbf5 100%);
  border-bottom: 1px solid var(--border); padding: 28px 0 34px;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.page-hero p.lead { font-size: 1.05rem; color: var(--ink-muted); max-width: 760px; margin: 0; }
.method-note {
  background: var(--marigold-soft); border: 1px solid #f3d28e; border-left: 4px solid var(--marigold);
  border-radius: 12px; padding: 14px 16px; margin: 26px 0 0; font-size: 0.9rem; color: #5f4106;
}
.method-note strong { color: #5f4106; }
.az-section { margin-bottom: 28px; scroll-margin-top: 90px; }
.az-section h2 { font-size: 1.6rem; border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.az-list { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 26px; }
.az-list li { break-inside: avoid; padding: 5px 0; font-size: 0.95rem; }
.az-list li a { font-weight: 700; color: var(--pine); }
.az-list li small { color: var(--ink-muted); margin-left: 4px; }
.lead-text { font-size: 1.05rem; color: var(--ink); margin: 0 0 16px; }
.alt-names { color: var(--ink-muted); font-size: 0.95rem; margin: -4px 0 12px; }
.trait-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.source-list { margin: 0; padding-left: 18px; font-size: 0.9rem; overflow-wrap: anywhere; }
.source-list li { margin-bottom: 6px; }
.source-list small { color: var(--ink-muted); display: block; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-links a { font-weight: 700; }
.mini-breed { display: flex; gap: 10px; align-items: center; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--border); }
.mini-breed:last-child { border-bottom: 0; }
.mini-breed:hover { text-decoration: none; }
.mini-breed img, .mini-breed .mini-ph { width: 58px; height: 44px; border-radius: 9px; object-fit: cover; object-position: center 22%; flex-shrink: 0; }
.mini-breed .mini-ph { background: var(--pine-soft); color: var(--pine); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.mini-breed strong { display: block; color: var(--pine); font-size: 0.95rem; line-height: 1.25; }
.mini-breed small { color: var(--ink-muted); font-size: 0.8rem; }
.compare-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); width: 100%; }
.compare-card .detail-photo-wrap { aspect-ratio: 4 / 3; }
.compare-card h2 { font-size: 1.3rem; margin: 12px 14px 4px; }
.compare-card h2 a { color: var(--pine); }
.compare-card p { margin: 0 14px 12px; color: var(--ink-muted); font-size: 0.9rem; }
.diff-list { margin: 0; padding-left: 20px; }
.diff-list li { margin-bottom: 6px; }
.data-table td.missing { color: var(--ink-muted); font-style: italic; }
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.table-tools input { flex: 1 1 260px; max-width: 420px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--border-strong); background: var(--surface); font: inherit; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink); }
.credit-table td { font-size: 0.86rem; overflow-wrap: anywhere; }
.fact-box strong, .spec-item span { overflow-wrap: anywhere; }
.footer-brand p { max-width: 340px; }
.region-head { margin: 26px 0 12px; font-size: 1.3rem; }
@media (max-width: 680px) {
  .page-hero { padding: 22px 0 26px; }
  .compare-hero-pair .vs-badge { margin: -6px 0; }
  .card-panel { padding: 18px; }
  .finder-panel { padding: 18px; }
  .search-box button { padding: 11px 14px; }
  .data-table { font-size: 0.86rem; }
  table.data-table th, table.data-table td { padding: 10px 11px; }
  .az-pill { width: 34px; height: 34px; }
  .stats-strip { gap: 10px; }
  .stat-pill { padding: 11px 12px; }
  .brand { font-size: 1.1rem; }
}
@media (max-width: 680px) {
  .breed-grid, .breed-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .breed-body { padding: 10px 11px 12px; gap: 4px; }
  .breed-body h3 { font-size: 0.95rem; }
  .breed-origin, .breed-snippet { font-size: 0.76rem; }
  .breed-tags { display: none; }
  .size-badge { top: 6px; right: 6px; font-size: 0.66rem; padding: 2px 7px; }
  .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fact-box { padding: 9px 11px; }
  .fact-box strong { font-size: 0.9rem; }
  .hub-grid, .hub-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-card { padding: 14px 13px 12px; }
  .hub-card h3 { font-size: 0.98rem; }
  .hub-card p { font-size: 0.8rem; }
  .compare-card h2 { font-size: 1.15rem; }
}
@media (max-width: 380px) {
  .hub-grid, .hub-grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .finder-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .field-group label { font-size: 0.72rem; }
  .field-group select, .field-group input { padding: 9px 10px; font-size: 0.88rem; }
}
