/* HealthyWin - public site
   Fluid throughout: type scales with the viewport, grids reflow on their own
   via auto-fit, and every image is given an aspect-ratio box so nothing jumps
   while it loads.

   Theming: --brand / --brand-deep come from the database (Admin > Settings) and
   are injected into <head>. Everything else is a semantic token defined three
   times - once for light, once for the system dark preference, once for an
   explicit data-theme="dark" - so the toggle wins in both directions. */

:root {
  /* Brand colours arrive from Settings; these are the fallbacks. */
  --brand: #7cb342;
  --brand-deep: #33691e;

  --accent: var(--brand);
  --accent-dark: var(--brand-deep);   /* links, primary button ground */
  --btn-fg: #ffffff;

  --ink: #1c2321;
  --ink-soft: #5a6763;
  --ink-faint: #8b9793;

  --paper: #ffffff;                   /* page ground */
  --surface: #ffffff;                 /* cards, inputs */
  --paper-tint: #f4f8f1;              /* tinted bands */
  --tint-2: #e8f0e4;
  --line: #e3e9e2;

  --head-bg: rgba(255, 255, 255, .93);
  --foot-bg: #1c2321;
  --foot-ink: #cfd8d4;
  --foot-soft: #9aa8a3;
  --foot-line: #333d39;

  --ok-bg: #edf7e8; --ok-line: #c5e2b4; --ok-ink: #33691e;
  --err-bg: #fdecea; --err-line: #f5c6c2; --err-ink: #a52216;
  --warn-bg: #fff8e6; --warn-line: #f0dca6; --warn-ink: #6b5312;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 35, 33, .05), 0 8px 24px rgba(28, 35, 33, .06);
  --shadow-lift: 0 2px 6px rgba(28, 35, 33, .07), 0 18px 40px rgba(28, 35, 33, .12);

  /* Fluid rhythm: everything below scales between a 360px and a 1400px viewport. */
  --step--1: clamp(.82rem, .79rem + .13vw, .9rem);
  --step-0:  clamp(1rem, .95rem + .22vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + .42vw, 1.5rem);
  --step-2:  clamp(1.45rem, 1.26rem + .82vw, 2.05rem);
  --step-3:  clamp(1.75rem, 1.4rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.1rem, 1.5rem + 2.6vw, 4rem);

  --gap: clamp(1rem, .7rem + 1.4vw, 2rem);
  --band-pad: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);
  --wrap: 1180px;

  color-scheme: light;
}

/* Dark, as the reader's system preference - unless they have chosen light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: var(--brand);
    --accent-dark: #a8d977;
    --btn-fg: #0f1613;

    --ink: #e7ede9;
    --ink-soft: #a6b3ae;
    --ink-faint: #7c8984;

    --paper: #121614;
    --surface: #1a201d;
    --paper-tint: #171d1a;
    --tint-2: #1f2723;
    --line: #2a322e;

    --head-bg: rgba(18, 22, 20, .92);
    --foot-bg: #0d100f;
    --foot-ink: #b9c4bf;
    --foot-soft: #7f8c87;
    --foot-line: #262e2a;

    --ok-bg: #1b2a17; --ok-line: #2f4a26; --ok-ink: #b7e29a;
    --err-bg: #2c1613; --err-line: #4d2620; --err-ink: #f0a79e;
    --warn-bg: #2a2314; --warn-line: #4a3f21; --warn-ink: #e8ce8a;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .34);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .5);

    color-scheme: dark;
  }
}

/* Dark, chosen explicitly - wins regardless of the system setting. */
:root[data-theme="dark"] {
  --accent: var(--brand);
  --accent-dark: #a8d977;
  --btn-fg: #0f1613;

  --ink: #e7ede9;
  --ink-soft: #a6b3ae;
  --ink-faint: #7c8984;

  --paper: #121614;
  --surface: #1a201d;
  --paper-tint: #171d1a;
  --tint-2: #1f2723;
  --line: #2a322e;

  --head-bg: rgba(18, 22, 20, .92);
  --foot-bg: #0d100f;
  --foot-ink: #b9c4bf;
  --foot-soft: #7f8c87;
  --foot-line: #262e2a;

  --ok-bg: #1b2a17; --ok-line: #2f4a26; --ok-ink: #b7e29a;
  --err-bg: #2c1613; --err-line: #4d2620; --err-ink: #f0a79e;
  --warn-bg: #2a2314; --warn-line: #4a3f21; --warn-ink: #e8ce8a;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .34);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
small { font-size: var(--step--1); }

img, svg, video { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-dark); color: var(--btn-fg); padding: .7rem 1.2rem;
}
.skip:focus { left: 0; }

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

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2rem, 720px); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ------------------------------- images -------------------------------- */

.img { width: 100%; height: auto; display: block; background-color: var(--paper-tint); }
.img.cover { width: 100%; height: 100%; object-fit: cover; }
.img.contain { object-fit: contain; padding: 8%; background: var(--surface); }

.img--empty {
  display: grid; place-items: center; width: 100%;
  background: linear-gradient(135deg, var(--paper-tint), var(--tint-2));
  color: var(--ink-faint); font-size: var(--step--1); text-align: center;
  padding: 1rem; min-height: 120px;
}
.img--empty span { max-width: 22ch; }

.banner {
  border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 var(--gap);
  box-shadow: var(--shadow); background: var(--paper-tint);
}
.banner figcaption {
  padding: .7rem 1rem; font-size: var(--step--1); color: var(--ink-soft);
  background: var(--paper-tint);
}

/* Photographs are a shade heavy against a dark page; take the glare off. */
:root[data-theme="dark"] .banner .img,
:root[data-theme="dark"] .card-media .img,
:root[data-theme="dark"] .figure-inline .img { filter: brightness(.88) contrast(1.02); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .banner .img,
  :root:not([data-theme="light"]) .card-media .img,
  :root:not([data-theme="light"]) .figure-inline .img { filter: brightness(.88) contrast(1.02); }
}

/* ------------------------------- header -------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* One row on a wide screen: the brand and the tools keep their size and the
   nav absorbs whatever is left, shrinking rather than wrapping the row. */
.head-row {
  display: flex; align-items: center; gap: var(--gap);
  min-height: 72px; padding-block: .6rem; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-logo { width: clamp(130px, 16vw, 172px); height: auto; }
.brand-text { font-size: var(--step-1); font-weight: 800; color: var(--accent-dark); }

/* The logo is dark artwork on transparency; give it a light plate in dark mode. */
:root[data-theme="dark"] .site-head .brand-logo {
  background: #fff; border-radius: 10px; padding: 4px 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-head .brand-logo {
    background: #fff; border-radius: 10px; padding: 4px 8px;
  }
}

.nav-toggle {
  display: none; width: 44px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 10px 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* Last in the row. On a wide screen the nav takes the slack before it; on a
   narrow one the nav is hidden and this is pushed right on its own. */
.head-tools { display: flex; align-items: center; gap: .5rem; order: 3; }

.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; color: var(--ink); font-size: 1.05rem; line-height: 1;
  flex: 0 0 auto;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-light { display: none; }
}

.site-nav {
  flex: 1 1 auto; min-width: 0; order: 2;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(.6rem, 1.6vw, var(--gap)); flex-wrap: wrap;
}
.site-nav ul { display: flex; gap: clamp(.5rem, 1.2vw, 1.4rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: var(--step--1);
  font-weight: 600; white-space: nowrap; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }

.search { display: flex; align-items: center; }
.search input {
  border: 1px solid var(--line); border-radius: 999px 0 0 999px; border-right: 0;
  padding: .5rem .9rem; font: inherit; font-size: var(--step--1);
  width: clamp(120px, 16vw, 200px); background: var(--paper-tint); color: var(--ink);
}
.search button {
  border: 1px solid var(--line); border-left: 0; border-radius: 0 999px 999px 0;
  background: var(--paper-tint); color: var(--ink); padding: .5rem .9rem; cursor: pointer;
  font-size: 1rem; line-height: 1.4;
}
.search button:hover { background: var(--accent); color: var(--btn-fg); border-color: var(--accent); }
.search--big { margin-top: 1.2rem; gap: .6rem; }
.search--big input { border-radius: 999px; border-right: 1px solid var(--line); width: min(100%, 420px); padding: .8rem 1.2rem; font-size: var(--step-0); }

@media (max-width: 880px) {
  .head-row { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .head-tools { margin-left: auto; }
  .site-nav { display: none; width: 100%; order: 4; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 0; }
  .search input { width: 100%; }
}

/* -------------------------------- flash -------------------------------- */

.flash {
  margin: 1rem 0 0; padding: .85rem 1.1rem; border-radius: var(--radius);
  font-size: var(--step--1); border: 1px solid;
}
.flash--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.flash--err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }

/* --------------------------------- hero -------------------------------- */

.hero {
  background: linear-gradient(165deg, var(--paper-tint) 0%, var(--paper) 62%);
  border-bottom: 1px solid var(--line);
  padding-block: var(--band-pad);
}
.hero-grid {
  display: grid; gap: var(--gap); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: var(--step--1);
  font-weight: 700; color: var(--accent-dark); margin-bottom: .6rem;
}
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-media { display: grid; }
.hero-media .banner, .hero-media .img { border-radius: var(--radius-lg); overflow: hidden; }
.hero-logo { display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.hero-logo .img { max-width: 420px; background: transparent; }
:root[data-theme="dark"] .hero-logo .img { background: #fff; border-radius: 16px; padding: 1rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-logo .img { background: #fff; border-radius: 16px; padding: 1rem; }
}

/* ------------------------------- buttons ------------------------------- */

.btn {
  display: inline-block; padding: .7rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: var(--step--1); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--accent-dark); color: var(--btn-fg); }
.btn--primary:hover { background: var(--accent); color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* -------------------------------- bands -------------------------------- */

.band { padding-block: var(--band-pad); }
.band--tint { background: var(--paper-tint); }
.band-title { font-size: var(--step-2); margin-bottom: .3em; }
.band-sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: 2rem; font-size: var(--step-0); }
.band-more { margin-top: 2rem; }

.page-head { padding-block: clamp(1.8rem, 1rem + 3vw, 3.5rem) clamp(1rem, .6rem + 2vw, 2rem); }
.crumbs { font-size: var(--step--1); color: var(--ink-faint); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.crumbs span { margin-inline: .4rem; }

/* -------------------------------- grids -------------------------------- */
/* auto-fit + minmax: the column count is decided by available width, so these
   need no breakpoints of their own. */

.grid { display: grid; gap: var(--gap); }
.grid--sections { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--chips { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.sec-card {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  border-top: 4px solid var(--card-accent, var(--accent));
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.sec-media { background: var(--paper-tint); overflow: hidden; }
.sec-media .img { transition: transform .4s ease; }
.sec-card:hover .sec-media .img { transform: scale(1.04); }
.sec-body { padding: clamp(1.1rem, 2vw, 1.6rem); }
.sec-icon { font-size: 1.7rem; line-height: 1; display: block; margin-bottom: .5rem; }
.sec-card h3 { margin-bottom: .35em; color: var(--ink); }
.sec-card p { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: .8em; }
.sec-meta { font-size: var(--step--1); color: var(--ink-faint); font-weight: 600; }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-media { display: block; background: var(--paper-tint); overflow: hidden; }
.card-media .img { transition: transform .4s ease; }
.card:hover .card-media .img { transform: scale(1.04); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: var(--step-1); margin-bottom: .4em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-dark); }
.card-body p { color: var(--ink-soft); font-size: var(--step--1); }
.card-body .meta { margin-top: auto; margin-bottom: 0; color: var(--ink-faint); font-size: var(--step--1); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent-dark); background: var(--paper-tint);
  padding: .25rem .6rem; border-radius: 999px; text-decoration: none; margin-bottom: .7rem;
  align-self: flex-start;
}
.tag:hover { background: var(--accent); color: var(--btn-fg); }
.price { font-weight: 700; font-size: var(--step-0); color: var(--ink); margin-top: auto; margin-bottom: 0; }
.price s { color: var(--ink-faint); font-weight: 400; margin-left: .4rem; }

.chip {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.chip-icon { font-size: 1.5rem; line-height: 1.2; flex: 0 0 auto; }
.chip-thumb { flex: 0 0 84px; width: 84px; border-radius: 10px; overflow: hidden; background: var(--paper-tint); }
.chip strong { display: block; font-size: var(--step-0); }
.chip small { display: block; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; margin-top: .2rem; }
.chip-count { display: block; font-style: normal; font-size: .75rem; color: var(--accent-dark); font-weight: 700; margin-top: .4rem; }
.chip--sm { padding: .8rem 1rem; }

/* -------------------------------- prose -------------------------------- */

.prose { font-size: clamp(1.02rem, .97rem + .25vw, 1.18rem); line-height: 1.75; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: .4em 0 .4em 1.4em;
  border-left: 4px solid var(--accent); color: var(--ink-soft); font-style: italic;
}
.prose strong { color: var(--ink); }

/* An image set into the body of an article. */
.figure-inline {
  margin: 2em 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-tint); box-shadow: var(--shadow);
}
.figure-inline figcaption {
  padding: .7rem 1.1rem; font-size: var(--step--1); color: var(--ink-soft);
  background: var(--paper-tint); margin: 0;
}

.callout {
  margin: 2.5em 0 0; padding: 1.3rem 1.5rem;
  border-radius: var(--radius); border: 1px solid;
  font-size: var(--step--1); line-height: 1.65;
}
.callout h2 { font-size: var(--step-0); margin: 0 0 .5em; }
.callout p { margin: 0; }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }

/* Pull-quote: one idea from the piece, given room to breathe. Written by
   editors as <blockquote class="perspective">, so it has to out-rank the
   ordinary .prose blockquote rule above. */
.prose blockquote.perspective, .perspective {
  margin: 2.2em 0; padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 5px solid var(--accent);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  line-height: 1.45; font-weight: 600; font-style: normal;
  color: var(--ink); letter-spacing: -.01em;
}
.prose blockquote.perspective p, .perspective p { margin: 0; }

/* -------------------------------- forms -------------------------------- */

.form { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.field-row { display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--step-0); padding: .65rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; }

/* ---------------------------- affiliate boxes --------------------------- */
/* Deliberately distinct from editorial: a tinted panel, a marked border and a
   visible disclosure, so a reader can tell at a glance what is an article and
   what is a listing. */

.buy {
  display: grid; gap: 1.1rem; align-items: start;
  grid-template-columns: minmax(96px, 150px) 1fr;
  background: var(--paper-tint);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.buy-media { border-radius: 10px; overflow: hidden; background: var(--surface); }
.buy-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--btn-fg); background: var(--accent-dark);
  padding: .18rem .55rem; border-radius: 999px; margin-bottom: .5rem;
}
.buy-brand {
  display: block; font-size: var(--step--1); color: var(--ink-faint);
  font-weight: 600; margin-bottom: .1rem;
}
.buy-title { font-size: var(--step-1); margin: 0 0 .4em; }
.buy-why { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: .9em; }
.buy-cta { text-decoration: none; }
.buy-disclosure {
  margin: .85rem 0 0; font-size: .76rem; line-height: 1.5; color: var(--ink-faint);
}
.buy-disclosure a { color: var(--ink-soft); }

/* Set into the body of an article, where it interrupts the reading. */
.buy--inline { margin: 2.2em 0; }
.prose .buy--inline { font-size: 1rem; }

@media (max-width: 520px) {
  .buy { grid-template-columns: 1fr; }
  .buy-media { max-width: 160px; }
}

.grid--buys { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.buy-strip .buy { background: var(--surface); }
.buy-strip-foot { margin: 1.6rem 0 0; font-size: var(--step--1); }
.buy-strip-foot a { color: var(--ink-soft); }

/* ------------------------------- credits ------------------------------- */

.credit-list {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.credit-list li {
  display: flex; gap: .9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .9rem;
}
.credit-thumb { flex: 0 0 60px; width: 60px; border-radius: 8px; overflow: hidden; background: var(--paper-tint); }
.credit-text strong { display: block; font-size: var(--step--1); line-height: 1.35; }
.credit-text small { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: .2rem; }

/* -------------------------------- footer ------------------------------- */

.site-foot { background: var(--foot-bg); color: var(--foot-ink); padding-block: var(--band-pad) 2rem; }
.foot-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.foot-grid h3 { font-size: var(--step-0); color: #fff; margin-bottom: .8em; }
.foot-grid a { color: var(--foot-ink); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand .brand-logo { width: 160px; background: #fff; border-radius: 10px; padding: .5rem; }
.foot-brand p { font-size: var(--step--1); margin-top: 1rem; color: var(--foot-soft); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .5rem; font-size: var(--step--1); }
.social { display: flex; gap: 1rem; margin-top: 1rem; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--foot-line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.foot-base p { margin: 0; font-size: var(--step--1); color: var(--foot-soft); }
.foot-base a { color: var(--foot-ink); }
