*{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}
.sc-FQdXUv{max-width:860px;margin:0 auto;padding:0 20px}
.sc-DJNCDv{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.sc-DJNCDv h1{font-size:22px;font-weight:700;margin-bottom:2px}
.sc-DJNCDv p{font-size:14px;color:#666}
.sc-DJNCDv a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.sc-rKOile{display:flex;flex-direction:column;gap:20px}
.sc-DiUOEW{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.sc-DiUOEW:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.sc-DiUOEW h2{font-size:19px;margin-bottom:6px}
.sc-DiUOEW h2 a{color:#1a1a1a;text-decoration:none}
.sc-DiUOEW .sc-LESRdg{font-size:12px;color:#999;margin-bottom:8px}
.sc-DiUOEW p{font-size:14px;color:#555;margin-bottom:12px}
.sc-RZsGqt{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.sc-RZsGqt:hover{background:#4752c4}
.sc-FMcDXT{padding-bottom:60px}
.sc-FMcDXT h1{font-size:30px;font-weight:700;margin-bottom:8px}
.sc-FMcDXT time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.sc-FMcDXT h2{font-size:22px;margin:32px 0 12px}
.sc-FMcDXT h3{font-size:18px;margin:24px 0 8px}
.sc-FMcDXT p{margin-bottom:16px}
.sc-FMcDXT ul,.sc-FMcDXT ol{margin:0 0 16px 24px}
.sc-FMcDXT a{color:#5865f2}
.sc-FMcDXT img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.sc-LpWvcV{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.sc-LpWvcV a{color:#999;text-decoration:none}
.sc-AEgcxU{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.sc-UsKSbc{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.sc-TMMOcx{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.sc-JuGsIq{text-align:center;margin:0 0 24px}
.sc-afMWVS{max-width:100%;height:auto;border-radius:12px}
.sc-EAfJGU{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.sc-EAfJGU 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)}
.sc-YqypMD{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.sc-dxWrJF{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}
.sc-dxWrJF:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#4A3728;--accent:#C9893A;--bg:#EDE5D6;--fg:#2A1F1A;--border:#C8B89A;--r:3px;--fb:'DM Sans';--fh:'Playfair Display'}
/* === Custom === */
/* v.6725f6 — layout revision */
/* Design reference: 1970s Caja Agraria (Colombian rural savings bank) promotional booklets — warm umber tones, condensed display type, institutional sincerity without gloss */

/* ─── Webfonts (declared as @font-face: a top-of-file @import lands AFTER the
   template rules in the concatenated site.css and is dropped by the browser) ─── */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg.woff2) format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');
}

:root {
  --primary: #4A3728;
  --accent: #C9893A;
  --bg: #EDE5D6;
  --fg: #2A1F1A;
  --border: #C8B89A;
  --r: 3px;
  --fb: 'DM Sans';
  --fh: 'Playfair Display';
  --muted: #7A6A5A;
  --surface: #F5F0E8;
  --surface-dark: #D9CFC0;
  /* color-momento — carmín de taller, sólo en las dos capitulares */
  --rust: #B34F2A;
  --panel: #FBF7EF;
  --sand: #E4DAC7;
  --line: #D5C7AC;
  --ink2: #55432F;
}

/* ─── Base ─── */

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

body {
  font-family: var(--fb), system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.72;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ─── Links ─── */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ─── Headings ─── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fh), Georgia, serif;
  color: var(--primary);
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--fb), system-ui, sans-serif;
  color: var(--muted);
}

h5,
h6 {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--fb), system-ui, sans-serif;
  color: var(--muted);
}

/* ─── Paragraphs & Text ─── */

p {
  margin-top: 0;
  margin-bottom: 1.2em;
  max-width: 68ch;
}

strong {
  font-weight: 600;
  color: var(--primary);
}

em {
  font-style: italic;
  color: inherit;
}

/* ─── Lists ─── */

ul,
ol {
  padding-left: 1.4em;
  margin-top: 0;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 0.4em;
  line-height: 1.65;
}

ul li::marker {
  color: var(--accent);
}

ol li::marker {
  color: var(--muted);
  font-weight: 600;
}

/* ─── Blockquote ─── */

blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.8em 0;
  padding: 0.6em 1.4em;
  font-style: italic;
  color: var(--muted);
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
}

blockquote p {
  margin-bottom: 0;
}

/* ─── Horizontal Rule ─── */

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* ─── Code ─── */

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: var(--surface-dark);
  color: var(--primary);
  padding: 0.15em 0.4em;
  border-radius: var(--r);
}

pre {
  background: var(--surface-dark);
  color: var(--primary);
  padding: 1.2em 1.4em;
  border-radius: var(--r);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5em 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* === R2/R3 fixes (2026-06-21), reescritas sin selectores de clase ===
   Los nombres .sc-* se regeneran con la semilla del deploy; estas reglas
   ahora se apoyan en la estructura para no evaporarse en el siguiente build. */

/* Enlaces del cuerpo: ámbar del sitio en lugar del azul del template */
:root main[class] > article a {
  color: var(--accent);
}

:root main[class] > article a:hover {
  color: var(--primary);
}

/* Aviso de afiliación: nota al margen en arena, no interrumpe la entrada */
:root main[class] > article > div:has(> em) {
  background: rgba(200, 184, 154, 0.2);
  border: none;
  border-left: 2px solid var(--border);
  border-radius: 0;
  padding: 0.75em 1em;
  margin: 0 0 2.2em;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.65;
  color: #8A7A6A;
}

/* === QA round-1 fixes (2026-07-22T01:37:44+0800) === */

/* Todo lo de abajo usa selectores de elemento/estructura ([class] entra sólo
   como peso de especificidad) porque los nombres de clase se ofuscan al desplegar.
   Voz: Playfair cursiva para la marca y las citas, Playfair redonda para titulares,
   DM Sans en versalitas espaciadas para metadatos. El color-momento (--rust)
   aparece únicamente en las dos capitulares. */

/* ─── Cabecera: lavados de acuarela sobre umber + monograma "capa sobre capa" ─── */

:root body > header[class] {
  max-width: none;
  background-color: #3B2B1E;
  background-image:
    radial-gradient(42rem 20rem at 10% 122%, rgba(201, 137, 58, 0.32), rgba(201, 137, 58, 0) 62%),
    radial-gradient(28rem 15rem at 84% -24%, rgba(158, 59, 46, 0.38), rgba(158, 59, 46, 0) 66%),
    radial-gradient(52rem 26rem at 56% 150%, rgba(237, 229, 214, 0.12), rgba(237, 229, 214, 0) 70%);
  border-bottom: 3px solid var(--accent);
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}

:root body > header[class] > div[class] {
  max-width: 1200px;
  padding: 4.4rem 1.7rem 3.4rem;
}

:root body > header:has(> div > h1) > div[class]::before {
  content: "DIARIO DE TALLER\0000A0\0000B7\0000A0MEDELL\0000CDN, COLOMBIA";
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

/* Monograma: dos cuadros superpuestos = una capa encima de otra */
:root body > header[class] > div > h1::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 0 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Crect x='2.5' y='2.5' width='25' height='25' fill='none' stroke='%23C9893A' stroke-width='2'/%3E%3Crect x='14.5' y='14.5' width='25' height='25' fill='none' stroke='%23EDE5D6' stroke-width='2'/%3E%3C/svg%3E") 0 0 / contain no-repeat;
}

:root body > header[class] > div > h1 {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: #F7F0E2;
  margin: 0 0 1.15rem;
}

:root body > header[class] > div > p {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.62;
  color: rgba(247, 240, 226, 0.76);
  max-width: 54ch;
  margin: 0;
  padding-left: 1.15rem;
  border-left: 2px solid rgba(201, 137, 58, 0.8);
}

/* Cabecera interior: barra compacta, alineada con la caja de texto del artículo */
:root body > header[class]:has(> div > span) > div[class] {
  max-width: 820px;
  padding: 1.45rem 1.7rem;
}

:root body > header[class] > div > span > a {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #F7F0E2;
  text-decoration: none;
}

:root body > header[class] > div > span > a:hover {
  color: var(--accent);
}

/* ─── Anchos por tipo de página ─── */

:root main[class] {
  max-width: 800px;
  padding: 3rem 1.7rem 4rem;
}

:root main[class]:has(>div>div>h2) {
  max-width: 1200px;
  padding: 0 1.7rem 1rem;
}

/* ─── Portada: rejilla editorial de 6 columnas ─── */

:root main[class]:has(>div>div>h2) > div:first-child {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 2.2rem;
  row-gap: 2.7rem;
  align-items: start;
  margin: 3.2rem 0 0;
}

/* Tarjeta base: plana, con filete fino. Nada de cajas blancas apiladas */
:root main[class]:has(>div>div>h2) > div > div {
  grid-column: span 3;
  background: none;
  box-shadow: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem 0 0;
  margin: 0;
  transition: none;
}

:root main[class]:has(>div>div>h2) > div > div:hover {
  transform: none;
  box-shadow: none;
}

:root main[class]:has(>div>div>h2) > div > div > p:first-of-type {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #957A5B;
  margin: 0 0 0.6rem;
  max-width: none;
}

:root main[class]:has(>div>div>h2) > div > div > h2 {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 0.6rem;
}

:root main[class]:has(>div>div>h2) > div > div > h2 > a {
  color: var(--primary);
  text-decoration: none;
}

:root main[class]:has(>div>div>h2) > div > div:hover > h2 > a {
  color: var(--accent);
}

:root main[class]:has(>div>div>h2) > div > div > p:last-of-type {
  font-size: 0.895rem;
  line-height: 1.66;
  color: var(--ink2);
  max-width: 54ch;
  margin: 0 0 1rem;
}

/* CTA de tarjeta: el botón del template dice "Read Article" en un sitio en
   español — se neutraliza y se repone como enlace editorial en castellano */
:root main[class]:has(>div>div>h2) > div > div > a {
  display: inline-block;
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

:root main[class]:has(>div>div>h2) > div > div > a::after {
  content: "Leer la entrada\0000A0\002192";
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

:root main[class]:has(>div>div>h2) > div > div > a:hover {
  background: none;
}

:root main[class]:has(>div>div>h2) > div > div > a:hover::after {
  color: var(--accent);
}

/* ─── Primer tiempo: la entrada destacada ─── */

:root main[class]:has(>div>div>h2) > div > div:first-of-type {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  column-gap: 3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 2.7rem 3rem 3rem;
  margin: 0 0 1.6rem;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > * {
  grid-column: 1;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type::before {
  content: "\0000DALTIMA ENTRADA";
  grid-column: 1;
  justify-self: start;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--panel);
  background: var(--primary);
  padding: 0.42rem 0.8rem;
  margin-bottom: 1.3rem;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > p:first-of-type {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #8A7156;
  margin: 0 0 1.05rem;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > p:first-of-type::before {
  content: "POR ISABELA C\0000C1RDENAS\0000A0\0000B7\0000A0";
  color: var(--primary);
  font-weight: 600;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > h2 {
  font-size: clamp(2.05rem, 3.7vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0 0 1.15rem;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > p:last-of-type {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #4B3B2C;
  max-width: 47ch;
  margin: 0 0 1.8rem;
}

/* Capitular: primer uso del color-momento */
:root main[class]:has(>div>div>h2) > div > div:first-of-type > p:last-of-type::first-letter {
  float: left;
  font-family: var(--fh), Georgia, serif;
  font-weight: 700;
  font-size: 3.9rem;
  line-height: 0.8;
  color: var(--rust);
  margin: 0.16rem 0.6rem 0 0;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > a {
  justify-self: start;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.72rem 1.7rem;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > a::after {
  content: "Abrir la entrada\0000A0\002192";
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  border-bottom: none;
  padding-bottom: 0;
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > a:hover {
  background: var(--primary);
}

:root main[class]:has(>div>div>h2) > div > div:first-of-type > a:hover::after {
  color: var(--panel);
}

/* Columna derecha del destacado: placa de taller, para que la fila no quede coja */
:root main[class]:has(>div>div>h2) > div > div:first-of-type::after {
  content: "Acuarela sobre acr\0000EDlico.\00000AGesso, tinta y espera.\00000ASin medir, sin apuro.\00000AMedell\0000EDn, s\0000E1bados\00000Apor la ma\0000F1ana.";
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  white-space: pre-line;
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.9;
  color: #7C6449;
  border-left: 1px solid var(--line);
  padding-left: 1.9rem;
}

/* ─── Segundo tiempo: banda "Selección de Isabela" (3 fichas) ─── */

:root main[class]:has(>div>div>h2) > div > div:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2;
  margin-top: 4.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  padding: 1.6rem 1.55rem 1.7rem;
}

:root main[class]:has(>div>div>h2) > div > div:nth-of-type(2) {
  position: relative;
}

:root main[class]:has(>div>div>h2) > div > div:nth-of-type(2)::before {
  content: "SELECCI\0000D3N DE ISABELA\0000A0\0000B7\0000A0EMPIEZA POR AC\0000C1";
  position: absolute;
  left: 0;
  bottom: calc(100% + 1.6rem);
  width: 312%;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.6rem;
}

/* ─── Tercer tiempo: el cuaderno cronológico ─── */
/* La franja de sección "EL CUADERNO" (más abajo) abre este bloque; las fichas
   del cuaderno se reordenan (order:2) para caer justo detrás de la franja,
   mientras el destacado y la banda de Isabela quedan en order:0. */

:root main[class]:has(>div>div>h2) > div > div:nth-of-type(n+5) {
  order: 2;
}

:root main[class]:has(>div>div>h2) > div > div:nth-of-type(5),
:root main[class]:has(>div>div>h2) > div > div:nth-of-type(6) {
  margin-top: 0;
}

/* Strip 1 — franja "EL CUADERNO" entre la selección y el cuaderno.
   El asset /theme-assets/entry-photo.jpg devuelve 404 en este sitio, así que
   la franja es un degradado umber que ecoa la cabecera (repetición = ritmo). */
:root main[class]:has(>div>div>h2) > div:first-child::after {
  content: "EL CUADERNO";
  order: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 184px;
  margin: 4.8rem 0 1.6rem;
  background-color: #34261A;
  background-image:
    radial-gradient(36rem 18rem at 16% -30%, rgba(201, 137, 58, 0.28), rgba(201, 137, 58, 0) 64%),
    linear-gradient(102deg, #3B2B1E 0%, #2A1F16 100%);
  border-top: 3px solid var(--accent);
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #F2E7D3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ─── Banda de archivo al pie de la portada ─── */

:root main[class]:has(>div>div>h2) > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.6rem;
  background: var(--sand);
  border-top: 3px solid var(--primary);
  padding: 2.3rem 2.6rem 2.5rem;
  margin: 5rem 0 0;
  max-width: none;
  counter-reset: arch;
}

/* Strip 2 — franja "EL ARCHIVO" entre el cuaderno y el archivo compacto.
   Mismo degradado umber que "EL CUADERNO", variado en ángulo y posición del
   lavado ámbar para que la repetición lea como decisión, no como calco.
   Márgenes negativos = sangra hasta los bordes de la caja de arena. */
:root main[class]:has(>div>div>h2) > div:last-child::before {
  content: "EL ARCHIVO";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin: -2.3rem -2.6rem 1.8rem;
  background-color: #34261A;
  background-image:
    radial-gradient(36rem 18rem at 84% 130%, rgba(201, 137, 58, 0.26), rgba(201, 137, 58, 0) 64%),
    linear-gradient(258deg, #3B2B1E 0%, #2A1F16 100%);
  border-bottom: 3px solid var(--accent);
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #F2E7D3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

:root main[class]:has(>div>div>h2) > div:last-child > a {
  display: flex;
  align-items: baseline;
  gap: 0.95rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid rgba(74, 55, 40, 0.18);
  padding: 0.85rem 0;
  font-family: var(--fh), Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.36;
  color: var(--primary);
  text-decoration: none;
  counter-increment: arch;
}

:root main[class]:has(>div>div>h2) > div:last-child > a:last-child {
  grid-column: 1 / -1;
}

:root main[class]:has(>div>div>h2) > div:last-child > a::before {
  content: counter(arch, upper-roman);
  flex: none;
  min-width: 2.6ch;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

:root main[class]:has(>div>div>h2) > div:last-child > a:hover {
  color: var(--accent);
  box-shadow: none;
}

/* ─── Página de artículo ─── */

:root main[class]:has(>time) {
  max-width: 820px;
}

:root main[class]:has(>time) > h1 {
  font-family: var(--fh), Georgia, serif;
  font-size: clamp(2.05rem, 4.4vw, 3.05rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--primary);
  margin: 0 0 1rem;
}

:root main[class]:has(>time) > time {
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8A7156;
  margin: 0 0 2.6rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

:root main[class]:has(>time) > time::before {
  content: "Isabela C\0000E1rdenas\0000A0\0000B7\0000A0";
  color: var(--primary);
  font-weight: 600;
}

:root main[class] > article > p {
  font-size: 1.045rem;
  line-height: 1.82;
  color: #33281E;
  max-width: 68ch;
  margin: 0 0 1.45rem;
}

:root main[class] > article > h2 {
  font-family: var(--fh), Georgia, serif;
  font-size: clamp(1.42rem, 2.4vw, 1.74rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.016em;
  color: var(--primary);
  margin: 2.9rem 0 1rem;
}

/* Dinkus entre secciones: tres capas */
:root main[class] > article > h2:not(:first-of-type)::before {
  content: "\0025C6\0025C6\0025C6";
  display: block;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 1em;
  text-indent: 1em;
  color: var(--accent);
  opacity: 0.85;
  margin: 0 0 2.5rem;
}

/* Capitular de apertura: segundo y último uso del color-momento */
:root main[class]:has(>time) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--fh), Georgia, serif;
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.78;
  color: var(--rust);
  margin: 0.2rem 0.55rem 0 0;
}

:root main[class] > article > blockquote {
  position: relative;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--primary);
  padding: 1.7rem 0 1.7rem 3.3rem;
  margin: 2.4rem 0;
}

:root main[class] > article > blockquote::before {
  content: "\00201C";
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--fh), Georgia, serif;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent);
}

:root main[class] > article img {
  border: 1px solid var(--line);
  border-radius: 2px;
  margin: 1.9rem 0;
}

:root main[class] > article > div:first-of-type {
  margin: 0 0 2.6rem;
}

/* Enlace de afiliado: ficha con borde, no texto naranja suelto */
:root main[class] > article a[href^="/best/"] {
  display: inline-block;
  background: #F8EDD8;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.06em 0.5em;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

:root main[class] > article a[href^="/best/"]::after {
  content: "\0000A0\002197";
  font-size: 0.85em;
  color: var(--accent);
}

:root main[class] > article a[href^="/best/"]:hover {
  background: var(--accent);
  color: #FFF8EC;
}

:root main[class] > article a[href^="/best/"]:hover::after {
  color: #FFF8EC;
}

/* Relacionados del artículo: la misma banda de archivo */
:root main[class]:has(>time) > div[class]:last-child::before {
  content: none;
}

:root main[class]:has(>time) > div[class]:last-child {
  background: var(--sand);
  border: none;
  border-top: 3px solid var(--primary);
  border-radius: 0;
  padding: 2.1rem 2.3rem 2.3rem;
  margin: 4rem 0 0;
  counter-reset: rel;
}

:root main[class]:has(>time) > div[class]:last-child > h3 {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.2rem;
}

:root main[class]:has(>time) > div[class]:last-child > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.3rem;
}

:root main[class]:has(>time) > div[class]:last-child > div > a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid rgba(74, 55, 40, 0.18);
  padding: 0.8rem 0;
  font-family: var(--fh), Georgia, serif;
  font-size: 1rem;
  line-height: 1.36;
  color: var(--primary);
  text-decoration: none;
  counter-increment: rel;
}

:root main[class]:has(>time) > div[class]:last-child > div > a:last-child {
  grid-column: 1 / -1;
}

:root main[class]:has(>time) > div[class]:last-child > div > a::before {
  content: counter(rel, upper-roman);
  flex: none;
  min-width: 2.6ch;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

:root main[class]:has(>time) > div[class]:last-child > div > a:hover {
  color: var(--accent);
  box-shadow: none;
}

/* ─── Páginas estáticas (acerca de / autora / privacidad) ─── */

:root main[class]:has(>article>h1) {
  max-width: 760px;
}

:root main[class]:has(>article>h1) > article > h1 {
  font-family: var(--fh), Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--primary);
  margin: 0 0 1.7rem;
}

/* ─── Pie ─── */

:root body > footer[class] {
  background: var(--primary);
  color: rgba(237, 229, 214, 0.72);
  margin-top: 4.5rem;
  padding: 2.5rem 0;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

:root body > footer[class] > div[class] {
  max-width: 1200px;
  padding: 0 1.7rem;
}

:root body > footer[class] a {
  color: var(--accent);
  text-decoration: none;
}

:root body > footer[class] a:hover {
  color: #F7F0E2;
}

/* ─── Adaptaciones ─── */

@media (max-width: 1040px) {
  :root main[class]:has(>div>div>h2) > div > div:first-of-type {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.2rem 2rem 2.4rem;
  }

  :root main[class]:has(>div>div>h2) > div > div:first-of-type::after {
    grid-column: 1;
    grid-row: auto;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 1.3rem 0 0;
    margin-top: 0.4rem;
  }

  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(n+2):nth-of-type(-n+4) {
    grid-column: span 3;
  }

  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(4) {
    margin-top: 2.7rem;
  }

  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(2)::before,
  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(5)::before {
    width: 206%;
  }
}

@media (max-width: 760px) {
  :root body > header[class] > div[class] {
    padding: 3rem 1.3rem 2.4rem;
  }

  :root main[class] {
    padding: 2.2rem 1.3rem 3rem;
  }

  :root main[class]:has(>div>div>h2) {
    padding: 0 1.3rem 1rem;
  }

  :root main[class]:has(>div>div>h2) > div:first-child {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 2.2rem;
  }

  /* `span N` crea pistas implícitas: hay que reponer cada banda a 1 / -1 */
  :root main[class]:has(>div>div>h2) > div > div,
  :root main[class]:has(>div>div>h2) > div > div:first-of-type,
  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(n+2):nth-of-type(-n+4) {
    grid-column: 1 / -1;
  }

  :root main[class]:has(>div>div>h2) > div > div:first-of-type {
    padding: 1.9rem 1.5rem 2rem;
  }

  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(2),
  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(5) {
    margin-top: 4rem;
  }

  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(3),
  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(4),
  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(6) {
    margin-top: 0;
  }

  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(2)::before,
  :root main[class]:has(>div>div>h2) > div > div:nth-of-type(5)::before {
    width: 100%;
    letter-spacing: 0.18em;
  }

  :root main[class]:has(>div>div>h2) > div:last-child,
  :root main[class]:has(>time) > div[class]:last-child > div {
    grid-template-columns: minmax(0, 1fr);
  }

  :root main[class]:has(>div>div>h2) > div:last-child {
    padding: 1.9rem 1.5rem 2rem;
  }

  :root main[class]:has(>div>div>h2) > div:first-child::after {
    min-height: 150px;
    margin: 3.6rem 0 1.2rem;
    letter-spacing: 0.24em;
  }

  :root main[class]:has(>div>div>h2) > div:last-child::before {
    min-height: 150px;
    margin: -1.9rem -1.5rem 1.4rem;
    letter-spacing: 0.24em;
  }

  :root main[class]:has(>time) > div[class]:last-child {
    padding: 1.7rem 1.5rem 1.8rem;
  }
}


/* === QA tail polish (2026-07-24T15:42:45.119644+00:00) — style Lambda [SB-20] compact tail across templates === */
/* The tail wrapper is always the LAST block child of <main> on the homepage,
   containing title-only rows of older articles. Various templates use different
   inner structures (ul>li / p / direct <a>) — this handles all three. */

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article)) {
  grid-column: 1 / -1;
  max-width: min(720px, 92vw);
  margin: 88px auto 0;
  padding: 40px 0 32px;
  border-top: 2px double rgba(0, 0, 0, .16);
  background: transparent;
  box-shadow: none;
}

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article))::before {
  content: "\2014  MORE FROM THE ARCHIVE  \2014";
  display: block;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 36px;
}

/* Any list / paragraph rows: 2-col on desktop, single on mobile */
:root main > *:last-child ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 48px;
}
@media (max-width: 899px) {
  :root main > *:last-child ul { columns: 1; }
}

:root main > *:last-child li,
:root main > *:last-child > p,
:root main > *:last-child > a {
  padding: 10px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 1px dotted rgba(0, 0, 0, .12);
  break-inside: avoid;
  display: block;
}

:root main > *:last-child li a,
:root main > *:last-child p a,
:root main > *:last-child > a {
  text-decoration: none;
  font-weight: 600;
}

:root main > *:last-child li a:hover,
:root main > *:last-child p a:hover,
:root main > *:last-child > a:hover {
  text-decoration: underline;
}

/* dates (first inline child of li/p) — subtle mono */
:root main > *:last-child p > :first-child,
:root main > *:last-child li > :first-child:not(a) {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .5;
  margin-right: 10px;
}


/* 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: M5/M6/M7 homepage card polish, photo strips, boxed archive tail */
:root main[class]:has(> div > div > h2) > div:first-child:last-child {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2.7rem 2.2rem;
  align-items: stretch;
  background: transparent;
  border-top: 0;
  padding: 0;
}

:root main[class]:has(> div > div > h2) > div > div:first-of-type,
:root main[class]:has(> div > div > h2) > div > div:nth-of-type(n+2):nth-of-type(-n+4) {
  border: 1px solid rgba(74, 55, 40, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(42, 31, 26, 0.06);
  overflow: visible;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

:root main[class]:has(> div > div > h2) > div > div:first-of-type {
  border-top: 1px solid rgba(201, 137, 58, 0.42);
}

:root main[class]:has(> div > div > h2) > div > div:nth-of-type(n+2):nth-of-type(-n+4) {
  border-top: 1px solid rgba(74, 55, 40, 0.2);
}

:root main[class]:has(> div > div > h2) > div > div:first-of-type:hover,
:root main[class]:has(> div > div > h2) > div > div:nth-of-type(n+2):nth-of-type(-n+4):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 31, 26, 0.08);
}

:root main[class]:has(> div > div > h2) > div:first-child::after,
:root main[class]:has(> div > div > h2) > div:last-child::before {
  min-height: 205px;
  border: 1px solid rgba(237, 229, 214, 0.2);
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(42, 31, 26, 0.14);
  background-color: #34261A;
  background-size: cover;
  background-repeat: no-repeat;
}

:root main[class]:has(> div > div > h2) > div:first-child::after {
  order: 1;
  margin: 4.8rem 0 1.6rem;
  background-image:
    linear-gradient(98deg, rgba(42, 31, 26, 0.86) 0%, rgba(42, 31, 26, 0.58) 54%, rgba(42, 31, 26, 0.36) 100%),
    url("/theme-assets/article-hero.jpg");
  background-position: center 32%;
}

:root main[class]:has(> div > div > h2) > div:last-child::before {
  order: 3;
  margin: 4.8rem 0 1.7rem;
  background-image:
    linear-gradient(258deg, rgba(42, 31, 26, 0.88) 0%, rgba(42, 31, 26, 0.62) 50%, rgba(42, 31, 26, 0.38) 100%),
    url("/theme-assets/article-hero.jpg");
  background-position: center 72%;
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+5):nth-of-type(-n+6) {
  order: 2;
  grid-column: span 3;
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7) {
  order: 4;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 118px;
  background: var(--panel);
  border: 1px solid rgba(74, 55, 40, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(42, 31, 26, 0.06);
  padding: 1.15rem 1.25rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 31, 26, 0.08);
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7) > p,
:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7) > a {
  display: none;
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7) > h2 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.32;
  letter-spacing: 0;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  background: transparent;
  border-top: 0;
  padding: 0;
  box-shadow: none;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > ul {
  display: contents;
  columns: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > a,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > p,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > ul > li {
  display: flex;
  align-items: flex-start;
  height: 100%;
  min-height: 84px;
  background: var(--panel);
  border: 1px solid rgba(74, 55, 40, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(42, 31, 26, 0.06);
  padding: 1.15rem 1.25rem;
  font-family: var(--fh), Georgia, serif;
  font-size: 1rem;
  line-height: 1.36;
  color: var(--primary);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > a:last-child {
  grid-column: auto;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > a:hover,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > p:hover,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > ul > li:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 31, 26, 0.08);
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > p > a,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > ul > li > a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  :root main[class]:has(> div > div > h2) > div:first-child:last-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  :root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+5):nth-of-type(-n+6),
  :root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7) {
    grid-column: 1 / -1;
  }

  :root main[class]:has(> div > div > h2) > div:first-child::after,
  :root main[class]:has(> div > div > h2) > div:last-child::before {
    min-height: 180px;
    letter-spacing: 0.22em;
  }

  :root main[class]:has(> div > div > h2) > div:first-child::after {
    margin: 3.6rem 0 1.2rem;
  }

  :root main[class]:has(> div > div > h2) > div:last-child::before {
    margin: 3.6rem 0 1.2rem;
  }

  :root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* refix iter2: keep archive strip before compact archive tail and add row label */
:root main[class]:has(> div > div > h2) > div:first-child:last-child::before {
  content: "EL ARCHIVO";
  order: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  margin: 4.8rem 0 1.7rem;
  background-color: #34261A;
  background-image:
    linear-gradient(258deg, rgba(42, 31, 26, 0.88) 0%, rgba(42, 31, 26, 0.62) 50%, rgba(42, 31, 26, 0.38) 100%),
    url("/theme-assets/article-hero.jpg");
  background-position: center 72%;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(237, 229, 214, 0.2);
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(42, 31, 26, 0.14);
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #F2E7D3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(n+7) {
  order: 5;
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(7) {
  position: relative;
  overflow: visible;
}

:root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(7)::before {
  content: "ENTRADAS ANTERIORES";
  position: absolute;
  left: 0;
  bottom: calc(100% + 1.05rem);
  width: calc(300% + 4.4rem);
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.58rem;
  pointer-events: none;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child)::before {
  order: -2;
  margin: 0 0 1.7rem;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child)::after {
  content: "ENTRADAS ANTERIORES";
  order: -1;
  grid-column: 1 / -1;
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.58rem;
  margin: 0 0 0.55rem;
}

:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > a,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > p,
:root main[class]:has(> div > div > h2) > div:last-child:not(:first-child) > ul > li {
  order: 0;
}

@media (max-width: 640px) {
  :root main[class]:has(> div > div > h2) > div:first-child:last-child::before {
    min-height: 180px;
    margin: 3.6rem 0 1.2rem;
    letter-spacing: 0.22em;
  }

  :root main[class]:has(> div > div > h2) > div:first-child:last-child > div:nth-of-type(7)::before,
  :root main[class]:has(> div > div > h2) > div:last-child:not(:first-child)::after {
    width: 100%;
    bottom: calc(100% + 0.9rem);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  :root main[class]:has(> div > div > h2) > div:last-child:not(:first-child)::before {
    margin: 0 0 1.2rem;
  }
}


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

/* ── HERO STRIPS: site-level atmospheric photos (overlay 55%) ── */
: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.55) 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.55) 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; }
}


/* premium-upgrade v4 */
/* premium-upgrade v4 — surgical bundle. Applied 2026-08-30.
   Fixes: M10 CTA / M11 dinkus leak / M4 heights / M9 typography / M5 frames.
   Kills v2 "LATEST" label (proven counterproductive from v2 diagnosis). */

/* ── Kill v2 counterproductive homepage label ── */
:root main:not(:has(> h1))::before { content: none !important; }

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* ── M11: prevent dinkus leaking onto article page's first h2 ── */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

/* ── M4: force equal-height cards via grid stretch + card fill ── */
:root main:not(:has(> h1)) > div:has(> div) {
  align-items: stretch !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
:root main:not(:has(> h1)) > div > article {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* also for flat-divs family */
:root main:not(:has(> h1)) > div {
  height: 100% !important;
}

/* ── M9: cap small-title weight so Bebas/Anton counters don't fill in ── */
:root main:not(:has(> h1)) > div > div > h2,
:root main:not(:has(> h1)) > div > div > h2 a,
:root main:not(:has(> h1)) > section > ul > li > a,
:root main:not(:has(> h1)) > div > p > a {
  font-weight: 500 !important;
}

/* ── M5: universal soft frame fallback for card-like elements ── */
:root main:not(:has(> h1)) > div > div,
:root main:not(:has(> h1)) > div > article,
:root main:not(:has(> h1)) > article {
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05) !important;
}

