*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,system-ui,sans-serif;line-height:1.7;color:#333;background:#fff}
.css-aj7xis7{max-width:780px;margin:0 auto;padding:0 20px}
header{background:#1a1a2e;color:#fff;padding:32px 0;margin-bottom:40px}
header h1{font-size:28px;margin-bottom:4px}
header p{opacity:.7;font-size:15px}
header .css-teoknps{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.css-2tu6ejt{border-bottom:1px solid #eee;padding:24px 0}
.css-2tu6ejt h2{font-size:20px;margin-bottom:8px}
.css-2tu6ejt h2 a{color:#1a1a2e;text-decoration:none}
.css-2tu6ejt h2 a:hover{color:#e94560}
.css-2tu6ejt .date{font-size:13px;color:#999;margin-bottom:8px}
.css-vs28hlo{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.css-zshuiyy{padding-bottom:60px}
.css-zshuiyy h1{font-size:32px;margin-bottom:8px}
.css-zshuiyy time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.css-zshuiyy h2{font-size:22px;margin:32px 0 12px}
.css-zshuiyy h3{font-size:18px;margin:24px 0 8px}
.css-zshuiyy p{margin-bottom:16px}
.css-zshuiyy ul,.css-zshuiyy ol{margin:0 0 16px 24px}
.css-zshuiyy a{color:#e94560}
.css-zshuiyy img{max-width:100%;height:auto;border-radius:8px;margin:16px 0}
footer{border-top:1px solid #eee;padding:24px 0;margin-top:40px;text-align:center;font-size:13px;color:#999}
footer a{color:#999}
.css-hua8wde{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.css-iwe95ue{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.css-x41jgbq{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.css-vmfkwk9{text-align:center;margin:0 0 20px}
.css-vnkuld4{max-width:100%;height:auto;border-radius:6px}
.css-i6lmuby{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.css-i6lmuby h3{font-size:18px;margin-bottom:12px}
.css-i6lmuby ul{list-style:none;padding:0}
.css-i6lmuby li{padding:4px 0}
.css-i6lmuby a{color:#e94560;text-decoration:none}
.css-0tmcmfz{padding:20px 0}
.css-0tmcmfz ul{list-style:none;padding:0}
.css-0tmcmfz li{padding:5px 0;font-size:15px}
.css-0tmcmfz a{color:#1a1a2e;text-decoration:none}
.css-0tmcmfz a:hover{color:#e94560}
/* === Theme === */
:root{--primary:#3D2D1F;--accent:#7E947D;--bg:#EFEAD8;--fg:#0E0A06;--border:#C5BE9F;--r:8px;--fb:'Source Sans 3';--fh:'Roboto Serif';--meta:'Source Sans 3';--moment:#7A6B4A;--paper:#F6F0E2;--paper2:#E9E1CC}
/* === Custom === */
/* v.7ba586 — layout revision */
/* Zahlengarten — editorial signature pass. Sonntagsjournal einer Regensburger
   Lehrerin in Altersteilzeit (Zahlen-Code / Rosina Kaiser). Warm, calm, diary.
   Base template wins with single-class rules; a single :root prefix (0,1,0,x)
   beats them, so no !important, no class selectors, single-level :has only.
   DOM: home = main:not(:has(>h1)) with <article> cards (h2>a, p.date, p, a.CTA);
   article = main:has(>h1) with h1/time/div/article/section, affiliate = /get/.
   Moment colour #7A6B4A used as ONE decision — the masthead signature rule +
   the diary drop caps. Accent sage carries kickers, CTAs, dividers. */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,400;0,8..144,500;0,8..144,600;0,8..144,700;1,8..144,400;1,8..144,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root body { font-family: var(--fb), system-ui, -apple-system, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.74; font-size: 16.5px; }
::selection { background: var(--moment); color: var(--bg); }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

/* ============================================================= MASTHEAD */
/* Home masthead: atmospheric photo + gradient + serif-italic wordmark +
   tracked kicker + moment signature rule + italic manifesto line. */
:root header:has(h1) {
  position: relative; background: var(--primary);
  background-image: linear-gradient(rgba(30,22,15,.72), rgba(30,22,15,.58)),
                    url("/theme-assets/top-image.jpg");
  background-size: cover; background-position: center 42%;
  color: var(--bg); text-align: center; padding: 78px 0 40px; margin-bottom: 62px;
  border-bottom: 3px solid var(--moment);
}
:root header:has(h1) > div { max-width: 700px; }
:root header:has(h1) > div::before {
  content: "Sonntagsjournal · Regensburg"; display: block;
  font-family: var(--meta), sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(239,234,216,.82);
  margin-bottom: 16px;
}
:root header:has(h1) h1 {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500;
  font-size: 52px; line-height: 1.06; color: var(--bg); letter-spacing: .005em; margin: 0;
}
:root header:has(h1) h1::after {
  content: ""; display: block; width: 66px; height: 2px; margin: 18px auto 0;
  background: var(--moment);
}
:root header:has(h1) h1 + p {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 400;
  font-size: 16.5px; line-height: 1.6; color: rgba(239,234,216,.9);
  max-width: 600px; margin: 20px auto 0;
}

/* Article masthead: slim warm bar, centred italic wordmark link. */
:root header:not(:has(h1)) {
  background: var(--primary); color: var(--bg); text-align: center;
  padding: 26px 0; margin-bottom: 0; border-bottom: 3px solid var(--moment);
}
:root header:not(:has(h1)) a {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500;
  font-size: 25px; color: var(--bg); text-decoration: none; letter-spacing: .01em;
}

/* =============================================================== HOME GRID */
/* Mobile is a flex COLUMN so `order` takes effect below 720px too — without a
   flex/grid formatting context `order` is inert and the two hero-photo strips
   (::before / ::after) collapse to the very top and bottom of <main> instead
   of sitting between sections (Rule M6). Desktop upgrades this to grid below. */
:root main:not(:has(> h1)) { padding-bottom: 30px; display: flex; flex-direction: column; }

/* Section order — declared unconditionally so it governs BOTH the mobile flex
   column and the desktop grid: hero → picks → strip1 → journal → strip2 → tail. */
:root main:not(:has(> h1)) > article:nth-of-type(1) { order: 1; }
:root main:not(:has(> h1)) > article:nth-of-type(2),
:root main:not(:has(> h1)) > article:nth-of-type(3) { order: 3; }
:root main:not(:has(> h1)) > article:nth-of-type(n+4) { order: 5; }
:root main:not(:has(> h1)) > article:nth-of-type(n+10) { order: 7; }
:root main:not(:has(> h1))::before { order: 4; }
:root main:not(:has(> h1))::after  { order: 6; }

@media (min-width: 720px) {
  /* 6-col base: hero spans 6, picks/journal span 3 (2-col), archive tail spans 2 (3-col) */
  :root main:not(:has(> h1)) {
    display: grid; grid-template-columns: repeat(6, 1fr);
    column-gap: 30px; row-gap: 42px; align-items: stretch;
  }
  :root main:not(:has(> h1)) > article:nth-of-type(1) { grid-column: 1 / -1; }
  /* desktop already has row-gap 42px between the hero row and the picks row, so the M2
     band needs a smaller extra reservation than the mobile flex column above. */
  :root main:not(:has(> h1)) > article:nth-of-type(1) { margin-bottom: 34px; }
  :root main:not(:has(> h1)) > article:nth-of-type(2),
  :root main:not(:has(> h1)) > article:nth-of-type(3) { grid-column: span 3; }
  :root main:not(:has(> h1)) > article:nth-of-type(n+4) { grid-column: span 3; }
  /* compact archive tail = 3-col magazine index, ordered after the 2nd hero strip */
  :root main:not(:has(> h1)) > article:nth-of-type(n+10) { grid-column: span 2; }
}

/* --- Common card look (regular cards = nth 2..n) --- */
:root main:not(:has(> h1)) > article {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid rgba(61,45,31,.12); border-radius: 8px;
  padding: 26px 34px 28px; margin: 0 0 30px;
  box-shadow: 0 1px 4px rgba(30,22,15,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (min-width: 720px) { :root main:not(:has(> h1)) > article { margin: 0; } }
:root main:not(:has(> h1)) > article:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,22,15,.09); }
:root main:not(:has(> h1)) > article > .date {
  font-family: var(--meta), sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  line-height: 1.4; margin: 0 0 12px;
}
:root main:not(:has(> h1)) > article > h2 {
  font-family: var(--fh), Cambria, serif; font-weight: 600; font-size: 21px;
  line-height: 1.22; margin: 0 0 14px;
}
:root main:not(:has(> h1)) > article > h2 a { color: var(--primary); text-decoration: none; }
:root main:not(:has(> h1)) > article > h2 a:hover { color: var(--accent); }
:root main:not(:has(> h1)) > article > p:not(.date) {
  font-family: var(--fb), system-ui, sans-serif; font-size: 15.5px; line-height: 1.6;
  color: var(--fg); opacity: .9; margin: 0 0 20px; max-width: 64ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Hero (newest entry): frameless, loud display voice, drop-cap excerpt --- */
:root main:not(:has(> h1)) > article:nth-of-type(1) {
  background: transparent; border: 0; box-shadow: none; padding: 8px 0 0;
}
:root main:not(:has(> h1)) > article:nth-of-type(1):hover { transform: none; box-shadow: none; }
:root main:not(:has(> h1)) > article:nth-of-type(1) > .date::before { content: "Neuester Eintrag · Kerstin Haselbeck · "; }
:root main:not(:has(> h1)) > article:nth-of-type(1) > h2 {
  font-size: 44px; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 20px;
}
:root main:not(:has(> h1)) > article:nth-of-type(1) > p:not(.date) {
  font-size: 20px; line-height: 1.5; opacity: .95; max-width: 62ch; -webkit-line-clamp: 4;
}
:root main:not(:has(> h1)) > article:nth-of-type(1) > p:not(.date)::first-letter {
  float: left; font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 600;
  font-size: 62px; line-height: .78; color: var(--moment); margin: 6px 12px 0 0;
}
/* M2 refix (iter 2): full-width Editor's-Picks label as a STANDALONE band that sits
   BELOW the hero card frame and ABOVE the two picks cards. premium-upgrade v1 reframed
   the hero (article 1) into a photo card with a box-shadow frame, which trapped the old
   in-flow ::after label inside that frame (reviewer's M2 symptom). Fix: position the
   label absolutely so it escapes the card's border-box + shadow and floats on the page
   background. a1 is position:relative + full-width (grid-column 1/-1), so left:0/right:0
   spans the whole content column → a true full-row band. a1's margin-bottom (below)
   reserves the gap it floats in. Hairline border-bottom = the M2 "underline". */
:root main:not(:has(> h1)) > article:nth-of-type(1)::after {
  content: "Empfohlene Einträge — zuerst lesen";
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
  font-family: var(--meta), sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--primary); text-align: left;
}
/* Reserve the gap the M2 band floats in. Mobile (flex column) has no row-gap, so it needs
   the whole band height; desktop grid adds row-gap 42px, so it needs less (see @media). */
:root main:not(:has(> h1)) > article:nth-of-type(1) { margin-bottom: 74px; }

/* --- Editor's Picks (cards 2–3): paired feature, tinted, roman numeral kicker --- */
:root main:not(:has(> h1)) > article:nth-of-type(2),
:root main:not(:has(> h1)) > article:nth-of-type(3) { background: var(--paper2); border-color: rgba(61,45,31,.16); }
:root main:not(:has(> h1)) > article:nth-of-type(2) > .date::before { content: "N° I · "; color: var(--moment); font-family: var(--fh), serif; font-style: italic; letter-spacing: .02em; }
:root main:not(:has(> h1)) > article:nth-of-type(3) > .date::before { content: "N° II · "; color: var(--moment); font-family: var(--fh), serif; font-style: italic; letter-spacing: .02em; }

/* --- Compact archive tail (cards 10+): boxed cream mini-cards, title-only.
       Same paper token / border / radius / shadow / hover as the journal cards
       above (Rule M7 design-parity) — just tighter. 3-col on desktop via the
       span-2 grid rule; single-column boxed cards on mobile. The box (border /
       radius / shadow / hover) is re-declared HERE so the tail keeps its boxed
       cream-card identity even if the base card rule is ever rescoped — the
       tail must never degrade to plain unboxed text rows (Rule M7 FAIL #1/#2). */
:root main:not(:has(> h1)) > article:nth-of-type(n+10) {
  padding: 18px 22px 20px; background: var(--paper);
  border: 1px solid rgba(61,45,31,.12); border-radius: 8px;
  box-shadow: 0 1px 4px rgba(30,22,15,.05);
}
:root main:not(:has(> h1)) > article:nth-of-type(n+10):hover {
  transform: translateY(-2px); box-shadow: 0 5px 14px rgba(30,22,15,.09);
}
:root main:not(:has(> h1)) > article:nth-of-type(n+10) > .date {
  font-size: 10.5px; letter-spacing: .14em; margin: 0 0 8px;
}
:root main:not(:has(> h1)) > article:nth-of-type(n+10) > h2 {
  font-size: 16px; line-height: 1.3; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:not(:has(> h1)) > article:nth-of-type(n+10) > p:not(.date),
:root main:not(:has(> h1)) > article:nth-of-type(n+10) > a:last-child { display: none; }

/* --- Card CTA: sage pill, German wording swap ("Read More" → Weiterlesen) --- */
:root main:not(:has(> h1)) > article > a:last-child {
  font-size: 0; margin-top: auto; align-self: flex-start; text-decoration: none;
  background: var(--accent); color: var(--paper); padding: 9px 20px; border-radius: 6px;
}
:root main:not(:has(> h1)) > article > a:last-child::after {
  content: "Weiterlesen →"; font-family: var(--meta), sans-serif; font-size: 12.5px;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
:root main:not(:has(> h1)) > article > a:last-child:hover { background: var(--primary); }
/* hero CTA: outlined pill, own wording */
:root main:not(:has(> h1)) > article:nth-of-type(1) > a:last-child {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 11px 26px;
}
:root main:not(:has(> h1)) > article:nth-of-type(1) > a:last-child::after { content: "Ganzen Eintrag lesen →"; font-size: 13px; }
:root main:not(:has(> h1)) > article:nth-of-type(1) > a:last-child:hover { background: var(--primary); color: var(--paper); }

/* --- Two hero strips (Rule F): post-header.jpg bands as section breaks --- */
:root main:not(:has(> h1))::before,
:root main:not(:has(> h1))::after {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #f6efe4; font-family: var(--meta), sans-serif; font-size: 13.5px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.72);
  border-radius: 8px; margin: 26px 0;
}
/* M6 refix (iter 2): reviewer read these as "shallow banner strips" — even mobile (already
   240px) — so the driver is the HEAVY dark overlay flattening them into banners, not pure
   pixel height. Lighten the gradient so the atmospheric photo reads as a hero band, and
   raise both strips to 240px (top of the ~180-240px range) so they are unambiguously the
   taller hero-photo bands the rule asks for. Label stays readable via the stronger shadow. */
:root main:not(:has(> h1))::before {
  content: "IN SCHREIBREIHENFOLGE"; min-height: 240px;
  background: linear-gradient(rgba(20,24,28,.46), rgba(20,24,28,.2)),
              url("/theme-assets/premium-hero-strip-1.webp"); background-size: cover; background-position: center 42%;
}
:root main:not(:has(> h1))::after {
  content: "MEHR ARTIKEL"; min-height: 240px;
  background: linear-gradient(rgba(34,24,18,.48), rgba(34,24,18,.22)),
              url("/theme-assets/post-header.jpg"); background-size: cover; background-position: center 70%;
}
@media (min-width: 720px) {
  :root main:not(:has(> h1))::before, :root main:not(:has(> h1))::after { grid-column: 1 / -1; }
}

/* ================================================================ ARTICLE */
:root main:has(> h1) { padding-bottom: 84px; }
/* atmospheric photo band above the title */
:root main:has(> h1)::before {
  content: ""; display: block; height: 210px; margin: 0 0 30px; border-radius: 8px;
  background: linear-gradient(rgba(30,22,15,.14), rgba(30,22,15,.14)),
              url("/theme-assets/post-header.jpg"); background-size: cover; background-position: center 45%;
}
:root main:has(> h1) > h1 {
  font-family: var(--fh), Cambria, serif; font-weight: 600; font-size: 40px; color: var(--primary);
  line-height: 1.15; letter-spacing: -.005em; margin: 6px 0 12px;
}
:root main:has(> h1) > time {
  display: block; font-family: var(--meta), sans-serif; font-size: 13px; color: var(--accent);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}
/* S6 — persona byline + location above the date line (base theme emits date
   meta only). Single-author diary: Kerstin Haselbeck, Regensburg. */
:root main:has(> h1) > time::before {
  content: "Von Kerstin Haselbeck · Regensburg";
  display: block; color: var(--primary); font-weight: 700; margin-bottom: 5px;
}
:root main:has(> h1) > div {
  font-family: var(--meta), sans-serif; font-size: 11.5px; color: var(--fg); opacity: .55;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 30px;
}

:root main:has(> h1) > article > p { margin-bottom: 20px; font-size: 18.5px; line-height: 1.78; }
/* diary drop cap — moment colour */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  float: left; font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 600;
  font-size: 64px; line-height: .78; color: var(--moment); margin: 6px 12px 0 0;
}
:root main:has(> h1) > article > h2 {
  font-family: var(--fh), Cambria, serif; font-weight: 600; font-size: 27px; color: var(--primary);
  margin: 50px 0 16px; padding-bottom: 0; border-bottom: 0;
}
/* dinkus divider above each section heading */
:root main:has(> h1) > article > h2::before {
  content: "◦ ◦ ◦"; display: block; text-align: center; color: var(--accent);
  font-size: 15px; letter-spacing: .5em; margin: 0 0 24px; opacity: .7;
}
:root main:has(> h1) > article > h3 {
  font-family: var(--fh), Cambria, serif; font-weight: 500; font-style: italic; font-size: 20px;
  color: var(--accent); margin: 36px 0 10px;
}
:root main:has(> h1) > article ul, :root main:has(> h1) > article ol { margin: 0 0 20px 24px; }
:root main:has(> h1) > article li { margin-bottom: 8px; line-height: 1.72; }
:root main:has(> h1) > article blockquote {
  position: relative; border-left: 3px solid var(--accent); padding: 6px 0 6px 32px; margin: 30px 0;
  font-family: var(--fh), Cambria, serif; font-style: italic; font-size: 20px; line-height: 1.5; color: var(--primary);
}
:root main:has(> h1) > article blockquote::before {
  content: "\201C"; position: absolute; left: -2px; top: -8px; font-family: var(--fh), Cambria, serif;
  font-size: 56px; color: var(--accent); opacity: .35; line-height: 1;
}
/* article images (if present) */
:root main:has(> h1) > article > div:has(> img) { margin: 0 0 28px; }
:root main:has(> h1) > article > div:has(> img) > img {
  width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 16px rgba(30,22,15,.14);
}
/* disclosure / "Wichtig" callout box */
:root main:has(> h1) > article > div:has(> strong) {
  background: var(--paper2); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0;
  padding: 16px 22px; margin: 34px 0 0; font-family: var(--fb), system-ui, sans-serif;
  font-size: 14px; font-style: italic; line-height: 1.66; color: var(--fg);
}
:root main:has(> h1) > article > div:has(> strong) strong {
  font-family: var(--fh), Cambria, serif; font-style: normal; font-weight: 600; color: var(--primary);
}

/* body links vs affiliate CTA — CTA path is longer + carries [attr] so it wins (Rule J).
   Live affiliate prefix here is /get/ (plus common fallbacks). */
:root main:has(> h1) > article > p a, :root main:has(> h1) > article > p a:visited,
:root main:has(> h1) > article > li a, :root main:has(> h1) > article > ul a {
  color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600;
}
:root main:has(> h1) > article > p a:hover { color: var(--accent); text-decoration-color: var(--primary); }
:root main:has(> h1) > article > p a[href^="/get/"], :root main:has(> h1) > article > p a[href^="/ref/"],
:root main:has(> h1) > article > p a[href^="/try/"], :root main:has(> h1) > article > p a[href^="/check/"],
:root main:has(> h1) > article > p a[href^="/partner/"], :root main:has(> h1) > article > p a[href^="/go/"],
:root main:has(> h1) > article > li a[href^="/get/"], :root main:has(> h1) > article > ul a[href^="/get/"] {
  background: var(--accent); color: var(--paper); padding: 3px 13px; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-family: var(--meta), sans-serif;
  font-size: 14px; letter-spacing: .03em;
}
:root main:has(> h1) > article > p a[href^="/get/"]:hover, :root main:has(> h1) > article > p a[href^="/ref/"]:hover,
:root main:has(> h1) > article > p a[href^="/try/"]:hover, :root main:has(> h1) > article > p a[href^="/check/"]:hover,
:root main:has(> h1) > article > p a[href^="/partner/"]:hover, :root main:has(> h1) > article > p a[href^="/go/"]:hover,
:root main:has(> h1) > article > li a[href^="/get/"]:hover, :root main:has(> h1) > article > ul a[href^="/get/"]:hover {
  background: var(--primary); color: var(--paper);
}

/* related-articles list on the article page */
:root main:has(> h1) > section {
  margin-top: 52px; padding: 26px 32px; background: var(--paper); border: 1px solid rgba(61,45,31,.1);
  border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0;
}
:root main:has(> h1) > section > h3 {
  font-family: var(--meta), sans-serif; font-size: 12px; color: var(--primary); margin-bottom: 16px;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
:root main:has(> h1) > section > ul { list-style: none; margin: 0; padding: 0; }
:root main:has(> h1) > section > ul > li { padding: 10px 0; border-bottom: 1px dotted rgba(61,45,31,.18); }
:root main:has(> h1) > section > ul > li:last-child { border-bottom: 0; }
:root main:has(> h1) > section > ul > li > a {
  color: var(--fg); text-decoration: none; font-family: var(--fb), system-ui, sans-serif; font-size: 15px; line-height: 1.45;
}
:root main:has(> h1) > section > ul > li > a:hover { color: var(--accent); }

/* ================================================================= FOOTER */
:root footer {
  background: transparent; border-top: 1px solid var(--border); padding: 26px 0 40px; margin-top: 56px;
  text-align: center; font-family: var(--fh), Cambria, serif; font-size: 12.5px; color: var(--fg);
  opacity: .78; letter-spacing: .04em; font-style: italic;
}
:root footer a { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--border); font-style: normal; }
:root footer a:hover { color: var(--primary); border-bottom-color: var(--primary); }


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


/* archive-container-hardening v2 (iter 1 — M7 refix, live DOM confirmed 2026-09-04)
   Live homepage tail = <main> …<article>×14… <section class="css-…"><ul><li><a>title</a>
   </li>×N</ul></section> (confirmed by live curl of zaerin.pages.dev). v1 put the 3-col
   grid on the CONTAINER, but the <section>'s ONLY direct child is the <ul>, so the whole
   list landed in one narrow 1-of-3 cell with empty space to its right — exactly the
   reviewer's M7 symptom. Fix: the container is a full-width block; the 3-col magazine
   grid lives on the INNER <ul>; each <li> is a boxed cream card with the SAME paper/
   border/radius/shadow/hover as the journal + tail cards (Rule M7 design-parity).
   Ordered after the tail (order:9). Home-only scope (article <main> has >h1). */
:root main:not(:has(> h1)) > *:not(article):not(script):not(style) {
  order: 9; grid-column: 1 / -1; display: block;
  background: transparent; border: 0; box-shadow: none;
  padding: 0; margin: 34px 0 0;
}
/* inner list → 3-col magazine index (1-col on mobile) */
:root main:not(:has(> h1)) > *:not(article):not(script):not(style) > ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 720px) {
  :root main:not(:has(> h1)) > *:not(article):not(script):not(style) > ul {
    grid-template-columns: repeat(3, 1fr); gap: 10px 16px;
  }
}
/* each entry = boxed cream card (design-parity with journal cards, tighter) */
:root main:not(:has(> h1)) > *:not(article):not(script):not(style) > ul > li {
  list-style: none; margin: 0; break-inside: avoid;
  background: var(--paper); border: 1px solid rgba(61,45,31,.12);
  border-radius: 8px; box-shadow: 0 1px 4px rgba(30,22,15,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
:root main:not(:has(> h1)) > *:not(article):not(script):not(style) > ul > li:hover {
  transform: translateY(-2px); box-shadow: 0 5px 14px rgba(30,22,15,.09);
}
:root main:not(:has(> h1)) > *:not(article):not(script):not(style) > ul > li > a {
  display: block; padding: 15px 18px;
  color: var(--primary); text-decoration: none;
  font-family: var(--fh), Cambria, serif; font-weight: 600;
  font-size: 15px; line-height: 1.32;
}
:root main:not(:has(> h1)) > *:not(article):not(script):not(style) > ul > li > a:hover { color: var(--accent); }




/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=40% grid=asymmetric scale=balanced family=articles-section */

/* ── Archive <section> tail: photo strip + 260px padding REMOVED (iter 1, M6/M7).
   This block added a THIRD hero strip (premium-hero-strip-2.webp) directly above the
   archive index and 260px of padding that fought the tail layout. The design calls for
   exactly TWO strips (main::before + main::after, Rule M6); the archive-container-
   hardening v2 block above now fully owns the <section> tail (full-width 3-col cards). ── */


/* ── 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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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)) > article:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1))::before,
  :root main:not(:has(> h1))::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}


/* premium-upgrade v4 */
/* premium-upgrade v4 — surgical bundle. Applied 2026-08-30.
   Fixes: M10 CTA / M11 dinkus leak / M4 heights / M9 typography / M5 frames.
   Kills v2 "LATEST" label (proven counterproductive from v2 diagnosis). */

/* ── (removed iter 1, M6) v4's `main::before { content: none }` + v5's "LATEST FEATURES"
   text divider are gone; the base atmospheric hero-photo strip on main::before (position 1,
   between Editor's Picks and the Journal grid) is restored per Rule M6. ── */

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* ── M11: prevent dinkus leaking onto article page's first h2 ── */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

/* ── M4: force equal-height cards via grid stretch + card fill ── */
:root main:not(:has(> h1)) > div:has(> div) {
  align-items: stretch !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
:root main:not(:has(> h1)) > div > article {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* also for flat-divs family */
:root main:not(:has(> h1)) > div {
  height: 100% !important;
}

/* ── M9: cap small-title weight so Bebas/Anton counters don't fill in ── */
:root main:not(:has(> h1)) > div > div > h2,
:root main:not(:has(> h1)) > div > div > h2 a,
:root main:not(:has(> h1)) > section > ul > li > a,
:root main:not(:has(> h1)) > div > p > a {
  font-weight: 500 !important;
}

/* ── M5: universal soft frame fallback for card-like elements ── */
:root main:not(:has(> h1)) > div > div,
:root main:not(:has(> h1)) > div > article,
:root main:not(:has(> h1)) > article {
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05) !important;
}


/* premium-upgrade v5 */
/* premium-upgrade v5 — big M2 band + wider M10 CTA net + M8 breathing. 2026-08-31. */

/* ── M6: "LATEST FEATURES" text divider REMOVED (iter 1). It replaced the required
   position-1 hero-photo strip with a plain paper divider (reviewer M6). The base
   main::before atmospheric photo strip now renders here again. ── */

/* ── M10: broaden CTA net (Amazon, aff/ path, [target=_blank] product-shaped) ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href^="/aff/"],
:root main:has(> h1) a[href^="/product/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"],
:root main:has(> h1) a[href*="amazon."],
:root main:has(> h1) a[href*="/track/"],
:root main:has(> h1) a[href*="/link/"],
:root main:has(> h1) a[href*="lstrk.net"],
:root main:has(> h1) a[href*="thrivecart"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  margin: 4px 2px !important;
}

/* ── M8: article body breathing ── */
:root main:has(> h1) > article > p {
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
}
:root main:has(> h1) > article > h2 {
  margin-top: 48px !important;
  margin-bottom: 18px !important;
}
:root main:not(:has(> h1)) > div:has(> div) {
  gap: 40px 32px !important;
}

