*{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}
.astro-y0QHapeU{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 .astro-m72zzmam{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.astro-iidMCmdn{border-bottom:1px solid #eee;padding:24px 0}
.astro-iidMCmdn h2{font-size:20px;margin-bottom:8px}
.astro-iidMCmdn h2 a{color:#1a1a2e;text-decoration:none}
.astro-iidMCmdn h2 a:hover{color:#e94560}
.astro-iidMCmdn .date{font-size:13px;color:#999;margin-bottom:8px}
.astro-FCnnftyS{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.astro-wjJpeulK{padding-bottom:60px}
.astro-wjJpeulK h1{font-size:32px;margin-bottom:8px}
.astro-wjJpeulK time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.astro-wjJpeulK h2{font-size:22px;margin:32px 0 12px}
.astro-wjJpeulK h3{font-size:18px;margin:24px 0 8px}
.astro-wjJpeulK p{margin-bottom:16px}
.astro-wjJpeulK ul,.astro-wjJpeulK ol{margin:0 0 16px 24px}
.astro-wjJpeulK a{color:#e94560}
.astro-wjJpeulK 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}
.astro-3XxbyCZx{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.astro-gErK2ANP{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.astro-i5vOELsq{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.astro-xEoVvCTN{text-align:center;margin:0 0 20px}
.astro-UQihLpcf{max-width:100%;height:auto;border-radius:6px}
.astro-tO3GH5Xu{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.astro-tO3GH5Xu h3{font-size:18px;margin-bottom:12px}
.astro-tO3GH5Xu ul{list-style:none;padding:0}
.astro-tO3GH5Xu li{padding:4px 0}
.astro-tO3GH5Xu a{color:#e94560;text-decoration:none}
.astro-AwP3kfch{padding:20px 0}
.astro-AwP3kfch ul{list-style:none;padding:0}
.astro-AwP3kfch li{padding:5px 0;font-size:15px}
.astro-AwP3kfch a{color:#1a1a2e;text-decoration:none}
.astro-AwP3kfch a:hover{color:#e94560}
/* === Theme === */
:root{--primary:#7A4A26;--accent:#5C7A95;--bg:#EFEAD5;--fg:#1F140A;--border:#C4B095;--r:3px;--fb:'Petrona';--fh:'Cormorant Garamond';--fm:'Archivo';--moment:#3D5A47;--paper:#F7F2DF;--rule:#D8C9AC}
/* === Custom === */
/* v.b88ce5 — layout revision */
/* se-spirit-es · AlmaCeiba — editorial pass on the Astro flat-feed template.
   Page discriminators (structural, class names avoided):
     Home    = main:has(> article + article)        (feed of 13 <article> cards + archive <section>)
     Card    = main > article:has(> p.date)          (homepage card; real articles have no p.date)
     Article = main > article:not(:has(> p.date))    (article + static body)
   Affiliate links live at /deal/* (NOT /ref /try — those never fired).
   Type: Cormorant Garamond italic (display) · Petrona (body) · Archivo tracked (meta) — all baked in site.css.
   Moment colour #3D5A47 used in exactly 2 places: masthead signature tick + hero drop cap.
   Real assets: /theme-assets/hero-masthead.jpg (masthead) + /theme-assets/article-hero.jpg (strips). */

:root body { font-family: var(--fb), Georgia, serif; color: var(--fg); background: var(--bg); line-height: 1.74; font-size: 16.5px; }
::selection { background: var(--accent); color: var(--paper); }
:root hr { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }

/* ============================== MASTHEAD ============================== */
:root > body > header {
  background: linear-gradient(rgba(40, 27, 15, .60), rgba(40, 27, 15, .80)), url("/theme-assets/hero-masthead.jpg");
  background-size: cover; background-position: center 58%; background-repeat: no-repeat;
  color: var(--paper); padding: 68px 0 46px; margin-bottom: 0; border-bottom: 3px solid var(--accent);
  text-align: center;
}
:root > body > header > div { max-width: 900px; margin: 0 auto; padding: 0 24px; }
:root > body > header h1,
:root > body > header a {
  font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600; color: var(--paper);
  line-height: 1.04; letter-spacing: .01em; text-decoration: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
:root > body > header h1 { font-size: 52px; margin-bottom: 0; }
:root > body > header a { font-size: 34px; }
:root > body > header p {
  font-family: var(--fb), Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.5;
  color: rgba(247, 242, 223, .9); max-width: 610px; margin: 16px auto 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
:root > body > header p::before {
  content: ""; display: block; width: 46px; height: 2px; background: var(--moment); margin: 0 auto 16px;
}
/* article/static masthead has no tagline <p> — restore the signature manifesto line */
:root > body > header:not(:has(p)) > div::after {
  content: "Lo que sí movió algo — y lo que sólo fue el marketing de alguien más.";
  display: block; margin: 14px auto 0; max-width: 560px;
  font-family: var(--fb), Georgia, serif; font-style: italic; font-size: 15px;
  color: rgba(247, 242, 223, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

/* ============================== MAIN (article/static base) ============================== */
:root main { max-width: 748px; margin: 0 auto; padding: 54px 24px 84px; }

:root main > h1,
:root main > article:not(:has(> p.date)) > h1 {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 42px; line-height: 1.12;
  color: var(--primary); margin: 0 0 .5em; letter-spacing: .005em;
}
:root main > time {
  display: block; font-family: var(--fm), system-ui, sans-serif; font-size: 12px; color: var(--accent);
  letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 32px;
}

/* article body */
:root main > article:not(:has(> p.date)) > p { margin: 0 0 20px; font-family: var(--fb), Georgia, serif; font-size: 18px; line-height: 1.78; }
:root main > article:not(:has(> p.date)) > p:first-of-type { font-size: 19.5px; line-height: 1.8; font-style: italic; color: var(--primary); }
:root main > article:not(:has(> p.date)) > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-style: normal; font-size: 3.1em; line-height: .8;
  float: left; margin: .02em .09em 0 0; color: var(--primary);
}
:root main > article:not(:has(> p.date)) > h2 {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 29px; line-height: 1.18;
  color: var(--primary); margin: 1.75em 0 .5em; padding: 0; border: 0; letter-spacing: .005em;
}
:root main > article:not(:has(> p.date)) > h2::before {
  content: "✷"; display: block; text-align: center; color: var(--accent); font-size: 15px;
  letter-spacing: .5em; margin: 0 0 .6em; opacity: .7;
}
:root main > article:not(:has(> p.date)) > h3 {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 22px; color: var(--primary); margin: 1.6em 0 .4em;
}
:root main > article:not(:has(> p.date)) ul,
:root main > article:not(:has(> p.date)) ol { margin: 0 0 20px 22px; }
:root main > article:not(:has(> p.date)) li { margin-bottom: 8px; font-family: var(--fb), Georgia, serif; font-size: 17.5px; line-height: 1.7; }
:root main > article:not(:has(> p.date)) li strong,
:root main > article:not(:has(> p.date)) > p strong { color: var(--primary); font-weight: 700; }

/* article body links */
:root main > article:not(:has(> p.date)) > p a,
:root main > article:not(:has(> p.date)) > p a:visited,
:root main > article:not(:has(> p.date)) > li a,
:root main > article:not(:has(> p.date)) > 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 > article:not(:has(> p.date)) > p a:hover { color: var(--accent); text-decoration-color: var(--primary); }

/* affiliate /deal/ CTA chips — must out-specify the body-link rule (RULE J: same path + attribute) */
:root main > article:not(:has(> p.date)) > p a[href^="/deal/"],
:root main > article:not(:has(> p.date)) > ul a[href^="/deal/"],
:root main > article:not(:has(> p.date)) > li a[href^="/deal/"] {
  display: inline-block; background: var(--primary); color: var(--paper); padding: 4px 15px; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-family: var(--fm), system-ui, sans-serif; font-size: 14.5px;
  letter-spacing: .02em; box-shadow: 0 1px 4px rgba(31, 20, 10, .18);
}
:root main > article:not(:has(> p.date)) > p a[href^="/deal/"]::after,
:root main > article:not(:has(> p.date)) > ul a[href^="/deal/"]::after,
:root main > article:not(:has(> p.date)) > li a[href^="/deal/"]::after { content: " ↗"; font-size: .85em; }
:root main > article:not(:has(> p.date)) > p a[href^="/deal/"]:hover,
:root main > article:not(:has(> p.date)) > ul a[href^="/deal/"]:hover,
:root main > article:not(:has(> p.date)) > li a[href^="/deal/"]:hover { background: #5f3a1d; color: var(--paper); }

/* article images (hero wrapper is div:first-child; inline-wrap Gemini blocks left untouched) */
:root main > article:not(:has(> p.date)) > div:first-child img,
:root main > article:not(:has(> p.date)) > figure img,
:root main > article:not(:has(> p.date)) > img {
  width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 3px 14px rgba(31, 20, 10, .14); margin: 6px 0 26px;
}
:root main > article:not(:has(> p.date)) > figure { margin: 0 0 26px; }

/* blockquote — hanging quote */
:root main > article:not(:has(> p.date)) blockquote {
  margin: 26px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent);
  font-family: var(--fh), Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.4; color: var(--primary); position: relative;
}

/* related-articles panel (article page) */
:root main:has(> h1) > section {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 26px 30px; margin-top: 42px;
  box-shadow: 0 1px 5px rgba(31, 20, 10, .05);
}
.astro-tO3GH5Xu h3 { font-family: var(--fh), Georgia, serif; font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.astro-tO3GH5Xu ul { list-style: none; padding: 0; margin: 0; }
.astro-tO3GH5Xu li { margin-bottom: 8px; }
.astro-tO3GH5Xu a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; font-family: var(--fb), Georgia, serif; }
.astro-tO3GH5Xu a:hover { color: var(--accent); }

/* disclaimer — discreet italic note */
.astro-gErK2ANP { background: transparent; border: 0; border-top: 1px solid var(--rule); padding: 18px 0 0; margin-top: 36px; font-size: 12px; color: var(--fg); opacity: .55; font-style: italic; }

/* ============================== HOMEPAGE FEED ============================== */
:root main:has(> article + article) {
  max-width: 1180px; padding: 58px 32px 104px;
  display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 30px; row-gap: 46px; align-items: stretch;
}

/* section label above the Editor's Picks row (RULE B — full-row, outside frames, via grid pseudo) */
:root main:has(> article + article)::before {
  content: "Selección de la editora"; order: 2; grid-column: 1 / -1;
  font-family: var(--fm), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .26em; font-size: 14px;
  font-weight: 600; color: var(--accent); padding: 0 2px 12px; margin: 22px 0 0; border-bottom: 1px solid var(--rule);
}
/* Strip 1 — between picks and journal */
:root main:has(> article + article)::after {
  content: "El diario — más recientes"; order: 4; grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; min-height: 208px; margin: 26px 0 6px; border-radius: 8px;
  background: linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .28)), url("/theme-assets/article-hero.jpg");
  background-size: cover; background-position: center 30%;
  color: var(--paper); font-family: var(--fm), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .32em;
  font-size: 14px; font-weight: 600; text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}

/* HERO — first card, full-width, big display title + drop cap + right meta rail */
:root main:has(> article + article) > article:first-of-type {
  order: 1; grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) 210px; column-gap: 48px; align-items: start;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 3px 16px rgba(31, 20, 10, .09); padding: 48px 52px 44px; margin: 0;
}
:root main:has(> article + article) > article:first-of-type::before {
  content: "Último ensayo"; grid-column: 1; grid-row: 1;
  font-family: var(--fm), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .28em; font-size: 12.5px; font-weight: 600; color: var(--accent);
}
:root main:has(> article + article) > article:first-of-type > h2 {
  grid-column: 1; grid-row: 2; margin: 10px 0 0;
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 46px; line-height: 1.08; letter-spacing: .005em;
}
:root main:has(> article + article) > article:first-of-type > h2 a { color: var(--primary); text-decoration: none; }
:root main:has(> article + article) > article:first-of-type > p:not(.date) {
  grid-column: 1; grid-row: 3; margin: 18px 0 0; max-width: 60ch;
  font-family: var(--fb), Georgia, serif; font-size: 19px; line-height: 1.6; color: var(--fg);
}
:root main:has(> article + article) > article:first-of-type > p:not(.date)::first-letter {
  font-family: var(--fh), Georgia, serif; font-weight: 600; color: var(--moment); font-size: 3.4em; line-height: .78; float: left; margin: .02em .1em 0 0;
}
:root main:has(> article + article) > article:first-of-type > a:last-child {
  grid-column: 1; grid-row: 4; justify-self: start; margin-top: 26px; font-size: 0;
  background: var(--primary); color: var(--paper); padding: 12px 22px; border-radius: 6px; text-decoration: none;
}
:root main:has(> article + article) > article:first-of-type > a:last-child::after {
  content: "Leer el ensayo →"; font-family: var(--fm), system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
:root main:has(> article + article) > article:first-of-type > a:last-child:hover { background: #5f3a1d; }
/* hero right meta rail — fills the second column (RULE 4: no empty side) */
:root main:has(> article + article) > article:first-of-type > p.date {
  grid-column: 2; grid-row: 1 / span 4; align-self: start; margin: 4px 0 0;
  border-left: 2px solid var(--rule); padding: 2px 0 2px 22px;
  font-family: var(--fm), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 600; color: var(--accent); line-height: 1.7;
}
:root main:has(> article + article) > article:first-of-type > p.date::before { content: "Publicado"; display: block; opacity: .55; margin-bottom: 2px; }
:root main:has(> article + article) > article:first-of-type > p.date::after {
  content: "Por Mariana · Lectura 6 min"; display: block; margin-top: 10px; color: var(--fg); opacity: .58; letter-spacing: .1em; font-size: 11px;
}

/* PICKS (2–4) + JOURNAL (5+) — consistent card treatment */
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 1px 5px rgba(31, 20, 10, .05);
  padding: 26px 32px 24px; display: flex; flex-direction: column; margin: 0;
}
:root main:has(> article + article) > article:nth-of-type(n+2):nth-of-type(-n+4) { order: 3; grid-column: span 2; border-top: 3px solid var(--accent); }
:root main:has(> article + article) > article:nth-of-type(n+5) { order: 5; grid-column: span 2; }

:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > p.date {
  order: 1; margin: 0 0 10px; font-family: var(--fm), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; color: var(--accent);
}
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > h2 {
  order: 2; margin: 0; font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 23px; line-height: 1.2;
}
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > h2 a { color: var(--primary); text-decoration: none; }
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > h2 a:hover { color: var(--accent); }
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > p:not(.date) {
  order: 3; margin: 12px 0 0; font-family: var(--fb), Georgia, serif; font-size: 15.5px; line-height: 1.6; color: var(--fg); opacity: .9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > a:last-child {
  order: 4; margin-top: auto; padding-top: 16px; font-size: 0; color: var(--accent); text-decoration: none;
}
:root main:has(> article + article) > article:has(> p.date):not(:first-of-type) > a:last-child::after {
  content: "Leer más →"; font-family: var(--fm), system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* ARCHIVE TAIL — full-width magazine index, capped by Strip 2 */
:root main:has(> article + article) > section {
  order: 6; grid-column: 1 / -1; margin: 30px 0 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: 0 40px 36px; box-shadow: 0 1px 5px rgba(31, 20, 10, .05); overflow: hidden;
}
:root main:has(> article + article) > section::before {
  content: "Todas las entradas"; display: flex; align-items: center; justify-content: center; min-height: 208px;
  margin: 0 -40px 30px; /* bleed over the panel padding → full-row band */
  background: linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .25)), url("/theme-assets/article-hero.jpg");
  background-size: cover; background-position: center 70%;
  color: var(--paper); font-family: var(--fm), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .32em;
  font-size: 14px; font-weight: 600; text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}
:root main:has(> article + article) > section ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 40px; }
:root main:has(> article + article) > section li { break-inside: avoid; margin: 0; padding: 9px 0; border-bottom: 1px dotted rgba(31, 20, 10, .16); }
:root main:has(> article + article) > section a { display: block; font-family: var(--fb), Georgia, serif; font-size: 15px; line-height: 1.35; color: var(--primary); text-decoration: none; }
:root main:has(> article + article) > section a:hover { color: var(--accent); }

/* ============================== FOOTER ============================== */
:root footer { background: transparent; border-top: 1px solid var(--rule); padding: 24px 0 36px; margin-top: 54px; text-align: center; font-family: var(--fm), system-ui, sans-serif; font-size: 12.5px; color: var(--fg); opacity: .6; letter-spacing: .03em; font-style: italic; }
:root footer a { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--rule); font-style: normal; }
:root footer a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 820px) {
  :root main:has(> article + article) { grid-template-columns: 1fr; max-width: 580px; row-gap: 34px; padding: 44px 22px 80px; }
  :root main:has(> article + article) > article { grid-column: 1 / -1; }
  :root main:has(> article + article) > article:first-of-type { display: block; padding: 34px 28px 32px; }
  :root main:has(> article + article) > article:first-of-type > h2 { font-size: 33px; }
  :root main:has(> article + article) > article:first-of-type > p.date { border-left: 0; padding: 14px 0 0; margin-top: 18px; border-top: 1px solid var(--rule); }
  :root main:has(> article + article) > section ul { columns: 1; }
  :root main:has(> article + article) > section { padding: 0 26px 28px; }
  :root main:has(> article + article) > section::before { margin: 0 -26px 26px; min-height: 168px; }
  :root main:has(> article + article)::after { min-height: 168px; }
  :root > body > header h1 { font-size: 38px; }
  :root > body > header a { font-size: 30px; }
}


/* 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=Monocle-Swiss overlay=55% grid=equal scale=balanced family=articles-section */

/* ── Archive strip above <section> tail (overlay 55%) ── */
: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.55) 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;
}


/* qa-refix M7 — archive tail as boxed cream cards (iter1) */
/* The "Todas las entradas" tail rendered as a single cream panel with three
   CSS-column runs of plain title rows divided only by dotted rules — no
   per-item frame. Re-cast each entry as an individually boxed cream card that
   reuses the journal-card system above: same --paper fill, --rule border,
   8px radius, soft shadow, generous padding and a hover lift, laid out in a
   3-col equal-height grid (collapses to 1 col on mobile via the existing
   :root main > section > ul → 1fr override at max-width 640px, so each row
   keeps its own card frame). Sit the cards on the page --bg tone so the paper
   cards read as boxed, exactly as at the top of the page.
   Fixes M7 home-desktop and M7 home-mobile. */
:root main:has(> article + article) > section {
  background: var(--bg);
}
:root main:has(> article + article) > section ul {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  align-items: stretch;
}
:root main:has(> article + article) > section li {
  break-inside: auto;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  display: flex;
}
:root main:has(> article + article) > section li > a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(31, 20, 10, .05);
  font-family: var(--fb), Georgia, serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--primary);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:has(> article + article) > section li > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 20, 10, .10);
  border-color: var(--accent);
  color: var(--accent);
}

