*{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-PjDaPF{max-width:900px;margin:0 auto;padding:0 28px}
.sc-rSGPfS{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.sc-rSGPfS h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.sc-rSGPfS p{font-size:18px;opacity:.7}
.sc-rSGPfS a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.sc-KBzvYk{padding:0}
.sc-mQpWyc{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.sc-mQpWyc h2{font-size:24px;font-weight:700;margin-bottom:6px}
.sc-mQpWyc h2 a{color:#111;text-decoration:none}
.sc-mQpWyc h2 a:hover{text-decoration:underline}
.sc-mQpWyc .sc-yDoKft{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.sc-mQpWyc p{font-size:15px;color:#444;margin-bottom:10px}
.sc-Fapudg{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-Fapudg:hover{background:#333}
.sc-KRcnDV{padding-bottom:60px}
.sc-KRcnDV h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.sc-KRcnDV time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.sc-KRcnDV h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.sc-KRcnDV h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.sc-KRcnDV p{margin-bottom:18px;font-size:17px}
.sc-KRcnDV ul,.sc-KRcnDV ol{margin:0 0 18px 24px}
.sc-KRcnDV a{color:#111;font-weight:600;text-decoration:underline}
.sc-KRcnDV img{max-width:100%;height:auto;margin:20px 0}
.sc-hnKsUO{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.sc-hnKsUO a{color:#888;text-decoration:none}
.sc-JfeGXt{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.sc-UZRlQL{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.sc-pWnGsG{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-jHVrer{margin:0 0 24px}
.sc-wJQwCb{width:100%;height:auto;border-radius:0}
.sc-LaXeqG{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.sc-LaXeqG h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.sc-LaXeqG ul{list-style:none;padding:0}
.sc-LaXeqG li{padding:6px 0}
.sc-LaXeqG a{color:#111;text-decoration:underline;font-weight:600}
.sc-ahXbky{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.sc-ahXbky ul{list-style:none;padding:0}
.sc-ahXbky li{padding:6px 0;font-size:16px}
.sc-ahXbky a{color:#111;text-decoration:none;font-weight:600}
.sc-ahXbky a:hover{text-decoration:underline}
.sc-ahXbky .sc-yDoKft{margin:0 0 0 8px}
/* === Theme === */
:root{--primary:#2A3D5C;--accent:#AD7A2F;--rust:#8B2E2E;--bg:#F4EDE3;--paper:#FBF7F1;--fg:#1B2030;--border:#D8CDBB;--r:0px;--fb:'Petrona';--fh:'Petrona';--fm:'Khand'}
/* === Custom === */
/* v.ae07ec — layout revision */
/* Deco con Criterio — di-deco-es · Bruno Carvajal, decorador autodidacta, Pachuca de Soto.
   Design ref: revista de decoración de interiores, medida y honesta. Petrona serif display+body,
   Khand tracked-sans meta, navy #2A3D5C + gold #AD7A2F on linen, rust #8B2E2E moment (×2 only),
   cinta-métrica gold-tick signature strip. Live engine = styled-components (.sc-* hashes stable).
   Selectors are element/structural + scoped HOME vs ARTICLE; only footer/date out-specify a .sc-*. */

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

/* ─── Variables & base ──────────────────────────────────── */

:root {
  --primary: #2A3D5C;
  --accent: #AD7A2F;
  --accent-hi: #C4923F;
  --rust: #8B2E2E;          /* moment colour — used in EXACTLY two places */
  --bg: #F4EDE3;
  --paper: #FBF7F1;
  --paper-2: #F6EFE2;
  --fg: #1B2030;
  --muted: #6B6559;
  --border: #D8CDBB;
  --fd: 'Petrona', Georgia, 'Times New Roman', serif;   /* display + body voice */
  --fm: 'Khand', system-ui, sans-serif;                 /* meta voice */
  --tape: repeating-linear-gradient(90deg, rgba(20,30,48,.78) 0 1px, transparent 1px 9px);
}

* { box-sizing: border-box; }

body {
  font-family: var(--fd);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background-color: var(--primary); color: var(--bg); }

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

/* ─── Masthead (body > div:first-of-type — .sc-rSGPfS) ──── */

body > div:first-of-type {
  background:
    linear-gradient(180deg, rgba(20,28,44,.72), rgba(20,28,44,.82)),
    url("/theme-assets/backdrop.jpg") center 42% / cover no-repeat,
    var(--primary);
  color: var(--bg);
  padding: 4.2rem 0 0;
  margin-bottom: 3.5rem;
  border-bottom: 3px solid var(--accent);
  text-align: center;
}

body > div:first-of-type > div { padding-bottom: 0; }

body > div:first-of-type h1,
body > div:first-of-type a {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--bg);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 .5rem;
  text-decoration: none;
  display: inline-block;
}

body > div:first-of-type p {
  font-family: var(--fm);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 500;
  opacity: .82;
  margin: 0 auto 1.6rem;
  max-width: 46ch;
  line-height: 1.7;
}

/* cinta métrica — the signature: a gold measuring-tape strip closing the masthead */
body > div:first-of-type::after {
  content: "";
  display: block;
  height: 10px;
  margin-top: 1.6rem;
  background: var(--accent);
  background-image: var(--tape);
}

/* ─── HOMEPAGE  (main:has(> div > h2)) ──────────────────── */

main:nth-of-type(1):has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 44px 32px;
  align-items: stretch;
  padding-bottom: 12px;
}

/* base card treatment for every entry div */
main:nth-of-type(1):has(> div > h2) > div {
  grid-column: span 3;                 /* default: 2-col journal */
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 26px 32px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main:nth-of-type(1):has(> div > h2) > div > p:first-of-type {   /* kicker / date */
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .5rem;
}

main:nth-of-type(1):has(> div > h2) > div > h2 {
  font-family: var(--fd);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 .55rem;
}

main:nth-of-type(1):has(> div > h2) > div > h2 a { color: var(--primary); text-decoration: none; }
main:nth-of-type(1):has(> div > h2) > div > h2 a:hover { color: var(--accent); }

main:nth-of-type(1):has(> div > h2) > div > p:nth-of-type(2) {   /* excerpt */
  font-size: .96rem;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 1.1rem;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA — replace English "Read Now" with an outlined ES pill in the accent */
main:nth-of-type(1):has(> div > h2) > div > a {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 5px;
  padding: .5rem 1.1rem;
  font-family: var(--fm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  font-size: 0;
  transition: background .18s ease, color .18s ease;
}
main:nth-of-type(1):has(> div > h2) > div > a::before {
  content: "Leer la entrada →";
  font-size: .72rem;
}
main:nth-of-type(1):has(> div > h2) > div > a:hover { background: var(--accent); color: var(--paper); }

/* ── HERO / featured (first entry) — the one loud voice ── */
main:nth-of-type(1):has(> div > h2) > div:first-of-type {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 4px 8px;
  margin-bottom: 8px;
}

/* "ÚLTIMO ENSAYO" badge */
main:nth-of-type(1):has(> div > h2) > div:first-of-type::before {
  content: "Último ensayo";
  display: inline-block;
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .68rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--primary);
  padding: .32rem .7rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* byline / reading-time block appended to the hero date line */
main:nth-of-type(1):has(> div > h2) > div:first-of-type > p:first-of-type {
  font-size: .74rem;
  letter-spacing: .2em;
  margin-bottom: .8rem;
}
main:nth-of-type(1):has(> div > h2) > div:first-of-type > p:first-of-type::after {
  content: "  ·  Por Bruno Carvajal  ·  6 min de lectura";
  color: var(--muted);
}

main:nth-of-type(1):has(> div > h2) > div:first-of-type > h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
  max-width: 18ch;
  margin-bottom: .9rem;
}

main:nth-of-type(1):has(> div > h2) > div:first-of-type > p:nth-of-type(2) {
  font-size: 1.28rem;
  line-height: 1.55;
  max-width: 60ch;
  -webkit-line-clamp: 4;
  color: #3a3a44;
}
/* drop cap — moment colour #1 of 2 */
main:nth-of-type(1):has(> div > h2) > div:first-of-type > p:nth-of-type(2)::first-letter {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: .8;
  float: left;
  color: var(--rust);
  padding: .3rem .5rem 0 0;
}

main:nth-of-type(1):has(> div > h2) > div:first-of-type > a {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  padding: .62rem 1.5rem;
}
main:nth-of-type(1):has(> div > h2) > div:first-of-type > a::before { content: "Leer el ensayo →"; font-size: .82rem; }
main:nth-of-type(1):has(> div > h2) > div:first-of-type > a:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

/* section label above Editor's Picks — full-width, sits below the open hero block */
main:nth-of-type(1):has(> div > h2) > div:first-of-type::after {
  content: "Selección del editor — empieza por aquí";
  display: block;
  grid-column: 1 / -1;
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2.4rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Editor's Picks band — entries 2·3·4, 3 across, numbered ── */
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2),
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(3),
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(4) {
  grid-column: span 2;
  background: var(--paper-2);
  border-left: 3px solid var(--primary);
}
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2) > p:first-of-type::before { content: "01 · "; color: var(--primary); font-weight: 700; }
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(3) > p:first-of-type::before { content: "02 · "; color: var(--primary); font-weight: 700; }
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(4) > p:first-of-type::before { content: "03 · "; color: var(--primary); font-weight: 700; }

/* ── Strip 1 (EL CUADERNO) — leader entry #5, full width ── */
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5) {
  grid-column: 1 / -1;
  border-left: 3px solid var(--accent);
  margin-top: 1.6rem;
}
main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5)::before {
  content: "El cuaderno";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin: -26px -32px 24px;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/post-header.jpg") center 30% / cover no-repeat;
  color: var(--paper);
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* ── Strip 2 + compact archive tail ──────────────────────
   Consolidated in the rewritten M7 block below. The live DOM ends <main> with a
   single <div class="sc-ahXbky"><ul>…</ul></div> (not a run of <div> cards), so
   both strip 2 and the tail now key off that wrapper. */

/* ─── ARTICLE  (main:has(> article)) ────────────────────── */

main:nth-of-type(1):has(> article) { padding-bottom: 3.5rem; }

main:nth-of-type(1):has(> article) > hgroup h1 {
  font-family: var(--fd);
  font-weight: 800;
  color: var(--primary);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin: 0 0 .6rem;
}

main:nth-of-type(1):has(> article) > hgroup time {
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 2rem;
}

main:nth-of-type(1):has(> article) article p {
  font-family: var(--fd);
  font-size: 1.16rem;
  line-height: 1.8;
  color: var(--fg);
  margin: 0 0 1.25rem;
}

main:nth-of-type(1):has(> article) article > p:first-of-type::first-letter {   /* moment colour #2 of 2 */
  font-family: var(--fd);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: .8;
  float: left;
  color: var(--rust);
  padding: .3rem .5rem 0 0;
}

main:nth-of-type(1):has(> article) article h2 {
  font-family: var(--fd);
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin: 2.6rem 0 1rem;
}
/* cinta-métrica dinkus above each h2 — ties article rhythm to the masthead signature */
main:nth-of-type(1):has(> article) article h2::before {
  content: "";
  display: block;
  width: 58px;
  height: 8px;
  margin-bottom: 1rem;
  background: var(--accent);
  background-image: var(--tape);
}

main:nth-of-type(1):has(> article) article h3 {
  font-family: var(--fd);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  margin: 1.8rem 0 .6rem;
}

main:nth-of-type(1):has(> article) article a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
main:nth-of-type(1):has(> article) article a:hover { color: var(--primary); }

/* Article images (M11) — every article photo sits in a <section> wrapper
   (hero = :first-of-type, the 4 inline shots = the rest; the aff-disclosure is
   a <div>, so `article > section` targets image wrappers only). The wrapper
   carries a theme-asset fallback photo; the <img> paints over it when the real
   remote .webp loads. When that asset does NOT render, the slot reads as an
   on-brand atmospheric band — color:transparent + font-size:0 suppress the alt
   text (and Chromium's broken-image glyph) so it never shows as a broken icon.
   Fixed band heights guarantee the fallback is visible even in the broken state
   (higher specificity than the mobile `main img{height:auto}` safety rule). */
main:nth-of-type(1):has(> article) article > section {
  margin: 2.2rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background-color: var(--paper-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
main:nth-of-type(1):has(> article) article > section:first-of-type {
  margin: 0 0 2rem;
  background-image:
    linear-gradient(rgba(20,24,28,.18), rgba(20,24,28,.18)),
    url("/theme-assets/backdrop.jpg");
}
main:nth-of-type(1):has(> article) article > section:not(:first-of-type) {
  background-image:
    linear-gradient(rgba(20,24,28,.16), rgba(20,24,28,.16)),
    url("/theme-assets/post-header.jpg");
}
main:nth-of-type(1):has(> article) article > section > img {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  color: transparent;
  font-size: 0;
}
main:nth-of-type(1):has(> article) article > section:first-of-type > img {
  height: clamp(240px, 44vw, 400px);
}
main:nth-of-type(1):has(> article) article > section:not(:first-of-type) > img {
  height: clamp(200px, 40vw, 340px);
}

main:nth-of-type(1):has(> article) article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--paper);
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  font-style: italic;
  color: var(--primary);
  border-radius: 0 6px 6px 0;
}

/* Related-articles block (main:has(>article) > div — .sc-LaXeqG) */
main:nth-of-type(1):has(> article) > div {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.6rem 2rem;
  margin-top: 3rem;
}
main:nth-of-type(1):has(> article) > div h3 {
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--primary);
  margin: 0 0 1rem;
}
main:nth-of-type(1):has(> article) > div a { color: var(--primary); text-decoration: none; font-weight: 600; }
main:nth-of-type(1):has(> article) > div a:hover { color: var(--accent); text-decoration: underline; }

/* ─── Static pages (main > article > h1 + p…, no hgroup) ── */
main:nth-of-type(1):has(> article) > article > h1:first-child {
  font-family: var(--fd);
  font-weight: 800;
  color: var(--primary);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin: 0 0 1.2rem;
}
main:nth-of-type(1):has(> article) > article > h1:first-child::after {
  content: "";
  display: block;
  width: 58px;
  height: 8px;
  margin-top: 1rem;
  background: var(--accent);
  background-image: var(--tape);
}

/* ─── Footer (out-specify .sc-hnKsUO / #111) ────────────── */

body > footer:nth-of-type(1) {
  background: var(--primary);
  color: rgba(244,237,227,.75);
  border-top: 3px solid var(--accent);
  padding: 2.4rem 0;
  font-family: var(--fm);
  letter-spacing: .04em;
}
body > footer:nth-of-type(1) a { color: rgba(244,237,227,.92); text-decoration: none; font-weight: 500; }
body > footer:nth-of-type(1) a:hover { color: var(--accent); }

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 700px) {
  main:nth-of-type(1):has(> div > h2) { grid-template-columns: 1fr; gap: 28px; }
  main:nth-of-type(1):has(> div > h2) > div,
  main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2),
  main:nth-of-type(1):has(> div > h2) > div:nth-of-type(3),
  main:nth-of-type(1):has(> div > h2) > div:nth-of-type(4),
  main:nth-of-type(1):has(> div > h2) > div:nth-last-of-type(-n+2) { grid-column: 1 / -1; }
}


/* 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 (rewritten): M7 archive tail — the live DOM ends <main> with a
   single <div class="sc-ahXbky"><ul><li><a>title</a><span>date</span></li>…</div>
   after the feature cards. Render it as ONE full-width magazine index whose
   ::before carries the second hero-photo strip (M6 position 2). Structural
   selectors only — class hashes rotate on redeploy. */

/* keep the wide, centered homepage measure */
main:nth-of-type(1):has(> div > h2) {
  width: min(1140px, calc(100% - 48px));
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

/* tail wrapper → full-width design zone; clear base border/padding */
main:nth-of-type(1):has(> div > h2) > div:has(> ul) {
  grid-column: 1 / -1;
  width: 100%;
  display: block;
  margin: 1.6rem 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* strip 2 — second hero-photo band, sits right above the archive grid */
main:nth-of-type(1):has(> div > h2) > div:has(> ul)::before {
  content: "Entradas anteriores";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin: 0 0 1.6rem;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    url("/theme-assets/post-header.jpg") center 70% / cover no-repeat;
  color: var(--paper);
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* archive list → uniform 3-col magazine grid of boxed cream cards */
main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul {
  list-style: none;
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul > li {
  height: 100%;
  margin: 0;
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 3px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul > li:hover {
  transform: translateY(-2px);
  border-color: rgba(173,122,47,.42);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* date → small accent kicker above the title (span follows <a> in the DOM) */
main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul > li > span:first-of-type {
  order: -1;
  margin: 0;
  font-family: var(--fm);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent);
}

main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul > li > a {
  color: var(--primary);
  display: block;
  font-family: var(--fd);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
  text-decoration: none;
  overflow-wrap: break-word;
}

main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul > li > a:hover {
  color: var(--accent);
}

/* refix iter1: S6 article personality anchor */
main:nth-of-type(1):has(> article) > hgroup time::after {
  content: "Por Bruno Carvajal · Pachuca de Soto · 6 min de lectura";
  display: block;
  margin-top: .42rem;
  color: var(--muted);
  letter-spacing: .16em;
}

@media (max-width: 640px) {
  /* full-bleed measure on phones */
  main:nth-of-type(1):has(> div > h2) {
    width: 100%;
    max-width: 100%;
  }

  /* archive tail → single readable column of boxed cards, no cramped cells */
  main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  main:nth-of-type(1):has(> div > h2) > div:has(> ul) > ul > li {
    height: auto;
    padding: 18px 20px;
    width: 100%;
  }

  main:nth-of-type(1):has(> div > h2) > div:has(> ul)::before {
    height: 170px;
    letter-spacing: .24em;
  }
}


/* refix iter1: M10 affiliate CTA visibility — /see/ /go/ /try/ /ref/ /out/ links
   in the article body become a solid navy chip (accent on hover), clearly
   distinct from the inline orange underlined prose links around them. */
main:nth-of-type(1):has(> article) article a[href^="/see/"],
main:nth-of-type(1):has(> article) article a[href^="/go/"],
main:nth-of-type(1):has(> article) article a[href^="/try/"],
main:nth-of-type(1):has(> article) article a[href^="/ref/"],
main:nth-of-type(1):has(> article) article a[href^="/out/"] {
  display: inline;
  background: var(--primary);
  color: var(--paper);
  font-family: var(--fm);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  padding: .12em .62em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
  transition: background .18s ease, color .18s ease;
}

main:nth-of-type(1):has(> article) article a[href^="/see/"]::after,
main:nth-of-type(1):has(> article) article a[href^="/go/"]::after,
main:nth-of-type(1):has(> article) article a[href^="/try/"]::after,
main:nth-of-type(1):has(> article) article a[href^="/ref/"]::after,
main:nth-of-type(1):has(> article) article a[href^="/out/"]::after {
  content: " \2192";
  font-family: var(--fm);
  font-weight: 600;
}

main:nth-of-type(1):has(> article) article a[href^="/see/"]:hover,
main:nth-of-type(1):has(> article) article a[href^="/go/"]:hover,
main:nth-of-type(1):has(> article) article a[href^="/try/"]:hover,
main:nth-of-type(1):has(> article) article a[href^="/ref/"]:hover,
main:nth-of-type(1):has(> article) article a[href^="/out/"]:hover {
  background: var(--accent);
  color: var(--paper);
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Cereal-Nordic overlay=55% grid=asymmetric 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; }
}

