/* DentalDogTreats.com - site.css: the ONE stylesheet for every page built to analysis/page-standard.md.
   System fonts only, no CSS imports, no third-party requests. Mobile-first: base rules = phone, @media min-width = larger.
   Legacy pages still use /template/index.css + page.css (+ article.css) until they are migrated. */

:root {
  --g900: #14432A; --g800: #1B5E35; --g700: #22753F; --g100: #E3F2E9; --g50: #F2FAF5;
  --a600: #D97706; --a500: #F59E0B; --a100: #FEF3C7; --a50: #FFFBEB;
  --n900: #111827; --n800: #1F2937; --n700: #374151; --n600: #4B5563; --n400: #9CA3AF;
  --n300: #D1D5DB; --n200: #E5E7EB; --n100: #F3F4F6; --n50: #F9FAFB; --white: #FFFFFF;
  --focus: #1D4ED8;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 6px; --r-lg: 10px;
  --wrap: 880px; --wrap-wide: 1120px;
}

/* ---------- reset and base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: var(--n800); background: var(--n50); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--g700); text-underline-offset: 2px; }
a:hover { color: var(--g900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--white); color: var(--g800); padding: 8px 14px; border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: 8px; }
html:not(.js) .js-only { display: none !important; }

/* ---------- disclosure bar (verbatim Associate line, top of every page) */
.disclosure-top { background: var(--g900); color: var(--white); font-size: 0.8rem; line-height: 1.5; text-align: center; padding: 6px 16px; }
.disclosure-top a { color: var(--white); font-weight: 600; }
.disclosure-top a:hover { color: var(--a100); }

/* ---------- header and main navigation */
.site-header { background: var(--white); border-bottom: 1px solid var(--n200); }
.header-inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 10px 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--g800); padding: 4px 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 -8px; }
.site-nav li { white-space: nowrap; }
.site-nav a { display: block; padding: 8px 8px; font-size: 0.9rem; font-weight: 600; color: var(--n700); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--g700); background: var(--g50); }
.site-nav a[aria-current] { color: var(--g800); border-bottom-color: var(--g700); }

/* ---------- page wrapper, breadcrumbs, page header */
.art-wrap { max-width: var(--wrap); margin: 0 auto; padding: 16px 16px 48px; }
.art-wrap.wide { max-width: var(--wrap-wide); }
.breadcrumbs { margin-bottom: 12px; font-size: 0.82rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a { font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .separator { color: var(--n400); }
.breadcrumbs [aria-current] { color: var(--n600); }

.art-header { margin-bottom: 18px; }
.art-header h1 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--n900); margin-bottom: 8px; }
.art-lede { font-size: 1.05rem; color: var(--n700); margin-bottom: 8px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.85rem; color: var(--n600); }
.art-meta a { font-weight: 600; }

/* ---------- article body typography */
.art-body { background: var(--white); border: 1px solid var(--n200); border-radius: var(--r-lg); padding: 20px 16px; line-height: 1.75; }
.art-body p { margin-bottom: 16px; }
.art-body h2 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--n900); margin: 36px 0 12px; scroll-margin-top: 16px; }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: 1.08rem; line-height: 1.35; color: var(--n900); margin: 24px 0 8px; scroll-margin-top: 16px; }
.art-body ul, .art-body ol { margin: 0 0 16px; padding-left: 22px; }
.art-body li { margin-bottom: 6px; }
.art-body li > ul, .art-body li > ol { margin: 6px 0 0; }
.art-body blockquote { border-left: 4px solid var(--n300); padding: 4px 0 4px 14px; margin: 0 0 16px; color: var(--n700); }
.art-body code { font-size: 0.9em; background: var(--n100); padding: 1px 5px; border-radius: 4px; }
sup.fn { font-size: 0.72em; line-height: 0; }
sup.fn a { text-decoration: none; }

/* ---------- answer box (40-60 words, first block of the body) */
.short-answer { background: var(--g50); border: 1px solid var(--g100); border-left: 5px solid var(--g700); border-radius: 0 var(--r) var(--r) 0; padding: 14px 16px; margin: 0 0 24px; }
.short-answer h2, .art-body .short-answer h2 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--g800); margin: 0 0 6px; }
.short-answer > :last-child { margin-bottom: 0; }

/* ---------- notes and callouts */
.note-box { background: var(--a50); border: 1px solid var(--a100); border-left: 4px solid var(--a500); border-radius: 0 var(--r) var(--r) 0; padding: 12px 16px; margin: 0 0 18px; font-size: 0.93rem; }
.note-box > :last-child { margin-bottom: 0; }

/* ---------- key facts list (product / brand pages): <dl class="facts"><div><dt>..</dt><dd>..</dd></div></dl> */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--n200); border-radius: var(--r); margin: 0 0 20px; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--n100); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--n900); font-size: 0.9rem; }
.facts dd { font-size: 0.93rem; }

/* ---------- accessible data tables: <div class="table-scroll" tabindex="0" role="region" aria-labelledby="cap-id"> */
.table-scroll { position: relative; overflow: auto; max-height: 75vh; margin: 12px 0 20px; border: 1px solid var(--n200); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; line-height: 1.45; }
table.data-table.compact { min-width: 0; }
.data-table caption { caption-side: top; text-align: left; padding: 10px 12px; font-weight: 600; color: var(--n700); background: var(--n50); }
.data-table th, .data-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--n100); }
.data-table thead th { position: sticky; top: 0; z-index: 2; background: var(--g800); color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.data-table tbody th { font-weight: 600; background: var(--white); color: var(--n900); }
.data-table tbody td { background: var(--white); }
.data-table tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) th { background: var(--n50); }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background: var(--g50); }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: 0.82rem; color: var(--n600); }
.badge { display: inline-block; font-size: 0.74rem; font-weight: 700; line-height: 1.4; padding: 1px 8px; border-radius: 999px; background: var(--n100); color: var(--n700); white-space: nowrap; }
.badge.yes { background: var(--g100); color: var(--g900); }
.badge.no { background: var(--a100); color: #7C2D12; }

/* ---------- filters and tool forms (progressive enhancement; tables must work without JS) */
.art-filters, .tool-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--n50); border: 1px solid var(--n200); border-radius: var(--r); padding: 12px; margin: 12px 0 0; }
.art-filters label, .tool-form label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; font-size: 0.8rem; font-weight: 600; color: var(--n700); }
.art-filters select, .art-filters input, .tool-form select, .tool-form input { width: 100%; min-height: 44px; padding: 8px 10px; font-size: 0.95rem; border: 1.5px solid var(--n300); border-radius: var(--r); background: var(--white); color: var(--n900); }
.art-filters button, .tool-form button { min-height: 44px; padding: 8px 16px; font-size: 0.92rem; font-weight: 600; border: 1.5px solid var(--n300); border-radius: var(--r); background: var(--white); cursor: pointer; }
.tool-form button[type="submit"] { background: var(--g700); border-color: var(--g700); color: var(--white); }
.filter-status { font-size: 0.85rem; color: var(--n600); margin: 8px 0 0; }
.tool-result { margin: 14px 0 20px; padding: 14px 16px; border: 2px solid var(--g700); border-radius: var(--r); background: var(--g50); font-size: 1rem; }
.tool-result output { font-size: 1.4rem; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.formula { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9rem; background: var(--n100); padding: 10px 12px; border-radius: var(--r); overflow-x: auto; margin: 0 0 16px; }

/* ---------- Amazon CTA (search link, no price, no image) + the Associate line next to it */
a.art-btn { display: inline-block; background: var(--a500); color: var(--n900); font-weight: 700; font-size: 0.86rem; line-height: 1.3; padding: 8px 14px; min-height: 36px; border-radius: var(--r); text-decoration: none; white-space: nowrap; }
a.art-btn:hover { background: var(--a600); color: var(--n900); }
.data-table a.art-btn { padding: 6px 10px; font-size: 0.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.cta-note { font-size: 0.78rem; color: var(--n600); }

/* ---------- hub cards: <ul class="card-grid"><li class="card"><h3><a href>..</a></h3><p>..</p></li></ul> */
.card-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0 24px; padding: 0; }
.art-body .card-grid { padding-left: 0; }
.card { position: relative; background: var(--white); border: 1px solid var(--n200); border-radius: var(--r-lg); padding: 14px 16px; }
.art-body .card { margin: 0; }
.card:hover { border-color: var(--g700); }
.card h3, .art-body .card h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 4px; }
.card h3 a { text-decoration: none; color: var(--n900); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card p, .art-body .card p { font-size: 0.92rem; color: var(--n700); margin: 0; }
.card .card-meta { margin-top: 6px; font-size: 0.8rem; color: var(--n600); }

/* ---------- FAQ (visible text = FAQPage JSON-LD text) */
.art-faq details { border: 1px solid var(--n200); border-radius: var(--r); padding: 0 14px; margin-bottom: 10px; background: var(--white); }
.art-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--n900); }
.art-faq details[open] summary { border-bottom: 1px solid var(--n100); margin-bottom: 10px; }
.art-faq details > :last-child { margin-bottom: 12px; }

/* ---------- sources and byline */
.sources-list { font-size: 0.9rem; }
.sources-list li { word-break: break-word; }
.art-byline { font-size: 0.85rem; color: var(--n600); margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--n200); }

/* ---------- footer */
.site-footer { background: var(--g900); color: #D1E7DA; font-size: 0.86rem; line-height: 1.6; }
.footer-inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 28px 16px 32px; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.footer-nav a { color: var(--white); font-weight: 600; text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; color: var(--white); }
.site-footer p { margin-bottom: 10px; }
.amazon-content-disclaimer { font-size: 0.75rem; letter-spacing: 0.02em; color: #BFD9C9; }
.footer-copy { color: #A7C8B4; font-size: 0.8rem; }

/* ---------- larger screens */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .header-inner { flex-wrap: nowrap; padding: 0 24px; min-height: 64px; }
  .site-nav { width: auto; }
  .site-nav ul { flex-wrap: nowrap; margin: 0; }
  .site-nav a { padding: 20px 12px 17px; }
  .art-wrap { padding: 24px 24px 64px; }
  .art-header h1 { font-size: 2rem; }
  .art-body { padding: 32px 40px; }
  .footer-inner { padding: 32px 24px 36px; }
}
@media (min-width: 1000px) {
  .art-wrap.wide .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- print */
@media print {
  .disclosure-top, .site-nav, .art-filters, .tool-form, .skip-link { display: none; }
  body { background: var(--white); }
  .art-body { border: 0; padding: 0; }
  .table-scroll { max-height: none; overflow: visible; border: 0; }
  .data-table thead th { position: static; }
}
