*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.7;color:#111;background:#fff}
.sc-LwhdMe{max-width:900px;margin:0 auto;padding:0 28px}
.sc-IDKrTL{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.sc-IDKrTL h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.sc-IDKrTL p{font-size:18px;opacity:.7}
.sc-IDKrTL a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.sc-oRvbtM{padding:0}
.sc-pIbFtn{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.sc-pIbFtn h2{font-size:24px;font-weight:700;margin-bottom:6px}
.sc-pIbFtn h2 a{color:#111;text-decoration:none}
.sc-pIbFtn h2 a:hover{text-decoration:underline}
.sc-pIbFtn .sc-WFbQbS{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.sc-pIbFtn p{font-size:15px;color:#444;margin-bottom:10px}
.sc-urLDpu{display:inline-block;background:#111;color:#fff;padding:8px 20px;font-size:13px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:1px}
.sc-urLDpu:hover{background:#333}
.sc-irwtbn{padding-bottom:60px}
.sc-irwtbn h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.sc-irwtbn time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.sc-irwtbn h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.sc-irwtbn h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.sc-irwtbn p{margin-bottom:18px;font-size:17px}
.sc-irwtbn ul,.sc-irwtbn ol{margin:0 0 18px 24px}
.sc-irwtbn a{color:#111;font-weight:600;text-decoration:underline}
.sc-irwtbn img{max-width:100%;height:auto;margin:20px 0}
.sc-FHZpVf{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.sc-FHZpVf a{color:#888;text-decoration:none}
.sc-VVWMVG{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.sc-DGxUjI{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.sc-LripKm{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;letter-spacing:1px;margin:-20px 0 28px;padding-left:12px;border-left:2px solid #ccc}
.sc-yUGubQ{margin:0 0 24px}
.sc-olXgBr{width:100%;height:auto;border-radius:0}
.sc-EXalwX{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.sc-EXalwX h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.sc-EXalwX ul{list-style:none;padding:0}
.sc-EXalwX li{padding:6px 0}
.sc-EXalwX a{color:#111;text-decoration:underline;font-weight:600}
.sc-qKbPeZ{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.sc-qKbPeZ ul{list-style:none;padding:0}
.sc-qKbPeZ li{padding:6px 0;font-size:16px}
.sc-qKbPeZ a{color:#111;text-decoration:none;font-weight:600}
.sc-qKbPeZ a:hover{text-decoration:underline}
.sc-qKbPeZ .sc-WFbQbS{margin:0 0 0 8px}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;700&display=swap');
body{font-family:'Inter',sans-serif;color:#2d2d2d;background:#fdfdfd}
.sc-IDKrTL{background:#1e415e;color:#fff}
.sc-IDKrTL h1{font-family:'Fira Code',serif;color:#fff}
.sc-IDKrTL p{color:rgba(255,255,255,.75)}
.sc-IDKrTL a{color:#fff;text-decoration:none}
.card h2{font-family:'Fira Code',serif}
.card h2 a{color:#1e415e}
.card h2 a:hover{color:#ffd43b}
.read-more{color:#ffd43b}
.article-content h1{font-family:'Fira Code',serif}
.article-content h2{font-family:'Fira Code',serif}
.article-content a{color:#ffd43b}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
/* v.8edde2 — layout revision */

/* py-python-fr — custom.css — Mon Labo Python
   Le carnet d'une grande débutante qui apprend Python le soir, à la table de
   la cuisine — Pauline, Clermont-Ferrand. Editorial signature pass.

   DOM is a styled-components build (.sc-xxxxxx classes — never target by name).
   Every scoped rule keeps a :root prefix so it out-specifies the template's
   single-class rules (.sc-pIbFtn / .sc-WFbQbS / .sc-urLDpu = 0,1,0 / 0,2,0).
   Without it the whole pass loses to the base CSS and nothing renders.

   Homepage  main:has(> div > h2)   flat feed of entry cards (each .sc-pIbFtn)
     > div:first-child              hero — the loud voice
     > div:nth-child(2..4)          « À lire d'abord » picks band (3 across)
     > div:nth-child(5)             journal lead + "CI-DESSOUS" photo strip
     > div:nth-child(n+6):has(>h2)  chronological grid (2 across)
     > div:last-child (has > ul)    compact archive tail + "VOIR TOUT" strip
   Article   main:has(> article)    hgroup + article + related aside (> div)

   Signature: the Python prompt « >>> » (les trois petits chevrons) — masthead
   sign-off + section dinkus on article pages.
   Moment colour --moment (#8C4A00) in TWO roles only: drop caps + Picks label.
   Third voice --font-meta (Karla, tracked caps) carries kickers/meta only. */

/* ---- Webfonts (declared, not @import — the concatenated @import is dropped) - */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9H6as8bTXq_nANBjzKo3IeZx8z6up5BeSl5jBNz_19PpbpMXuECpwUxJBOm_OJWiawA1XphjhQYg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9H6as8bTXq_nANBjzKo3IeZx8z6up5BeSl5jBNz_19PpbpMXuECpwUxJBOm_OJWiawDVXphjhQYrcK.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkB9XvYC6trAT55ZBi1ueQVIjQTD-JrIH2G7nytkHRyQ8p4wUje6bmMorHA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkB9XvYC6trAT55ZBi1ueQVIjQTD-JrIH2G7nytkHRyQ8p4wUjm6bmMorHBiTg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkBKXvYC6trAT7RQNNK2EG7SIwPWMNlCV3lIb7P1HgGQ4tc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Palette + tokens -------------------------------------------------- */
:root {
  --primary:    #4A3526;   /* espresso */
  --primary-dark: #2E2015;
  --accent:     #B8791A;   /* honey — hovers, rails, dinkus */
  --accent-soft:#E0A339;
  --moment:     #8C4A00;   /* moment colour — 2 places only */
  --bg:         #FBF6EC;
  --paper:      #FAF5EC;   /* warm card surface (never #fff) */
  --paper2:     #F8F2E6;   /* hero surface */
  --bg-alt:     #F3E9D8;   /* picks band tint, blockquote */
  --fg:         #3A2E22;
  --ink:        #2E2015;
  --muted:      #6E5A45;
  --border:     #E4D6C0;
  --r:          10px;
  --font-heading: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Karla', 'Segoe UI', system-ui, sans-serif;
  --font-meta:    'Karla', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--fg);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background-color: rgba(184, 121, 26, 0.20); color: var(--fg); }

/* ---- Base typography --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.24;
  color: var(--primary);
}
p { margin: 0 0 1.3em; max-width: 68ch; }
a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184, 121, 26, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--accent); }
strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }
ul, ol { padding-left: 1.55em; margin-bottom: 1.25em; max-width: 68ch; }
li { margin-bottom: 0.45em; line-height: 1.65; }
li::marker { color: var(--accent); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--bg-alt);
  color: var(--primary-dark);
  padding: 0.14em 0.4em;
  border-radius: 5px;
}
pre {
  background-color: var(--primary-dark);
  color: #F3E9D8;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 1.7em 0;
  line-height: 1.6;
  border-left: 4px solid var(--accent);
}
pre code { background: none; color: inherit; padding: 0; font-size: 0.92em; }

/* ======================================================================== */
/*  MASTHEAD  —  body > div:first-child  (.sc-IDKrTL)                        */
/*  homepage :has(> div > h1)  ·  article :has(> div > a)                    */
/* ======================================================================== */
:root body > div:first-child {
  position: relative;
  max-width: none;
  margin: 0;
  background:
    linear-gradient(175deg, rgba(46, 32, 21, 0.60) 0%, rgba(46, 32, 21, 0.80) 100%),
    url("/theme-assets/site-hero.jpg") center 42% / cover no-repeat;
  color: #FBF6EC;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

/* Homepage — tall wordmark with kicker, manifesto + « >>> » sign-off */
:root body > div:first-child:has(> div > h1) { padding: 4.6rem 1.5rem 3.6rem; }

:root body > div:first-child:has(> div > h1) > div::before {
  content: "CLERMONT-FERRAND · CARNET D'APPRENTISSAGE";
  display: block;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.82);
  margin-bottom: 1.05rem;
}

:root body > div:first-child h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #FDF8EF;
  margin: 0;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.38);
}

:root body > div:first-child p {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04rem;
  line-height: 1.62;
  color: rgba(251, 246, 236, 0.92);
  max-width: 52ch;
  margin: 1.05rem auto 0;
}

/* the signature — Python prompt, honey, quietly under the manifesto */
:root body > div:first-child:has(> div > h1) > div::after {
  content: ">>>";
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--accent-soft);
  margin: 1.5rem 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Article / static pages — slim wordmark bar on the same photo band */
:root body > div:first-child:has(> div > a) { padding: 1.7rem 1.5rem; }

:root body > div:first-child > div > a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: #FDF8EF;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
:root body > div:first-child > div > a::after {
  content: " >>>";
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
}
:root body > div:first-child > div > a:hover { color: #FFFFFF; }

/* ======================================================================== */
/*  HOMEPAGE FEED  —  main:has(> div > h2)  (.sc-oRvbtM)                      */
/* ======================================================================== */
:root main:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 1.8rem;
  row-gap: 2.6rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.6rem 1.5rem 2.4rem;
}

/* ---- Base card (all entry cards; tail excluded via :has(> h2)) --------- */
:root main:has(> div > h2) > div:has(> h2) {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(74, 53, 38, 0.10);
  border-radius: var(--r);
  padding: 26px 32px 28px;
  margin: 0;
  box-shadow: 0 1px 4px rgba(46, 32, 21, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
:root main:has(> div > h2) > div:has(> h2):hover {
  box-shadow: 0 8px 22px rgba(74, 53, 38, 0.13);
  transform: translateY(-2px);
}

/* date kicker */
:root main:has(> div > h2) > div:has(> h2) > p:first-child {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

/* headline */
:root main:has(> div > h2) > div:has(> h2) > h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.26;
  margin: 0 0 0.55rem;
}
:root main:has(> div > h2) > div:has(> h2) > h2 a {
  color: var(--primary);
  text-decoration: none;
}
:root main:has(> div > h2) > div:has(> h2) > h2 a:hover { color: var(--accent); }

/* excerpt — clamped to 3 lines so a row stays even (RULE D) */
:root main:has(> div > h2) > div:has(> h2) > p:nth-of-type(2) {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA — outlined pill, pinned to the card foot */
:root main:has(> div > h2) > div:has(> h2) > a {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
:root main:has(> div > h2) > div:has(> h2) > a:hover {
  background: var(--primary);
  color: var(--paper);
}

/* ---- HERO — first entry, full width, the loud voice -------------------- */
:root main:has(> div > h2) > div:first-child {
  grid-column: 1 / -1;
  position: relative;
  background: var(--paper2);
  border: 1px solid rgba(74, 53, 38, 0.10);
  border-top: 4px solid var(--primary);
  border-radius: var(--r);
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: 0 10px 32px rgba(74, 53, 38, 0.12);
}
:root main:has(> div > h2) > div:first-child::before {
  content: "LA DERNIÈRE ENTRÉE DU CARNET";
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}
:root main:has(> div > h2) > div:first-child > p:first-child { color: var(--muted); }

:root main:has(> div > h2) > div:first-child > h2 {
  font-size: clamp(1.95rem, 4vw, 2.85rem);
  line-height: 1.08;
  margin: 0.2rem 0 0;
}

/* byline fills the row (RULE 4 — no dead right column) */
:root main:has(> div > h2) > div:first-child > h2::after {
  content: "PAR PAULINE · À LA TABLE DE LA CUISINE";
  display: block;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.95rem;
}

/* hero excerpt — no clamp, larger measure, with drop cap */
:root main:has(> div > h2) > div:first-child > p:nth-of-type(2) {
  font-family: var(--font-body);
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--fg);
  margin-top: 1.1rem;
  max-width: 62ch;
  display: block;
  overflow: visible;
  -webkit-line-clamp: none;
}
/* drop cap — moment colour, role 1 of 2 */
:root main:has(> div > h2) > div:first-child > p:nth-of-type(2)::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.82;
  color: var(--moment);
  margin: 0.06em 0.12em 0 0;
}

/* hero CTA — filled pill */
:root main:has(> div > h2) > div:first-child > a {
  margin-top: 1.35rem;
  background: var(--primary);
  color: var(--paper);
  border-color: var(--primary);
  padding: 0.72rem 1.8rem;
  font-size: 0.72rem;
}
:root main:has(> div > h2) > div:first-child > a:hover {
  background: transparent;
  color: var(--primary);
}

/* ---- « À LIRE D'ABORD » picks band — entries 2–4, three across --------- */
:root main:has(> div > h2) > div:nth-child(2),
:root main:has(> div > h2) > div:nth-child(3),
:root main:has(> div > h2) > div:nth-child(4) {
  grid-column: span 2;
  background: var(--bg-alt);
  border-color: rgba(184, 121, 26, 0.22);
  margin-top: 3.2rem;
}
:root main:has(> div > h2) > div:nth-child(2) { position: relative; }

/* full-row section label above the band (RULE B) — spans all 6 cols */
:root main:has(> div > h2) > div:nth-child(2)::before {
  content: "À LIRE D'ABORD — POUR BIEN DÉMARRER";
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.85rem);
  width: calc(300% + 3.6rem);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(140, 74, 0, 0.32);
  font-family: var(--font-meta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moment);            /* moment colour, role 2 of 2 */
}

/* ---- STRIP 1 + JOURNAL LEAD — entry 5, full width ---------------------- */
:root main:has(> div > h2) > div:nth-child(5) {
  grid-column: 1 / -1;
  margin-top: 3.6rem;
  padding-top: 0;
  overflow: hidden;
}
/* photo band break (RULE F, strip 1) — "CI-DESSOUS" */
:root main:has(> div > h2) > div:nth-child(5)::before {
  content: "CI-DESSOUS";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin: -26px -32px 26px;
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/story-bg.jpg") center 30% / cover no-repeat;
  border-radius: var(--r) var(--r) 0 0;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FBF8F2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ---- CHRONOLOGICAL grid — entries 6+, two across ----------------------- */
:root main:has(> div > h2) > div:has(> h2):nth-child(n+6) { grid-column: span 3; }

/* ---- COMPACT ARCHIVE TAIL — last child (.sc-qKbPeZ, has > ul) ---------- */
:root main:has(> div > h2) > div:last-child {
  grid-column: 1 / -1;
  position: relative;
  max-width: none;
  margin-top: 3.6rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
/* photo band break (RULE F, strip 2) — "VOIR TOUT" */
:root main:has(> div > h2) > div:last-child::before {
  content: "VOIR TOUT";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 40px;
  border-radius: var(--r);
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/story-bg.jpg") center 70% / cover no-repeat;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FBF8F2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
/* tail = magazine index of boxed cream cards, SAME design system as the top
   journal cards (RULE M7 design-parity): paper surface, hairline border,
   soft radius, subtle shadow, hover lift — just smaller/tighter. Grid so
   cells stretch to equal height per row. */
:root main:has(> div > h2) > div:last-child ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}
:root main:has(> div > h2) > div:last-child li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid rgba(74, 53, 38, 0.10);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(46, 32, 21, 0.05);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
:root main:has(> div > h2) > div:last-child li:hover {
  box-shadow: 0 8px 22px rgba(74, 53, 38, 0.13);
  transform: translateY(-2px);
}
:root main:has(> div > h2) > div:last-child li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
:root main:has(> div > h2) > div:last-child li a:hover {
  color: var(--accent);
  text-decoration: underline;
}
:root main:has(> div > h2) > div:last-child li span {
  display: block;
  font-family: var(--font-meta);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* ======================================================================== */
/*  ARTICLE PAGE  —  main:has(> article)  (.sc-irwtbn)                       */
/* ======================================================================== */
:root main:has(> article) {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.9rem 1.5rem 1.5rem;
}

:root main:has(> article) > hgroup { margin-bottom: 1.9rem; }
:root main:has(> article) > hgroup h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--primary);
  margin: 0 0 0.7rem;
}
:root main:has(> article) > hgroup time {
  display: block;
  margin: 0;
  opacity: 1;
  font-family: var(--font-meta);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
/* persona anchor — byline + location under the date (RULE S6), no longer a
   bare date-only meta line */
:root main:has(> article) > hgroup time::after {
  content: "PAR PAULINE · CLERMONT-FERRAND";
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

:root main:has(> article) > article > p {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 1.3em;
  max-width: none;
}
/* drop cap on the opening paragraph — moment colour (same role as hero) */
:root main:has(> article) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 0.78;
  color: var(--moment);
  margin: 0.04em 0.12em 0 0;
}

/* section headings + « >>> » Python-prompt dinkus (signature) */
:root main:has(> article) > article > h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  margin: 2.5em 0 0.6em;
  padding: 0;
  border: none;
}
:root main:has(> article) > article > h2::before {
  content: ">>>";
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 auto 0.9em;
  opacity: 0.9;
}
:root main:has(> article) > article > h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.9em 0 0.5em;
}

/* body links — warm underline; external → arrow */
:root main:has(> article) > article a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 121, 26, 0.5);
  padding-bottom: 1px;
}
:root main:has(> article) > article a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
:root main:has(> article) > article a[href^="http"]::after {
  content: "↗";
  font-size: 0.72em;
  vertical-align: super;
  margin-left: 0.12em;
  color: var(--accent);
}

/* affiliate CTAs (/try/…) — distinct filled pill/button, clearly set apart
   from inline prose links so a course recommendation reads as an action, not
   a footnote (RULE M10). Full element path + attribute so it strictly beats
   the body-link rule (RULE J). */
:root main:has(> article) > article > p a[href^="/try/"],
:root main:has(> article) > article > ul a[href^="/try/"],
:root main:has(> article) > article > ol a[href^="/try/"] {
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--paper);
  background: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.32em 1em;
  margin: 0.12em 0.15em;
  vertical-align: baseline;
  box-shadow: 0 1px 3px rgba(46, 32, 21, 0.14);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
:root main:has(> article) > article > p a[href^="/try/"]:hover,
:root main:has(> article) > article > ul a[href^="/try/"]:hover,
:root main:has(> article) > article > ol a[href^="/try/"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
/* the external-arrow rule must not double up on affiliate links */
:root main:has(> article) > article > p a[href^="/try/"]::after,
:root main:has(> article) > article > ul a[href^="/try/"]::after,
:root main:has(> article) > article > ol a[href^="/try/"]::after { content: none; }

/* blockquote — hanging quote mark */
:root main:has(> article) > article blockquote {
  position: relative;
  margin: 2em 0;
  padding: 0.6em 1.6em 0.6em 2.3em;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-style: italic;
  color: var(--muted);
  border-radius: 0 var(--r) var(--r) 0;
}
:root main:has(> article) > article blockquote::before {
  content: "\00201C";
  position: absolute;
  left: 0.4rem;
  top: 0.14em;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}
:root main:has(> article) > article blockquote p { max-width: none; margin-bottom: 0; }

/* imagery */
:root main:has(> article) > article img {
  width: 100%;
  border-radius: var(--r);
  margin: 1.8em 0;
}
:root main:has(> article) > article > section:first-child img {
  max-height: 380px;
  object-fit: cover;
  margin: 0 0 0.6em;
}

/* related aside — "À lire aussi" with espresso rail */
:root main:has(> article) > div:last-child {
  max-width: none;
  border-left: 4px solid var(--primary);
  padding: 0.4rem 0 0.4rem 24px;
  margin-top: 3rem;
}
:root main:has(> article) > div:last-child h3 {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.9rem;
}
:root main:has(> article) > div:last-child ul { list-style: none; padding: 0; margin: 0; }
:root main:has(> article) > div:last-child li {
  padding: 7px 0;
  margin: 0;
  border-bottom: 1px dotted rgba(74, 53, 38, 0.14);
}
:root main:has(> article) > div:last-child a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}
:root main:has(> article) > div:last-child a:hover { color: var(--accent); text-decoration: underline; }

/* ======================================================================== */
/*  FOOTER  —  footer (.sc-FHZpVf)                                           */
/* ======================================================================== */
:root footer {
  background-color: var(--primary-dark);
  color: #D6C3AD;
  padding: 2.4rem 1.5rem;
  text-align: center;
  font-size: 0.84rem;
  margin-top: 4rem;
}
:root footer a { color: #EBD9BF; text-decoration: underline; }
:root footer a:hover { color: #FBF6EC; }

/* ======================================================================== */
/*  RESPONSIVE                                                              */
/* ======================================================================== */
@media (max-width: 760px) {
  html { font-size: 16px; }

  :root main:has(> div > h2) {
    grid-template-columns: 1fr;
    row-gap: 1.7rem;
    padding: 2.4rem 1.1rem;
  }
  :root main:has(> div > h2) > div:first-child,
  :root main:has(> div > h2) > div:nth-child(2),
  :root main:has(> div > h2) > div:nth-child(3),
  :root main:has(> div > h2) > div:nth-child(4),
  :root main:has(> div > h2) > div:nth-child(5),
  :root main:has(> div > h2) > div:has(> h2):nth-child(n+6),
  :root main:has(> div > h2) > div:last-child { grid-column: 1 / -1; }

  /* section label spans one column now */
  :root main:has(> div > h2) > div:nth-child(2)::before { width: 100%; }

  :root main:has(> div > h2) > div:nth-child(3),
  :root main:has(> div > h2) > div:nth-child(4) { margin-top: 0; }

  :root main:has(> div > h2) > div:last-child ul { columns: 1; }

  :root body > div:first-child:has(> div > h1) { padding: 3.2rem 1.2rem 2.6rem; }
}


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


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Monocle-Swiss overlay=25% grid=mixed scale=dramatic family=flat-divs */


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

/* ── flat-divs family: cards 5 & 6 also get photo headers ── */
:root main:not(:has(> h1)) > div:nth-of-type(5) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-1.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(6) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-2.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: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: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: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: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))::before,
  :root main:not(:has(> h1))::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;
}

