*{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}
.sc-gSWANs{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 .sc-NNJhnG{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.sc-BZmDkV{border-bottom:1px solid #eee;padding:24px 0}
.sc-BZmDkV h2{font-size:20px;margin-bottom:8px}
.sc-BZmDkV h2 a{color:#1a1a2e;text-decoration:none}
.sc-BZmDkV h2 a:hover{color:#e94560}
.sc-BZmDkV .date{font-size:13px;color:#999;margin-bottom:8px}
.sc-dLwRlA{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.sc-mZSUyr{padding-bottom:60px}
.sc-mZSUyr h1{font-size:32px;margin-bottom:8px}
.sc-mZSUyr time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.sc-mZSUyr h2{font-size:22px;margin:32px 0 12px}
.sc-mZSUyr h3{font-size:18px;margin:24px 0 8px}
.sc-mZSUyr p{margin-bottom:16px}
.sc-mZSUyr ul,.sc-mZSUyr ol{margin:0 0 16px 24px}
.sc-mZSUyr a{color:#e94560}
.sc-mZSUyr 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}
.sc-GpVLMa{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.sc-RduVuN{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.sc-QgMkFO{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.sc-rvKDYh{text-align:center;margin:0 0 20px}
.sc-vkRDSR{max-width:100%;height:auto;border-radius:6px}
.sc-KRKolW{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.sc-KRKolW h3{font-size:18px;margin-bottom:12px}
.sc-KRKolW ul{list-style:none;padding:0}
.sc-KRKolW li{padding:4px 0}
.sc-KRKolW a{color:#e94560;text-decoration:none}
.sc-ZrhgVz{padding:20px 0}
.sc-ZrhgVz ul{list-style:none;padding:0}
.sc-ZrhgVz li{padding:5px 0;font-size:15px}
.sc-ZrhgVz a{color:#1a1a2e;text-decoration:none}
.sc-ZrhgVz a:hover{color:#e94560}
/* === Theme === */
:root{--primary:#6B4E57;--accent:#7F9E63;--bg:#F3F0EC;--fg:#2E2824;--border:#C9C3BD;--r:11px;--fb:'Mulish';--fh:'Zilla Slab'}
/* === Custom === */
/* v.abefda — layout revision */
/* "Rincalda" — Carlota Sanz's low-budget renter's decorating diary, Murcia (ES).
   Live build is styled-components (.sc-xxxx, per-seed) so EVERY selector below is
   ELEMENT + STRUCTURAL — never a class. Editorial trio: Fraunces italic display /
   Newsreader serif body / Mulish tracked-caps meta (declared as @font-face because the
   concat pipeline drops a leading @import). Moment colour = warm walnut #6B4A2E, used in
   EXACTLY two spots: the masthead manifesto rule and the hero drop-cap. Nowhere else. */

@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 900;font-display:swap;src:url(https://fonts.gstatic.com/s/fraunces/v38/6NUu8FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0K7iN7hzFUPJH58nib14c7qv8.woff2) format('woff2')}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 600;font-display:swap;src:url(https://fonts.gstatic.com/s/fraunces/v38/6NUs8FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChJdt9vIVYX9G37lvd9mv0iQg.woff2) format('woff2')}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 600;font-display:swap;src:url(https://fonts.gstatic.com/s/newsreader/v26/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbNJYQ.woff2) format('woff2')}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/newsreader/v26/cY9kfjOCX1hbuyalUrK439vogqC9yFZCYg7oRZaLP4obnf7fTXglsMwoT9ZHFjQ.woff2) format('woff2')}
@font-face{font-family:'Mulish';font-style:normal;font-weight:600 700;font-display:swap;src:url(https://fonts.gstatic.com/s/mulish/v18/1Ptvg83HX_SGhgqk3wot.woff2) format('woff2')}

/* ─── Variables & base ──────────────────────────────────── */
:root {
  --primary: #6B4E57;   /* mauve */
  --accent:  #7F9E63;   /* olive — the single confident CTA colour */
  --bg:      #F3F0EC;
  --fg:      #2E2824;
  --border:  #C9C3BD;
  --moment:  #6B4A2E;   /* walnut — 2 uses only */
  --ink:     #3A2E2A;
  --paper:   #FAF6EF;   /* warm off-white card surface (never pure #fff) */
  --meta:    #8A7F79;
  --fh: 'Fraunces';
  --fb: 'Newsreader';
  --fm: 'Mulish';
}

body {
  font-family: var(--fb), Georgia, serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.76;
  margin: 0;
  padding: 0;
  overflow-x: hidden;               /* guards the full-bleed photo strips */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fh), Georgia, serif;
  color: var(--primary);
  line-height: 1.2;
}

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

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

/* ══ MASTHEAD — photo band shared across home + article ═════════════════ */
body > header {
  background:
    linear-gradient(152deg, rgba(82,57,63,.84) 0%, rgba(107,78,87,.70) 52%, rgba(126,92,101,.82) 100%),
    url("/theme-assets/top-image.jpg");
  background-size: cover;
  background-position: center 42%;
  padding: 2.6rem 0 2.4rem;
  margin-bottom: 0;
  border-bottom: 3px solid var(--primary);
}
body > header > div:only-child {     /* :only-child beats .sc-gSWANs{padding:0 20px} (0,1,0) */
  text-align: center;
  padding: 74px 20px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Ccircle cx='27' cy='27' r='25' fill='none' stroke='%23F3F0EC' stroke-opacity='0.9' stroke-width='1.4'/%3E%3Ctext x='27' y='36' text-anchor='middle' font-family='Georgia,serif' font-style='italic' font-size='28' fill='%23F3F0EC'%3ER%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 52px 52px;
}
body > header > div > h1,
body > header > div > a {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 6.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.5px;
  color: #F6F2ED;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.32);
  margin: 0;
  display: inline-block;
}
body > header > div > p {
  font-family: var(--fb), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.98rem, 2.2vw, 1.14rem);
  line-height: 1.5;
  color: rgba(246,242,237,.9);
  max-width: 46ch;
  margin: 0.8rem auto 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.34);
}
body > header > div::after {         /* manifesto rule — MOMENT colour 1 of 2 */
  content: "DIARIO DE DECORACIÓN · MURCIA · CON POCO PRESUPUESTO";
  display: table;
  margin: 1.25rem auto 0;
  padding-top: 0.85rem;
  border-top: 2px solid var(--moment);
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246,242,237,.82);
}

/* ══════════════════════════════════════════════════════════════════════
   HOMEPAGE  ·  main = :has(> article > h2 > a)
   grid of 18 <article>s → hero · 3-up picks · strip · journal · strip · index
   ══════════════════════════════════════════════════════════════════════ */
body > main:nth-of-type(1):has(> article > h2 > a) {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.2rem 1.6rem 4rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.2rem 2rem;
}

/* Read-more relabel EN→ES + brand off coral to olive (shared by hero/picks/journal) */
body > main:nth-of-type(1):has(> article > h2 > a) > article > a {
  font-size: 0;
  text-decoration: none;
  color: var(--accent);
  align-self: start;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article > a::after {
  content: "Seguir leyendo →";
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article > h2 > a {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--fh), Georgia, serif;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article > h2 > a:hover { color: var(--accent); }

/* ── HERO = article 1 (the one loud voice) ─────────────────────────────── */
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid rgba(107,78,87,.16);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 2.6rem 2.8rem 2.5rem;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1)::before {
  content: "ÚLTIMO EN EL DIARIO";
  display: block;
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  margin: 0 0 0.3rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > h2 > a {
  font-style: italic;
  font-weight: 600;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > p:nth-of-type(1) {
  font-family: var(--fm), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0.6rem 0 1.3rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > p:nth-of-type(1)::before {
  content: "Por Carlota Sanz · ";
  color: var(--primary);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > p:nth-of-type(1)::after {
  content: " · 6 MIN DE LECTURA";
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > p:nth-of-type(2) {
  font-family: var(--fb), Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > p:nth-of-type(2)::first-letter {
  float: left;
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 3.6rem;
  line-height: 0.76;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--moment);            /* MOMENT colour 2 of 2 */
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > a {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.62rem 1.7rem;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  transition: background-color 0.18s ease, color 0.18s ease;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) > a:hover {
  background: var(--primary);
  color: #F6F2ED;
}

/* ── EDITOR'S PICKS = articles 2–4 (3-up change of gear) ───────────────── */
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(107,78,87,.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 1.8rem 2rem 1.9rem;
  margin-top: 3.4rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4):hover {
  box-shadow: 0 8px 22px rgba(107,78,87,.12);
  transform: translateY(-2px);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(2) { position: relative; }
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(2)::before {
  content: "LO QUE LEERÍA PRIMERO";
  position: absolute;
  left: 0;
  bottom: calc(100% + 1rem);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4) > p:nth-of-type(1) {
  order: 1;
  font-family: var(--fm), sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4) > h2 {
  order: 2;
  font-size: 1.28rem;
  line-height: 1.24;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4) > p:nth-of-type(2) {
  order: 3;
  font-family: var(--fb), Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0.65rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4) > a {
  order: 4;
  margin-top: auto;
  padding-top: 1.1rem;
}

/* ── STRIP 1 = photo band above article 5 ("EN ORDEN DE ESCRITURA") ────── */
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 268px;
  background: var(--paper);
  border: 1px solid rgba(107,78,87,.16);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 2.2rem 2.6rem 2.3rem;
  display: block;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5)::before {
  content: "EN ORDEN DE ESCRITURA";
  position: absolute;
  top: -228px; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 208px;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/article-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  color: #F6F2ED;
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) > p:nth-of-type(1) {
  font-family: var(--fm), sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) > h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.14;
  margin: 0 0 0.2rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) > h2 > a { font-style: italic; }
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) > p:nth-of-type(2) {
  font-family: var(--fb), Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink);
  max-width: 64ch;
  margin: 0.7rem 0 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) > a {
  display: inline-block;
  margin-top: 1.2rem;
}

/* ── JOURNAL GRID = articles 6–13 (2-up, consistent cards) ─────────────── */
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13) {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(107,78,87,.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 1.7rem 2rem 1.8rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13):hover {
  box-shadow: 0 8px 22px rgba(107,78,87,.12);
  transform: translateY(-2px);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13) > p:nth-of-type(1) {
  order: 1;
  font-family: var(--fm), sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0 0 0.5rem;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13) > h2 {
  order: 2;
  font-size: 1.24rem;
  line-height: 1.24;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13) > p:nth-of-type(2) {
  order: 3;
  font-family: var(--fb), Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ink);
  margin: 0.6rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13) > a {
  order: 4;
  margin-top: auto;
  padding-top: 1rem;
}

/* ── STRIP 2 + ARCHIVE INDEX = articles 14–18 (full-width hairline rows) ── */
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6rem;
  background: none;
  border: none;
  border-top: 1px dotted rgba(0,0,0,.14);
  border-radius: 0;
  padding: 1.15rem 0;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14) {
  position: relative;
  margin-top: 288px;
  border-top: none;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14)::before {
  content: "TODAS LAS ENTRADAS";
  position: absolute;
  top: -248px; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 224px;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/article-bg.jpg");
  background-size: cover;
  background-position: center 70%;
  color: #F6F2ED;
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > h2 {
  flex: 1;
  font-size: 1.16rem;
  line-height: 1.3;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > h2 > a { font-style: normal; }
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > p { display: none; }
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > p:nth-of-type(1) {
  display: block;
  flex: none;
  font-family: var(--fm), sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  white-space: nowrap;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > a { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   ARTICLE PAGE  ·  main = :has(> h1)  ·  single confident editorial voice
   ══════════════════════════════════════════════════════════════════════ */
body > main:nth-of-type(1):has(> h1) {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.8rem 1.4rem 4rem;
}
body > main:nth-of-type(1):has(> h1) > h1 {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.05rem);
  line-height: 1.08;
  color: var(--primary);
  margin: 0.2rem 0 0.35rem;
}
body > main:nth-of-type(1):has(> h1) > time {
  display: block;
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.2rem 0 1.9rem;
}
body > main:nth-of-type(1):has(> h1) > time::before {
  content: "Por Carlota Sanz · ";
  color: var(--meta);
}
body > main:nth-of-type(1):has(> h1) > article > p {
  font-family: var(--fb), Georgia, serif;
  font-size: 1.19rem;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 1.35rem;
  max-width: 66ch;
}
body > main:nth-of-type(1):has(> h1) > article > p:nth-of-type(1) { font-size: 1.24rem; }
body > main:nth-of-type(1):has(> h1) > article > h2 {
  font-family: var(--fh), Georgia, serif;
  font-weight: 600;
  color: var(--primary);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
  border: none;
  padding: 0;
  margin: 2.8rem 0 0.9rem;
}
body > main:nth-of-type(1):has(> h1) > article > h2::before {
  content: "✷  ✷  ✷";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  opacity: 0.7;
  margin: 0 auto 1.5rem;
}
body > main:nth-of-type(1):has(> h1) > article > h3 {
  font-family: var(--fh), Georgia, serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.28rem;
  margin: 2rem 0 0.7rem;
}
/* inline affiliate + body links — one olive voice, never coral */
body > main:nth-of-type(1):has(> h1) > article a,
body > main:nth-of-type(1):has(> h1) > article > p a[href^="/check/"] {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(127,158,99,.5);
}
body > main:nth-of-type(1):has(> h1) > article a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}
/* figures */
body > main:nth-of-type(1):has(> h1) > article > div { margin: 2rem 0; text-align: center; }
body > main:nth-of-type(1):has(> h1) > article > div > img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(107,78,87,.1);
}
/* soften a missing image into a tinted paper tile instead of a raw broken icon */
body > main:nth-of-type(1):has(> h1) > article img {
  min-height: 64px;
  background: #EFEAE4;
  color: var(--meta);
  font-family: var(--fm), sans-serif;
  font-size: 0.8rem;
}
/* blockquote — hanging quote */
body > main:nth-of-type(1):has(> h1) > article blockquote {
  position: relative;
  border-left: 3px solid var(--primary);
  background: rgba(107,78,87,.07);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  padding: 1rem 1.4rem 1rem 2.4rem;
  font-family: var(--fb), Georgia, serif;
  font-style: italic;
  color: var(--primary);
}
body > main:nth-of-type(1):has(> h1) > article blockquote::before {
  content: "\00201C";
  position: absolute;
  left: 0.3rem; top: 0;
  font-family: var(--fh), Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45;
}
/* related-articles footer */
body > main:nth-of-type(1):has(> h1) > section {
  margin-top: 3.4rem;
  padding-top: 1.9rem;
  border-top: 2px solid var(--border);
}
body > main:nth-of-type(1):has(> h1) > section > h3 {
  font-family: var(--fm), sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.1rem;
}
body > main:nth-of-type(1):has(> h1) > section > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
body > main:nth-of-type(1):has(> h1) > section a {
  color: var(--primary);
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  text-decoration: none;
}
body > main:nth-of-type(1):has(> h1) > section a:hover { color: var(--accent); }

/* ── Footer — quiet brand ─────────────────────────────────────────────── */
body > footer {
  background: none;
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
}
body > footer > div > p {
  font-family: var(--fm), sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--meta);
}
body > footer a { color: var(--primary); text-decoration: none; font-weight: 700; }
body > footer a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  body > main:nth-of-type(1):has(> article > h2 > a) {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) {
    grid-column: 1 / -1;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4) {
    grid-column: span 1;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body > main:nth-of-type(1):has(> article > h2 > a) {
    grid-template-columns: 1fr;
    max-width: 560px;
    padding: 2.4rem 1.3rem 3rem;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+2):nth-of-type(-n+4),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+6):nth-of-type(-n+13),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) {
    grid-column: 1 / -1;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(1) { padding: 1.9rem 1.6rem; }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5)::before,
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14)::before {
    height: 150px;
    letter-spacing: 0.24em;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5) {
    margin-top: 186px;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(5)::before { top: -170px; }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14) {
    margin-top: 190px;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14)::before { top: -172px; }
}


/* 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: restore archive tail as boxed magazine cards */
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) {
  grid-column: span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.72rem;
  box-sizing: border-box;
  min-height: 132px;
  background: var(--paper);
  border: 1px solid rgba(107,78,87,.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 1.22rem 1.35rem 1.28rem;
  margin: 0;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14):hover {
  box-shadow: 0 8px 22px rgba(107,78,87,.12);
  transform: translateY(-2px);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14),
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(15),
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(16) {
  margin-top: 288px;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > p:nth-of-type(1) {
  order: 1;
  display: block;
  font-family: var(--fm), sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--meta);
  white-space: normal;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > h2 {
  order: 2;
  flex: none;
  font-size: 1.12rem;
  line-height: 1.32;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > h2 > a {
  color: var(--primary);
  font-family: var(--fh), Georgia, serif;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) > h2 > a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) {
    grid-column: 1 / -1;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(15),
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(16) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(n+14) {
    min-height: 0;
    padding: 1.15rem 1.2rem 1.2rem;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14) {
    margin-top: 190px;
  }
  body > main:nth-of-type(1):has(> article > h2 > a) > article:nth-of-type(14)::before {
    top: -172px;
    height: 150px;
  }
}

/* refix iter2: keep the last homepage archive entry boxed */
body > main:nth-of-type(1):has(> article > h2 > a) > article:last-of-type,
body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child,
body > main:nth-of-type(1):has(> article > h2 > a) > a:last-child {
  align-self: stretch;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid rgba(107,78,87,.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 1.22rem 1.35rem 1.28rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child,
body > main:nth-of-type(1):has(> article > h2 > a) > a:last-child {
  grid-column: span 2;
  display: block;
  min-height: 132px;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:last-of-type:hover,
body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child:hover,
body > main:nth-of-type(1):has(> article > h2 > a) > a:last-child:hover {
  box-shadow: 0 8px 22px rgba(107,78,87,.12);
  transform: translateY(-2px);
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:last-of-type > h2,
body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:last-of-type > h2 > a,
body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child > a,
body > main:nth-of-type(1):has(> article > h2 > a) > a:last-child {
  color: var(--primary);
  font-family: var(--fh), Georgia, serif;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}
body > main:nth-of-type(1):has(> article > h2 > a) > article:last-of-type > h2 > a:hover,
body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child > a:hover,
body > main:nth-of-type(1):has(> article > h2 > a) > a:last-child:hover {
  color: var(--accent);
}
@media (max-width: 640px) {
  body > main:nth-of-type(1):has(> article > h2 > a) > p:last-child,
  body > main:nth-of-type(1):has(> article > h2 > a) > a:last-child {
    grid-column: 1 / -1;
  }
}

/* refix iter2: make article-body affiliate CTAs visibly readable */
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/try/"],
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/ref/"],
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/go/"],
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/out/"],
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/check/"] {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin: 0.25rem 0.12rem;
  padding: 0.48rem 0.92rem;
  background: var(--accent);
  border: 1px solid rgba(107,78,87,.18);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  color: #F6F2ED;
  font-family: var(--fm), sans-serif;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
  text-underline-offset: 0;
  text-decoration-thickness: 0;
}
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/try/"]:hover,
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/ref/"]:hover,
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/go/"]:hover,
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/out/"]:hover,
body > main:nth-of-type(1):has(> h1) > article > :is(p, div, aside, section, blockquote) a[href^="/check/"]:hover {
  background: var(--primary);
  color: #F6F2ED;
}
body > main:nth-of-type(1):has(> h1) > article a[href^="/try/"]:empty::after,
body > main:nth-of-type(1):has(> h1) > article a[href^="/ref/"]:empty::after,
body > main:nth-of-type(1):has(> h1) > article a[href^="/go/"]:empty::after,
body > main:nth-of-type(1):has(> h1) > article a[href^="/out/"]:empty::after,
body > main:nth-of-type(1):has(> h1) > article a[href^="/check/"]:empty::after {
  content: "Ver recomendacion";
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Cereal-Nordic overlay=40% grid=equal scale=balanced family=articles-section */

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

