*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.7;color:#111;background:#fff}
.css-r5oj0on{max-width:900px;margin:0 auto;padding:0 28px}
.css-7figlfs{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.css-7figlfs h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.css-7figlfs p{font-size:18px;opacity:.7}
.css-7figlfs a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.css-em393um{padding:0}
.css-odrf6jt{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.css-odrf6jt h2{font-size:24px;font-weight:700;margin-bottom:6px}
.css-odrf6jt h2 a{color:#111;text-decoration:none}
.css-odrf6jt h2 a:hover{text-decoration:underline}
.css-odrf6jt .css-ihz1kdt{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.css-odrf6jt p{font-size:15px;color:#444;margin-bottom:10px}
.css-oosozzi{display:inline-block;background:#111;color:#fff;padding:8px 20px;font-size:13px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:1px}
.css-oosozzi:hover{background:#333}
.css-smign3j{padding-bottom:60px}
.css-smign3j h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.css-smign3j time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.css-smign3j h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.css-smign3j h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.css-smign3j p{margin-bottom:18px;font-size:17px}
.css-smign3j ul,.css-smign3j ol{margin:0 0 18px 24px}
.css-smign3j a{color:#111;font-weight:600;text-decoration:underline}
.css-smign3j img{max-width:100%;height:auto;margin:20px 0}
.css-dggen63{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.css-dggen63 a{color:#888;text-decoration:none}
.css-b7y89yg{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.css-0kjgo7q{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.css-cytvf0d{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;letter-spacing:1px;margin:-20px 0 28px;padding-left:12px;border-left:2px solid #ccc}
.css-drhnqf0{margin:0 0 24px}
.css-z63o8pj{width:100%;height:auto;border-radius:0}
.css-dkivndi{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.css-dkivndi h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.css-dkivndi ul{list-style:none;padding:0}
.css-dkivndi li{padding:6px 0}
.css-dkivndi a{color:#111;text-decoration:underline;font-weight:600}
.css-6x57o1v{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.css-6x57o1v ul{list-style:none;padding:0}
.css-6x57o1v li{padding:6px 0;font-size:16px}
.css-6x57o1v a{color:#111;text-decoration:none;font-weight:600}
.css-6x57o1v a:hover{text-decoration:underline}
.css-6x57o1v .css-ihz1kdt{margin:0 0 0 8px}
/* === Theme === */
:root{--primary:#4A3123;--accent:#E09A3A;--bg:#EDE8E3;--fg:#2A1F1A;--border:#C6B191;--r:2px;--fb:'Nunito Sans';--fh:'Petrona'}
/* === Custom === */
/* Design reference: Catálogos de exposición del Fondo Nacional para el Fomento de las Artesanías (FONART), México, 1990-1998 | Persona: Esperanza Galván, León Guanajuato */

/* === QA round-1 fixes (2026-07-22T04:16:17+0800) === */
/*
   1. El @import quedaba tras otras reglas al concatenar site.css: inválido.
      Nunca cargaron las fuentes. Sustituido por @font-face.
   2. Fuera .bld-* / .card / .article-content: el pipeline reescribía .css-7figlfs
      sobre la cabecera (grid 1fr 1fr + logo en píldora ámbar en artículos).
      Todo se reconstruye con selectores de elemento + estructura.
   3. Portada con jerarquía: hero → banda "Selección de Esperanza" → rejilla
      cronológica → banda de archivo (el bloque suelto sobre el pie).
   Voces: Petrona (display cursiva) + Nunito Sans (texto) + Barlow Condensed
   en versalitas espaciadas (kickers). Óxido #B34F2A en dos sitios:
   capitulares y rótulo de la banda de selección.
*/

/* ─── Fuentes ─── */

@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/petrona/v38/mtG64_NXL7bZo9XXgXJYtUkS0CQ.woff2) format('woff2');
  unicode-range: U+0-FF, U+131, U+152-153, U+2013-2014, U+2018-201D, U+20AC, U+2122;
}

@font-face {
  font-family: 'Petrona';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/petrona/v38/mtG44_NXL7bZo9XXgXdot0MV8ia-Fg.woff2) format('woff2');
  unicode-range: U+0-FF, U+131, U+152-153, U+2013-2014, U+2018-201D, U+20AC, U+2122;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3bWuYMBYro.woff2) format('woff2');
  unicode-range: U+0-FF, U+131, U+152-153, U+2013-2014, U+2018-201D, U+20AC, U+2122;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuYMBYro.woff2) format('woff2');
  unicode-range: U+0-FF, U+131, U+152-153, U+2013-2014, U+2018-201D, U+20AC, U+2122;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunitosans/v19/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-tQKr51.woff2) format('woff2');
  unicode-range: U+0-FF, U+131, U+152-153, U+2013-2014, U+2018-201D, U+20AC, U+2122;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunitosans/v19/pe1kMImSLYBIv1o4X1M8cce4OdVisMz5nZRqy6cmmmU3t2FQWEAEOvV9wNvrwlNstMKW3Y6K5WMwXeVy3GboJ0kTHmqP92UnK_IWrgVcw5g.woff2) format('woff2');
  unicode-range: U+0-FF, U+131, U+152-153, U+2013-2014, U+2018-201D, U+20AC, U+2122;
}

/* ─── Paleta y voces ─── */

:root {
  --fd: 'Petrona';
  --fm: 'Barlow Condensed';
  --cocoa: #4A3123;
  --cocoa-deep: #33211A;
  --amber: #E09A3A;
  --amber-ink: #9A6714;
  --rust: #B34F2A;
  --sand: #E3D8C9;
  --line: #C6B191;
  --cream: #F5EFE6;
  --body-ink: #4C3E33;
  --knot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23E09A3A' stroke-width='4.5' stroke-linecap='round'%3E%3Cpath d='M8 20h84'/%3E%3Cpath d='M28 20V92'/%3E%3Cpath d='M72 20V92'/%3E%3Cpath d='M28 44C50 44 50 72 72 72'/%3E%3Cpath d='M28 72C50 72 50 44 72 44'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Base ─── */

body {
  font-family: var(--fb), system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.7;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fd), Georgia, 'Times New Roman', serif;
  color: var(--cocoa);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 2rem 0 0.6rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
}

h3 {
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-ink);
}

h4 {
  font-size: 1.15rem;
  color: var(--cocoa);
}

h5,
h6 {
  font-size: 1rem;
  color: var(--cocoa);
}

p {
  margin: 0 0 1.15rem;
  max-width: 72ch;
}

a {
  color: var(--cocoa);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--amber-ink);
}

ul,
ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.6rem 0;
}

::selection {
  background-color: var(--cocoa);
  color: var(--cream);
}

blockquote {
  position: relative;
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--cocoa);
  background-color: var(--sand);
  border: none;
  border-left: 3px solid var(--amber);
  margin: 2.4rem 0;
  padding: 1.3rem 1.6rem 1.3rem 3.2rem;
}

blockquote::before {
  content: "\201C ";
  position: absolute;
  left: 0.9rem;
  top: 0.55rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--amber);
}

blockquote p {
  margin-bottom: 0;
  max-width: none;
}

/* ─── Cabecera: misma identidad en portada y en artículo ─── */

body > div[class]:first-child {
  position: relative;
  overflow: hidden;
  background-color: var(--cocoa);
  background-image:
    radial-gradient(120% 150% at 12% 0%, rgba(224, 154, 58, 0.20) 0%, rgba(224, 154, 58, 0) 58%),
    linear-gradient(180deg, #543823 0%, #3B2618 100%);
  color: var(--cream);
  padding: 4.4rem 0 3.4rem;
  margin-bottom: 4rem;
  border-bottom: none;
  min-height: 0;
  display: block;
}

/* franja de red anudada al pie de la cabecera — elemento de firma */
body > div[class]:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15px;
  background-color: var(--cocoa-deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(224, 154, 58, 0.85) 0 1.5px, transparent 1.5px 11px),
    repeating-linear-gradient(-45deg, rgba(224, 154, 58, 0.85) 0 1.5px, transparent 1.5px 11px);
}

/* monograma de nudo plano */
body > div[class]:first-child::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 320px);
  width: 196px;
  height: 196px;
  margin-top: -110px;
  background: var(--knot) center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

body > div[class]:first-child > div[class] {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

body > div[class]:first-child > div[class] > h1,
body > div[class]:first-child > div[class] > a {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  text-transform: none;
  text-decoration: none;
  display: block;
  order: 1;
}

body > div[class]:first-child > div[class] > a:hover {
  color: var(--amber);
}

/* kicker de identidad, idéntico en ambos tipos de página */
body > div[class]:first-child > div[class] > h1::before,
body > div[class]:first-child > div[class] > a::before {
  content: "Le\F3 n, Guanajuato \B7  Macram\E9  y crochet";
  display: block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.95rem;
}

/* manifiesto — el ancla de personalidad que faltaba en páginas interiores */
body > div[class]:first-child > div[class]::after {
  content: "Apuntes del cuarto del segundo piso: qu\E9  nudo aguanta, qu\E9  curso vale y cu\E1 nto cobrar.";
  order: 2;
  display: block;
  max-width: 44ch;
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.45;
  color: rgba(245, 239, 230, 0.86);
  border-left: 2px solid var(--amber);
  padding-left: 0.95rem;
  margin-top: 1.15rem;
}

/* la descripción larga queda como pie discreto de la cabecera */
body > div[class]:first-child > div[class] > p {
  order: 3;
  max-width: 62ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.58);
  margin: 1.4rem 0 0;
}

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

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

main[class]:has(> div > h2) > div[class] {
  margin: 0;
  padding: 1.9rem 0 2rem;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  grid-column: span 3;
  position: relative;
}

main[class]:has(> div > h2) > div[class] > h2 {
  font-family: var(--fd), Georgia, serif;
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  margin: 0 0 0.5rem;
}

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

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

main[class]:has(> div > h2) > div[class] > p[class] {
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 0.55rem;
}

main[class]:has(> div > h2) > div[class] > p:not([class]) {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body-ink);
  max-width: 46ch;
  margin: 0 0 0.9rem;
}

main[class]:has(> div > h2) > div[class] > a[class] {
  display: inline-block;
  background: none;
  color: var(--cocoa);
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 0;
  text-decoration: none;
}

main[class]:has(> div > h2) > div[class] > a[class]::after {
  content: "Leer el apunte \2192 ";
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

main[class]:has(> div > h2) > div[class] > a[class]:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ─── Portada · el momento fuerte: la entrada destacada ─── */

main[class]:has(> div > h2) > div[class]:first-child {
  grid-column: 1 / -1;
  border-top: none;
  border-bottom: 2px solid var(--cocoa);
  padding: 0 0 3rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.5rem;
  column-gap: 3.5rem;
}

main[class]:has(> div > h2) > div[class]:first-child > p[class] {
  grid-column: 1 / -1;
  grid-row: 1;
  max-width: none;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: var(--cocoa);
  border-top: 3px solid var(--cocoa);
  padding-top: 0.8rem;
  margin: 0 0 1.4rem;
}

main[class]:has(> div > h2) > div[class]:first-child > p[class]::before {
  content: "\DA ltima entrada \B7  ";
  color: var(--amber-ink);
}

main[class]:has(> div > h2) > div[class]:first-child > h2 {
  grid-column: 1;
  grid-row: 2;
  font-style: italic;
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 1.1rem;
}

main[class]:has(> div > h2) > div[class]:first-child > p:not([class]) {
  grid-column: 1;
  grid-row: 3;
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--body-ink);
  max-width: 48ch;
  margin: 0 0 1.7rem;
}

/* capitular en óxido — uso 1 de 2 del color de momento */
main[class]:has(> div > h2) > div[class]:first-child > p:not([class])::first-letter {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 700;
  float: left;
  font-size: 3.5em;
  line-height: 0.76;
  margin: 0.06em 0.1em 0 0;
  color: var(--rust);
}

main[class]:has(> div > h2) > div[class]:first-child > a[class] {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  align-self: start;
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.62rem 1.6rem;
}

main[class]:has(> div > h2) > div[class]:first-child > a[class]::after {
  content: "Leer el apunte completo \2192 ";
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

main[class]:has(> div > h2) > div[class]:first-child > a[class]:hover {
  background-color: var(--cocoa);
  color: var(--cream);
  border-color: var(--cocoa);
}

/* columna derecha del hero: cita y firma, para que la fila no quede coja */
main[class]:has(> div > h2) > div[class]:first-child::after {
  content: "\AB El nudo se aprende en una tarde. Cobrarlo bien me llev\F3  cinco a\F1 os.\BB ";
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: start;
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.42;
  color: var(--cocoa);
  border-top: 2px solid var(--amber);
  padding-top: 1rem;
}

main[class]:has(> div > h2) > div[class]:first-child::before {
  content: "Esperanza Galv\E1 n\A Taller en Le\F3 n, Gto.";
  white-space: pre-line;
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--amber-ink);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

/* ─── Portada · segundo tiempo: banda de selección (2.ª–4.ª entrada) ─── */

main[class]:has(> div > h2) > div[class]:nth-child(n+2):nth-child(-n+4) {
  grid-column: span 2;
  background-color: var(--sand);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cocoa);
  padding: 1.5rem 1.4rem 1.6rem;
  margin-bottom: 4rem;
}

main[class]:has(> div > h2) > div[class]:nth-child(n+2):nth-child(-n+4) > h2 {
  font-size: 1.24rem;
}

main[class]:has(> div > h2) > div[class]:nth-child(n+2):nth-child(-n+4) > p:not([class]) {
  font-size: 0.88rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

main[class]:has(> div > h2) > div[class]:nth-child(n+2):nth-child(-n+4) > a[class] {
  display: none;
}

/* rótulo de la banda — uso 2 de 2 del óxido */
main[class]:has(> div > h2) > div[class]:nth-child(2)::before {
  content: "Selecci\F3 n de Esperanza \2014  empieza por aqu\ED ";
  position: absolute;
  left: 0;
  top: -3.1rem;
  width: calc(300% + 5rem);
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 2px solid var(--rust);
  padding-bottom: 0.5rem;
}

/* si la última entrada cronológica quedara sola en su fila, ocupa el ancho */
main[class]:has(> div > h2) > div[class]:nth-child(n+5):nth-child(odd):nth-last-child(2) {
  grid-column: 1 / -1;
}

/* ─── Portada · banda de archivo (el bloque suelto sobre el pie) ─── */

main[class]:has(> div > h2) > div[class]:last-child:has(> ul) {
  grid-column: 1 / -1;
  margin: 2.5rem 0 0;
  padding: 1.6rem 0 0;
  border: none;
  border-top: 2px solid var(--cocoa);
}

main[class]:has(> div > h2) > div[class]:last-child:has(> ul)::before {
  content: "Del archivo \2014  entradas anteriores";
  display: block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin-bottom: 1rem;
}

main[class]:has(> div > h2) > div[class]:last-child:has(> ul) ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}

main[class]:has(> div > h2) > div[class]:last-child:has(> ul) li {
  break-inside: avoid;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

main[class]:has(> div > h2) > div[class]:last-child:has(> ul) a {
  font-family: var(--fd), Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cocoa);
  text-decoration: none;
}

main[class]:has(> div > h2) > div[class]:last-child:has(> ul) a:hover {
  color: var(--amber-ink);
  text-decoration: underline;
}

main[class]:has(> div > h2) > div[class]:last-child:has(> ul) li > span[class] {
  display: inline-block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-left: 0.6rem;
}

/* ─── Artículo: cabecera del texto ─── */

main[class]:has(> article) > hgroup {
  display: block;
  margin: 0 0 2.4rem;
  border-top: 3px solid var(--cocoa);
  padding-top: 0.9rem;
}

main[class]:has(> article) > hgroup::before {
  content: "Apunte del taller";
  display: block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 1rem;
}

main[class]:has(> article) > hgroup > h1,
main[class]:has(> article) > article > h1 {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--cocoa);
  text-transform: none;
  margin: 0 0 0.9rem;
}

main[class]:has(> article) > hgroup > time {
  display: block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0;
}

main[class]:has(> article) > hgroup::after {
  content: "Por Esperanza Galv\E1 n \B7  Le\F3 n, Guanajuato";
  display: block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cocoa);
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
  padding-top: 0.7rem;
}

/* ─── Artículo: cuerpo ─── */

main[class]:has(> article) > article > p {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--body-ink);
  margin: 0 0 1.35rem;
  max-width: 68ch;
}

main[class]:has(> hgroup) > article > p:first-of-type {
  font-size: 1.16rem;
  line-height: 1.66;
  color: var(--fg);
}

/* capitular de entrada, mismo gesto que en portada */
main[class]:has(> hgroup) > article > p:first-of-type::first-letter {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 700;
  float: left;
  font-size: 3.4em;
  line-height: 0.76;
  margin: 0.06em 0.1em 0 0;
  color: var(--rust);
}

main[class]:has(> article) > article > h2 {
  font-family: var(--fd), Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--cocoa);
  text-transform: none;
  margin: 3.2rem 0 1rem;
}

/* dinkus entre secciones */
main[class]:has(> article) > article > h2::before {
  content: "\2726  \2726  \2726 ";
  display: block;
  text-align: center;
  font-family: var(--fb), sans-serif;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.9em;
  text-indent: 0.9em;
  color: var(--amber);
  margin-bottom: 1.9rem;
}

main[class]:has(> article) > article > h3 {
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 2.2rem 0 0.6rem;
}

main[class]:has(> article) > article > ul,
main[class]:has(> article) > article > ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
  max-width: 68ch;
  color: var(--body-ink);
}

main[class]:has(> article) > article > ul > li,
main[class]:has(> article) > article > ol > li {
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
  line-height: 1.7;
}

main[class]:has(> article) > article > ul > li::marker {
  color: var(--amber);
}

main[class]:has(> article) > article a {
  color: var(--cocoa);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

/* índice de contenidos */
main[class]:has(> article) > article > nav {
  background-color: var(--sand);
  border-left: 3px solid var(--cocoa);
  padding: 1.2rem 1.4rem 1.1rem;
  margin: 0 0 2.4rem;
  max-width: 68ch;
}

main[class]:has(> article) > article > nav::before {
  content: "En esta p\E1 gina";
  display: block;
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 0.7rem;
}

main[class]:has(> article) > article > nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

main[class]:has(> article) > article > nav li {
  margin: 0;
  padding: 0.25rem 0;
}

main[class]:has(> article) > article > nav a {
  font-family: var(--fd), Georgia, serif;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

main[class]:has(> article) > article > nav a:hover {
  border-bottom-color: var(--amber);
}

/* ─── Artículo: tabla de glosario ─── */

main[class]:has(> article) > article > table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0 2.4rem;
  font-size: 0.94rem;
  line-height: 1.55;
  background-color: rgba(255, 255, 255, 0.42);
}

main[class]:has(> article) > article > table th {
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
  color: var(--cream);
  background-color: var(--cocoa);
  padding: 0.7rem 0.85rem;
}

main[class]:has(> article) > article > table td {
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--body-ink);
}

main[class]:has(> article) > article > table tr:nth-child(even) td {
  background-color: rgba(198, 177, 145, 0.14);
}

main[class]:has(> article) > article > table td:first-child {
  font-family: var(--fd), Georgia, serif;
  font-size: 1.02rem;
  color: var(--cocoa);
}

main[class]:has(> article) > article > table td:first-child strong {
  font-weight: 600;
}

main[class]:has(> article) > article > table a {
  font-weight: 400;
  text-decoration-thickness: 1px;
}

/* ─── Artículo: bloque de relacionados ─── */

main[class]:has(> article) > div[class] {
  border: none;
  border-top: 2px solid var(--cocoa);
  background-color: var(--sand);
  padding: 1.5rem 1.6rem 1.4rem;
  margin-top: 3.5rem;
}

main[class]:has(> article) > div[class] > h3 {
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin: 0 0 0.9rem;
}

main[class]:has(> article) > div[class] li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(198, 177, 145, 0.6);
  margin: 0;
}

main[class]:has(> article) > div[class] li:last-child {
  border-bottom: none;
}

main[class]:has(> article) > div[class] a {
  font-family: var(--fd), Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cocoa);
  text-decoration: none;
}

main[class]:has(> article) > div[class] a:hover {
  color: var(--amber-ink);
  text-decoration: underline;
}

/* ─── Pie ─── */

body > footer[class] {
  position: relative;
  background-color: var(--cocoa-deep);
  color: rgba(245, 239, 230, 0.7);
  padding: 3rem 0 2.6rem;
  margin-top: 5rem;
  font-size: 0.8rem;
  border-top: none;
}

body > footer[class]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 15px;
  background-image:
    repeating-linear-gradient(45deg, rgba(224, 154, 58, 0.7) 0 1.5px, transparent 1.5px 11px),
    repeating-linear-gradient(-45deg, rgba(224, 154, 58, 0.7) 0 1.5px, transparent 1.5px 11px);
}

body > footer[class] > div[class] {
  max-width: 1120px;
}

body > footer[class] p {
  font-family: var(--fm), 'Arial Narrow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: none;
  margin: 0;
}

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

body > footer[class] a:hover {
  color: var(--cream);
  text-decoration: underline;
}

body > footer[class]::after {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 1.4rem auto 0;
  background: var(--knot) center / contain no-repeat;
  opacity: 0.75;
}

/* ─── Adaptación ─── */

@media (max-width: 1180px) {
  body > div[class]:first-child::after {
    display: none;
  }
}

@media (max-width: 1000px) {
  main[class]:has(> div > h2) {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  main[class]:has(> div > h2) > div[class] {
    grid-column: span 1;
  }

  main[class]:has(> div > h2) > div[class]:first-child,
  main[class]:has(> div > h2) > div[class]:nth-child(n+2):nth-child(-n+4),
  main[class]:has(> div > h2) > div[class]:last-child:has(> ul),
  main[class]:has(> div > h2) > div[class]:nth-child(n+5):nth-child(odd):nth-last-child(2) {
    grid-column: 1 / -1;
  }

  main[class]:has(> div > h2) > div[class]:nth-child(n+2):nth-child(-n+4) {
    margin-bottom: 1.2rem;
  }

  main[class]:has(> div > h2) > div[class]:nth-child(4) {
    margin-bottom: 3.5rem;
  }

  main[class]:has(> div > h2) > div[class]:nth-child(2)::before {
    width: 100%;
  }
}

@media (max-width: 860px) {
  body > div[class]:first-child {
    padding: 3rem 0 2.6rem;
    margin-bottom: 2.6rem;
  }

  main[class]:has(> div > h2) {
    padding: 0 22px 3rem;
  }

  main[class]:has(> div > h2) > div[class]:first-child {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 2.2rem;
    margin-bottom: 3.4rem;
  }

  main[class]:has(> div > h2) > div[class]:first-child > h2,
  main[class]:has(> div > h2) > div[class]:first-child > p:not([class]),
  main[class]:has(> div > h2) > div[class]:first-child > a[class],
  main[class]:has(> div > h2) > div[class]:first-child::before,
  main[class]:has(> div > h2) > div[class]:first-child::after {
    grid-column: 1;
  }

  main[class]:has(> div > h2) > div[class]:first-child > h2 {
    grid-row: 2;
  }

  main[class]:has(> div > h2) > div[class]:first-child > p:not([class]) {
    grid-row: 3;
  }

  main[class]:has(> div > h2) > div[class]:first-child > a[class] {
    grid-row: 4;
  }

  main[class]:has(> div > h2) > div[class]:first-child::after {
    grid-row: 5;
    margin-top: 1.8rem;
  }

  main[class]:has(> div > h2) > div[class]:first-child::before {
    grid-row: 6;
    margin-top: 1.3rem;
  }
}

@media (max-width: 700px) {
  main[class]:has(> div > h2) {
    grid-template-columns: minmax(0, 1fr);
  }

  main[class]:has(> div > h2) > div[class],
  main[class]:has(> div > h2) > div[class]:nth-child(n+5):nth-child(odd):nth-last-child(2) {
    grid-column: 1;
  }

  main[class]:has(> div > h2) > div[class]:last-child:has(> ul) ul {
    columns: 1;
  }

  main[class]:has(> div > h2) > div[class]:nth-child(2)::before {
    letter-spacing: 0.18em;
    font-size: 0.74rem;
  }

  /* glosario: cada fila pasa a ficha legible en lugar de columnas estrechas */
  main[class]:has(> article) > article > table,
  main[class]:has(> article) > article > table tbody,
  main[class]:has(> article) > article > table tr,
  main[class]:has(> article) > article > table td {
    display: block;
    width: auto;
  }

  main[class]:has(> article) > article > table thead {
    display: none;
  }

  main[class]:has(> article) > article > table {
    background: none;
  }

  main[class]:has(> article) > article > table tr {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cocoa);
    padding: 0.9rem 1rem;
    margin-bottom: 0.9rem;
  }

  main[class]:has(> article) > article > table tr:nth-child(even) td {
    background: none;
  }

  main[class]:has(> article) > article > table td {
    border-bottom: none;
    padding: 0.2rem 0;
  }

  main[class]:has(> article) > article > table td:first-child {
    font-size: 1.12rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.5rem;
    margin-bottom: 0.55rem;
  }

  main[class]:has(> article) > article > table td:last-child {
    font-family: var(--fm), 'Arial Narrow', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-ink);
    margin-top: 0.5rem;
  }
}


/* === QA tail polish (2026-07-24T15:39:45.864863+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;
}
