*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.sc-YeqQwg{max-width:860px;margin:0 auto;padding:0 20px}
.sc-ADTNGW{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.sc-ADTNGW h1{font-size:22px;font-weight:700;margin-bottom:2px}
.sc-ADTNGW p{font-size:14px;color:#666}
.sc-ADTNGW a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.sc-RqAKGg{display:flex;flex-direction:column;gap:20px}
.sc-OgrYNQ{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.sc-OgrYNQ:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.sc-OgrYNQ h2{font-size:19px;margin-bottom:6px}
.sc-OgrYNQ h2 a{color:#1a1a1a;text-decoration:none}
.sc-OgrYNQ .sc-pEWJkD{font-size:12px;color:#999;margin-bottom:8px}
.sc-OgrYNQ p{font-size:14px;color:#555;margin-bottom:12px}
.sc-CmHFSJ{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.sc-CmHFSJ:hover{background:#4752c4}
.sc-bKCGct{padding-bottom:60px}
.sc-bKCGct h1{font-size:30px;font-weight:700;margin-bottom:8px}
.sc-bKCGct time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.sc-bKCGct h2{font-size:22px;margin:32px 0 12px}
.sc-bKCGct h3{font-size:18px;margin:24px 0 8px}
.sc-bKCGct p{margin-bottom:16px}
.sc-bKCGct ul,.sc-bKCGct ol{margin:0 0 16px 24px}
.sc-bKCGct a{color:#5865f2}
.sc-bKCGct img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.sc-NRUduQ{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.sc-NRUduQ a{color:#999;text-decoration:none}
.sc-XmrZqj{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.sc-JHzOhz{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.sc-uWdLCu{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.sc-EvywLa{text-align:center;margin:0 0 24px}
.sc-hPniYl{max-width:100%;height:auto;border-radius:12px}
.sc-dKXkfS{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.sc-dKXkfS h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.sc-Gvmljo{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.sc-sycPhE{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.sc-sycPhE:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Cinzel:wght@400;700&display=swap');
body{font-family:'Lora',sans-serif;color:#1F1F1F;background:#FDFBF7}
.sc-ADTNGW{background:#2C1B3D;color:#fff}
.sc-ADTNGW h1{font-family:'Cinzel',serif;color:#fff}
.sc-ADTNGW p{color:rgba(255,255,255,.75)}
.sc-ADTNGW a{color:#fff;text-decoration:none}
.card h2{font-family:'Cinzel',serif}
.card h2 a{color:#2C1B3D}
.card h2 a:hover{color:#D4AF37}
.read-more{color:#D4AF37}
.article-content h1{font-family:'Cinzel',serif}
.article-content h2{font-family:'Cinzel',serif}
.article-content a{color:#D4AF37}
.article-content img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* v.c67737 — layout revision */
/*
 * nm-numero-fr — Mon Chemin des Nombres
 * Palette : encre-cuivre (ink navy + copper) on warm parchment,
 *           with a single brick-red "moment" (#8B2E2E) for arcana accents.
 * Fonts   : Frank Ruhl Libre (display/serif) + Karla (body/meta)
 * Template: card  ·  DOM verified against live prod (mon-chemin-des-nombres.pages.dev)
 *   home    : body>header · main>div:first-of-type (grid) >div (cards) · main>div:last (tail)
 *   article : main:has(>article) > h1 + time + article + div (related)
 * All selectors are element/structural — class hashes (.sc-xxxx) drift per build.
 */

/* ─── Webfonts (@font-face — @import is dropped post-concat, see pipeline notes) ─── */
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/frankruhllibre/v23/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Dl4Q.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: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/frankruhllibre/v23/j8_w6_fAw7jrcalD7oKYNX0QfAnPW77l4ajn.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,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 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkB9XvYC6trAT55ZBi1ueQVIjQTD-JrIH2G7nytkHRyQ8p4wUje6bg.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 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkB9XvYC6trAT55ZBi1ueQVIjQTD-JrIH2G7nytkHRyQ8p4wUjm6bnEr.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --color-bg:           #F3ECDB;
  --color-card:         #FBF7EE;   /* warm off-white — never pure #fff */
  --color-surface:      #EDE2CB;
  --color-surface-alt:  #E3D5B4;
  --color-text:         #2A2E45;
  --color-text-muted:   #6B6455;
  --color-heading:      #1D2135;
  --color-accent:       #B0601D;   /* copper — everyday accent */
  --color-accent-hover: #8F4E18;
  --color-accent-light: #D89B5C;
  --color-moment:       #8B2E2E;   /* brick-red — arcana "moment", max 2 uses */
  --color-border:       #D9CBA8;

  --font-heading: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --font-body:    'Karla', system-ui, -apple-system, sans-serif;

  --border-radius:     8px;
  --max-width-layout:  980px;
  --colgap:            1.6rem;
}

/* ─── Base ──────────────────────────────────────────────────── */
:root body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root main {
  max-width: var(--max-width-layout);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── Headings ──────────────────────────────────────────────── */
:root h1, :root h2, :root h3, :root h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.22;
  margin: 0 0 0.55em;
  letter-spacing: 0;
}
:root h1 { font-size: 2.3rem; }
:root h2 { font-size: 1.7rem; }
:root h3 { font-size: 1.3rem; }

/* ─── Paragraphs / lists ────────────────────────────────────── */
:root article p { max-width: 66ch; line-height: 1.78; }
:root article ul, :root article ol { max-width: 66ch; padding-inline-start: 1.5rem; }
:root article li { margin-block: 0.4rem; line-height: 1.75; }
:root ul li::marker { color: var(--color-accent); }
:root ol li::marker { color: var(--color-accent); font-family: var(--font-heading); }

/* ─── Links ─────────────────────────────────────────────────── */
:root a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-light);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
:root a:hover { color: var(--color-accent-hover); text-decoration-color: var(--color-accent-hover); }

/* ─── Blockquote (article) — hanging quote ──────────────────── */
:root blockquote {
  position: relative;
  max-width: 66ch;
  margin: 1.9rem 0;
  padding: 1.15rem 1.5rem 1.15rem 2.6rem;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.6;
}
:root blockquote p { margin: 0; max-width: none; }
:root blockquote::before {
  content: "\201C";
  position: absolute; top: .1rem; left: .7rem;
  font-family: var(--font-heading);
  font-size: 2.7rem; line-height: 1;
  color: var(--color-accent-light);
}

/* ════════════════════════════════════════════════════════════
   MASTHEAD  (body > header, shared home + article)
   ════════════════════════════════════════════════════════════ */
:root body > header {
  position: relative;
  max-width: none;
  background-color: var(--color-heading);
  background-image:
    linear-gradient(150deg, rgba(20,23,38,.78), rgba(29,33,53,.90)),
    url("/theme-assets/top-image.jpg");
  background-size: cover;
  background-position: center 62%;
  border-bottom: 4px solid var(--color-moment);   /* moment use #1 */
  padding-block: 2.2rem;
  text-align: center;
  box-shadow: none;
}
:root body > header > div {
  max-width: var(--max-width-layout);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
/* home masthead runs taller than the compact article back-bar */
:root body > header > div:has(> h1) { padding-block: 1.4rem 0.4rem; }

/* kicker above the wordmark (home only) */
:root body > header > div:has(> h1)::before {
  content: "Numérologie \0000B7\0000A0Tarot de Marseille";
  display: block;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: .85rem;
}
:root body > header h1 {
  font-family: var(--font-heading);
  font-style: italic; font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 3.1rem);
  line-height: 1.1;
  color: #F5EFE1;
  margin: 0;
}
/* manifesto line */
:root body > header p {
  max-width: 52ch;
  margin: .75rem auto 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem; line-height: 1.55;
  color: rgba(245,239,225,.82);
}
/* ✦ signature dinkus */
:root body > header > div:has(> h1)::after {
  content: "\2726";
  display: block; margin-top: .9rem;
  font-size: .8rem; color: var(--color-accent-light);
}
/* article back-wordmark (header span a) */
:root body > header span a {
  font-family: var(--font-heading);
  font-style: italic; font-size: 1.5rem;
  color: #F5EFE1; text-decoration: none;
}
:root body > header span a:hover { color: var(--color-accent-light); }

/* ════════════════════════════════════════════════════════════
   HOMEPAGE FEED  —  hero → picks → featured break → journal
   grid wrapper = main:not(:has(>article)) > div:first-of-type
   ════════════════════════════════════════════════════════════ */
:root main:not(:has(> article)) > div:first-of-type {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3.25rem var(--colgap);
  margin-block: 3.25rem 4rem;
  counter-reset: pick;
}

/* — shared card shell (RULE C/E: soft frame, generous padding) — */
:root main:not(:has(> article)) > div:first-of-type > div {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background-color: var(--color-card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 4px rgba(29,33,53,.05);
  padding: 26px 34px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
:root main:not(:has(> article)) > div:first-of-type > div:hover {
  box-shadow: 0 6px 22px rgba(29,33,53,.10);
  transform: translateY(-2px);
}

/* date kicker */
:root main:not(:has(> article)) > div:first-of-type > div > p:first-child {
  order: -1;
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 .55rem; max-width: none;
}
/* title */
:root main:not(:has(> article)) > div:first-of-type > div > h2 {
  font-size: 1.2rem; line-height: 1.3; margin: 0 0 .6rem;
}
:root main:not(:has(> article)) > div:first-of-type > div > h2 a {
  color: var(--color-heading); text-decoration: none;
}
:root main:not(:has(> article)) > div:first-of-type > div > h2 a:hover { color: var(--color-accent); }
/* excerpt (RULE D: clamp to normalise heights, RULE H: breathing) */
:root main:not(:has(> article)) > div:first-of-type > div > p:nth-of-type(2) {
  flex: 1 1 auto;
  font-size: .96rem; line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 1.15rem; max-width: 62ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* CTA — quiet text link, relabelled to French */
:root main:not(:has(> article)) > div:first-of-type > div > a[href] {
  align-self: flex-start; margin-top: auto;
  padding: 0; background: transparent;
  color: var(--color-accent); font-size: 0; text-decoration: none;
}
:root main:not(:has(> article)) > div:first-of-type > div > a[href]::after {
  content: "Lire \2192";
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
:root main:not(:has(> article)) > div:first-of-type > div > a[href]:hover::after { text-decoration: underline; }

/* ── HERO (card 1): the loud voice, full width ── */
:root main:not(:has(> article)) > div:first-of-type > div:first-child {
  grid-column: 1 / -1;
  border-top: 3px solid var(--color-accent);
  padding: 40px 46px 44px;
  margin-bottom: 2.6rem;   /* room for the picks label in the gap */
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child {
  color: var(--color-text-muted);
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child::before {
  content: "Dernier billet \0000B7\0000A0";
  color: var(--color-moment); font-weight: 700;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > h2 {
  font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; margin: .1rem 0 .7rem;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2) {
  font-family: var(--font-heading);
  font-size: 1.2rem; line-height: 1.55;
  color: var(--color-text); max-width: 64ch;
  -webkit-line-clamp: 4;
}
/* drop cap — moment use #2 */
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2)::first-letter {
  float: left;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 3.6rem; line-height: .82;
  padding: .04em .12em 0 0;
  color: var(--color-moment);
}
/* hero CTA → outlined pill */
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a[href] {
  margin-top: 1.4rem;
  padding: .6rem 1.6rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a[href]::after { content: "Lire le billet \2192"; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a[href]:hover { background: var(--color-accent); }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a[href]:hover::after { color: var(--color-card); }

/* section label above the picks row — spans full width (host is full-width hero) */
:root main:not(:has(> article)) > div:first-of-type > div:first-child::after {
  content: "\0000C0\0000A0lire d'abord \002014\0000A0pour commencer";
  position: absolute; left: 0; right: 0;
  top: calc(100% + 1.05rem);
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-accent);
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--color-border);
}

/* ── ÉDITOR'S PICKS band (cards 2–4): 3-up, tinted, roman numerals ── */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2),
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(3),
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) {
  grid-column: span 2;
  background-color: var(--color-surface);
  border-color: var(--color-surface-alt);
}
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before,
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(3)::before,
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4)::before {
  counter-increment: pick;
  content: "N\00B0 " counter(pick, upper-roman);
  order: -2;
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.5rem; line-height: 1;
  color: var(--color-moment);       /* moment: arcana numerals */
  margin-bottom: .5rem;
}

/* ── STRIP 1 (card 5): hero-photo section break — centered uppercase label, not a left feature (RULE M6) ── */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) {
  grid-column: 1 / -1;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  padding: 34px 42px 36px;
  color: #F5EFE1;
  background-color: var(--color-heading);
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.35)),
    url("/theme-assets/story-bg.jpg");
  background-size: cover;
  background-position: center 30%;
}
/* label row: hide the date text node, render the section label via ::before (matches Strip 2) */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) > p:first-child {
  margin: 0;
  font-size: 0;
}
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) > p:first-child::before {
  content: "Au fil des semaines";
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: #F5EFE1;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
/* a section break carries no headline/excerpt/CTA — hide the feature content */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) > h2,
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) > p:nth-of-type(2),
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) > a[href] {
  display: none;
}

/* ════════════════════════════════════════════════════════════
   COMPACT TAIL  (home only, last div child of main) + STRIP 2
   ════════════════════════════════════════════════════════════ */
:root main:not(:has(> article)) > div:not(:first-of-type) {
  max-width: none;
  width: 100%;
  margin: 0 auto 3.5rem;
  padding: 0;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  align-items: stretch;
}
/* Strip 2 — "TOUT LIRE" photo band between the journal and the archive (spans the full row) */
:root main:not(:has(> article)) > div:not(:first-of-type)::before {
  content: "Tout lire";
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  margin-bottom: 1.4rem;
  border-radius: var(--border-radius);
  background-color: var(--color-heading);
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.30)),
    url("/theme-assets/story-bg.jpg");
  background-size: cover;
  background-position: center 72%;
  color: #F5EFE1;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
/* archive index — boxed cream cards, magazine index; same design system as the top-half cards (RULE M7 parity) */
:root main:not(:has(> article)) > div:not(:first-of-type) > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 1.02rem; font-weight: 500; line-height: 1.4;
  color: var(--color-heading);
  background-color: var(--color-card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 4px rgba(29,33,53,.05);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
:root main:not(:has(> article)) > div:not(:first-of-type) > a:hover {
  color: var(--color-accent);
  box-shadow: 0 6px 22px rgba(29,33,53,.10);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   ARTICLE PAGE  (main:has(> article))
   ════════════════════════════════════════════════════════════ */
:root main:has(> article) > h1 {
  font-size: clamp(2rem, 5vw, 2.95rem); line-height: 1.14;
  margin: 2.2rem 0 .4rem; max-width: 20ch;
}
:root main:has(> article) > time {
  display: block;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.8rem;
}
/* S6 — persona/column anchor next to the date (reinforces persona; no fabricated byline or reading-time) */
:root main:has(> article) > time::after {
  content: " \0000B7\0000A0Chronique num\0000E9rologique";
  color: var(--color-text-muted);
}
:root main:has(> article) > article { font-size: 18.5px; line-height: 1.8; }
:root article img, :root article > div[role="img"] img { border-radius: var(--border-radius); max-width: 100%; height: auto; }

/* intro drop cap (first paragraph after the lead image) — moment reuse */
:root article > div[role="img"] + p::first-letter {
  float: left;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 3.7rem; line-height: .8;
  padding: .05em .12em 0 0;
  color: var(--color-moment);
}
/* dinkus divider before each section heading */
:root article > h2 { margin-top: 2.7rem; }
:root article > h2::before {
  content: "\2726 \2726 \2726";
  display: block; text-align: center;
  font-size: .82rem; letter-spacing: .5em;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
}
/* affiliate-disclosure box — warm tones (structural, hash-proof) */
:root article div:has(> strong) {
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.1rem 1.35rem; margin: 2rem 0;
  font-size: .95rem; line-height: 1.65;
}

/* "Articles connexes" related box (main's trailing div on article pages) */
:root main:has(> article) > div {
  margin-top: 3rem; padding: 1.6rem 1.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}
:root main:has(> article) > div h3 {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1rem;
}
:root main:has(> article) > div a {
  display: block;
  background-color: var(--color-card) !important;   /* base theme hardcodes #fff on these rows */
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  padding: 12px 16px; margin-bottom: .6rem;
  font-family: var(--font-heading); font-weight: 500;
  color: var(--color-heading); text-decoration: none;
  box-shadow: 0 1px 3px rgba(29,33,53,.05);
}
:root main:has(> article) > div a:hover { color: var(--color-accent); box-shadow: 0 3px 10px rgba(29,33,53,.10); }

/* ════════════════════════════════════════════════════════════
   FOOTER — dark bookend mirroring the masthead
   ════════════════════════════════════════════════════════════ */
:root body > footer {
  background-color: var(--color-heading);
  color: rgba(245,239,225,.72);
  border-top: 4px solid var(--color-moment);
  padding-block: 2.25rem; margin-top: 3rem;
}
:root body > footer a { color: var(--color-accent-light); text-decoration: none; }
:root body > footer a:hover { color: #F5EFE1; text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  :root main:not(:has(> article)) > div:first-of-type {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  :root main:not(:has(> article)) > div:first-of-type > div { grid-column: 1 / -1; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child { padding: 30px 26px 32px; margin-bottom: 2.9rem; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child::after { top: calc(100% + 1rem); }
  :root main:not(:has(> article)) > div:first-of-type > div:nth-child(5) { min-height: 180px; }
  /* archive tail → 2-up on tablet */
  :root main:not(:has(> article)) > div:not(:first-of-type) { grid-template-columns: repeat(2, 1fr); }
}

/* archive tail → single boxed column on phones (stays boxed cream cards, never plain rows) */
@media (max-width: 640px) {
  :root main:not(:has(> article)) > div:not(:first-of-type) { grid-template-columns: 1fr; }
}


/* 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=Cereal-Nordic overlay=55% grid=equal scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 55%) ── */
: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.55) 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.55) 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; }
}

