/* The Diet Directory, modern white medical design system.
   Clean clinical white, one teal accent, floating blurred pill nav. */

:root {
  --bg: #ffffff;
  --surface: #f6f8f9;
  --card: #ffffff;
  --ink: #11161b;
  --body: #3c454e;
  --muted: #68737e;
  --line: #e4e9ec;
  --line-soft: #eef1f3;
  --accent: #0b6e5d;
  --accent-deep: #085846;
  --accent-tint: #e7f4f0;
  --ev-strong: #0b6e5d;
  --ev-moderate: #8a6a15;
  --ev-limited: #68737e;
  --ev-weak: #b3362b;
  --font-body: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --wrap: 1160px;
  --read: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.mono { font-family: var(--font-mono); }

a { color: var(--accent); text-decoration-color: rgba(11, 110, 93, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); text-decoration-color: var(--accent-deep); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Top strip ─────────────────────────────────────────────────────────── */
.topstrip { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.topstrip-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: .55rem; padding-bottom: .55rem;
}
.topstrip .mono {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Floating sticky semi-transparent nav ──────────────────────────────── */
.floatnav {
  position: sticky; top: 12px; z-index: 100;
  padding: 12px clamp(.8rem, 3vw, 2rem) 0;
  margin-bottom: -4px;
}
.floatnav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(17, 22, 27, .09);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(17, 22, 27, .09);
  padding: .55rem 1.2rem;
}
.fnav-brand {
  font-weight: 800; font-size: 1rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.fnav-brand span { color: var(--accent); }
.fnav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem; }
.fnav-link {
  position: relative;
  font-size: .78rem; font-weight: 600; color: var(--body);
  text-decoration: none; padding: .42rem .7rem; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.fnav-link:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* ── Type and shared elements ──────────────────────────────────────────── */
.kicker {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}

.hero { padding-top: clamp(2.6rem, 7vh, 5rem); padding-bottom: clamp(2.4rem, 6vh, 4rem); }

.hero-title, .page-title {
  font-weight: 800; color: var(--ink);
  line-height: 1.08; letter-spacing: -0.03em;
  margin: 0 0 1.3rem;
}
.hero-title { font-size: clamp(2rem, 4.8vw, 3.5rem); max-width: 22ch; }
.page-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 24ch; }

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem); line-height: 1.62;
  color: var(--body); max-width: var(--read); margin: 0 0 1.6rem;
}

.section-title {
  font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--ink); line-height: 1.15; letter-spacing: -0.025em;
  margin: 0 0 1rem; max-width: 30ch;
}
.section-sub { max-width: var(--read); color: var(--muted); margin: 0 0 2rem; }
.section-link { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }

main > section { padding-top: clamp(2.2rem, 5vh, 3.4rem); padding-bottom: clamp(2.2rem, 5vh, 3.4rem); }
main > section + section { border-top: 1px solid var(--line-soft); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .4px;
  text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(17, 22, 27, .25); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Hero stat strip ───────────────────────────────────────────────────── */
.stat-strip {
  display: grid; gap: 0; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--surface);
}
.stat { padding: 1.3rem 1.4rem; border-left: 1px solid var(--line); background: var(--card); }
.stat:first-child { border-left: 0; }
.stat-n {
  display: block; font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em;
  color: var(--accent); line-height: 1.1;
}
.stat-l { display: block; font-size: .78rem; color: var(--muted); margin-top: .35rem; line-height: 1.45; }

/* ── Trio ──────────────────────────────────────────────────────────────── */
.trio-grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.trio-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.5rem 1.4rem;
}
.trio-num { font-size: 11px; letter-spacing: 1px; color: var(--accent); margin: 0 0 .7rem; }
.trio-item h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .7rem; }
.trio-item p { margin: 0; font-size: .93rem; }

/* ── Split + sidebox ───────────────────────────────────────────────────── */
.split {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  align-items: start;
}
.split p { max-width: var(--read); }
.split p + p { margin-top: 0; }

.sidebox {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.5rem 1.1rem;
  position: sticky; top: 92px;
}
.sidebox h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .8rem; }
.sidebox p, .sidebox li { font-size: .88rem; }
.sidebox ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.sidebox li { margin-bottom: .55rem; }
.partner-list { list-style: none; padding: 0; }
.partner-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.partner-list li:last-child { border-bottom: 0; }

.fineprint { font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* ── Pair cards and move grid ──────────────────────────────────────────── */
.pair-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pair-card {
  display: block; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pair-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(11, 110, 93, .08); }
.pair-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: .7rem 0 .5rem; }
.pair-card p { font-size: .86rem; color: var(--muted); margin: 0 0 .9rem; }
.pair-top { min-height: 1.4rem; }
.readmore { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.move-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.move-item {
  display: block; padding: 1.35rem 1.35rem 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.move-item:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(11, 110, 93, .08); }
.move-item h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5rem; }
.move-item p { font-size: .86rem; color: var(--muted); margin: 0; }
.move-feature { background: var(--accent-tint); border-color: rgba(11, 110, 93, .3); }

/* ── Health synthesis + studies ────────────────────────────────────────── */
.health { background: var(--surface); max-width: none; border-radius: 0; }
.health p { max-width: var(--read); }
.health p + p { margin-top: 0; }

.studies .section-title { max-width: none; }
.study-list { max-width: 52rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.study-list li {
  padding: .9rem .2rem; border-bottom: 1px solid var(--line);
  font-size: .9rem; line-height: 1.55;
}
.study-list li a { color: var(--body); }
.study-list li a:hover { color: var(--accent); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: var(--read); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.015em; color: var(--ink);
  padding: 1.05rem 2rem 1.05rem 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: .95rem;
  font-family: var(--font-mono); color: var(--accent); font-size: 1.1rem;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { margin: 0 0 1.2rem; font-size: .93rem; }

/* ── Category chips ────────────────────────────────────────────────────── */
.cat-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 .5rem; }
.cat-chip {
  display: inline-flex; align-items: baseline; gap: .55rem;
  border: 1px solid rgba(17, 22, 27, .22); border-radius: 999px;
  padding: .5rem 1rem; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cat-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-chip-name { font-size: .8rem; font-weight: 600; }
.cat-chip-n { font-size: 10px; color: var(--accent); }
.cat-chip:hover .cat-chip-n { color: #7fd4c3; }

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */
.breadcrumbs {
  padding-top: 1.4rem;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { margin: 0 .5rem; color: var(--line); }

/* ── Directory table and filters ───────────────────────────────────────── */
.page-head { padding-top: 1.2rem; }

.filterbar { margin-top: 1.8rem; display: grid; gap: 1rem; max-width: 52rem; }
.filter-input {
  width: 100%;
  font-family: var(--font-mono); font-size: .88rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .85rem 1.3rem; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.filter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.filter-input::placeholder { color: var(--muted); }

.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--card); color: var(--body);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .95rem; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat-section { scroll-margin-top: 6rem; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cat-count { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.cat-blurb { max-width: var(--read); color: var(--muted); font-size: .92rem; margin: 0 0 1.6rem; }

.dtable { border-top: 2px solid var(--ink); }
.drow {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr minmax(120px, 160px);
  gap: 1.2rem; align-items: baseline;
  padding: .95rem .4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .15s ease;
}
.drow:hover { background: var(--surface); }
.drow-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; color: var(--ink); }
.drow:hover .drow-name { color: var(--accent); }
.drow-sum { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.drow-ev { text-align: right; }
.drow-static { cursor: default; }
.drow-static:hover { background: transparent; }
.drow-static .drow-name { color: var(--ink); }
.drow-static .drow-sum { max-width: 52rem; }

.no-results { padding-top: 2rem; padding-bottom: 3rem; color: var(--muted); }

/* ── Evidence badges ───────────────────────────────────────────────────── */
.ev-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap;
}
.ev-strong { color: var(--ev-strong); background: var(--accent-tint); border-color: transparent; }
.ev-moderate { color: var(--ev-moderate); background: #faf3e0; border-color: transparent; }
.ev-limited { color: var(--ev-limited); background: var(--surface); border-color: transparent; }
.ev-weak { color: var(--ev-weak); background: #fbeae8; border-color: transparent; }

/* ── Diet article ──────────────────────────────────────────────────────── */
.diet-article { padding-top: 1rem; }
.diet-head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.2rem; }
.diet-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.diet-reviewed { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.diet-body { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; }
.diet-main section { margin-bottom: 2.1rem; }
.diet-main h2 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 .7rem;
}
.diet-main p { margin: 0; max-width: var(--read); }
.diet-main section > p + p { margin-top: .8rem; }
.diet-main ul { max-width: var(--read); }

.proscons { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.pc {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.35rem 1.1rem; background: var(--card);
}
.pc-pro { border-top: 3px solid var(--ev-strong); }
.pc-con { border-top: 3px solid var(--ev-weak); }
.pc h2 { font-size: 1.05rem; margin-top: 0; }
.pc ul { margin: 0; padding-left: 1.1rem; }
.pc li { font-size: .88rem; margin-bottom: .55rem; line-height: 1.5; }

.evidence-panel {
  background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 1.2rem 1.4rem;
}
.evidence-panel p { margin-top: .6rem; }

.diet-studies ul, .refs ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.diet-studies li, .refs li { font-size: .86rem; margin-bottom: .5rem; line-height: 1.55; }

.diet-aside { display: grid; gap: 1.4rem; position: sticky; top: 92px; }
.glp-note, .related {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.4rem 1.1rem;
}
.glp-note { border-top: 3px solid var(--accent); }
.glp-note h3, .related h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .6rem; }
.glp-note p { font-size: .85rem; margin: 0; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: 1px solid var(--line); }
.related li:last-child { border-bottom: 0; }
.related a { display: block; padding: .55rem 0; font-size: .9rem; text-decoration: none; }
.related a:hover { color: var(--accent); }

/* ── Exercise page ─────────────────────────────────────────────────────── */
.ex-section h2 { margin-bottom: 1.1rem; }
.ex-section > p { max-width: var(--read); }
.ex-section > p + p { margin-top: 0; }
.ex-cols {
  display: grid; gap: 1.4rem; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ex-cols h3 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.ex-cols ul { margin: 0; padding-left: 1.1rem; }
.ex-cols li { font-size: .9rem; margin-bottom: .5rem; }
.ex-feature {
  background: var(--accent-tint);
  border: 1px solid rgba(11, 110, 93, .25); border-radius: 20px;
  padding-left: clamp(1.2rem, 3vw, 2.4rem); padding-right: clamp(1.2rem, 3vw, 2.4rem);
  max-width: none;
}
.medical-note { padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* ── GLP page extras ───────────────────────────────────────────────────── */
.rule-list { max-width: var(--read); padding-left: 1.2rem; }
.rule-list li { margin-bottom: .9rem; line-height: 1.6; }
.rule-list li::marker { color: var(--accent); }

.partner-cards { display: grid; gap: 1rem; margin: 1.4rem 0; }
.partner-card {
  display: block; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 1.1rem 1.3rem; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.partner-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(11, 110, 93, .08); }
.partner-domain { display: block; font-size: .95rem; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.partner-card:hover .partner-domain { color: var(--accent); }
.partner-desc { display: block; font-size: .86rem; color: var(--muted); margin-top: .35rem; line-height: 1.5; }

/* ── Site map page ─────────────────────────────────────────────────────── */
.map-guides {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.map-guide {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.35rem 1.15rem; text-decoration: none;
  transition: border-color .18s ease;
}
.map-guide:hover { border-color: var(--accent); }
.map-guide h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5rem; }
.map-guide p { font-size: .85rem; color: var(--muted); margin: 0; }

.map-cat { display: flex; align-items: baseline; gap: .8rem; }
.map-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
}
.map-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem .2rem; border-bottom: 1px solid var(--line-soft);
}
.map-list a { font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--body); }
.map-list a:hover { color: var(--accent); }
.map-ev { flex-shrink: 0; }
.map-flat { grid-template-columns: 1fr; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.colophon { background: #0f1519; color: #b9c2c9; margin-top: 3rem; }
.colophon .wrap { padding-top: 3rem; padding-bottom: 2.4rem; }
.colophon-brand {
  font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em; color: #fff; margin: 0 0 2rem;
}
.colophon-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 2rem; border-bottom: 1px solid #2a333a;
}
.colophon-h {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #6fc7b5;
  margin: 0 0 .9rem;
}
.colophon ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.colophon li { margin-bottom: .45rem; font-size: .88rem; }
.colophon a { color: #d7dee3; text-decoration: none; }
.colophon a:hover { color: #6fc7b5; }
.colophon .fineprint { color: #8b959d; }
.colophon-line { margin: 1.6rem 0 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .diet-body { grid-template-columns: 1fr; }
  .diet-aside, .sidebox { position: static; }
  .split { grid-template-columns: 1fr; }
  .floatnav-inner { padding: .5rem .55rem .5rem 1.1rem; }
  .fnav-links { display: none; }
}
@media (max-width: 720px) {
  .drow { grid-template-columns: 1fr; gap: .3rem; padding: .9rem .2rem; }
  .drow-ev { text-align: left; margin-top: .4rem; }
  .proscons { grid-template-columns: 1fr; }
  .topstrip-row { justify-content: center; }
  .topstrip-row .mono:nth-child(2) { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .floatnav, .topstrip, .filterbar, .diet-aside, .colophon, .breadcrumbs,
  .burger, .nav-drawer, .nav-overlay, .navcheck { display: none; }
}

/* ── Logos and featured images (slimr.co.uk) ───────────────────────────── */
.fnav-logo { display: block; height: 35px; width: auto; }
.colophon-logo { display: block; height: 52px; width: auto; }
.colophon-brand { margin-bottom: 2rem; }

/* Folded-corner featured image: subtle, softly integrated */
.fold {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17, 22, 27, .08);
  background: var(--surface);
}
.fold img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.fold::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--bg) 0%, var(--bg) 49%, rgba(17, 22, 27, .10) 50%, rgba(17, 22, 27, .04) 100%);
  border-bottom-left-radius: 10px;
  box-shadow: -2px 2px 5px rgba(17, 22, 27, .08);
  pointer-events: none;
}

.hero-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 400px);
  align-items: center;
}
.hero-img { justify-self: end; width: 100%; max-width: 400px; }

.page-head-grid {
  display: grid; gap: clamp(1.4rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  align-items: center;
}
.pagehead-img { justify-self: end; width: 100%; max-width: 260px; }

.aside-img { width: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { justify-self: start; max-width: 320px; }
  .page-head-grid { grid-template-columns: 1fr; }
  .pagehead-img { justify-self: start; max-width: 220px; }
}

/* ── UI polish pass ────────────────────────────────────────────────────── */
.trio-item, .pair-card, .move-item, .map-guide, .partner-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.trio-item:hover, .pair-card:hover, .move-item:hover, .map-guide:hover, .partner-card:hover {
  transform: translateY(-2px);
}
.trio-item:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgba(17, 22, 27, .07); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.diet-main h2 { scroll-margin-top: 6rem; }
.ex-section { scroll-margin-top: 6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ── Crosslink cards: "Where to go next" ───────────────────────────────── */
.next-steps { margin-top: 3.4rem; }
.next-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.next-card {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.35rem 1.15rem; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.next-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(17, 22, 27, .07);
  transform: translateY(-2px);
}
.next-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5rem; }
.next-card p { font-size: .85rem; color: var(--muted); margin: 0 0 .8rem; }

/* ── Safety strip: UK regulators ───────────────────────────────────────── */
.safety-strip {
  margin-top: 3.4rem;
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-top: 2.8rem; padding-bottom: 3rem;
}
.safety-grid {
  display: grid; gap: 1rem; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.safety-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.2rem; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.safety-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(11, 110, 93, .08);
  transform: translateY(-2px);
}
.safety-abbr { font-size: .95rem; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.safety-role { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ── Inline folded image, wrapped by text ──────────────────────────────── */
.fold-inline {
  float: right; max-width: 230px; width: 42%;
  margin: .3rem 0 1.2rem 1.6rem;
}
/* keep floats contained inside their section */
.health::after, .ex-section::after, .simple-start::after {
  content: ''; display: block; clear: both;
}
@media (max-width: 900px) {
  .fold-inline { float: none; display: block; width: 100%; max-width: 260px; margin: 0 auto 1.4rem; }
}

/* ── Patch exposé callout: quietly flag the warning section ────────────── */
.patch-callout {
  background: #fdf6f5;
  border-top: 3px solid var(--ev-weak);
  padding-top: 2.6rem; padding-bottom: 2.8rem;
}

/* ── Touch targets on coarse pointers (phones, tablets) ────────────────── */
@media (pointer: coarse) {
  .fnav-link { padding: .65rem 1rem; }
  .chip { padding: .65rem 1rem; }
}

/* ── Mobile hamburger: thick bars, thin slick border, left drawer ──────── */
.navcheck { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.burger, .nav-drawer, .nav-overlay { display: none; }

@media (max-width: 900px) {
  .burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 46px; height: 46px; flex-shrink: 0; cursor: pointer;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(17, 22, 27, .22);
    border-radius: 14px;
    transition: border-color .18s ease, background .18s ease;
  }
  .burger:hover { border-color: var(--accent); background: rgba(255, 255, 255, .9); }
  .navcheck:focus-visible ~ .floatnav-inner .burger {
    outline: 2px solid var(--accent); outline-offset: 2px;
  }
  .burger span {
    display: block; height: 3.5px; border-radius: 3px; background: var(--ink);
    transition: transform .3s cubic-bezier(.6, .05, .2, 1), opacity .2s ease, width .3s ease;
  }
  .burger span:nth-child(1) { width: 22px; }
  .burger span:nth-child(2) { width: 14px; transform: translateX(-4px); }
  .burger span:nth-child(3) { width: 22px; }
  .navcheck:checked ~ .floatnav-inner .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .navcheck:checked ~ .floatnav-inner .burger span:nth-child(2) { opacity: 0; transform: translateX(-4px) scaleX(.4); }
  .navcheck:checked ~ .floatnav-inner .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 140;
    background: rgba(17, 22, 27, .32);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }
  .navcheck:checked ~ .nav-overlay { opacity: 1; pointer-events: auto; }

  .nav-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; z-index: 150;
    height: 100vh; height: 100dvh;
    width: min(330px, 86vw);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border-right: 1px solid rgba(17, 22, 27, .10);
    box-shadow: 24px 0 60px rgba(17, 22, 27, .14);
    transform: translateX(-104%);
    transition: transform .34s cubic-bezier(.32, .72, .24, 1);
    padding: 1rem 1.3rem 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navcheck:checked ~ .nav-drawer { transform: translateX(0); }

  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: .9rem; margin-bottom: .4rem;
    border-bottom: 1px solid var(--line);
  }
  .drawer-logo { display: block; height: 30px; width: auto; }
  .drawer-close {
    position: relative; width: 40px; height: 40px; flex-shrink: 0; cursor: pointer;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(17, 22, 27, .22);
    border-radius: 12px;
    transition: border-color .18s ease, background .18s ease;
  }
  .drawer-close:hover { border-color: var(--accent); background: rgba(255, 255, 255, .9); }
  .drawer-close span {
    position: absolute; top: 50%; left: 50%;
    width: 18px; height: 3px; border-radius: 2px; background: var(--ink);
  }
  .drawer-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .drawer-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

  .drawer-links { display: flex; flex-direction: column; }
  .drawer-link {
    display: flex; align-items: baseline; gap: .9rem;
    padding: .8rem .2rem; text-decoration: none;
    color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
    border-bottom: 1px solid var(--line-soft);
    transition: color .15s ease, padding-left .2s ease;
  }
  .drawer-link:hover { color: var(--accent); padding-left: .5rem; }
  .drawer-num { font-size: .68rem; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
  .drawer-foot { margin-top: auto; padding-top: 1.3rem; font-size: .8rem; color: var(--muted); line-height: 1.55; }
}

/* ── Home page cards: medication stats ─────────────────────────────────── */
.med-cards {
  display: grid; gap: 1rem; margin: 1.4rem 0 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.med-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.2rem;
}
.med-card h3 { font-size: .95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .45rem; }
.med-card p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.55; }
.med-stat { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); margin: 0 0 .6rem; }
.med-warn { background: #fdf6f5; border-color: rgba(179, 54, 43, .35); }
.med-warn .med-stat { color: var(--ev-weak); }
.med-note { font-size: .92rem; color: var(--muted); }

/* ── Shaded band section + callout panel ───────────────────────────────── */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line);
}
.lever { background: var(--card); }
.lever-grid { margin-top: 1.6rem; }
.callout {
  background: var(--accent-tint);
  border: 1px solid rgba(11, 110, 93, .25);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 1.4rem;
  margin-top: 1.6rem;
}
.callout h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent-deep); margin: 0 0 .6rem; }
.callout p { margin: 0; font-size: .95rem; }

/* ── Patch exposé card: flagged in red where it appears in grids ───────── */
.patch-card { border-left: 3px solid var(--ev-weak); }

/* ── Cookie consent: floating pill, GA only loads after accept ─────────── */
.consent {
  position: fixed; left: 50%; bottom: 16px; z-index: 160;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 2rem));
  display: flex; align-items: center; gap: 1.1rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(17, 22, 27, .12);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(17, 22, 27, .14);
  padding: 1rem 1.2rem;
  transition: opacity .25s ease, transform .25s ease;
}
.consent[hidden] { display: none; }
.consent.is-leaving { opacity: 0; transform: translateX(-50%) translateY(10px); }
.consent-text { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--body); }
.consent-text strong { color: var(--ink); }
.consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.consent-btn { padding: .6rem 1.1rem; font-size: .72rem; cursor: pointer; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: .8rem; }
  .consent-actions { justify-content: flex-end; }
}
@media print {
  .consent { display: none; }
}

/* ── Partner CTAs: conversion-grade treatment for checked UK lists ─────── */
.arr { flex-shrink: 0; transition: transform .18s ease; }
.partner-card:hover .arr, .rxcta:hover .arr, .note-cta:hover .arr { transform: translateX(3px); }

/* Solid pill button inside partner cards (GLP page) */
.partner-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .95rem; width: fit-content;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .4px;
  padding: .55rem 1rem; border-radius: 999px;
  transition: background .18s ease;
}
.partner-card:hover .partner-btn { background: var(--accent-deep); }

/* Stacked mini CTA cards (homepage sidebox) */
.rxctas { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 1.1rem; }
.rxcta {
  display: block; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.rxcta:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(11, 110, 93, .10);
  transform: translateY(-1px);
}
.rxcta-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rxcta-top strong { color: var(--ink); font-size: .9rem; letter-spacing: .2px; }
.rxcta-go {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--accent); font-size: .66rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
}
.rxcta-desc { display: block; font-size: .78rem; color: var(--muted); margin-top: .3rem; line-height: 1.45; }

/* Compact outline pills (diet-page note, exercise page) */
.note-ctas { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.note-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .3px;
  padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.note-cta:hover { background: var(--accent); color: #fff; }

/* ── Partner CTA highlights + subtle teal ring on every card ───────────── */
.byline { margin-top: 1.5rem; }

.trio-item, .pair-card, .move-item, .med-card, .next-card,
.safety-card, .partner-card, .rxcta, .map-guide {
  border-color: rgba(11, 110, 93, .22);
  box-shadow: 0 0 0 1px rgba(11, 110, 93, .07);
}
/* re-assert the special card borders the ring would otherwise wash out */
.move-feature { border-color: rgba(11, 110, 93, .38); }
.med-warn { border-color: rgba(179, 54, 43, .35); }
.patch-card { border-left: 3px solid var(--ev-weak); }

/* highlighted pill CTAs */
.note-cta {
  background: var(--accent-tint);
  border-color: rgba(11, 110, 93, .4);
}
.note-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.rxcta-go {
  background: var(--accent-tint);
  padding: .32rem .6rem;
  border-radius: 999px;
}

.partner-btn { box-shadow: 0 0 0 3px var(--accent-tint); }
.partner-card:hover .partner-btn { box-shadow: 0 0 0 4px var(--accent-tint); }

/* ── Social share strip: Facebook, WhatsApp, X, LinkedIn, copy link ────── */
.share-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 2.4rem 1rem 2.8rem;
  border-top: 1px solid var(--line-soft);
}
.share-label {
  margin: 0; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.share-btns { display: flex; gap: .5rem; }
.share-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--body);
  border: 1px solid rgba(17, 22, 27, .18); border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-2px);
}
.share-btn.is-copied {
  color: var(--accent); border-color: var(--accent); background: var(--accent-tint);
}
@media print {
  .share-strip { display: none; }
}
