*{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}
.shell-0d4084{max-width:860px;margin:0 auto;padding:0 20px}
.container-be5b65{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.container-be5b65 h1{font-size:22px;font-weight:700;margin-bottom:2px}
.container-be5b65 p{font-size:14px;color:#666}
.container-be5b65 a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.page-0ee138{display:flex;flex-direction:column;gap:20px}
.container-5a9d0c{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.container-5a9d0c:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.container-5a9d0c h2{font-size:19px;margin-bottom:6px}
.container-5a9d0c h2 a{color:#1a1a1a;text-decoration:none}
.container-5a9d0c .region-6f55f7{font-size:12px;color:#999;margin-bottom:8px}
.container-5a9d0c p{font-size:14px;color:#555;margin-bottom:12px}
.block-6d868e{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.block-6d868e:hover{background:#4752c4}
.block-a996c2{padding-bottom:60px}
.block-a996c2 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.block-a996c2 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.block-a996c2 h2{font-size:22px;margin:32px 0 12px}
.block-a996c2 h3{font-size:18px;margin:24px 0 8px}
.block-a996c2 p{margin-bottom:16px}
.block-a996c2 ul,.block-a996c2 ol{margin:0 0 16px 24px}
.block-a996c2 a{color:#5865f2}
.block-a996c2 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.module-92963e{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.module-92963e a{color:#999;text-decoration:none}
.layout-7c870c{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.module-1afbe6{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.content-cafe47{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.outer-c4d8bb{text-align:center;margin:0 0 24px}
.module-ce8be2{max-width:100%;height:auto;border-radius:12px}
.main-758905{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.main-758905 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)}
.outer-88be7f{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.content-524fbc{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}
.content-524fbc:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@300;400;500&display=swap');
body{font-family:'Nunito',sans-serif;font-weight:300;color:#2E1E20;background:#FDF6F4}
.container-be5b65{background:#BF6B7A;color:#fff}
.container-be5b65 h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;color:#fff}
.container-be5b65 p{color:rgba(255,255,255,.82)}
.container-be5b65 a{color:#fff;text-decoration:none}
.card h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:700}
.card h2 a{color:#BF6B7A}
.card h2 a:hover{color:#A35468}
.read-more{color:#A35468}
.article-content h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:700}
.article-content h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:700}
.article-content a{color:#BF6B7A}
.article-content img{border-radius:12px}
.affiliate-disclosure{border-radius:12px}
.ymyl-disclaimer{border-radius:12px}
/* === Custom === */
/* v.1c9821 — layout revision */
/* bb-bebe-fr — "Premiers Pas Bébé" · journal de grossesse et premiers mois — Léa Marchand, Strasbourg.
   Rose-poudré sur parchemin crème : un carnet intime écrit au fil des semaines, pas un guide médical.
   Fonts (Cormorant Garamond + Nunito) chargées par le bloc @import du theme en tête de site.css.
   Ce build NE PAS d'obfuscation : classes stables — mais on garde des sélecteurs élément/structurels,
   avec un boost [class] uniquement là où il faut battre la règle de base du masthead.
   Moment color = prune #5E3A5C, exactement 2 gestes : filet + capitale ornée du récit à la une,
   et la capitale d'attaque des articles. */

:root {
  --primary:      #BF6B7A;
  --primary-dark: #A35468;
  --accent:       #D4A0AA;
  --moment:       #5E3A5C;
  --bg:           #FDF6F4;
  --bg-alt:       #F6E9E6;
  --paper:        #FEFBF9;
  --fg:           #2E1E20;
  --muted:        #8C6A6E;
  --border:       #EAD3D5;
  --r:            9px;
  --shadow:       rgba(120, 60, 80, 0.08);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
::selection { background: rgba(191, 107, 122, 0.18); color: var(--fg); }

/* ---- Base typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.22;
  color: var(--primary-dark);
  margin: 1.5em 0 0.4em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.3em; max-width: 68ch; }

a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--primary); text-decoration-color: var(--primary); }

strong, b { font-weight: 600; color: var(--fg); }
em, i { font-style: italic; }

ul, ol { padding-left: 1.5em; margin: 0 0 1.3em; max-width: 66ch; }
li { margin-bottom: 0.5em; line-height: 1.7; }
li::marker { color: var(--primary); }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em auto; max-width: 32ch; }

/* ============================================================
   MASTHEAD  ([class] boost beats base .container-be5b65 rules)
   ============================================================ */
body > header[class] {
  background: var(--primary-dark);
  color: #FFFFFF;
  text-align: center;
}

/* HOME — atmospheric photo + rose gradient + italic wordmark + manifesto */
body > header[class]:has(h1) {
  background-image:
    linear-gradient(148deg, rgba(93, 58, 92, 0.80), rgba(163, 84, 104, 0.66) 52%, rgba(191, 107, 122, 0.56)),
    url("/theme-assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 5rem 1.5rem 4.25rem;
}
body > header[class]:has(h1) > div { max-width: 760px; margin: 0 auto; }
body > header[class]:has(h1) > div::before {
  content: "Carnet de grossesse · Strasbourg";
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.15rem;
}
body > header[class]:has(h1) h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 3.6rem;
  line-height: 1.02;
  color: #FFFFFF;
  margin: 0 0 0.55rem;
  letter-spacing: 0.006em;
}
body > header[class]:has(h1) h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 1.05rem auto 0.35rem;
}
body > header[class]:has(h1) p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.24rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  max-width: 48ch;
  margin: 0 auto;
}

/* ARTICLE / PAGE — compact wordmark bar */
body > header[class]:not(:has(h1)) {
  padding: 1.1rem 1.5rem;
  border-bottom: 2px solid var(--accent);
}
body > header[class]:not(:has(h1)) a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 0.01em;
}
body > header[class]:not(:has(h1)) a:hover { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   HOMEPAGE FEED  — hero -> Editor's Picks -> strip -> journal -> strip -> archive
   Grid parent = div.page-0ee138 (first div child of main). 6-col base track.
   ============================================================ */
main:not(:has(> article)) > div:first-of-type {
  --cgap: 40px;
  margin: 4rem auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: var(--cgap);
  row-gap: 4rem;
  align-items: stretch;
}

/* ---- every card: soft frame on warm paper (RULE A / C / E) ---- */
main:not(:has(> article)) > div:first-of-type > div {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px var(--shadow);
  padding: 1.9rem 2rem;
  display: flex;
  flex-direction: column;
}
/* date kicker */
main:not(:has(> article)) > div:first-of-type > div > p:first-child {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.55rem;
  line-height: 1.4;
}
main:not(:has(> article)) > div:first-of-type > div h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.16;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
main:not(:has(> article)) > div:first-of-type > div h2 a { color: var(--primary-dark); text-decoration: none; }
main:not(:has(> article)) > div:first-of-type > div h2 a:hover { color: var(--primary); }
/* excerpt — clamped to keep row heights even (RULE D) */
main:not(:has(> article)) > div:first-of-type > div > h2 + p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.15rem;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* CTA — quiet underline link; FR label replaces template's EN "Read Article" */
main:not(:has(> article)) > div:first-of-type > div > a {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0;
  color: var(--primary-dark);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding: 0 0 1px;
}
main:not(:has(> article)) > div:first-of-type > div > a::after { content: "Lire\0000A0\002192"; font-size: 1rem; letter-spacing: 0.02em; }
main:not(:has(> article)) > div:first-of-type > div > a:hover { color: var(--primary); border-color: var(--primary); }

/* ---- HERO (card 1): the one loud voice ---- */
main:not(:has(> article)) > div:first-of-type > div:first-child {
  grid-column: 1 / -1;
  position: relative;
  border-top: 3px solid var(--moment);
  box-shadow: 0 6px 26px var(--shadow);
  padding: 2.9rem 2.8rem 3rem;
}
/* issue-mark: balances the empty right column beside the left-set excerpt (RULE 4) */
main:not(:has(> article)) > div:first-of-type > div:first-child::after {
  content: "N\0000BA\0000A0I";
  position: absolute;
  top: 2.75rem;
  right: 2.8rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
  pointer-events: none;
}
main:not(:has(> article)) > div:first-of-type > div:first-child::before {
  content: "\00276E\0000A0Le dernier r\0000E9cit";
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--moment);
  margin-bottom: 1rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child { color: var(--muted); }
main:not(:has(> article)) > div:first-of-type > div:first-child h2 {
  font-style: italic;
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1.08;
  margin: 0.1rem 0 0.3rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child h2::after {
  content: "Par L\0000E9a Marchand \0000B7\0000A0Journal de Strasbourg";
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.85rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > h2 + p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  color: var(--fg);
  font-size: 1.14rem;
  line-height: 1.62;
  max-width: 60ch;
  margin: 1.1rem 0 1.6rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > h2 + p::first-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.72;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--moment);
}
main:not(:has(> article)) > div:first-of-type > div:first-child > a {
  font-size: 0;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.6rem 1.7rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > a::after { content: "Lire le r\0000E9cit\0000A0\002192"; font-size: 1rem; }
main:not(:has(> article)) > div:first-of-type > div:first-child > a:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF;
}

/* ---- EDITOR'S PICKS (cards 2-4): 3 across ---- */
main:not(:has(> article)) > div:first-of-type > div:nth-child(n+2):nth-child(-n+4) { grid-column: span 2; }
/* section label — full band width, above the row (RULE B) */
main:not(:has(> article)) > div:first-of-type > div:nth-child(2) { position: relative; }
main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before {
  content: "\0000C0\0000A0lire en premier";
  position: absolute;
  bottom: calc(100% + 0.95rem);
  left: 0;
  width: calc(300% + 80px);
  max-width: none;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.7rem;
  border-bottom: 1.5px solid var(--primary);
}

/* ---- JOURNAL (cards 5+): 2 across ---- */
main:not(:has(> article)) > div:first-of-type > div:nth-child(n+5) { grid-column: span 3; }

/* ---- STRIP 1 "CI-DESSOUS": photo band before the journal (RULE F) ---- */
main:not(:has(> article)) > div:first-of-type > div:nth-child(5),
main:not(:has(> article)) > div:first-of-type > div:nth-child(6) { margin-top: 250px; }
main:not(:has(> article)) > div:first-of-type > div:nth-child(5) { position: relative; }
main:not(:has(> article)) > div:first-of-type > div:nth-child(5)::before {
  content: "Ci-dessous";
  position: absolute;
  top: -250px;
  left: 0;
  width: calc(200% + var(--cgap));
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(20, 24, 28, 0.52), rgba(94, 58, 92, 0.34)),
    url("/theme-assets/entry-photo.jpg");
  background-size: cover;
  background-position: center 30%;
  border-radius: var(--r);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   ARCHIVE TAIL  = div.outer-88be7f (2nd div child of main).
   Full width, magazine 2-col index, topped by STRIP 2 "TOUT LIRE".
   ============================================================ */
main:not(:has(> article)) > div:not(:first-of-type) {
  display: block;
  margin: 0 auto 4.5rem;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}
main:not(:has(> article)) > div:not(:first-of-type)::before {
  content: "Tout lire";
  column-span: all;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 2.75rem;
  background:
    linear-gradient(rgba(20, 24, 28, 0.52), rgba(94, 58, 92, 0.34)),
    url("/theme-assets/entry-photo.jpg");
  background-size: cover;
  background-position: center 70%;
  border-radius: var(--r);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
main:not(:has(> article)) > div:not(:first-of-type) > a {
  display: block;
  break-inside: avoid;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px dotted rgba(120, 60, 80, 0.22);
}
main:not(:has(> article)) > div:not(:first-of-type) > a:hover { color: var(--primary); }

/* ============================================================
   ARTICLE + CONTENT PAGES  (main:has(> article))
   ============================================================ */
main:has(> article) {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
main[class]:has(> article) > h1,
main[class]:has(> article) > article > h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 2.85rem;
  line-height: 1.12;
  color: var(--primary-dark);
  margin: 2.75rem 0 0.5rem;
}
main[class]:has(> article) > time {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 2.25rem;
}
/* S6 — persona/byline line beside the date (site author: Léa Marchand, Strasbourg) */
main[class]:has(> article) > time::after {
  content: "\0000A0\0000B7\0000A0Par L\0000E9a Marchand\0000A0\0000B7\0000A0Strasbourg";
  color: var(--muted);
  font-weight: 600;
}

/* hero photo block */
article > div[role="img"] { border-radius: var(--r); margin: 0 0 2rem; overflow: hidden; }

/* body prose (RULE H) */
main[class] article > p { font-size: 1.12rem; line-height: 1.8; font-weight: 400; color: var(--fg); max-width: 68ch; }
main[class] article > ul, main[class] article > ol { font-size: 1.1rem; line-height: 1.8; max-width: 68ch; }

/* on-brand body links (beats base .block-a996c2 a{color:#5865f2}) — scoped to prose so Gemini inline-wrap cards stay untouched */
main[class] article > p a, main[class] article > ul a, main[class] article > ol a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
main[class] article > p a:hover, main[class] article > ul a:hover, main[class] article > ol a:hover { color: var(--primary); text-decoration-color: var(--primary); }

/* intro drop cap — posts only (they carry the role="img" hero) */
article:has(> div[role="img"]) > div[role="img"] + p::first-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.72;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--moment);
}

/* section headings + dinkus dividers between them (beats base .block-a996c2 h2) */
main[class] article > h2 {
  font-family: var(--font-heading);
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.3em 0 0.5em;
}
article:has(> div[role="img"]) > h2:not(:first-of-type)::before {
  content: "\002737\0000A0\002737\0000A0\002737";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  font-weight: 400;
  margin: 0 auto 1.3em;
  padding-left: 0.5em;
}
main[class] article > h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.7em;
}

/* blockquote with hanging quote */
article blockquote {
  position: relative;
  margin: 2em 0;
  padding: 1.2em 1.5em 1.2em 2.6em;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--muted);
}
article blockquote::before {
  content: "\00201C";
  position: absolute;
  top: 0.12em;
  left: 0.4rem;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--accent);
}
article blockquote p { margin: 0; max-width: none; }

/* "Important" callout box — beats base .module-1afbe6{background:#fff8e1} amber */
main[class] article > div:has(> strong) {
  background: #F7ECEF;
  border-left: 3px solid var(--primary);
  border-radius: var(--r);
  padding: 1.15rem 1.4rem;
  margin: 2.25em 0 1em;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5B4A4D;
}
main[class] article > div:has(> strong) strong { color: var(--primary-dark); }

/* author-page sections: intro panel + muted "Avis" footer */
article > section:first-of-type {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
article > section:last-of-type {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
article > section:last-of-type h2 { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-top: 0; }

/* related-articles module (last div child of an article main) */
main:has(> article) > div:last-child {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
main:has(> article) > div:last-child h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 0 0 1rem;
}
main:has(> article) > div:last-child a {
  display: block;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.6rem 0;
  border-bottom: 1px dotted rgba(120, 60, 80, 0.2);
}
main:has(> article) > div:last-child a:hover { color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
footer[class] {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--primary);
  font-size: 0.85rem;
}
footer[class] a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); }
footer[class] a:hover { text-decoration-color: #FFFFFF; }

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

  body > header[class]:has(h1) { padding: 3.25rem 1.25rem 2.75rem; }
  body > header[class]:has(h1) h1 { font-size: 2.5rem; }
  body > header[class]:has(h1) p { font-size: 1.08rem; }

  /* single-column feed — reset every band's span so it doesn't spawn implicit tracks */
  main:not(:has(> article)) > div:first-of-type { grid-template-columns: 1fr; column-gap: 0; row-gap: 2.4rem; margin: 2.5rem auto; }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(n+2):nth-child(-n+4) { grid-column: 1 / -1; }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(n+5) { grid-column: 1 / -1; }
  main:not(:has(> article)) > div:first-of-type > div:first-child { padding: 2rem 1.5rem 2.2rem; }
  main:not(:has(> article)) > div:first-of-type > div:first-child::after { display: none; }
  main:not(:has(> article)) > div:first-of-type > div:first-child h2 { font-size: 2rem; }
  main:not(:has(> article)) > div:first-of-type > div:first-child > h2 + p { font-size: 1.05rem; }

  /* picks label spans the single column */
  main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before { width: 100%; }

  /* strip 1 becomes an in-flow banner atop the first journal card */
  main:not(:has(> article)) > div:first-of-type > div:nth-child(5),
  main:not(:has(> article)) > div:first-of-type > div:nth-child(6) { margin-top: 0; }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(5)::before {
    position: static;
    top: auto;
    width: 100%;
    height: 150px;
    margin: 0.25rem 0 1.5rem;
  }

  /* single-column archive */
  main:not(:has(> article)) > div:not(:first-of-type) { columns: 1; }

  main[class]:has(> article) > h1,
  main[class]:has(> article) > article > h1 { font-size: 2.05rem; }
}


/* 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: M7 boxed archive tail */
main:not(:has(> article)) > div:not(:first-of-type) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  columns: initial;
  column-gap: normal;
}

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

main:not(:has(> article)) > div:not(:first-of-type) > a {
  display: flex;
  align-items: center;
  min-height: 92px;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px var(--shadow);
  padding: 1.15rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--primary-dark);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

main:not(:has(> article)) > div:not(:first-of-type) > a:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(120, 60, 80, 0.10);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

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

  main:not(:has(> article)) > div:not(:first-of-type) > a {
    min-height: 76px;
    padding: 1.05rem 1.15rem;
  }
}


/* refix iter2: M10 article affiliate CTA visibility */
main[class] article > p a[href^="/try/"],
main[class] article > p a[href^="/ref/"],
main[class] article > p a[href^="/go/"],
main[class] article > p a[href^="/out/"],
main[class] article > p a[href^="/link/"],
main[class] article > ul a[href^="/try/"],
main[class] article > ul a[href^="/ref/"],
main[class] article > ul a[href^="/go/"],
main[class] article > ul a[href^="/out/"],
main[class] article > ul a[href^="/link/"],
main[class] article > ol a[href^="/try/"],
main[class] article > ol a[href^="/ref/"],
main[class] article > ol a[href^="/go/"],
main[class] article > ol a[href^="/out/"],
main[class] article > ol a[href^="/link/"] {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  margin: 0 0.12em 0.16em;
  padding: 0.2rem 0.66rem 0.24rem;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 1px 4px var(--shadow);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

main[class] article > p a[href^="/try/"]:hover,
main[class] article > p a[href^="/ref/"]:hover,
main[class] article > p a[href^="/go/"]:hover,
main[class] article > p a[href^="/out/"]:hover,
main[class] article > p a[href^="/link/"]:hover,
main[class] article > ul a[href^="/try/"]:hover,
main[class] article > ul a[href^="/ref/"]:hover,
main[class] article > ul a[href^="/go/"]:hover,
main[class] article > ul a[href^="/out/"]:hover,
main[class] article > ul a[href^="/link/"]:hover,
main[class] article > ol a[href^="/try/"]:hover,
main[class] article > ol a[href^="/ref/"]:hover,
main[class] article > ol a[href^="/go/"]:hover,
main[class] article > ol a[href^="/out/"]:hover,
main[class] article > ol a[href^="/link/"]:hover,
main[class] article > p a[href^="/try/"]:focus-visible,
main[class] article > p a[href^="/ref/"]:focus-visible,
main[class] article > p a[href^="/go/"]:focus-visible,
main[class] article > p a[href^="/out/"]:focus-visible,
main[class] article > p a[href^="/link/"]:focus-visible,
main[class] article > ul a[href^="/try/"]:focus-visible,
main[class] article > ul a[href^="/ref/"]:focus-visible,
main[class] article > ul a[href^="/go/"]:focus-visible,
main[class] article > ul a[href^="/out/"]:focus-visible,
main[class] article > ul a[href^="/link/"]:focus-visible,
main[class] article > ol a[href^="/try/"]:focus-visible,
main[class] article > ol a[href^="/ref/"]:focus-visible,
main[class] article > ol a[href^="/go/"]:focus-visible,
main[class] article > ol a[href^="/out/"]:focus-visible,
main[class] article > ol a[href^="/link/"]:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--bg);
  text-decoration: none;
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Cup-of-Jo-personal 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; }
}

