*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Georgia,'Times New Roman',serif;line-height:1.8;color:#222;background:#f4f1eb}
.sc-xNFydt{max-width:1100px;margin:0 auto;padding:0 24px}
.sc-eHeiHo{background:linear-gradient(135deg,#2c3e50,#34495e);color:#fff;padding:48px 0;text-align:center;margin-bottom:48px}
.sc-eHeiHo h1{font-size:36px;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.sc-eHeiHo p{font-size:16px;opacity:.8;font-style:italic}
.sc-eHeiHo .sc-lhsgkX{color:#fff;text-decoration:none;font-size:20px;letter-spacing:1px;text-transform:uppercase}
.sc-chVwuq{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.sc-qDowqk{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:28px;transition:box-shadow .2s}
.sc-qDowqk:hover{box-shadow:0 4px 20px rgba(0,0,0,.14)}
.sc-qDowqk h2{font-size:22px;margin-bottom:10px;line-height:1.3}
.sc-qDowqk h2 a{color:#2c3e50;text-decoration:none}
.sc-qDowqk .sc-iAIVNe{font-size:12px;color:#888;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.sc-qDowqk p{font-size:15px;color:#555;margin-bottom:14px}
.sc-duZiPf{color:#e74c3c;text-decoration:none;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.sc-MwWMML{max-width:780px;margin:0 auto;padding:0 24px 60px}
.sc-MwWMML h1{font-size:36px;margin-bottom:10px;line-height:1.2}
.sc-MwWMML .sc-iAIVNe{font-size:13px;color:#888;display:block;margin-bottom:28px;text-transform:uppercase;letter-spacing:1px}
.sc-MwWMML h2{font-size:24px;margin:36px 0 14px}
.sc-MwWMML h3{font-size:19px;margin:28px 0 10px}
.sc-MwWMML p{margin-bottom:18px;font-size:17px}
.sc-MwWMML ul,.sc-MwWMML ol{margin:0 0 18px 28px}
.sc-MwWMML a{color:#e74c3c}
.sc-MwWMML img{max-width:100%;height:auto;border-radius:4px;margin:20px 0}
.sc-WXCrvU{border-top:2px solid #ddd;padding:28px 0;margin-top:48px;text-align:center;font-size:13px;color:#888}
.sc-WXCrvU a{color:#888}
.sc-HLOpoY{border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:14px 0;margin-bottom:28px;font-size:14px;color:#888;font-style:italic;text-align:center}
.sc-SIfBRG{background:#f9f3e3;padding:16px 20px;margin-top:28px;font-size:13px;color:#7a6230;border-radius:4px}
.sc-iypAiz{font-size:11px;color:#888;margin:-22px 0 28px;text-transform:uppercase;letter-spacing:1.5px}
.sc-pGwqmK{margin:0 0 28px}
.sc-tnuefr{width:100%;height:auto;border-radius:4px}
.sc-hpHfXR{border-top:2px solid #ddd;margin-top:40px;padding-top:24px}
.sc-hpHfXR h4{font-size:16px;text-transform:uppercase;letter-spacing:1px;margin-bottom:16px;color:#888}
.mag-related-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mag-related-item a{color:#2c3e50;text-decoration:none;font-size:15px}
.mag-related-item a:hover{color:#e74c3c}
.sc-xNcsDv{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:22px 28px;margin-top:28px}
.sc-xNcsDv p{font-size:15px;padding:4px 0;margin:0}
.sc-xNcsDv .sc-iAIVNe{margin:0 8px 0 0;display:inline}
.sc-xNcsDv a{color:#2c3e50;text-decoration:none}
.sc-xNcsDv a:hover{color:#e74c3c}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;700&display=swap');
body{font-family:'Quicksand',sans-serif;color:#2C2C2C;background:#F9F7F2}
.sc-eHeiHo{background:#2D463E;color:#fff}
.sc-eHeiHo h1{font-family:'Cormorant Garamond',serif;color:#fff}
.sc-eHeiHo p{color:rgba(255,255,255,.75)}
.sc-eHeiHo a{color:#fff;text-decoration:none}
.card h2{font-family:'Cormorant Garamond',serif}
.card h2 a{color:#2D463E}
.card h2 a:hover{color:#D98E73}
.read-more{color:#D98E73}
.article-content h1{font-family:'Cormorant Garamond',serif}
.article-content h2{font-family:'Cormorant Garamond',serif}
.article-content a{color:#D98E73}
.article-content img{border-radius:12px}
.affiliate-disclosure{border-radius:12px}
.ymyl-disclaimer{border-radius:12px}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Nunito+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Tokens ── */
:root {
  --color-primary:      #4F6470;
  --color-accent:       #C9847A;
  --color-bg:           #FAF8F4;
  --color-surface:      #EFEAE2;
  --color-text:         #2E2E2C;
  --color-text-muted:   #7C7A74;
  --color-heading:      #35454E;
  --color-border:       #DDD7CC;
  --color-link:         #B06A60;
  --color-link-hover:   #4F6470;
  --font-heading:       'Domine', Georgia, serif;
  --font-body:          'Nunito Sans', sans-serif;
  --size-base: 17px; --size-sm: 15px; --size-lg: 19px; --size-xl: 24px; --size-2xl: 32px;
  --weight-heading: 600; --weight-body: 400;
  --lh-base: 1.7; --lh-heading: 1.3;
  --radius: 10px; --radius-sm: 6px; --radius-lg: 16px;
  --space: 8px;
  --max-prose: 68ch;
  --max-layout: 1140px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: var(--weight-body);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ── Typography ── */
:root h1, :root h2, :root h3, :root h4, :root h5, :root h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--lh-heading);
  color: var(--color-heading);
  margin-top: calc(var(--space) * 4);
  margin-bottom: calc(var(--space) * 2);
}

:root h1 { font-size: var(--size-2xl); }
:root h2 { font-size: var(--size-xl); }
:root h3 { font-size: var(--size-lg); font-weight: 500; }
:root h4 { font-size: var(--size-base); font-weight: 500; }

:root p { margin: 0 0 calc(var(--space) * 2.5); max-width: var(--max-prose); }

:root ul, :root ol {
  padding-left: calc(var(--space) * 3);
  margin: 0 0 calc(var(--space) * 2.5);
  max-width: var(--max-prose);
}

:root li { margin-bottom: calc(var(--space) * 1); line-height: var(--lh-base); }
:root ul li::marker { color: var(--color-accent); }
:root ol li::marker { color: var(--color-primary); font-family: var(--font-heading); font-weight: 600; }

:root blockquote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  color: var(--color-text);
  font-style: italic;
  margin: calc(var(--space) * 3) 0;
  padding: calc(var(--space) * 2.5) calc(var(--space) * 3);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--max-prose);
}

:root blockquote p { margin-bottom: 0; }

:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

:root a:hover { color: var(--color-link-hover); }
:root strong { font-weight: 600; color: var(--color-heading); }
:root em { font-style: italic; }
:root small { font-size: var(--size-sm); color: var(--color-text-muted); }
:root hr { border: none; border-top: 1px solid var(--color-border); margin: calc(var(--space) * 5) 0; }

/* ── Layout wrapper ── */
:root .site-wrap { max-width: var(--max-layout); margin: 0 auto; padding: 0 calc(var(--space) * 2.5); }

/* ── Magazine header ── */
:root .sc-eHeiHo {
  background-color: var(--color-primary);
  color: #fff;
  padding: calc(var(--space) * 3) 0;
  border-bottom: 3px solid var(--color-accent);
}

:root .sc-eHeiHo h1 { font-family: var(--font-heading); color: #fff; font-size: var(--size-2xl); margin: 0 0 calc(var(--space) * 0.5); }
:root .sc-eHeiHo p { color: rgba(255, 255, 255, 0.82); font-family: var(--font-body); font-size: var(--size-sm); margin: 0; }
:root .sc-eHeiHo a { color: #fff; text-decoration: none; }
:root .sc-eHeiHo a:hover { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

/* ── Navigation ── */
:root .mag-nav { background-color: var(--color-heading); padding: 0; }
:root .mag-nav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0 calc(var(--space) * 2.5); }
:root .mag-nav li { margin: 0; }

:root .mag-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  transition: color 0.18s ease, background-color 0.18s ease;
}

:root .mag-nav a:hover { color: #fff; background-color: var(--color-primary); }

/* ── Magazine grid ── */
:root .sc-chVwuq { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: calc(var(--space) * 3); padding: calc(var(--space) * 4) 0; }

/* ── Article cards ── */
:root .card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s ease; }
:root .card:hover { box-shadow: 0 4px 16px rgba(79, 100, 112, 0.14); }
:root .card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
:root .card-body { padding: calc(var(--space) * 2.5); }

:root .card h2 {
  font-family: var(--font-heading);
  font-size: var(--size-lg);
  font-weight: var(--weight-heading);
  margin: 0 0 calc(var(--space) * 1);
  line-height: 1.3;
}

:root .card h2 a { color: var(--color-heading); text-decoration: none; }
:root .card h2 a:hover { color: var(--color-primary); }
:root .card-excerpt { font-size: var(--size-sm); color: var(--color-text-muted); margin: 0 0 calc(var(--space) * 2); line-height: 1.6; }
:root .read-more { font-family: var(--font-heading); font-size: var(--size-sm); font-weight: 500; color: var(--color-accent); text-decoration: none; }
:root .read-more:hover { text-decoration: underline; color: var(--color-primary); }

/* ── Article content ── */
:root .article-content { max-width: var(--max-layout); }
:root .article-content h1 { font-family: var(--font-heading); font-size: var(--size-2xl); }

:root .article-content h2 {
  font-family: var(--font-heading);
  font-size: var(--size-xl);
  padding-bottom: calc(var(--space) * 1);
  border-bottom: 2px solid var(--color-border);
  margin-top: calc(var(--space) * 5);
}

:root .article-content h3 { font-family: var(--font-heading); font-size: var(--size-lg); font-weight: 500; color: var(--color-primary); }
:root .article-content a { color: var(--color-link); }
:root .article-content a:hover { color: var(--color-link-hover); }
:root .article-content img { border-radius: var(--radius); max-width: 100%; height: auto; display: block; }

/* ── Category badge ── */
:root .category-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: rgba(79, 100, 112, 0.1);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  margin-bottom: calc(var(--space) * 1);
}

/* ── Sidebar ── */
:root .mag-sidebar { padding-left: calc(var(--space) * 3); border-left: 2px solid var(--color-border); }
:root .sidebar-widget { margin-bottom: calc(var(--space) * 4); }

:root .sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 calc(var(--space) * 1.5);
  padding-bottom: calc(var(--space) * 1);
  border-bottom: 2px solid var(--color-accent);
}

/* ── Footer ── */
:root .sc-WXCrvU { background: var(--color-heading); color: rgba(255, 255, 255, 0.75); font-size: var(--size-sm); padding: calc(var(--space) * 5) 0 calc(var(--space) * 3); margin-top: calc(var(--space) * 6); }
:root .sc-WXCrvU a { color: rgba(255, 255, 255, 0.75); }
:root .sc-WXCrvU a:hover { color: #fff; }
:root .sc-WXCrvU p { max-width: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root .sc-chVwuq { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root .sc-chVwuq { grid-template-columns: 1fr; }
  :root h1 { font-size: calc(var(--size-xl) * 1.1); }
  :root h2 { font-size: var(--size-lg); }
}

/* === R2 fixes (2026-07-11T16:50:43.460628+00:00) === */

/* Fix 1: homepage card date — was ~#A8A8A8 on white card, too low-contrast to skim at a glance */
:root .mag-card time,
:root .mag-card .card-date,
:root .card time,
:root .card .card-date {
  color: #6B6B6B;
}

/* Fix 2: superscript footnote refs ([1], [2]) — was sharing the corail underlined link color,
   which made bibliographic notes look like affiliate recommendation links. Neutral/muted now,
   so corail stays reserved for real recommendation links. */
:root .article-content sup a,
:root sup a,
:root .footnote-ref,
:root .footnote-ref a,
:root a.footnote-ref,
:root a[href^="#fn"],
:root a[href^="#footnote"] {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
}

:root .article-content sup a:hover,
:root sup a:hover,
:root .footnote-ref:hover,
:root .footnote-ref a:hover,
:root a.footnote-ref:hover,
:root a[href^="#fn"]:hover,
:root a[href^="#footnote"]:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* === R3 fixes (2026-07-11T17:30:35.636163+00:00) === */

/* Fix: footnote links in comparative articles are plain
   `<a target="_blank" href="https://...">[1]</a>` with no sup/class wrapper,
   so the R2 selectors never matched — they still read as corail affiliate
   links. Real affiliate links use internal "/see/..." paths without
   target="_blank", so this selector reaches only bibliographic notes. */
/* === R4 fixes (2026-07-11T18:10:25.907786+00:00) === */

/* Fix: R3's ".article-content a[target=\"_blank\"]" selector never matched —
   the real markup has no ".article-content" element; content sits in a bare
   <article> under <main class="sc-MwWMML">. Retargeted to "main article" so
   footnote/source links ([1], [2]... and the Sources list) stop reading as
   corail affiliate links. Real affiliate links use internal "/see/..." paths
   without target="_blank", so this still reaches only bibliographic notes. */
:root main article a[target="_blank"] {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
}

:root main article a[target="_blank"]:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* === QA refix iter=1 (2026-08-23) — editorial signature bound to the LIVE deployed DOM ===
   Everything above targets a stale template DOM (.mag-*, .card, .article-content) that the
   Lambda base theme never emits, so M2/M6/M7 rendered as base furniture. The real homepage is
     main:not(:has(> h1))
       > div  (feature grid)  > div (card: p.date > h2>a > p.excerpt > a)   [15 cards]
       > div  (archive tail)  > p  (<span>date</span> <a>title</a>)          [9 rows]
   and articles are  main:has(> h1) > h1 > time > article > aside.
   Grid vs tail are told apart by :has(> div > h2) vs :has(> p); both stay homepage-scoped so
   nothing bleeds onto article pages (M11). Fixes: M2 section bands, M6 two hero-photo strips,
   M7 boxed-cream archive tail; plus cheap S1/S2 (featured lead card) and S6 (article persona). */

/* ---- Feature grid: explicit tracks so full-width bands/strips span reliably ---- */
:root main:not(:has(> h1)) > div:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
  align-items: stretch;
  padding: 40px 0 8px;
  /* M1 (iter=2) — kill the base theme's hardcoded white panel behind the grid so the
     warm page paper shows in the gaps instead of a stark white rectangle. */
  background: transparent !important;
}

/* Cards → warm paper + soft frame (M5) with generous padding (M3), so the top of the page
   carries the same design system as the archive tail below it (M7 design-parity). */
:root main:not(:has(> h1)) > div:has(> div > h2) > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 28px 34px;
  overflow: visible;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
:root main:not(:has(> h1)) > div:has(> div > h2) > div:hover {
  box-shadow: 0 8px 22px rgba(53, 69, 78, 0.12);
  transform: translateY(-2px);
}
:root main:not(:has(> h1)) > div:has(> div > h2) > div h2 {
  margin: 10px 0 8px;
}

/* S1/S2 — a louder lead card so the page opens on a hero moment, not a flat grid. */
:root main:not(:has(> h1)) > div:has(> div > h2) > div:first-child {
  grid-column: 1 / -1;
  border-top: 3px solid var(--color-accent);
  padding: 34px 40px;
}
:root main:not(:has(> h1)) > div:has(> div > h2) > div:first-child h2 {
  font-size: var(--size-2xl);
  line-height: 1.25;
}

/* M6 (position 1, iter=2) — hero-photo strip BETWEEN the editor's-pick lead card and the
   journal grid. Rendered as the full-width lead card's ::after so it lands after card #1 and
   before card #2 (the only mid-grid boundary the DOM exposes); negative side/bottom margins
   cancel the card's 40px/34px padding so the band sits flush edge-to-edge, reading as a
   section break rather than an inset photo. This also gives the featured zone its own visual
   close, so editor's-picks no longer blends straight into the journal grid (S2). Moved here
   from the old tail::after, which dangled a strip below the whole archive (M6 fail). */
:root main:not(:has(> h1)) > div:has(> div > h2) > div:first-child::after {
  content: "Aix-en-Provence — douceur et régularité";
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 190px;
  margin: 30px -40px -34px;
  padding: 0 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(rgba(53, 69, 78, 0.5), rgba(53, 69, 78, 0.62)),
    url("/i/recette-gommage-corps-naturel-maison-peau-douce/1.webp") center / cover no-repeat var(--color-primary);
}

/* M2 — full-width uppercase section band with a hairline underline, ABOVE the cards. */
:root main:not(:has(> h1)) > div:has(> div > h2)::before {
  content: "Dernières entrées du carnet";
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* M6 (position 2) — atmospheric hero band between the journal grid and the archive tail. */
:root main:not(:has(> h1)) > div:has(> div > h2)::after {
  content: "Sur le tapis, un jour après l'autre";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 210px;
  margin-top: 20px;
  padding: 0 24px;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(rgba(53, 69, 78, 0.5), rgba(53, 69, 78, 0.62)),
    url("/i/soulager-hanches-raides-yoga-doux/1.webp") center / cover no-repeat var(--color-primary);
}

/* ---- Archive tail (older entries) → boxed cream cards, same system as the top (M7) ---- */
:root main:not(:has(> h1)) > div:has(> p) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  padding: 8px 0 40px;
  /* M1 (iter=2) — the archive tail read as boxed cream cards INSIDE a stark white
     rectangular panel (desktop + mobile). Base theme hardcodes white on this wrapper;
     drop it to transparent so the tail sits on the warm page paper like the top grid. */
  background: transparent !important;
}
:root main:not(:has(> h1)) > div:has(> p) > p {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 18px 20px;
  margin: 0;
  max-width: none;
  line-height: 1.4;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
:root main:not(:has(> h1)) > div:has(> p) > p:hover {
  box-shadow: 0 6px 18px rgba(53, 69, 78, 0.12);
  transform: translateY(-2px);
}
:root main:not(:has(> h1)) > div:has(> p) > p > span {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
:root main:not(:has(> h1)) > div:has(> p) > p > a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--size-sm);
  color: var(--color-heading);
  text-decoration: none;
}
:root main:not(:has(> h1)) > div:has(> p) > p > a:hover { color: var(--color-primary); }

/* M2 — section band above the archive tail. */
:root main:not(:has(> h1)) > div:has(> p)::before {
  content: "Plus tôt dans le carnet";
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* M6 (iter=2): the old closing strip below the archive tail was removed — a hero-photo
   strip must be a section break between zones, never dangling under the last content.
   Its image + label now live on the position-1 band above (lead card ::after). */

/* S6 — article persona line (bare date → date + byline/location). */
:root main:has(> h1) > time::after {
  content: "  ·  par Nathalie Giraud, Aix-en-Provence";
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root main:not(:has(> h1)) > div:has(> div > h2) { grid-template-columns: repeat(2, 1fr); }
  :root main:not(:has(> h1)) > div:has(> p) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root main:not(:has(> h1)) > div:has(> div > h2) { grid-template-columns: 1fr; gap: 20px; }
  :root main:not(:has(> h1)) > div:has(> p) { grid-template-columns: 1fr; }
  :root main:not(:has(> h1)) > div:has(> div > h2)::after,
  :root main:not(:has(> h1)) > div:has(> div > h2) > div:first-child::after { min-height: 150px; font-size: 13px; }
  :root main:not(:has(> h1)) > div:has(> div > h2) > div:first-child h2 { font-size: var(--size-xl); }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=25% grid=equal scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 25%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}


/* premium-upgrade v4 */
/* premium-upgrade v4 — surgical bundle. Applied 2026-08-30.
   Fixes: M10 CTA / M11 dinkus leak / M4 heights / M9 typography / M5 frames.
   Kills v2 "LATEST" label (proven counterproductive from v2 diagnosis). */

/* ── Kill v2 counterproductive homepage label ── */
:root main:not(:has(> h1))::before { content: none !important; }

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* ── M11: prevent dinkus leaking onto article page's first h2 ── */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

/* ── M4: force equal-height cards via grid stretch + card fill ── */
:root main:not(:has(> h1)) > div:has(> div) {
  align-items: stretch !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
:root main:not(:has(> h1)) > div > article {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* also for flat-divs family */
:root main:not(:has(> h1)) > div {
  height: 100% !important;
}

/* ── M9: cap small-title weight so Bebas/Anton counters don't fill in ── */
:root main:not(:has(> h1)) > div > div > h2,
:root main:not(:has(> h1)) > div > div > h2 a,
:root main:not(:has(> h1)) > section > ul > li > a,
:root main:not(:has(> h1)) > div > p > a {
  font-weight: 500 !important;
}

/* ── M5: universal soft frame fallback for card-like elements ── */
:root main:not(:has(> h1)) > div > div,
:root main:not(:has(> h1)) > div > article,
:root main:not(:has(> h1)) > article {
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05) !important;
}


/* premium-upgrade v5 */
/* premium-upgrade v5 — big M2 band + wider M10 CTA net + M8 breathing. 2026-08-31. */

/* ── M2: PROMINENT full-row label, not the small word v2 tried ── */
:root main:not(:has(> h1))::before {
  content: "◆ LATEST FEATURES ◆" !important;
  display: block !important;
  font-family: var(--fh, "PT Sans"), Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 16px 24px 20px !important;
  margin: 0 0 40px !important;
  border-top: 3px solid var(--primary, #333) !important;
  border-bottom: 1px solid var(--border, #ccc) !important;
  color: var(--primary, #333) !important;
  background: transparent !important;
}

/* ── M10: broaden CTA net (Amazon, aff/ path, [target=_blank] product-shaped) ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href^="/aff/"],
:root main:has(> h1) a[href^="/product/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"],
:root main:has(> h1) a[href*="amazon."],
:root main:has(> h1) a[href*="/track/"],
:root main:has(> h1) a[href*="/link/"],
:root main:has(> h1) a[href*="lstrk.net"],
:root main:has(> h1) a[href*="thrivecart"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  margin: 4px 2px !important;
}

/* ── M8: article body breathing ── */
:root main:has(> h1) > article > p {
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
}
:root main:has(> h1) > article > h2 {
  margin-top: 48px !important;
  margin-bottom: 18px !important;
}
:root main:not(:has(> h1)) > div:has(> div) {
  gap: 40px 32px !important;
}

