:root {
  --bg: #f2f7f7; --surface: #ffffff; --surface-alt: #dcebec;
  --text: #17262a; --text-muted: #50666b; --line: #cfdfe0; --accent: #2c7a88;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a1d; --surface: #172529; --surface-alt: #1f3237;
    --text: #e3eff0; --text-muted: #9fb6ba; --line: #2a4146; --accent: #7cc4d0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0 16px 64px; background: var(--bg); color: var(--text);
  font-family: var(--font, sans-serif); font-size: 16px; line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 44rem; margin: 0 auto; }
a { color: var(--accent); }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 16px 0 0; font-size: 0.875rem; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.top a { text-decoration: none; font-weight: 600; }
.eyebrow { margin: 28px 0 0; color: var(--accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; }
h1 { margin: 4px 0 0; font-size: 1.75rem; line-height: 1.4; }
.sub { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9375rem; }
h2 { margin: 36px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.125rem; line-height: 1.5; }
p { margin: 12px 0 0; }
dl.facts { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
dl.facts dt, dl.facts dd { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); line-height: 1.6; }
dl.facts dt:first-of-type, dl.facts dt:first-of-type + dd { border-top: 0; }
dl.facts dt { color: var(--text-muted); font-size: 0.875rem; font-weight: 700; background: var(--surface-alt); }
.cta { margin-top: 40px; padding: 20px 22px; background: var(--surface-alt); border-radius: 24px; }
.cta h2 { margin: 0; padding: 0; border: 0; font-size: 1.0625rem; }
.cta p { margin: 8px 0 0; font-size: 0.9375rem; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stores a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 0.9375rem; }
.pager a { text-decoration: none; }
#q { width: 100%; margin-top: 20px; padding: 12px 20px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.count { margin: 10px 0 0; color: var(--text-muted); font-size: 0.8125rem; }
ul.breeds { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 8px; }
ul.breeds li a { display: block; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--text); line-height: 1.5; }
ul.breeds li a:hover, ul.breeds li a:focus { border-color: var(--accent); }
ul.breeds small { display: block; color: var(--text-muted); font-size: 0.75rem; }
footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.8125rem; }
.photo { margin: 20px 0 0; background: #4e9aa8; border-radius: 28px; overflow: hidden; text-align: center; }
.photo img { display: block; width: 100%; height: auto; }
ul.breeds li a.has-img { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; }
ul.breeds li a.has-img img { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #4e9aa8; }
#consent { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 40rem; margin: 0 auto; padding: 16px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.25); z-index: 10; font-size: 0.875rem; line-height: 1.6; }
#consent p { margin: 0; }
#consent .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#consent button { flex: 1 1 8rem; padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--accent); background: transparent; color: var(--accent); }
#consent button.yes { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
