*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.7;color:#111;background:#fff}
.sc-PhRQIq{max-width:900px;margin:0 auto;padding:0 28px}
.sc-XEnkhc{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.sc-XEnkhc h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.sc-XEnkhc p{font-size:18px;opacity:.7}
.sc-XEnkhc a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.sc-cGPiFv{padding:0}
.sc-eDKyPg{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.sc-eDKyPg h2{font-size:24px;font-weight:700;margin-bottom:6px}
.sc-eDKyPg h2 a{color:#111;text-decoration:none}
.sc-eDKyPg h2 a:hover{text-decoration:underline}
.sc-eDKyPg .sc-ZcpcNF{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.sc-eDKyPg p{font-size:15px;color:#444;margin-bottom:10px}
.sc-HsqDAl{display:inline-block;background:#111;color:#fff;padding:8px 20px;font-size:13px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:1px}
.sc-HsqDAl:hover{background:#333}
.sc-BRDPHk{padding-bottom:60px}
.sc-BRDPHk h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.sc-BRDPHk time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.sc-BRDPHk h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.sc-BRDPHk h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.sc-BRDPHk p{margin-bottom:18px;font-size:17px}
.sc-BRDPHk ul,.sc-BRDPHk ol{margin:0 0 18px 24px}
.sc-BRDPHk a{color:#111;font-weight:600;text-decoration:underline}
.sc-BRDPHk img{max-width:100%;height:auto;margin:20px 0}
.sc-ELgDxO{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.sc-ELgDxO a{color:#888;text-decoration:none}
.sc-YVbxjG{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.sc-TqDRdb{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.sc-mMtkwD{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;letter-spacing:1px;margin:-20px 0 28px;padding-left:12px;border-left:2px solid #ccc}
.sc-MCDmFH{margin:0 0 24px}
.sc-jOiPVp{width:100%;height:auto;border-radius:0}
.sc-HOrbkq{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.sc-HOrbkq h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.sc-HOrbkq ul{list-style:none;padding:0}
.sc-HOrbkq li{padding:6px 0}
.sc-HOrbkq a{color:#111;text-decoration:underline;font-weight:600}
.sc-VELgMe{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.sc-VELgMe ul{list-style:none;padding:0}
.sc-VELgMe li{padding:6px 0;font-size:16px}
.sc-VELgMe a{color:#111;text-decoration:none;font-weight:600}
.sc-VELgMe a:hover{text-decoration:underline}
.sc-VELgMe .sc-ZcpcNF{margin:0 0 0 8px}
/* === Theme === */
:root{--primary:#2A5A40;--accent:#D9A86F;--bg:#F0EAD2;--fg:#0F1A12;--border:#C0AC95;--r:27px;--fb:'Newsreader';--fh:'Fraunces';--fm:'Mukta';--moment:#4A5C6B}
/* === Custom === */
/* v.d8fa52 — layout revision */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600;1,9..144,700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Mukta:wght@500;600;700&display=swap');

/* ============================================================
   Arcilla Viva — editorial revision
   fb = Newsreader (body serif) · fh = Fraunces (display serif italic)
   fm = Mukta (tracked-sans meta) · moment = #4A5C6B (slate)
   Persona: Camila Ortega, diseñadora en Medellín — arcilla fría + resina
   ============================================================ */
:root body { font-family: var(--fb), Georgia, serif; color: var(--fg); background: var(--bg); line-height: 1.72; font-size: 16.5px; }
::selection { background: var(--accent); color: #17140d; }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

/* ============================================================
   MASTHEAD  (body > div:first-child)
   photo bg + gradient · clay/resina monogram · serif-italic
   wordmark · italic manifesto tagline with moment divider
   ============================================================ */
:root body > div:first-child {
  background: linear-gradient(rgba(18,32,24,.74), rgba(18,32,24,.5)), url("/theme-assets/landing-photo.jpg") center/cover no-repeat, var(--primary);
  color: var(--bg);
  padding: 70px 24px 54px;
  margin-bottom: 0;
  border-bottom: 4px solid var(--accent);
  text-align: center;
}
:root body > div:first-child > div { max-width: 900px; margin: 0 auto; position: relative; }
/* signature monogram — cream ring, clay bowl, resin droplet */
:root body > div:first-child > div::before {
  content: ""; display: block; width: 58px; height: 58px; margin: 0 auto 16px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3E%3Ccircle%20cx='32'%20cy='32'%20r='30'%20fill='none'%20stroke='%23F0EAD2'%20stroke-width='2'/%3E%3Cpath%20d='M18%2034%20Q32%2024%2046%2034%20Q44%2045%2032%2048%20Q20%2045%2018%2034%20Z'%20fill='%23D9A86F'/%3E%3Cpath%20d='M32%2013%20Q38%2023%2032%2028%20Q26%2023%2032%2013%20Z'%20fill='%23F0EAD2'/%3E%3C/svg%3E") center/contain no-repeat;
}
:root body > div:first-child h1,
:root body > div:first-child > div > a {
  font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 50px; line-height: 1.06; letter-spacing: -0.01em; color: var(--bg);
  text-decoration: none; display: inline-block; margin-bottom: 10px;
}
:root body > div:first-child p {
  font-family: var(--fb), Georgia, serif; font-style: italic;
  font-size: 16px; line-height: 1.62; color: rgba(240,234,210,.9);
  max-width: 620px; margin: 0 auto;
}
:root body > div:first-child p::before {
  content: ""; display: block; width: 46px; height: 2px; margin: 0 auto 16px; background: var(--moment);
}

/* ============================================================
   ARTICLE PAGES  (main:has(> article))
   ============================================================ */
:root main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }

:root main:has(> article) > hgroup > h1 {
  font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 40px; color: var(--primary); line-height: 1.12; letter-spacing: -0.01em;
  margin: 4px 0 8px;
}
:root main:has(> article) > hgroup > time {
  display: block; font-family: var(--fm), system-ui, sans-serif; font-size: 12px;
  color: var(--accent); margin-bottom: 34px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600;
}

:root main:has(> article) article > section img,
:root main:has(> article) article > img {
  width: 100%; height: auto; display: block; border-radius: 10px; margin: 0 0 30px;
  box-shadow: 0 6px 22px rgba(15,26,18,.14);
}

:root main:has(> article) article > p { margin-bottom: 1.4em; font-size: 18px; line-height: 1.78; }
:root main:has(> article) article > h2 {
  font-family: var(--fh), Georgia, serif; font-size: 28px; font-weight: 600; font-style: italic;
  color: var(--primary); margin: 2.1em 0 .55em; padding-bottom: 8px;
  border-bottom: 1px solid var(--accent); letter-spacing: -0.01em;
}
/* dinkus divider above each h2 section */
:root main:has(> article) article > h2::before {
  content: "\2756 \2756 \2756"; display: block; text-align: center;
  color: var(--accent); font-size: 13px; letter-spacing: .5em; font-style: normal;
  margin: 0 auto 18px; border: 0;
}
:root main:has(> article) article > h3 {
  font-family: var(--fh), Georgia, serif; font-size: 21px; font-weight: 600;
  color: var(--primary); margin: 1.7em 0 .4em; letter-spacing: -0.005em;
}
:root main:has(> article) article ul, :root main:has(> article) article ol { margin: 0 0 18px 26px; }
:root main:has(> article) article li { margin-bottom: 7px; font-size: 17px; line-height: 1.72; }
:root main:has(> article) article li strong,
:root main:has(> article) article > p strong { color: var(--primary); font-weight: 700; }

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

/* affiliate pill CTAs — full element path + attr to beat body-link rule */
:root main:has(> article) article > p a[href^="/rec/"],
:root main:has(> article) article > p a[href^="/ref/"],
:root main:has(> article) article > p a[href^="/go/"],
:root main:has(> article) article > p a[href^="/out/"],
:root main:has(> article) article > ul a[href^="/rec/"],
:root main:has(> article) article > ol a[href^="/rec/"],
:root main:has(> article) article > ul li a[href^="/rec/"],
:root main:has(> article) article > ol li a[href^="/rec/"] {
  background: var(--accent); color: #17140d;
  padding: 3px 15px; border-radius: 6px; text-decoration: none; font-weight: 600;
  font-family: var(--fm), system-ui, sans-serif; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
}
:root main:has(> article) article > p a[href^="/rec/"]:hover,
:root main:has(> article) article > p a[href^="/ref/"]:hover,
:root main:has(> article) article > p a[href^="/go/"]:hover,
:root main:has(> article) article > p a[href^="/out/"]:hover,
:root main:has(> article) article > ul li a[href^="/rec/"]:hover,
:root main:has(> article) article > ol li a[href^="/rec/"]:hover { background: var(--primary); color: var(--bg); }

/* disclaimer "Nota" box (article > div, no ul) */
:root main:has(> article) article > div {
  background: #F0EBE0; border: 1px solid rgba(15,26,18,.1); border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 14px 20px; margin: 30px 0 4px;
  font-size: 14.5px; line-height: 1.6; color: rgba(15,26,18,.72);
}
:root main:has(> article) article > div strong { color: var(--primary); }

/* related-articles module (main > div:has(> ul)) */
:root main:has(> article) > div:has(> ul) {
  background: #F5EFE1; border: 1px solid rgba(15,26,18,.1);
  border-radius: 10px; padding: 24px 30px; margin-top: 2.6em;
}
:root main:has(> article) > div:has(> ul) > h3 {
  font-family: var(--fm), system-ui, sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(15,26,18,.12);
}
:root main:has(> article) > div:has(> ul) ul { list-style: none; padding: 0; margin: 0; }
:root main:has(> article) > div:has(> ul) li { margin: 0; }
:root main:has(> article) > div:has(> ul) a {
  display: block; padding: 9px 0 9px 14px; margin-bottom: 4px;
  border-left: 2px solid rgba(217,168,111,.4); text-decoration: none;
  color: var(--primary); font-weight: 600; line-height: 1.45; font-size: 15.5px;
  transition: border-left-color .15s, background .15s, padding-left .15s;
}
:root main:has(> article) > div:has(> ul) a:hover {
  border-left-color: var(--primary); background: rgba(217,168,111,.1); padding-left: 18px;
}

/* ============================================================
   HOMEPAGE  (main:not(:has(> article)))  — editorial rhythm:
   hero -> Editor's Picks band -> Strip 1 (EL CUADERNO) ->
   journal grid -> Strip 2 (TODAS LAS ENTRADAS)
   ============================================================ */
:root main:not(:has(> article)) {
  max-width: 1160px; padding: 0 28px 96px;
  display: grid; grid-template-columns: repeat(6, 1fr);
  column-gap: 30px; row-gap: 40px;
}

/* full-row section label after the hero */
:root main:not(:has(> article))::before {
  content: "Selección de la editora — empieza por aquí";
  grid-column: 1 / -1; order: -1;
  font-family: var(--fm), system-ui, sans-serif; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; color: var(--primary);
  margin: 44px 0 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(15,26,18,.18);
}

/* ---- shared card ---- */
:root main:not(:has(> article)) > div {
  grid-column: span 2;
  background: #FAF5EC; border: 1px solid rgba(15,26,18,.1);
  border-radius: 9px; box-shadow: 0 1px 4px rgba(15,26,18,.05);
  padding: 26px 32px 24px; margin: 0; position: relative;
  display: flex; flex-direction: column;
  transition: box-shadow .16s ease, transform .16s ease;
}
:root main:not(:has(> article)) > div:hover {
  box-shadow: 0 8px 24px rgba(15,26,18,.11); transform: translateY(-2px);
}
:root main:not(:has(> article)) > div > p:first-of-type {
  font-family: var(--fm), system-ui, sans-serif; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 10px;
}
:root main:not(:has(> article)) > div > h2 {
  font-family: var(--fh), Georgia, serif; font-size: 21px; font-weight: 600;
  line-height: 1.22; margin-bottom: 12px; letter-spacing: -0.005em;
}
:root main:not(:has(> article)) > div > h2 a { color: var(--fg); text-decoration: none; }
:root main:not(:has(> article)) > div > h2 a:hover { color: var(--primary); }
:root main:not(:has(> article)) > div > p:last-of-type {
  font-family: var(--fb), Georgia, serif; font-size: 15.5px; line-height: 1.6;
  color: rgba(15,26,18,.82); margin-bottom: 18px; max-width: 64ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:not(:has(> article)) > div > a:last-child {
  margin-top: auto; align-self: flex-start; background: transparent; border: 0; padding: 0;
  color: var(--primary); text-decoration: none; font-size: 0;
}
:root main:not(:has(> article)) > div > a:last-child::after {
  content: "Leer entrada \2192";
  font-family: var(--fm), system-ui, sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
:root main:not(:has(> article)) > div > a:last-child:hover { color: var(--accent); }

/* ---- HERO (card 1): the one loud voice ---- */
:root main:not(:has(> article)) > div:first-of-type {
  grid-column: 1 / -1; order: -2;
  padding: 46px 52px 42px; overflow: hidden; border-top: 4px solid var(--primary);
  background: #FBF7EE url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20240'%3E%3Cellipse%20cx='128'%20cy='96'%20rx='52'%20ry='62'%20fill='%23D9A86F'%20fill-opacity='0.09'/%3E%3Cellipse%20cx='150'%20cy='150'%20rx='38'%20ry='46'%20fill='%232A5A40'%20fill-opacity='0.07'/%3E%3C/svg%3E") right -10px center/240px no-repeat;
}
:root main:not(:has(> article)) > div:first-of-type:hover { transform: none; box-shadow: 0 1px 4px rgba(15,26,18,.05); }
:root main:not(:has(> article)) > div:first-of-type::before {
  content: "Última entrada"; align-self: flex-start;
  font-family: var(--fm), system-ui, sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: #F7EFE0; background: var(--accent);
  padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; position: relative; z-index: 2;
}
:root main:not(:has(> article)) > div:first-of-type > p:first-of-type { position: relative; z-index: 2; }
:root main:not(:has(> article)) > div:first-of-type > p:first-of-type::after {
  content: " · Por Camila Ortega · Lectura 6 min"; color: rgba(15,26,18,.55);
}
:root main:not(:has(> article)) > div:first-of-type > h2 {
  font-size: 43px; font-style: italic; font-weight: 600; line-height: 1.07;
  max-width: 16ch; margin-bottom: 16px; position: relative; z-index: 2;
}
:root main:not(:has(> article)) > div:first-of-type > p:last-of-type {
  font-size: 19px; line-height: 1.5; max-width: 42ch; color: rgba(15,26,18,.86);
  display: block; -webkit-line-clamp: none; overflow: visible; margin-bottom: 22px;
  position: relative; z-index: 2;
}
:root main:not(:has(> article)) > div:first-of-type > p:last-of-type::first-letter {
  font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 700;
  font-size: 60px; line-height: .74; float: left; color: var(--moment); margin: 7px 12px 0 0;
}
:root main:not(:has(> article)) > div:first-of-type > a:last-child {
  border: 2px solid var(--primary); border-radius: 30px; padding: 10px 26px;
  position: relative; z-index: 2; transition: background .15s;
}
:root main:not(:has(> article)) > div:first-of-type > a:last-child::after { content: "Leer la entrada \2192"; font-size: 13px; }
:root main:not(:has(> article)) > div:first-of-type > a:last-child:hover { background: var(--primary); }
:root main:not(:has(> article)) > div:first-of-type > a:last-child:hover::after { color: var(--bg); }

/* ---- EDITOR'S PICKS band (cards 2-4) — roman numerals balance the row ---- */
:root main:not(:has(> article)) > div:nth-of-type(2),
:root main:not(:has(> article)) > div:nth-of-type(3),
:root main:not(:has(> article)) > div:nth-of-type(4) { border-top: 3px solid var(--accent); }
:root main:not(:has(> article)) > div:nth-of-type(2)::before,
:root main:not(:has(> article)) > div:nth-of-type(3)::before,
:root main:not(:has(> article)) > div:nth-of-type(4)::before {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--fh), Georgia, serif; font-style: italic; font-size: 24px;
  color: rgba(74,92,107,.42);
}
:root main:not(:has(> article)) > div:nth-of-type(2)::before { content: "I"; }
:root main:not(:has(> article)) > div:nth-of-type(3)::before { content: "II"; }
:root main:not(:has(> article)) > div:nth-of-type(4)::before { content: "III"; }

/* ---- JOURNAL LEAD (card 5): full-width opener carrying photo Strip 1 ---- */
:root main:not(:has(> article)) > div:nth-of-type(5) {
  grid-column: 1 / -1; padding: 0 0 32px; margin-top: 32px; overflow: hidden;
  background: #FAF5EC;
}
:root main:not(:has(> article)) > div:nth-of-type(5):hover { transform: none; box-shadow: 0 1px 4px rgba(15,26,18,.05); }
:root main:not(:has(> article)) > div:nth-of-type(5)::before {
  content: "EL CUADERNO";
  display: flex; align-items: center; justify-content: center; height: 206px; margin-bottom: 30px;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)), url("/theme-assets/article-bg.jpg") center 30%/cover no-repeat, #1d2a22;
  color: #F0EAD2; font-family: var(--fm), system-ui, sans-serif; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .32em; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
:root main:not(:has(> article)) > div:nth-of-type(5) > p,
:root main:not(:has(> article)) > div:nth-of-type(5) > h2,
:root main:not(:has(> article)) > div:nth-of-type(5) > a { max-width: 720px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
:root main:not(:has(> article)) > div:nth-of-type(5) > h2 { font-size: 29px; font-style: italic; max-width: 22ch; }
:root main:not(:has(> article)) > div:nth-of-type(5) > p:last-of-type { -webkit-line-clamp: 2; max-width: 720px; }

/* ---- JOURNAL grid (cards 6+): quiet supporting rhythm ---- */
:root main:not(:has(> article)) > div:nth-of-type(n+6) { border-top: 1px solid rgba(15,26,18,.1); }

/* ---- Strip 2 (TODAS LAS ENTRADAS) — closing band ---- */
:root main:not(:has(> article))::after {
  content: "TODAS LAS ENTRADAS";
  grid-column: 1 / -1; margin-top: 44px;
  display: flex; align-items: center; justify-content: center; height: 210px; border-radius: 9px;
  background: linear-gradient(rgba(20,24,28,.58), rgba(20,24,28,.3)), url("/theme-assets/article-bg.jpg") center 70%/cover no-repeat, #1d2a22;
  color: #F0EAD2; font-family: var(--fm), system-ui, sans-serif; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .32em; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

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

/* ============================================================
   MOBILE — collapse the homepage grid to one column
   ============================================================ */
@media (max-width: 760px) {
  :root main:not(:has(> article)) { grid-template-columns: 1fr; padding: 0 20px 70px; }
  :root main:not(:has(> article)) > div,
  :root main:not(:has(> article)) > div:first-of-type { grid-column: 1 / -1; }
  :root main:not(:has(> article)) > div:first-of-type { padding: 34px 26px 30px; background-position: right -70px top -20px; }
  :root main:not(:has(> article)) > div:first-of-type > h2 { font-size: 32px; max-width: none; }
  :root body > div:first-child h1,
  :root body > div:first-child > div > a { font-size: 38px; }
  :root main:has(> article) > hgroup > h1 { font-size: 32px; }
}


/* 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=The-Sill-botanical overlay=55% grid=mixed scale=balanced family=flat-divs */


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

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

/* ── flat-divs family: cards 5 & 6 also get photo headers ── */
:root main:not(:has(> h1)) > div:nth-of-type(5) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-1.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(6) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

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

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


/* === Link & button colour audit (2026-09-16) ===
   Generated from a measured crawl of this site's own pages: every link and
   button was checked for text-vs-surface contrast at rest and on hover.
   Replacement colours keep the original hue and move only lightness, so the
   design reads the same. Verified by re-rendering before this was written. */
/* 27x 2.4:1 -> needs 4.5 | “Leer más →” */
:root :is(#lnkfix, main) > article > div > table > tbody > tr > td > a[style*="e67e22"], :root :is(#lnkfix, main) > article > div > table > tbody > tr > td > a[style*="f0ebe0"] { color: #985111 !important; }
/* 9x 2.85:1 -> needs 4.5 | “¡Quiero empezar a crear ya! →” */
:root :is(#lnkfix, main) > article > div > div > a[style*="ffffff"], :root :is(#lnkfix, main) > article > div > div > a[style*="e67e22"] { background: #4A5C6B !important; }
/* hover 1.78:1 -> needs 4.5 on #F0EAD2 */
:root :is(#lnkfix, main) > article > dl > dd > a:not([href^="/rec/"]):hover { color: #865923; }
