*{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-KccpTw{max-width:1100px;margin:0 auto;padding:0 24px}
.sc-foTFtM{background:linear-gradient(135deg,#2c3e50,#34495e);color:#fff;padding:48px 0;text-align:center;margin-bottom:48px}
.sc-foTFtM h1{font-size:36px;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.sc-foTFtM p{font-size:16px;opacity:.8;font-style:italic}
.sc-foTFtM .sc-fiucHw{color:#fff;text-decoration:none;font-size:20px;letter-spacing:1px;text-transform:uppercase}
.sc-fTKVME{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.sc-jmDSVx{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:28px;transition:box-shadow .2s}
.sc-jmDSVx:hover{box-shadow:0 4px 20px rgba(0,0,0,.14)}
.sc-jmDSVx h2{font-size:22px;margin-bottom:10px;line-height:1.3}
.sc-jmDSVx h2 a{color:#2c3e50;text-decoration:none}
.sc-jmDSVx .sc-epYNyK{font-size:12px;color:#888;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.sc-jmDSVx p{font-size:15px;color:#555;margin-bottom:14px}
.sc-qBGevF{color:#e74c3c;text-decoration:none;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.sc-WSGdCS{max-width:780px;margin:0 auto;padding:0 24px 60px}
.sc-WSGdCS h1{font-size:36px;margin-bottom:10px;line-height:1.2}
.sc-WSGdCS .sc-epYNyK{font-size:13px;color:#888;display:block;margin-bottom:28px;text-transform:uppercase;letter-spacing:1px}
.sc-WSGdCS h2{font-size:24px;margin:36px 0 14px}
.sc-WSGdCS h3{font-size:19px;margin:28px 0 10px}
.sc-WSGdCS p{margin-bottom:18px;font-size:17px}
.sc-WSGdCS ul,.sc-WSGdCS ol{margin:0 0 18px 28px}
.sc-WSGdCS a{color:#e74c3c}
.sc-WSGdCS img{max-width:100%;height:auto;border-radius:4px;margin:20px 0}
.sc-WBXjNu{border-top:2px solid #ddd;padding:28px 0;margin-top:48px;text-align:center;font-size:13px;color:#888}
.sc-WBXjNu a{color:#888}
.sc-STUWMb{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-hiUdHh{background:#f9f3e3;padding:16px 20px;margin-top:28px;font-size:13px;color:#7a6230;border-radius:4px}
.sc-GvnCCx{font-size:11px;color:#888;margin:-22px 0 28px;text-transform:uppercase;letter-spacing:1.5px}
.sc-GfGgcU{margin:0 0 28px}
.sc-AQccxa{width:100%;height:auto;border-radius:4px}
.sc-kySUrc{border-top:2px solid #ddd;margin-top:40px;padding-top:24px}
.sc-kySUrc 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-KhSVQr{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:22px 28px;margin-top:28px}
.sc-KhSVQr p{font-size:15px;padding:4px 0;margin:0}
.sc-KhSVQr .sc-epYNyK{margin:0 8px 0 0;display:inline}
.sc-KhSVQr a{color:#2c3e50;text-decoration:none}
.sc-KhSVQr a:hover{color:#e74c3c}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;700&display=swap');
body{font-family:'Lora',sans-serif;color:#2c241e;background:#fdfaf5}
.sc-foTFtM{background:#2d4a22;color:#fff}
.sc-foTFtM h1{font-family:'Cormorant Garamond',serif;color:#fff}
.sc-foTFtM p{color:rgba(255,255,255,.75)}
.sc-foTFtM a{color:#fff;text-decoration:none}
.card h2{font-family:'Cormorant Garamond',serif}
.card h2 a{color:#2d4a22}
.card h2 a:hover{color:#e67e22}
.read-more{color:#e67e22}
.article-content h1{font-family:'Cormorant Garamond',serif}
.article-content h2{font-family:'Cormorant Garamond',serif}
.article-content a{color:#e67e22}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Source+Sans+3:wght@400;500;600&display=swap');

/* Design tokens */
:root {
  --color-bg:          #FBF8F3;
  --color-text:        #221C0F;
  --color-heading:     #253818;
  --color-primary:     #5C7A45;
  --color-accent:      #B84D10;
  --color-secondary:   #C9893E;
  --color-surface:     #EEE8DC;
  --color-border:      #CFC4B0;
  --color-muted:       #6B5F4E;
  --color-link:        #B84D10;
  --color-link-hover:  #8C3A0D;
  --color-header-bg:   #253818;
  --color-header-text: #F5EFE6;
  --color-footer-bg:   #1E2C14;
  --color-footer-text: #C8BFB0;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --size-base: 17px;
  --lh-body:    1.72;
  --lh-heading: 1.18;
  --max-prose:  68ch;
  --radius:      6px;
  --radius-card: 10px;
  --spacing:     3rem;
  --shadow-card: 0 2px 10px rgba(34, 28, 15, 0.09);
}

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

html {
  font-size: var(--size-base);
  scroll-behavior: smooth;
}

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

/* Headings */
:root h1,
:root h2,
:root h3,
:root h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-heading);
  margin-top: 0;
  font-weight: 700;
}

:root h1 { font-size: 2.45rem; margin-bottom: 0.9rem; }
:root h2 { font-size: 1.8rem;  margin-bottom: 0.75rem; }
:root h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
:root h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }

/* Body text */
:root p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  max-width: var(--max-prose);
}

:root ul,
:root ol {
  margin-top: 0;
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
  max-width: var(--max-prose);
}

:root li { margin-bottom: 0.45rem; }

:root blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-muted);
  font-style: italic;
  max-width: var(--max-prose);
}

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

/* Links */
: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); }

/* Images */
:root img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Header */
:root .sc-foTFtM {
  background-color: var(--color-header-bg);
  color: var(--color-header-text);
  padding: 2rem 1.5rem 1.75rem;
}

:root .sc-foTFtM h1 {
  font-family: var(--font-heading);
  color: var(--color-header-text);
  font-size: 2rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

:root .sc-foTFtM p {
  color: rgba(245, 239, 230, 0.72);
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: none;
}

:root .sc-foTFtM a { color: var(--color-header-text); text-decoration: none; }
:root .sc-foTFtM a:hover { color: var(--color-secondary); }

/* Navigation */
:root .mag-nav,
:root nav {
  background-color: var(--color-primary);
  padding: 0.6rem 1.5rem;
}

:root .mag-nav a,
:root nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  transition: background 0.18s ease;
}

:root .mag-nav a:hover,
:root nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Article content */
:root .article-content {
  font-size: 1.06rem;
  line-height: var(--lh-body);
}

:root .article-content h1,
:root .article-content h2,
:root .article-content h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
}

:root .article-content a { color: var(--color-link); font-weight: 500; }
:root .article-content a:hover { color: var(--color-link-hover); }

:root .article-content img {
  border-radius: var(--radius-card);
  margin: 1.5rem 0;
}

/* Cards */
:root .card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

:root .card:hover {
  box-shadow: 0 6px 20px rgba(34, 28, 15, 0.14);
  transform: translateY(-2px);
}

:root .card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

:root .card h2 a { color: var(--color-heading); text-decoration: none; }
:root .card h2 a:hover { color: var(--color-accent); }

:root .card .card-meta,
:root .card .card-date {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

:root .card p { font-size: 0.95rem; color: var(--color-text); margin-bottom: 0.75rem; }

:root .card .read-more {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

:root .card .read-more:hover { color: var(--color-link-hover); text-decoration: underline; }

/* HR */
:root hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: var(--spacing) 0;
}

/* Footer */
:root footer,
:root .sc-WBXjNu {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
}

:root footer a,
:root .sc-WBXjNu a {
  color: var(--color-footer-text);
  text-decoration: underline;
  text-decoration-color: rgba(200, 191, 176, 0.4);
}

:root footer a:hover,
:root .sc-WBXjNu a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Utility */
:root .text-muted { color: var(--color-muted); }

/* Responsive */
@media (max-width: 600px) {
  :root h1 { font-size: 1.9rem; }
  :root h2 { font-size: 1.45rem; }
  :root h3 { font-size: 1.2rem; }
  :root .sc-foTFtM { padding: 1.4rem 1rem 1.2rem; }
  :root .sc-foTFtM h1 { font-size: 1.55rem; }
}

/* === R2 fixes (2026-06-21T00:10:26.937747+00:00) === */

/* Fix 1 — breathing room between lines in long article text */
.bld-content p,
article p {
  line-height: 1.75;
}

/* Fix 2 — H2 section headings need visual separation for scanability */
.bld-content h2,
:root article h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

/* Fix 3 — "Continue reading" CTA: sentence-case feels warmer than ALL CAPS */
.sc-qBGevF,
.bld-card-cta,
[class*='ReadMore'],
[class*='Continue'] {
  text-transform: none;
  font-weight: 600;
}

/* Fix 4 — card headline too large; 1.3rem holds in 3 lines in narrow columns */
.sc-jmDSVx h2,
.bld-card h2 {
  font-size: 1.3rem;
  line-height: 1.25;
}

/* === R3 fixes (2026-06-21T00:50:25.985789+00:00) === */

/* Fix R3-1 — article H2 specificity: :root article h2 (0,1,2) beats :root h2 (0,1,1) */
/* (selector updated inline on R2 Fix 2 above — no duplicate rule needed) */

/* Fix R3-2 — card headline size reduced inline on R2 Fix 4 above */

/* Fix R3-3 — "Articles connexes" related links: styled to match site rather than browser defaults */
.mag-related-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.mag-related-item a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  font-weight: 500;
  color: var(--color-heading);
}

.mag-related-item a:hover {
  color: var(--color-accent);
}

/* Fix 5 — date stamp: slightly more contrast so it's readable without squinting */
.sc-epYNyK,
.bld-card-date {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.02em;
}

/* === R4 fixes (2026-06-21T01:30:20.780123+00:00) === */

/* Fix R4-1 — aside "Articles connexes": visual break after article body */
:root main aside {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border);
}

/* Fix R4-2 — aside h4 label: small-caps nav label, not article sub-heading */
:root main aside h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* v.d74c46 — layout revision */
/* ═══════════════════════════════════════════════════════════════════════
   Refonte éditoriale — la signature « carnet de potager » de Pascal.
   Une voix forte (le hero) → un choix (« à commencer par là ») → deux bandes
   photo qui font respirer → un journal sobre. Rouille = signal du masthead
   et du hero (jamais éparpillé sur les cartes, demotées en vert calme).
   Brun #6B4A2E = couleur « moment », deux emplois seulement : bordure du
   manifeste + lettrine du hero.
   Build styled-components (.sc-xxxx instables) → sélecteurs STRUCTURELS
   uniquement, préfixe :root main:nth-of-type(1) pour battre les règles de
   thème (0,2,0) sans !important ni classes inventées.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --moment:    #6B4A2E;   /* brun « moment » — 2 emplois max */
  --cta-quiet: #4E6B39;   /* vert calme pour les CTA de cartes */
}

/* ─── Masthead : photo, monogramme, wordmark, manifeste ────────────────── */
:root body > nav {
  background:
    linear-gradient(178deg, rgba(24, 38, 18, 0.86), rgba(24, 38, 18, 0.60)),
    url("/theme-assets/hero-bg.jpg") center 42% / cover no-repeat;
  border-bottom: 3px solid var(--color-accent);
  padding: 3.2rem 1.5rem 2.9rem;
}

:root body > nav > div {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* Monogramme roundel — présent accueil + article (la marque) */
:root body > nav > div::before {
  content: "RM";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.6px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: #F6F0E5;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

:root body > nav h1,
:root body > nav a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  color: #F8F3EA;
  text-decoration: none;
  letter-spacing: 0.005em;
  background: none;
  padding: 0;
}

:root body > nav h1 { font-size: 2.5rem; margin: 0; line-height: 1.14; }
:root body > nav a  { font-size: 1.4rem; display: inline-block; }
:root body > nav a:hover { color: var(--color-secondary); }

/* Sous-titre du masthead (accueil) */
:root body > nav > div > p {
  color: rgba(246, 240, 229, 0.80);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0.7rem 0 0;
}

/* Manifeste italique — signature de la voix, uniquement sur l'accueil */
:root body > nav > div:has(> h1)::after {
  content: "« On sème beaucoup, on rate un peu, et on finit par manger le jardin. »";
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(246, 240, 229, 0.92);
  border-left: 3px solid var(--moment);
  padding-left: 0.95rem;
  margin-top: 1.3rem;
  max-width: 48ch;
}

/* ─── ACCUEIL : conteneur mono-colonne centré + carte de base ──────────── */
:root main:nth-of-type(1):not(:has(> article)) {
  padding: 3.5rem 1.5rem 2.5rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div {
  display: block;
  max-width: 860px;
  margin: 0 auto;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div {
  background: var(--color-surface);
  border: 1px solid rgba(37, 56, 26, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 4px rgba(34, 28, 15, 0.05);
  padding: 30px 40px;
  margin: 0 0 40px;
  overflow: visible;
}

/* Méta / date — voix « meta » : sans, capitales, tracking */
:root main:nth-of-type(1):not(:has(> article)) > div > div > p:first-child {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.7rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div > h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.24;
  margin: 0 0 0.55rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div > h2 a {
  color: var(--color-heading);
  text-decoration: none;
}
:root main:nth-of-type(1):not(:has(> article)) > div > div > h2 a:hover {
  color: var(--color-accent);
}

:root main:nth-of-type(1):not(:has(> article)) > div > div > p:last-of-type {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
}

/* CTA cartes — vert calme, texte français (remplace « Continue Reading ») */
:root main:nth-of-type(1):not(:has(> article)) > div > div > a {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--cta-quiet);
  font-weight: 700;
  font-size: 0;
  text-decoration: none;
  letter-spacing: 0.04em;
}
:root main:nth-of-type(1):not(:has(> article)) > div > div > a::after {
  content: "Lire la suite →";
  font-family: var(--font-body);
  font-size: 0.82rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
:root main:nth-of-type(1):not(:has(> article)) > div > div > a:hover {
  color: var(--color-heading);
}

/* ─── LE HERO — carte n°1 : la voix forte ──────────────────────────────── */
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) {
  border-top: 3px solid var(--color-accent);
  padding: 44px 50px 42px;
  margin-bottom: 72px;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1)::before {
  content: "La dernière récolte";
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > p:first-child::before {
  content: "Par Pascal · ";
  color: var(--color-muted);
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > h2 {
  font-size: 2.2rem;
  line-height: 1.16;
  margin-bottom: 0.9rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > p:last-of-type {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 60ch;
}

/* Lettrine brune — emploi n°1 de la couleur « moment » */
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > p:last-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.8;
  margin: 0.06em 0.12em -0.04em 0;
  color: var(--moment);
}

/* CTA hero — la seule pastille rouille de la page */
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > a {
  border: 1.5px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  color: var(--color-accent);
  margin-top: 1.2rem;
  transition: background 0.18s ease, color 0.18s ease;
}
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > a::after {
  content: "Lire l’article →";
  border-bottom: none;
  padding-bottom: 0;
}
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > a:hover {
  background: var(--color-accent);
  color: #FBF7EF;
}

/* ─── LE CHOIX — carte n°2 : « à commencer par là » ────────────────────── */
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2) {
  border-left: 3px solid var(--color-primary);
}
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2)::before {
  content: "À commencer par là";
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(37, 56, 26, 0.18);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}

/* ─── STRIP 1 « CI-DESSOUS » — bande photo qui ouvre le journal ─────────── */
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(3) {
  position: relative;
  padding-top: 212px;
}
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(3)::before {
  content: "CI-DESSOUS";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 188px;
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/story-cover.jpg") center 30% / cover no-repeat;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F6F0E5;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

/* ─── STRIP 2 « ARTICLES PRÉCÉDENTS » — bande de clôture ────────────────── */
:root main:nth-of-type(1):not(:has(> article))::after {
  content: "ARTICLES PRÉCÉDENTS";
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  height: 210px;
  margin: 48px auto 8px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(rgba(20, 24, 28, 0.50), rgba(20, 24, 28, 0.28)),
    url("/theme-assets/story-cover.jpg") center 70% / cover no-repeat;
  color: #F6F0E5;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

/* Défense : si une liste « archives » nue apparaît en fin de main, on l'habille
   en index magazine 2 colonnes (fond crème, jamais blanc) */
:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type),
:root main:nth-of-type(1):not(:has(> article)) > ul {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 24px 34px;
  columns: 2;
  column-gap: 2.5rem;
}
:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) a,
:root main:nth-of-type(1):not(:has(> article)) > ul a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgba(37, 56, 26, 0.16);
  color: var(--color-heading);
  text-decoration: none;
  font-size: 0.95rem;
  break-inside: avoid;
}

/* Hero en 2 colonnes au-delà de 900px — remplit la colonne droite (équilibre) */
@media (min-width: 901px) {
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    column-gap: 2.6rem;
    align-items: start;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > * {
    grid-column: 1;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > a {
    justify-self: start;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1)::after {
    content: "« On mange du jardin d’avril à novembre — le reste, c’est de la patience et quelques ratés. »";
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--color-primary);
    border-left: 2px solid rgba(37, 56, 26, 0.18);
    padding-left: 1.2rem;
  }
}

/* ─── ARTICLE : titre monumental, chapô, dinkus, guillemet, CTA inline ──── */
:root main:nth-of-type(1):has(> article) {
  padding: 3rem 1.5rem 3.5rem;
}

:root main:nth-of-type(1):has(> article) h1 {
  font-size: 2.7rem;
  line-height: 1.14;
  letter-spacing: -0.005em;
}

/* Byline devant la date, si un <time> est présent */
:root main:nth-of-type(1):has(> article) time {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
:root main:nth-of-type(1):has(> article) time::before {
  content: "Par Pascal Royer · ";
  color: var(--color-accent);
}

:root main:nth-of-type(1):has(> article) article p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 68ch;
}

/* Lettrine du chapô — premier paragraphe (vert, préserve le budget « moment ») */
:root main:nth-of-type(1):has(> article) article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.3rem;
  line-height: 0.8;
  margin: 0.05em 0.1em -0.04em 0;
  color: var(--color-primary);
}

/* Dinkus décoratif avant chaque H2 */
:root main:nth-of-type(1):has(> article) article > h2 {
  margin-top: 2.9em;
  font-size: 1.7rem;
}
:root main:nth-of-type(1):has(> article) article > h2::before {
  content: "✽ ✽ ✽";
  display: block;
  text-align: center;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  opacity: 0.7;
  margin: 0 0 1.1rem;
}

/* Guillemet suspendu sur les citations */
:root main:nth-of-type(1):has(> article) article > blockquote {
  position: relative;
  padding-left: 2.4rem;
}
:root main:nth-of-type(1):has(> article) article > blockquote::before {
  content: "“";
  position: absolute;
  left: 0.55rem;
  top: 0.05em;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.5;
}

/* Liens internes/affiliés dans le corps — pastille de rappel, plus une note perdue */
:root main:nth-of-type(1):has(> article) article p a,
:root main:nth-of-type(1):has(> article) article li a {
  color: var(--color-accent);
  font-weight: 600;
  background: var(--color-surface);
  padding: 0.04em 0.32em;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
:root main:nth-of-type(1):has(> article) article p a:hover,
:root main:nth-of-type(1):has(> article) article li a:hover {
  color: var(--color-link-hover);
}

/* « Articles connexes » — bande de cartes cohérente avec l'accueil */
:root main:nth-of-type(1):has(> article) aside {
  max-width: 820px;
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 2px solid var(--color-border);
}
:root main:nth-of-type(1):has(> article) aside h2,
:root main:nth-of-type(1):has(> article) aside h3,
:root main:nth-of-type(1):has(> article) aside h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}
:root main:nth-of-type(1):has(> article) aside a {
  display: block;
  background: var(--color-surface);
  border: 1px solid rgba(37, 56, 26, 0.12);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
}
:root main:nth-of-type(1):has(> article) aside a:hover {
  color: var(--color-accent);
  border-color: rgba(184, 77, 16, 0.4);
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root body > nav { padding: 2.4rem 1.1rem 2.2rem; }
  :root body > nav h1 { font-size: 1.85rem; }
  :root body > nav > div::before { width: 46px; height: 46px; font-size: 1rem; }

  :root main:nth-of-type(1):not(:has(> article)) { padding: 2.4rem 1rem 2rem; }
  :root main:nth-of-type(1):not(:has(> article)) > div > div { padding: 24px 24px; }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) { padding: 30px 24px; }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > h2 { font-size: 1.75rem; }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1) > p:last-of-type::first-letter { font-size: 2.9rem; }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(3) { padding-top: 170px; }
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(3)::before { height: 148px; letter-spacing: 0.22em; }
  :root main:nth-of-type(1):not(:has(> article))::after { height: 160px; letter-spacing: 0.22em; }

  :root main:nth-of-type(1):has(> article) h1 { font-size: 2rem; }
  :root main:nth-of-type(1):has(> article) article p { font-size: 1.04rem; }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* refix iter1: homepage section bands, second strip position, archive tail */
:root main:nth-of-type(1):not(:has(> article)) > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  align-items: stretch;
}

:root main:nth-of-type(1):not(:has(> article)) > div::before {
  content: "LA DERNIÈRE RÉCOLTE";
  order: -10;
  grid-column: 1 / -1;
  display: block;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(37, 56, 26, 0.18);
  padding-bottom: 0.65rem;
  margin: 0 0 1rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(-n+3) {
  grid-column: 1 / -1;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(1)::before {
  content: none;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2) {
  position: relative;
  margin-top: 44px;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2)::before {
  content: "À COMMENCER PAR LÀ";
  position: absolute;
  top: -44px;
  left: 0;
  right: 0;
  display: block;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(37, 56, 26, 0.18);
  padding-bottom: 0.65rem;
  margin: 0;
}

:root main:nth-of-type(1):not(:has(> article)) > div::after {
  content: "ARTICLES PRÉCÉDENTS";
  order: 10;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  margin: 8px 0 24px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(rgba(20, 24, 28, 0.50), rgba(20, 24, 28, 0.28)),
    url("/theme-assets/story-cover.jpg") center 70% / cover no-repeat;
  color: #F6F0E5;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) {
  order: 20;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  background: var(--color-surface);
  border: 1px solid rgba(37, 56, 26, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 4px rgba(34, 28, 15, 0.05);
  padding: 20px 22px;
  margin: 0 0 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4):hover {
  border-color: rgba(184, 77, 16, 0.35);
  box-shadow: 0 6px 20px rgba(34, 28, 15, 0.12);
  transform: translateY(-2px);
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) > p,
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) > a {
  display: none;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) > h2 {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) > h2 a {
  color: var(--color-heading);
  text-decoration: none;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) > h2 a:hover {
  color: var(--color-accent);
}

:root main:nth-of-type(1):not(:has(> article))::after {
  content: "Conserver les tomates\A Planifier le potager productif\A Garder une pelouse vivante";
  display: block;
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid rgba(37, 56, 26, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 4px rgba(34, 28, 15, 0.05);
  padding: 20px 22px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: pre-line;
  columns: 3;
  column-gap: 16px;
}

:root main:nth-of-type(1):has(> div > div:nth-child(4))::after {
  content: none;
}

@media (max-width: 640px) {
  :root main:nth-of-type(1):not(:has(> article)) > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  :root main:nth-of-type(1):not(:has(> article)) > div::before,
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2)::before {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  :root main:nth-of-type(1):not(:has(> article)) > div::after {
    height: 160px;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
  }

  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4) {
    grid-column: 1;
    padding: 20px 22px;
  }

  :root main:nth-of-type(1):not(:has(> article))::after {
    columns: 1;
    padding: 20px 22px;
  }
}

/* refix iter2: full-row home labels, no generated tail, boxed archive index */
:root main:nth-of-type(1):not(:has(> article)) > div {
  justify-items: stretch;
}

:root main:nth-of-type(1):not(:has(> article)) > div::before,
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2)::before {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: none;
  justify-self: stretch;
  border-bottom: 0;
  background-image: linear-gradient(rgba(37, 56, 26, 0.30), rgba(37, 56, 26, 0.30));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 0.78rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div::before {
  grid-column: 1 / -1;
  margin-bottom: 1.25rem;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2) {
  grid-column: 1 / -1;
  margin-top: 52px;
}

:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2)::before {
  top: -52px;
  left: 0;
  right: 0;
}

:root main:nth-of-type(1):not(:has(> article))::after {
  content: none;
  display: none;
}

:root main:nth-of-type(1):not(:has(> article)) > div:not(:has(> div:nth-child(4)))::after {
  content: none;
  display: none;
}

:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type),
:root main:nth-of-type(1):not(:has(> article)) > ul,
:root main:nth-of-type(1):not(:has(> article)) > section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  max-width: 860px;
  margin: 32px auto 0;
  padding: 0;
  columns: auto;
  column-gap: normal;
  background: transparent;
  border: 0;
  box-shadow: none;
  list-style: none;
}

:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type)::before,
:root main:nth-of-type(1):not(:has(> article)) > ul::before,
:root main:nth-of-type(1):not(:has(> article)) > section::before {
  content: "ARTICLES PRÉCÉDENTS";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  margin: 0 0 24px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(rgba(20, 24, 28, 0.50), rgba(20, 24, 28, 0.28)),
    url("/theme-assets/story-cover.jpg") center 70% / cover no-repeat;
  color: #F6F0E5;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

:root main:nth-of-type(1):not(:has(> article)) > ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
  break-inside: auto;
}

:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) > *,
:root main:nth-of-type(1):not(:has(> article)) > section > * {
  max-width: none;
  margin: 0;
}

:root main:nth-of-type(1):not(:has(> article)) > section > ul,
:root main:nth-of-type(1):not(:has(> article)) > section > ol {
  display: contents;
  padding: 0;
}

:root main:nth-of-type(1):not(:has(> article)) > section > ul > li,
:root main:nth-of-type(1):not(:has(> article)) > section > ol > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) a,
:root main:nth-of-type(1):not(:has(> article)) > ul > li > a,
:root main:nth-of-type(1):not(:has(> article)) > section a,
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4):not(:has(> h2)) > a {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid rgba(37, 56, 26, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 4px rgba(34, 28, 15, 0.05);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.32;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) a:hover,
:root main:nth-of-type(1):not(:has(> article)) > ul > li > a:hover,
:root main:nth-of-type(1):not(:has(> article)) > section a:hover,
:root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(n+4):not(:has(> h2)) > a:hover {
  border-color: rgba(184, 77, 16, 0.35);
  box-shadow: 0 6px 20px rgba(34, 28, 15, 0.12);
  color: var(--color-accent);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  :root main:nth-of-type(1):not(:has(> article)) > div::before,
  :root main:nth-of-type(1):not(:has(> article)) > div > div:nth-child(2)::before {
    letter-spacing: 0.16em;
  }

  :root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type),
  :root main:nth-of-type(1):not(:has(> article)) > ul,
  :root main:nth-of-type(1):not(:has(> article)) > section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  :root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type)::before,
  :root main:nth-of-type(1):not(:has(> article)) > ul::before,
  :root main:nth-of-type(1):not(:has(> article)) > section::before {
    height: 160px;
    letter-spacing: 0.18em;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Kinfolk-minimal overlay=40% grid=mixed scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 40%) ── */
: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.40) 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.40) 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 v2 */
/* premium-upgrade v2 patch — targets top 3 rule failures from v1 batch:
   M10 (article affiliate CTA invisible), M2 (missing homepage section label),
   M11 (dinkus leaking onto article page's first h2). Applied 2026-08-30. */

/* ── 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/"] {
  display: inline-block;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
:root main:has(> h1) a[href^="/try/"]:hover,
:root main:has(> h1) a[href^="/ref/"]:hover,
:root main:has(> h1) a[href^="/go/"]:hover,
:root main:has(> h1) a[href^="/out/"]:hover,
:root main:has(> h1) a[href^="/check/"]:hover,
:root main:has(> h1) a[href^="/view/"]:hover {
  background: var(--accent) !important;
  color: var(--fg) !important;
}

/* ── M2: homepage section label (only shows on home, not article) ── */
:root main:not(:has(> h1))::before {
  content: "LATEST";
  display: block;
  font-family: var(--fs, var(--fb, "PT Sans"), system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  color: var(--fg);
}

/* ── M11: prevent dinkus leaking onto FIRST h2 of article page ──
   The v1 selector `h2 + p ~ h2::before` should already exclude the first h2,
   but some Astro templates render article body differently. Belt-and-braces:
   explicitly kill the pseudo on first-of-type. */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}


/* 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;
}

