/* querencialoscabos.com (sites/historia): perfil expediente (.claude/skills/ui-taste/profiles/expediente.md)
   Design read: expediente de un caso judicial para lectores en México y EE. UU., periodistas y motores de IA; dossier
   confidencial en blanco y negro, papel y tinta, documento antes que campaña; HTML + CSS nativo, sin JS.
   Dials: DESIGN_VARIANCE 4 · MOTION_INTENSITY 1 · VISUAL_DENSITY 4
   Paleta (Emmanuel, 2026-10-12): la interfaz solo en blanco, negro y grises, sin acentos de color, resplandores ni
   degradados; las fotos del lugar van a color (lo único con color en la página). Base clara (papel) y modo oscuro por
   prefers-color-scheme con los mismos tokens; todo texto en AA (ver contrastes junto a cada token).
   Limpieza (Emmanuel, 2026-10-12 noche): sin chips de tipo ni de formato, sin índice "En esta página" ni anclas #
   generadas por la plantilla (solo "Ir al contenido"), sin bloque "Sobre este sitio" de plantilla.
   Tipografía editorial: titulares en serif del sistema (cero bytes), cuerpo y UI en Geist, números de índice y fechas en Geist
   Mono, cifras de línea. Forma: esquinas rectas en todo (botones, selector, paneles); hairlines; sin sombras.
   Estados funcionales en gris: hover = subrayado o inversión tinta/papel; foco = contorno de tinta de 2 px.
   Navegación: el selector ES|EN va dentro del menú principal, al final a la derecha (y al final del menú móvil).
   Menú móvil: <details>/<summary>, sin JS. Motion: solo :hover/:focus, apagado con prefers-reduced-motion.
   Ícono de reloj: Phosphor "Clock" (MIT), en línea en los parciales, aria-hidden. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* base clara: papel y tinta (contrastes sobre --bg / --surface) */
  --bg: #fafafa;
  --surface: #f0f0f0;
  --surface-2: #e4e4e4;
  --ink: #141414;             /* 17.6:1 */
  --ink-max: #000000;
  --ink-2: #4d4d4d;           /* 8.1:1 · 7.3:1 */
  --rule: #d6d6d6;            /* filete decorativo */
  --rule-label: #6b6b6b;      /* 5.1:1 · 4.7:1 (también texto: contadores del índice) */

  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Heading", "Sitka Text", Cambria, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --col-gap: clamp(1.75rem, 3vw, 2.75rem);
  --band: clamp(2.5rem, 5vw, 4rem);
  --ease: 160ms cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --surface: #151515;
    --surface-2: #202020;
    --ink: #e8e8e8;           /* 15.9:1 */
    --ink-max: #ffffff;
    --ink-2: #a6a6a6;         /* 8.1:1 · 7.5:1 */
    --rule: #2e2e2e;
    --rule-label: #8c8c8c;    /* 5.9:1 · 5.4:1 */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink-max); color: var(--bg); }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-max); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink-max); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.ico { flex: none; width: 0.95em; height: 0.95em; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--ink-max); color: var(--bg); padding: 0.5rem 0.75rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 30; }

.staging {
  margin: 0; padding: 0.4rem var(--gutter);
  background: var(--ink-max); color: var(--bg);
  font: 500 0.75rem/1.4 var(--mono);
}

/* Marcadores sin resolver: visibles a propósito (borde punteado, sin color). --release falla si queda uno. */
mark.pendiente {
  background: var(--surface); color: var(--ink-max);
  outline: 1px dashed var(--ink-2); outline-offset: -1px;
  font: 500 0.82em/1.3 var(--mono);
  padding: 0.05em 0.3em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- piezas de forma ---------- */
/* Etiqueta en recuadro de tinta apoyada sobre una regla que cruza la columna (pestaña de expediente) */
.label {
  margin: 0 0 1.25rem; border-bottom: 1px solid var(--ink-max);
  font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.label > span, .label > a {
  display: inline-block; padding: 0.45rem 0.6rem 0.4rem;
  background: var(--ink-max); color: var(--bg); text-decoration: none;
}
.label > a:hover { color: var(--bg); text-decoration: underline; }

/* Botón recto con flecha en recuadro; hover = inversión tinta/papel */
.pill {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.4rem 0.45rem 0.4rem 1rem;
  background: var(--ink-max); color: var(--bg); border: 1px solid var(--ink-max);
  font: 500 0.875rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.pill:hover { color: var(--ink-max); background: var(--bg); }
.pill__arrow {
  display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem;
  border: 1px solid currentColor; font-size: 0.875rem; line-height: 1;
  transition: transform var(--ease);
}
.pill:hover .pill__arrow, .pill:focus-visible .pill__arrow { transform: translateX(2px); }

/* ---------- cabecera ---------- */
.masthead { position: relative; z-index: 20; border-top: 4px solid var(--ink-max); border-bottom: 1px solid var(--ink-max); background: var(--bg); }
/* barra de utilidades (prensa, contacto): solo existe si el build le da enlaces */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar:not(:has(.util a)) { display: none; }
.topbar__in { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; }
.util { display: flex; align-items: center; gap: 1.25rem; min-height: 2.5rem; font-size: 0.75rem; }
.util:empty { display: none; }
.util a { color: var(--ink-2); text-decoration: none; }
.util a:hover { color: var(--ink-max); text-decoration: underline; }

.mainbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2rem;
  min-height: 4.25rem;
}
.brand {
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1.1;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--ink-2);
}
.brand:hover { color: var(--ink-2); }
.brand__key { color: var(--ink-max); font-weight: 800; }
.sections { justify-self: end; }
.sections__list { display: flex; align-items: center; gap: clamp(1rem, 1.7vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.sections__list > li > a {
  display: block; padding-block: 0.5rem; color: var(--ink); text-decoration: none;
  font-size: 0.875rem; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.sections__list > li > a:hover { color: var(--ink-max); border-bottom-color: var(--rule-label); }
.sections__list > li > a[aria-current="page"] { color: var(--ink-max); border-bottom-color: var(--ink-max); }

/* selector de idioma: último elemento del menú principal, separado por un filete; control segmentado recto */
.nav-lang:has(.lang-switch:empty) { display: none; }
.sections .nav-lang { padding-left: clamp(1rem, 1.7vw, 1.6rem); border-left: 1px solid var(--rule); }
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--ink-max);
  font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.08em;
}
.lang-switch > * { display: inline-grid; place-items: center; min-width: 2.5rem; min-height: 2rem; padding: 0 0.6rem; }
.lang-switch a { color: var(--ink); text-decoration: none; transition: color var(--ease), background-color var(--ease); }
.lang-switch a:hover { color: var(--ink-max); background: var(--surface-2); text-decoration: underline; }
.lang-switch__on { background: var(--ink-max); color: var(--bg); }

/* menú móvil sin JS: <details>; en escritorio no existe */
.menu { display: none; }
.menu__btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem 0.5rem 0.8rem; min-height: 2.75rem;
  border: 1px solid var(--ink-max); cursor: pointer; list-style: none;
  font: 500 0.875rem/1 var(--sans); color: var(--ink-max);
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__icon { position: relative; width: 1rem; height: 0.6rem; border-block: 1.5px solid currentColor; transition: border-color var(--ease); }
.menu__icon::before, .menu__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor;
  transform: scaleX(0); transition: transform var(--ease);
}
.menu[open] .menu__icon { border-color: transparent; }
.menu[open] .menu__icon::before { transform: rotate(45deg); }
.menu[open] .menu__icon::after { transform: rotate(-45deg); }
.menu[open] .menu__btn { background: var(--ink-max); color: var(--bg); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--ink-max);
}
.menu__list { margin: 0 auto; padding: 0.5rem var(--gutter) 1rem; list-style: none; max-width: 76rem; }
.menu__list li { border-bottom: 1px solid var(--rule); }
.menu__list li:last-child { border-bottom: 0; }
.menu__list > li > a {
  display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem;
  font-size: 1.125rem; font-weight: 500; color: var(--ink-max); text-decoration: none;
}
.menu__list > li > a::after { content: "→"; font-size: 0.95rem; color: var(--ink-2); }
.menu__list > li > a[aria-current="page"] { padding-left: 0.75rem; border-left: 4px solid var(--ink-max); }
.menu__list > li > a[aria-current="page"]::after { color: var(--ink-max); }
.menu__list .nav-lang { display: flex; justify-content: flex-end; padding-top: 1rem; border-bottom: 0; }
.menu__list .lang-switch { font-size: 0.8125rem; }
.menu__list .lang-switch > * { min-width: 3.25rem; min-height: 2.75rem; }

/* ---------- arte del lugar, a color (sin crédito ni etiqueta: decisión 2026-10-10) ---------- */
.art, .entry__art { margin: 0; }
.art__frame, .entry__frame { position: relative; overflow: hidden; background: var(--surface); }
.art img, .entry__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- línea de meta ---------- */
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  margin: 0 0 1.1rem; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.meta__by { color: var(--ink-max); }
.meta__dates { display: inline-flex; align-items: center; gap: 0.45rem; }

/* ---------- tarjetas (base) ---------- */
.entry__title {
  margin: 0 0 0.9rem; font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; line-height: 1.15;
  text-wrap: balance; color: var(--ink-max);
}
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; color: inherit; }
.entry__lead {
  margin: 0; max-width: var(--measure); line-height: 1.6; overflow-wrap: break-word; color: var(--ink-2); font-size: 0.9375rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.entry__more { margin: 1.5rem 0 0; }
.entry__art img { transition: transform 400ms cubic-bezier(0.2, 0, 0, 1); }
.entry:has(.entry__title a:hover) .entry__art img, .entry:has(a:focus-visible) .entry__art img { transform: scale(1.02); }

/* ---------- portada ---------- */
.band { position: relative; border-top: 1px solid var(--rule); }
.hero { border-top: 0; padding-block: clamp(1.75rem, 3.5vw, 2.75rem) var(--band); }

.hero__in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start;
}
.nameplate {
  grid-column: 1 / -1; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: clamp(2.25rem, 5.4vw, 4.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.025em;
  color: var(--ink-max); text-wrap: balance;
}
.hero__label { grid-column: 1 / span 8; margin-bottom: 0; }
.hero__feature { grid-column: 1 / span 8; grid-row: 3; padding-right: var(--col-gap); border-right: 1px solid var(--rule); padding-top: 1.5rem; }
.side {
  grid-column: 9 / -1; grid-row: 2 / span 2; padding-left: var(--col-gap);
  display: grid; gap: 2.25rem; align-content: start; align-self: start; position: sticky; top: 1.5rem;
}
.side:empty { display: none; }
.hero__in:has(.side:empty) .hero__feature { grid-column: 1 / -1; padding-right: 0; border-right: 0; }

/* destacado: panel con titular grande y la foto debajo */
.entry--feature { display: flex; flex-direction: column-reverse; }
.entry--feature .entry__text { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 2px solid var(--ink-max); }
.entry--feature .entry__title { font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.entry--feature .entry__lead { font-size: 1rem; color: var(--ink); -webkit-line-clamp: 4; }
.entry--feature .entry__art { display: flex; flex-direction: column; }

/* columna lateral: lista con separadores */
.side-block .label { margin-bottom: 0.25rem; }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list > li { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.side-list > li:last-child { border-bottom: 0; }

.upd { display: grid; gap: 0.45rem; }
.upd__title { font-weight: 500; line-height: 1.32; text-decoration: none; color: var(--ink-max); text-wrap: pretty; }
.upd__title:hover { text-decoration: underline; color: var(--ink-max); }
.upd__dek { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.upd__dek:empty { display: none; }
.upd__date { margin: 0.15rem 0 0; display: flex; align-items: center; gap: 0.45rem; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

.doc-item__title { display: block; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; text-decoration: none; color: var(--ink-max); text-wrap: pretty; }
.doc-item__title:hover { text-decoration: underline; }

/* contexto: foto | resumen citable; debajo, las secciones del draft a dos columnas con filete vertical, a todo lo ancho
   (la posición de la contraparte con el mismo peso que las actuaciones) */
.context { padding-block: var(--band); }
.context__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; row-gap: var(--band); }
.front__intro { display: contents; }
.context .art { grid-column: 1 / span 6; grid-row: 1; padding-right: var(--col-gap); }
.context .lead {
  grid-column: 7 / -1; grid-row: 1; align-self: center; padding-left: var(--col-gap);
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--ink-max);
}
.context__in:not(:has(> .art)) .lead { grid-column: 1 / span 9; padding-left: 0; }
.context .prose {
  grid-column: 1 / -1; grid-row: 2; max-width: none;
  columns: 2; column-gap: calc(2 * var(--col-gap)); column-rule: 1px solid var(--rule); font-size: 1rem; line-height: 1.65;
}
.context .prose > * { break-inside: avoid; }
.context .prose h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.3rem; }
.context .prose > h2 ~ h2 { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.context .prose > h2 ~ h2:nth-of-type(2) { break-before: column; margin-top: 0; padding-top: 0; border-top: 0; }
.context .prose > h2 + * { margin-top: 0.75em; }
/* más piezas: la primera, panel ancho con foto y texto; el resto, rejilla de dos columnas al ancho completo con filete vertical */
.more { padding-block: var(--band) 0; }
.more__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(2 * var(--col-gap)); }
.more__in > .entry { position: relative; padding-bottom: 2rem; }
.more__in > .entry:not(:first-child)::before {   /* filete vertical entre columnas, en el centro del gap */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--col-gap)); border-left: 1px solid var(--rule);
}
.more__in > .entry:nth-child(even)::before { display: none; }   /* dos columnas bajo el panel: sin filete en la primera */
.more__in > .entry:not(:first-child) { margin-top: var(--band); }
.more__in > .entry:not(:first-child) .entry__art { margin-bottom: 1.25rem; }
.more__in > .entry:not(:first-child) .entry__title { font-size: 1.25rem; }
.more__in > .entry:not(:first-child) .meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.more__in > .entry:not(:first-child) .entry__more { display: none; }

.more__in > .entry:first-child {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--rule); border-top: 2px solid var(--ink-max); background: var(--surface);
}
.more__in > .entry:first-child .entry__text { padding-left: var(--col-gap); }
.more__in > .entry:first-child .entry__title { font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.1; letter-spacing: -0.02em; }
.more__in > .entry:first-child .entry__lead { color: var(--ink); -webkit-line-clamp: 6; }
.more__in > .entry:first-child .entry__frame img { aspect-ratio: 16 / 10; }

/* ---------- documento (nota, cronología): una sola columna de lectura; cabeza, foto y texto alineados ---------- */
.doc { max-width: 52rem; padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.doc__head { padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.doc > .art { margin-bottom: clamp(2rem, 4vw, 3rem); }
.doc > .prose { border-top: 1px solid var(--rule); padding-top: clamp(2rem, 4vw, 2.75rem); }
.doc > .art + .prose { border-top: 0; padding-top: 0; }
.doc__head h1 {
  margin: 0 0 1.4rem; color: var(--ink-max);
  font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead { margin: 0; max-width: var(--measure); font-size: 1.0625rem; line-height: 1.65; }

.prose { max-width: calc(var(--measure) + var(--col-gap)); font-size: 1.0625rem; line-height: 1.72; }
.prose, .lead, .entry__lead { overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2, .prose h3 { color: var(--ink-max); line-height: 1.2; text-wrap: balance; scroll-margin-top: 1.5rem; }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.012em; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--ink-max); }
.prose h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 2rem; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.45em; }
.prose ol > li::marker { font: 500 0.85em var(--mono); color: var(--ink-2); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--ink-max); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5rem; }
.prose em { color: var(--ink-2); }
.prose strong { color: var(--ink-max); font-weight: 600; }

.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.prose th { text-align: left; font: 600 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--ink-max); padding: 0.5rem 0.75rem 0.5rem 0; }
.prose td { vertical-align: top; border-bottom: 1px solid var(--rule); padding: 0.75rem 0.75rem 0.75rem 0; }

/* ---------- cronología ---------- */
.prose .timeline { list-style: none; padding: 0; margin-top: 2rem; }
.prose .timeline li + li { margin-top: 0; }
.tl-item {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0 1.75rem;
  padding: 1.25rem 0; border-top: 1px solid var(--rule);
}
.tl-when { margin: 0; font: 500 0.8125rem/1.55 var(--mono); letter-spacing: 0.02em; color: var(--ink-2); }
.tl-what > p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.tl-meta { margin: 0.75rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); display: grid; gap: 0.25rem; }
.tl-meta div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; }
.tl-meta dt { font: 500 0.6875rem/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.tl-meta dd { margin: 0; }
/* tipo de fuente: el texto siempre está en .tl-meta; la marca (forma, no color) solo lo refuerza */
.tl-when::before {
  content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.6rem; vertical-align: 0.05em;
  border: 1.5px solid var(--ink-2); border-radius: 50%;
}
.tl-item[data-tipo^="documento-oficial"] .tl-when::before { background: var(--ink-max); border-color: var(--ink-max); }
.tl-item[data-tipo^="segun"] .tl-when::before { border-style: dashed; }

/* ---------- índice por secciones (tarjetas h1 + lead del draft) y mapa del sitio ---------- */
.index { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.home .index { margin-top: var(--band); padding-bottom: 0; }
.idx-group + .idx-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.idx-group__title {
  margin: 0 0 0.25rem; padding-top: 1rem; border-top: 2px solid var(--ink-max);
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
  color: var(--ink-max); text-wrap: balance;
}
.idx-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(2 * var(--col-gap)); margin: 0; padding: 0; list-style: none;
}
.idx { position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding-block: 1.4rem 1.5rem; border-bottom: 1px solid var(--rule); }
.idx::before {   /* filete vertical entre columnas, en el centro del gap */
  content: ""; position: absolute; top: 1.4rem; bottom: 1.5rem; left: calc(-1 * var(--col-gap)); border-left: 1px solid var(--rule);
}
.idx:nth-child(3n + 1)::before { display: none; }
.idx__title { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.idx__title a { color: var(--ink-max); text-decoration: none; }
.idx__title a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es el enlace a la página dedicada */
.idx__title a:hover { text-decoration: underline; }
.idx:has(a:focus-visible) { outline: 2px solid var(--ink-max); outline-offset: -2px; }
.idx__title a:focus-visible { outline: 0; }
.idx__lead {
  margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.idx__arrow { margin-top: auto; padding-top: 0.25rem; font-size: 0.95rem; color: var(--ink-2); transition: transform var(--ease), color var(--ease); }
.idx:hover .idx__arrow, .idx:has(a:focus-visible) .idx__arrow { transform: translateX(3px); color: var(--ink-max); }

.site-footer .site-map { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.site-map__title { margin: 0 0 1.25rem; font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-max); }
.site-map__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 13rem)); justify-content: start; gap: 1.25rem calc(2 * var(--col-gap)); }
.site-map__head { margin: 0 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink-max); font: 600 0.9375rem/1.3 var(--serif); }
.site-map__head a { color: var(--ink-max); text-decoration: none; }
.site-map__head a:hover { text-decoration: underline; }
.site-map__list { margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.4; }
.site-map__list li + li { margin-top: 0.3rem; }
.site-map__list a { color: var(--ink-2); text-decoration: none; text-wrap: pretty; }
.site-map__list a:hover { color: var(--ink-max); text-decoration: underline; }

/* ---------- pie ---------- */
.site-footer { border-top: 4px solid var(--ink-max); margin-top: 6rem; padding-block: 2rem 2.75rem; }
.home + .site-footer { margin-top: var(--band); }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.brand--small { font-size: 0.875rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.site-footer__nav a { color: var(--ink-2); text-decoration: none; }
.site-footer__nav a:hover { color: var(--ink-max); text-decoration: underline; }

/* autoría (#7) y buzón de réplica (E-1): los pone el build desde site.toml */
.authorship > * { margin: 0; }
.authorship > * + * { margin-top: 0.4em; }
.site-footer .authorship { flex-basis: 100%; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.authorship a { color: inherit; }

/* ---------- responsive ---------- */
/* la navegación de escritorio (seis secciones + ES|EN) necesita ~72rem; debajo, menú */
@media (max-width: 1180px) {
  .sections { display: none; }
  .menu { display: block; justify-self: end; }
  .mainbar { gap: 1rem; min-height: 3.75rem; }
}
@media (max-width: 1080px) {
  .site-map__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__label, .hero__feature, .side { grid-column: 1 / -1; grid-row: auto; }
  .hero__feature { padding-right: 0; border-right: 0; }
  .side { position: static; padding-left: 0; margin-top: var(--band); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }

  .context .art { grid-column: 1 / span 6; }
}
@media (max-width: 900px) {
  .context .art, .context .lead { grid-column: 1 / -1; padding: 0; }
  .context .lead { grid-row: 2; }
  .context .prose { grid-row: 3; }
  .context__in { row-gap: 2.25rem; }

  .idx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx:nth-child(2n)::before { display: block; }
  .idx:nth-child(2n + 1)::before { display: none; }
  .more__in > .entry:first-child { grid-template-columns: minmax(0, 1fr); }
  .more__in > .entry:first-child .entry__text { padding-left: 0; padding-top: 1.75rem; }
}
@media (max-width: 640px) {
  .brand { font-size: 0.875rem; letter-spacing: 0.06em; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .nameplate { font-size: clamp(2.1rem, 10.5vw, 2.75rem); }
  .entry--feature .entry__text { padding: 1.25rem; }
  .doc > .art { margin-inline: calc(-1 * var(--gutter)); }
  .context .prose { columns: 1; }
  .context .prose > h2 ~ h2:nth-of-type(2) { break-before: auto; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
  .more__in { grid-template-columns: minmax(0, 1fr); }
  .idx-grid { grid-template-columns: minmax(0, 1fr); }
  .site-map__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--col-gap); }
  .idx:nth-child(n)::before { display: none; }
  .more__in > .entry:nth-child(n)::before { display: none; }
  .more__in > .entry:not(:first-child) { margin-top: 2.5rem; padding-bottom: 0; }
  .more__in > .entry:first-child { padding: 1.25rem; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .tl-meta div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prose td { display: block; border: 0; padding: 0.15rem 0; }
  .prose td::before { content: attr(data-label); display: block; font: 500 0.75rem/1.4 var(--mono); color: var(--ink-2); }
  .prose tr { display: block; border-bottom: 1px solid var(--rule); padding-block: 0.75rem; }
  .prose thead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .entry .entry__art img, .pill__arrow { transform: none !important; }
}

@media print {
  .masthead, .site-footer, .index, .side, .staging, .skip, .art, .entry__art, .entry__more, .hero__label { display: none; }
  body { background: #fff; color: #000; }
  .hero__in, .context__in, .more__in { display: block; }
  .more__in > .entry, .entry--feature .entry__text { border: 0; padding: 0; background: none; }
  .context .prose { columns: 1; }
  a { text-decoration: none; }
}
