/* Best Collagen for Dogs — site styles */
:root {
  --bg: #fdfbf7;
  --ink: #26221c;
  --ink-soft: #5c554a;
  --line: #e9e2d5;
  --brand: #2f6f4f;
  --brand-dark: #24573e;
  --accent: #d97b29;
  --accent-soft: #fdf0e2;
  --card: #ffffff;
  --gold: #b8860b;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 34, 28, 0.06), 0 10px 30px rgba(38, 34, 28, 0.05);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: 0.3em 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.2rem; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Disclosure bar */
.disclosure-bar {
  background: #f3ede1;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  padding: 7px 16px;
}
.disclosure-bar a { color: var(--ink-soft); }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo .paw {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 500; margin-left: 22px;
}
.nav a:hover { color: var(--brand); }

/* Hero */
.hero { padding: 56px 0 30px; }
.hero .kicker {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.badge {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; padding: 6px 14px; color: var(--ink-soft); font-weight: 500;
}
.byline { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.byline strong { color: var(--ink); }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); min-width: 720px; }
table.compare th, table.compare td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.compare th { background: var(--brand); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase; }
table.compare tr.top-pick { background: #f2f8f4; }
table.compare .rank-chip {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
table.compare tr.top-pick .rank-chip { background: var(--accent); }
.score { font-weight: 700; color: var(--brand); }

/* Product cards */
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin: 30px 0; position: relative;
}
.product-card.top { border: 2px solid var(--accent); }
.ribbon {
  position: absolute; top: -13px; left: 26px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.03em;
}
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.product-head h3 { margin: 0; font-size: 1.45rem; }
.product-head h3 .rank-num { color: var(--accent); margin-right: 6px; }
.rating-pill {
  background: var(--brand); color: #fff; border-radius: 10px;
  padding: 8px 14px; text-align: center; font-weight: 800; font-size: 1.15rem; line-height: 1.1;
}
.rating-pill span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.85; }
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px; margin: 18px 0; padding: 16px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px;
}
.spec-grid b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.pros, .cons { border-radius: 10px; padding: 16px 18px; font-size: 15px; }
.pros { background: #eef6f0; }
.cons { background: #fbf0ec; }
.pros h4, .cons h4 { margin: 0 0 8px; font-family: var(--font-body); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.pros h4 { color: var(--brand-dark); }
.cons h4 { color: #a4552e; }
.pros ul, .cons ul { margin: 0; padding-left: 20px; }
.pros li, .cons li { margin: 5px 0; }
.cta-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 13px 30px; border-radius: 10px; margin-top: 6px;
  box-shadow: 0 4px 14px rgba(217, 123, 41, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217, 123, 41, 0.45); }
.cta-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

/* Sections */
.section { padding: 26px 0; }
.section-alt { background: #f6f2e9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* FAQ */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 20px; margin: 10px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 12px 0;
  font-family: var(--font-display); list-style: none; position: relative; padding-right: 30px;
}
details.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--accent); font-size: 22px; }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding-bottom: 14px; color: var(--ink-soft); font-size: 15.5px; }

/* Article grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 24px 0; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); }
.post-card .thumb {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,0.92);
}
.thumb.cat-guides { background: linear-gradient(135deg, #2f6f4f, #57a37b); }
.thumb.cat-science { background: linear-gradient(135deg, #2c5d7c, #5b93b4); }
.thumb.cat-health { background: linear-gradient(135deg, #b06a1f, #dc9a4e); }
.thumb.cat-buying { background: linear-gradient(135deg, #9c4457, #c9758a); }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.post-card h3 { margin: 0; font-size: 1.08rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1; }
.post-meta { font-size: 12.5px; color: var(--ink-soft); }

/* Article page */
.article-head { padding: 44px 0 8px; }
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.article-body { font-size: 17.5px; }
.article-body h2 { border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--card); box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.article-body th { background: var(--brand); color: #fff; padding: 10px 14px; text-align: left; font-size: 14px; }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.article-body blockquote { border-left: 4px solid var(--accent); margin: 20px 0; padding: 8px 20px; background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--ink-soft); }
.note-box {
  border: 1px solid var(--line); background: var(--card); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--ink-soft); margin: 22px 0;
}
.author-box {
  display: flex; gap: 16px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 34px 0;
}
.author-box .avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.author-box p { margin: 2px 0; font-size: 14px; color: var(--ink-soft); }
.author-box b { color: var(--ink); font-size: 15px; }

/* Footer */
.site-footer { background: #22301f; color: #cfd8cc; margin-top: 60px; padding: 44px 0 30px; font-size: 14.5px; }
.site-footer a { color: #e8eee6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-cols h4 { color: #fff; font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 6px 0; }
.fineprint { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 30px; padding-top: 18px; font-size: 12.5px; color: #9fae9b; }

@media (max-width: 720px) {
  .pros-cons { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav a { margin-left: 14px; font-size: 14px; }
  .nav a.hide-mobile { display: none; }
}

/* Quick answer (GEO) */
.quick-answer {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 28px;
}
.quick-answer h2 { font-size: 1.35rem; }
.quick-answer p { margin-bottom: 0; font-size: 16.5px; }
