/* Prensa | UlanBatar. Página de consulta: HTML plano, sin ritual de entrada, legible e imprimible. */
@font-face { font-family: Cinzel; src: url('/assets/fonts/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/assets/fonts/eb-garamond.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Cormorant; src: url('/assets/fonts/cormorant.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #07050a;
  --bg-2: #0d0a0d;
  --line: #3a2a1c;
  --line-2: #735132;
  --bone: #e9d9b8;
  --ash: #f3d8a5;
  --muted: #b39d7c;
  --gold: #d9a155;
  --serif: 'EB Garamond', Georgia, serif;
  --display: Cinzel, 'Trajan Pro', serif;
  --italic: Cormorant, 'EB Garamond', serif;
  --gutter: max(16px, 5vw);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--bone); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
a:hover { color: var(--ash); border-color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; }
.saltar:focus { left: 16px; z-index: 2; background: var(--bg); padding: .4rem .8rem; }

.cabecera { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; padding: .8rem var(--gutter); background: rgba(7, 5, 10, .94); border-bottom: 1px solid var(--line); }
.cabecera .logo { border: 0; }
.cabecera .logo img { width: 128px; }
.cabecera nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.cabecera nav a { display: inline-flex; align-items: center; min-height: 44px; border: 0; font-family: var(--display); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.cabecera nav a:hover { color: var(--gold); }

main { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding-block: clamp(48px, 8vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
section:last-child { border-bottom: 0; }
.eyebrow { margin: 0 0 1rem; font-family: var(--display); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; color: var(--ash); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: .04em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: .02em; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; margin: 2.4rem 0 1rem; }
h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
p { margin: 0; }
.lead { margin-top: 1.2rem; max-width: 62ch; font-size: 1.3rem; line-height: 1.5; color: var(--ash); }
.sub { margin-top: .8rem; max-width: 65ch; color: var(--muted); }
.nota { margin-top: 1.4rem; font-family: var(--italic); font-style: italic; font-size: 1.15rem; color: var(--muted); }

.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; margin: 2rem 0 0; background: var(--line); border: 1px solid var(--line); }
.datos div { padding: 1rem 1.1rem; background: var(--bg-2); min-width: 0; }
.datos dt { font-family: var(--display); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.datos dd { margin: .3rem 0 0; overflow-wrap: anywhere; }

.integrantes { display: grid; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.integrantes li { padding-left: 1rem; border-left: 1px solid var(--line-2); color: var(--muted); }
.integrantes strong { color: var(--bone); font-weight: 500; }

.bio { margin-top: 1rem; padding: 1.2rem 1.3rem 1.4rem; background: var(--bg-2); border: 1px solid var(--line); }
.bio-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.bio-texto p + p { margin-top: .9em; }
.copiar { flex: none; min-height: 40px; padding: .5em 1.1em; background: transparent; color: var(--gold); border: 1px solid var(--line-2); font-family: var(--display); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; }
.copiar:hover { border-color: var(--gold); color: var(--ash); }
.copiar.is-ok { border-color: var(--gold); color: var(--ash); }

.mas { margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mas summary { display: flex; align-items: center; gap: .8em; min-height: 44px; cursor: pointer; list-style: none; font-family: var(--display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.mas summary::-webkit-details-marker { display: none; }
.mas summary::before { content: "+"; width: 1em; text-align: center; transition: transform .2s; }
.mas[open] summary::before { transform: rotate(45deg); }
.mas[open] { padding-bottom: 1rem; }
.mas .bio { margin-top: 0; }

.tabla { margin-top: 1.2rem; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th { padding: .7rem .9rem; text-align: left; font-family: var(--display); font-weight: 500; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); background: var(--bg-2); border-bottom: 1px solid var(--line); }
td { padding: .8rem .9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td.n, td.dur { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
td strong { font-weight: 500; color: var(--ash); }
.concepto { display: block; color: var(--muted); font-size: .95rem; }
.sello { margin-left: .5rem; font-family: var(--display); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bg); background: var(--gold); padding: .15em .5em; white-space: nowrap; }
tr.focus td { background: rgba(217, 161, 85, .05); }
td.links { white-space: nowrap; }
td.links a { display: inline-block; margin-right: .8rem; font-size: .95rem; }
td.links a:last-child { margin-right: 0; }

.material, .formatos { display: grid; gap: 1px; margin: 1.2rem 0 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.material li { display: grid; gap: .3rem; padding: 1rem 1.2rem; background: var(--bg-2); }
.material li > a:first-child { justify-self: start; font-family: var(--display); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.material span { color: var(--muted); }
.formatos li { padding: 1rem 1.2rem; background: var(--bg-2); color: var(--muted); }
.formatos strong { color: var(--bone); font-weight: 500; }

.pie { padding: 2rem var(--gutter) 3rem; text-align: center; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .cabecera { position: static; }
  td.links a { display: block; margin: 0 0 .2rem; }
  .bio-head { align-items: flex-start; }
}

@media print {
  :root { --bg: #fff; --bg-2: #fff; --bone: #111; --ash: #000; --muted: #444; --gold: #6b4a1e; --line: #ccc; --line-2: #999; }
  .cabecera nav, .copiar, .saltar { display: none; }
  .cabecera { position: static; }
  .mas { border: 0; }
  .mas:not([open]) > :not(summary) { display: block; }
  section { break-inside: auto; }
}
