:root {
  --paper: #faf8f3;
  --ink: #1b1a17;
  --muted: #6b675e;
  --rule: #ddd8cc;
  --soft: #efebe1;
  --card: #fff;
  --accent: #b3261e;
  --neg: #c2553d;
  --pos: #3d7a5c;
  --mid: #9a6b12;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.01em;
  --masthead-rule: 3px double var(--ink);
  --headline-weight: 400;
  --header-h: 76px;
  color-scheme: light;
}

/* Temas visuales: "prensa" (por defecto), "moderno" y "noche" */

[data-theme="moderno"],
[data-theme="noche"] {
  --serif: var(--sans);
  --display-weight: 600;
  --display-tracking: -0.022em;
  --masthead-rule: 1px solid var(--rule);
  --headline-weight: 500;
}

[data-theme="moderno"] {
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --rule: #e2e8f0;
  --soft: #f1f5f9;
  --card: #f8fafc;
  --accent: #2563eb;
  --neg: #dc4c3e;
  --pos: #16a34a;
  --mid: #c27c0e;
}

[data-theme="noche"] {
  --paper: #0e1116;
  --ink: #e6e8ec;
  --muted: #8b93a1;
  --rule: #262b34;
  --soft: #1a1f28;
  --card: #151a21;
  --accent: #ff7a5c;
  --neg: #ff7a66;
  --pos: #4cc38a;
  --mid: #e0a84a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

kbd {
  font-family: var(--sans);
  font-size: 11px;
  padding: 0 4px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--card);
}

/* Cabecera */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 24px;
  border-bottom: var(--masthead-rule);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.masthead h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.masthead h1 a {
  text-decoration: none;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daynav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.daynav-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.daynav-btn:hover {
  background: var(--soft);
}

.daynav-btn[aria-disabled="true"] {
  opacity: 0.25;
  pointer-events: none;
}

.daynav-date {
  position: relative;
  font-weight: 500;
  text-align: center;
  min-width: 220px;
  cursor: pointer;
}

.daynav-date select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--soft);
  margin-left: auto;
}

.tabs a {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}

.tabs a[aria-current] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.tools {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.tools a {
  color: var(--muted);
  text-decoration: none;
}

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

.theme-picker select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--soft);
  border: 0;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Layout en columnas */

.app {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(280px, 360px) minmax(0, 1fr);
  height: calc(100dvh - var(--header-h));
}

.col {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

.col + .col {
  border-left: 1px solid var(--rule);
}

.col-headlines {
  padding: 24px 32px;
}

.col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

.app.is-empty .col {
  display: none;
}

/* Columna 1: lista de temas */

.col-list {
  padding: 24px 0;
}

.col-list .col-title,
.list-meta {
  padding: 0 20px;
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.topic-list li {
  border-bottom: 1px solid var(--rule);
}

.topic-list a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 10px 20px 10px 17px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.12s;
}

.topic-list a:hover {
  background: var(--soft);
}

.topic-list a[aria-current] {
  background: var(--soft);
  border-left-color: var(--accent);
}

.item-rank {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 15px;
}

[aria-current] .item-rank {
  color: var(--accent);
}

.item-title {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

[data-level="baja"] {
  --level: var(--pos);
}
[data-level="media"] {
  --level: var(--mid);
}
[data-level="alta"] {
  --level: var(--neg);
}

.item-divergence {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-left: auto;
  background: var(--level);
}

.list-meta {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.coverage-dots {
  display: inline-flex;
  gap: 2px;
}

.coverage-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--muted);
}

.coverage-dots i.on {
  background: var(--ink);
  border-color: var(--ink);
}

/* Columna 2: el tema */

.back {
  display: none;
  margin-bottom: 16px;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}

.topic-rank {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}

.topic-title {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: var(--display-tracking);
  margin: 0 0 14px;
  text-wrap: balance;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.coverage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topic-meta .coverage-dots i {
  width: 8px;
  height: 8px;
}

.divergence {
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
  color: var(--level);
  border: 1px solid currentColor;
}

.topic-summary {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  margin: 18px 0 10px;
  text-wrap: pretty;
}

.topic-note {
  color: var(--muted);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.facts {
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}

.facts:empty {
  display: none;
}

.facts dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.facts dd {
  margin: 2px 0 12px;
  font-weight: 500;
}

.legend {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.legend summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.legend dl {
  margin: 12px 0;
}

.legend dt {
  font-weight: 600;
  color: var(--ink);
}

.legend dd {
  margin: 0 0 8px;
}

.note {
  font-size: 12px;
}

/* Columna 3: titulares */

.headlines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.headline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.outlet {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.headline-body a {
  display: block;
  font-family: var(--serif);
  font-weight: var(--headline-weight);
  font-size: 19px;
  line-height: 1.3;
  text-decoration: none;
  text-wrap: pretty;
}

.headline-body a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.enfoque {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.enfoque::before {
  content: "→ ";
}

.scores {
  display: grid;
  gap: 4px;
  padding-top: 20px;
}

.scale {
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.dots,
.tone-bar {
  display: inline-flex;
  gap: 3px;
}

.dots i {
  width: 14px;
  height: 6px;
  border-radius: 1px;
  background: var(--soft);
}

.dots i.on {
  background: var(--ink);
}

.tone-bar i {
  width: 10px;
  height: 6px;
  border-radius: 1px;
  background: var(--soft);
}

.tone-bar i.mid {
  width: 2px;
  background: var(--muted);
}

.tone-bar i.neg {
  background: var(--neg);
}

.tone-bar i.pos {
  background: var(--pos);
}

.related {
  margin-top: 16px;
}

.related summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.related li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule);
}

.related a {
  font-family: var(--serif);
  font-size: 16px;
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
}

/* Origen, referencia y espacio */

.item-tag {
  padding: 0 5px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[aria-current] .item-tag {
  background: var(--paper);
}

.origin {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 14px;
}

.origin-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.origin[data-type="declaracion"] b {
  color: var(--accent);
}

.reference {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--soft);
}

.reference .outlet {
  color: var(--muted);
}

.reference a {
  font-family: var(--serif);
  font-weight: var(--headline-weight);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.reference a:hover {
  text-decoration: underline;
}

.block-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.space {
  margin: 0 0 20px;
}

.space-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.space-list li {
  display: grid;
  grid-template-columns: 96px 1fr 76px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.space-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-bar {
  height: 8px;
  border-radius: 2px;
  background: var(--soft);
  overflow: hidden;
}

.space-bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  opacity: 0.75;
}

.space-bar i.lead {
  background: var(--accent);
  opacity: 1;
}

.space-bar.rss {
  height: auto;
  background: none;
  font-size: 11px;
  color: var(--muted);
}

.space-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.lead-tag {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.badges:empty {
  display: none;
}

.badge {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  background: var(--soft);
  color: var(--muted);
}

.badge.lead {
  background: var(--accent);
  color: var(--paper);
}

.badge.quote {
  border: 1px solid var(--rule);
  background: none;
}

/* Vista de matriz */

.matrix-view {
  display: none;
  padding: 24px;
}

body[data-view="matrix"] .app {
  display: none;
}

body[data-view="matrix"] .matrix-view {
  display: block;
}

.matrix-help {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.legend-lead,
.legend-rss {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: -1px;
  background: var(--accent);
}

.legend-rss {
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.matrix-scroll {
  overflow-x: auto;
}

.matrix {
  display: grid;
  grid-template-columns: minmax(260px, 440px) repeat(var(--cols), 44px);
  align-items: stretch;
  font-size: 13px;
}

.m-col-label {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 120px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

.m-corner {
  border-bottom: 1px solid var(--ink);
}

.m-col-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.m-row-label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 16px 6px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: var(--headline-weight);
  font-size: 15px;
  line-height: 1.25;
}

a.m-row-label:hover {
  text-decoration: underline;
}

.m-cell {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.m-cell i {
  display: block;
  background: var(--ink);
  border-radius: 2px;
}

.m-cell i.lead {
  background: var(--accent);
}

.m-cell i.rss {
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

a.m-cell:hover {
  background: var(--soft);
}

.m-cell.m-empty::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rule);
}

.m-sep {
  grid-column: 1 / -1;
  padding: 28px 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

.m-stat-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.m-stat {
  display: grid;
  place-items: center;
  min-height: 32px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.m-stat.neg {
  color: var(--neg);
  font-weight: 600;
}

.m-stat.pos {
  color: var(--pos);
  font-weight: 600;
}

.m-stat.heat-1 {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.m-stat.heat-2 {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.m-stat.heat-3 {
  background: color-mix(in srgb, var(--accent) 36%, transparent);
}

/* Página de metodología */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  font-size: 16px;
  line-height: 1.6;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 26px;
  margin: 40px 0 10px;
}

.doc h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 28px 0 8px;
}

.doc li {
  margin-bottom: 6px;
}

.doc-dl dt {
  font-weight: 600;
  margin-top: 12px;
}

.doc-dl dd {
  margin: 2px 0 0;
  color: var(--muted);
}

/* Pantallas medianas: lista + detalle (el tema encima de los titulares) */

@media (max-width: 1240px) {
  .tagline {
    display: none;
  }
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .col-list {
    grid-row: 1 / span 2;
  }

  .col-info {
    grid-column: 2;
    grid-row: 1;
    max-height: 45dvh;
    border-bottom: 1px solid var(--rule);
  }

  .col-headlines {
    grid-column: 2;
    grid-row: 2;
  }

  .col-info,
  .col-headlines {
    padding: 20px 28px;
  }

  .col-info .topic-rank {
    display: none;
  }

  .col-info .legend {
    display: none;
  }

  .facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    align-items: baseline;
    margin-bottom: 0;
  }

  .facts dd {
    margin: 0;
  }

  .space {
    margin-top: 20px;
  }
}

/* Móvil: o la lista o el detalle */

@media (max-width: 720px) {
  .masthead {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 8px;
    height: auto;
    padding: 12px 16px 10px;
  }

  .masthead h1 {
    font-size: 28px;
  }

  .tabs {
    order: 1;
    margin: 0;
  }

  .tools {
    order: 2;
  }

  .daynav {
    order: 3;
    width: 100%;
  }

  .tagline {
    display: none;
  }

  .daynav {
    justify-content: center;
  }

  .matrix-view {
    padding: 16px;
  }

  .matrix {
    grid-template-columns: 200px repeat(var(--cols), 40px);
  }

  .app {
    display: block;
    height: auto;
  }

  .col {
    overflow: visible;
    max-height: none !important;
    border: 0 !important;
  }

  .col-info,
  .col-headlines {
    padding: 20px 16px 0;
  }

  .col-list {
    padding: 20px 0 32px;
  }

  .app[data-view="list"] .col-info,
  .app[data-view="list"] .col-headlines,
  .app[data-view="detail"] .col-list {
    display: none;
  }

  .back {
    display: inline-block;
  }

  .col-info .topic-rank {
    display: block;
  }

  .keys {
    display: none;
  }

  .topic-title {
    font-size: 26px;
  }

  .headline {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scores {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 4px 14px;
    padding-top: 0;
  }

  .scale {
    grid-template-columns: auto auto;
  }

  .col-headlines {
    padding-bottom: 48px;
  }
}

/* ------------------------------------------------------------------ */
/* Tema "limpio": menos líneas, menos datos a la vista, más aire.      */
/* Las valoraciones se ven como etiquetas de texto solo cuando son     */
/* destacables; el resto del detalle queda para los otros temas.       */
/* ------------------------------------------------------------------ */

.notes {
  display: none;
}

[data-theme="limpio"] {
  --paper: #ffffff;
  --ink: #161616;
  --muted: #8c8c8c;
  --rule: #efefef;
  --soft: #f5f5f4;
  --card: #fafafa;
  --accent: #ef4b2c;
  --neg: #d9482b;
  --pos: #1f9d61;
  --mid: #c98a12;
  --serif: var(--sans);
  --display-weight: 600;
  --display-tracking: -0.025em;
  --headline-weight: 500;
  --masthead-rule: 0;
  --header-h: 72px;
}

[data-theme="limpio"] .masthead {
  padding: 0 32px;
}

[data-theme="limpio"] .masthead h1 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

[data-theme="limpio"] .tagline {
  display: none;
}

[data-theme="limpio"] .tabs {
  background: none;
}

[data-theme="limpio"] .tabs a[aria-current] {
  background: var(--soft);
  box-shadow: none;
}

[data-theme="limpio"] .theme-picker select {
  background: none;
  color: var(--muted);
}

/* Columnas sin bordes: las separa el espacio */

[data-theme="limpio"] .col + .col {
  border-left: 0;
}

[data-theme="limpio"] .col-list {
  padding: 16px 12px 32px;
}

[data-theme="limpio"] .col-info {
  padding: 28px 32px;
}

[data-theme="limpio"] .col-headlines {
  padding: 28px 40px 48px 24px;
}

[data-theme="limpio"] .col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Lista */

[data-theme="limpio"] .col-list .col-title,
[data-theme="limpio"] .list-meta {
  padding: 0 12px;
}

[data-theme="limpio"] .topic-list,
[data-theme="limpio"] .topic-list li {
  border: 0;
}

[data-theme="limpio"] .topic-list a {
  grid-template-columns: 1fr;
  padding: 10px 12px;
  border-left: 0;
  border-radius: 8px;
}

[data-theme="limpio"] .topic-list a[aria-current] {
  background: var(--soft);
}

[data-theme="limpio"] .item-rank,
[data-theme="limpio"] .item-meta .coverage-dots,
[data-theme="limpio"] .item-divergence {
  display: none;
}

[data-theme="limpio"] .item-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

[data-theme="limpio"] .item-meta {
  margin-top: 3px;
}

[data-theme="limpio"] .item-count::after {
  content: " medios";
}

[data-theme="limpio"] .item-tag {
  padding: 0;
  background: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

[data-theme="limpio"] .item-tag::before {
  content: "· ";
}

/* Ficha del tema */

[data-theme="limpio"] .topic-rank,
[data-theme="limpio"] .topic-meta .coverage-dots,
[data-theme="limpio"] .facts,
[data-theme="limpio"] .legend {
  display: none;
}

[data-theme="limpio"] .topic-title {
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 12px;
}

[data-theme="limpio"] .divergence {
  border: 0;
  padding: 0;
}

[data-theme="limpio"] .divergence::before {
  content: "· ";
  color: var(--muted);
}

[data-theme="limpio"] .origin {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

[data-theme="limpio"] .origin b {
  font-weight: 500;
  color: var(--ink);
}

[data-theme="limpio"] .topic-summary {
  font-size: 17px;
  line-height: 1.55;
  margin: 22px 0 12px;
}

[data-theme="limpio"] .topic-note {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}

[data-theme="limpio"] .reference {
  background: none;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--rule);
  border-radius: 0;
  margin-bottom: 28px;
}

[data-theme="limpio"] .reference a {
  font-size: 15px;
}

[data-theme="limpio"] .space-list {
  gap: 6px;
}

[data-theme="limpio"] .space-bar {
  height: 4px;
  border-radius: 2px;
}

[data-theme="limpio"] .space-bar i {
  opacity: 0.35;
}

[data-theme="limpio"] .space-bar.rss {
  height: auto;
}

[data-theme="limpio"] .space-bar i.lead {
  opacity: 1;
}

/* Titulares: sin separadores, sin barritas; etiquetas solo si destacan */

[data-theme="limpio"] .headlines {
  border: 0;
  display: grid;
  gap: 30px;
}

[data-theme="limpio"] .headline {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
}

[data-theme="limpio"] .scores,
[data-theme="limpio"] .badge:not(.lead),
[data-theme="limpio"] .enfoque::before {
  display: none;
}

[data-theme="limpio"] .outlet {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

[data-theme="limpio"] .headline-body a {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

[data-theme="limpio"] .enfoque {
  margin-top: 6px;
  font-size: 14px;
}

[data-theme="limpio"] .badges {
  margin-top: 0;
  position: relative;
  top: -1px;
}

[data-theme="limpio"] .badge.lead {
  background: none;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="limpio"] .notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

[data-theme="limpio"] .notes:empty {
  display: none;
}

[data-theme="limpio"] .note-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  color: var(--ink);
}

[data-theme="limpio"] .note-chip.neg {
  background: color-mix(in srgb, var(--neg) 12%, transparent);
  color: var(--neg);
}

[data-theme="limpio"] .note-chip.pos {
  background: color-mix(in srgb, var(--pos) 12%, transparent);
  color: var(--pos);
}

[data-theme="limpio"] .related {
  margin-top: 32px;
}

/* Matriz sin rejilla */

[data-theme="limpio"] .m-col-label,
[data-theme="limpio"] .m-corner,
[data-theme="limpio"] .m-sep {
  border-bottom-color: var(--rule);
}

[data-theme="limpio"] .m-row-label,
[data-theme="limpio"] .m-cell,
[data-theme="limpio"] .m-stat {
  border: 0;
}

[data-theme="limpio"] .m-row-label {
  font-size: 14px;
}

[data-theme="limpio"] .m-row-label .item-rank {
  display: none;
}

[data-theme="limpio"] .m-cell i {
  border-radius: 3px;
  opacity: 0.85;
}

@media (max-width: 1100px) {
  [data-theme="limpio"] .col-info {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  [data-theme="limpio"] .masthead {
    padding: 12px 16px 8px;
  }

  [data-theme="limpio"] .col-info,
  [data-theme="limpio"] .col-headlines {
    padding: 20px 16px 0;
  }

  [data-theme="limpio"] .col-headlines {
    padding-bottom: 48px;
  }

  [data-theme="limpio"] .topic-title {
    font-size: 26px;
  }

  [data-theme="limpio"] .headline-body a {
    font-size: 19px;
  }
}
