/* Cats Complete Guide — clean clinical theme */
:root {
  --bg: #ffffff;
  --surface: #f4f8f8;
  --surface-2: #e8f1f1;
  --line: #dbe5e6;
  --text: #16242c;
  --muted: #56666f;
  --accent: #0e7c7b;
  --accent-dark: #0a5f5e;
  --accent-soft: #e0f2f1;
  --warn: #b4441f;
  --warn-soft: #fdf0ea;
  --tip-soft: #eef6ff;
  --tip: #2663a8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 48, .06), 0 4px 16px rgba(16, 40, 48, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; }
:focus-visible { outline: 3px solid #5fb3b2; outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; }
.brand-text { font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-text b { color: var(--accent); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-main { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center; }
.nav-main > li > a, .nav-all summary { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 550; cursor: pointer; }
.nav-main > li > a:hover, .nav-all summary:hover, .nav-main a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.nav-all { position: relative; }
.nav-all summary { list-style: none; }
.nav-all summary::-webkit-details-marker { display: none; }
.nav-all summary::after { content: " ▾"; font-size: .8em; }
.mega { position: absolute; right: 0; top: calc(100% + 8px); width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; }
.mega a:hover { background: var(--surface); }
.mega-n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-search { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav-search:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--text); cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; max-height: calc(100vh - 64px); overflow: auto; }
  .site-nav.open { display: flex; }
  .nav-main { flex-direction: column; align-items: stretch; }
  .nav-all details[open] .mega, .mega { position: static; width: auto; box-shadow: none; border: 0; grid-template-columns: 1fr; padding: 0 0 0 8px; }
  .nav-search { justify-content: center; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

/* Hero */
.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; min-height: 540px; display: flex; align-items: center; }
.hero-text { max-width: 560px; padding: 56px 0; }
.hero-img { position: absolute; inset: 0; z-index: 1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,0) 68%); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.eyebrow a { text-decoration: none; }
.lede { font-size: 1.15rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) {
  .hero-inner { min-height: 0; }
  .hero-img { position: relative; height: 240px; }
  .hero-img::after { background: linear-gradient(0deg, var(--surface) 0%, rgba(255,255,255,0) 40%); }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-text { padding: 20px 0 36px; }
}

/* Sections & grids */
main > section, .related { margin-top: 56px; margin-bottom: 56px; }
main > .hero { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.band { background: var(--surface); padding: 48px 0; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c6d8d9; color: var(--text); }
.card-img { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px !important; }
.tags span { font-size: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.tool-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: box-shadow .15s, border-color .15s; }
.tool-card:hover { box-shadow: var(--shadow); border-color: var(--accent); color: var(--text); }
.tool-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.tool-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); font-size: 1.35rem; margin-bottom: 12px; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: r; }
.roadmap a { display: block; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); text-decoration: none; color: var(--text); border: 1px solid transparent; }
.roadmap a:hover { border-color: var(--accent); }
.roadmap b { display: block; color: var(--accent-dark); font-size: 1.1rem; margin-bottom: 4px; }
.roadmap span { color: var(--muted); font-size: .93rem; }

/* Section hero */
.section-hero { background: var(--surface); margin-top: 0 !important; padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.section-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.section-hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.section-hero figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .section-hero-inner { grid-template-columns: 1fr; gap: 20px; } .section-hero figure { order: -1; aspect-ratio: 16/9; } }
.section-outro { margin-top: 24px; }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 16px 0 18px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #9aa9b0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article { max-width: 760px; min-width: 0; }
.article-head { margin-bottom: 20px; }
.meta { font-size: .87rem; color: var(--muted); margin: 0; }
.article-hero { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); max-height: 480px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; padding-top: 56px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.side-box h2 { font-size: 1rem; margin-bottom: 10px; }
.side-box p { font-size: .92rem; color: var(--muted); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: block; padding: 6px 0; font-size: .92rem; text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--line); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover, .side-list a[aria-current] { color: var(--accent); }
.side-list a[aria-current] { font-weight: 650; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; gap: 0; } .sidebar { position: static; padding-top: 24px; } }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 28px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 4px; padding-left: 20px; font-size: .95rem; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose code { background: var(--surface); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

.callout { border-radius: 12px; padding: 14px 18px; margin: 0 0 1.4em; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-soft); border-color: var(--warn); }
.callout-vet { background: var(--surface); border-color: #7fa9ad; }
.callout-tip { background: var(--tip-soft); border-color: var(--tip); }
.callout.small { font-size: .9rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 0; }
.pager a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.pager-next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }

/* Breeds */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip:hover { background: var(--accent); color: #fff; }
.h-sm { font-size: 1.1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 650; color: var(--muted); gap: 4px; }
.filters label.check { flex-direction: row; align-items: center; gap: 8px; font-size: .92rem; color: var(--text); padding-bottom: 8px; }
.filters input[type=search], .filters select { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 130px; color: var(--text); }
.filter-count { color: var(--muted); font-size: .92rem; }
.empty { padding: 24px; text-align: center; background: var(--surface); border-radius: var(--radius); }
.breed-card .card-img { aspect-ratio: 4/3; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.fact-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fact-grid dd { margin: 0; font-weight: 600; font-size: .95rem; }
.meters { display: flex; flex-direction: column; gap: 7px; }
.meter { display: grid; grid-template-columns: 140px auto 1fr; align-items: center; gap: 10px; font-size: .88rem; }
.meter-bar { display: flex; gap: 3px; }
.meter-bar i { width: 18px; height: 8px; border-radius: 3px; background: var(--surface-2); }
.meter-bar i.on { background: var(--accent); }
.meter-v { color: var(--muted); font-size: .8rem; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 1.4em; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.pc { border-radius: 12px; padding: 16px 18px; }
.pc ul { margin: 0; }
.pc-yes { background: var(--accent-soft); }
.pc-no { background: var(--warn-soft); }

/* Tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 36px; }
.tool .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.tool label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
.tool .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.tool input[type=number], .tool input[type=date], .tool input[type=text], .tool select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.tool legend { font-weight: 700; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { flex-direction: row; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 500; cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.result { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; margin-top: 18px; }
.result[hidden] { display: none; }
.big { font-size: 2.1rem; font-weight: 800; color: var(--accent-dark); line-height: 1.1; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 10px 0 14px; }
.stat { background: var(--surface); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 1.4rem; color: var(--accent-dark); }
.stat span { font-size: .85rem; color: var(--muted); }
.cost-table input { width: 110px !important; padding: 6px 8px !important; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist label { flex-direction: row !important; align-items: flex-start; gap: 12px !important; padding: 10px 4px; font-weight: 500 !important; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 20px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 700; color: var(--accent-dark); }
.timeline .past time { color: var(--muted); }
.quiz-results .card { flex-direction: row; }
.quiz-results .card-img { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
.match { font-weight: 700; color: var(--accent-dark); font-size: .85rem; }
.more-tools { margin: 40px 0; }
.tool-guide { max-width: 760px; }
@media print {
  .site-header, .site-footer, .more-tools, .tool-guide, .crumbs, .no-print { display: none !important; }
  .tool { border: 0; background: none; padding: 0; }
}

/* Search */
.search-form input { width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 18px; border: 2px solid var(--line); border-radius: 999px; }
.search-form input:focus { border-color: var(--accent); outline: none; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 650; font-size: 1.08rem; }
.search-results small { display: block; color: var(--accent); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.search-results p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.sitemap-cols { columns: 2 300px; column-gap: 40px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 24px; }
.sitemap-cols h2 { font-size: 1.1rem; }
.sitemap-cols ul { padding-left: 1.1em; margin: 0; }
.notfound { text-align: center; padding: 80px 20px; }
.home-about { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: #0f2a30; color: #cfe0e2; margin-top: 72px; padding: 48px 0 20px; font-size: .93rem; }
.site-footer a { color: #e8f4f4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer .brand-text b { color: #6fd0cc; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
