/* PoliScore — portal editorial de investigaciones sobre Chile.
   Hoja independiente de /static/style.css (que sigue siendo exclusiva del
   Observatorio Político). Papel claro para lectura prolongada, cabecera y
   pie oscuros, tipografía editorial autoalojada (OFL, ver fonts/LICENSE-*). */

@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --paper:   #f7f5f0;
  --paper-2: #efebe2;
  --card:    #fffdf8;
  --ink:     #16191d;
  --ink-2:   #383e45;
  --ink-3:   #5a6169;     /* 5.6:1 sobre --paper */
  --rule:    #d8d1c3;
  --rule-2:  #c4baa6;
  --night:   #101418;
  --night-2: #1a2027;
  --night-ink:  #ece9e2;
  --night-dim:  #a9b0b8;  /* 8:1 sobre --night */
  --accent:  #9e3a1f;     /* óxido de cobre: 6.4:1 sobre --paper */
  --accent-night: #e9946f;
  --data:    #1d4e63;
  --pending: #75560f;     /* "en preparación": 6.1:1 sobre --paper */
  --pending-bg: #f3e9cf;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 40rem;
  --wide: 76rem;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.portal {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}
.night a:focus-visible, .night summary:focus-visible { outline-color: var(--accent-night); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card);
        color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

/* --- tipografía --- */
.kicker { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
          color: var(--accent); margin: 0 0 .9em; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.04; margin: 0 0 .35em; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; margin: 0 0 .5em; font-variation-settings: "opsz" 48; }
h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4em; font-variation-settings: "opsz" 24; }
.dek { font: 400 clamp(1.15rem, 1.9vw, 1.45rem)/1.45 var(--serif); color: var(--ink-2); margin: 0 0 1.2em; }
.meta { font: 500 13px/1.5 var(--sans); color: var(--ink-3); }
.meta span + span::before { content: "·"; margin: 0 .55em; color: var(--rule-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
                border-top: 2px solid var(--ink); padding-top: 14px; margin: 0 0 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section-head a { font: 600 13px/1 var(--sans); color: var(--ink-2); }

/* --- cabecera --- */
.night { background: var(--night); color: var(--night-ink); }
.masthead { border-bottom: 1px solid #000; }
.mast-top { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.wordmark b { font: 600 30px/1 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.wordmark b i { font-style: normal; color: var(--accent-night); }
.wordmark small { font: 500 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--night-dim); }
.mast-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mast-annex { font: 600 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--night-dim);
              text-decoration: none; border: 1px solid #3a434d; padding: 9px 12px; border-radius: 2px; white-space: nowrap; }
.mast-annex:hover { color: var(--night-ink); border-color: var(--night-dim); }
.mast-annex span { color: var(--accent-night); }
.mainnav { border-top: 1px solid #262e37; }
.mainnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 0; flex-wrap: wrap; }
.mainnav a { display: block; padding: 13px 14px; font: 500 14px/1 var(--sans); color: var(--night-dim);
             text-decoration: none; border-bottom: 2px solid transparent; }
.mainnav li:first-child a { padding-left: 0; }
.mainnav a:hover { color: var(--night-ink); }
.mainnav a[aria-current] { color: var(--night-ink); border-bottom-color: var(--accent-night); }
.navtoggle { display: none; }
@media (max-width: 860px) {
  .mast-top { min-height: 64px; }
  .wordmark b { font-size: 25px; }
  .wordmark small { font-size: 10px; letter-spacing: .08em; }
  .mast-right { display: none; }
  .navtoggle { display: block; margin-left: auto; }
  .navtoggle summary { list-style: none; cursor: pointer; font: 600 13px/1 var(--sans); padding: 10px 12px;
                       border: 1px solid #3a434d; border-radius: 2px; color: var(--night-ink); }
  .navtoggle summary::-webkit-details-marker { display: none; }
  .mainnav { display: none; }
  .navtoggle[open] + .mainnav, .mainnav.is-open { display: block; }
  .navtoggle-panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--night); z-index: 30;
                     border-top: 1px solid #262e37; border-bottom: 1px solid #000; padding: 6px var(--gutter) 14px; }
  .navtoggle-panel a { display: block; padding: 12px 0; border-bottom: 1px solid #222a33; color: var(--night-ink);
                       text-decoration: none; font: 500 16px/1.2 var(--sans); }
  .navtoggle-panel a.annex { color: var(--accent-night); border-bottom: 0; margin-top: 6px; }
  .masthead { position: relative; }
}
@media (min-width: 861px) { .navtoggle-panel { display: none; } }

/* --- portada: investigación principal --- */
.lead { position: relative; background: var(--night); color: var(--night-ink); }
.lead-media { position: relative; height: clamp(420px, 72vh, 760px); overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,16,0) 30%, rgba(10,13,16,.55) 62%, rgba(10,13,16,.93) 100%); }
.lead-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(28px, 5vw, 56px); }
.lead-text h1 { color: #fff; max-width: 17ch; margin-bottom: .3em; }
.lead-text h1 a { text-decoration: none; }
.lead-text h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead-text .kicker { color: #f3b393; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.lead-text .dek { color: #e3e0d8; max-width: 44rem; }
.lead-text .meta { color: #c7ccd2; }
.credit { font: 400 11.5px/1.4 var(--sans); color: var(--ink-3); margin: 8px 0 0; }
.credit a { color: inherit; }
.night .credit, .lead .credit { color: var(--night-dim); }
.lead-summary { background: var(--night-2); border-top: 1px solid #000; }
.lead-summary .container { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(20px, 4vw, 56px);
                           padding-top: 28px; padding-bottom: 32px; }
.lead-summary h2 { color: var(--night-ink); font-size: 1.25rem; margin: 0; }
.lead-summary ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.lead-summary li { counter-increment: s; font: 400 1.02rem/1.5 var(--serif); color: #dcd8cf; padding-left: 0; }
.lead-summary li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 12px/1 var(--sans);
                           color: var(--accent-night); letter-spacing: .1em; margin-bottom: 6px; }
.lead-summary .cta { grid-column: 2; }
.btn { display: inline-block; font: 600 14px/1 var(--sans); padding: 13px 18px; border-radius: 2px;
       text-decoration: none; background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn:hover { background: #82301a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--paper-2); }
.night .btn-ghost { color: var(--night-ink); border-color: #4a535e; }
.night .btn-ghost:hover { background: #222a33; }
@media (max-width: 760px) {
  .lead-media { height: auto; aspect-ratio: 4 / 3; }
  .lead-media::after { display: none; }
  .lead-text { position: static; padding-top: 22px; }
  .lead-summary .container { grid-template-columns: 1fr; }
  .lead-summary .cta { grid-column: 1; }
}

/* --- manifiesto (portada sin investigación publicada) --- */
.manifesto .lead-text h1 { max-width: 20ch; }

/* --- bloques de portada --- */
.band { padding: clamp(44px, 7vw, 84px) 0; }
.band + .band { padding-top: 0; }
.band-alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-alt + .band { padding-top: clamp(44px, 7vw, 84px); }

.lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0;
         border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.line { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 24px 26px;
        text-decoration: none; display: flex; flex-direction: column; gap: 10px; background: var(--card);
        transition: background .15s; }
.line:hover { background: #fff; }
.line h3 { margin: 0; font-size: 1.4rem; }
.line:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.line p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.line .count { margin-top: auto; font: 600 12px/1.3 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.line-annex { background: var(--night); color: var(--night-ink); }
.line-annex h3 { color: var(--night-ink); }
.line-annex p { color: var(--night-dim); }
.line-annex .count { color: var(--accent-night); }
.line-annex:hover { background: var(--night-2); }

/* tarjetas de investigación */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-media img { transform: none; } }
.card h3 { font-size: 1.5rem; margin-bottom: .35em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
.badge { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
         padding: 5px 7px; border-radius: 2px; vertical-align: middle; }
.badge-pending { background: var(--pending-bg); color: var(--pending); border: 1px solid #e2d3a6; }
.badge-pub { background: #e3ece8; color: #1e5442; border: 1px solid #c3d8cf; }

/* agenda (investigaciones en preparación): lista sobria, sin imágenes */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.agenda li { display: grid; grid-template-columns: 11rem 1fr auto; gap: 8px 28px; align-items: baseline;
             padding: 20px 0; border-bottom: 1px solid var(--rule); }
.agenda .sec { font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.agenda h3 { margin: 0 0 4px; font-size: 1.3rem; }
.agenda h3 a { text-decoration: none; }
.agenda h3 a:hover { text-decoration: underline; }
.agenda p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .agenda li { grid-template-columns: 1fr; } }

/* Atlas en portada */
.atlas-teaser { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.atlas-teaser .atlas-svg { max-height: 640px; width: 100%; }
@media (max-width: 760px) { .atlas-teaser { grid-template-columns: 1fr; } .atlas-teaser .atlas-svg { max-height: 460px; } }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 40px; }
.principles h3 { font-size: 1.15rem; }
.principles p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* --- encabezado de sección --- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-head .dek { max-width: 46rem; }
.page-head-photo { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.page-head-photo figure { margin: 0; }
.page-head-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (max-width: 860px) { .page-head-photo { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { font: 500 13px/1 var(--sans); padding: 8px 10px; border: 1px solid var(--rule-2); border-radius: 2px; color: var(--ink-2); }
.chips a { text-decoration: none; display: block; margin: -8px -10px; padding: 8px 10px; }
.chips a[aria-current] { background: var(--ink); color: var(--paper); }
.empty { padding: 28px; background: var(--card); border: 1px dashed var(--rule-2); color: var(--ink-2); }

/* --- investigación (artículo) --- */
.study-hero { background: var(--night); color: var(--night-ink); }
.study-hero .container { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 28px; }
.study-hero h1 { color: #fff; max-width: 22ch; }
.study-hero .kicker { color: var(--accent-night); }
.study-hero .dek { color: #dcd8cf; max-width: 46rem; }
.study-hero .meta { color: var(--night-dim); }
.study-hero figure { margin: 0; }
.study-hero figure img { width: 100%; max-height: 640px; object-fit: cover; display: block; }
.study-hero figcaption { max-width: var(--wide); margin: 0 auto; padding: 10px var(--gutter) 22px; }
.study-hero figcaption .cap { color: #cfd3d8; font: 400 14px/1.45 var(--sans); margin: 0; }

.study-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(24px, 5vw, 72px);
                padding-top: clamp(32px, 5vw, 56px); padding-bottom: 72px; }
.toc { position: sticky; top: 20px; align-self: start; font: 500 14px/1.4 var(--sans); }
.toc h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent;
         color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--rule-2); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 960px) {
  .study-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--rule); background: var(--card); padding: 16px 18px; }
}

.exec { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--accent);
        padding: 24px 28px; margin: 0 0 48px; }
.exec h2 { font-size: 1.35rem; margin-bottom: .6em; }
.exec ul { margin: 0; padding-left: 1.15em; }
.exec li { font: 400 1.08rem/1.55 var(--serif); margin: 0 0 .55em; }

.prose { font: 400 1.18rem/1.7 var(--serif); color: #1d2126; max-width: var(--measure); font-variation-settings: "opsz" 16; }
.prose h2 { margin: 2.2em 0 .6em; scroll-margin-top: 20px; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose p { margin: 0 0 1.05em; }
.prose a { color: var(--data); }
.prose sup a { font: 600 .68em/1 var(--sans); text-decoration: none; padding: 0 1px; color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.wide { max-width: none; }

.figure { margin: 2.2em 0; max-width: 52rem; }
.figure img { width: 100%; display: block; }
.figure figcaption { font: 400 14px/1.5 var(--sans); color: var(--ink-2); margin-top: 10px; }
.figure figcaption b { color: var(--ink); }
.figure .source { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

.factbox { background: var(--paper-2); border: 1px solid var(--rule); padding: 20px 24px; margin: 2em 0; max-width: var(--measure);
           font: 400 15px/1.55 var(--sans); }
.factbox h3 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.factbox dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.factbox dt { font-weight: 600; color: var(--ink-2); }
.factbox dd { margin: 0; }

.timeline { list-style: none; margin: 1.6em 0; padding: 0; border-left: 2px solid var(--rule-2); max-width: var(--measure); }
.timeline li { position: relative; padding: 0 0 18px 22px; font: 400 15.5px/1.5 var(--sans); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px;
                       background: var(--paper); border: 2px solid var(--accent); border-radius: 50%; }
.timeline time { display: block; font: 600 13px/1.3 var(--sans); color: var(--accent); letter-spacing: .04em; }

table.data { border-collapse: collapse; width: 100%; font: 400 14.5px/1.4 var(--sans); margin: 1.2em 0; }
table.data caption { text-align: left; font: 600 14px/1.4 var(--sans); padding-bottom: 8px; color: var(--ink); }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th { font-weight: 600; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3);
                      border-bottom: 2px solid var(--ink); text-transform: uppercase; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:hover { background: #fffaf0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.chart { margin: 2em 0; max-width: 52rem; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.chart .axis text { fill: var(--ink-3); font-size: 12px; }
.chart .axis line, .chart .grid line { stroke: var(--rule); }
.chart details { margin-top: 8px; font: 400 14px/1.4 var(--sans); }
.chart summary { cursor: pointer; color: var(--data); font-weight: 600; }

.refs { font: 400 14.5px/1.5 var(--sans); padding-left: 1.6em; max-width: 52rem; }
.refs li { margin-bottom: .7em; scroll-margin-top: 20px; }
.refs li:target { background: var(--pending-bg); }
.refs a { color: var(--data); word-break: break-word; }
.method { font: 400 15.5px/1.6 var(--sans); max-width: var(--measure); color: var(--ink-2); }
.study-foot { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 24px; }

.pending-note { background: var(--pending-bg); border: 1px solid #e2d3a6; color: #4b380a; padding: 18px 22px;
                font: 400 15.5px/1.55 var(--sans); max-width: var(--measure); margin: 0 0 32px; }
.pending-note strong { color: var(--pending); }

/* --- Atlas --- */
.atlas-layout { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 5vw, 64px);
                padding: 40px 0 72px; align-items: start; }
.atlas-map { position: sticky; top: 16px; }
.atlas-svg { display: block; margin: 0 auto; height: auto; }
.atlas-svg .rg { stroke: #fffdf8; stroke-width: 1.4; transition: opacity .15s; }
.atlas-svg a:hover .rg, .atlas-svg a:focus .rg { stroke: var(--ink); stroke-width: 2.4; }
.atlas-svg .rg-on { stroke: var(--accent); stroke-width: 3; }
.atlas-svg a:focus { outline: none; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font: 400 13px/1.3 var(--sans); color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 12px; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.map-note { font: 400 12.5px/1.45 var(--sans); color: var(--ink-3); margin: 12px 0 0; }
.ind-picker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; font: 500 14px/1 var(--sans); }
.ind-picker select { font: 500 14px/1.2 var(--sans); padding: 8px 10px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); border-radius: 2px; }
.ind-picker button { font: 600 13px/1 var(--sans); padding: 9px 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 2px; cursor: pointer; }
@media (max-width: 860px) { .atlas-layout { grid-template-columns: 1fr; } .atlas-map { position: static; max-width: 300px; margin: 0 auto; } }
.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar-cell i { display: inline-block; height: 8px; background: var(--data); opacity: .75; min-width: 1px; }

/* --- Estado e instituciones: módulos del observatorio --- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0;
           border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.module { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 22px; background: var(--card); text-decoration: none; }
.module h3 { font-size: 1.15rem; margin: 0 0 6px; }
.module p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.module:hover h3 { text-decoration: underline; }
.annex-callout { background: var(--night); color: var(--night-ink); padding: clamp(24px, 4vw, 40px); display: grid;
                 grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; margin: 0 0 40px; }
.annex-callout h2 { color: var(--night-ink); margin: 0 0 .3em; }
.annex-callout p { color: var(--night-dim); margin: 0; }
.annex-callout .actions { text-align: right; }
@media (max-width: 760px) { .annex-callout { grid-template-columns: 1fr; } .annex-callout .actions { text-align: left; } }

/* --- pie --- */
.foot { padding: 52px 0 40px; font: 400 14px/1.6 var(--sans); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--night-dim); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 7px; }
.foot a { color: var(--night-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { color: var(--night-dim); margin: 0 0 10px; max-width: 30rem; }
.foot-legal { border-top: 1px solid #262e37; margin-top: 36px; padding-top: 18px; color: var(--night-dim); font-size: 12.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* --- impresión --- */
@media print {
  .masthead, .foot, .toc, .navtoggle { display: none !important; }
  body.portal { background: #fff; font-size: 11pt; }
  .study-hero, .lead { background: #fff; color: #000; }
  .study-hero h1 { color: #000; }
  .study-layout { display: block; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* los hijos de grid no deben imponer su ancho mínimo intrínseco (select,
   tablas) en pantallas angostas */
.atlas-layout > *, .atlas-teaser > *, .page-head-photo > *, .annex-callout > * { min-width: 0; }
.ind-picker select { max-width: 100%; min-width: 0; flex: 1 1 12rem; }
.factbox dd { overflow-wrap: anywhere; }
.page-head-photo img, .figure img { height: auto; }
.study-hero figure img { height: auto; aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .study-hero figure img { aspect-ratio: 4 / 3; } }
.chart figcaption { font: 400 14px/1.5 var(--sans); color: var(--ink-2); margin: 0 0 8px; }
.chart figcaption b { font: 600 15.5px/1.35 var(--sans); color: var(--ink); }
.chart svg + figcaption, .chart p + figcaption { margin: 8px 0 0; }
.chart .source { font-size: 12.5px; color: var(--ink-3); }
.chart .source a { color: var(--data); }
@media (max-width: 760px) { .lead-summary ol { grid-template-columns: 1fr !important; } }
.refs li, .method li { overflow-wrap: anywhere; }
/* accesibilidad (auditoría axe-core) */
.foot-legal a { text-decoration: underline; }
.study-hero .credit, .study-hero .credit a { color: var(--night-dim); }
.table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------
   Participación: cuenta de lector, contacto y conversación de lectores
   ------------------------------------------------------------------ */
.mast-user { font: 600 12.5px/1 var(--sans); color: var(--night-ink); text-decoration: none; padding: 9px 4px;
             max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mast-user:hover, .mast-user[aria-current] { text-decoration: underline; }

.acct { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
        align-items: start; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.acct-wide { display: block; max-width: 60rem; }
.acct-card h1, .acct-head h1 { font: 600 clamp(2rem, 4vw, 2.6rem)/1.1 var(--serif); margin: 6px 0 14px;
                               font-variation-settings: "opsz" 48; }
.acct-card-wide { grid-column: 1 / -1; max-width: 44rem; }
.acct-lead { font: 400 1.12rem/1.6 var(--serif); color: var(--ink-2); margin: 0 0 22px; }
.acct-alt { font: 400 15px/1.5 var(--sans); color: var(--ink-3); margin: 16px 0 0; }
.acct-alt a, .acct-side a, .acct-section a { color: var(--data); }
.acct-side { border-top: 2px solid var(--ink); padding-top: 18px; font-size: 15px; color: var(--ink-2); }
.acct-side h2 { font: 600 1.25rem/1.3 var(--serif); margin: 0 0 10px; }
.acct-side h2 + ul { margin-bottom: 22px; }
.acct-side ul { padding-left: 1.1em; margin: 0; }
.acct-side li { margin-bottom: 8px; }
.acct-head { margin-bottom: 18px; }
.acct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 40px; }
.acct-box { background: var(--card); border: 1px solid var(--rule); padding: 20px; }
.acct-box h2, .acct-section h2 { font: 600 1.25rem/1.3 var(--serif); margin: 0 0 12px; }
.acct-logout { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.acct-section { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 10px; margin-bottom: 30px; }
.acct-danger details summary { cursor: pointer; font: 600 14px/1.4 var(--sans); color: var(--accent); margin: 6px 0 12px; }
.my-comments { list-style: none; margin: 0; padding: 0; }
.my-comments li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.my-comment-body { margin: 6px 0 0; white-space: pre-line; color: var(--ink-2); }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .cm-form label { display: block; font: 600 14px/1.4 var(--sans); color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input:not([type]),
.field textarea, .cm-form textarea, .cm-form select, .cm-form input:not([type=hidden]) {
  width: 100%; font: 400 16px/1.45 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--rule-2); border-radius: 2px; padding: 11px 12px; }
.field textarea, .cm-form textarea { resize: vertical; min-height: 7em; }
.field input:focus-visible, .field textarea:focus-visible, .cm-form textarea:focus-visible,
.cm-form select:focus-visible, .cm-form input:focus-visible, .choice input:focus-visible, .check input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; }
.field.has-error input, .field.has-error textarea, [aria-invalid=true] { border-color: var(--accent); }
.field.check label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.field.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font: 400 13.5px/1.5 var(--sans); color: var(--ink-3); margin: 6px 0 0; }
.field-error { font: 600 13.5px/1.5 var(--sans); color: var(--accent); margin: 6px 0 0; }
.form-alert, .form-ok { font: 500 15px/1.55 var(--sans); padding: 12px 14px; margin: 0 0 20px; border-left: 3px solid; }
.form-alert { background: #f6e4dc; border-color: var(--accent); color: #5a2110; }
.form-ok { background: #e3ede8; border-color: #2f6b4f; color: #1d3f2f; }
.form-ok p { margin: 0 0 6px; } .form-ok p:last-child { margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex !important; gap: 10px; align-items: center; font: 500 15px/1.3 var(--sans) !important;
          border: 1px solid var(--rule-2); background: var(--card); padding: 11px 12px; cursor: pointer; margin: 0 !important; }
.choice input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { cursor: pointer; }
button.btn { border: 1px solid var(--accent); }
.btn-small { padding: 10px 14px; font-size: 13.5px; }
.btn-danger { background: #6b1d0c; border-color: #6b1d0c; }
.chip { display: inline-block; font: 600 11.5px/1 var(--sans); letter-spacing: .04em; padding: 5px 8px;
        border-radius: 2px; vertical-align: middle; }
.chip-ok { background: #e3ede8; color: #1d3f2f; }
.chip-pending { background: var(--pending-bg); color: var(--pending); }
.chip-off { background: var(--paper-2); color: var(--ink-3); }

/* conversación de lectores */
.comments-inner { max-width: 48rem; }
.cm-note { font: 400 14.5px/1.55 var(--sans); color: var(--ink-3); margin: 0 0 24px; }
.cm-note a { color: var(--data); }
.cm-list { border-top: 1px solid var(--rule-2); margin-bottom: 30px; }
.cm { padding: 20px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.cm:target { background: linear-gradient(90deg, rgba(158,58,31,.07), transparent 70%); }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.cm-author { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.cm-replyto, .cm-head time { font: 500 13px/1.3 var(--sans); color: var(--ink-3); }
.cm-body { font: 400 1.08rem/1.65 var(--serif); color: #1d2126; white-space: pre-line; overflow-wrap: anywhere; }
.cm-own-pending { opacity: .85; }
.cm-own-pending .cm-body { border-left: 3px solid var(--pending-bg); padding-left: 12px; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.cm-act > summary { cursor: pointer; list-style: none; font: 600 13px/1.4 var(--sans); color: var(--ink-3); }
.cm-act > summary::-webkit-details-marker { display: none; }
.cm-act > summary:hover { color: var(--ink); text-decoration: underline; }
.cm-act[open] { flex-basis: 100%; }
.cm-act[open] > summary { color: var(--ink); }
.cm-report > summary { color: var(--ink-3); }
.cm-form { margin-top: 12px; }
.cm-form-reply, .cm-report .cm-form { background: var(--card); border: 1px solid var(--rule); padding: 16px; }
.cm-report .cm-form { max-width: 26rem; }
.cm-report .cm-form select, .cm-report .cm-form input { margin-bottom: 12px; }
.cm-form button { margin-top: 10px; }
.cm-replies { margin: 14px 0 0 clamp(14px, 3vw, 28px); padding-left: clamp(14px, 2.4vw, 22px); border-left: 2px solid var(--rule-2); }
.cm-replies .cm { padding: 14px 0; }
.cm-replies .cm:last-child { border-bottom: 0; padding-bottom: 0; }
.cm-empty { font: 400 1.05rem/1.6 var(--serif); color: var(--ink-3); margin: 0 0 26px; }
.cm-compose h3 { font: 600 1.2rem/1.3 var(--serif); margin: 0 0 10px; }
.cm-login { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font: 400 15px/1.5 var(--sans); }
.cm-login a:not(.btn) { color: var(--data); }

@media (max-width: 860px) {
  .acct { grid-template-columns: minmax(0, 1fr); }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row, .choice-grid { grid-template-columns: minmax(0, 1fr); }
}
.my-comments .meta + p { margin: 6px 0 0; }
.my-comments a { color: var(--data); }

/* ===================================================================
   Investigación especial (s.especial): portada propia sin fotografía,
   recuadros de datos, clasificación de evidencia y prevención destacada.
   =================================================================== */
.esp-arte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lead-especial .lead-media { background: #0d0f12; }
.lead-especial .lead-media::after { background: linear-gradient(180deg, rgba(10,12,14,.15) 0%, rgba(10,12,14,.55) 55%, rgba(10,12,14,.94) 100%); }
.lead-especial .lead-text h1 { max-width: 20ch; }

.esp-hero { position: relative; background: #0d0f12; color: var(--night-ink); min-height: clamp(560px, 86vh, 860px);
            display: flex; align-items: flex-end; overflow: hidden; }
.esp-hero::after { content: ""; position: absolute; inset: 0;
                   background: linear-gradient(180deg, rgba(10,12,14,.1) 0%, rgba(10,12,14,.5) 50%, rgba(10,12,14,.96) 100%); }
.esp-hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(32px, 6vw, 64px); width: 100%; }
.esp-hero .kicker { color: var(--accent-night); }
.esp-hero .kicker a { color: inherit; }
.esp-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.04; margin: .2em 0 .35em; }
.esp-hero .dek { color: #dcd8cf; max-width: 46rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.esp-hero .meta { color: var(--night-dim); }
.esp-hero .meta a { color: var(--night-ink); }
.esp-tag { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
           background: #e0533a; color: #fff; padding: 6px 9px; border-radius: 2px; margin-right: 10px; vertical-align: 2px; }
.esp-claves { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
              background: #2a3038; border-top: 1px solid #2a3038; margin-top: 28px; }
.esp-claves div { background: rgba(13,15,18,.92); padding: 18px 20px; }
.esp-claves b { display: block; font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--serif); color: #fff; margin-bottom: 6px; }
.esp-claves span { font: 400 14px/1.45 var(--sans); color: #c3c9cf; }
@media (max-width: 760px) { .esp-claves { grid-template-columns: 1fr; } }

.especial .prose > p.esp-apertura:first-of-type::first-letter {
  float: left; font: 600 4.6em/.82 var(--serif); margin: .06em .08em 0 0; color: var(--accent); }
.esp-apertura { font-size: 1.28rem; line-height: 1.68; }
.esp-escena { border-left: 3px solid #e0533a; padding: 4px 0 4px 20px; margin: 1.6em 0; color: #2a2f35; }
.esp-escena p:last-child { margin-bottom: 0; }

.esp-dato { margin: 2em 0; padding: 22px 24px 20px; background: #15191d; color: #e8e5de; border-top: 4px solid #e0533a;
            font: 400 15.5px/1.55 var(--sans); max-width: 46rem; }
.esp-dato .n { display: block; font: 600 clamp(2rem, 4.4vw, 2.9rem)/1 var(--serif); color: #fff; margin-bottom: 8px; }
.esp-dato p { margin: 0 0 .5em; }
.esp-dato .src { font-size: 13px; color: #a9b0b8; margin: 10px 0 0; }
.esp-dato a, .esp-dato sup a { color: #f1a98a; }
.esp-dato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; margin: 2em 0; max-width: 52rem; }
.esp-dato-grid .esp-dato { margin: 0; }

.st { display: inline-block; font: 700 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
      padding: 4px 7px; border-radius: 2px; white-space: nowrap; }
.st-confirmada { background: #8f2a14; color: #fff; }
.st-alerta { background: #f3d9a4; color: #5a3b00; }
.st-insuficiente { background: #e4dfd3; color: #3c4148; }
.esp-leyenda { display: grid; gap: 10px; margin: 1.4em 0 2em; font: 400 15px/1.5 var(--sans); max-width: 46rem; }
.esp-leyenda div { display: grid; grid-template-columns: 13rem 1fr; gap: 12px; align-items: start; }
@media (max-width: 600px) { .esp-leyenda div { grid-template-columns: 1fr; gap: 4px; } }

.chart-map { max-width: 60rem; }
.smap-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.smap { width: 100%; height: auto; max-height: 720px; }
.smap path { transition: opacity .15s; }
.smap a:hover path, .smap path:hover { opacity: .8; }
.smap-l { font: 700 19px/1 var(--sans); fill: #16191d; paint-order: stroke; stroke: #fffdf8; stroke-width: 3px; }
.smap-legend { list-style: none; margin: 0; padding: 0; font: 400 14px/1.45 var(--sans); }
.smap-legend li { margin: 0 0 12px; padding-left: 28px; position: relative; }
.smap-legend i { position: absolute; left: 0; top: 3px; width: 18px; height: 14px; border: 1px solid rgba(0,0,0,.15); }
.smap-legend b { display: block; }
.smap-legend span { color: var(--ink-2); }
@media (max-width: 700px) { .smap-wrap { grid-template-columns: 1fr; } }

.esp-fig { margin: 2.2em 0; max-width: 52rem; }
.esp-fig svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.esp-fig figcaption { font: 400 14px/1.5 var(--sans); color: var(--ink-2); margin-top: 10px; }
.esp-fig figcaption b { color: var(--ink); }

.esp-crono { list-style: none; margin: 1.6em 0 2em; padding: 0; border-left: 2px solid var(--rule-2); font: 400 1.02rem/1.55 var(--serif); }
.esp-crono li { position: relative; padding: 0 0 1.25em 22px; }
.esp-crono li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
                        background: var(--paper); border: 2px solid var(--accent); }
.esp-crono li.hito::before { background: #e0533a; border-color: #e0533a; }
.esp-crono time { display: block; font: 700 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.esp-crono .region { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: 6px; }

.esp-prev { scroll-margin-top: 20px; background: #0f3b33; color: #eef6f3; margin: 2.6em 0; padding: clamp(22px, 4vw, 40px); border-radius: 3px;
            font: 400 1.05rem/1.6 var(--sans); max-width: 52rem; }
.esp-prev h2, .esp-prev h3 { color: #fff; font-family: var(--serif); }
.esp-prev h2 { margin-top: 0 !important; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.esp-prev a, .esp-prev sup a { color: #9fe3cf !important; }
.esp-prev .urg { background: #fff; color: #0f3b33; padding: 16px 18px; border-radius: 3px; font-weight: 600; margin: 1em 0 1.4em; }
.esp-prev .urg strong { color: #8f2a14; }
.esp-pasos { counter-reset: p; list-style: none; padding: 0 !important; margin: 0 0 1.2em; }
.esp-pasos li { counter-increment: p; position: relative; padding: 0 0 .9em 48px; }
.esp-pasos li::before { content: counter(p); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
                        background: #9fe3cf; color: #0f3b33; font: 700 16px/32px var(--sans); text-align: center; }
.esp-senales { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; margin: .6em 0 1.4em; padding: 0 !important; list-style: none; }
.esp-senales li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 12px 14px; margin: 0; border-radius: 3px; }
.esp-senales b { display: block; color: #fff; }
.esp-prev .nota { font-size: 14px; color: #c7ded7; }

.esp-cierre { background: #0d0f12; color: #ece9e2; padding: clamp(24px, 5vw, 48px); margin: 2.6em 0; border-radius: 3px; max-width: 52rem; scroll-margin-top: 20px; }
.esp-cierre ul { color: #d4d0c7; font: 400 1.05rem/1.6 var(--serif); }
.esp-cierre strong { color: #fff; }
.esp-cierre .q { font: 600 clamp(1.6rem, 3.6vw, 2.6rem)/1.2 var(--serif); color: #fff; max-width: 30ch; margin: 0 0 .8em; }
.esp-cierre p { font: 400 1.12rem/1.65 var(--serif); max-width: 42rem; color: #d4d0c7; }
.esp-cierre .final { font: 600 clamp(1.3rem, 2.6vw, 1.75rem)/1.35 var(--serif); color: #f1a98a; border-top: 1px solid #2a3038; padding-top: 1em; margin-top: 1.4em; }
.esp-cierre sup a { color: #f1a98a; }
.esp-dato-claro { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-top: 4px solid #d99a2b; }
.esp-dato-claro a, .esp-dato-claro sup a { color: var(--accent); }
.esp-prev .urg a, .esp-prev .urg sup a { color: #0f3b33 !important; }

/* ---------------------------------------------------------------------------
   Investigación especial: urgencias (CIC N.º 24). Graficos interactivos con
   mejora progresiva (.chart-i, .chart-hmap), tooltips, «Qué sabemos / Qué
   falta verificar» y línea de tiempo de fiscalización.
   --------------------------------------------------------------------------- */
.esp-hero-urg .esp-claves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .esp-hero-urg .esp-claves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .esp-hero-urg .esp-claves { grid-template-columns: 1fr; } }
.esp-claves .adv { display: block; margin-top: 8px; font: 600 11.5px/1.35 var(--sans); letter-spacing: .03em; color: #e9c46a; }
.esp-aviso { margin: 0 0 2em; padding: 16px 20px; border: 1px solid #d99a2b; border-left: 5px solid #d99a2b; background: #fdf6e6;
             font: 400 15.5px/1.55 var(--sans); color: var(--ink); max-width: 52rem; }
.esp-aviso strong { color: #6b4a07; }
.chart-i .ibars .ib { cursor: default; outline: none; }
.chart-i .ibars .ib:focus-visible rect:not([fill="transparent"]), .chart-i .ibars .ib:hover rect:not([fill="transparent"]) { opacity: .82; }
.chart-i .ibars .ib:focus-visible text { text-decoration: underline; }
@media (max-width: 520px) { .chart-i .cb-t { display: none; } }
.cbar-legend { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
               gap: 6px 18px; font: 400 14px/1.4 var(--sans); }
.cbar-legend li { position: relative; padding-left: 24px; }
.cbar-legend i { position: absolute; left: 0; top: 3px; width: 15px; height: 13px; border-radius: 2px; }
.cbar-legend span { color: var(--ink-3); }
.ptip { position: fixed; z-index: 50; pointer-events: none; max-width: 300px; background: #16191d; color: #f2efe8;
        font: 400 13.5px/1.45 var(--sans); padding: 10px 12px; border-radius: 3px; box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.ptip b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.ptip[hidden] { display: none; }
.chart-hmap { max-width: 64rem; }
.hmap-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.hmap-geo { position: relative; }
.hmap { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 3px; font-family: var(--sans); }
.hmap-c { font: 600 11px/1 var(--sans); fill: #9a917f; letter-spacing: .06em; text-transform: uppercase; text-anchor: middle; pointer-events: none; }
.hp { cursor: pointer; outline: none; }
.hp-dot { fill: #9e3a1f; stroke: #fffdf8; stroke-width: 2; transition: r .12s; }
.hp-n { font: 700 8.5px/1 var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; }
.hp-l { font: 600 11.5px/1 var(--sans); fill: #16191d; paint-order: stroke; stroke: #fffdf8; stroke-width: 3px; pointer-events: none; }
.hp:hover .hp-dot, .hp:focus-visible .hp-dot { fill: #5f1c0d; r: 10; }
.hp.on .hp-dot { fill: #16191d; r: 10; }
.hp:focus-visible .hp-l { text-decoration: underline; }
.hmap-esc line { stroke: #5a6169; stroke-width: 2; }
.hmap-esc text { font: 600 11px/1 var(--sans); fill: #5a6169; }
.hmap-inset-w { position: absolute; left: 8px; bottom: 8px; width: min(30%, 170px); background: rgba(255,253,248,.94);
                border: 1px solid var(--rule); border-radius: 3px; padding: 6px; }
.hmap-inset-w span { display: block; font: 400 10.5px/1.3 var(--sans); color: var(--ink-3); margin-top: 4px; }
.hmap-inset { width: 100%; height: auto; display: block; }
@media (max-width: 520px) { .hmap-inset-w { position: static; width: 60%; margin-top: 8px; } .hp-l { display: none; } }
.hmap-ficha { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid #9e3a1f; padding: 16px 18px; border-radius: 3px;
              font: 400 14.5px/1.5 var(--sans); }
.hmap-ficha h4 { font: 600 1.2rem/1.25 var(--serif); margin: 0 0 4px; }
.hmap-ficha .loc { color: var(--ink-3); font-size: 13px; margin: 0 0 12px; }
.hmap-ficha table { width: 100%; border-collapse: collapse; margin: 0 0 10px; }
.hmap-ficha td, .hmap-ficha th { padding: 5px 4px; border-bottom: 1px solid var(--rule); text-align: left; font-size: 13.5px; }
.hmap-ficha td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hmap-ficha .w { font-size: 12.5px; color: #6b4a07; background: #fdf6e6; padding: 8px 10px; border-radius: 2px; margin: 8px 0 0; }
.hmap-hint { color: var(--ink-3); margin: 0; }
table.data .sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
table.data tr.on { background: #f6e7dc; }
table.data tr.tot th, table.data tr.tot td { font-weight: 700; border-top: 2px solid var(--rule-2); }
table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.sortable th[data-sort] button { all: unset; cursor: pointer; }
table.sortable th[data-sort] button:focus-visible { outline: 2px solid var(--accent); }
table.sortable th[aria-sort="descending"] button::after { content: " ▼"; font-size: 10px; }
table.sortable th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 10px; }
.esp-saber { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0 2em; max-width: 60rem; }
@media (max-width: 760px) { .esp-saber { grid-template-columns: 1fr; } }
.esp-saber > div { padding: 18px 20px; border-radius: 3px; border: 1px solid var(--rule); background: var(--card); }
.esp-saber h3 { margin: 0 0 10px !important; font: 600 1.2rem/1.3 var(--serif); }
.esp-saber ul { margin: 0; padding-left: 1.1em; font: 400 15.5px/1.55 var(--sans); }
.esp-saber li { margin: 0 0 .6em; }
.esp-saber .si { border-top: 4px solid #1d4e63; }
.esp-saber .no { border-top: 4px solid #d99a2b; background: #fffaf0; }
.esp-crono .fuente { display: block; font: 400 13px/1.4 var(--sans); color: var(--ink-3); margin-top: 2px; }
.esp-crono li.pend::before { background: #fff; border-color: #d99a2b; border-style: dashed; }
.esp-tabla-cat td:first-child, .esp-tabla-cat th:first-child { white-space: nowrap; }
.esp-tabla-cat .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.hp-lead { stroke: #5a6169; stroke-width: 1; }
.hp-true { fill: #16191d; }
@media (max-width: 520px) {
  .hmap .hp-dot { r: 13; stroke-width: 2.5; }
  .hmap .hp-n { font-size: 13px; }
  .hmap .hp-hit { r: 24; }
  .hmap .hp:hover .hp-dot, .hmap .hp.on .hp-dot { r: 15; }
}
@media (max-width: 600px) {
  .esp-tabla-cat thead { display: none; }
  .esp-tabla-cat tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.data.esp-tabla-cat th, table.data.esp-tabla-cat td { display: block; border: 0; padding: 2px 0; }
  .esp-tabla-cat th { font-size: 16px; padding-bottom: 4px; }
  .esp-tabla-cat td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-3); }
}

/* --------------------------------------------------------------------------
   Investigacion especial «Los sobres amarillos» (2026-10-10): mapa regional,
   rutas documentadas, linea de tiempo filtrable, niveles de evidencia,
   descargas. Clases nuevas: no alteran las investigaciones anteriores.
   -------------------------------------------------------------------------- */
.esp-hero-sob .esp-claves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .esp-hero-sob .esp-claves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .esp-hero-sob .esp-claves { grid-template-columns: 1fr; } }
.esp-hero-sob .esp-tag { background: #d9a520; color: #16191d; }
.chart-rmap { max-width: 60rem; }
.rmap-wrap { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 28px; align-items: start; }
.rmap-geo { position: sticky; top: 12px; }
.rmap { width: 100%; height: auto; max-height: 640px; display: block; }
.rmap path:hover { opacity: .8; }
.rmap-legend { list-style: none; margin: 8px 0 0; padding: 0; font: 400 12.5px/1.4 var(--sans); color: var(--ink-2); }
.rmap-legend li { padding-left: 20px; position: relative; margin: 0 0 3px; }
.rmap-legend i { position: absolute; left: 0; top: 3px; width: 13px; height: 11px; border: 1px solid rgba(0,0,0,.15); }
.rbars { list-style: none; margin: 0; padding: 0 !important; font: 400 14px/1.3 var(--sans); }
.rbars li { display: grid; grid-template-columns: minmax(7rem, 13rem) minmax(0, 1fr) 7.5rem; gap: 10px; align-items: center; margin: 0 0 7px !important; }
.rb-n { color: var(--ink); }
.rb-bar { height: 14px; background: #f1ede4; border-radius: 2px; overflow: hidden; }
.rb-bar i { display: block; height: 100%; }
.rb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rb-v small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
@media (max-width: 640px) {
  .rmap-wrap { grid-template-columns: 1fr; }
  .rmap-geo { position: static; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: end; }
  .rmap { max-height: 420px; }
  .rbars li { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 5.6rem; font-size: 13px; }
}
.chart-routes { max-width: 52rem; }
.routes { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.routes .rt { stroke-linecap: round; }
.rt-l { font: 600 11px/1 var(--sans); fill: #16191d; paint-order: stroke; stroke: #fffdf8; stroke-width: 3px; }
/* linea de tiempo filtrable (mejora progresiva: sin JS se ve completa) */
.crono-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 0; padding: 0; }
.crono-filtros button { font: 600 13px/1 var(--sans); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--rule-2);
  background: var(--card); color: var(--ink); cursor: pointer; min-height: 36px; }
.crono-filtros button[aria-pressed="true"] { background: #16191d; color: #fff; border-color: #16191d; }
.crono-filtros button:focus-visible { outline: 3px solid #d9a520; outline-offset: 2px; }
.esp-crono li[hidden] { display: none; }
.esp-crono .tipo { display: inline-block; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 1px; background: #efe9dc; color: #4a4134; }
.esp-crono li[data-t="judicial"] .tipo { background: #e8e1f0; color: #3d2d57; }
.esp-crono li[data-t="reunificacion"] .tipo { background: #e0ecef; color: #1d4e63; }
.esp-crono li[data-t="politica"] .tipo { background: #f6ead0; color: #6b4a07; }
.crono-cuenta { font: 400 13px/1.4 var(--sans); color: var(--ink-3); margin: 8px 0 0; }
/* niveles de evidencia */
.ev { display: inline-block; font: 700 10.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px;
  border-radius: 2px; white-space: nowrap; }
.ev-doc { background: #dcebe3; color: #154734; }
.ev-pren { background: #e6edf3; color: #1d3e58; }
.ev-test { background: #f6ead0; color: #6b4a07; }
.ev-den { background: #f7e1d8; color: #7a2a12; }
.ev-falso { background: #2a2f35; color: #fff; }
.ev-nv { background: #fff; color: #5a6169; border: 1px dashed #8a9199; }
.esp-hdd td, .esp-hdd th { vertical-align: top; }
.esp-desc { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 2em; padding: 0 !important; list-style: none; }
.esp-desc li { margin: 0 !important; }
.esp-desc a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid #16191d; border-radius: 3px;
  font: 600 14.5px/1.2 var(--sans); color: #16191d; text-decoration: none; background: var(--card); min-height: 44px; }
.esp-desc a:hover, .esp-desc a:focus-visible { background: #16191d; color: #fff; }
.esp-desc small { font-weight: 400; color: inherit; opacity: .75; }
.esp-menores { margin: 2em 0; padding: 18px 20px; border-left: 5px solid #1d4e63; background: #eef4f6; font: 400 15px/1.55 var(--sans); max-width: 52rem; }
.esp-menores strong { color: #123444; }
/* material audiovisual y documental (s.medios) */
.esp-hero-sob.con-foto .esp-hero-foto { position: absolute; inset: 0; margin: 0; }
.esp-hero-sob.con-foto .esp-hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); display: block; }
.esp-hero-sob.con-foto::after { background: linear-gradient(180deg, rgba(8,9,12,.62) 0%, rgba(8,9,12,.52) 35%, rgba(8,9,12,.9) 62%, #08090c 100%); }
.esp-hero-sob.con-foto .container { padding-bottom: 22px; }
.esp-hero-sob.con-foto { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.esp-hero .esp-hero-credito { position: relative; z-index: 3; margin: 0 auto; padding-top: 0; padding-bottom: 18px; font: 400 12px/1.45 var(--sans); color: #b9b4aa; }
.esp-hero-credito a { color: #e8e4dc; }
@media (max-width: 640px) {
  .esp-hero-sob.con-foto { background: #08090c; justify-content: flex-start; min-height: 0; }
  .esp-hero-sob.con-foto .esp-hero-foto { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .esp-hero-sob.con-foto::after { inset: 0 0 auto 0; height: calc(100vw * 9 / 16); background: linear-gradient(180deg, transparent 55%, #08090c 100%); }
  .esp-hero-sob.con-foto .container { padding-top: 18px; }
}
.esp-foto { margin: 2em 0; }
.esp-foto img { width: 100%; height: auto; display: block; background: #e9e4d8; }
.esp-foto.ancha { margin-left: calc(50% - 50vw + 8px); margin-right: calc(50% - 50vw + 8px); max-width: none; }
@media (min-width: 1100px) { .esp-foto.ancha { margin-left: -12%; margin-right: -12%; } }
.esp-foto figcaption, .esp-video figcaption { font: 400 13.5px/1.45 var(--sans); color: var(--ink-2); margin-top: 8px; max-width: 52rem; }
.esp-foto figcaption span, .esp-video figcaption span { display: block; }
.esp-foto .dato { color: var(--ink-3); }
.esp-foto .credito, .esp-video .credito { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.esp-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px 18px; margin: 1.4em 0 2.4em; }
.esp-galeria .esp-foto { margin: 0; }
.esp-galeria .esp-foto img { aspect-ratio: 3 / 2; object-fit: cover; }
.esp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px 22px; margin: 1.4em 0 2.4em; }
.esp-video { margin: 0; }
.esp-video-marco { position: relative; aspect-ratio: 16 / 9; background: #11151b; color: #fff; border-radius: 3px; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(217,165,32,.07) 0 2px, transparent 2px 14px); }
.esp-video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.esp-video-ficha { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px; gap: 6px; }
.esp-video-ficha p { margin: 0; }
.esp-video-ficha .canal { font: 700 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #d9a520; }
.esp-video-ficha .titulo { font: 600 16px/1.3 var(--serif, Georgia, serif); color: #fff; }
.esp-video-ficha .aviso { font: 400 11.5px/1.3 var(--sans); color: #aab0b8; }
.esp-video-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  background: #d9a520; color: #16191d !important; font: 700 14px/1 var(--sans); text-decoration: none; border-radius: 2px; margin-top: 4px; }
.esp-video-play:hover, .esp-video-play:focus-visible { background: #fff; outline: 3px solid #d9a520; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.esp-docs { list-style: none; padding: 0 !important; margin: 1.4em 0 2.4em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 22px 16px; }
.esp-docs li { margin: 0 !important; }
.esp-docs a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font: 400 13px/1.4 var(--sans); }
.esp-docs img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--rule-2);
  box-shadow: 0 6px 18px rgba(0,0,0,.12); background: #fff; transition: transform .15s; }
.esp-docs a:hover img, .esp-docs a:focus-visible img { transform: translateY(-3px); }
.esp-docs .t { font-weight: 600; }
.esp-docs .m { color: var(--ink-3); font-size: 12.5px; }
.esp-docs .ir { color: var(--data); font-weight: 600; font-size: 12.5px; }
.esp-crono .medio { display: inline-block; margin: 4px 8px 0 8px; font: 600 12.5px/1.3 var(--sans); }
img.esp-arte-foto { object-fit: cover; }
.esp-arte-credito { position: absolute; z-index: 3; right: 10px; bottom: 8px; max-width: calc(100% - 20px); font: 400 11px/1.3 var(--sans);
  color: #e1ddd4; background: rgba(8,9,12,.7); padding: 4px 7px; border-radius: 2px; text-align: right; }
.esp-etiqueta { display: inline-block; font: 700 10.5px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 2px; background: #2a2f35; color: #fff; margin: 0 0 4px; }
.esp-etiqueta.ctx { background: #e6e1d6; color: #3b3a36; }
.esp-foto figcaption .esp-etiqueta { display: inline-block; }
.esp-hero-credito .esp-etiqueta { background: #d9a520; color: #16191d; margin-right: 6px; }
.esp-video.pendiente .esp-video-marco { outline: 3px dashed #b3261e; outline-offset: 2px; }
.esp-video-pend { margin: 0 0 8px !important; font: 700 12.5px/1.35 var(--sans); color: #fff; background: #b3261e; padding: 6px 10px; border-radius: 2px; }
.esp-crono .gob { display: inline-block; font: 600 11px/1.2 var(--sans); color: #1d3e58; background: #e6edf3; padding: 3px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 1px; }
.lead-especial .lead-media:has(.esp-arte-foto)::after { background: linear-gradient(180deg, rgba(10,12,14,.55) 0%, rgba(10,12,14,.62) 45%, rgba(10,12,14,.95) 100%); }
/* impresion y PDF: solo para esta investigacion (body:has) — no altera las demas.
   El PDF abre los <details> antes de imprimir (ver scripts/build_sobres_pdf.js). */
@media print {
  body:has(.esp-hero-sob) :is(.masthead, .foot, .toc, .crono-filtros, .comments, #comentarios, .band, .esp-desc, .skip) { display: none !important; }
  body:has(.esp-hero-sob) .esp-hero { min-height: 0; }
  body:has(.esp-hero-sob) .esp-hero .container { padding-top: 24px; }
  body:has(.esp-hero-sob) .esp-video-marco { display: none !important; }
  body:has(.esp-hero-sob) :is(.esp-foto, .esp-docs li, .esp-video) { break-inside: avoid; }
  body:has(.esp-hero-sob) .esp-crono li[hidden] { display: block !important; }
  body:has(.esp-hero-sob) .rmap-geo { position: static; }
  body:has(.esp-hero-sob) .esp-docs img { box-shadow: none; transition: none; }
  body:has(.esp-hero-sob) :is(.esp-docs img, .esp-galeria .esp-foto img, .esp-hero-foto img, img.esp-arte-foto) { aspect-ratio: auto; object-fit: fill; height: auto; }
  body:has(.esp-hero-sob) .esp-hero-sob.con-foto .esp-hero-foto { position: relative; inset: auto; }
  body:has(.esp-hero-sob) .prose a, body:has(.esp-hero-sob) .refs a { color: #000; }
}
/* «Ver datos»: area tactil de al menos 24 px (WCAG 2.5.8), solo en esta investigacion */
body:has(.esp-hero-sob) .chart details > summary { padding-block: 5px; }

/* --------------------------------------------------------------------------
   Investigacion especial «Energía nuclear: el debate que Chile no quiere dar»
   (2026-10-15): escenarios, fichas de actores filtrables, tabla comparativa,
   graficos de columnas y de rangos con rotulo al pasar. Clases nuevas: no
   alteran las investigaciones anteriores.
   -------------------------------------------------------------------------- */
.esp-hero-nuc .esp-claves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .esp-hero-nuc .esp-claves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .esp-hero-nuc .esp-claves { grid-template-columns: 1fr; } }
.esp-hero-nuc .esp-tag { background: #7fc4c9; color: #0c1216; }
.esp-hero-nuc .kicker { color: #9fd3d6; }
.esp-hero-nuc .esp-claves .adv { color: #e6c46a; }
.nuc-escenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 14px; margin: 1.8em 0 2em; max-width: 60rem; }
.nuc-esc { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid #1d4e63; padding: 16px 18px; border-radius: 3px; font: 400 15.5px/1.55 var(--sans); }
.nuc-esc .tag { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #1d4e63; margin: 0 0 6px; }
.nuc-esc h3 { margin: 0 0 10px !important; font: 600 1.15rem/1.3 var(--serif); }
.nuc-esc p { margin: 0 0 .7em; }
.nuc-esc p:last-child { margin-bottom: 0; }
.nuc-actores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.nuc-ficha { background: var(--card); border: 1px solid var(--rule); border-radius: 3px; padding: 16px 18px; font: 400 15px/1.55 var(--sans); }
.nuc-ficha[hidden] { display: none; }
.nuc-ficha h3 { margin: 4px 0 2px !important; font: 600 1.18rem/1.25 var(--serif); }
.nuc-ficha .quien { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.nuc-ficha blockquote { margin: 0 0 10px; padding: 0 0 0 12px; border-left: 3px solid var(--rule-2); font: italic 400 1.02rem/1.5 var(--serif); color: var(--ink); }
.nuc-ficha p { margin: 0 0 .6em; }
.nuc-ficha .analisis { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--rule-2); color: var(--ink-2); }
.nuc-ficha .pos { display: inline-block; margin: 0; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 2px; }
.pos-frenar { background: #f7e1d8; color: #7a2a12; }
.pos-postergar { background: #efe9dc; color: #4a4134; }
.pos-estudiar { background: #dcebe3; color: #154734; }
.nuc-filtro .crono-filtros { margin-top: .4em; }
.esp-crono li[data-t="estado"] .tipo { background: #e0ecef; color: #1d4e63; }
.esp-crono li[data-t="politica"] .tipo { background: #f6ead0; color: #6b4a07; }
.esp-crono li[data-t="mundo"] .tipo { background: #e8e1f0; color: #3d2d57; }
.nuc-sin { margin-top: 0; }
.nuc-comp th[scope="row"] { min-width: 11rem; }
.nuc-comp td, .nuc-escen-tabla td, .nuc-tipos td { vertical-align: top; }
.chart-col g.col, .chart-rng g.rng { cursor: default; }
.chart-col g.col:hover rect:first-of-type { opacity: .82; }
.chart-rng g.rng:hover > rect { fill: rgba(29,78,99,.06); }
.nuc-tip { position: absolute; z-index: 50; max-width: min(22rem, calc(100vw - 16px)); background: #16191d; color: #fff; font: 400 13px/1.4 var(--sans);
  padding: 7px 10px; border-radius: 3px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
@media (max-width: 600px) {
  :is(.nuc-tipos, .nuc-comp, .nuc-escen-tabla) thead { display: none; }
  :is(.nuc-tipos, .nuc-comp, .nuc-escen-tabla) tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.data:is(.nuc-tipos, .nuc-comp, .nuc-escen-tabla) th, table.data:is(.nuc-tipos, .nuc-comp, .nuc-escen-tabla) td { display: block; border: 0; padding: 2px 0; }
  :is(.nuc-tipos, .nuc-comp, .nuc-escen-tabla) th[scope="row"] { font-size: 16px; padding-bottom: 4px; }
  :is(.nuc-tipos, .nuc-comp, .nuc-escen-tabla) td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-3); }
}
body:has(.esp-hero-nuc) .chart details > summary { padding-block: 5px; }
body:has(.esp-hero-nuc) .esp-dato-claro .n { color: var(--ink); }

/* --------------------------------------------------------------------------
   Investigacion especial «China: ¿cuánta tecnología real hay detrás de su
   propaganda de superioridad?» (2026-10-16): matriz de casos filtrable,
   insignias de veredicto, patrones, tablas comparativas. Clases nuevas (chn-):
   no alteran las investigaciones anteriores.
   -------------------------------------------------------------------------- */
.esp-hero-chn .esp-claves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .esp-hero-chn .esp-claves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .esp-hero-chn .esp-claves { grid-template-columns: 1fr; } }
.esp-hero-chn .esp-tag { background: #e0704a; color: #140d0b; }
.esp-hero-chn .kicker { color: #f0a587; }
.esp-hero-chn .esp-claves .adv { color: #e9c07a; }
.chn-v { display: inline-block; min-width: 1.7em; text-align: center; font: 700 12px/1 var(--sans); letter-spacing: .04em; padding: 5px 7px; border-radius: 2px; color: #fff; }
.chn-v .vh { font-weight: 600; letter-spacing: 0; }
.chn-v-A { background: #2f6b4f; } .chn-v-B { background: #56703a; } .chn-v-C { background: #a3441f; }
.chn-v-D { background: #5d646b; } .chn-v-E { background: #6e1d12; }
.chn-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 10px 18px; margin: 1.2em 0 1.6em; max-width: 60rem; font: 400 15px/1.5 var(--sans); }
.chn-cats div { margin: 0; }
.chn-cats dt { font-weight: 700; margin: 0 0 3px; }
.chn-cats dd { margin: 0; color: var(--ink-2); }
.chn-aviso { margin: 1.6em 0; }
.chn-sect td.num, .chn-sect th.num { text-align: right; }
.chn-casos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.chn-caso { background: var(--card); border: 1px solid var(--rule); border-radius: 3px; padding: 16px 18px; font: 400 15px/1.55 var(--sans); scroll-margin-top: 20px; }
.chn-caso[hidden] { display: none; }
.chn-caso-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.chn-caso-cab .sector { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); }
.chn-caso h4 { margin: 2px 0 2px !important; font: 600 1.15rem/1.3 var(--serif); }
.chn-caso .quien { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.chn-caso p { margin: 0 0 .6em; }
.chn-caso blockquote { margin: 0 0 10px; padding: 0 0 0 12px; border-left: 3px solid var(--rule-2); font: italic 400 .98rem/1.5 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.chn-caso blockquote .tipo { font: 400 12px/1.3 var(--sans); font-style: normal; color: var(--ink-3); }
.chn-caso .lim { color: var(--ink-2); }
.chn-caso .analisis { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--rule-2); }
.chn-caso[data-v="C"], .chn-caso[data-v="E"] { border-top: 4px solid #a3441f; }
.chn-caso[data-v="A"] { border-top: 4px solid #2f6b4f; }
.chn-caso[data-v="B"] { border-top: 4px solid #56703a; }
.chn-caso[data-v="D"] { border-top: 4px solid #8a929a; }
.chn-filtro .crono-filtros { margin-top: .4em; }
.chn-tabla td, .chn-tabla th[scope="row"] { vertical-align: top; }
.chn-tabla th[scope="row"] { min-width: 9rem; }
.chn-noconf { margin: 1em 0 1.4em; }
.chn-patrones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 14px; margin: 1.6em 0 2em; max-width: 64rem; }
.chn-patrones section { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid #a3441f; padding: 16px 18px; border-radius: 3px; font: 400 15px/1.55 var(--sans); }
.chn-patrones .tag { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #a3441f; margin: 0 0 6px; }
.chn-patrones h3 { margin: 0 0 8px !important; font: 600 1.12rem/1.3 var(--serif); }
.chn-patrones p { margin: 0; }
.chn-comp { margin: 1.4em 0 2em; }
.chn-comp > summary { cursor: pointer; font: 600 15px/1.4 var(--sans); padding: 8px 0; }
.chn-respuestas h3 { font: 600 1.2rem/1.3 var(--serif); margin: 1.4em 0 .4em; }
.chart-col g.col, .chart-rng g.rng { cursor: default; }
.chn-tip { position: absolute; z-index: 50; max-width: min(22rem, calc(100vw - 16px)); background: #16191d; color: #fff; font: 400 13px/1.4 var(--sans);
  padding: 7px 10px; border-radius: 3px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
@media (max-width: 600px) {
  .chn-tabla thead { display: none; }
  .chn-tabla tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.data.chn-tabla th, table.data.chn-tabla td { display: block; border: 0; padding: 2px 0; }
  .chn-tabla th[scope="row"] { font-size: 16px; padding-bottom: 4px; }
  .chn-tabla td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-3); }
}
body:has(.esp-hero-chn) .chart details > summary { padding-block: 5px; }

/* ===================================================================
   «El precio de caer» (pdc-*): niveles de evidencia y balance final.
   =================================================================== */
.esp-hero-pdc .esp-claves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .esp-hero-pdc .esp-claves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .esp-hero-pdc .esp-claves { grid-template-columns: 1fr; } }
.pdc-n { display: inline-block; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
         padding: 4px 7px 3px; border-radius: 2px; margin-right: 4px; vertical-align: 2px; white-space: nowrap; }
.pdc-n.pdc-ev { background: #1d4e63; color: #fff; }
.pdc-n.pdc-in { background: #f6e7c4; color: #5c3f05; border: 1px solid #d9b25a; }
.pdc-n.pdc-hi { background: #fff; color: #4a5056; border: 1px dashed #8a929a; }
.pdc-niveles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 1.6em 0 2em; }
.pdc-niveles > div { padding: 18px 20px; border-radius: 3px; border: 1px solid var(--rule); background: var(--card); }
.pdc-niveles h3 { margin: 0 0 10px !important; font: 600 1.15rem/1.3 var(--serif); }
.pdc-niveles ul { margin: 0; padding-left: 1.1em; font: 400 15px/1.55 var(--sans); }
.pdc-niveles li { margin: 0 0 .6em; }
.pdc-niveles .pdc-ev { border-top: 4px solid #1d4e63; }
.pdc-niveles .pdc-in { border-top: 4px solid #d9b25a; background: #fffaf0; }
.pdc-niveles .pdc-hi { border-top: 4px dashed #8a929a; }
.pdc-tabla td .meta { font-size: 12.5px; }
body:has(.esp-hero-pdc) .chart details > summary { padding-block: 5px; }
.esp-hero-pdc h1 { max-width: 15ch; }

/* --------------------------------------------------------------------------
   Reportaje «Walter Rauff y los gobiernos chilenos» (2026-11): etiquetas de
   evidencia y de tipo de actuacion, matriz comparativa, tabla de normas y
   fragmentos de documentos. Prefijo rff- (sin colision con otras clases).
   -------------------------------------------------------------------------- */
.esp-hero-rff { min-height: clamp(560px, 82vh, 820px); }
.esp-hero-rff .esp-claves b { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
/* Cronologia de la portada: figura en el flujo, debajo de la introduccion (2026-11-01).
   Antes era parte del SVG de fondo y se superponia al titulo segun el ancho. */
.esp-hero-rff { min-height: 0; }
.esp-hero-rff .container { padding-top: clamp(48px, 9vw, 120px); }
.esp-hero-rff h1 { max-width: 20ch; }
.rff-crono { margin: clamp(22px, 3vw, 34px) 0 clamp(22px, 3vw, 30px); padding: 18px 0 0;
             border-top: 1px solid rgba(255,255,255,.14); color: #d9d3c7; font-family: var(--sans); }
.rff-crono-tit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 30px; }
.rff-crono-tit b { font: 600 14px/1.35 var(--sans); color: #fff; }
.rff-crono-tit span { font: 400 13px/1.4 var(--sans); color: #a9a499; }
.rff-crono-franja { position: relative; height: 14px; background: rgba(255,255,255,.06); }
.rff-crono-gob { position: absolute; top: 0; bottom: 0; background: var(--c); }
.rff-crono-gob + .rff-crono-gob { box-shadow: inset 1px 0 0 #0d0f12; }
.rff-crono-hito { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
                  background: #fff; box-shadow: 0 0 0 2px #0d0f12; }
.rff-crono-hito.rff-ini { margin-left: 0; }
.rff-crono-hito.rff-fin { margin-left: -10px; }
.rff-crono-hito > span { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
                         font: 600 11.5px/1 var(--sans); color: #e8e4dc; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rff-crono-hito.rff-ini > span { left: 0; transform: none; }
.rff-crono-hito.rff-fin > span { left: auto; right: 0; transform: none; }
.rff-crono-gobs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rff-crono-gobs li { display: flex; align-items: center; gap: 6px; font: 400 13px/1.35 var(--sans); }
.rff-crono-gobs li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.rff-crono-gobs b { font-weight: 600; color: #ece8e0; }
.rff-crono-gobs span { color: #a9a499; font-variant-numeric: tabular-nums; }
.rff-crono-hitos { list-style: none; margin: 18px 0 0; padding: 0; display: grid;
                   grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 18px; }
.rff-crono-hitos li { padding-left: 12px; border-left: 2px solid rgba(255,255,255,.28); font: 400 13.5px/1.4 var(--sans); color: #d9d3c7; }
.rff-crono-hitos b { display: block; font: 600 1.15rem/1.15 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.rff-crono-nota { margin: 14px 0 0; font: 400 12px/1.4 var(--sans); color: #8f8a80; }
@media (max-width: 900px) { .rff-crono-hitos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .rff-crono-tit { margin-bottom: 14px; }
  .rff-crono-hito > span { display: none; }
  .rff-crono-hitos { grid-template-columns: 1fr; gap: 8px; }
  .rff-crono-hitos li { display: flex; gap: 10px; align-items: baseline; }
  .rff-crono-hitos b { display: inline; flex: none; font-size: 1.05rem; }
}
.rff-n { display: inline-block; font: 700 10.5px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase;
         padding: 3px 6px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; vertical-align: 1px; }
.rff-doc { color: #1f5e3a; background: #eaf3ec; }
.rff-sec { color: #24527a; background: #e9f0f7; }
.rff-int { color: #5b4a86; background: #f0edf7; }
.rff-con { color: #7a4b05; background: #fbf1df; }
.rff-nd  { color: #4b5057; background: #eeece7; border-style: dashed; }
.rff-t { display: inline-block; font: 600 11px/1.2 var(--sans); padding: 2px 6px; border-radius: 10px; margin-right: 4px;
         color: #fff; vertical-align: 1px; }
.rff-t-jud { background: #3d4a5c; }
.rff-t-eje { background: #8f2a14; }
.rff-t-dip { background: #2f6a6a; }
.rff-t-omi { background: #fff; color: #4b5057; border: 1px dashed #8a8f96; }
.rff-leyenda { font: 400 13.5px/1.6 var(--sans); color: var(--ink-3); margin: 1.2em 0 .4em; }
.rff-leyenda strong { color: var(--ink); margin-right: 4px; }

/* matriz: una ficha por gobierno (tabla semantica; cabecera solo para lectores de pantalla) */
.rff-matriz { font-size: 14px; }
.rff-matriz thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rff-matriz tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 2px;
                       padding: 16px 18px 14px; margin: 0 0 14px; background: var(--card); border: 1px solid var(--rule);
                       border-top: 3px solid #3d4a5c; }
table.data.rff-matriz th, table.data.rff-matriz td { border: 0; padding: 4px 0; }
.rff-matriz tbody th { grid-column: 1 / -1; font: 600 19px/1.25 var(--serif); color: var(--ink); padding-bottom: 6px; }
.rff-matriz tbody th span { display: inline; font: 400 13px/1.4 var(--sans); color: var(--ink-3); margin-left: 8px; }
.rff-matriz td { line-height: 1.5; }
.rff-matriz td[data-h]::before { content: attr(data-h); display: block; font: 700 11px/1.3 var(--sans);
                                  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.rff-matriz td[data-h="Resultado"] { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 4px; }
@media (max-width: 760px) {
  .rff-matriz tbody tr { grid-template-columns: 1fr; padding: 14px 14px 10px; }
}
.rff-normas td, .rff-normas th { font-size: 13.5px; }
@media (max-width: 600px) {
  .rff-normas thead { display: none; }
  .rff-normas tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.data.rff-normas th, table.data.rff-normas td { display: block; border: 0; padding: 2px 0; }
}

.rff-docfig { margin: 1.6em 0 1.8em; max-width: 46rem; }
.rff-docfig img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--rule);
                  box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 10px 12px; box-sizing: border-box; }
.rff-docfig figcaption { font: 400 13px/1.45 var(--sans); color: var(--ink-3); margin-top: 8px; }
