/* ============================================================
   Doseful — GLP-1 Friendly Living
   Main Stylesheet (mobile-first, responsive, dark-mode ready)
   ============================================================ */

/* ---------- CSS Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.65; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --brand-50:  #f0f9f4;
  --brand-100: #dcf0e3;
  --brand-200: #bbe1c9;
  --brand-300: #8ccba6;
  --brand-400: #57ad80;
  --brand-500: #359061;
  --brand-600: #23744d;
  --brand-700: #1c5d3f;
  --brand-800: #184a34;
  --brand-900: #143d2c;

  --accent: #f59e0b;       /* warm amber for CTAs */
  --accent-dark: #b45309;

  /* Light mode (default) */
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  --link: #1c5d3f;
  --link-hover: #23744d;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container: 1140px;
  --container-narrow: 760px;
  --header-h: 68px;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #0c0e0d;
  --bg-elevated: #14181a;
  --bg-subtle: #1a1f21;
  --bg-card: #14181a;
  --border: #2a3033;
  --border-strong: #3a4246;
  --text: #ecefed;
  --text-muted: #b8bcb8;
  --text-subtle: #8a908d;
  --link: #8ccba6;
  --link-hover: #bbe1c9;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.4), 0 2px 4px -2px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.5), 0 8px 10px -6px rgba(0,0,0,.3);
}

/* ---------- Base Typography ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .6em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 1.4em 0 .5em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin: 1.2em 0 .4em; font-family: 'Inter', sans-serif; font-weight: 600; }
h4 { font-size: 1.1rem; margin: 1em 0 .3em; font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin-bottom: 1.1em; }
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo:hover { color: var(--brand-600); }
[data-theme="dark"] .logo:hover { color: var(--brand-300); }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Desktop nav */
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .menu-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all var(--transition);
}
.theme-toggle:hover, .menu-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  transform: translateY(-110%);
  transition: transform var(--transition);
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { background: var(--bg-subtle); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--brand-100), transparent 70%),
    var(--bg);
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(35,116,77,.25), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--brand-500); border-radius: 50%; box-shadow: 0 0 0 4px var(--brand-100); }
[data-theme="dark"] .hero-eyebrow .dot { box-shadow: 0 0 0 4px rgba(35,116,77,.3); }

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--brand-600); }
[data-theme="dark"] .hero h1 .accent { color: var(--brand-300); }
.hero p.lead { font-size: 1.18rem; color: var(--text-muted); margin-bottom: 28px; max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--brand-600); }
[data-theme="dark"] .hero-stat .num { color: var(--brand-300); }
.hero-stat .lbl { font-size: .82rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .05em; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: #fff;
  padding: 32px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 50%);
}
.hero-visual-content { position: relative; z-index: 1; text-align: center; }
.hero-visual-content .pill-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
}
.hero-visual-content h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 8px; }
.hero-visual-content p { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-subtle); color: var(--text); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--brand-200); transform: translateY(-2px); box-shadow: var(--shadow); }
[data-theme="dark"] .card:hover { border-color: var(--brand-700); }

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Topic cluster cards */
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.topic-card::after {
  content: '→';
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--brand-500);
  font-size: 1.4rem;
  opacity: 0;
  transition: all var(--transition);
}
.topic-card:hover {
  border-color: var(--brand-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.topic-card:hover::after { opacity: 1; right: 20px; }
.topic-card .icon {
  width: 44px; height: 44px;
  background: var(--brand-100);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
[data-theme="dark"] .topic-card .icon { background: rgba(35,116,77,.15); }
.topic-card h3 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.topic-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Article Card ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  height: 100%;
}
.article-card:hover {
  border-color: var(--brand-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.article-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.4rem;
}
.article-card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.article-card .category {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: .06em;
}
[data-theme="dark"] .article-card .category { color: var(--brand-300); }
.article-card h3 { font-family: 'Playfair Display', serif; font-size: 1.18rem; margin: 0; line-height: 1.3; }
.article-card p { color: var(--text-muted); font-size: .92rem; margin: 0; flex: 1; }
.article-card .read-more { color: var(--brand-600); font-size: .88rem; font-weight: 600; margin-top: 8px; }
[data-theme="dark"] .article-card .read-more { color: var(--brand-300); }

/* ---------- Article Layout ---------- */
.article-layout {
  display: grid;
  gap: 40px;
  margin: 40px 0;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0,1fr) 300px; }
}

.article-body { font-size: 1.05rem; }
.article-body p { margin-bottom: 1.3em; }
.article-body h2 { margin-top: 2em; padding-top: 12px; border-top: 1px solid var(--border); }
.article-body h2:first-of-type { border-top: 0; padding-top: 0; }
.article-body h3 { margin-top: 1.6em; }
.article-body ul, .article-body ol {
  margin: 0 0 1.4em 1.4em;
  padding-left: 1em;
}
.article-body ul li { list-style: disc; margin-bottom: .5em; }
.article-body ol li { list-style: decimal; margin-bottom: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--brand-400);
  padding: 16px 22px;
  margin: 1.6em 0;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-body blockquote p { margin: 0; }
.article-body code {
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .9em;
}

/* Article header */
.article-header { margin-bottom: 24px; }
.breadcrumb {
  font-size: .85rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb span { margin: 0 6px; color: var(--border-strong); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-subtle);
}
.article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-meta .avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
}

/* ---------- Table of Contents ---------- */
.toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.toc h4 { margin: 0 0 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); }
.toc ol { margin: 0; padding-left: 1.2em; counter-reset: toc; }
.toc ol li { list-style: decimal; margin-bottom: .4em; font-size: .95rem; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--brand-600); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.sidebar-widget h4 { margin: 0 0 14px; font-size: 1.05rem; }
.sidebar-widget ul { display: flex; flex-direction: column; gap: 10px; }
.sidebar-widget a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  background: var(--bg-subtle);
  transition: all var(--transition);
}
.sidebar-widget a:hover { background: var(--brand-100); color: var(--brand-700); }
[data-theme="dark"] .sidebar-widget a:hover { background: rgba(35,116,77,.15); color: var(--brand-300); }

/* ---------- Product Card (affiliate) ---------- */
.product-card {
  display: grid;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--brand-200); }
@media (min-width: 640px) {
  .product-card { grid-template-columns: 120px 1fr; align-items: start; }
}
.product-card-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-subtle), var(--brand-100));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.product-card-body h4 { margin: 0 0 4px; font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.product-card .rating { color: var(--accent); font-size: .9rem; margin-bottom: 8px; }
.product-card .desc { font-size: .92rem; color: var(--text-muted); margin-bottom: 12px; }
.product-card .price { font-weight: 600; color: var(--text); margin-right: 10px; }
.product-card .features { font-size: .85rem; color: var(--text-subtle); margin-bottom: 12px; }

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: all var(--transition);
}
.affiliate-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.affiliate-btn::after { content: ' ↗'; }

/* Inline product mention */
.product-mention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-100);
  color: var(--brand-700);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .9em;
  text-decoration: none;
  border: 1px solid var(--brand-200);
  transition: all var(--transition);
}
.product-mention:hover { background: var(--brand-200); color: var(--brand-800); }
[data-theme="dark"] .product-mention {
  background: rgba(35,116,77,.15);
  color: var(--brand-300);
  border-color: rgba(35,116,77,.3);
}
[data-theme="dark"] .product-mention:hover { background: rgba(35,116,77,.25); }

/* Affiliate disclosure box */
.affiliate-disclosure {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
  color: var(--text-muted);
  margin: 16px 0;
}

/* ---------- Callouts ---------- */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 1.6em 0;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.callout-title { font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.callout-tip { border-color: var(--brand-300); background: var(--brand-50); }
[data-theme="dark"] .callout-tip { background: rgba(35,116,77,.08); }
.callout-warning { border-color: var(--accent); background: rgba(245,158,11,.08); }
.callout-info { border-color: var(--border-strong); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--brand-500); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: var(--radius); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
th {
  background: var(--bg-subtle);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-subtle);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-subtle); }

/* ---------- Section title ---------- */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-title h2 { margin: 0; }
.section-title .subtitle { color: var(--text-muted); margin-top: 6px; font-size: 1rem; }
.section-title a.view-all { font-size: .9rem; font-weight: 600; color: var(--brand-600); }
[data-theme="dark"] .section-title a.view-all { color: var(--brand-300); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer-brand p { color: var(--text-muted); font-size: .92rem; margin-top: 12px; max-width: 360px; }
.footer-col h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: .92rem; text-decoration: none; }
.footer-col a:hover { color: var(--brand-600); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-subtle);
}
.footer-disclosure {
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Newsletter / contact form */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* Tag chips */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 4px 4px 0;
}

/* Skip link for a11y */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 200;
}
.skip-link:focus { top: 8px; }

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .toc, .affiliate-btn { display: none; }
  body { color: #000; background: #fff; }
}
