*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Palatino Linotype',Palatino,'Book Antiqua',serif;line-height:1.9;color:#2a2a2a;background:#fefefe}
.sc-sQFFrD{max-width:640px;margin:0 auto;padding:0 20px}
.sc-KPWQqH{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.sc-KPWQqH h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.sc-KPWQqH p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.sc-KPWQqH a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.sc-tUpdMD{padding:20px 0}
.sc-tUpdMD h2{font-size:18px;font-weight:400;margin-bottom:4px}
.sc-tUpdMD h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.sc-tUpdMD h2 a:hover{border-bottom-color:#2a2a2a}
.sc-tUpdMD .sc-hSSWnl{font-size:12px;color:#aaa;margin-bottom:6px}
.sc-tUpdMD p{font-size:14px;color:#666}
.sc-nXewYr{color:#888;font-size:13px;text-decoration:none}
.sc-nXewYr:hover{color:#2a2a2a}
.sc-vFUWHD{padding-bottom:60px}
.sc-vFUWHD h1{font-size:28px;font-weight:400;margin-bottom:8px}
.sc-vFUWHD .sc-hSSWnl{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.sc-vFUWHD h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.sc-vFUWHD h3{font-size:17px;margin:28px 0 8px}
.sc-vFUWHD p{margin-bottom:18px;font-size:16px}
.sc-vFUWHD ul,.sc-vFUWHD ol{margin:0 0 18px 20px}
.sc-vFUWHD a{color:#555;border-bottom:1px solid #ccc}
.sc-vFUWHD a:hover{color:#000;border-bottom-color:#000}
.sc-vFUWHD img{max-width:100%;height:auto;margin:24px 0}
.sc-vBZecz{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.sc-vBZecz a{color:#aaa;text-decoration:none}
.sc-BdrSTS{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.sc-pLKxky{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.sc-fJvnVa{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.sc-Okihsh{margin:0 auto 32px;max-width:720px}
.sc-uAoxUr{width:100%;height:auto}
.sc-igYsHF{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.sc-igYsHF em{color:#aaa}
.sc-igYsHF a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.sc-SPILKc{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.sc-SPILKc p{padding:3px 0;margin:0;font-size:15px}
.sc-SPILKc a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.sc-SPILKc a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
:root{--primary:#3E3219;--accent:#A3897E;--bg:#EEEDE8;--fg:#23200f;--border:#C9C4BC;--r:8px;--fb:'Petrona';--fm:'Karla';--fd:'Fraunces';--fh:'Fraunces';--berry:#7C4A5C;--ink:#2B2210;--paper:#F6F3EC;--cream:#F6F3EC}
/* === Custom === */
/* v.ae6c8f — layout revision */
/*
 * Bombones en Casa — bm-bombon-es
 * Soledad Olivera — bibliotecaria, Salta. Cuaderno de domingo a domingo.
 * Voces: Fraunces (display italic) · Petrona (cuerpo serif) · Karla (meta versal)
 * Color de momento (2 usos): frambuesa #7C4A5C — capitular del destacado + banda "Selección".
 * Selectores: elemento + estructura + [class] (las clases sc-* se ofuscan por deploy).
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Petrona:ital,wght@0,400;0,500;0,600;1,400&family=Karla:wght@400;500;700&display=swap');

:root {
  --primary: #3E3219;
  --accent:  #A3897E;
  --bg:      #EEEDE8;
  --fg:      #23200f;
  --border:  #C9C4BC;
  --ink:     #2B2210;
  --paper:   #F6F3EC;
  --paper2:  #F1ECE0;
  --berry:   #7C4A5C;   /* color de momento — máximo 2 usos */
  --r:       8px;
  --fd:      'Fraunces';
  --fb:      'Petrona';
  --fm:      'Karla';
  --masthead: url("/theme-assets/top-image.jpg"),
              url("/assets/elegir-mejores-fresas-chocolate-mercado/hero-0.webp");
  --strip:    url("/theme-assets/article-bg.jpg"),
              url("/assets/tecnica-templar-chocolate-casa-sin-termometro/hero-0.webp");
}

/* ── Base ────────────────────────────────────────────────────── */

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--fb), Georgia, serif;
  line-height: 1.75;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fd), Georgia, serif;
  color: var(--primary);
  line-height: 1.18;
  margin: 1.5rem 0 0.7rem;
}

p, li { font-family: var(--fb), Georgia, serif; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
em { font-style: italic; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); transition: color .2s; }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--berry); color: var(--paper); }

/* ══ MASTHEAD ════════════════════════════════════════════════ */

body > header[class] {
  max-width: none;
  margin: 0 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* home masthead — foto + degradado + capitular */
body > header[class]:has(> h1) {
  padding: 4.5rem 1.5rem 3.4rem;
  text-align: center;
  color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(28,22,14,.72), rgba(43,34,16,.86)),
    var(--masthead);
  background-size: cover, cover, cover;
  background-position: center 42%;
  border-bottom: 4px solid var(--accent);
}

/* monograma: bombón moldeado + hilo de frambuesa */
body > header[class]:has(> h1)::before {
  content: "";
  display: block;
  width: 60px; height: 46px;
  margin: 0 auto 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M8 40 Q8 13 32 13 Q56 13 56 40 Z' fill='none' stroke='%23F6F3EC' stroke-width='2.4'/%3E%3Cpath d='M14 40 h36' stroke='%23F6F3EC' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M18 25 q7 -8 14 0 q7 8 14 0' fill='none' stroke='%237C4A5C' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

body > header[class]:has(> h1) > h1 {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  color: var(--paper);
  margin: 0 0 .6rem;
  letter-spacing: .01em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

body > header[class]:has(> h1) > p {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(246,243,236,.9);
}

/* manifiesto — firma de la casa */
body > header[class]:has(> h1)::after {
  content: "MARTES LOS MOLDES · SÁBADO LAS FRESAS · DOMINGO EL INTENTO";
  display: block;
  margin: 1.4rem auto 0;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--accent);
}

/* interior masthead — barra sobria */
body > header[class]:has(> a) {
  padding: 1.5rem;
  text-align: center;
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
}
body > header[class]:has(> a) > a {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--paper);
  text-decoration: none;
}

/* ══ HOMEPAGE — rejilla editorial ════════════════════════════ */

main[class]:has(> div > h2) {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 30px;
  row-gap: 46px;
  align-items: stretch;
}

/* tarjeta base (destacado, picks, diario) */
main[class]:has(> div > h2) > div[class]:has(> h2) {
  order: 5;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: 30px 34px 26px;
  background: var(--paper);
  border: 1px solid rgba(62,50,25,.12);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
main[class]:has(> div > h2) > div[class]:has(> h2):hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

/* fecha / meta */
main[class]:has(> div > h2) > div[class]:has(> h2) > p:first-of-type {
  order: -1;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .7rem;
}

/* título */
main[class]:has(> div > h2) > div[class]:has(> h2) > h2 {
  font-family: var(--fd), Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .7rem;
}
main[class]:has(> div > h2) > div[class]:has(> h2) > h2 a {
  color: var(--primary);
  text-decoration: none;
}
main[class]:has(> div > h2) > div[class]:has(> h2) > h2 a:hover { color: var(--accent); }

/* extracto */
main[class]:has(> div > h2) > div[class]:has(> h2) > p:last-of-type {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4433;
  max-width: 64ch;
  margin: 0 0 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA — reemplaza el "read more →" hardcodeado en inglés */
main[class]:has(> div > h2) > div[class]:has(> h2) > a {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
}
main[class]:has(> div > h2) > div[class]:has(> h2) > a:hover { color: var(--accent); }
main[class]:has(> div > h2) > div[class]:has(> h2) > a { font-size: 0; }
main[class]:has(> div > h2) > div[class]:has(> h2) > a::before {
  content: "Leer este domingo →";
  font-size: .68rem;
}

/* ── HERO (primer div) ─────────────────────────────────────── */
main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type {
  order: 1;
  grid-column: 1 / -1;
  padding: 46px 56px 44px;
  background: var(--paper);
  border: 1px solid rgba(62,50,25,.14);
  border-top: 4px solid var(--primary);
}
main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type::before {
  content: "Último domingo";
  align-self: flex-start;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--primary);
  padding: .35em .8em;
  border-radius: 3px;
  margin-bottom: 1.1rem;
}
main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type > p:first-of-type::after {
  content: " · Por Soledad Olivera";
}
main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type > h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 18ch;
}
main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type > p:last-of-type {
  font-size: 1.28rem;
  line-height: 1.5;
  color: #453f2f;
  -webkit-line-clamp: 4;
  max-width: 60ch;
}
/* capitular — uso 1 de 2 del color de momento */
main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type > p:last-of-type::first-letter {
  font-family: var(--fd), Georgia, serif;
  font-weight: 700;
  font-size: 3.4em;
  line-height: .78;
  float: left;
  margin: .06em .12em 0 0;
  color: var(--berry);
}

/* ── EDITOR'S PICKS (div 2 y 3) ────────────────────────────── */
main[class]:has(> div > h2) > div[class]:has(> h2):nth-child(2),
main[class]:has(> div > h2) > div[class]:has(> h2):nth-child(3) {
  order: 3;
  border-top: 3px solid var(--accent);
  background: var(--paper2);
}
/* numeral romano en el meta de cada pick */
main[class]:has(> div > h2) > div[class]:has(> h2):nth-child(2) > p:first-of-type::before { content: "N.º I — "; color: var(--accent); }
main[class]:has(> div > h2) > div[class]:has(> h2):nth-child(3) > p:first-of-type::before { content: "N.º II — "; color: var(--accent); }

/* etiqueta de sección "Selección" — banda a todo el ancho sobre los picks
   (uso 2 de 2 del color de momento) */
main[class]:has(> div > h2)::before {
  content: "Selección de la casa — leé estos primero";
  order: 2;
  grid-column: 1 / -1;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--berry);
  padding-bottom: .7rem;
  margin-bottom: -14px;
  border-bottom: 2px solid var(--berry);
}

/* ── STRIP 1 — banda foto entre picks y diario ─────────────── */
main[class]:has(> div > h2)::after {
  content: "El diario — más recientes";
  order: 4;
  grid-column: 1 / -1;
  min-height: 200px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  border-radius: var(--r);
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    var(--strip);
  background-size: cover, cover, cover;
  background-position: center 30%;
}

/* ── DIARIO (div 4 en adelante) — ya hereda order:5, span 3 ── */

/* ══ ÍNDICE / COLA (último div, sin h2) ══════════════════════ */
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) {
  order: 6;
  grid-column: 1 / -1;
  columns: 2;
  column-gap: 48px;
  padding: 34px 40px 26px;
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid rgba(62,50,25,.12);
  border-radius: var(--r);
}
/* STRIP 2 — banda foto sobre el índice */
main[class]:has(> div > h2) > div[class]:not(:has(> h2))::before {
  content: "Más entradas";
  column-span: all;
  min-height: 190px;
  margin: -34px -40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  border-radius: var(--r) var(--r) 0 0;
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    var(--strip);
  background-size: cover, cover, cover;
  background-position: center 70%;
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p {
  break-inside: avoid;
  margin: 0;
  padding: .7rem 0;
  border-bottom: 1px dotted rgba(62,50,25,.2);
  line-height: 1.4;
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p a {
  font-family: var(--fb), Georgia, serif;
  font-size: .98rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p a:hover { color: var(--accent); }

/* ══ ARTÍCULO ════════════════════════════════════════════════ */

main[class]:has(> h1) {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
main[class]:has(> h1) > h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .8rem;
}
/* fecha bajo el título */
main[class]:has(> h1) > span[class] {
  display: block;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 1.6rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(62,50,25,.14);
}

main[class]:has(> h1) > article { max-width: none; }
main[class]:has(> h1) > article p,
main[class]:has(> h1) > article li {
  font-size: 1.16rem;
  line-height: 1.8;
  color: #2c2718;
}
main[class]:has(> h1) > article h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-top: 2.6rem;
}
/* dinkus entre secciones */
main[class]:has(> h1) > article > h2::before {
  content: "✳ ✳ ✳";
  display: block;
  text-align: center;
  font-size: .9rem;
  letter-spacing: .5em;
  color: var(--accent);
  margin: .4rem 0 1.8rem;
}
main[class]:has(> h1) > article > h2:first-of-type::before { content: none; }

/* capitular de entrada */
main[class]:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fd), Georgia, serif;
  font-weight: 700;
  font-size: 3.2em;
  line-height: .8;
  float: left;
  margin: .05em .1em 0 0;
  color: var(--primary);
}

main[class]:has(> h1) > article blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: #4a4433;
}
main[class]:has(> h1) > article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  margin: 2rem 0;
}

/* enlaces del cuerpo — rust/wine suave */
main[class]:has(> h1) > article p a { color: var(--accent); }

/* CTA de afiliado /find/ — supera al enlace de cuerpo (regla J) */
main[class]:has(> h1) > article p a[href^="/find/"],
main[class]:has(> h1) > article a[href^="/find/"],
main[class]:has(> h1) > article li a[href^="/find/"] {
  display: inline-block;
  margin: .4rem 0;
  padding: .7em 1.5em;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--primary);
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}
main[class]:has(> h1) > article p a[href^="/find/"]:hover,
main[class]:has(> h1) > article a[href^="/find/"]:hover,
main[class]:has(> h1) > article li a[href^="/find/"]:hover { background: var(--ink); }

/* nav de relacionados — mantener flujo en línea (los " · " son nodos de texto) */
main[class]:has(> h1) > nav[class] {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .85rem;
  color: #6a6350;
}
main[class]:has(> h1) > nav[class] a { color: var(--primary); text-underline-offset: 3px; }
main[class]:has(> h1) > nav[class] a:hover { color: var(--accent); }

/* ══ FOOTER ══════════════════════════════════════════════════ */
body footer[class] {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: #7a7460;
  font-family: var(--fm), system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: .04em;
}

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 760px) {
  main[class]:has(> div > h2) {
    grid-template-columns: 1fr;
    padding: 3rem 1.15rem;
    row-gap: 34px;
  }
  main[class]:has(> div > h2) > div[class]:has(> h2),
  main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type {
    grid-column: 1 / -1;
    padding: 26px 24px;
  }
  main[class]:has(> div > h2) > div[class]:not(:has(> h2)) { columns: 1; }
  main[class]:has(> div > h2) > div[class]:has(> h2):first-of-type > h2 { font-size: 1.9rem; }
  body > header[class]:has(> h1) { padding: 3.2rem 1.2rem 2.6rem; }
}


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


/* refix iter1: M7 boxed archive index */
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  columns: initial;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2))::before {
  grid-column: 1 / -1;
  column-span: none;
  margin: 0 0 24px;
  border-radius: var(--r);
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p {
  display: flex;
  align-items: center;
  min-height: 84px;
  height: 100%;
  margin: 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid rgba(62,50,25,.12);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  line-height: 1.38;
  transition: border-color .2s, box-shadow .2s;
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: .98rem;
  line-height: 1.35;
}

/* refix iter1: S6 article meta anchor */
main[class]:has(> h1) > span[class]::before {
  content: "Por Soledad Olivera · 6 min · ";
}

@media (max-width: 640px) {
  main[class]:has(> div > h2) > div[class]:not(:has(> h2)) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  main[class]:has(> div > h2) > div[class]:not(:has(> h2))::before {
    min-height: 180px;
    margin-bottom: 18px;
  }
  main[class]:has(> div > h2) > div[class]:not(:has(> h2)) > p {
    min-height: 76px;
    padding: 18px 20px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Kinfolk-minimal 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; }
}

