/* Dogs Complete Guide — main stylesheet */
:root {
  --bg: #fffbf5;
  --surface: #ffffff;
  --surface-2: #fbf4ea;
  --ink: #26211c;
  --ink-2: #4a423a;
  --muted: #72685e;
  --line: #ece2d4;
  --brand: #2f7d6d;
  --brand-dark: #1f5a4e;
  --brand-soft: #e3f1ed;
  --accent: #f2a541;
  --accent-dark: #c97a14;
  --accent-soft: #fdf0dc;
  --danger: #b4432e;
  --danger-soft: #fbe7e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .07);
  --shadow-lg: 0 4px 10px rgba(60, 40, 20, .08), 0 18px 40px rgba(60, 40, 20, .12);
  --font-head: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 251, 245, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo span b { color: var(--brand); }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a, .main-nav button { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.main-nav a:hover, .main-nav button:hover, .main-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 240px; list-style: none; margin: 0; }
.has-sub.open .sub, .has-sub:hover .sub { display: block; }
.has-sub:hover .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub a { border-radius: 8px; }
.header-search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); flex-shrink: 0; }
.header-search:hover { background: var(--brand-soft); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ''; transition: .2s; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .header-search { margin-left: 0; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a, .main-nav button { padding: 12px 14px; font-size: 1.02rem; border-radius: 10px; width: 100%; text-align: left; }
  .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0; background: none; min-width: 0; }
  .has-sub > button { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: #b7aa9a; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-family: var(--font-head); font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #3a2506; }
.btn-accent:hover { background: #eb9624; color: #3a2506; }

/* ---------- Home ---------- */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; font-family: var(--font-head); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-img { position: relative; }
.hero-img img, .hero-img .img-ph { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -18px; bottom: 22px; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-weight: 700; font-family: var(--font-head); display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.hero-badge span { font-size: 1.6rem; }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { font-size: .9rem; color: var(--muted); }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }

.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { font-weight: 700; text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); position: relative; transition: .2s; }
.step:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-family: var(--font-head); margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.topic { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: .2s; }
.topic:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.topic-icon { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.topic h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.topic p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); }
.card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--surface-2); }
.card-img img, .card-img .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); font-family: var(--font-head); }
.card h3 { font-size: 1.12rem; margin: 0; }
.card p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--muted); }

.tool-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--brand); color: #fff; border-radius: var(--radius); text-decoration: none; transition: .2s; }
.tool-card:nth-child(even) { background: var(--brand-dark); }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.tool-card .ti { font-size: 1.7rem; width: 50px; height: 50px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex-shrink: 0; }
.tool-card b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.tool-card small { opacity: .85; font-size: .85rem; }

/* ---------- Section (category) page ---------- */
.cat-hero { padding: 30px 0 40px; }
.cat-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cat-hero img, .cat-hero .img-ph { border-radius: 22px; aspect-ratio: 3/2; object-fit: cover; box-shadow: var(--shadow); width: 100%; }
.cat-hero .lead { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Article ---------- */
.article-head { padding: 22px 0 10px; max-width: 820px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.article-head .lead { font-size: 1.18rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin-top: 12px; }
.byline span::before { content: '•'; margin-right: 8px; color: #c9bba9; }
.byline span:first-child::before { display: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 14px 0 60px; align-items: start; }
.article-hero { margin: 0 0 28px; }
.article-hero img, .article-hero .img-ph { border-radius: 20px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.prose { font-size: 1.07rem; max-width: 760px; }
.prose h2 { margin-top: 1.9em; padding-top: .2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.5em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-family: var(--font-head); font-weight: 800; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.callout { border-radius: 14px; padding: 16px 20px 16px 54px; margin: 1.5em 0; position: relative; border: 1px solid; }
.callout::before { position: absolute; left: 18px; top: 15px; font-size: 1.25rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-tip { background: var(--brand-soft); border-color: #c5e2da; }
.callout-tip::before { content: '💡'; }
.callout-warning { background: var(--danger-soft); border-color: #f2c8bd; }
.callout-warning::before { content: '⚠️'; }
.callout-note { background: var(--accent-soft); border-color: #f5dcb5; }
.callout-note::before { content: '📌'; }
.callout-vet { background: #eef3fb; border-color: #cfdcf1; }
.callout-vet::before { content: '🩺'; }

.key-takeaways { background: var(--surface); border: 2px solid var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 28px; }
.key-takeaways h2 { font-size: 1.1rem; margin: 0 0 10px; color: var(--brand-dark); padding: 0; }
.key-takeaways ul { margin: 0; }

.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-box h2, .side-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.toc a:hover, .toc a.active { border-color: var(--brand); color: var(--brand-dark); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink-2); font-size: .93rem; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.side-links li:last-child a { border: 0; }
.side-links a:hover, .side-links a[aria-current] { color: var(--brand); }
.side-cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border: 0; }
.side-cta h3 { color: rgba(255, 255, 255, .8); }
.side-cta p { font-size: .93rem; margin: 0 0 12px; }
.side-cta a.btn { width: 100%; justify-content: center; }

.disclaimer { font-size: .9rem; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: 14px 18px; margin: 2em 0 0; border: 1px solid var(--line); }
.related { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.article-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--surface); color: var(--ink); }
.article-nav a:hover { border-color: var(--brand); }
.article-nav small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.article-nav b { font-family: var(--font-head); }
.article-nav .next { text-align: right; grid-column: 2; }

.img-ph { background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); display: grid; place-items: center; font-size: 3rem; aspect-ratio: 3/2; }

/* ---------- Breeds ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filters select, .filters input[type=search], .field input, .field select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; width: 100%; }
.filters select:focus, .field input:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.filter-count { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.breed-card .traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.pill-good { background: var(--brand-soft); border-color: #c5e2da; color: var(--brand-dark); }
.breed-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 28px; }
.breed-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.breed-facts small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.breed-facts b { font-family: var(--font-head); font-size: 1.02rem; }
.ratings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.rating { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .95rem; }
.dots { display: flex; gap: 4px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); display: block; }
.dots i.on { background: var(--brand); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
.fit { border-radius: 14px; padding: 18px 20px; }
.fit h3 { font-size: 1.05rem; margin-bottom: 8px; }
.fit ul { margin: 0; padding-left: 1.2em; }
.fit-yes { background: var(--brand-soft); }
.fit-no { background: var(--danger-soft); }

/* ---------- Tools ---------- */
.tool-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); margin: 0 0 32px; }
.tool-box h2 { font-size: 1.3rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .93rem; background: var(--bg); margin: 0; }
.radio-row input { accent-color: var(--brand); }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.result { margin-top: 20px; padding: 20px 22px; border-radius: 16px; background: var(--brand-soft); border: 1px solid #c5e2da; }
.result:empty { display: none; }
.result .big { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.result table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .95rem; }
.result td, .result th { padding: 8px 6px; border-bottom: 1px solid #c5e2da; text-align: left; }
.result th { font-family: var(--font-head); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; }
.checklist label:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
.checklist small { color: var(--muted); display: block; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 20px; }
.progress div { height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.quiz-q { margin-bottom: 22px; }
.quiz-q .label { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 10px; }
.match-list { display: grid; gap: 14px; margin-top: 16px; }
.match { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; background: var(--surface); padding: 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.match:hover { border-color: var(--brand); color: var(--ink); }
.match img, .match .img-ph { border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; width: 110px; font-size: 1.5rem; }
.match .score { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--brand-dark); }
.match p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Page / misc ---------- */
.page { max-width: 820px; padding: 30px 0 70px; }
.search-box { display: flex; gap: 10px; margin: 20px 0 30px; }
.search-box input { flex: 1; font: inherit; font-size: 1.1rem; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; text-decoration: none; }
.search-results small { display: block; color: var(--brand); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.search-results p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #231e19; color: #cfc4b6; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #e9dfd2; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #3a322b; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #9d9285; }
.footer-note { font-size: .85rem; color: #9d9285; max-width: 34em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .toc-box { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .cat-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 28px 0 40px; }
  .hero-img { order: -1; }
  .hero-badge { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ratings, .fit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .logo { font-size: 1rem; }
  .logo svg { width: 34px; height: 34px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { grid-column: 1; }
  .match { grid-template-columns: 80px 1fr; }
  .match img, .match .img-ph { width: 80px; }
  .match .score { grid-column: 2; }
  .tool-box { padding: 18px; }
  .callout { padding-left: 46px; }
  .callout::before { left: 14px; }
}
@media print {
  .site-header, .site-footer, .sidebar, .related, .article-nav, .no-print { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
