﻿/* === White Info Sites — design tokens =================================
 * Импортируется в styles.css каждого сайта первой строкой.
 * Каждый сайт переопределяет --vertical-class у :root для выбора палитры.
 *
 * Использование в site styles.css:
 *   @import "./design-tokens.css";
 *   :root { ... font-family и др. свои переменные ... }
 */

/* ---- Parasites vertical (clean medical) ---- */
:root.vertical-parasites,
.vertical-parasites {
  --bg: #FAFAF7;
  --fg: #1A2E1A;
  --accent: #2D7D3E;
  --accent-hover: #246330;
  --muted: #6B7268;
  --border: #E5E5DC;
  --card-bg: #FFFFFF;
  --code-bg: #F0EFE8;
  --link: #2D7D3E;
  --link-hover: #1A4D24;
}

/* ---- Weight vertical (energetic lifestyle) ----
 * Sites 06, 07 — coral; 08 — teal; 09, 10 — coral (vary by site override).
 */
:root.vertical-weight,
.vertical-weight {
  --bg: #FFFFFF;
  --fg: #1F2937;
  --accent: #F97316;
  --accent-hover: #C2410C;
  --muted: #6B7280;
  --border: #F3F4F6;
  --card-bg: #FFFFFF;
  --code-bg: #F9FAFB;
  --link: #F97316;
  --link-hover: #C2410C;
}
:root.vertical-weight.teal,
.vertical-weight.teal {
  --accent: #14B8A6;
  --accent-hover: #0F766E;
  --link: #14B8A6;
  --link-hover: #0F766E;
}

/* ---- Men's health vertical (serious, trustworthy) ----
 * Sites 11, 13 — deep blue; 12, 14, 15 — slate (vary).
 */
:root.vertical-mens,
.vertical-mens {
  --bg: #FFFFFF;
  --fg: #0F172A;
  --accent: #1E40AF;
  --accent-hover: #1E3A8A;
  --muted: #64748B;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;
  --code-bg: #F1F5F9;
  --link: #1E40AF;
  --link-hover: #1E3A8A;
}
:root.vertical-mens.slate,
.vertical-mens.slate {
  --accent: #475569;
  --accent-hover: #334155;
  --link: #475569;
  --link-hover: #334155;
}

/* ---- Universal base (Sprint 3: premium type/space/shadow scale) ---- */
:root {
  --fs-base: 16.5px;
  /* Modular scale ~1.25, fluid via clamp */
  --fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  --fs-h2: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  --fs-h3: clamp(1.18rem, 1.05rem + .4vw, 1.4rem);
  --fs-h4: 1.05rem;
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  --fs-small: .88rem;
  --fs-mini: .78rem;
  --lh-body: 1.7;
  --lh-reading: 1.78;
  --lh-heading: 1.18;
  --lh-display: 1.08;
  --ls-tight: -.012em;
  --ls-loose: .06em;
  --measure: 68ch;
  --measure-narrow: 60ch;
  --measure-wide: 78ch;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.6rem;
  --space-6: 3.4rem;
  --space-7: 4.2rem;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  /* Layered modern shadow: small immediate + soft ambient */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.045);
  --shadow-md: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px -8px rgba(15,23,42,.08);
  --shadow-lg: 0 1px 2px rgba(15,23,42,.05), 0 14px 36px -12px rgba(15,23,42,.14);
  --shadow-hover: 0 2px 4px rgba(15,23,42,.06), 0 18px 44px -14px rgba(15,23,42,.18);
  /* Wider container caps per family pick these (see family CSSes) */
  --wrap-media: 1280px;
  --wrap-longread: 800px;
  --wrap-longread-breakout: 1080px;
  --wrap-ref: 1320px;
  --wrap-tool: 1100px;
  --wrap-ed: 1240px;
  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-base: 240ms cubic-bezier(.4,0,.2,1);
  --t-slow: 360ms cubic-bezier(.4,0,.2,1);
}
::selection { background: color-mix(in srgb, var(--accent) 35%, #fff); color: var(--fg); }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
}
h1, h2, h3, h4 { line-height: var(--lh-heading); color: var(--fg); margin-top: 1.5em; margin-bottom: 0.5em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p, ul, ol, blockquote { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.5em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.92em; }
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 1em;
  color: var(--muted);
  background: var(--code-bg);
  margin-left: 0;
}

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  padding: var(--space-3) 0;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
header.site .brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
header.site nav { display: flex; gap: var(--space-2); flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
header.site nav a:hover { color: var(--accent); }

main.content { padding: var(--space-4) 0; }
main.content article { max-width: var(--measure); }
main.content article h1 { margin-top: 0; }

footer.site {
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
  background: var(--code-bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site nav { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-2); }
footer.site nav a { color: var(--muted); text-decoration: none; }
footer.site nav a:hover { color: var(--accent); }
footer.site .disclaimer { font-size: 0.85rem; color: var(--muted); max-width: 70ch; }
footer.site .copyright { margin-top: var(--space-2); font-size: 0.85rem; }

/* ---- Article list (homepage) ---- */
.article-list { list-style: none; padding: 0; }
.article-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.article-list li:last-child { border-bottom: 0; }
.article-list a {
  text-decoration: none; color: var(--fg); font-weight: 600; font-size: 1.1rem;
}
.article-list a:hover { color: var(--accent); }
.article-list .meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.2em; }

/* ---- Form ---- */
.subscribe-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  max-width: 30rem;
  margin: var(--space-4) 0;
}
.subscribe-form label { display: block; margin-bottom: 0.4em; font-weight: 500; }
.subscribe-form input[type="email"] {
  width: 100%;
  padding: 0.6em 0.8em;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
}
.subscribe-form input[type="email"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.subscribe-form button {
  margin-top: var(--space-2);
  padding: 0.7em 1.4em;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.subscribe-form button:hover { background: var(--accent-hover); }
.subscribe-form .form-note { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-2); }
.subscribe-form label.checkbox { display: flex; gap: 0.5em; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: var(--space-2); }

/* ---- Calculator ---- */
.calc-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin: var(--space-3) 0;
  max-width: 36rem;
}
.calc-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.calc-form label { display: block; font-weight: 500; margin-bottom: 0.3em; }
.calc-form input, .calc-form select {
  width: 100%;
  padding: 0.5em 0.7em;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
}
.calc-form .btn-row { margin-top: var(--space-3); }
.calc-form button {
  padding: 0.7em 1.4em;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.calc-form button:hover { background: var(--accent-hover); }
.calc-result {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: var(--code-bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.calc-result h3 { margin-top: 0; }
.calc-disclaimer { color: var(--muted); font-size: 0.9rem; margin-top: var(--space-3); }

/* ---- Disclaimer block ---- */
.disclaimer-block {
  background: var(--code-bg);
  border-left: 4px solid var(--muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
  margin: var(--space-3) 0;
}

/* ---- Sources list ---- */
.sources {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.sources h3 { font-size: 1rem; color: var(--muted); }
.sources ul { padding-left: 1.2em; }

/* ---- Reference site (sidebar nav) ---- */
.ref-layout { display: grid; grid-template-columns: 14rem 1fr; gap: var(--space-4); }
.ref-layout aside.toc {
  border-right: 1px solid var(--border);
  padding-right: var(--space-3);
  font-size: 0.95rem;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: var(--space-3);
}
.ref-layout aside.toc h2 { font-size: 1rem; margin-top: 0; color: var(--muted); }
.ref-layout aside.toc ul { list-style: none; padding: 0; }
.ref-layout aside.toc li { padding: 0.2em 0; }
.ref-layout aside.toc a { color: var(--fg); text-decoration: none; }
.ref-layout aside.toc a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .ref-layout { grid-template-columns: 1fr; }
  .ref-layout aside.toc { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: var(--space-2); position: static; max-height: none; }
}

/* ---- Site-specific overrides (variations within vertical) ---- */
:root.layout-serif { font-family: Georgia, 'Times New Roman', serif; }
:root.layout-serif h1, :root.layout-serif h2, :root.layout-serif h3 { font-family: Georgia, serif; }
:root.layout-narrow main.content { max-width: 58ch; margin: 0 auto; }
:root.layout-wide main.content article { max-width: 80ch; }


/* ===== Shared portal components ===== */
/* ═════════════════════════════════════════════════════════════════
 * Shared rich-portal components. Imported AFTER design-tokens.css
 * and BEFORE family-specific CSS in every site's styles.css.
 * All families consume these utilities — but families ALSO override
 * structural pieces (grids, header, footer) in their own files.
 * ═════════════════════════════════════════════════════════════════ */

/* ── Tag pills (small accent chip) ────────────────────────────── */
.tag-pill {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.tag-pill--neutral {
  background: var(--code-bg);
  color: var(--muted);
  border-color: var(--border);
}

/* ── Tag cloud (varying sizes) ────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.tag-cloud li { margin: 0; }
.tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--fg);
  text-decoration: none;
  font-size: .9rem;
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.tag-cloud a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-cloud a.size-lg { font-size: 1.05rem; font-weight: 600; }
.tag-cloud a.size-md { font-size: .95rem; }
.tag-cloud a.size-sm { font-size: .82rem; }

/* ── Breadcrumbs ──────────────────────────────────────────────── */
.crumbs {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .crumb-sep { margin: 0 .35em; opacity: .6; }
.crumbs .crumb-cur { color: var(--fg); }

/* ── Callout boxes (Sprint 3 — premium with header bar + icon) ── */
.callout {
  position: relative;
  background: var(--code-bg);
  padding: 1.1rem 1.3rem 1.1rem 3.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.3rem;
  height: 1.3rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.callout-info {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  background: #f5f5f5;
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}
.callout-info::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D7D3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}
.callout-warn {
  border-color: #fcd34d;
  background: #fffbeb;
}
.callout-warn::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}
/* Doctor callout — authoritative red header bar + soft body */
.callout-doctor {
  border: 1px solid #fecaca;
  border-left: 0;
  background: #fff8f8;
  padding: 0;
  overflow: hidden;
}
.callout-doctor::before { content: none; }
.callout-doctor > h2,
.callout-doctor > h3 {
  margin: 0;
  padding: .8rem 1.4rem .8rem 3.2rem;
  background: #b91c1c;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .005em;
  position: relative;
}
.callout-doctor > h2::before,
.callout-doctor > h3::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/><polyline points='22 4 12 14.01 9 11.01'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.callout-doctor > p,
.callout-doctor > ul,
.callout-doctor > ol { margin: 0; padding: 0 1.4rem; }
.callout-doctor > p:first-of-type { padding-top: 1rem; }
.callout-doctor > :last-child { padding-bottom: 1rem; }
.callout-doctor a { color: #b91c1c; font-weight: 600; }

.callout-definition {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: #fff;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  margin: 1.4rem 0;
  box-shadow: var(--shadow-sm);
}
.callout-definition-label {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .4rem;
}

/* "Кратко" / standfirst summary box on term and article pages */
.summary-box {
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 1.2rem 0 1.6rem;
  font-size: 1.02rem;
  color: var(--fg);
  line-height: 1.6;
}
.summary-box__label {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .4rem;
}

/* Standfirst (lead paragraph) on reading families */
.standfirst {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

/* ── Pull-quote ───────────────────────────────────────────────── */
.pull-quote {
  border-left: 4px solid var(--accent);
  padding: .8rem 1.4rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--fg);
  background: transparent;
}

/* ── Generic cover (16:9 / square variants set per-family) ────── */
.cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}
.cover img, .cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover--square { aspect-ratio: 1 / 1; }

/* ── Article card (Sprint 3 — layered shadow, cover zoom on hover) ─ */
.art-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.art-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow-hover);
}
.art-card .cover { border-radius: 0; overflow: hidden; }
.art-card .cover img, .art-card .cover svg {
  transition: transform var(--t-slow);
}
.art-card:hover .cover img, .art-card:hover .cover svg {
  transform: scale(1.04);
}
.art-card__body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.art-card__title { font-size: 1.12rem; line-height: 1.35; font-weight: 700; margin: 0; color: var(--fg); letter-spacing: var(--ls-tight); }
.art-card__title a { color: inherit; text-decoration: none; }
.art-card__excerpt { font-size: .94rem; color: var(--muted); margin: 0; line-height: 1.55; flex: 1; }
.art-card__meta { font-size: .82rem; color: var(--muted); display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.art-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; opacity: .6; }

/* ── Related-cards block ──────────────────────────────────────── */
.related-block {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.related-block h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  text-decoration: none;
  color: var(--fg);
  transition: border-color .15s, background .15s;
}
.related-card:hover { border-color: var(--accent); background: var(--code-bg); }
.related-card__title { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.related-card__meta { font-size: .78rem; color: var(--muted); margin-top: .3em; }

/* ── Sidebar widgets ──────────────────────────────────────────── */
.widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.widget h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.widget ol, .widget ul { list-style: none; padding: 0; margin: 0; }
.widget--popular ol { counter-reset: pop; }
.widget--popular li {
  counter-increment: pop;
  padding: .45em 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .7em;
  align-items: flex-start;
}
.widget--popular li:last-child { border-bottom: 0; }
.widget--popular li::before {
  content: counter(pop);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1.1;
  min-width: 1.4em;
}
.widget--popular a { color: var(--fg); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.widget--popular a:hover { color: var(--accent); }
.widget--about p { margin: 0; font-size: .92rem; color: var(--muted); }
.widget--about a { color: var(--accent); }
.widget--mini-subscribe { background: color-mix(in srgb, var(--accent) 5%, var(--card-bg)); }

/* ── Trust badges row ─────────────────────────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg);
}
.trust-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ── Accordion (CSS details/summary) ──────────────────────────── */
.acc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); }
.acc + .acc { margin-top: 8px; }
.acc summary {
  cursor: pointer;
  padding: .85rem 1.1rem;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform .2s;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 1.1rem 1rem; color: var(--muted); font-size: .94rem; line-height: 1.6; }

/* ── Metric / stat readout ────────────────────────────────────── */
.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.metric-card__label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin: 0 0 .4rem; }
.metric-card__value { font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--fg); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-card__unit { font-size: 1rem; color: var(--muted); margin-left: .25em; font-weight: 500; }
.metric-card__sub { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.band {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: .8rem;
}
.band-low { background: #ecfdf5; color: #047857; }
.band-mid { background: #fffbeb; color: #b45309; }
.band-high { background: #fef2f2; color: #b91c1c; }

/* ── Footer multi-column grid (universal scaffold) ────────────── */
.fc-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
}
.fc-foot h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 .7rem;
}
.fc-foot ul { list-style: none; padding: 0; margin: 0; }
.fc-foot li { padding: 2px 0; }
.fc-foot a { color: var(--fg); text-decoration: none; font-size: .92rem; }
.fc-foot a:hover { color: var(--accent); }
.fc-foot__bottom {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--muted);
}

/* ── Hero (universal scaffold; families restyle) ──────────────── */
.hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.hero .cover { aspect-ratio: 4 / 3; border-radius: 0; }
.hero__body { padding: 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.hero__eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.hero__title { font-size: 1.7rem; line-height: 1.2; margin: 0; }
.hero__title a { color: var(--fg); text-decoration: none; }
.hero__lead { color: var(--muted); margin: 0; }
.hero__meta { font-size: .85rem; color: var(--muted); margin-top: .4rem; display: flex; gap: .4em; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero .cover { aspect-ratio: 16 / 9; } }

/* ── Section heading divider ──────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.4rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-head a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.section-head a:hover { color: var(--accent); }

/* ── Helpers ──────────────────────────────────────────────────── */
.muted-text { color: var(--muted); }
.flow > * + * { margin-top: 1em; }
.flow-lg > * + * { margin-top: 1.4em; }
.divider-dashed { border: 0; border-top: 1px dashed var(--border); margin: 2rem 0; }

/* ── Search results dropdown (used by search.js on families A & C) ── */
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  display: none;
}
.search-results.show { display: block; }
.search-results__item {
  display: block;
  padding: 8px 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.search-results__item:last-child { border-bottom: 0; }
.search-results__item:hover { background: var(--code-bg); color: var(--accent); }
.search-results__empty {
  padding: 12px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.media-search { position: relative; }
.ref_topbar__search { position: relative; }
.ref_searchhero__box { position: relative; }

/* ── Mini-subscribe form (compact widget variant) ─────────────── */
.widget .subscribe-form {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
}
.widget .subscribe-form label.checkbox { font-size: .8rem; }
.widget .subscribe-form input[type="email"] { padding: .45em .7em; font-size: .92rem; }
.widget .subscribe-form button { padding: .55em 1em; font-size: .92rem; }
.widget .subscribe-form .form-note { font-size: .78rem; margin-top: .5rem; }

/* ═════════════════════════════════════════════════════════════════
 * Sprint 3 — additional premium components
 * ═════════════════════════════════════════════════════════════════ */

/* ── Form: polished inputs, focus, success/error states ─────────── */
.subscribe-form { transition: opacity var(--t-base); }
.subscribe-form .form-field { margin-bottom: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.subscribe-form .form-field label { font-weight: 600; font-size: .92rem; color: var(--fg); }
.subscribe-form input[type="text"],
.subscribe-form input[type="email"],
.subscribe-form input[type="url"],
.subscribe-form textarea {
  width: 100%;
  padding: .65em .9em;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.subscribe-form input:focus,
.subscribe-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.subscribe-form textarea { resize: vertical; min-height: 5em; }
.subscribe-form input[aria-invalid="true"],
.subscribe-form textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}
.form-error {
  color: #b91c1c;
  font-size: .85rem;
  margin-top: .3rem;
}
.form-success {
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--fg);
  font-weight: 600;
  transition: opacity var(--t-base);
}
.form-success::before {
  content: "✓";
  display: inline-block;
  width: 1.3em; height: 1.3em;
  line-height: 1.3em;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin-right: .55em;
  font-weight: 800;
}
.subscribe-form .form-checkbox-wrap {
  display: flex;
  gap: .55em;
  align-items: flex-start;
  margin: .6rem 0 1rem;
  font-size: .9rem;
  color: var(--muted);
}
.subscribe-form .form-checkbox-wrap input[type="checkbox"] {
  margin-top: .25em;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* ── Primary button system (override family-specific where needed) ── */
.subscribe-form button[type="submit"] {
  padding: .75em 1.6em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.subscribe-form button[type="submit"]:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}
.subscribe-form button[type="submit"]:active { transform: translateY(1px); }

/* ── Reading progress bar (family B sticky) ─────────────────────── */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ── Inline gauge / meter (calculator result) ───────────────────── */
.gauge {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 8px;
  background: var(--code-bg);
  border-radius: 999px;
  overflow: hidden;
  margin: .8rem 0;
}
.gauge__fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a 0%, #f59e0b 60%, #dc2626 100%);
  border-radius: 999px;
}
.gauge__marker {
  position: absolute;
  top: -3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* ── Featured strip (family A) ──────────────────────────────────── */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 1.6rem 0 2rem;
}
@media (max-width: 820px) { .featured-strip { grid-template-columns: 1fr; } }

/* ── Editor's pick band (family E) ──────────────────────────────── */
.editors-pick {
  margin: 3rem 0 2rem;
  padding: 1.6rem 1.8rem;
  background: color-mix(in srgb, var(--accent) 4%, #fff);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}
.editors-pick__label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
  display: block;
}
.editors-pick__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 820px) { .editors-pick__grid { grid-template-columns: 1fr; } }

/* ── Anchor link icons (hover-visible) ──────────────────────────── */
.article-anchor {
  opacity: 0;
  margin-left: .35em;
  font-size: .8em;
  color: var(--muted);
  text-decoration: none;
  transition: opacity var(--t-fast);
}
h2:hover .article-anchor, h3:hover .article-anchor { opacity: 1; }

/* ── In-article TOC ─────────────────────────────────────────────── */
.in-article-toc {
  background: var(--code-bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 1.4rem 0 1.8rem;
  font-size: .94rem;
}
.in-article-toc__head {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .55rem;
}
.in-article-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.in-article-toc li {
  padding: 3px 0;
  counter-increment: toc;
  position: relative;
  padding-left: 1.7em;
}
.in-article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 3px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.in-article-toc a { color: var(--fg); text-decoration: none; }
.in-article-toc a:hover { color: var(--accent); text-decoration: underline; }
.in-article-toc a.is-active { color: var(--accent); font-weight: 600; }

/* ── Article hero kicker + standfirst (universal) ───────────────── */
.article-kicker {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

/* ── Newsletter band in footer (family A dark) ──────────────────── */
.newsletter-band {
  background: color-mix(in srgb, var(--accent) 12%, #1a1a1a);
  padding: 2rem 2rem;
  border-radius: var(--radius-lg);
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: center;
}
@media (max-width: 760px) { .newsletter-band { grid-template-columns: 1fr; } }
.newsletter-band h3 { font-family: inherit; color: #fff; margin: 0 0 .4rem; font-size: 1.3rem; }
.newsletter-band p { color: #cfd1d3; margin: 0; font-size: .95rem; }
.newsletter-band .subscribe-form { background: transparent; border: 0; padding: 0; margin: 0; }
.newsletter-band .subscribe-form .form-checkbox-wrap span,
.newsletter-band .subscribe-form .form-checkbox-wrap a { color: #cfd1d3; font-size: .78rem; }
.newsletter-band .subscribe-form .form-note { color: #9a9c9e; font-size: .78rem; }

/* ── Subtle decorative section rule ─────────────────────────────── */
.deco-rule {
  border: 0;
  height: 24px;
  margin: 2.4rem 0;
  position: relative;
}
.deco-rule::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}
.deco-rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px var(--bg);
}

/* Article tables polished */
.article-body table,
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
article thead th {
  background: color-mix(in srgb, var(--accent) 10%, var(--code-bg));
  color: var(--fg);
  font-weight: 700;
  text-align: left;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
article tbody td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .94rem;
}
article tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent) 3%, #fff); }
article tbody tr:last-child td { border-bottom: 0; }


/* ===== Family b layout ===== */
/* ─── Family B — LONGREAD / MEDIUM ───────────────────────────────────
 * Editorial reading. Centered single column, generous whitespace,
 * drop-cap, pull-quotes that break out, floating TOC.
 * Lora (display) + Source Sans 3 (UI).
 * ─────────────────────────────────────────────────────────────────── */
body.longread-shell {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg);
  background: #fcfbf8;
  margin: 0;
}
body.longread-shell h1, body.longread-shell h2, body.longread-shell h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
}
body.longread-shell h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-tight); line-height: var(--lh-display); font-weight: 700; }
body.longread-shell h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-tight); margin-top: 2.4rem; line-height: 1.22; }
body.longread-shell h3 { font-size: var(--fs-h3); margin-top: 1.8rem; }

/* Header */
.longread-head { padding: 2.6rem 1rem 1.6rem; background: #fcfbf8; border-bottom: 1px solid var(--border); }
.longread-head__inner { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.longread-brand { font-family: 'Lora', Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; text-decoration: none; color: var(--fg); letter-spacing: -.015em; line-height: 1; }
.longread-tag { color: var(--muted); font-size: .92rem; margin: 0; text-transform: lowercase; letter-spacing: .02em; }
.longread-nav { display: flex; gap: 1.4rem; padding-top: .6rem; border-top: 1px solid var(--border); margin-top: .5rem; }
.longread-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.longread-nav a:hover { color: var(--accent); }

/* Main */
.longread-main { padding: var(--space-5) 1.4rem var(--space-6); }
.longread-main__col { max-width: var(--wrap-longread); margin: 0 auto; }
/* Breakout images and pull-quotes extend past the column */
.longread-article .breakout {
  width: calc(100% + 200px);
  margin-left: -100px;
  margin-right: -100px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 1100px) { .longread-article .breakout { width: 100%; margin-left: 0; margin-right: 0; } }
.longread-article .breakout .cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* Masthead */
.longread-masthead { padding: 2rem 0 3rem; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.longread-masthead h1 { margin: 0 0 .4rem; }
.longread-masthead .longread-mission { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0 auto; font-style: italic; font-family: 'Lora', Georgia, serif; }

/* Featured single article */
.longread-featured { padding: 1.6rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; }
@media (max-width: 720px) { .longread-featured { grid-template-columns: 1fr; } }
.longread-featured__eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.longread-featured h2 { margin: .5rem 0 .6rem; font-size: 1.65rem; }
.longread-featured h2 a { color: var(--fg); text-decoration: none; }
.longread-featured__lead { color: var(--muted); margin: 0 0 .4rem; }
.longread-featured__meta { font-size: .85rem; color: var(--muted); }

/* Feed: wide rows with cover thumb */
.longread-feed { list-style: none; padding: 0; margin: 0; }
.longread-feed > li { padding: 1.8rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 160px 1fr; gap: 1.4rem; }
.longread-feed > li:last-child { border-bottom: 0; }
@media (max-width: 600px) { .longread-feed > li { grid-template-columns: 1fr; } }
.longread-feed .cover { aspect-ratio: 1/1; }
.longread-feed h3 { font-size: 1.4rem; margin: 0 0 .4rem; }
.longread-feed h3 a { color: var(--fg); text-decoration: none; }
.longread-feed h3 a:hover { color: var(--accent); }
.longread-feed__lead { color: var(--muted); margin: 0 0 .4rem; line-height: 1.6; }
.longread-feed__meta { font-size: .85rem; color: var(--muted); }
.longread-feed__readtime { font-weight: 700; color: var(--fg); }

/* Inline chip row between sections */
.longread-chiprow { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.4rem 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); align-items: center; margin: 1.4rem 0; }
.longread-chiprow .label { font-family: 'Lora', serif; font-style: italic; color: var(--muted); margin-right: .5rem; }

/* Article page */
.longread-article { padding: 0; max-width: 720px; margin: 0 auto; position: relative; }
.longread-article .crumbs { font-style: italic; }
.longread-article h1 { margin: 1.2rem 0 .6rem; }
.longread-article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.longread-article p { font-size: 1.08rem; line-height: 1.8; }
.longread-article > p:first-of-type::first-letter,
.longread-article p.drop-cap::first-letter {
  font-family: 'Lora', Georgia, serif;
  font-size: 4.6em; line-height: .82;
  float: left; padding: .04em .14em 0 0;
  color: var(--accent); font-weight: 800;
}
.longread-article > .summary-box + p:first-of-type::first-letter { font-size: 1em; float: none; padding: 0; color: inherit; font-weight: inherit; }
.longread-article a { color: var(--accent); }
.longread-article .pull-quote {
  margin: 2.4rem -100px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.45;
  border-left: 0;
  border: 0;
  padding: 1.4rem 0 1.4rem 3rem;
  text-align: left;
  background: transparent;
  color: var(--fg);
  position: relative;
}
.longread-article .pull-quote::before {
  content: "\201C";
  position: absolute;
  left: 0; top: -.3rem;
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  font-family: 'Lora', Georgia, serif;
}
@media (max-width: 1100px) { .longread-article .pull-quote { margin: 2.4rem 0; padding-left: 2.4rem; } }
@media (max-width: 820px) { .longread-article .pull-quote { margin: 2rem 0; } }

/* Floating TOC right of article (desktop only) */
.longread-toc {
  position: sticky; top: 1rem;
  margin-top: 0;
  font-size: .88rem;
  border-left: 2px solid var(--border);
  padding: 0 0 0 1rem;
}
.longread-toc h4 { margin: 0 0 .4rem; font-family: 'Source Sans 3', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.longread-toc ol { list-style: none; padding: 0; margin: 0; }
.longread-toc li { padding: 3px 0; }
.longread-toc a { color: var(--muted); text-decoration: none; }
.longread-toc a:hover { color: var(--accent); }

/* Article with TOC: two-col on desktop */
.longread-article-grid { display: grid; grid-template-columns: 1fr 200px; gap: 2rem; max-width: 1000px; margin: 0 auto; }
@media (max-width: 980px) { .longread-article-grid { grid-template-columns: 1fr; } .longread-toc { border-left: 0; padding: 1rem 0; border-top: 1px solid var(--border); } }

/* Author card */
.longread-author {
  background: #f5f3ee; border-radius: var(--radius); padding: 1.2rem 1.4rem;
  margin-top: 3rem;
  display: flex; gap: 1rem; align-items: center;
}
.longread-author__mark { width: 56px; height: 56px; background: var(--accent); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Lora', serif; font-weight: 700; font-size: 1.4rem; }
.longread-author__name { font-weight: 700; color: var(--fg); }
.longread-author__txt { color: var(--muted); font-size: .92rem; margin: 0; }

/* Footer */
.longread-bottom { margin-top: 4rem; padding: 2.2rem 1.2rem 1.4rem; border-top: 1px solid var(--border); background: #fff; }
.longread-bottom__inner { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 1rem; }
.longread-discl { color: var(--muted); font-size: .9rem; margin: 0; max-width: 56ch; }
.longread-foot-nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.longread-foot-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.longread-foot-nav a:hover { color: var(--accent); }
.longread-copy { color: var(--muted); font-size: .85rem; margin: 0; }


/* ===== Site 11 override ===== */
/* ════════════════════════════════════════════════════════════════════
 * Site 11 — Мужское здоровье (B, mens longread)
 * Identity: serious editorial men's mag — deep navy + warm sand +
 *           steel grey. Cormorant Garamond + Inter.
 *           Distinct from site 02 (off-white + emerald).
 * ════════════════════════════════════════════════════════════════════ */

body.site11 {
  --s11-bg:        #1a2333;
  --s11-bg-2:      #131a27;
  --s11-bg-3:      #232e41;
  --s11-paper:     #f5f0e6;
  --s11-paper-2:   #ebe3d2;
  --s11-ink:       #f8f4ec;
  --s11-ink-d:     #18202d;
  --s11-ink-d2:    #2a3447;
  --s11-muted:     #9aa3b3;
  --s11-line:      #2c3548;
  --s11-line-2:    #3c4659;
  --s11-sand:      #c69f5a;
  --s11-sand-2:    #a37f3d;
  --s11-steel:     #5b7b9a;
  --s11-rose:      #d97058;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--s11-bg);
  color: var(--s11-ink);
}

body.site11 .longread-head, body.site11 .longread-bottom:not(.s11-footer), body.site11 .read-progress { display: none; }
body.site11 .longread-main { padding: 0; }
body.site11 .longread-main__col { max-width: none; padding: 0; }

.s11-topbar { background: var(--s11-bg-2); border-bottom: 1px solid var(--s11-line); position: sticky; top: 0; z-index: 50; }
.s11-topbar__wrap { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; gap: 28px; }
.s11-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--s11-ink); }
.s11-brand__rule { display: inline-block; width: 28px; height: 2px; background: var(--s11-sand); }
.s11-brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.s11-brand__name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 1.4rem; letter-spacing: .005em; }
.s11-brand__sub { font-size: .72rem; color: var(--s11-muted); margin-top: 2px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.s11-topnav { display: flex; gap: 26px; margin-left: auto; }
.s11-topnav a { color: var(--s11-ink); text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; position: relative; padding: 4px 0; }
.s11-topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--s11-sand); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast); }
.s11-topnav a:hover { color: var(--s11-sand); }
.s11-topnav a:hover::after { transform: scaleX(1); }
.s11-btn { padding: 10px 22px; background: transparent; color: var(--s11-ink); text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--s11-sand); transition: background var(--t-fast), color var(--t-fast); }
.s11-btn:hover { background: var(--s11-sand); color: var(--s11-ink-d); }

.s11-mast { max-width: 920px; margin: 0 auto; padding: 96px 28px 56px; text-align: center; position: relative; }
.s11-mast__kicker { display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--s11-sand); padding: 5px 16px; border: 1px solid var(--s11-line-2); border-radius: 0; margin-bottom: 28px; }
.s11-mast h1 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem); line-height: .98; letter-spacing: -.018em; margin: 0 0 26px; color: var(--s11-ink); }
.s11-mast h1 em { font-style: italic; font-weight: 500; color: var(--s11-sand); }
.s11-mast__standfirst { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: clamp(1.22rem, 1.05rem + .5vw, 1.5rem); line-height: 1.4; color: var(--s11-ink); opacity: .9; max-width: 60ch; margin: 0 auto 28px; }
.s11-mast__meta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--s11-muted); padding-top: 18px; border-top: 1px solid var(--s11-line); }
.s11-mast__meta span + span::before { content: "·"; margin-right: 14px; color: var(--s11-line-2); }

.s11-featured { max-width: 1240px; margin: 48px auto 0; padding: 0 28px 64px; }
.s11-featured__inner { background: var(--s11-bg-2); border: 1px solid var(--s11-line); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .s11-featured__inner { grid-template-columns: 1fr; } }
.s11-featured__cover { aspect-ratio: 1/1; overflow: hidden; background: var(--s11-bg-3); }
@media (max-width: 900px) { .s11-featured__cover { aspect-ratio: 16/9; } }
.s11-featured__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.s11-featured__inner:hover .s11-featured__cover img { transform: scale(1.04); }
.s11-featured__body { padding: 56px 48px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
@media (max-width: 900px) { .s11-featured__body { padding: 36px 32px; } }
.s11-featured__eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--s11-sand); }
.s11-featured__title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); line-height: 1.04; margin: 4px 0 14px; color: var(--s11-ink); letter-spacing: -.012em; }
.s11-featured__title a { color: inherit; text-decoration: none; }
.s11-featured__title a:hover { color: var(--s11-sand); }
.s11-featured__lead { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.22rem; line-height: 1.4; color: var(--s11-ink); opacity: .85; margin: 0; }
.s11-featured__meta { color: var(--s11-muted); font-size: .82rem; margin-top: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.s11-featured__cta { margin-top: 18px; align-self: flex-start; }

.s11-topics { max-width: 1240px; margin: 0 auto; padding: 0 28px 56px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s11-topics > span { font-size: .76rem; font-weight: 600; color: var(--s11-muted); letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.s11-topics a { display: inline-block; padding: 6px 14px; background: transparent; color: var(--s11-ink); border: 1px solid var(--s11-line-2); font-size: .86rem; text-decoration: none; font-family: 'Cormorant Garamond', serif; font-style: italic; transition: background var(--t-fast), color var(--t-fast); }
.s11-topics a:hover { background: var(--s11-sand); color: var(--s11-ink-d); border-color: var(--s11-sand); }

.s11-section { max-width: 1240px; margin: 0 auto; padding: 56px 28px; }
.s11-section--tinted { background: var(--s11-bg-2); max-width: none; padding: 0; border-top: 1px solid var(--s11-line); border-bottom: 1px solid var(--s11-line); }
.s11-section--tinted > .s11-section__inner { max-width: 1240px; margin: 0 auto; padding: 64px 28px; }
.s11-section__head { margin-bottom: 36px; }
.s11-section__kicker { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--s11-sand); margin-bottom: 8px; }
.s11-section__title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); margin: 0 0 6px; color: var(--s11-ink); letter-spacing: -.018em; }
.s11-section__sub { color: var(--s11-muted); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.12rem; max-width: 60ch; margin: 0; }

.s11-feed { display: flex; flex-direction: column; }
.s11-feed-item { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; padding: 32px 0; border-top: 1px solid var(--s11-line); text-decoration: none; color: inherit; transition: background var(--t-fast); }
.s11-feed-item:last-of-type { border-bottom: 1px solid var(--s11-line); }
.s11-feed-item:hover { background: rgba(255,255,255,.02); }
@media (max-width: 720px) { .s11-feed-item { grid-template-columns: 1fr; } }
.s11-feed-item__cover { aspect-ratio: 4/3; overflow: hidden; background: var(--s11-bg-3); border: 1px solid var(--s11-line); }
.s11-feed-item__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.s11-feed-item:hover .s11-feed-item__cover img { transform: scale(1.05); }
.s11-feed-item__body { display: flex; flex-direction: column; gap: 8px; }
.s11-feed-item__eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--s11-sand); }
.s11-feed-item__title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.7rem; line-height: 1.06; letter-spacing: -.014em; color: var(--s11-ink); margin: 0; }
.s11-feed-item__lead { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.18rem; line-height: 1.4; color: var(--s11-ink); opacity: .85; margin: 4px 0 0; }
.s11-feed-item__meta { color: var(--s11-muted); font-size: .78rem; margin-top: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.s11-feed-item__arrow { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--s11-sand); align-self: center; transition: transform var(--t-fast); }
@media (max-width: 720px) { .s11-feed-item__arrow { display: none; } }
.s11-feed-item:hover .s11-feed-item__arrow { transform: translateX(6px); }

.s11-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .s11-method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .s11-method-grid { grid-template-columns: 1fr; } }
.s11-method { padding: 30px 24px 26px; background: var(--s11-bg); border: 1px solid var(--s11-line); border-top: 2px solid var(--s11-sand); }
.s11-method__num { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.2rem; color: var(--s11-sand); line-height: 1; letter-spacing: -.014em; }
.s11-method__title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.35rem; margin: 10px 0 8px; letter-spacing: -.012em; color: var(--s11-ink); }
.s11-method__txt { font-size: .92rem; line-height: 1.6; color: var(--s11-muted); margin: 0; }

.s11-cta { background: var(--s11-ink-d); color: var(--s11-paper); position: relative; overflow: hidden; }
.s11-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(900px 400px at 90% 0%, rgba(198,159,90,.22), transparent 60%); pointer-events: none; }
.s11-cta__wrap { max-width: 1240px; margin: 0 auto; padding: 80px 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .s11-cta__wrap { grid-template-columns: 1fr; } }
.s11-cta h2 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); letter-spacing: -.02em; line-height: 1.04; margin: 0 0 14px; color: var(--s11-paper); }
.s11-cta p { color: #c8c0a8; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.18rem; line-height: 1.5; max-width: 56ch; margin: 0 0 22px; }
.s11-cta__trust { display: flex; flex-wrap: wrap; gap: 10px; }
.s11-cta__trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 0; font-size: .78rem; font-weight: 600; color: var(--s11-paper); letter-spacing: .04em; }
.s11-cta__trust span::before { content: ""; width: 6px; height: 6px; background: var(--s11-sand); }
.s11-cta__form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); padding: 28px; }
.s11-cta__form-head { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.45rem; color: #fff; margin: 0 0 12px; letter-spacing: -.012em; }
.s11-cta__form .subscribe-form { background: transparent; border: 0; padding: 0; margin: 0; }
.s11-cta__form .subscribe-form label { color: #c8c0a8; }
.s11-cta__form .subscribe-form input[type="email"] { background: rgba(0,0,0,.4); color: #fff; border-color: rgba(255,255,255,.18); }
.s11-cta__form .subscribe-form input[type="email"]:focus { border-color: var(--s11-sand); box-shadow: 0 0 0 3px rgba(198,159,90,.25); }
.s11-cta__form button[type="submit"] { background: var(--s11-sand); color: var(--s11-ink-d); }
.s11-cta__form button[type="submit"]:hover { background: var(--s11-sand-2); color: #fff; }
.s11-cta__form .form-checkbox-wrap span, .s11-cta__form .form-checkbox-wrap a { color: #c8c0a8; }
.s11-cta__form .form-note { color: #91897a; }

.s11-footer { background: var(--s11-bg-2); border-top: 1px solid var(--s11-line); color: var(--s11-ink); }
.s11-footer__wrap { max-width: 1240px; margin: 0 auto; padding: 56px 28px 24px; }
.s11-footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--s11-line); }
@media (max-width: 760px) { .s11-footer__top { grid-template-columns: 1fr; } }
.s11-footer__lede { color: var(--s11-muted); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; line-height: 1.5; margin: 14px 0 0; max-width: 36ch; }
.s11-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 560px) { .s11-footer__cols { grid-template-columns: repeat(2, 1fr); } }
.s11-footer__cols h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--s11-sand); margin: 0 0 12px; font-family: 'Inter', sans-serif; }
.s11-footer__cols a { display: block; color: var(--s11-ink); text-decoration: none; font-size: .9rem; padding: 4px 0; opacity: .85; }
.s11-footer__cols a:hover { color: var(--s11-sand); opacity: 1; }
.s11-footer__bot { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.s11-footer__bot p { margin: 0; font-size: .82rem; color: var(--s11-muted); }
.s11-footer__discl { max-width: 60ch; }
.s11-footer__bot a { color: var(--s11-sand); }

.s11-article-wrap { max-width: 720px; margin: 0 auto; padding: 0 28px 80px; }
.s11-article-mast { max-width: 920px; margin: 0 auto; padding: 64px 28px 36px; text-align: center; color: var(--s11-ink); }
.s11-article-mast .crumbs { color: var(--s11-muted); font-size: .76rem; margin-bottom: 14px; letter-spacing: .14em; text-transform: uppercase; }
.s11-article-mast .crumbs a { color: var(--s11-muted); text-decoration: none; }
.s11-article-mast .crumbs a:hover { color: var(--s11-sand); }
.s11-article-mast__eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--s11-sand); margin-bottom: 16px; }
.s11-article-mast h1 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem); line-height: 1.04; letter-spacing: -.018em; margin: 0 0 18px; color: var(--s11-ink); }
.s11-article-mast__standfirst { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.22rem, 1.05rem + .5vw, 1.5rem); line-height: 1.42; color: var(--s11-ink); opacity: .9; max-width: 60ch; margin: 0 auto 18px; }
.s11-article-mast__meta { color: var(--s11-muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.s11-article-body { font-family: 'Cormorant Garamond', serif; font-size: 1.28rem; line-height: 1.6; color: var(--s11-ink); }
.s11-article-body h2 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.05rem; letter-spacing: -.018em; margin-top: 2.4rem; line-height: 1.06; color: var(--s11-ink); }
.s11-article-body h3 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.55rem; margin-top: 2rem; letter-spacing: -.014em; color: var(--s11-ink); }
.s11-article-body p:first-of-type::first-letter { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 5em; float: left; line-height: .9; margin: 10px 14px 0 0; color: var(--s11-sand); }
.s11-article-body a { color: var(--s11-sand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.s11-article-body a:hover { color: var(--s11-rose); }
.s11-article-body blockquote.pull-quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.6rem; border-left: 2px solid var(--s11-sand); padding-left: 24px; color: var(--s11-ink); margin: 28px 0; }
body.site11 .summary-box { background: var(--s11-bg-2); border-left: 4px solid var(--s11-sand); border-radius: 0; color: var(--s11-ink); }
.s11-author { margin-top: 56px; padding: 24px; background: var(--s11-bg-2); border: 1px solid var(--s11-line); display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.s11-author__sigil { width: 56px; height: 56px; border-radius: 50%; background: var(--s11-bg-3); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--s11-sand); font-size: 1.6rem; }
.s11-author__name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.18rem; color: var(--s11-ink); }
.s11-author__txt { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; color: var(--s11-muted); line-height: 1.5; margin: 4px 0 0; }
.s11-related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--s11-line); }
.s11-related h2 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.5rem; margin: 0 0 18px; color: var(--s11-ink); }
.s11-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.s11-related__card { display: block; padding: 16px 18px; background: var(--s11-bg-2); border: 1px solid var(--s11-line); text-decoration: none; color: var(--s11-ink); transition: border-color var(--t-fast); }
.s11-related__card:hover { border-color: var(--s11-sand); }
.s11-related__card-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.18rem; line-height: 1.18; }
.s11-related__card-meta { font-size: .76rem; color: var(--s11-muted); margin-top: 6px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

.s11-page-wrap { max-width: 720px; margin: 36px auto 0; padding: 0 28px 64px; color: var(--s11-ink); }
.s11-page-wrap h1 { font-family: 'Cormorant Garamond', serif; font-weight: 700; letter-spacing: -.018em; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); color: var(--s11-ink); }
.s11-page-wrap .crumbs { margin-bottom: 16px; font-size: .76rem; color: var(--s11-muted); letter-spacing: .1em; text-transform: uppercase; }
.s11-page-wrap .crumbs a { color: var(--s11-muted); }
.s11-page-wrap p, .s11-page-wrap li { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; line-height: 1.6; color: var(--s11-ink); }
.s11-page-wrap .subscribe-form { max-width: 520px; background: var(--s11-bg-2); border-color: var(--s11-line); }
.s11-page-wrap .subscribe-form input[type="email"] { background: rgba(0,0,0,.3); color: #fff; border-color: var(--s11-line-2); }
body.site11 .sources { border-top: 1px solid var(--s11-line); margin-top: 40px; padding-top: 24px; }
body.site11 .sources h3 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.45rem; color: var(--s11-ink); text-transform: none; letter-spacing: -.012em; }
body.site11 .sources a { color: var(--s11-sand); }

