*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.css-tl0r7gn{max-width:860px;margin:0 auto;padding:0 20px}
.css-yrp3tye{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-yrp3tye h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-yrp3tye p{font-size:14px;color:#666}
.css-yrp3tye a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-9t62qo1{display:flex;flex-direction:column;gap:20px}
.css-z2eoous{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.css-z2eoous:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-z2eoous h2{font-size:19px;margin-bottom:6px}
.css-z2eoous h2 a{color:#1a1a1a;text-decoration:none}
.css-z2eoous .css-qci6gab{font-size:12px;color:#999;margin-bottom:8px}
.css-z2eoous p{font-size:14px;color:#555;margin-bottom:12px}
.css-z12555o{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-z12555o:hover{background:#4752c4}
.css-w4fq6b5{padding-bottom:60px}
.css-w4fq6b5 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-w4fq6b5 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-w4fq6b5 h2{font-size:22px;margin:32px 0 12px}
.css-w4fq6b5 h3{font-size:18px;margin:24px 0 8px}
.css-w4fq6b5 p{margin-bottom:16px}
.css-w4fq6b5 ul,.css-w4fq6b5 ol{margin:0 0 16px 24px}
.css-w4fq6b5 a{color:#5865f2}
.css-w4fq6b5 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-61s9ij9{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-61s9ij9 a{color:#999;text-decoration:none}
.css-tjvfrbw{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-d7mfesg{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-ggcq09l{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-2b35ihm{text-align:center;margin:0 0 24px}
.css-hkkc292{max-width:100%;height:auto;border-radius:12px}
.css-z51wub1{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-z51wub1 h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.css-r8dm88a{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-y9niyix{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.css-y9niyix:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#5C3D8A;--accent:#D9A87A;--bg:#F2EDDE;--fg:#1F0F1A;--border:#C4A8AC;--r:35px;--fb:'Quattrocento Sans';--fh:'Cormorant Infant'}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Quattrocento+Sans:ital,wght@0,400;0,700;1,400&display=swap');

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

:root > body > header { background: var(--primary); color: var(--bg); padding: 52px 0 32px; margin-bottom: 44px; border-bottom: 3px solid var(--accent); }
:root > body > header > div { max-width: 740px; margin: 0 auto; padding: 0 24px; }
:root > body > header h1 { font-family: var(--fh), Cambria, serif; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; color: var(--bg); line-height: 1.14; margin-bottom: 8px; letter-spacing: 0.04em; }
:root > body > header p { font-family: var(--fb), system-ui, sans-serif; font-size: clamp(0.85rem, 1.4vw, 1rem); color: rgba(242, 237, 222, .82); max-width: 660px; font-style: italic; opacity: 0.9; margin-top: 0.4em; line-height: 1.5; }
:root > body > header a { font-family: var(--fh), Cambria, serif; font-size: 26px; color: var(--bg); text-decoration: none; font-weight: 500; }

:root main { max-width: 740px; margin: 0 auto; padding: 0 24px 70px; }
:root main > h1 { font-family: var(--fh), Cambria, serif; font-size: 34px; font-weight: 500; color: var(--primary); line-height: 1.18; margin: 6px 0 6px; letter-spacing: -0.005em; }
:root main > time, :root main article time { display: block; font-family: var(--fb), system-ui, sans-serif; font-size: 0.8rem; color: #7a6a9a; margin-bottom: 1.5em; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

:root main > article > p { margin-bottom: 1.3em; font-size: 16.5px; line-height: 1.85; }
:root main > article > h2 { font-family: var(--fh), Cambria, serif; font-size: 26px; font-weight: 500; color: var(--primary); margin: 2.8em 0 0.6em; padding-bottom: 6px; border-bottom: 1px solid var(--accent); letter-spacing: -0.005em; }
:root main > article ul, :root main > article ol { margin: 0 0 18px 26px; }
:root main > article li { margin-bottom: 6px; font-size: 16px; }
:root main > article li strong { color: var(--primary); font-weight: 700; }
:root main > article > p strong { color: var(--primary); font-weight: 700; }

:root main > article > p a, :root main > article > p a:visited { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700; }
:root main > article > p a:hover { color: var(--accent); text-decoration-color: var(--primary); }

:root main > article > p a[href^="/ref/"], :root main > article > p a[href^="/try/"], :root main > article > p a[href^="/check/"], :root main > article > p a[href^="/partner/"], :root main > article > p a[href^="/go/"], :root main > article > p a[href^="/out/"] { background: var(--accent); color: var(--fg); padding: 3px 14px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-family: var(--fh), Cambria, serif; font-size: 14.5px; letter-spacing: .02em; }
:root main > article > p a[href^="/ref/"]:hover, :root main > article > p a[href^="/try/"]:hover, :root main > article > p a[href^="/check/"]:hover, :root main > article > p a[href^="/partner/"]:hover, :root main > article > p a[href^="/go/"]:hover, :root main > article > p a[href^="/out/"]:hover { background: var(--primary); color: var(--bg); }

:root main > article > img, :root main > article > figure { margin: 0 0 30px; }
:root main > article > img, :root main > article > figure > img { width: 100%; height: auto; display: block; border-radius: var(--r); box-shadow: 0 4px 18px rgba(31, 15, 26, .14); }

:root main > div > div:has(> h2) { background: #FFFAF2; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: 20px 24px; margin-bottom: 18px; transition: border-left-color .12s ease; }
:root main > div > div:has(> h2):hover { border-left-color: var(--primary); }
:root main > div > div:has(> h2) > p:first-child { font-family: var(--fb), system-ui, sans-serif; font-size: 11px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; font-weight: 700; }
:root main > div > div:has(> h2) > h2 { font-family: var(--fh), Cambria, serif; font-size: 22px; font-weight: 500; margin-bottom: 8px; line-height: 1.20; padding-bottom: 0; border-bottom: 0; letter-spacing: -0.005em; }
:root main > div > div:has(> h2) > h2 a { color: var(--primary); text-decoration: none; }
:root main > div > div:has(> h2) > p:not(:first-child) { font-family: var(--fb), system-ui, sans-serif; font-size: 14.5px; color: var(--fg); opacity: .82; margin-bottom: 12px; }
:root main > div > div:has(> h2) > a:last-child { font-family: var(--fh), Cambria, serif; font-size: 13px; color: var(--bg); background: var(--primary); padding: 7px 18px; border-radius: var(--r); text-decoration: none; letter-spacing: .04em; font-weight: 500; display: inline-block; }

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

/* === R2 fixes (2026-06-07T17:30:04.365702+00:00) === */
.crd-related-list { border-top: 1px solid var(--hair); margin-top: 1.5em; padding-top: 1em; list-style: none; padding-left: 0; }
.crd-related-link { display: block; background: var(--paper2) !important; border: 1px solid var(--hair); border-radius: 8px; box-shadow: 0 1px 4px rgba(31,15,26,.05); padding: 0.72em 0.95em; color: #5C3D8A; font-size: 0.95em; text-decoration: none; transition: box-shadow .14s ease; }
.crd-related-link:hover { color: var(--primary); box-shadow: 0 4px 14px rgba(31,15,26,.10); }

/* === R3 fixes (2026-06-07T18:10:03.302194+00:00) === */
:root main > article > p a[href^="/offer/"] { background: var(--accent); color: var(--fg); padding: 3px 14px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-family: var(--fh), Cambria, serif; font-size: 14.5px; letter-spacing: .02em; }
:root main > article > p a[href^="/offer/"]:hover { background: var(--primary); color: var(--bg); }
.css-tjvfrbw { border-left: 3px solid var(--accent); background: transparent; padding: 6px 14px; font-size: 0.78rem; color: var(--fg); opacity: 0.58; font-style: italic; margin-bottom: 1.4em; }
div.css-z51wub1 > h3 { font-family: var(--fb), system-ui, sans-serif; font-size: 0.75rem; color: var(--primary); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.4em; opacity: 0.7; }
:root main > article h3 { font-family: var(--fh), Cambria, serif; font-size: 20px; font-weight: 500; color: var(--primary); margin: 2em 0 0.5em; letter-spacing: -0.003em; }

/* === R4 fixes (2026-06-07T19:00:14.990514+00:00) === */
.css-d7mfesg { border-top: 1px solid var(--border); margin-top: 2.5em; padding-top: 1.1em; font-size: 0.77rem; color: var(--fg); opacity: 0.52; font-style: italic; }
:root main > article > p a[href^="/offer/"] { background: var(--primary); color: var(--bg); padding: 3px 14px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-family: var(--fh), Cambria, serif; font-size: 14.5px; letter-spacing: .02em; }
:root main > article > p a[href^="/offer/"]:hover { background: #3d2660; color: var(--bg); }
:root main > article > section > h2 { font-family: var(--fh), Cambria, serif; font-size: 26px; font-weight: 500; color: var(--primary); margin: 2.8em 0 0.6em; padding-bottom: 6px; border-bottom: 1px solid var(--accent); letter-spacing: -0.005em; }
:root main > article > section > ul { list-style: none; padding: 0; border-top: 1px solid #d8ceed; margin-top: 0.5em; }
:root main > article > section > ul > li > a { display: block; padding: 0.6em 0.5em; color: #5C3D8A; font-size: 0.95em; text-decoration: none; border-bottom: 1px solid #d8ceed; }
:root main > article > section > ul > li > a:hover { text-decoration: underline; color: var(--primary); }
:root main > article > h2 + p { font-style: italic; color: var(--primary); opacity: 0.88; }

/* v.2f40c1 — layout revision */
:root { --moment: #7A6B4A; --paper: #faf5ec; --paper2: #f5efe1; --hair: rgba(31,15,26,.10); }

/* ---- Masthead: photo band + serif-italic wordmark + monogram + manifesto ---- */
:root > body > header { position: relative; background: linear-gradient(rgba(40,25,58,.78), rgba(40,25,58,.90)), url("/theme-assets/site-hero.jpg") center/cover no-repeat, url("/theme-assets/hero-masthead.jpg") center/cover no-repeat, var(--primary); padding: 64px 0 52px; margin-bottom: 56px; border-bottom: 3px solid var(--accent); overflow: hidden; }
:root > body > header > div { max-width: 760px; text-align: center; }
:root > body > header > div::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 18px; background: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="32" r="30" fill="none" stroke="%23D9A87A" stroke-width="2"/><polygon points="32,13 51,32 32,51 13,32" fill="none" stroke="%23F2EDDE" stroke-width="2.4"/><circle cx="32" cy="32" r="4" fill="%23D9A87A"/></svg>'); opacity: .95; }
:root > body > header h1 { font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.4rem); color: var(--bg); line-height: 1.08; letter-spacing: 0.005em; margin-bottom: 14px; text-shadow: 0 2px 18px rgba(20,10,30,.4); }
:root > body > header p { font-family: var(--fb), system-ui, sans-serif; font-size: clamp(0.86rem, 1.4vw, 1rem); color: rgba(242,237,222,.9); max-width: 560px; margin: 0 auto; font-style: italic; opacity: .95; line-height: 1.6; letter-spacing: .01em; }
:root > body > header p::before, :root > body > header p::after { content: "—"; color: var(--accent); opacity: .8; margin: 0 .5em; font-style: normal; }

/* ================= HOMEPAGE (main without an <article>) ================= */
:root main:not(:has(> article)) { max-width: 1080px; padding: 0 28px 88px; }

/* the feed/grid wrapper is the FIRST direct div; the compact tail is the other div */
:root main:not(:has(> article)) > div:first-of-type { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: row; gap: 30px 30px; align-items: stretch; }

/* base card treatment (soft frame, warm paper, flex column for equal heights) */
:root main:not(:has(> article)) > div:first-of-type > div { background: var(--paper2); border: 1px solid var(--hair); border-left: 1px solid var(--hair); border-radius: 9px; box-shadow: 0 1px 4px rgba(31,15,26,.05); padding: 26px 34px 30px; margin: 0; display: flex; flex-direction: column; transition: box-shadow .14s ease, transform .14s ease; }
:root main:not(:has(> article)) > div:first-of-type > div:hover { box-shadow: 0 6px 20px rgba(31,15,26,.10); transform: translateY(-2px); }
:root main:not(:has(> article)) > div:first-of-type > div > p:first-of-type { font-family: var(--fb), system-ui, sans-serif; font-size: 11px; color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
:root main:not(:has(> article)) > div:first-of-type > div > h2 { margin: 0 0 10px; padding: 0; border: 0; line-height: 1.16; }
:root main:not(:has(> article)) > div:first-of-type > div > h2 a { font-family: var(--fh), Cambria, serif; color: var(--primary); text-decoration: none; }
:root main:not(:has(> article)) > div:first-of-type > div > h2 a:hover { color: var(--moment); }
:root main:not(:has(> article)) > div:first-of-type > div > p:last-of-type { font-family: var(--fb), system-ui, sans-serif; color: var(--fg); opacity: .82; margin: 0 0 18px; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:root main:not(:has(> article)) > div:first-of-type > div > a:last-child { margin-top: auto; align-self: flex-start; font-family: var(--fb), system-ui, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); background: transparent; border: 1px solid var(--accent); padding: 8px 18px; border-radius: 30px; text-decoration: none; transition: background .14s ease, color .14s ease; }
:root main:not(:has(> article)) > div:first-of-type > div > a:last-child:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* --- HERO: first card, full width, the loud voice --- */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) { grid-column: 1 / -1; order: 1; background: var(--paper); border-top: 3px solid var(--moment); border-radius: 10px; padding: 40px 48px 44px; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1)::before { content: "Última entrada · del cuaderno violeta"; display: block; font-family: var(--fb), system-ui, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--moment); margin-bottom: 16px; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) > p:first-of-type { color: var(--accent); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) > p:first-of-type::after { content: " · Camila Esquivel · lectura lenta"; color: #9a7f74; letter-spacing: .12em; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) > h2 a { font-size: clamp(2rem, 4.4vw, 3.1rem); font-style: italic; font-weight: 500; line-height: 1.08; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) > p:last-of-type { font-size: 19.5px; line-height: 1.5; opacity: .9; max-width: 60ch; -webkit-line-clamp: 4; margin-bottom: 24px; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) > p:last-of-type::first-letter { font-family: var(--fh), Cambria, serif; font-style: italic; font-size: 3.4em; line-height: .82; float: left; margin: 6px 12px 0 0; color: var(--moment); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) > a:last-child { font-size: 12.5px; padding: 11px 26px; border-width: 1.5px; }

/* --- EDITOR'S PICKS band label: grid ::before, full row, outside frames --- */
:root main:not(:has(> article)) > div:first-of-type::before { content: "Selección de Camila — léelas primero"; order: 2; grid-column: 1 / -1; font-family: var(--fb), system-ui, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); padding-bottom: 12px; border-bottom: 2px solid var(--moment); margin: 22px 0 -6px; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(3), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) { grid-column: span 2; order: 3; background: var(--paper); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2) > h2 a, :root main:not(:has(> article)) > div:first-of-type > div:nth-child(3) > h2 a, :root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > h2 a { font-size: 21px; font-style: italic; }

/* --- STRIP 1: photo band between picks and journal --- */
:root main:not(:has(> article)) > div:first-of-type::after { content: "El diario — más recientes"; order: 4; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 200px; margin: 26px 0 8px; border-radius: 9px; background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)), url("/theme-assets/article-hero.jpg") center 30%/cover no-repeat; color: #fff; font-family: var(--fb), system-ui, sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* --- CHRONOLOGICAL JOURNAL: cards 5+, 2-col --- */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(n+5) { grid-column: span 3; order: 5; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(n+5) > h2 a { font-size: 22px; }

/* --- STRIP 2 + COMPACT TAIL (the other main child) — full-width 3-col boxed magazine index --- */
:root main:not(:has(> article)) > div:not(:first-of-type) { max-width: 1080px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; align-items: stretch; background: var(--paper); border: 1px solid var(--hair); border-radius: 10px; padding: 0 40px 34px; }
:root main:not(:has(> article)) > div:not(:first-of-type)::before { content: "Más entradas"; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 200px; margin: 0 -40px 26px; border-radius: 10px 10px 0 0; background: linear-gradient(rgba(28,20,32,.5), rgba(28,20,32,.28)), url("/theme-assets/article-hero.jpg") center 70%/cover no-repeat; color: #fff; font-family: var(--fb), system-ui, sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
:root main:not(:has(> article)) > div:not(:first-of-type) > a { display: flex; align-items: flex-start; height: 100%; box-sizing: border-box; background: var(--paper2); border: 1px solid var(--hair); border-radius: 8px; box-shadow: 0 1px 4px rgba(31,15,26,.05); padding: 18px 20px; font-family: var(--fh), Cambria, serif; font-size: 16px; line-height: 1.32; color: var(--primary); text-decoration: none; transition: box-shadow .14s ease, transform .14s ease; }
:root main:not(:has(> article)) > div:not(:first-of-type) > a:hover { color: var(--moment); box-shadow: 0 6px 18px rgba(31,15,26,.10); transform: translateY(-2px); }

/* --- responsive collapse --- */
@media (max-width: 760px) {
  :root main:not(:has(> article)) > div:first-of-type { grid-template-columns: 1fr; gap: 22px; }
  :root main:not(:has(> article)) > div:first-of-type > div, :root main:not(:has(> article)) > div:first-of-type > div:nth-child(1), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(2), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(3), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(4), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(n+5) { grid-column: 1 / -1; padding: 26px 26px 28px; }
  :root main:not(:has(> article)) > div:first-of-type > div:nth-child(1) { padding: 30px 26px 32px; }
  :root main:not(:has(> article)) > div:not(:first-of-type) { grid-template-columns: 1fr; padding: 0 24px 26px; }
  :root main:not(:has(> article)) > div:not(:first-of-type)::before { margin: 0 -24px 22px; }
}

/* ---- Article page: harmonize inline /offer/ CTAs to plum+peach palette ---- */
:root main > article > p a[href^="/offer/"], :root main > article > li a[href^="/offer/"] { background: rgba(217,168,122,.28); color: var(--primary); padding: 2px 9px; border-radius: 5px; text-decoration: none; font-weight: 700; font-family: var(--fb), system-ui, sans-serif; font-size: inherit; letter-spacing: 0; border-bottom: 2px solid var(--accent); }
:root main > article > p a[href^="/offer/"]:hover, :root main > article > li a[href^="/offer/"]:hover { background: var(--accent); color: var(--fg); }

/* article body dinkus between h2 sections */
:root main > article > h2::before { content: "✦ ✦ ✦"; display: block; text-align: center; color: var(--accent); font-size: 14px; letter-spacing: .5em; margin: 0 0 .7em; opacity: .8; border: 0; }
:root main:has(> article) > h1 { font-family: var(--fh), Cambria, serif; font-style: italic; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 500; line-height: 1.1; }

/* S6 — article personality anchor: byline appended to the date meta line */
:root main:has(> article) > time::after { content: " · por Camila Esquivel · lectura lenta"; color: var(--primary); font-weight: 700; }


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=40% grid=asymmetric scale=dramatic family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 40%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  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-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  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;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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;
}

/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

