*{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-yuZRmk{max-width:860px;margin:0 auto;padding:0 20px}
.sc-LDPWUK{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.sc-LDPWUK h1{font-size:22px;font-weight:700;margin-bottom:2px}
.sc-LDPWUK p{font-size:14px;color:#666}
.sc-LDPWUK a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.sc-EUJivv{display:flex;flex-direction:column;gap:20px}
.sc-nmfBTA{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-nmfBTA:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.sc-nmfBTA h2{font-size:19px;margin-bottom:6px}
.sc-nmfBTA h2 a{color:#1a1a1a;text-decoration:none}
.sc-nmfBTA .sc-QNrGyg{font-size:12px;color:#999;margin-bottom:8px}
.sc-nmfBTA p{font-size:14px;color:#555;margin-bottom:12px}
.sc-MkGKtc{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.sc-MkGKtc:hover{background:#4752c4}
.sc-iAzzka{padding-bottom:60px}
.sc-iAzzka h1{font-size:30px;font-weight:700;margin-bottom:8px}
.sc-iAzzka time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.sc-iAzzka h2{font-size:22px;margin:32px 0 12px}
.sc-iAzzka h3{font-size:18px;margin:24px 0 8px}
.sc-iAzzka p{margin-bottom:16px}
.sc-iAzzka ul,.sc-iAzzka ol{margin:0 0 16px 24px}
.sc-iAzzka a{color:#5865f2}
.sc-iAzzka img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.sc-ViRzHS{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.sc-ViRzHS a{color:#999;text-decoration:none}
.sc-csWaGg{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.sc-yfueHU{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.sc-nLDflB{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.sc-poPuQy{text-align:center;margin:0 0 24px}
.sc-vCnJGQ{max-width:100%;height:auto;border-radius:12px}
.sc-wxewmu{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.sc-wxewmu 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-cpzdfj{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.sc-rHHzfF{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-rHHzfF:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#4A2A45;--accent:#8FA055;--bg:#EFE9D5;--fg:#160812;--border:#C5BEA0;--moment:#3D5A47;--r:10px;--fb:'PT Serif';--fh:'Fraunces';--fm:'Mukta Mahee'}
/* === Custom === */
/* v.2b6396 — layout revision */
/* rs-recht-de — Mein Rechtsweg · editorial signature pass
   Structure (styled-components build, class hashes stable but we style structurally):
   home   main.sc-yuZRmk > div(grid) > div(cards ×N) + div(archive tail) > a×N
   post   main.sc-iAzzka  > h1 + time + article + div(related)
   Fonts loaded via @font-face (top @import is dead once concatenated). */

/* ---- Fonts (latin covers German äöüß + „" quotes) ---- */
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:400 700; font-display:swap;
  src:url(https://fonts.gstatic.com/s/fraunces/v38/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:italic; font-weight:400 600; font-display:swap;
  src:url(https://fonts.gstatic.com/s/fraunces/v38/6NU58FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChjeveQ.woff2) format('woff2'); }
@font-face { font-family:'PT Serif'; font-style:normal; font-weight:400; font-display:swap;
  src:url(https://fonts.gstatic.com/s/ptserif/v19/EJRVQgYoZZY2vCFuvAFWzr8.woff2) format('woff2'); }
@font-face { font-family:'PT Serif'; font-style:normal; font-weight:700; font-display:swap;
  src:url(https://fonts.gstatic.com/s/ptserif/v19/EJRSQgYoZZY2vCFuvAnt66qSVys.woff2) format('woff2'); }
@font-face { font-family:'PT Serif'; font-style:italic; font-weight:400; font-display:swap;
  src:url(https://fonts.gstatic.com/s/ptserif/v19/EJRTQgYoZZY2vCFuvAFT_r21cg.woff2) format('woff2'); }
@font-face { font-family:'Mukta Mahee'; font-style:normal; font-weight:500; font-display:swap;
  src:url(https://fonts.gstatic.com/s/muktamahee/v19/XRXN3IOIi0hcP8iVU67hA9M5cioALHY.woff2) format('woff2'); }
@font-face { font-family:'Mukta Mahee'; font-style:normal; font-weight:700; font-display:swap;
  src:url(https://fonts.gstatic.com/s/muktamahee/v19/XRXN3IOIi0hcP8iVU67hA9NxdCoALHY.woff2) format('woff2'); }

:root {
  --primary:#4A2A45; --accent:#8FA055; --bg:#EFE9D5; --fg:#160812; --border:#C5BEA0;
  --moment:#3D5A47; --paper:#faf5ec; --paper2:#f3ecda; --line:rgba(74,42,69,.12);
  --fh:'Fraunces'; --fb:'PT Serif'; --fm:'Mukta Mahee';
}

:root body { font-family: var(--fb), Georgia, serif; color: var(--fg); background: var(--bg); line-height: 1.72; font-size: 17px; }
::selection { background: var(--primary); color: var(--paper); }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* =========================================================
   MASTHEAD — shared header on both pages
   ========================================================= */
:root body > header {
  background: linear-gradient(rgba(58,32,54,.80), rgba(28,15,26,.90)), url("/theme-assets/top-image.jpg");
  background-size: cover; background-position: center 42%;
  box-shadow: none; border-bottom: 3px solid var(--accent);
  padding: 46px 0 40px; margin-bottom: 60px;
}
:root body > header > div { text-align: center; }
:root body > header > div::before {
  content: "§  SOLOPRENEUR-TAGEBUCH  ·  LEIPZIG";
  display: block; font-family: var(--fm), system-ui, sans-serif; font-weight: 700;
  font-size: 11.5px; letter-spacing: .30em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
:root body > header > div > h1,
:root body > header > div > span > a {
  font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600;
  color: var(--paper); text-decoration: none; letter-spacing: .01em; line-height: 1.1;
}
:root body > header > div > h1 { font-size: 46px; margin: 0; }
:root body > header > div > span > a { font-size: 30px; }
:root body > header > div > p {
  font-family: var(--fb), Georgia, serif; font-style: italic; font-size: 16px;
  color: rgba(239,233,213,.86); max-width: 40rem; margin: 12px auto 0; line-height: 1.55;
}

/* =========================================================
   HOMEPAGE  (main WITHOUT a direct <article>)
   ========================================================= */
:root main:not(:has(> article)) > div:first-of-type {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 28px; row-gap: 42px; align-items: stretch;
}

/* --- generic card shell (hero + picks + journal) --- */
:root main:not(:has(> article)) > div:first-of-type > div {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 4px rgba(22,8,18,.05); padding: 26px 32px;
  transition: transform .16s ease, box-shadow .16s ease; position: relative;
  display: flex; flex-direction: column;
}
:root main:not(:has(> article)) > div:first-of-type > div:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22,8,18,.10);
}
:root main:not(:has(> article)) > div:first-of-type > div > p:nth-of-type(1) {
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 10px; line-height: 1.4;
}
:root main:not(:has(> article)) > div:first-of-type > div > h2 {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 21px;
  line-height: 1.24; margin: 0 0 10px;
}
:root main:not(:has(> article)) > div:first-of-type > div > h2 a {
  color: var(--primary); text-decoration: none;
}
:root main:not(:has(> article)) > div:first-of-type > div > h2 a:hover { color: var(--moment); }
:root main:not(:has(> article)) > div:first-of-type > div > p:nth-of-type(2) {
  font-family: var(--fb), Georgia, serif; font-size: 15px; line-height: 1.6;
  color: var(--fg); opacity: .82; margin: 0 0 18px; max-width: 64ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:not(:has(> article)) > div:first-of-type > div > a:last-child {
  align-self: flex-start; margin-top: auto; font-family: var(--fm), system-ui, sans-serif;
  font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: transparent; border: 1px solid var(--primary);
  padding: 8px 18px; border-radius: 24px; text-decoration: none; transition: all .16s ease;
}
:root main:not(:has(> article)) > div:first-of-type > div > a:last-child:hover {
  background: var(--primary); color: var(--paper);
}

/* --- HERO (card 1) — the loud voice --- */
:root main:not(:has(> article)) > div:first-of-type > div:first-child {
  grid-column: 1 / -1; order: 1; padding: 44px 52px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
  border-left: 4px solid var(--moment);
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child::before {
  content: "Neuester Eintrag"; position: absolute; top: 22px; right: 28px;
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--paper);
  background: var(--moment); padding: 5px 12px; border-radius: 3px;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(1) {
  color: var(--moment); font-size: 12px; margin-bottom: 14px;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(1)::after {
  content: "  ·  von Theresa Kaiser"; color: var(--accent);
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > h2 {
  font-size: 38px; line-height: 1.12; margin-bottom: 16px; max-width: 22ch;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2) {
  font-size: 19px; line-height: 1.5; opacity: .9; -webkit-line-clamp: 4; max-width: 62ch;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2)::first-letter {
  font-family: var(--fh), Georgia, serif; font-weight: 600; float: left; color: var(--moment);
  font-size: 62px; line-height: .82; padding: 4px 12px 0 0;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a:last-child {
  font-size: 12.5px; padding: 11px 26px;
}

/* --- EDITOR'S PICKS label (grid pseudo, ordered between hero & picks) --- */
:root main:not(:has(> article)) > div:first-of-type::before {
  content: "Empfohlen  ·  Zuerst lesen"; order: 2; grid-column: 1 / -1;
  width: 100%; box-sizing: border-box; justify-self: stretch; display: block;
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--primary);
  padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin: 26px 0 2px;
}
/* picks = cards 2 & 3 */
: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) {
  order: 3; border-top: 3px solid var(--accent);
}
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::after,
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(3)::after {
  position: absolute; top: 16px; right: 26px; font-family: var(--fh), Georgia, serif;
  font-style: italic; font-weight: 600; font-size: 34px; line-height: 1;
  color: rgba(143,160,85,.28); pointer-events: none;
}
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::after { content: "I"; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(3)::after { content: "II"; }

/* --- STRIP 1 "DAS NOTIZBUCH" (grid pseudo between picks & journal) --- */
:root main:not(:has(> article)) > div:first-of-type::after {
  content: "Das Notizbuch"; order: 4; grid-column: 1 / -1; min-height: 190px;
  display: flex; align-items: center; justify-content: center; margin: 22px 0 4px;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(rgba(58,32,54,.72), rgba(28,15,26,.48)), url("/theme-assets/article-bg.jpg");
  background-size: cover; background-position: center 30%;
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .32em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* --- JOURNAL (cards 4..N), 2-col chronological grid --- */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(n+4) { order: 5; }

/* --- STRIP 2 "WEITERLESEN" (tail pseudo, between journal & archive) --- */
:root main:not(:has(> article)) > div:nth-of-type(2)::before {
  content: "Weiterlesen"; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  min-height: 210px; margin: 72px 0 30px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(rgba(28,15,26,.50), rgba(58,32,54,.74)), url("/theme-assets/article-bg.jpg");
  background-size: cover; background-position: center 70%;
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .32em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* --- ARCHIVE TAIL — full-width magazine index of boxed cream cards (design parity w/ top) --- */
:root main:not(:has(> article)) > div:nth-of-type(2) {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px;
  align-items: stretch; margin-top: 0;
}
/* base-template archive heading ("Mehr für den Start") — span full row, don't break the grid */
:root main:not(:has(> article)) > div:nth-of-type(2) > h2,
:root main:not(:has(> article)) > div:nth-of-type(2) > h3,
:root main:not(:has(> article)) > div:nth-of-type(2) > h4,
:root main:not(:has(> article)) > h2,
:root main:not(:has(> article)) > h3 {
  grid-column: 1 / -1; margin: 6px 0 4px;
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--primary);
  padding-bottom: 12px; border-bottom: 1px solid var(--primary);
}
:root main:not(:has(> article)) > div:nth-of-type(2) > a {
  display: block; height: 100%; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 4px rgba(22,8,18,.05);
  padding: 18px 22px 18px 34px; margin: 0; color: var(--primary);
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 15px; line-height: 1.34;
  text-decoration: none; position: relative;
  transition: transform .14s ease, box-shadow .14s ease, color .14s ease;
}
:root main:not(:has(> article)) > div:nth-of-type(2) > a::before {
  content: "§"; position: absolute; left: 16px; top: 18px; color: var(--accent);
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 14px; line-height: 1.34;
}
:root main:not(:has(> article)) > div:nth-of-type(2) > a:hover {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(22,8,18,.10); color: var(--moment);
}

/* =========================================================
   ARTICLE PAGE  (main WITH a direct <article>)
   ========================================================= */
:root main:has(> article) > h1 {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 40px;
  line-height: 1.14; color: var(--primary); letter-spacing: 0; margin: 4px 0 12px; max-width: 24ch;
}
:root main:has(> article) > time {
  display: block; font-family: var(--fm), system-ui, sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 34px;
}
:root main:has(> article) > time::before { content: "Von Theresa Kaiser  ·  "; color: var(--moment); }

:root main:has(> article) > article > div:first-child { text-align: center; margin: 0 0 34px; }
:root main:has(> article) > article > div:first-child img {
  width: 100%; height: auto; border-radius: 10px; box-shadow: 0 3px 16px rgba(22,8,18,.14); margin: 0;
}

:root main:has(> article) > article > p { line-height: 1.78; margin-bottom: 1.15em; font-size: 18px; }
:root main:has(> article) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif; font-weight: 600; float: left; color: var(--primary);
  font-size: 58px; line-height: .82; padding: 6px 12px 0 0;
}
:root main:has(> article) > article > h2 {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 27px; color: var(--primary);
  line-height: 1.22; margin: 1.9em 0 .5em; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
:root main:has(> article) > article > h2::before {
  content: "§"; color: var(--moment); font-weight: 600; margin-right: .4em;
}
:root main:has(> article) > article > h3 {
  font-family: var(--fh), Georgia, serif; font-weight: 400; font-style: italic; font-size: 20px;
  color: var(--accent); margin: 1.5em 0 .4em;
}
:root main:has(> article) > article ul, :root main:has(> article) > article ol { margin: 0 0 18px 24px; }
:root main:has(> article) > article li { margin-bottom: 7px; line-height: 1.7; }
:root main:has(> article) > article blockquote {
  position: relative; border-left: 3px solid var(--accent); padding: 6px 0 6px 30px;
  margin: 28px 0; font-style: italic; color: var(--primary); font-size: 19px; line-height: 1.6;
}
:root main:has(> article) > article blockquote::before {
  content: "\00201E"; position: absolute; left: 6px; top: -6px; font-family: var(--fh), Georgia, serif;
  font-size: 40px; color: var(--accent); line-height: 1;
}

/* body links */
:root main:has(> article) > article p a, :root main:has(> article) > article p a:visited,
:root main:has(> article) > article li a, :root main:has(> article) > article li a:visited {
  color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700;
}
:root main:has(> article) > article p a:hover, :root main:has(> article) > article li a:hover {
  color: var(--moment); text-decoration-color: var(--moment);
}

/* affiliate CTA — /out/ (must out-specify body-link rule) */
:root main:has(> article) > article > p a[href^="/out/"],
:root main:has(> article) > article > p a[href^="/out/"]:visited {
  display: inline-block; background: var(--primary); color: var(--paper); font-weight: 700;
  font-family: var(--fm), system-ui, sans-serif; font-size: 14px; letter-spacing: .04em;
  padding: 5px 18px; border-radius: 24px; text-decoration: none; vertical-align: baseline;
}
:root main:has(> article) > article > p a[href^="/out/"]:hover { background: var(--moment); color: var(--paper); }

/* related articles → cards */
:root main:has(> article) > div:last-child { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--accent); }
:root main:has(> article) > div:last-child > h3 {
  font-family: var(--fm), system-ui, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px;
}
:root main:has(> article) > div:last-child a {
  display: block; background: var(--paper); border: 1px solid var(--line); box-shadow: none;
  border-radius: 8px; padding: 14px 20px; margin-bottom: 10px; color: var(--primary);
  font-family: var(--fh), Georgia, serif; font-size: 16px; line-height: 1.35; text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
:root main:has(> article) > div:last-child a:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,8,18,.09); }

/* =========================================================
   FOOTER
   ========================================================= */
:root body > footer { border-top: 1px solid var(--border); margin-top: 72px; }
:root body > footer small {
  font-family: var(--fm), system-ui, sans-serif; font-size: 12px; letter-spacing: .06em;
  color: var(--fg); opacity: .8;
}
:root body > footer a { color: var(--primary); text-decoration: none; border-bottom: 1px dotted var(--border); }
:root body > footer a:hover { border-bottom-color: var(--primary); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 680px) {
  :root body > header > div > h1 { font-size: 34px; }
  :root body > header > div > span > a { font-size: 24px; }
  :root main:not(:has(> article)) > div:first-of-type { grid-template-columns: 1fr; }
  :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) { grid-column: 1 / -1; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child { padding: 30px 26px; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child > h2 { font-size: 29px; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child::before { position: static; display: inline-block; margin-bottom: 12px; }
  :root main:not(:has(> article)) > div:nth-of-type(2) { grid-template-columns: 1fr; }
  /* keep BOTH atmospheric photo strips visible + tidy on narrow screens */
  :root main:not(:has(> article)) > div:first-of-type::after,
  :root main:not(:has(> article)) > div:nth-of-type(2)::before {
    display: flex; grid-column: 1 / -1; min-height: 170px; margin: 44px 0 22px;
  }
  :root main:has(> article) > h1 { font-size: 30px; }
  :root main:has(> article) > article > p { font-size: 17px; }
}


/* 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=Cup-of-Jo-personal overlay=40% grid=mixed scale=dramatic family=astro-grid */

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


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

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

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

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


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

