/* The hub's colours (oriacgimeno.com, DOCUMENTACION/coherencia-visual-audit-hub.md
   in geo-tool) and audit's text tokens; system fonts, nothing fetched. */
:root {
  --tinta: #1e3a5f;
  --papel: #faf7f2;
  --gris: #6b645a;
  --texto: #1a1a18;
  --cuerpo: #42423e;
  --borde: #e4e4e0;
  --fondo-tarjeta: #ffffff;
  --rojo: #912018;
  --rojo-fondo: #fef3f2;
  --rojo-borde: #fecdca;
  --bing: #0e7090;
  --resalte: #eff4ff;
}
/* Dark: the same tokens, read again by the charts when the scheme changes. */
@media (prefers-color-scheme: dark) {
  :root {
    --tinta: #9cc0ea;
    --papel: #14171c;
    --gris: #a39c92;
    --texto: #f2f0ec;
    --cuerpo: #d6d3cd;
    --borde: #343a43;
    --fondo-tarjeta: #1c2027;
    --rojo: #fda29b;
    --rojo-fondo: #2a1715;
    --rojo-borde: #7a271a;
    --bing: #5fc4e0;
    --resalte: #1e2a3d;
  }
}
:root { color-scheme: light dark; }
* { box-sizing: border-box; }
/* Focus: a 3px ring in the ink colour, at least 3:1 against paper and cards
   in light and dark (build.test.mjs measures it). */
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--cuerpo);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cabecera, main, .pie { max-width: 840px; margin: 0 auto; padding: 0 16px; }
.cabecera { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
/* The brand and the language pills as audit has them (geo-tool,
   src/servicio/web/index.html: .marca, .pildora); audit is the reference.
   The mark is audit's favicon.svg, the same file. */
.marca { display: flex; align-items: center; gap: .625rem; font-weight: 700; color: var(--tinta); margin: 0; }
.marca img { width: 2rem; height: 2rem; flex: none; }
.lang ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 1.75rem; padding-inline: .5rem; border-radius: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .6875rem; font-weight: 500; letter-spacing: .09375rem;
  color: var(--gris); text-decoration: none;
  transition: background-color 150ms cubic-bezier(0.2, 0.7, 0.2, 1), color 150ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lang a:hover, .lang a:focus-visible { color: var(--tinta); }
.lang a[aria-current="page"] { background: var(--tinta); color: var(--papel); }
/* under the language pills, only while something is loaded */
.aviso-idioma { max-width: 840px; margin: 6px auto 0; padding: 0 16px; text-align: right; font-size: 14px; color: var(--gris); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { color: var(--texto); font-size: 30px; line-height: 1.2; margin: 32px 0 16px; }
h2 { color: var(--texto); font-size: 20px; margin: 0 0 8px; }
h3 { color: var(--texto); font-size: 16px; margin: 16px 0 8px; }
.soltar {
  border: 2px dashed var(--gris); border-radius: 9px; padding: 28px 16px; text-align: center;
  background: var(--fondo-tarjeta); margin: 24px 0 12px;
}
.soltar.encima { border-color: var(--tinta); background: var(--resalte); }
.soltar p { margin: 0 0 16px; font-weight: 600; color: var(--texto); }
.botones { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.boton { display: inline-block; cursor: pointer; padding: 8px 16px; border-radius: 6px; background: var(--tinta); color: var(--papel); font-weight: 600; }
.boton.secundario { background: transparent; color: var(--tinta); border: 1px solid var(--tinta); }
/* the file inputs are visually hidden, not hidden: Tab reaches them and
   their label shows the ring */
.boton:focus-within { outline: 3px solid var(--tinta); outline-offset: 2px; }
/* Privacy and how to check it: the page's central claim, as its own section. */
.privacidad {
  background: var(--fondo-tarjeta); border: 1px solid var(--borde); border-top: 4px solid var(--tinta);
  border-radius: 9px; padding: 20px 24px; margin: 16px 0 8px; color: var(--cuerpo);
}
.privacidad h2 { font-size: 22px; margin: 0 0 8px; }
.privacidad h3 { margin: 16px 0 8px; }
.privacidad p { margin: 0 0 8px; }
.verificar { margin: 0 0 12px; padding-left: 20px; }
.verificar li { margin: 0 0 6px; }
.privacidad a { color: var(--tinta); }
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.92em;
  background: var(--resalte); color: var(--texto); padding: 1px 5px; border-radius: 4px; white-space: nowrap;
}
/* the served files, folded: open or download each one, and check its hash */
.transparencia { margin: 0 0 12px; }
.transparencia summary { cursor: pointer; color: var(--tinta); font-weight: 600; margin-bottom: 8px; }
.ficheros { list-style: none; margin: 0 0 8px; padding: 0; }
.ficheros li { margin: 0 0 4px; }
/* the command is long: it wraps on a phone instead of widening the page */
.transparencia p code { white-space: normal; overflow-wrap: anywhere; }
.privacidad .limite { font-weight: 600; color: var(--texto); border-top: 1px solid var(--borde); padding-top: 12px; margin: 0; }
.enlace { background: none; border: 0; padding: 0; color: var(--tinta); text-decoration: underline; font: inherit; cursor: pointer; }
.resultados { display: grid; gap: 16px; margin: 24px 0 8px; outline: none; }
/* min-width: 0: a grid item would otherwise grow to its widest table (v17: seven columns); the table scrolls in its box */
.tarjeta { min-width: 0; background: var(--fondo-tarjeta); border: 1px solid var(--borde); border-left: 4px solid var(--tinta); border-radius: 6px; padding: 16px 20px; }
.tarjeta.bing, .tarjeta.bing-rico { border-left-color: var(--bing); }
/* a warning read with the figures (the mapping is a sample): body type, bold, a rule */
.aviso { font-weight: 600; border-left: 4px solid var(--bing); padding-left: 12px; }
.tarjeta.par { border-left-color: var(--gris); font-size: 14px; }
.tarjeta.rechazo { border-color: var(--rojo-borde); border-left-color: var(--rojo); background: var(--rojo-fondo); color: var(--rojo); }
.tarjeta.rechazo h2 { color: var(--rojo); }
.tarjeta p { margin: 0 0 8px; }
.tabla { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--borde); }
td.url { word-break: break-all; }
td.n, th:last-child { text-align: right; white-space: nowrap; }
/* The card's notes: what the number says and does not say, in body type. */
.notas-titulo { margin: 12px 0 6px; }
.notas { color: var(--cuerpo); margin: 0 0 8px; padding-left: 20px; }
.notas li { margin: 0 0 6px; }
/* a chart's own notes (0 and few points), small, under the chart */
.notas-grafico { font-size: 14px; color: var(--gris); margin: 8px 0 0; padding-left: 18px; }
/* The figures and the charts (only on cards with data). */
.cifras { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 4px 0 12px; }
.cifra { margin: 0; display: flex; flex-direction: column; }
.cifra .valor { font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--texto); font-variant-numeric: tabular-nums; }
.cifra .etiqueta { font-size: 14px; color: var(--gris); }
.grafico { margin: 16px 0 0; }
.grafico figcaption { font-weight: 600; color: var(--texto); margin: 0 0 8px; }
.lienzo { position: relative; width: 100%; }
.numeros, .lista-paginas { margin-top: 8px; font-size: 14px; }
.numeros summary, .lista-paginas summary { cursor: pointer; color: var(--tinta); }
.lista-paginas summary { font-weight: 600; font-size: 16px; }
.numeros .tabla, .lista-paginas .tabla { max-height: 320px; overflow-y: auto; margin-top: 8px; }
td.fecha { white-space: nowrap; }
.como { margin-top: 32px; }
.pie { border-top: 1px solid var(--borde); margin-top: 40px; padding-top: 16px; padding-bottom: 32px; font-size: 14px; color: var(--gris); }
.pie h2 { font-size: 14px; }
.pie a { color: var(--tinta); }
@media (max-width: 640px) { h1 { font-size: 24px; } .marca img { width: 1.5rem; height: 1.5rem; } }
