/* ==========================================================================
   GLP1Guide.co.uk: design system v5 "Clinical Bento" (2026)
   Slick professional medical surface with a colour-coded topic system.
   Signature: asymmetric corner radii (organic rounded edges), soft layered
   shadows, tinted borders. Bricolage Grotesque + Golos Text.
   Motion: 180-240ms hover lifts only. No scroll animations. No icons.
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #f7f5f1;
  --card: #ffffff;
  --ink: #1f1b2e;
  --text: #413d52;
  --muted: #6f6a82;
  --line: #e7e3ee;
  --edge: 1px solid #e3deee;
  /* topic palette */
  --violet: #886cff;
  --sky: #4aa8d4;
  --corn: #6c85ec;
  --pink: #e8538d;
  --tomato: #e2543f;
  --green: #5cb96f;
  --yellow: #e9d62b;
  --magenta: #98418e;
  /* semantic */
  --accent: var(--tomato);
  --danger: #d43a2a;
  --warn-bg: #fdf6e0;
  --danger-bg: #fdecea;
  --tip-bg: #e9f6ec;
  --note-bg: #edf0fc;
  /* soft clinical shadows */
  --sh: 0 1px 2px rgba(31, 27, 46, .05), 0 6px 18px rgba(31, 27, 46, .06);
  --sh-lg: 0 2px 4px rgba(31, 27, 46, .06), 0 16px 36px rgba(31, 27, 46, .11);
  /* asymmetric radii signature (tl tr br bl) */
  --r-card: 26px 10px 26px 10px;
  --r-alt: 10px 26px 10px 26px;
  --r-soft: 18px 7px 18px 7px;
  --r-band: 34px 12px 34px 12px;
  /* type */
  --disp: 'Bricolage Grotesque', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* category theming (overridden by body.cat-*) */
  --cat: var(--violet);
  --cat-ink: #ffffff;
  --cat-soft: #f1ecff;
}

body.cat-violet  { --cat: #886cff; --cat-ink: #fff;    --cat-soft: #f1ecff; }
body.cat-sky     { --cat: #4aa8d4; --cat-ink: #fff;    --cat-soft: #e6f3fa; }
body.cat-corn    { --cat: #6c85ec; --cat-ink: #fff;    --cat-soft: #eceffc; }
body.cat-pink    { --cat: #e8538d; --cat-ink: #fff;    --cat-soft: #fceaf2; }
body.cat-tomato  { --cat: #e2543f; --cat-ink: #fff;    --cat-soft: #fdecea; }
body.cat-green   { --cat: #5cb96f; --cat-ink: #12301a; --cat-soft: #e9f6ec; }
body.cat-yellow  { --cat: #c9b400; --cat-ink: #fff;    --cat-soft: #faf6d8; }
body.cat-magenta { --cat: #98418e; --cat-ink: #fff;    --cat-soft: #f5eaf3; }

/* local colour utilities (cards, stats, words) */
.c-violet  { --c: #886cff; --ci: #fff;    --cs: #f1ecff; }
.c-sky     { --c: #4aa8d4; --ci: #fff;    --cs: #e6f3fa; }
.c-corn    { --c: #6c85ec; --ci: #fff;    --cs: #eceffc; }
.c-pink    { --c: #e8538d; --ci: #fff;    --cs: #fceaf2; }
.c-tomato  { --c: #e2543f; --ci: #fff;    --cs: #fdecea; }
.c-green   { --c: #5cb96f; --ci: #12301a; --cs: #e9f6ec; }
.c-yellow  { --c: #c9b400; --ci: #fff;    --cs: #faf6d8; }
.c-magenta { --c: #98418e; --ci: #fff;    --cs: #f5eaf3; }

.w-violet { color: var(--violet); }
.w-sky    { color: var(--sky); }
.w-corn   { color: var(--corn); }
.w-pink   { color: var(--pink); }
.w-tomato { color: var(--tomato); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tomato); color: #fff; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--tomato); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--tomato); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(226, 84, 63, .45); outline-offset: 2px; border-radius: 8px;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5 { font-family: var(--disp); color: var(--ink); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 22px; padding: 13px 20px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.logo .word, .footer-brand .word {
  font-family: var(--disp); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 1px;
}
.logo .word em, .footer-brand .word em { font-style: normal; color: var(--tomato); }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-left: 5px; align-self: center; }
.logo .tag { font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop > button {
  font: 600 .92rem var(--body); color: var(--ink); background: none; border: none;
  padding: 9px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .18s ease;
}
.main-nav > a:hover, .nav-drop > button:hover { background: var(--cat-soft); color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop .chev { transition: transform .2s ease; }
.nav-drop[data-open] .chev { transform: rotate(180deg); }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--card); border: var(--edge); border-radius: var(--r-soft); box-shadow: var(--sh-lg);
  padding: 10px; z-index: 120;
}
.nav-drop[data-open] .nav-menu { display: block; }
.nav-menu a {
  display: block; padding: 9px 12px; border-radius: 10px 4px 10px 4px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .92rem;
}
.nav-menu a:hover { background: var(--cat-soft); color: var(--ink); }
.nav-menu a small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted); margin-top: 1px; }
.burger {
  display: none; margin-left: auto; font: 700 .9rem var(--body); color: var(--ink);
  background: var(--card); border: var(--edge); border-radius: 999px; padding: 9px 18px;
  box-shadow: var(--sh); cursor: pointer;
}

/* ---------- crumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; padding: 18px 0 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--tomato); }
.crumbs .sep { color: var(--tomato); font-weight: 800; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 46px 0 36px; overflow: hidden; }
.kicker {
  display: inline-block; font: 800 .68rem var(--body); letter-spacing: .14em; text-transform: uppercase;
  background: var(--cat); color: var(--cat-ink);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 18px;
  box-shadow: 0 3px 10px rgba(31, 27, 46, .18);
}
.kicker.calc { background: var(--tomato); color: #fff; }
.kicker.safety { background: var(--magenta); color: #fff; }
.hero h1 {
  position: relative; z-index: 1;
  margin: 0 0 16px; max-width: 780px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04;
}
.standfirst { position: relative; z-index: 1; font-size: 1.14rem; color: var(--text); max-width: 660px; margin: 0 0 20px; line-height: 1.6; }
.review-bar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.rb {
  display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600;
  background: var(--card); border: var(--edge); border-radius: 999px; padding: 6px 14px;
  box-shadow: var(--sh); color: var(--ink);
}
.rb.plain { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
.rb strong { color: var(--tomato); }

/* geometric decorations (soft, professional) */
.geo { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.geo .g { position: absolute; opacity: .55; }
.g-c { width: 90px; height: 90px; border-radius: 50%; background: #efe9fb; top: 4%; right: 10%; }
.g-h { width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: #e4f1f8; top: 48%; right: 3%; transform: rotate(-14deg); }
.g-q { width: 78px; height: 78px; border-radius: 78px 0 0 0; background: #fbe9f2; top: 6%; right: 27%; }
.g-s { width: 56px; height: 56px; border-radius: 16px 5px 16px 5px; background: #e9f6ec; transform: rotate(18deg); top: 64%; right: 20%; }

/* ---------- layout ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; padding-bottom: 56px; }
.content { min-width: 0; }
.aside-sticky { position: sticky; top: 92px; display: grid; gap: 16px; }

/* ---------- content typography ---------- */
.content { counter-reset: h2n; }
.content h2 {
  font-size: 1.72rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  margin: 44px 0 14px; scroll-margin-top: 90px;
  counter-increment: h2n;
}
.content h2::before {
  content: counter(h2n, decimal-leading-zero);
  font-family: var(--disp); font-weight: 800; font-size: .82rem; color: var(--cat-ink);
  background: var(--cat); border-radius: 10px 4px 10px 4px;
  padding: 4px 10px; margin-right: 12px; vertical-align: 5px;
}
.content h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; margin: 28px 0 8px; }
.content p { margin: 0 0 16px; }
.content .lede { font-size: 1.1rem; color: var(--ink); line-height: 1.6; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content li::marker { color: var(--tomato); font-weight: 800; }
.content strong { color: var(--ink); }
.content a { font-weight: 600; }
.content hr { border: none; border-top: 2px dashed var(--line); margin: 34px 0; }

.content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 24px;
  background: var(--card); border: var(--edge); border-radius: var(--r-soft); overflow: hidden;
  box-shadow: var(--sh); font-size: .9rem;
}
.content th {
  font-family: var(--disp); font-weight: 700; text-align: left; color: var(--ink);
  background: var(--cat-soft); padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.content td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content tr:last-child td { border-bottom: none; }

/* ---------- callouts ---------- */
.callout {
  border: var(--edge); border-left: 5px solid var(--corn); border-radius: var(--r-soft); box-shadow: var(--sh);
  padding: 18px 20px 14px; margin: 22px 0 26px; background: var(--note-bg);
}
.callout.tip { background: var(--tip-bg); border-left-color: var(--green); }
.callout.warn { background: var(--warn-bg); border-left-color: #d9b400; }
.callout.danger { background: var(--danger-bg); border-left-color: var(--danger); }
.co-title { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 34px; }
.stat {
  background: var(--card); border: var(--edge); border-radius: var(--r-soft); box-shadow: var(--sh);
  padding: 20px 18px; border-top: 4px solid var(--c, var(--cat));
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.stat .stat-num, .stat-num {
  display: block; font-family: var(--disp); font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em;
  color: var(--c, var(--cat)); line-height: 1; margin-bottom: 8px;
}
.stat p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.stat-num em { font-style: normal; color: var(--tomato); }

/* ---------- toc & aside ---------- */
.toc { background: var(--card); border: var(--edge); border-radius: var(--r-soft); box-shadow: var(--sh); padding: 16px 18px; }
.label { font: 800 .68rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.label.accent { color: var(--tomato); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: none; }
.toc a {
  display: flex; gap: 10px; padding: 8px 0; font-size: .86rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 800 .72rem var(--disp); color: var(--cat); margin-top: 2px; }
.toc a:hover, .toc a.active { color: var(--tomato); }
.aside-card { background: var(--card); border: var(--edge); border-radius: var(--r-alt); box-shadow: var(--sh); padding: 16px 18px; }
.aside-card p { font-size: .84rem; margin: 0 0 10px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.aside-card li { padding: 6px 0; border-top: 1px solid var(--line); }
.aside-card li:first-child { border-top: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .95rem var(--body); text-decoration: none; cursor: pointer;
  border: none; border-radius: 999px; padding: 13px 26px;
  box-shadow: var(--sh);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border: var(--edge); }
.btn-ghost:hover { background: var(--cat-soft); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- bento & cards ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); margin: 24px 0 30px; }
.bento > * { grid-column: span 6; }
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.card-grid > * { grid-column: span 6; }
@media (min-width: 760px) {
  .bento > .b3 { grid-column: span 3; }
  .bento > .b2 { grid-column: span 2; }
  .bento > .b4 { grid-column: span 4; }
  .card-grid > * { grid-column: span 3; }
  .card-grid.three > * { grid-column: span 2; }
  .card-grid > .wide { grid-column: span 6; }
}

.hcard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: var(--edge); border-radius: var(--r-card); box-shadow: var(--sh);
  padding: 24px 22px 20px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card-grid > *:nth-child(even), .bento > *:nth-child(even) { border-radius: var(--r-alt); }
.hcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--c, var(--cat));
}
.hcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.hcard .hc-k { font: 800 .66rem var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--c, var(--cat)); margin-top: 4px; }
.hcard h3 { margin: 0; font-family: var(--disp); font-weight: 700; color: var(--ink); font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
.hcard p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.hcard .hc-link { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 800; color: var(--c, var(--cat)); }
.hcard.big h3 { font-size: 1.6rem; }

.tile {
  background: var(--card); border: var(--edge); border-radius: var(--r-card); box-shadow: var(--sh);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.tile h4 { margin: 0; font-family: var(--disp); font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.3; }
.tile p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.tile .stat-num { font-size: 2.5rem; }
.tile.ink { background: var(--ink); border-color: var(--ink); color: #e6e1f2; }
.tile.ink h4 { color: #fff; }
.tile.ink p { color: #b6afd0; }
.tile.ink a { color: #fff; text-decoration-color: var(--yellow); }
.tile.ink a:hover { color: var(--yellow); }
.tile.accent { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.tile.accent h4 { color: #fff; }
.tile.accent p, .tile.accent span { color: rgba(255, 255, 255, .88); }

/* ---------- home ---------- */
.hero-home {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f6f3fd 100%);
  border: var(--edge); border-radius: var(--r-band); box-shadow: var(--sh-lg);
  padding: 58px 46px 44px; margin-bottom: 30px;
}
.hero-home h1 {
  position: relative; z-index: 1; max-width: 800px; margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.03;
}
.hero-home .standfirst { max-width: 600px; font-size: 1.16rem; }
.hero-home .kicker { position: relative; z-index: 1; background: var(--ink); color: #fff; }
.hero-home .cta-row, .hero-home .trust-row { position: relative; z-index: 1; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.trust-row span {
  font-size: .78rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: var(--edge); border-radius: 999px; padding: 6px 14px;
}
.issue { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 24px; }

.section { padding: 34px 0 8px; }
.band {
  border: var(--edge); border-radius: var(--r-band); padding: 30px 28px 14px; margin-bottom: 22px;
  background: var(--card); box-shadow: var(--sh);
}
.band.s-tomato { background: #fbf3f1; }
.band.s-green { background: #f2f8f3; }
.band.s-magenta { background: #f9f1f7; }
.band.s-ink { background: transparent; border: none; box-shadow: none; padding: 0; margin-top: 34px; }
.band.s-providers { background: #f3f1fb; }
.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head .sec-num {
  display: inline-block; font: 800 .78rem var(--disp); color: var(--cat-ink);
  background: var(--cat); border-radius: 10px 4px 10px 4px;
  padding: 4px 11px; margin-bottom: 12px;
}
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.section-head h2::before { content: none; }
.section-head p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- providers ---------- */
.providers { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 6px 0 12px; }
@media (min-width: 720px) {
  .providers.two { grid-template-columns: 1fr 1fr; }
  .providers.three { grid-template-columns: 1fr 1fr 1fr; }
}
.provider {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--card); border: var(--edge); border-radius: var(--r-alt); box-shadow: var(--sh);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease;
  border-top: 4px solid var(--c, var(--violet));
}
.provider:nth-child(2) { --c: var(--sky); }
.provider:nth-child(3) { --c: var(--pink); }
.provider:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.p-badge {
  align-self: flex-start; font: 800 .62rem var(--body); letter-spacing: .12em; text-transform: uppercase;
  background: var(--tip-bg); color: #1e5c33; border: 1px solid #cde8d5; border-radius: 999px; padding: 5px 12px;
}
.p-for { font-size: .78rem; font-weight: 700; color: var(--muted); }
.provider h4 { margin: 0; font-family: var(--disp); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.provider p { margin: 0; font-size: .88rem; color: var(--muted); }
.p-cta { margin-top: 6px; font-size: .86rem; font-weight: 800; color: var(--tomato); }

/* ---------- faq / refs / related ---------- */
.faq { display: grid; gap: 10px; margin: 14px 0 28px; }
.faq details {
  background: var(--card); border: var(--edge); border-radius: var(--r-soft); box-shadow: var(--sh);
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; cursor: pointer; list-style: none;
  font-family: var(--disp); font-weight: 700; font-size: .98rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fq { flex: 1; }
.faq summary .plus {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cat-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 .95rem var(--body); color: var(--cat); transition: transform .2s ease, background .2s ease;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--cat); color: var(--cat-ink); }
.faq .fa { padding: 0 18px 16px; font-size: .92rem; }
.faq .fa p { margin: 0; }

.refs { margin: 34px 0; background: var(--card); border: var(--edge); border-radius: var(--r-card); box-shadow: var(--sh); padding: 22px 24px; }
.refs h2 { margin-top: 0 !important; margin-bottom: 12px !important; }
.refs h2::before { content: none !important; }
.refs-fold summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none; padding: 12px 16px;
  background: var(--cat-soft); border-radius: 12px 5px 12px 5px;
  font: 700 .9rem var(--body); color: var(--ink);
}
.refs-fold summary::-webkit-details-marker { display: none; }
.refs-fold summary .plus {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cat);
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 .95rem var(--body); color: var(--cat-ink); transition: transform .2s ease;
}
.refs-fold[open] summary .plus { transform: rotate(45deg); }
.refs ol { margin: 14px 0 0; padding-left: 20px; font-size: .85rem; }
.refs li { margin-bottom: 8px; color: var(--muted); }
.refs a { color: var(--text); word-break: break-all; }

.related { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 14px 0 30px; }
@media (min-width: 720px) { .related { grid-template-columns: 1fr 1fr 1fr; } }
.rel-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--card); border: var(--edge); border-radius: var(--r-soft); box-shadow: var(--sh);
  padding: 18px; transition: transform .2s ease, box-shadow .2s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.rc-k { font: 800 .64rem var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--cat); }
.rel-card h4 { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.rel-card p { margin: 0; font-size: .83rem; color: var(--muted); }

.disclaimer-band {
  background: var(--warn-bg); border: var(--edge); border-left: 5px solid #d9b400; border-radius: var(--r-soft); box-shadow: var(--sh);
  padding: 18px 20px; font-size: .88rem; margin: 34px 0 8px;
}
.disclaimer-band strong { color: var(--ink); }

/* ---------- lists & chips ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pill-list li {
  margin: 0; font-size: .82rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: var(--edge); border-radius: 999px; padding: 7px 14px;
}
.tld-box { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.tld { font: 800 .82rem var(--body); background: var(--cat-soft); color: var(--ink); border-radius: 10px 4px 10px 4px; padding: 6px 12px; }
.note, .hint { font-size: .82rem; color: var(--muted); }

/* ---------- calculators ---------- */
.calc-shell {
  background: var(--card); border: var(--edge); border-radius: var(--r-band); box-shadow: var(--sh-lg);
  overflow: hidden; margin: 24px 0 32px;
}
.calc-head { background: var(--cat); color: var(--cat-ink); padding: 22px 26px; }
.calc-head h3 { margin: 0 0 4px; font-family: var(--disp); font-weight: 800; font-size: 1.35rem; color: var(--cat-ink); }
.calc-head p { margin: 0; font-size: .88rem; opacity: .88; }
.calc-body { padding: 22px 26px 26px; }
.calc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.calc-tab {
  font: 700 .85rem var(--body); color: var(--ink); background: var(--paper);
  border: var(--edge); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.calc-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .calc-grid { grid-template-columns: 1.2fr 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font: 700 .82rem var(--body); color: var(--ink); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: 500 .95rem var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid #d9d3e6; border-radius: 12px 5px 12px 5px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 4px rgba(226, 84, 63, .14); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pen-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pen-pill {
  font: 700 .84rem var(--body); color: var(--ink); background: var(--paper);
  border: var(--edge); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pen-pill.active { background: var(--cat); color: var(--cat-ink); border-color: transparent; }
.result-panel {
  background: var(--cat-soft); border: var(--edge); border-radius: var(--r-soft);
  padding: 22px; align-self: start;
}
.result-label { display: block; font: 800 .68rem var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.result-big { display: block; font-family: var(--disp); font-weight: 800; font-size: 3rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.result-ml { display: block; font-size: .92rem; font-weight: 700; color: var(--cat); margin-top: 5px; }
.result-sub { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 4px 0 14px; }
.result-rows { border-top: 2px solid var(--ink); }
.result-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.result-row b { color: var(--ink); text-align: right; }
.multi-pen-alert {
  margin-top: 14px; background: var(--warn-bg); border: var(--edge); border-radius: 12px 5px 12px 5px;
  padding: 12px 14px; font-size: .84rem; color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc9e6; margin-top: 40px; }
.footer-grid {
  display: grid; gap: 30px; grid-template-columns: 1fr;
  padding-top: 46px; padding-bottom: 30px;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.footer-brand .word { color: #fff; font-size: 1.6rem; text-decoration: none; }
.footer-brand .word em { color: var(--yellow); }
.footer-brand p { font-size: .86rem; color: #b6afd0; max-width: 380px; margin-top: 12px; }
.site-footer h5 { font: 800 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #cfc9e6; text-decoration: none; font-size: .88rem; font-weight: 500; }
.site-footer li a:hover { color: var(--yellow); }
.footer-legal { border-top: 1px solid #3a3454; padding-top: 22px; padding-bottom: 34px; }
.footer-legal p { font-size: .78rem; color: #9d96c0; margin: 0 0 10px; }
.footer-legal a { color: #cfc9e6; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .page-grid { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 6px;
  }
  .main-nav[data-open] { display: flex; }
  .nav-drop > button { width: 100%; justify-content: space-between; }
  .nav-menu { position: static; box-shadow: none; margin-top: 6px; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .hero { padding: 30px 0 24px; }
  .hero-home { padding: 38px 24px 32px; border-radius: 26px 10px 26px 10px; }
  .g-h, .g-q { display: none; }
  .g-c { width: 60px; height: 60px; right: 6%; top: 4%; }
  .g-s { width: 38px; height: 38px; right: 22%; top: 10%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .band { padding: 22px 16px 10px; border-radius: 26px 10px 26px 10px; }
  .calc-body, .calc-head { padding-left: 18px; padding-right: 18px; }
  .content h2 { font-size: 1.45rem; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .aside, .site-footer, .cta-row, .crumbs, .geo { display: none; }
  body { background: #fff; }
  .hero-home, .hcard, .tile, .callout, .calc-shell { box-shadow: none; }
}
