/* Shared styles for the /weight-loss SEO pages (medication pages, tools, guides).
   Generated pages live in /weight-loss/<slug>/; source is in /seo-pages. */

:root {
  --green: #007c29;
  --green-dark: #00621f;
  --green-ink: #00210b;
  --mint: #edfff3;
  --mint-card: #f2f9f4;
  --cream: #fffaf2;
  --gray-band: #f9fafb;
  --footer: #f5f7fa;
  --ink: #1b1b1b;
  --muted: #667085;
  --muted-ink: #475467;
  --line: #e4e7ec;
  --warn-bg: #fff6e5;
  --warn-line: #f0b429;
  --danger: #b42318;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --head: "Mulish", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #1570ef; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--green-ink); }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
sup { line-height: 0; font-size: 0.72em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border: 2px solid var(--green);
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 13px 30px; border-radius: 500px; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--mint); color: var(--green-dark); border-color: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-ink); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--green-ink); }
.btn-sm { padding: 9px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.cta-note { font-size: 0.86rem; color: var(--muted-ink); margin: 0.8em 0 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo img { width: 104px; height: auto; }
.site-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; padding: 8px 6px; }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 8px 20px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; color: #fff; border-bottom: 2px solid var(--green); }
.mobile-nav .mobile-nav-sub { font-weight: 500; padding-left: 14px; color: var(--muted-ink); }

@media (min-width: 992px) {
  .site-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .site-nav li { margin: 0; position: relative; }
  .site-nav a, .site-nav button { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 8px; }
  .site-nav a:hover, .site-nav button:hover { color: var(--green); }
  .site-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
  .nav-more-menu { position: absolute; top: 100%; right: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12); padding: 8px; margin: 0; list-style: none; }
  .nav-more-menu a { padding: 10px 12px; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.86rem; color: var(--muted-ink); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #98a2b3; }
.crumbs a { color: var(--muted-ink); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 40px 0; }
.band-mint { background: var(--mint); }
.band-cream { background: var(--cream); }
.band-gray { background: var(--gray-band); }
.band-green { background: var(--green-ink); color: #fff; }
.band-green h2, .band-green h3 { color: #fff; }
.band-green p { color: #e3f3e8; }
.eyebrow { font-family: var(--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin: 0 0 0.8em; }
.lede { font-size: 1.13rem; color: #344054; }
.updated { font-size: 0.86rem; color: var(--muted-ink); }
.center { text-align: center; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.center .section-head, .section-head.center { margin-left: auto; margin-right: auto; }

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
}

/* Prose blocks written by authors */
.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { margin-top: 1.3em; }
.prose ul li::marker { color: var(--green); }
.prose a { font-weight: 500; }
.cite a { text-decoration: none; padding: 0 1px; font-weight: 600; }
.cite a:hover { text-decoration: underline; }

/* ---------- Medication hero ---------- */
.hero { background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); padding: 8px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; padding-top: 20px; }
.hero h1 { margin-bottom: 0.45em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; margin: 0; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media { border-radius: var(--radius); overflow: hidden; background: #dff0fb; max-width: 520px; width: 100%; justify-self: center; }
.hero-media img { width: 100%; }
@media (min-width: 900px) {
  .hero { padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 28px; }
  .hero-media { justify-self: end; }
}

/* ---------- Sticky section nav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 90; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { padding: 0; }
.subnav ul { list-style: none; margin: 0; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { margin: 0; flex: 0 0 auto; }
.subnav a { display: block; padding: 14px 12px; font-size: 0.9rem; font-weight: 600; color: var(--muted-ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--green); }
.subnav a[aria-current="true"] { color: var(--green); border-bottom-color: var(--green); }

/* ---------- Cards, steps, lists ---------- */
.cards { display: grid; gap: 18px; margin: 1.4em 0; }
.card { background: var(--mint-card); border-radius: var(--radius); padding: 24px; }
.band-mint .card, .band-gray .card, .band-cream .card { background: #fff; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); background: #dff5e6; padding: 4px 10px; border-radius: 500px; margin-bottom: 12px; }
.card .price { font-family: var(--head); font-size: 1.45rem; font-weight: 800; color: var(--green-ink); margin: 0 0 0.3em; }
.card .price small { font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--muted-ink); }
@media (min-width: 720px) {
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.4em 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 76px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--head); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps > li > :last-child { margin-bottom: 0; }
.steps h3 { margin-bottom: 0.3em; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(2, 1fr); } }

.checks { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23007c29'/%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23b42318'/%3E%3Cpath d='M6.5 6.5l7 7m0-7l-7 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.takeaways { background: var(--mint); border-radius: var(--radius); padding: 24px; margin: 1.6em 0; }
.takeaways h2 { font-size: 1.15rem; margin-bottom: 0.7em; }
.takeaways ul { margin: 0; }
.takeaways li:last-child { margin-bottom: 0; }

.callout { border-left: 4px solid var(--green); background: var(--mint-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; margin: 1.4em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn-line); background: var(--warn-bg); }
.callout strong:first-child { color: var(--green-ink); }
.boxed { border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.4em 0; background: #fff; }
.boxed > :last-child { margin-bottom: 0; }
.boxed h3, .boxed h4 { color: var(--ink); text-transform: uppercase; font-size: 0.98rem; letter-spacing: 0.02em; }
.fine { font-size: 0.86rem; color: var(--muted-ink); }
.inline-cta { margin: 1.6em 0 0; }

/* ---------- Tables ---------- */
.table-wrap { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.table-wrap table { font-size: 0.95rem; }
.table-wrap caption { caption-side: top; text-align: left; font-weight: 700; font-family: var(--head); padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--mint-card); font-family: var(--head); font-weight: 700; color: var(--green-ink); }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-note { font-size: 0.86rem; color: var(--muted-ink); margin: -0.6em 0 1.4em; }
@media (max-width: 719px) {
  /* A table that still cannot fit scrolls inside its frame instead of being clipped. */
  .table-wrap { overflow-x: auto; }
  .table-wrap table { font-size: 0.875rem; }
  .table-wrap th, .table-wrap td { padding: 10px 8px; }
  .table-wrap tr > :first-child { padding-left: 12px; }
  .table-wrap tr > :last-child { padding-right: 12px; }
  /* Tables with four or more columns become one card per row. */
  .table-wrap.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table-wrap.stack table, .table-wrap.stack tbody, .table-wrap.stack tr, .table-wrap.stack td, .table-wrap.stack th { display: block; width: 100%; }
  .table-wrap.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-wrap.stack tr:last-child { border-bottom: 0; }
  .table-wrap.stack td, .table-wrap.stack tbody th { border: 0; padding: 3px 0; }
  .table-wrap.stack tbody tr > :first-child { font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--green-ink); padding-bottom: 6px; }
  .table-wrap.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted-ink); }
  .table-wrap.stack tbody tr > :first-child::before { content: none; }
}

/* ---------- Trial result + weight slider (medication pages) ---------- */
.trial-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .trial-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.wslider { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06); }
.wslider-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.wslider-label output { font-family: var(--head); font-size: 1.5rem; font-weight: 800; color: var(--green-ink); }
.wslider input[type="range"] { width: 100%; height: 32px; accent-color: var(--green); margin: 0; }
.wslider-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted-ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.seg legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 500px; font-weight: 600; font-size: 0.92rem; background: #fff; }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #1570ef; outline-offset: 2px; }
.wslider-result { margin-top: 20px; background: var(--mint); border-radius: var(--radius-sm); padding: 18px; }
.wslider-result p { margin: 0; }
.wslider-big { font-family: var(--head); font-size: 2.3rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.wslider-sub { color: #344054; margin-top: 6px !important; }
.wslider-note { font-size: 0.8rem; color: var(--muted-ink); margin: 14px 0 0; }

/* ---------- Tool layout ---------- */
.tool-hero { background: linear-gradient(180deg, var(--mint) 0%, #fff 340px); padding-bottom: 40px; }
.tool-hero h1 { margin-top: 18px; }
.tool-intro { max-width: 760px; }
.tool { display: grid; gap: 20px; margin-top: 24px; align-items: start; }
@media (min-width: 992px) { .tool { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 28px; } .tool.wide { grid-template-columns: 1fr; } }
.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06); min-width: 0; }
.tool-panel h2 { font-size: 1.3rem; }
.tool-result { background: var(--green-ink); color: #fff; border-radius: var(--radius); padding: 24px; min-width: 0; }
.tool-result h2, .tool-result h3 { color: #fff; font-size: 1.15rem; }
.tool-result a { color: #b5f0c7; }
.tool-result .big { font-family: var(--head); font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; line-height: 1; margin: 0; color: #fff; }
.tool-result .unit { font-size: 1rem; font-weight: 600; color: #b5f0c7; }
.tool-result .preview-note { font-size: 0.82rem; color: #b5f0c7; margin-top: 10px; }
.tool-result .rows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.tool-result .rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.tool-result .rows strong { font-family: var(--head); font-size: 1.15rem; white-space: nowrap; }
.tool-result .status { margin: 16px 0 0; color: #e3f3e8; }
.tool-result .warn { background: #fff6e5; color: #5c3b00; border-radius: var(--radius-sm); padding: 12px 14px; margin: 16px 0 0; font-size: 0.92rem; }
.tool-result .offer { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.tool-result .offer p { color: #e3f3e8; font-size: 0.95rem; }
.is-preview .big, .is-preview .rows strong { opacity: 0.55; }

.field { margin-bottom: 16px; min-width: 0; }
.field > label, .field > .label, fieldset.field > legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted-ink); font-size: 0.85rem; }
.input, .select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px solid #d0d5dd; border-radius: var(--radius-sm); background: #fff; font-size: 16px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.input:focus, .select:focus { border-color: var(--green); outline: 3px solid rgba(0, 124, 41, 0.25); outline-offset: 0; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.with-unit { position: relative; }
.with-unit .input { padding-right: 46px; }
.with-unit .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-ink); font-size: 0.9rem; pointer-events: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--danger); font-size: 0.86rem; margin: 6px 0 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.toggle { display: inline-flex; background: #eef2f6; border-radius: 500px; padding: 4px; gap: 2px; }
.toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 500px; font-weight: 600; font-size: 0.92rem; cursor: pointer; color: var(--muted-ink); }
.toggle button[aria-pressed="true"], .toggle button[aria-selected="true"] { background: #fff; color: var(--green-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.15); }
.tool-result .toggle { background: rgba(255, 255, 255, 0.14); }
.tool-result .toggle button { color: #e3f3e8; }
.tool-result .toggle button[aria-pressed="true"] { color: var(--green-ink); }

.disclaimer-strip { background: var(--cream); border: 1px solid #f3e4c8; border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px; font-size: 0.9rem; color: #5c4a22; }
.disclaimer-strip p { margin: 0; }
.jump { margin-top: 24px; }
.jump h2 { font-size: 1rem; margin-bottom: 10px; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump li { margin: 0; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 500px; font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none; background: #fff; }
.jump a:hover { border-color: var(--green); color: var(--green); }

/* Guide body: readable measure with section spacing */
.guide-body section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.guide-body section:first-child { border-top: 0; padding-top: 0; }
.guide-body { max-width: 820px; margin: 0 auto; }
.article-head { max-width: 820px; margin: 0 auto; padding: 8px 0 8px; }
.article-head h1 { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; color: var(--ink); display: inline; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: #344054; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- References ---------- */
.refs { font-size: 0.9rem; color: var(--muted-ink); }
.refs details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.refs summary { cursor: pointer; padding: 16px 20px; font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1rem; }
.refs ol { margin: 0; padding: 0 20px 18px 44px; }
.refs li { margin-bottom: 8px; overflow-wrap: anywhere; scroll-margin-top: 140px; }
.refs li:target { background: var(--mint); }
.refs p { padding: 0 20px 16px; margin: 0; }

/* ---------- CTA band, care team, med cards, link blocks ---------- */
.cta-band { background: var(--green-ink); color: #fff; border-radius: var(--radius); padding: 36px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f3e8; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .cta-note { color: #b5f0c7; }
@media (min-width: 768px) { .cta-band { padding: 56px 40px; } }

.care { display: grid; gap: 28px; align-items: center; }
.care-media { border-radius: var(--radius); overflow: hidden; max-width: 420px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .care { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }

.med-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .med-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .med-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.med-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow 0.15s ease, transform 0.15s ease; min-width: 0; }
.med-card:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, 0.1); transform: translateY(-2px); color: var(--ink); }
.med-card-img { aspect-ratio: 1 / 1; background: #dff0fb; overflow: hidden; }
.med-card-img img { width: 100%; height: 100%; object-fit: cover; }
.med-card-body { padding: 14px 14px 16px; }
.med-card-name { font-family: var(--head); font-weight: 800; font-size: 1.05rem; display: block; }
.med-card-generic { display: block; font-size: 0.82rem; color: var(--muted-ink); }
.med-card-form { display: block; font-size: 0.82rem; color: var(--green); font-weight: 600; margin-top: 6px; }

.link-cards { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.link-cards li { margin: 0; }
.link-cards a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.link-cards a:hover { border-color: var(--green); }
.link-cards strong { display: block; font-family: var(--head); font-size: 1.02rem; color: var(--green-ink); margin-bottom: 4px; }
.link-cards span { display: block; font-size: 0.9rem; color: var(--muted-ink); }
@media (min-width: 720px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .link-cards.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Important safety information ---------- */
.isi { font-size: 0.93rem; color: #344054; }
.isi h2 { font-size: 1.4rem; }
.isi h3 { font-size: 1rem; color: var(--ink); margin-top: 1.3em; }
.isi-body { position: relative; }
.isi-body.is-clamped { max-height: 340px; overflow: hidden; }
.isi-body.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(249, 250, 251, 0) 0%, var(--gray-band) 100%); }
.isi-toggle { margin-top: 14px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.08); transform: translateY(110%); visibility: hidden; transition: transform 0.2s ease, visibility 0s linear 0.2s; }
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; transition: transform 0.2s ease; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 992px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); padding: 48px 0 96px; font-size: 0.93rem; color: #344054; }
@media (min-width: 992px) { .site-footer { padding-bottom: 48px; } }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand img { width: 110px; margin-bottom: 14px; }
.site-footer h2 { font-family: var(--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #344054; text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.footer-legal { border-top: 1px solid #dfe3ea; margin-top: 32px; padding-top: 20px; font-size: 0.84rem; color: var(--muted); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer-legal li { margin: 0; }
.footer-legal p { margin: 0 0 10px; }
