/* Lupa Municipal: one quiet typographic system for every page. Serif text, monospaced figures, thin rules, no boxes.
   Pages: index (map, ranking, groups, worst lists), town (the full record), hallazgos (findings), fuentes (sources). */
:root {
  --bg: #FFFFFF; --ink: #1A1A1A; --muted: #595959; --faint: #8A8A8A; --line: #DCDCDC; --rule: #1A1A1A; --wash: #F4F4F4;
  --link: #8E3B22; --sel: #FFF4E8;
  --s1: #B23A2C; --s2: #D4793A; --s3: #CFAE3F; --s4: #86B46E; --s5: #3E8A5C;
  --good: #3E8A5C; --warn: #A76A14; --bad: #B23A2C;
  --f-text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 68ch; --z-nav: 10; --z-menu: 20;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414; --ink: #ECECEC; --muted: #B0B0B0; --faint: #808080; --line: #333333; --rule: #ECECEC; --wash: #1E1E1E;
    --link: #E08A6A; --sel: #2A2218;
    --s1: #D9604F; --s2: #E09055; --s3: #D7BC5A; --s4: #8FBF7A; --s5: #5AAE7C; --good: #5AAE7C; --warn: #D9A450; --bad: #D9604F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141414; --ink: #ECECEC; --muted: #B0B0B0; --faint: #808080; --line: #333333; --rule: #ECECEC; --wash: #1E1E1E;
  --link: #E08A6A; --sel: #2A2218;
  --s1: #D9604F; --s2: #E09055; --s3: #D7BC5A; --s4: #8FBF7A; --s5: #5AAE7C; --good: #5AAE7C; --warn: #D9A450; --bad: #D9604F;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: 17px; line-height: 1.5; font-feature-settings: "onum" 0; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.1; }
h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 4.6vw, 52px); }
h2 { font-size: 26px; margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--rule); }
h3 { font-size: 19px; font-style: italic; font-weight: 500; margin-top: 26px; }
h4 { font-size: 17px; font-style: italic; font-weight: 500; margin-top: 18px; }
.accent { color: var(--link); }
p { margin: 10px 0 0; text-wrap: pretty; }
p, li, td, th, .hsay, .hint { max-width: var(--measure); }
small, .hint { font-size: 14px; color: var(--muted); }
.hint { display: block; margin-top: 8px; line-height: 1.45; }
.hint a, small a { color: var(--muted); }
strong, b { font-weight: 600; }
.num, .c, .val, td.num, .hv, .hn, .sc, .n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.page { max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; }
@media (max-width: 600px) { .page { padding: 0 16px 56px; } body { font-size: 16px; } h1 { font-size: 28px; } }

/* top navigation */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: var(--bg); border-bottom: 1px solid var(--rule); }
@media (max-width: 600px) { .nav { position: static; } }   /* on phones the wrapped bar would cover a third of the screen */
.nav .row { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: baseline; gap: 10px 28px; flex-wrap: wrap; }
@media (max-width: 600px) { .nav .row { padding: 10px 16px; gap: 8px 18px; } }
.nav .row { align-items: center; }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 22px; height: 22px; }
.nav a.item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; transition: background .15s ease-out, border-color .15s ease-out; }
.nav a.item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a.item:hover { background: var(--wash); }
.nav a.item[aria-current="page"] { background: var(--ink); color: var(--bg); }
.search { position: relative; flex: 0 1 300px; min-width: 180px; }
.search input { width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.search ul { position: absolute; z-index: var(--z-menu); left: 0; right: 0; top: calc(100% + 2px); list-style: none; margin: 0; padding: 4px 0; background: var(--bg); border: 1px solid var(--line); max-height: 320px; overflow: auto; }
.search li button, .search li span { width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.search li button:hover, .search li button:focus-visible { background: var(--wash); outline: none; }
.search li small { color: var(--muted); }

/* intro */
.lede { font-size: 20px; max-width: 62ch; margin: 28px 0 0; }
.lede a { color: var(--ink); }

/* map */
.map { margin-top: 24px; height: clamp(320px, 50vw, 520px); background: var(--wash); }
.leaflet-container { font-family: var(--f-text); background: var(--wash) !important; }
.leaflet-tooltip { font-family: var(--f-text); font-size: 13px; border-radius: 0; }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.ctl { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: baseline; }
.seg button { background: none; border: 0; padding: 2px 0; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; font-size: 14px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.thr { display: flex; gap: 10px; align-items: center; flex: 1 1 240px; }
.thr input { flex: 1; accent-color: var(--ink); min-width: 120px; }
.thr b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.legend .lg { font: inherit; color: inherit; background: none; border: 0; padding: 2px 0; cursor: pointer; border-bottom: 1px solid transparent; }
.legend .lg:hover, .legend .lg[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.legend i, .chip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* two columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* filters + ranking */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-top: 14px; }
.filters label, .hctl label, .hpick label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); min-width: 0; }
select { padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 16px; max-width: 100%; border-radius: 0; }
.stat { font-size: 14px; color: var(--muted); margin-top: 8px; }
.rank { list-style: none; margin: 10px 0 0; padding: 0; max-height: 560px; overflow: auto; }
.rank li button { width: 100%; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 90px 2.6em; gap: 10px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 2px; cursor: pointer; text-align: left; font-size: 16px; }
.rank li button:hover { background: var(--wash); }
.rank li button[aria-current="true"] { background: var(--sel); }
.rank .n { font-size: 13px; color: var(--muted); }
.rank .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .nm small { color: var(--muted); font-size: 13px; }
.bar { height: 5px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; }
.rank .sc { text-align: right; }
.more-btn { color: var(--muted); }

/* tabs as underlined words */
.tabs { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 10px; }
.tabs button { background: none; border: 0; padding: 3px 0; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; font-size: 15px; text-align: left; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* clickable lists of towns (worst, demand, Hallazgos) */
.worst { list-style: none; margin: 12px 0 0; padding: 0; }
.worst button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 7px 2px; cursor: pointer; text-align: left; font-size: 16px; }
.worst button:hover { background: var(--wash); }
.worst .c { font-weight: 500; white-space: nowrap; }
.worst small { color: var(--muted); font-size: 13px; }
.worst .hfief .c, .hfief .c { font-size: 13px; color: var(--muted); font-weight: 400; font-family: var(--f-text); }
@media (max-width: 600px) { .worst.hfief button, .worst.hlist button { grid-template-columns: minmax(0, 1fr); } }
.hflag { color: var(--bad); font-weight: 600; }

/* tables */
.tablewrap { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 1px solid var(--rule); font-weight: 400; font-style: italic; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; }
table.agg { min-width: 720px; }
table.agg th button { all: unset; cursor: pointer; }
table.agg th[aria-sort] button { color: var(--ink); font-style: normal; }
table.agg th[aria-sort] button::after { content: " ↓"; }
table.agg tbody tr { cursor: pointer; }
table.agg tbody tr:hover { background: var(--wash); }
table.agg tbody tr.few td { color: var(--muted); }
table.agg .scorecell { display: inline-grid; grid-template-columns: 2.2em 60px; gap: 8px; align-items: center; }
td.w { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* town page */
.town { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px 56px; align-items: start; }
@media (max-width: 960px) { .town { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: 72px; font-size: 14px; padding-top: 28px; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0 3px 10px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }
.toc .tv { color: var(--faint); font-family: var(--f-mono); font-size: 12px; margin-left: 6px; }
.place { font-size: 15px; color: var(--muted); margin-top: 28px; }
.place a { color: var(--muted); }
.meta { margin-top: 8px; color: var(--muted); font-size: 16px; }
.meta b { color: var(--ink); font-weight: 600; }
.scorehead { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; margin-top: 22px; }
.score { font-family: var(--f-mono); font-size: 56px; line-height: 1; font-weight: 500; }
.score small { font-family: var(--f-text); font-size: 16px; color: var(--muted); margin-left: 8px; }
.places { font-size: 15px; color: var(--muted); display: grid; gap: 1px; }
.places b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; }
table.meas { margin-top: 14px; }
table.meas td:first-child { width: 14px; padding-right: 8px; }
table.meas .st { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; }
.st.ok { background: var(--good); } .st.mid { background: var(--warn); } .st.bad { background: var(--bad); } .st.na { background: var(--line); }
table.meas td.val { text-align: right; white-space: nowrap; font-weight: 500; }
table.meas .why { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
table.meas .why a { color: var(--muted); }
.ok-t { color: var(--good); } .mid-t { color: var(--warn); } .bad-t { color: var(--bad); }
section.feat h2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; align-items: baseline; }
section.feat h2 .sum { font-family: var(--f-mono); font-size: 15px; font-weight: 500; color: var(--muted); }
section.feat table { font-size: 14px; max-width: 60ch; }
section.feat svg { margin-top: 10px; }
.ask { margin-top: 44px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ask ul { margin: 8px 0 0; padding-left: 20px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 14px; }
.btn { border: 1px solid var(--ink); background: none; color: var(--ink); padding: 7px 12px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; border-radius: 3px; }
.btn:hover { background: var(--wash); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--ink); opacity: .9; }
.btn.primary[aria-pressed="true"] { background: none; color: var(--muted); border-color: var(--line); cursor: default; }
.count { font-size: 14px; color: var(--muted); }
.letter textarea { width: 100%; min-height: 240px; font-family: var(--f-mono); font-size: 13px; line-height: 1.55; padding: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; margin-top: 8px; }
.toast { font-size: 14px; color: var(--good); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }

/* Hallazgos */
.hwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 48px; align-items: start; margin-top: 20px; }
@media (max-width: 900px) { .hwrap { grid-template-columns: minmax(0, 1fr); } }
.hwrap #htabs { display: flex; flex-direction: column; gap: 0; margin: 0; position: sticky; top: 72px; }
.hwrap #htabs button { padding: 5px 0 5px 10px; border: 0; border-left: 1px solid var(--line); font-size: 15px; }
.hwrap #htabs button[aria-selected="true"] { border-left-color: var(--ink); }
@media (max-width: 900px) { .hwrap #htabs { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 16px; } .hwrap #htabs button { border-left: 0; border-bottom: 1px solid transparent; padding: 3px 0; } .hwrap #htabs button[aria-selected="true"] { border-bottom-color: var(--ink); } }
.hctl { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: end; margin-top: 18px; }
.hsize { display: flex; gap: 0 14px; }
.hpick { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 40px; margin-top: 6px; }
.hchart { margin: 12px 0 0; min-width: 0; }
.hchart figcaption { font-style: italic; font-size: 16px; margin-bottom: 6px; }
.hchart figcaption .hint { display: inline; font-style: normal; }
.hrow { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(30px, 1fr) 5.2em 3.6em; gap: 8px; align-items: center; font-size: 14px; padding: 2px 0; }
.hrow .hg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .hb { height: 8px; background: var(--wash); overflow: hidden; }
.hrow .hb span { display: block; height: 100%; }
.hrow .hv { text-align: right; white-space: nowrap; }
.hrow .hn { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.hrow.few { color: var(--muted); }
.hrow.few .hb span { opacity: .45; }
.hsay { margin: 8px 0 0; font-size: 16px; }
.hsub { margin-top: 28px; }
.hnote { margin-top: 10px; }
.hcave { margin: 22px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.hrow .hb.hstk { display: flex; height: 14px; }
.hstk span { flex: none; font: 600 10px/14px var(--f-mono); color: var(--bg); text-align: center; overflow: hidden; }
.hstk .ok, .hkey .ok { background: var(--good); } .hstk .late, .hkey .late { background: var(--warn); } .hstk .never, .hkey .never { background: var(--bad); }
.hrow .hbad { color: var(--bad); font-weight: 600; }
.hkey { margin: 0 0 6px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.hkey i { display: inline-block; width: 10px; height: 10px; margin-right: -6px; }
:root { --hbar: #7A7A7A; }
@media (max-width: 480px) { .hrow { grid-template-columns: minmax(0, 6.8em) minmax(30px, 1fr) 5.4em 3.1em; gap: 6px; font-size: 13px; } }

/* sources page */
.src dl { margin: 10px 0 0; }
.src dt { font-weight: 600; margin-top: 16px; }
.src dd { margin: 2px 0 0; max-width: var(--measure); color: var(--muted); font-size: 15px; }
.src dd a { color: var(--muted); }
.cov { margin-top: 12px; }

footer { margin-top: 64px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); max-width: var(--measure); }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* web layer: hero, figures, gauge, buttons */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: stretch; margin-top: 36px; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { margin-top: 8px; }
.hero .lede { font-size: 18px; margin-top: 16px; max-width: 48ch; }
.hero .map { margin-top: 0; height: 100%; min-height: clamp(360px, 46vw, 560px); }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.bigsearch { position: relative; margin-top: 22px; max-width: 480px; }
.bigsearch input { width: 100%; padding: 13px 16px 13px 42px; border: 1px solid var(--ink); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 17px; font-family: var(--f-display); }
.bigsearch input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.bigsearch svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.bigsearch ul { position: absolute; z-index: var(--z-menu); left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; max-height: 320px; overflow: auto; box-shadow: 0 6px 8px -6px rgba(0,0,0,.2); }
.bigsearch li button, .bigsearch li span { width: 100%; text-align: left; background: none; border: 0; padding: 8px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.bigsearch li button:hover, .bigsearch li button:focus-visible { background: var(--wash); outline: none; }
.bigsearch li small { color: var(--muted); }
.figures { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 28px; }
.figures div { display: grid; gap: 2px; }
.figures b { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.figures small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gauge { position: relative; height: 8px; border-radius: 4px; margin-top: 14px; max-width: 520px;
  background: linear-gradient(90deg, var(--s1) 0 45%, var(--s2) 45% 60%, var(--s3) 60% 75%, var(--s4) 75% 90%, var(--s5) 90% 100%); }
.gauge i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); transform: translate(-50%, -50%); }
.gauge small { position: absolute; top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.band { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 500; font-size: 14px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.band i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.btn { font-family: var(--f-display); font-weight: 500; border-radius: 8px; padding: 8px 14px; transition: background .15s ease-out, color .15s ease-out; }
.btn.primary { background: var(--link); border-color: var(--link); color: #fff; }
.btn.primary:hover { opacity: 1; background: var(--ink); border-color: var(--ink); }
.seg button, .tabs button { font-family: var(--f-display); }
section.feat h2 .sum { font-family: var(--f-mono); font-weight: 500; }
.scorehead .score { font-family: var(--f-display); font-weight: 700; font-size: 64px; letter-spacing: -.03em; }
.rank li button, .worst button { transition: background .12s ease-out; }
.hwrap #htabs button { font-family: var(--f-display); font-size: 14px; }
.scorehead { align-items: center; gap: 10px 20px; }
.scorehead .score small { font-family: var(--f-text); letter-spacing: 0; font-weight: 400; }

/* footnotes */
.hint.fn { display: none; }
sup.fnref { font-family: var(--f-mono); font-size: 11px; line-height: 0; margin-left: 2px; vertical-align: super; }
sup.fnref a { color: var(--link); text-decoration: none; padding: 0 2px; }
sup.fnref a:hover { text-decoration: underline; }
.notes ol { margin: 10px 0 0; padding-left: 26px; font-size: 14px; color: var(--muted); max-width: var(--measure); }
.notes li { margin-top: 8px; line-height: 1.45; }
.notes li:target { color: var(--ink); }
.notes a { color: var(--muted); }
.notes .fnback { text-decoration: none; margin-left: 4px; }
.beta { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; padding: 3px 9px; border: 2px solid var(--link); color: var(--link); border-radius: 4px; margin-right: auto; margin-left: -16px; }
@media (max-width: 600px) { .beta { margin-left: 0; } }
.wordmark { margin-right: 10px; }

/* drill-down from Hallazgos bars */
.hrow.drill { cursor: pointer; border-radius: 3px; }
.hrow.drill:hover, .hrow.drill:focus-visible { background: var(--wash); }
.hrow.drill.open { background: var(--sel); }
.hdrill:empty { display: none; }
.hdrill { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.hdhead { font-size: 14px; margin: 0; }
.hdlist { margin-top: 4px; }
.hdlist button { padding: 5px 2px; font-size: 15px; }

/* Nuevo (changelog) */
.changelog { list-style: none; margin: 28px 0 0; padding: 0; max-width: 760px; }
.changelog li { display: grid; grid-template-columns: 6.5em 5.5em minmax(0, 1fr); gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.changelog time { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.changelog .kind { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--link); }
.changelog h3 { margin: 0; font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.changelog h3 a { color: var(--ink); text-decoration: none; }
.changelog h3 a:hover { text-decoration: underline; }
.changelog p { grid-column: 3; margin: 4px 0 0; }
@media (max-width: 600px) { .changelog li { grid-template-columns: auto auto; } .changelog h3, .changelog p { grid-column: 1 / -1; } }
.figures a { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.figures a:hover b { color: var(--link); }
.search { flex: 0 1 200px; min-width: 150px; }

/* contact form */
.contact { max-width: 620px; margin-top: 24px; display: grid; gap: 16px; }
.contact fieldset { border: 0; margin: 0; padding: 0; }
.contact legend { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.contact .kinds { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact .kinds label { display: inline-flex; gap: 6px; align-items: center; font-size: 16px; cursor: pointer; }
.contact > label { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.contact .opt { font-size: 13px; }
.contact input[type=text], .contact input[type=email], .contact textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.contact textarea { resize: vertical; min-height: 160px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formerror { color: var(--bad); font-weight: 600; margin: 0; }
