/* ============================================================
   Mounjaro Injection UK — design system
   Oxblood editorial on warm paper. Calm, bookish, unhurried.
   Fonts: "Newsreader" (display serif) + "Source Sans 3" (body).
   Light mode only.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --paper: #faf6ef;           /* warm cream page */
  --paper-raised: #fffdf8;    /* cards, callouts, accordion */
  --paper-sunken: #f2ebdf;    /* wells, table heads */
  --ink: #241d1a;             /* warm near-black text */
  --ink-soft: #544a43;        /* secondary text */
  --ink-faint: #8a7d72;       /* meta, captions */
  --oxblood: #7a1f2b;         /* single accent — oxblood */
  --oxblood-deep: #591622;    /* hover / active */
  --oxblood-wash: #f6e7e4;    /* tinted info backgrounds */
  --line: #e7dccc;            /* hairline borders */
  --line-strong: #d3c3aa;
  --amber-wash: #fbf1da;      /* cautions only */
  --amber-edge: #c48a27;
  --footer-bg: #351219;       /* deep oxblood footer */
  --footer-ink: #ecdfd6;      /* cream text on footer */
  --footer-line: rgba(236, 223, 214, 0.22);
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --measure: 700px;           /* article measure */
  --wide: 1060px;             /* topbar / footer measure */
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-soft: 0 1px 2px rgba(36, 29, 26, 0.05), 0 6px 18px rgba(36, 29, 26, 0.06);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-size: 1.0625rem;             /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--oxblood-wash); color: var(--oxblood-deep); }

a { color: var(--oxblood); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxblood-deep); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--oxblood);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 4px solid var(--oxblood);      /* signature oxblood band */
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .brand-mark { flex: 0 0 auto; }
.brand em { font-style: italic; color: var(--oxblood); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  border-bottom: 2px solid transparent;      /* editorial underline, not pills */
  white-space: nowrap;
}
.nav a:hover { color: var(--oxblood-deep); border-bottom-color: var(--oxblood); }
.nav a[aria-current="page"] { color: var(--oxblood-deep); border-bottom-color: var(--oxblood); }

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
}
.nav-toggle:hover { color: var(--oxblood-deep); border-color: var(--oxblood); }

/* ---------- Page scaffold ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: var(--measure); }

main { display: block; }

/* ---------- Hero (home page) ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 90% at 50% -20%, rgba(122, 31, 43, 0.06), transparent 70%),
    var(--paper);
}
.hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.75rem;
}
.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--oxblood);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero .lede { margin-bottom: 0; }

/* ---------- Article typography ---------- */
.article,
.article-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.article { padding-top: 3rem; padding-bottom: 4rem; }

.article h1,
.page-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.article-body h2,
.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem;
}
.article-body h3,
.article h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2rem 0 0.7rem;
}
.article-body p, .article p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol,
.article ul, .article ol { margin: 0 0 1.15rem 1.4rem; }
.article-body li, .article li { margin-bottom: 0.45rem; }
.article-body li::marker, .article li::marker { color: var(--oxblood); }
.article-body strong, .article strong { font-weight: 600; }

.article-meta,
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-bottom: 2.25rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--oxblood);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

figure { margin: 1.75rem 0; }
figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* ---------- Data tables (informational only — never pricing) ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
table { border-collapse: collapse; width: 100%; font-size: 0.925rem; background: var(--paper-raised); }
caption { text-align: left; font-size: 0.85rem; color: var(--ink-faint); padding: 0.6rem 0.9rem; caption-side: bottom; }
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oxblood-deep);
  background: var(--paper-sunken);
  border-bottom: 2px solid var(--line-strong);
}
tbody th[scope="row"] { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--oxblood-wash);
  border: 1px solid rgba(122, 31, 43, 0.22);
  border-left: 4px solid var(--oxblood);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.75rem 0;
  font-size: 0.975rem;
}
.callout > :last-child { margin-bottom: 0; }
.callout-title {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--oxblood-deep);
  margin-bottom: 0.4rem;
}
.callout.warning {
  background: var(--amber-wash);
  border-color: rgba(196, 138, 39, 0.45);
  border-left-color: var(--amber-edge);
}
.callout.warning .callout-title { color: #7c5510; }

/* ---------- FAQ accordion (details/summary) ---------- */
.faq { margin: 1.75rem 0; }
.faq-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--oxblood);
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--oxblood-deep); }
.faq-item .faq-answer { padding: 0 1.15rem 1.05rem; color: var(--ink-soft); font-size: 0.975rem; }
.faq-item .faq-answer > :last-child { margin-bottom: 0; }

/* ---------- References ---------- */
.refs {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-strong);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.refs h2, .refs h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  margin: 0 0 0.8rem;
}
.refs ol { margin: 0 0 0 1.3rem; }
.refs li { margin-bottom: 0.5rem; line-height: 1.55; }
.refs li::marker { color: var(--oxblood); font-weight: 600; }
.refs a { word-break: break-word; color: var(--oxblood); }

/* ---------- Blog listing ---------- */
.listing-head { padding: 3rem 0 0.5rem; }
.listing-head .page-title { margin-bottom: 0.6rem; }
.listing-head .listing-intro { color: var(--ink-soft); max-width: 62ch; }

.guide-cards {
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem 0 3.5rem;
}
.guide-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.guide-card:hover {
  color: var(--ink);
  border-color: var(--oxblood);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  text-decoration: none;
}
.guide-card .guide-card-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.guide-card h2, .guide-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 0.45rem;
  color: var(--ink);
}
.guide-card:hover h2, .guide-card:hover h3 { color: var(--oxblood-deep); }
.guide-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* Empty state for the listing before the first article lands */
.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 2.75rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state .empty-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.empty-state p { max-width: 48ch; margin: 0 auto; font-size: 0.975rem; }
.empty-state p + p { margin-top: 0.6rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--oxblood-deep); text-decoration: underline; }

/* ---------- Footer (deep oxblood, cream text) ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 4px solid var(--oxblood);
  margin-top: 3rem;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2.25rem;
}
.footer-disclaimer {
  max-width: 78ch;
  margin-bottom: 1rem;
  line-height: 1.65;
  color: var(--footer-ink);
  opacity: 0.92;
}
.footer-disclaimer strong { color: #fff; font-weight: 600; }
.footer a { color: var(--footer-ink); text-decoration: underline; text-decoration-color: rgba(236, 223, 214, 0.5); }
.footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 1.6rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--footer-line);
}
.footer-nav a { color: var(--footer-ink); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-meta { font-size: 0.8rem; color: rgba(236, 223, 214, 0.6); }

/* ---------- 404 page ---------- */
.error-page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 5rem 1.25rem 6rem;
  text-align: center;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 14vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--oxblood);
  letter-spacing: -0.03em;
}
.error-page h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0.75rem 0 0.9rem;
}
.error-page p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 1.1rem; }
.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 1.5rem;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    background: var(--paper-raised);
    border-bottom: 2px solid var(--oxblood);
    box-shadow: 0 14px 28px rgba(36, 29, 26, 0.1);
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom-color: transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--oxblood); }
}

@media (max-width: 540px) {
  body { font-size: 1rem; }
  .article { padding-top: 2rem; padding-bottom: 3rem; }
  .hero-inner { padding-top: 2.5rem; padding-bottom: 2rem; }
  .guide-card { padding: 1.15rem 1.2rem; }
  .brand { font-size: 1.15rem; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .nav-toggle, .skip-link, .footer-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article, .article-body, .hero-inner { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  .article-body a[href^="http"]::after,
  .article a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  .callout, .faq-item, .guide-card { border: 1px solid #999; background: #fff; box-shadow: none; }
  .footer { background: #fff; color: #000; border-top: 1px solid #999; }
  .footer-disclaimer, .footer-meta { color: #000; }
}
