/* Dog Breed Health — stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1d4ed8;
  --blue-dark:   #1e3a8a;
  --blue-light:  #bfdbfe;
  --blue-tint:   #eff6ff;
  --amber:       #d97706;
  --amber-tint:  #fffbeb;
  --amber-light: #fde68a;
  --red:         #dc2626;
  --red-tint:    #fef2f2;
  --red-light:   #fecaca;
  --orange-tint: #fff7ed;
  --orange-light:#fed7aa;
  --green:       #16a34a;
  --green-tint:  #f0fdf4;
  --green-light: #bbf7d0;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-900:    #111827;
  --radius:      8px;
  --max-w:       960px;
  --font:        "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: var(--blue-dark);
  padding: .7rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: -.01em;
}
.site-logo svg { opacity: .9; }
.site-nav a { color: rgba(255,255,255,.8); font-size: .875rem; margin-left: 1.25rem; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--gray-200);
  background: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: .85rem;
  color: var(--gray-500);
}
.site-footer a { color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .4rem; }
.footer-disclaimer { margin-top: .75rem; font-size: .8rem; color: var(--gray-400); }

/* Breadcrumb */
.breadcrumb {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.bc-sep { color: var(--gray-400); font-size: .75rem; }

/* Prevalence badges */
.prevalence-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2em .55em;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
.prev-very-high { background: var(--red-tint);    color: var(--red);    border-color: var(--red-light); }
.prev-high       { background: var(--orange-tint); color: #c2410c;       border-color: var(--orange-light); }
.prev-moderate   { background: var(--amber-tint);  color: var(--amber);  border-color: var(--amber-light); }
.prev-low        { background: var(--green-tint);  color: var(--green);  border-color: var(--green-light); }
.prev-large { font-size: .85rem; padding: .3em .9em; }

/* Facts strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1.5rem;
}
.fact { display: flex; flex-direction: column; gap: .1rem; }
.fact-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-500);
}
.fact-value { font-size: .9rem; font-weight: 600; color: var(--gray-900); }

/* Content sections */
.section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray-100);
}
.section p  { font-size: .93rem; line-height: 1.7; margin-bottom: .5rem; }
.section p:last-child { margin-bottom: 0; }
.section ul { padding-left: 1.15rem; }
.section li { font-size: .93rem; line-height: 1.7; margin-bottom: .25rem; }

/* Breed note */
.breed-note {
  background: var(--blue-tint);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 4px 4px 0;
  padding: .65rem .9rem;
  margin-top: .85rem;
  font-size: .9rem;
  line-height: 1.6;
}

/* Vet urgency note */
.vet-note {
  background: var(--amber-tint);
  border-left: 3px solid var(--amber-light);
  border-radius: 0 4px 4px 0;
  padding: .65rem .9rem;
  margin-top: .85rem;
  font-size: .9rem;
  line-height: 1.6;
}

/* Cost block */
.cost-block {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: .65rem 1rem;
  margin-top: 1rem;
}
.cost-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); }
.cost-value { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

/* Insurance CTA */
.insurance-cta {
  background: var(--blue-tint);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ins-text { flex: 1; min-width: 200px; }
.ins-text strong { font-size: .95rem; color: var(--gray-900); display: block; margin-bottom: .35rem; }
.ins-text p { font-size: .88rem; line-height: 1.6; color: var(--gray-900); margin: 0; }
.ins-links { display: flex; flex-direction: column; gap: .4rem; min-width: 180px; }
.ins-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .45em 1em;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
}
.ins-btn:hover { background: var(--blue-dark); text-decoration: none; }
.ins-btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue-light);
}
.ins-btn-secondary:hover { background: var(--blue-tint); }

/* Related grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .85rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--gray-50);
  color: inherit;
  transition: border-color .1s, background .1s;
}
.related-card:hover { border-color: var(--blue-light); background: var(--blue-tint); text-decoration: none; }
.related-name { font-size: .85rem; font-weight: 600; color: var(--gray-900); }

/* Page hero (breed×condition) */
.page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 1.25rem;
}
.page-hero-text { min-width: 0; }
.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: .3rem;
}
.hero-sub { font-size: .9rem; color: var(--gray-500); margin-bottom: .6rem; }

/* Breed hero */
.breed-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 1.25rem;
}
.breed-hero-text { min-width: 0; }
.breed-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: .5rem;
}
.breed-sub { font-size: .93rem; color: var(--gray-500); line-height: 1.65; margin-bottom: .85rem; }
.breed-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}
.bfact { display: flex; align-items: center; gap: .35rem; }
.bfact-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); }
.bfact-val { font-size: .88rem; font-weight: 600; color: var(--gray-900); }

/* Breed image (hero, shared by breed page and breed×condition page) */
.breed-hero-image { width: 220px; flex-shrink: 0; }
.breed-hero-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  display: block;
}

/* Conditions grid (breed page) */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}
.cond-card {
  display: block;
  padding: .7rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  transition: border-color .1s, background .1s;
}
.cond-card:hover { border-color: var(--blue-light); background: var(--blue-tint); text-decoration: none; }
.cond-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.cond-name { font-size: .88rem; font-weight: 600; color: var(--gray-900); }
.cond-category { font-size: .75rem; color: var(--gray-500); }

/* Homepage */
.home-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}
.home-hero h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--gray-900); margin-bottom: .35rem; }
.home-sub { font-size: .95rem; color: var(--gray-500); }

.browse-section { margin-bottom: 2.5rem; }
.browse-heading {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-500);
  margin-bottom: .75rem;
}
.breed-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem;
}
.breed-card {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .6rem .75rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .1s, background .1s;
}
.breed-card:hover { border-color: var(--blue-light); background: var(--blue-tint); text-decoration: none; }
.bc-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
  display: block;
}
.bc-body { display: flex; flex-direction: column; min-width: 0; }
.bc-name { font-size: .9rem; font-weight: 600; color: var(--gray-900); display: block; margin-bottom: .3rem; }
.bc-attrs { display: flex; flex-wrap: wrap; gap: .15rem .5rem; }
.bc-attr { font-size: .72rem; color: var(--gray-500); }
.bc-attr-count { color: var(--blue); font-weight: 600; }

/* Responsive */
@media (max-width: 600px) {
  .breed-hero       { grid-template-columns: 1fr; }
  .breed-hero-image { display: none; }
  .page-hero        { grid-template-columns: 1fr; }
  .page-hero .breed-hero-image { display: none; }
  .facts-strip      { grid-template-columns: repeat(3, 1fr); }
  .insurance-cta    { flex-direction: column; }
  .ins-links        { flex-direction: row; flex-wrap: wrap; }
  .breed-grid       { grid-template-columns: 1fr 1fr; }
  .bc-thumb         { width: 48px; height: 48px; }
  .conditions-grid  { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: 1fr 1fr; }
}
