/* ============================================
   CBD Oil Pets — styles.css
   Design: Adapted from Rometheme Pets template
   Palette: Deep green (replaces orange #F7941D)
   Stack: Zero JS, zero Bootstrap, self-hosted fonts
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url('/fonts/source-serif-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-skip-ink: auto; }
ul, ol { list-style: none; }

/* --- Design Tokens --- */
:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --red-600: #dc2626;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Source Serif', Georgia, 'Times New Roman', serif;

  --container: 1140px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TOPBAR — thin strip with tagline
   ============================================ */
.topbar {
  background: var(--gray-800);
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar p { margin: 0; opacity: 0.85; }
.topbar-links {
  display: flex;
  gap: 1rem;
}
.topbar-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.topbar-links a:hover { opacity: 1; }

/* ============================================
   NAVBAR — primary navigation
   ============================================ */
.navbar-main {
  background: var(--green-700);
  position: relative;
  z-index: 100;
  transition: background 0.2s;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-img {
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  text-decoration: none;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(0,0,0,0.15);
}
.nav-links a.active {
  color: var(--white);
  background: rgba(0,0,0,0.2);
}
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--amber-500);
  color: var(--green-900) !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--amber-600); }

/* Mobile toggle */
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1;
}

/* ============================================
   BANNER PAGE — page title header
   ============================================ */
.banner-page {
  background: var(--green-800);
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.banner-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

/* ============================================
   BREADCRUMB BAR
   ============================================ */
.breadcrumb-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--gray-400);
}
.breadcrumb a {
  color: var(--green-700);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .active { color: var(--gray-600); }

/* ============================================
   CONTENT SECTION — article + sidebar grid
   ============================================ */
.content-section {
  padding: 2.5rem 0 3rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ============================================
   VET BADGE
   ============================================ */
.vet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-800);
  margin-bottom: 1.75rem;
}
.vet-badge svg { color: var(--green-600); flex-shrink: 0; }
.vet-badge a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================
   ARTICLE BODY — typography
   ============================================ */
.article-body h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-100);
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.article-body p {
  margin-bottom: 1.25rem;
}
.article-body a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--green-100);
  transition: text-decoration-color 0.15s;
}
.article-body a:hover {
  text-decoration-color: var(--green-700);
}
.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  list-style: revert;
}
.article-body li {
  margin-bottom: 0.4rem;
}
.article-body blockquote {
  border-left: 3px solid var(--green-600);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}
.article-body strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-body th {
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--green-100);
}
.article-body td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }

/* --- Key Takeaway Box --- */
.takeaway {
  background: var(--amber-100);
  border-left: 4px solid var(--amber-500);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.takeaway strong {
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Warning/Safety Box --- */
.warning {
  background: #fef2f2;
  border-left: 4px solid var(--red-600);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.warning strong {
  color: var(--red-600);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Study Citation Block --- */
.study-cite {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: 1rem 0;
  line-height: 1.5;
}
.study-cite .study-name {
  font-weight: 600;
  color: var(--gray-900);
}

/* --- Table of Contents --- */
.article-toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.article-toc strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-100);
}
.article-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.article-toc li {
  margin-bottom: 0.25rem;
}
.article-toc a {
  font-size: 0.875rem;
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.15s;
}
.article-toc a:hover {
  color: var(--green-900);
  text-decoration: underline;
}

/* --- Dosing Calculator Widget --- */
.calc-widget {
  background: var(--gray-50);
  border: 2px solid var(--green-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.calc-inputs {
  display: grid;
  gap: 1rem;
}
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.3rem;
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--white);
}
.calc-field select:focus,
.calc-field input:focus {
  outline: 2px solid var(--green-600);
  outline-offset: -1px;
  border-color: transparent;
}
.calc-weight-row {
  display: flex;
  gap: 0.5rem;
}
.calc-weight-row input { flex: 1; }
.calc-weight-row select { width: 80px; flex: none; }
.calc-btn {
  margin-top: 0.5rem;
}
.calc-result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--green-100);
}
.calc-result h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.calc-dose-display {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.calc-dose-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-700);
}
.calc-dose-sep {
  font-size: 1.5rem;
  color: var(--gray-400);
}
.calc-dose-unit {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-left: 0.25rem;
}
.calc-notes {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.calc-notes p { margin-bottom: 0.5rem; }
.calc-source {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.calc-source p { margin-bottom: 0; }

/* --- Sources --- */
.article-sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   SIDEBAR — widget system
   ============================================ */
.sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.widget {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.widget h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-100);
}
.widget p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Email widget */
.widget-email {
  background: var(--green-50);
  border-color: var(--green-100);
}
.email-form {
  display: flex;
  gap: 0.5rem;
}
.email-form input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--white);
}
.email-form input:focus {
  outline: 2px solid var(--green-600);
  outline-offset: -1px;
  border-color: transparent;
}
.email-form button {
  padding: 0.55rem 1.1rem;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.email-form button:hover { background: var(--green-800); }
.email-note {
  font-size: 0.75rem !important;
  color: var(--gray-400) !important;
  margin-bottom: 0 !important;
}

/* Categories widget */
.widget-categories ul {
  list-style: none;
}
.widget-categories li {
  border-bottom: 1px solid var(--gray-200);
}
.widget-categories li:last-child { border-bottom: none; }
.widget-categories a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.widget-categories a:hover {
  color: var(--green-700);
  padding-left: 0.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-800); }
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-700);
}
.btn-outline:hover {
  background: var(--green-700);
  color: var(--white);
}
.btn-light {
  background: var(--amber-500);
  color: var(--green-900);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
}
.btn-light:hover { background: var(--amber-600); }

/* ============================================
   CTA BANNER — full-width call to action
   ============================================ */
.cta-banner {
  background: var(--green-900);
  color: var(--white);
  padding: 3rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--white);
}
.cta-text p {
  font-size: 1rem;
  color: var(--green-100);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--green-500); }

/* Medical disclaimer */
.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.footer-disclaimer strong { color: var(--gray-300); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: var(--gray-500);
  text-decoration: none;
  margin-left: 1rem;
}
.footer-bottom a:hover { color: var(--green-500); }

/* ============================================
   HOMEPAGE — hero, trust bar, guides, stats
   ============================================ */

/* Hero */
.hero {
  background: var(--green-800);
  padding: 3.5rem 0 3rem;
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--green-100);
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: var(--amber-500);
  color: var(--green-900);
  font-weight: 700;
}
.hero .btn-primary:hover { background: var(--amber-600); }
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Trust Bar */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Section headings */
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subhead {
  text-align: center;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Guide Cards */
.guides-section {
  padding: 3.5rem 0;
  background: var(--gray-50);
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.guide-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.guide-card-body {
  padding: 1.25rem;
}
.guide-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.guide-card-body p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.guide-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-700);
}

/* Why Section — stats */
.why-section {
  padding: 3.5rem 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.why-stat {
  text-align: center;
  padding: 1.5rem;
}
.why-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.why-stat p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.why-stat cite {
  font-size: 0.75rem;
  font-style: normal;
  color: var(--gray-400);
}
.why-stat cite a {
  color: var(--green-700);
  text-decoration: underline;
}

/* How Section — steps */
.how-section {
  padding: 3.5rem 0;
  background: var(--gray-50);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.how-step {
  text-align: center;
  padding: 1.5rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.how-step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.how-step p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
  padding: 3.5rem 0;
  background: var(--white);
}
.newsletter-box {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-box h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.newsletter-box > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto 0.75rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.newsletter-form input:focus {
  outline: 2px solid var(--green-600);
  outline-offset: -1px;
  border-color: transparent;
}
.newsletter-note {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* --- Takeaway Box (article-level) --- */
.takeaway-box {
  background: var(--amber-100);
  border-left: 4px solid var(--amber-500);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}
.takeaway-box h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.takeaway-box p {
  margin-bottom: 0;
}

/* --- Comparison & Dosing Tables (article) --- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}
.comparison-table,
.dosing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th,
.dosing-table th {
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid var(--green-100);
  white-space: nowrap;
}
.comparison-table td,
.dosing-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.comparison-table tr:last-child td,
.dosing-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:hover td,
.dosing-table tr:hover td {
  background: var(--green-50);
}

/* --- Article Steps (timeline layout) --- */
.article-body .how-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step .step-number {
  flex-shrink: 0;
  margin-bottom: 0;
}
.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Article TOC h2 fallback --- */
.article-toc h2 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-100);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
  }
  .widget { min-width: 280px; flex-shrink: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-text h1 { font-size: 2rem; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .guide-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; max-width: 440px; margin: 2rem auto 0; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-toggle-btn { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--green-800);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-cta { margin: 0.75rem 1.5rem; text-align: center; display: block; }
  .banner-title { font-size: 1.75rem; }
  .article-body h1 { font-size: 1.6rem; }
  .article-body h2 { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .sidebar { flex-direction: column; }
  .widget { min-width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin-left: 0; }
  .trust-items { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .hero-text h1 { font-size: 1.65rem; }
  .comparison-table, .dosing-table { font-size: 0.8rem; }
  .comparison-table th, .dosing-table th,
  .comparison-table td, .dosing-table td { padding: 0.45rem 0.55rem; }
  .step { gap: 0.75rem; }
  .step .step-number { width: 36px; height: 36px; font-size: 1rem; }
}
