/* ==========================================================================
   GLP-1 Guide — Design System
   Clinical-trust base + bold modern styling. Optimized for AEO/SEO readability.
   ========================================================================== */

:root {
  /* Brand */
  --emerald-900: #06302a;
  --emerald-800: #0a4a3f;
  --emerald-700: #0e7c66;
  --emerald-600: #11926f;
  --emerald-500: #14b8a6;
  --emerald-100: #d3efe7;
  --emerald-50:  #ecf8f4;

  --accent:      #f59e0b;   /* warm CTA / highlight */
  --accent-soft: #fff4e0;

  /* Ink & surfaces */
  --ink:     #0b1f1a;
  --text:    #20302c;
  --muted:   #5b6b66;
  --faint:   #8b9994;
  --line:    #e3ece9;
  --line-2:  #d3ded9;
  --bg:      #ffffff;
  --surface: #f6f9f8;
  --surface-2:#eef4f2;

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;

  --maxw: 1180px;
  --measure: 720px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,31,26,.04), 0 8px 28px rgba(11,31,26,.06);
  --shadow-lg: 0 24px 60px rgba(11,31,26,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand .logo span { transform: translateY(-.5px); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--emerald-700); text-decoration: none; }
.nav .cta {
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px;
}
.nav .cta:hover { background: var(--emerald-800); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(20,184,166,.22), transparent 60%),
    linear-gradient(160deg, var(--emerald-900), var(--emerald-800) 60%, #072a24);
  color: #eafaf5;
  position: relative; overflow: hidden;
}
.hero .wrap { padding-top: 74px; padding-bottom: 78px; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px;
  color: #fff; max-width: 16ch;
}
.hero p.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #b9ddd2; max-width: 60ch; margin: 0 0 30px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: #d7f3ea; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; margin-bottom: 22px;
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(20,184,166,.25); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #3a2400; }
.btn-primary:hover { background: #ffb22e; text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); text-decoration: none; }

/* ---------- Section primitives ---------- */
section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head .kicker { color: var(--emerald-700); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 10px; color: var(--ink); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; }
.card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--emerald-700); background: var(--emerald-50); padding: 4px 10px; border-radius: 999px;
}
.card .tag.pillar { color: #7a4a00; background: var(--accent-soft); }
.card h3 { font-family: var(--font-head); font-size: 1.32rem; line-height: 1.2; margin: 4px 0 2px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .more { margin-top: auto; color: var(--emerald-700); font-weight: 700; font-size: 14.5px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .row { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: center; padding: 22px 0; }
.trust .item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.trust .item svg { color: var(--emerald-700); flex: none; }

/* ==========================================================================
   ARTICLE LAYOUT
   ========================================================================== */
.article-shell { padding: 30px 0 70px; }
.article-grid { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: start; }

.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--emerald-700); }
.breadcrumb span { color: var(--line-2); margin: 0 7px; }

.article-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.article-head .topic { color: var(--emerald-700); font-weight: 700; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.article-head h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08;
  letter-spacing: -.02em; color: var(--ink); margin: 10px 0 14px;
}
.article-head .standfirst { font-size: 1.18rem; color: var(--muted); margin: 0 0 22px; max-width: 64ch; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.byline .who b { color: var(--ink); }
.byline .rev { display: inline-flex; align-items: center; gap: 6px; background: var(--emerald-50); color: var(--emerald-800); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.byline .sep { width: 1px; height: 26px; background: var(--line); }

/* Article body typography */
.article-body { max-width: var(--measure); font-size: 18.5px; }
.article-body > * { max-width: var(--measure); }
.article-body h2 {
  font-family: var(--font-head); font-size: 1.72rem; line-height: 1.2; letter-spacing: -.01em;
  color: var(--ink); margin: 46px 0 14px; scroll-margin-top: 90px; padding-top: 4px;
}
.article-body h3 { font-family: var(--font-head); font-size: 1.32rem; color: var(--ink); margin: 30px 0 10px; scroll-margin-top: 90px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--ink); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--emerald-100); }
.article-body a:hover { text-decoration-color: var(--emerald-700); }

/* Answer / Key takeaways box (AEO) */
.answer-box {
  background: linear-gradient(180deg, var(--emerald-50), #fff);
  border: 1px solid var(--emerald-100); border-left: 4px solid var(--emerald-700);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 30px;
}
.answer-box .label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-800); margin-bottom: 8px; }
.answer-box p { margin: 0; font-size: 17.5px; }
.answer-box p + p { margin-top: 12px; }

.key-takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px; margin: 0 0 32px; }
.key-takeaways h2 { margin: 0 0 12px !important; font-size: 1.15rem !important; padding-top: 0 !important; }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { font-size: 16.5px; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; font-size: 16.5px; border: 1px solid var(--line); background: var(--surface); }
.callout .ctitle { font-weight: 800; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.callout.warn { background: #fff7ed; border-color: #fcd9a8; }
.callout.warn .ctitle { color: #9a3412; }
.callout.tip { background: var(--emerald-50); border-color: var(--emerald-100); }
.callout.tip .ctitle { color: var(--emerald-800); }

/* Definition / stat blocks */
.statline { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 28px 0; }
.statline .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.statline .stat .n { font-family: var(--font-head); font-size: 1.7rem; color: var(--emerald-700); font-weight: 700; line-height: 1; }
.statline .stat .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--emerald-800); color: #fff; font-size: 13.5px; letter-spacing: .02em; }
table.data tbody tr:nth-child(even) { background: var(--surface); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td strong { color: var(--ink); }

/* FAQ (FAQPage schema) */
.faq { margin: 18px 0 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--bg); overflow: hidden; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 700; color: var(--ink); font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .2s; color: var(--emerald-700); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-a { padding: 0 20px 18px; color: var(--text); font-size: 16.5px; }
.faq .faq-a p { margin: 0 0 12px; }
.faq .faq-a :last-child { margin-bottom: 0; }

/* Sources */
.sources { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.sources h2 { font-size: 1.2rem !important; margin: 0 0 12px !important; }
.sources ol { font-size: 14.5px; color: var(--muted); padding-left: 20px; }
.sources li { margin-bottom: 8px; }

/* Medical disclaimer */
.disclaimer { margin-top: 34px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; color: var(--muted); }
.disclaimer strong { color: var(--text); }

/* ---------- Sidebar / TOC ---------- */
.sidebar { position: sticky; top: 90px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; background: var(--bg); }
.toc .t { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.4; border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface); color: var(--emerald-800); text-decoration: none; }
.toc a.active { color: var(--emerald-800); background: var(--emerald-50); border-left-color: var(--emerald-700); font-weight: 600; }

.side-cta { margin-top: 20px; border-radius: var(--radius); padding: 20px; background: linear-gradient(160deg, var(--emerald-800), var(--emerald-900)); color: #eafaf5; }
.side-cta h4 { margin: 0 0 6px; color: #fff; font-size: 1.05rem; }
.side-cta p { margin: 0 0 14px; font-size: 14px; color: #b9ddd2; }
.side-cta a { display: inline-block; background: var(--accent); color: #3a2400; font-weight: 700; padding: 9px 16px; border-radius: 999px; font-size: 14px; }
.side-cta a:hover { text-decoration: none; background: #ffb22e; }

/* ---------- Related ---------- */
.related { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(160deg, var(--emerald-900), #072a24); color: #eafaf5; border-radius: 20px; padding: 44px; text-align: center; }
.newsletter h2 { font-family: var(--font-head); color: #fff; font-size: clamp(1.6rem,3vw,2.2rem); margin: 0 0 10px; }
.newsletter p { color: #b9ddd2; max-width: 52ch; margin: 0 auto 22px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: 15px; }
.newsletter input::placeholder { color: #9fc8bd; }
.newsletter button { padding: 14px 26px; border-radius: 999px; border: none; background: var(--accent); color: #3a2400; font-weight: 700; font-size: 15px; cursor: pointer; }
.newsletter .fineprint { color: #7faea2; font-size: 12.5px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c7c2; padding: 54px 0 30px; }
.site-footer a { color: #cdd9d5; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid .col h5 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid .col ul { list-style: none; margin: 0; padding: 0; }
.footer-grid .col li { margin-bottom: 9px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #94a39e; max-width: 38ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; color: #7d8c87; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead-list { list-style: none; padding: 0; }
.lead-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.lead-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--emerald-700); font-weight: 800; }

/* ---------- Blog ---------- */
.blog-hero { background: linear-gradient(160deg, var(--emerald-900), var(--emerald-800) 60%, #072a24); color: #eafaf5; padding: 56px 0 50px; }
.blog-hero .eyebrow { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); color:#d7f3ea; padding:6px 14px; border-radius:999px; font-size:13px; font-weight:600; margin-bottom:18px; }
.blog-hero h1 { font-family: var(--font-head); font-size: clamp(2rem,4.4vw,3rem); line-height:1.06; letter-spacing:-.02em; color:#fff; margin:0 0 12px; max-width:18ch; }
.blog-hero p { color:#b9ddd2; font-size:1.12rem; max-width:60ch; margin:0; }
.post-card .meta { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); margin-top:auto; }
.post-card .meta .dot { width:3px; height:3px; border-radius:50%; background:var(--line-2); }
.cat-pill { align-self:flex-start; font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--emerald-700); background:var(--emerald-50); padding:4px 10px; border-radius:999px; }
.post-byline { font-size:13.5px; color:var(--muted); }
.readtime { display:inline-flex; align-items:center; gap:5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statline { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { padding: 30px 20px; }
  .article-body { font-size: 17.5px; }
}
