/* Liver Treats Lab - Raw Precision Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --green: #1A3A2A;
  --cream: #F5E6C8;
  --terra: #C4622D;
  --dark: #0D1F17;
  --muted: #7A9585;
  --lgrey: #F0EDE6;
  --white: #fff;
  --concern: #E8C4A0; --concern-t: #7A4A1A;
  --compare: #A8C4B0; --compare-t: #1A5A3A;
  --buyer: #C4B0D0; --buyer-t: #5A3A7A;
  --dur: #B0C4D8; --dur-t: #1A3A5A;
  --problem: #F4C4C4; --problem-t: #7A1A1A;
  --scenario: #C4E8D8; --scenario-t: #0A4A2A;
  --max-w: 1100px;
  --body-font: 'DM Sans', system-ui, sans-serif;
  --display-font: 'DM Serif Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--dark);
  background: var(--lgrey);
  line-height: 1.75;
}

a { color: var(--terra); }
a:hover { color: var(--green); }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  background: var(--green);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 2px solid #0a2218;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
}
.site-logo { text-decoration: none; display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--display-font);
  font-size: 1.15rem; color: var(--cream); letter-spacing: 0.02em; line-height: 1;
}
.logo-name span { color: var(--terra); }
.logo-tagline { font-size: 0.5rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  font-size: 0.78rem; font-weight: 500; color: var(--cream);
  text-decoration: none; padding: 5px 10px; opacity: 0.85;
  transition: opacity .15s;
}
.site-nav a:hover { opacity: 1; color: var(--cream); }
.site-nav a.nav-cta {
  background: var(--terra); color: var(--white); opacity: 1;
  padding: 5px 12px; font-weight: 600;
}
.site-nav a.nav-cta:hover { background: #a84e23; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--white); border-bottom: 0.5px solid #d4c5a8;
  font-size: 0.7rem; color: var(--muted); padding: 8px 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb span { margin: 0 5px; }

/* ── Article Hero ── */
.article-hero {
  background: var(--cream);
  padding: 28px 0 20px;
  border-bottom: 1px solid #d4c5a8;
}
.article-hero .container { max-width: 860px; }
.badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.badge-concern { background: var(--concern); color: var(--concern-t); }
.badge-compare { background: var(--compare); color: var(--compare-t); }
.badge-buyer { background: var(--buyer); color: var(--buyer-t); }
.badge-dur { background: var(--dur); color: var(--dur-t); }
.badge-problem { background: var(--problem); color: var(--problem-t); }
.badge-scenario { background: var(--scenario); color: var(--scenario-t); }

.article-title {
  font-family: var(--display-font);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: var(--dark); line-height: 1.15; margin-bottom: 12px;
}
.article-meta {
  font-size: 0.72rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.meta-author { display: flex; align-items: center; gap: 6px; }
.meta-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; flex-shrink: 0;
}
.meta-name { font-weight: 600; color: var(--dark); }
.meta-sep { color: #c4c4b8; }

/* ── Main layout: article + sidebar ── */
.page-body {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  padding-top: 28px; padding-bottom: 48px;
}

/* ── Article content ── */
.article-content { min-width: 0; }

.quick-answer {
  background: var(--green); color: var(--cream);
  padding: 16px 20px; margin-bottom: 20px;
}
.quick-answer strong {
  display: block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.quick-answer p { font-size: 0.9rem; line-height: 1.65; }

.toc-box {
  background: var(--white); border: 0.5px solid #d4c5a8;
  padding: 14px 18px; margin-bottom: 24px;
}
.toc-box h3 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc-box ol { padding-left: 18px; }
.toc-box li { font-size: 0.8rem; line-height: 1.9; }
.toc-box a { color: var(--terra); text-decoration: none; }

.prose h2 {
  font-size: 1.15rem; font-weight: 600; color: var(--green);
  margin: 28px 0 10px; padding-bottom: 5px;
  border-bottom: 0.5px solid #d4c5a8;
}
.prose h3 { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin: 18px 0 6px; }
.prose p { font-size: 0.88rem; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 14px; }
.prose li { font-size: 0.88rem; margin-bottom: 5px; line-height: 1.65; }
.prose strong { font-weight: 600; color: var(--dark); }

.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 16px 0 20px;
}
.data-table thead tr { background: var(--green); }
.data-table thead td, .data-table thead th {
  color: var(--white); padding: 7px 10px; font-weight: 600; text-align: left;
}
.data-table tbody tr:nth-child(even) { background: var(--lgrey); }
.data-table tbody tr:nth-child(odd) { background: var(--white); }
.data-table td { padding: 7px 10px; border-bottom: 0.5px solid #e8e0d0; }
.ok { color: #1A6A3A; font-weight: 600; }
.bad { color: var(--terra); font-weight: 600; }

.key-facts {
  background: var(--lgrey); border-left: 3px solid var(--terra);
  padding: 14px 18px; margin: 20px 0;
}
.key-facts h3 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.key-facts ul { padding-left: 16px; }
.key-facts li { font-size: 0.82rem; line-height: 1.75; }

.bottom-cta {
  background: var(--cream); border: 0.5px solid #d4c5a8;
  padding: 18px; margin: 24px 0; text-align: center;
}
.bottom-cta .prod-name { font-size: 0.8rem; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.bottom-cta .prod-price { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.cta-btn {
  display: inline-block; background: var(--terra); color: var(--white);
  font-size: 0.85rem; font-weight: 700;
  padding: 11px 28px; text-decoration: none;
  transition: background .15s;
}
.cta-btn:hover { background: #a84e23; color: var(--white); }
.cta-stock { font-size: 0.7rem; color: var(--muted); margin-top: 6px; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }

.sidebar-card {
  background: var(--white); border: 0.5px solid #d4c5a8;
  padding: 14px;
}
.sidebar-card-header {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 8px; border-bottom: 0.5px solid #d4c5a8; margin-bottom: 10px;
}

.author-block { display: flex; gap: 10px; align-items: flex-start; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.85rem; color: var(--dark); }
.author-title { font-size: 0.7rem; color: var(--muted); }
.author-details { font-size: 0.7rem; color: var(--muted); line-height: 1.8; margin-top: 8px; padding-top: 8px; border-top: 0.5px solid #d4c5a8; }

.product-block { text-align: center; }
.product-block img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 8px; background: var(--lgrey); }
.product-block .prod-brand { font-family: var(--display-font); font-size: 1.1rem; color: var(--green); }
.product-block .prod-sub { font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.product-block .stars { color: var(--terra); font-size: 0.75rem; }
.product-block .prod-price { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 6px 0; }
.product-block .cta-btn { display: block; font-size: 0.78rem; padding: 9px; }
.product-block .prod-note { font-size: 0.65rem; color: var(--muted); margin-top: 5px; }

.related-list { list-style: none; }
.related-list li { border-bottom: 0.5px solid #e8e0d0; }
.related-list li:last-child { border-bottom: none; }
.related-list li:nth-child(even) { background: var(--lgrey); margin: 0 -14px; padding: 0 14px; }
.related-list a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--terra); text-decoration: none;
  padding: 7px 0; line-height: 1.4;
}
.related-list a:hover { color: var(--green); }
.related-list a::after { content: '→'; flex-shrink: 0; margin-left: 8px; }

/* ── Footer ── */
.site-footer {
  background: var(--dark); color: var(--muted);
  padding: 20px 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-left { font-size: 0.72rem; line-height: 1.7; }
.footer-left strong { color: var(--cream); }
.footer-right { font-size: 0.65rem; color: #4a6a58; }
.footer-disc { font-size: 0.62rem; color: #4a6a58; margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .site-nav { display: none; }
  .article-title { font-size: 1.3rem; }
}
