*{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}
.block-95cae8{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 .container-aab2db{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.nav-b380c8{border-bottom:1px solid #eee;padding:24px 0}
.nav-b380c8 h2{font-size:20px;margin-bottom:8px}
.nav-b380c8 h2 a{color:#1a1a2e;text-decoration:none}
.nav-b380c8 h2 a:hover{color:#e94560}
.nav-b380c8 .date{font-size:13px;color:#999;margin-bottom:8px}
.page-fe8cd6{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.section-9198d4{padding-bottom:60px}
.section-9198d4 h1{font-size:32px;margin-bottom:8px}
.section-9198d4 time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.section-9198d4 h2{font-size:22px;margin:32px 0 12px}
.section-9198d4 h3{font-size:18px;margin:24px 0 8px}
.section-9198d4 p{margin-bottom:16px}
.section-9198d4 ul,.section-9198d4 ol{margin:0 0 16px 24px}
.section-9198d4 a{color:#e94560}
.section-9198d4 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}
.shell-85d6b7{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.outer-9c4b4d{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.panel-bcd899{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.container-0a37f3{text-align:center;margin:0 0 20px}
.frame-d404ae{max-width:100%;height:auto;border-radius:6px}
.footer-3db259{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.footer-3db259 h3{font-size:18px;margin-bottom:12px}
.footer-3db259 ul{list-style:none;padding:0}
.footer-3db259 li{padding:4px 0}
.footer-3db259 a{color:#e94560;text-decoration:none}
.page-fe4c2f{padding:20px 0}
.page-fe4c2f ul{list-style:none;padding:0}
.page-fe4c2f li{padding:5px 0;font-size:15px}
.page-fe4c2f a{color:#1a1a2e;text-decoration:none}
.page-fe4c2f a:hover{color:#e94560}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
body{font-family:'Montserrat',sans-serif;color:#1A1A1A;background:#FAF7F2}
header{background:#2D1B2D;color:#fff}
header h1{font-family:'Playfair Display',serif;color:#fff}
header p{color:rgba(255,255,255,.75)}
header a{color:#fff;text-decoration:none}
.nav-b380c8 h2{font-family:'Playfair Display',serif}
.nav-b380c8 h2 a{color:#2D1B2D}
.nav-b380c8 h2 a:hover{color:#D4AF37}
.page-fe8cd6{color:#D4AF37}
.section-9198d4 h1{font-family:'Playfair Display',serif}
.section-9198d4 h2{font-family:'Playfair Display',serif}
.section-9198d4 a{color:#D4AF37}
.section-9198d4 img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* v.d7be1e — layout revision */
/* ms-art-es — Cuaderno de Paleta — maquillaje editorial Hollywood (minimal static engine) */
/* Live DOM: home main = <article>×N + <section> archive; reading main:has(h1). */
/* Baked theme accent is #FF0055 — overridden below via :root-boosted specificity. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,600;1,700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --plum:        #2D1B2D;
  --plum-2:      #241A24;
  --gold:        #C5A059;
  --gold-soft:   #D8BE8A;
  --red:         #8B2E2E;   /* moment colour — drop-cap motif only */
  --paper:       #F4EDDF;   /* warm ivory page */
  --card:        #FBF6EC;   /* lighter ivory card */
  --ink:         #241A24;
  --muted:       #6B5068;
  --line:        rgba(45,27,45,.12);
  --cream:       #F3ECDD;
  --font-heading:'Playfair Display', Georgia, serif;
  --font-body:   'Montserrat', system-ui, sans-serif;
}

/* ── Base ── */
:root *, :root *::before, :root *::after { box-sizing: border-box; }
:root body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.75; font-weight: 400;
  color: var(--ink); background-color: var(--paper);
  margin: 0; padding: 0; -webkit-font-smoothing: antialiased;
}
:root a { color: var(--plum); text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
:root a:hover, :root a:focus { color: var(--gold); outline: none; }
:root p { max-width: 68ch; margin: 0 0 1.4em; }
:root ul, :root ol { max-width: 68ch; }
:root hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
:root code { font-size: .9em; background: #efe6d6; padding: .15em .4em; border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   MASTHEAD  (full-bleed photo band + gradient italic wordmark)
   ══════════════════════════════════════════════════════════════ */
:root header {
  background-color: var(--plum);
  background-image: linear-gradient(rgba(30,18,30,.76), rgba(30,18,30,.84)),
                    url("/theme-assets/hero-masthead.jpg");
  background-size: cover; background-position: center;
  padding: 62px 0 54px; margin-bottom: 0;
  border-bottom: 3px solid var(--gold);
}
:root header > div { text-align: center; }
:root header > div::before {
  content: "Diario de maquillaje editorial · Valparaíso";
  display: block; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .3em; font-size: 11px; font-weight: 600;
  color: var(--gold); margin-bottom: 16px;
}
:root header h1 {
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  font-size: 46px; line-height: 1.05; letter-spacing: .01em; margin: 0;
  color: var(--gold);
  background: linear-gradient(92deg, #E7D2A0 0%, #C5A059 52%, #B98BA8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* article/static masthead wordmark is a link */
:root header a {
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  color: var(--gold); border-bottom: none;
}
:root header a:hover { color: var(--gold-soft); }
/* home manifesto line */
:root header > div > p {
  font-family: var(--font-heading); font-style: italic; font-weight: 400;
  font-size: 16px; line-height: 1.55; color: rgba(243,236,221,.86);
  max-width: 60ch; margin: 15px auto 0;
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE  —  main:not(:has(h1))  = no <h1> anywhere (cards use h2)
   6-col editorial grid, arranged with order:
   1 hero · 2 EP label · 3 EP cards · 4 journal lead (+EL CUADERNO strip)
   5 journal grid · 6 VER MÁS strip · 7 archive tail
   ══════════════════════════════════════════════════════════════ */
:root main:not(:has(h1)) {
  max-width: 1080px; margin: 0 auto 40px; padding: 66px 24px 0;
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 34px 30px; align-items: stretch;
}

/* — base card (defaults to journal grid: span 3, order 5) — */
:root main:not(:has(h1)) > article {
  grid-column: span 3; order: 5; margin: 0;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 4px rgba(45,27,45,.05);
  padding: 26px 32px 28px;
}
:root main:not(:has(h1)) > article > p:first-of-type {          /* date/kicker */
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .16em; font-size: 11.5px; line-height: 1.4;
  color: var(--muted); margin: 0 0 10px;
}
:root main:not(:has(h1)) > article > h2 {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  line-height: 1.18; margin: 0 0 12px; letter-spacing: 0;
}
:root main:not(:has(h1)) > article > h2 a { color: var(--plum); border-bottom: none; }
:root main:not(:has(h1)) > article:hover > h2 a { color: var(--gold); }
:root main:not(:has(h1)) > article > p:nth-of-type(2) {         /* excerpt */
  font-size: 15.5px; line-height: 1.62; color: var(--ink);
  margin: 0 0 18px; max-width: 64ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:not(:has(h1)) > article > a:last-child {             /* read-more → pill/kicker */
  margin-top: auto; align-self: flex-start; font-size: 0;
  color: var(--plum); border-bottom: none;
}
:root main:not(:has(h1)) > article > a:last-child::after {
  content: "Leer la entrada →";
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11.5px;
}
:root main:not(:has(h1)) > article > a:last-child:hover { color: var(--gold); }

/* — HERO (article 1) — */
:root main:not(:has(h1)) > article:nth-of-type(1) {
  grid-column: 1 / -1; order: 1;
  padding: 44px 52px 46px;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px;
}
:root main:not(:has(h1)) > article:nth-of-type(1)::before {
  content: "Último ensayo"; display: block;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .28em; font-size: 11px; font-weight: 600;
  color: var(--gold); margin-bottom: 16px;
}
:root main:not(:has(h1)) > article:nth-of-type(1) > p:first-of-type {
  font-size: 12px; letter-spacing: .2em; margin-bottom: 18px;
}
:root main:not(:has(h1)) > article:nth-of-type(1) > p:first-of-type::before {
  content: "Por Lorena · Valparaíso · "; color: var(--plum);
}
:root main:not(:has(h1)) > article:nth-of-type(1) > h2 {
  font-style: italic; font-weight: 700; font-size: 46px; line-height: 1.08;
  max-width: 20ch; margin-bottom: 20px;
}
:root main:not(:has(h1)) > article:nth-of-type(1) > p:nth-of-type(2) {
  font-size: 20px; line-height: 1.5; max-width: 60ch; margin-bottom: 26px;
  -webkit-line-clamp: 4;
}
:root main:not(:has(h1)) > article:nth-of-type(1) > p:nth-of-type(2)::first-letter {
  font-family: var(--font-heading); font-style: italic; font-size: 3.4em;
  line-height: .8; float: left; margin: .02em .1em 0 0; color: var(--red);
}
:root main:not(:has(h1)) > article:nth-of-type(1) > a:last-child {
  align-self: flex-start; margin-top: 0;
  padding: 13px 27px; border: 1.5px solid var(--plum); border-radius: 999px;
  color: var(--plum);
}
:root main:not(:has(h1)) > article:nth-of-type(1) > a:last-child::after {
  content: "Leer el ensayo completo →"; font-size: 12.5px;
}
:root main:not(:has(h1)) > article:nth-of-type(1) > a:last-child:hover { background: var(--plum); }
:root main:not(:has(h1)) > article:nth-of-type(1) > a:last-child:hover::after { color: var(--cream); }

/* — EDITOR'S PICKS label (container ::before, full row) — */
:root main:not(:has(h1))::before {
  content: "Selección de Lorena — empieza por aquí";
  order: 2; grid-column: 1 / -1;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .24em; font-size: 13px; font-weight: 600; color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--gold); margin: 58px 0 0;
}
/* — EP cards (2–4): 3 across, gold top rule — */
:root main:not(:has(h1)) > article:nth-of-type(2),
:root main:not(:has(h1)) > article:nth-of-type(3),
:root main:not(:has(h1)) > article:nth-of-type(4) {
  grid-column: span 2; order: 3; border-top: 3px solid var(--gold);
}
:root main:not(:has(h1)) > article:nth-of-type(2) > h2,
:root main:not(:has(h1)) > article:nth-of-type(3) > h2,
:root main:not(:has(h1)) > article:nth-of-type(4) > h2 { font-size: 19px; }

/* — JOURNAL LEAD (article 5) full-width, EL CUADERNO photo strip as its ::before — */
:root main:not(:has(h1)) > article:nth-of-type(5) {
  grid-column: 1 / -1; order: 4; overflow: hidden;
  padding: 0 40px 34px; margin-top: 66px;
}
:root main:not(:has(h1)) > article:nth-of-type(5)::before {
  content: "El Cuaderno"; margin: 0 -40px 30px; min-height: 210px;
  background-image: linear-gradient(rgba(20,16,20,.55), rgba(20,16,20,.28)),
                    url("/theme-assets/article-hero.jpg");
  background-size: cover; background-position: center 30%;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px;
  color: var(--cream); font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .32em; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
:root main:not(:has(h1)) > article:nth-of-type(5) > h2 { font-style: italic; font-size: 30px; max-width: 24ch; }
:root main:not(:has(h1)) > article:nth-of-type(5) > p:nth-of-type(2) { font-size: 17px; max-width: 68ch; }

/* — VER MÁS photo strip (container ::after) — */
:root main:not(:has(h1))::after {
  content: "Ver más"; order: 6; grid-column: 1 / -1;
  min-height: 210px; margin-top: 66px; border-radius: 8px;
  background-image: linear-gradient(rgba(20,16,20,.55), rgba(20,16,20,.28)),
                    url("/theme-assets/article-hero.jpg");
  background-size: cover; background-position: center 70%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .32em; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* — ARCHIVE TAIL (<section>) full-width magazine index — boxed cream cards, design parity w/ top journal cards (M7) — */
:root main:not(:has(h1)) > section {
  grid-column: 1 / -1; order: 7; margin-top: 46px;
  background: transparent; border: none; border-radius: 0;
  box-shadow: none; padding: 0;
}
:root main:not(:has(h1)) > section::before {
  content: "El archivo completo"; display: block;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .24em; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--gold);
}
:root main:not(:has(h1)) > section ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px;
  align-items: stretch;
}
:root main:not(:has(h1)) > section li {
  margin: 0; break-inside: avoid; display: flex;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 4px rgba(45,27,45,.05);
  padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:root main:not(:has(h1)) > section li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45,27,45,.09);
  border-color: var(--gold-soft);
}
:root main:not(:has(h1)) > section li a {
  font-family: var(--font-heading); font-style: italic; font-size: 15.5px;
  line-height: 1.4; color: var(--plum); border-bottom: none;
}
:root main:not(:has(h1)) > section li a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   READING PAGES  —  main:has(h1)  (article + static; static h1 sits in article)
   ══════════════════════════════════════════════════════════════ */
:root main:has(h1) h1 {
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  font-size: 42px; line-height: 1.12; color: var(--plum); margin: 0 0 .3em;
}
:root main:has(h1) h1::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--gold); margin: .5em 0 0;
}
:root main:has(h1) > time {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .18em; font-size: 12.5px; color: var(--muted);
  display: block; margin: 1.1em 0 2em;
}
/* article byline / persona anchor before the date (S6) */
:root main:has(h1) > time::before {
  content: "Por Lorena Cifuentes · Valparaíso · ";
  color: var(--plum);
}
:root main:has(h1) article > p { font-size: 18.5px; line-height: 1.78; margin: 0 0 1.35em; max-width: 68ch; color: var(--ink); }
:root main:has(h1) article > p:first-of-type::first-letter {
  font-family: var(--font-heading); font-style: italic; font-size: 3.2em;
  line-height: .8; float: left; margin: .04em .12em 0 0; color: var(--red);
}
:root main:has(h1) article > h2 {
  font-family: var(--font-heading); font-weight: 700; font-size: 27px;
  line-height: 1.2; color: var(--plum); margin: 2.3em 0 .5em;
}
:root main:has(h1) article > h2::before {
  content: "✦ ✦ ✦"; display: block; color: var(--gold);
  font-size: 13px; letter-spacing: .3em; margin-bottom: .7em;
}
:root main:has(h1) article > h3 {
  font-family: var(--font-heading); font-style: italic; font-weight: 600;
  font-size: 20px; color: var(--plum); margin: 1.8em 0 .4em;
}
:root main:has(h1) article > ul, :root main:has(h1) article > ol { margin: 0 0 1.4em 1.4em; max-width: 68ch; }
:root main:has(h1) article > ul li, :root main:has(h1) article > ol li { margin-bottom: .5em; line-height: 1.7; }
:root main:has(h1) article > ul li::marker { color: var(--gold); }

/* in-article Table-of-Contents <nav> */
:root main:has(h1) article > nav {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 16px 24px; margin: 24px 0;
}
:root main:has(h1) article > nav ul { list-style: none; margin: 0; padding: 0; max-width: none; }
:root main:has(h1) article > nav li { margin: .25em 0; }
:root main:has(h1) article > nav a { color: var(--plum); border-bottom: 1px solid var(--gold-soft); }

/* body links */
:root main:has(h1) article a { color: var(--plum); border-bottom: 1px solid var(--gold-soft); }
:root main:has(h1) article a:hover { color: var(--gold); border-color: var(--gold); }
/* external / source citations */
:root main:has(h1) article a[href^="http"] { color: var(--plum); border-bottom: 1px solid rgba(45,27,45,.28); }
:root main:has(h1) article a[href^="http"]:hover { color: var(--gold); border-color: var(--gold); }
/* affiliate CTA — distinct plum PILL/BUTTON, unmistakable vs prose links (M10) */
:root main:has(h1) article a[href^="/pick/"] {
  display: inline-block; vertical-align: baseline;
  background: var(--plum); color: var(--gold-soft);
  font-family: var(--font-body); font-weight: 700; font-size: .92em;
  letter-spacing: .02em; line-height: 1.3;
  padding: .42em 1.05em; margin: .12em 0;
  border-radius: 999px; border-bottom: none;
  box-shadow: 0 2px 6px rgba(45,27,45,.18);
}
:root main:has(h1) article a[href^="/pick/"]::after { content: " \2192"; font-weight: 700; }
:root main:has(h1) article a[href^="/pick/"]:hover {
  background: var(--gold); color: var(--plum);
  box-shadow: 0 4px 12px rgba(45,27,45,.24);
}

/* blockquote — hanging quote */
:root main:has(h1) article blockquote {
  max-width: 68ch; margin: 2rem 0; padding: .4rem 0 .4rem 2rem; position: relative;
  border-left: 3px solid var(--gold);
  font-family: var(--font-heading); font-style: italic; font-size: 1.2rem;
  line-height: 1.5; color: var(--muted);
}
:root main:has(h1) article blockquote p { max-width: none; margin: 0; }
:root main:has(h1) article blockquote::before {
  content: "\201C"; position: absolute; left: .4rem; top: -.1em;
  font-family: var(--font-heading); font-size: 2.4rem; color: var(--gold); line-height: 1;
}

/* comparison / glosario table */
:root main:has(h1) article table {
  border-collapse: separate; border-spacing: 0; width: 100%; margin: 28px 0;
  font-size: 15.5px; line-height: 1.55; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
:root main:has(h1) article table th {
  background: var(--plum); color: var(--cream);
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 12px; text-align: left;
  padding: 12px 16px; border: none;
}
:root main:has(h1) article table td { padding: 12px 16px; border: none; border-top: 1px solid var(--line); vertical-align: top; }
:root main:has(h1) article table tbody tr:nth-child(even) td { background: rgba(197,160,89,.09); }
:root main:has(h1) article table td strong { color: var(--plum); }
:root main:has(h1) article table a { border-bottom: none; }

/* featured image */
:root main:has(h1) article img { border-radius: 8px; }

/* related posts (<section> after article) */
:root main:has(h1) > section {
  margin-top: 56px; padding-top: 26px; border-top: 2px solid var(--plum);
}
:root main:has(h1) > section h3 {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em;
  font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 .9em;
}
:root main:has(h1) > section ul { list-style: none; padding: 0; margin: 0; max-width: none; }
:root main:has(h1) > section li { padding: .5em 0; border-bottom: 1px dotted var(--line); }
:root main:has(h1) > section li a {
  font-family: var(--font-heading); font-style: italic; font-size: 18px;
  color: var(--plum); border-bottom: none;
}
:root main:has(h1) > section li a:hover { color: var(--gold); }

/* affiliate disclosure / YMYL — quiet them */
:root .shell-85d6b7 { font-size: 12.5px; font-style: italic; color: #8a7885; background: #efe7d7; border-left-color: var(--gold); }
:root .panel-bcd899 { font-style: italic; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
:root footer {
  background: var(--plum); border-top: 3px solid var(--gold);
  margin-top: 0; padding: 36px 0; text-align: center;
  font-family: var(--font-body); font-size: 14px; color: rgba(243,236,221,.7);
}
:root footer a { color: rgba(243,236,221,.85); border-bottom: 1px solid rgba(197,160,89,.4); }
:root footer a:hover { color: var(--gold); border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  :root main:not(:has(h1)) { grid-template-columns: 1fr; gap: 26px; padding: 40px 18px 0; }
  :root main:not(:has(h1)) > article,
  :root main:not(:has(h1)) > article:nth-of-type(2),
  :root main:not(:has(h1)) > article:nth-of-type(3),
  :root main:not(:has(h1)) > article:nth-of-type(4) { grid-column: 1 / -1; }
  :root main:not(:has(h1)) > article:nth-of-type(1) { padding: 32px 26px 34px; }
  :root main:not(:has(h1)) > article:nth-of-type(1) > h2 { font-size: 33px; }
  :root main:not(:has(h1)) > article:nth-of-type(5) { padding: 0 24px 28px; }
  :root main:not(:has(h1)) > article:nth-of-type(5)::before { margin: 0 -24px 24px; }
  :root main:not(:has(h1)) > section ul { columns: 1; }
  :root header h1 { font-size: 34px; }
  :root main:has(h1) h1 { font-size: 32px; }
  :root main:has(h1) article > p { font-size: 17.5px; }
}


/* 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=Substack-modern overlay=25% grid=asymmetric scale=balanced family=articles-section */

/* ── Archive strip above <section> tail (overlay 25%) ── */
:root main:not(:has(> h1)) > section {
  position: relative;
  padding-top: 260px;
  grid-column: 1 / -1;
}
:root main:not(:has(> h1)) > section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 240px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  border-radius: 8px;
}


/* ── 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). */

/* ── Kill v2 counterproductive homepage label ── */
:root main:not(:has(> h1))::before { content: none !important; }

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

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

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

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

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


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

/* ── M2: PROMINENT full-row label, not the small word v2 tried ── */
:root main:not(:has(> h1))::before {
  content: "◆ LATEST FEATURES ◆" !important;
  display: block !important;
  font-family: var(--fh, "PT Sans"), Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 16px 24px 20px !important;
  margin: 0 0 40px !important;
  border-top: 3px solid var(--primary, #333) !important;
  border-bottom: 1px solid var(--border, #ccc) !important;
  color: var(--primary, #333) !important;
  background: transparent !important;
}

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

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

