:root {
  --ink: #17201c;
  --muted: #607068;
  --line: #dfe7e1;
  --panel: #ffffff;
  --field: #f7faf8;
  --mint: #dff4ea;
  --green: #1f7a5a;
  --green-deep: #14543f;
  --coral: #d86d4c;
  --gold: #f2b84b;
}

* {
  letter-spacing: 0;
}

body {
  margin: 0;
  background: #f4f8f5;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--green-deep);
}

.site-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.hero-band {
  background:
    linear-gradient(rgba(20, 84, 63, 0.78), rgba(20, 84, 63, 0.64)),
    url("https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 320px;
  display: flex;
  align-items: end;
}

.hero-band h1,
.detail-hero h1 {
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.03;
  margin: 0;
}

.hero-band p,
.detail-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 780px;
}

.toolbar {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.tool-panel,
.data-panel,
.breed-card,
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23, 32, 28, 0.08);
}

.tool-panel {
  padding: 16px;
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 8px;
  min-height: 44px;
}

.btn-brand {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-deep);
  --bs-btn-hover-border-color: var(--green-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 8px;
  font-weight: 700;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stat-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.breed-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.breed-card:hover {
  color: var(--ink);
  border-color: rgba(31, 122, 90, 0.45);
  box-shadow: 0 18px 44px rgba(23, 32, 28, 0.12);
  transform: translateY(-2px);
}

.breed-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 800;
}

.breed-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 14px 0 6px;
}

.breed-meta {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 42px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--field);
  color: #375146;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-hero {
  background:
    linear-gradient(90deg, rgba(20, 84, 63, 0.92), rgba(31, 122, 90, 0.72)),
    url("https://images.unsplash.com/photo-1601758125946-6ec2ef64daf8?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 92px 0 54px;
}

.detail-panel {
  padding: 22px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.fact-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  margin-top: 3px;
  font-weight: 700;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--field);
  border-radius: 8px;
  padding: 10px 12px;
}

.score-label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.score-wrap {
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}

.score-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccd8d0;
}

.score-dot.is-filled {
  background: var(--coral);
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .breed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-band {
    min-height: 360px;
  }

  .breed-grid,
  .fact-list,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    margin-top: -28px;
  }
}
