/* Momus Zorgmonitor. The Momus look (tokens.css, from atlas): paper and ink, a book serif for
   headings and numbers, flat Mint and Thistle, round pills for tags, 1px rules, no shadows on
   blocks. Line icons carry the meaning that copy used to; explanations wait behind an (i).
   Motion follows atlas: 0.3-0.45 s on one easing, none under reduced motion. */

[hidden] { display: none !important; }
:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --warn: #b3261e; --warn-wash: #f6dcd9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --warn: #f2a29c; --warn-wash: #3a2422; } }
:root[data-theme="dark"] { --warn: #f2a29c; --warn-wash: #3a2422; }
html, body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.45 var(--sans); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
mark { background: var(--m-mint); color: var(--m-ink); padding: 0 1px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.muted { color: var(--muted); }
.num, td.n { font-variant-numeric: tabular-nums lining-nums; }

/* icons: one line family, 24 grid, 1.4 stroke */
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
svg.ic .f { fill: currentColor; stroke: none; }
svg.ic.sm { width: 16px; height: 16px; }

/* ---------- header: sticky; on scroll the logo's staircase flattens and the title moves up beside it */
header.top { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid var(--rule); }
.brand-row { display: flex; align-items: flex-end; gap: 18px; padding-top: 20px; transition: padding 0.45s var(--ease); }
.logo-link { display: block; width: 120px; height: 47.6px; overflow: hidden; flex: none; transition: height 0.45s var(--ease); }
svg.logo { display: block; width: 100%; height: auto; overflow: visible; }
svg.logo .lt { transition: transform 0.45s var(--ease); }
h1 { font: 400 34px/1 var(--serif); margin: 0 0 -2px; letter-spacing: -0.01em; transition: font-size 0.45s var(--ease); }
.tools { margin-left: auto; display: flex; gap: 2px; align-self: center; }
.tool { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--hover); color: var(--ink); }
.tool.ok { background: var(--picked); color: var(--on-picked); }
header.compact .brand-row { padding-top: 10px; }
header.compact .logo-link { height: 23.8px; }
header.compact svg.logo .lt { transform: translateY(var(--dy)); }
header.compact h1 { font-size: 24px; }
@media (prefers-reduced-motion: reduce) { .brand-row, .logo-link, svg.logo .lt, h1 { transition: none; } }

.query { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; margin-top: 16px; transition: margin 0.45s var(--ease); }
header.compact .query { margin-top: 10px; }
.field { position: relative; }
.box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 4px 8px 4px 10px; border: 1px solid var(--rule); background: var(--surface); box-sizing: border-box; }
.box:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.fi { color: var(--muted); display: grid; place-items: center; }
.box input { flex: 1; min-width: 140px; border: 0; background: transparent; font-size: 16px; padding: 6px 2px; outline: 0; }
#radius { border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 2px; background: var(--picked); color: var(--on-picked); border-radius: 999px; padding: 2px 2px 2px 11px; font-size: 14px; }
.chip button { border: 0; background: transparent; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: inherit; padding: 0; }
.chip button:hover { background: rgba(0,0,0,.1); }
.dropdown { position: absolute; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--rule); z-index: 30; max-height: 380px; overflow: auto; animation: drop 0.18s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.dropdown li { padding: 7px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.dropdown li .sub { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.dropdown li.head { cursor: default; padding: 8px 12px 2px; font: 400 15px var(--serif); color: var(--muted); }
.dropdown li[aria-selected="true"], .dropdown li[data-i]:hover { background: var(--hover); }
.dropdown li .fi { color: var(--ink-2); }

/* tabs: icon over a short word; the count is a quiet number */
.tabs { display: flex; gap: 0; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 14px 11px; cursor: pointer; font-size: 15px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.25s var(--ease); }
.tabs button:hover { color: var(--ink); background: var(--hover); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button[aria-selected="true"] svg.ic { color: var(--ink); }
.tabs .c { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs .c:empty { display: none; }

/* ---------- content */
main.wrap { padding-top: 26px; padding-bottom: 60px; min-height: 62vh; }
.tab { animation: rise 0.32s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tab, .dropdown, #drawer { animation: none !important; transition: none !important; } }
h2 { font: 400 32px/1.1 var(--serif); margin: 0; letter-spacing: -0.005em; }
h3 { font: 400 20px/1.2 var(--serif); margin: 0 0 8px; }
.empty { padding: 28px 0; color: var(--muted); }
.ov-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 22px; }
.ov-head .muted { font-size: 13px; }

/* the (i): its text shows in #tip */
.i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: none; font: italic 600 10px/1 var(--serif); color: var(--muted); vertical-align: 2px; cursor: help; }
.i:hover, .i:focus-visible { color: var(--ink); }
#tip { position: fixed; z-index: 60; max-width: 320px; padding: 10px 12px; background: var(--ink); color: var(--page); font-size: 13px; line-height: 1.45; pointer-events: none; animation: drop 0.15s var(--ease); }

/* overview: Nieuw on the left, Signalen on the right, outliers below */
.ov { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
.card { border-top: 1px solid var(--rule); padding-top: 12px; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-h h3 { margin: 0; }
.card-h .more-link { font-size: 13px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; }
.feed li:hover .t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.feed li:last-child { border-bottom: 0; }
.feed .src { color: var(--ink-2); padding-top: 1px; position: relative; }
.feed .t { font-weight: 500; line-height: 1.3; }
.feed .m { grid-column: 2; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.feed .d { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.new-dot { position: absolute; left: -9px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 8px; border: 1px solid var(--rule-soft); border-radius: 999px; white-space: nowrap; color: var(--ink-2); }
.tag.hard { background: var(--ink); color: var(--page); border-color: var(--ink); }
.tag.mint { background: var(--picked); color: var(--on-picked); border-color: var(--picked); }

.signals { list-style: none; margin: 0; padding: 0; }
.signals li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; }
.signals li:hover { background: linear-gradient(to right, transparent, var(--hover) 30%, var(--hover) 70%, transparent); }
.signals .lab { font-size: 14px; line-height: 1.3; }
.signals .lab small { display: block; color: var(--muted); font-size: 12px; }
.signals .v { font: 400 26px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.signals .v small { font: 13px var(--sans); color: var(--muted); margin-left: 3px; }
.signals .chev { color: var(--muted); }
.side { display: grid; gap: 34px; align-content: start; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; align-items: baseline; }
.mini li:last-child { border-bottom: 0; }
.mini .t { line-height: 1.3; }
.mini li:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.mini .s { font-size: 12px; color: var(--muted); }
.mini .v { font: 400 19px var(--serif); font-variant-numeric: lining-nums tabular-nums; text-align: right; white-space: nowrap; }
.mini .v.warn, .warn { color: var(--warn); }
.mini .bar { grid-column: 1 / -1; height: 3px; background: var(--grid); margin-top: 5px; position: relative; }
.mini .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.mini .bar b { position: absolute; top: -3px; width: 2px; height: 9px; background: var(--warn); }

/* ---------- lists with a sidebar of filters */
.cols { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
.resbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.resbar .total { font: 400 26px var(--serif); }
.resbar .ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select.sel { border: 1px solid var(--rule-soft); background: var(--page); padding: 4px 8px; font-size: 13px; max-width: 280px; }
.filters .grp { border-bottom: 1px solid var(--rule-soft); }
.filters .grp > button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border: 0; background: none; cursor: pointer; font: 400 17px var(--serif); text-align: left; }
.filters .grp > button svg { transition: transform 0.3s var(--ease); color: var(--muted); }
.filters .grp.closed > button svg { transform: rotate(-90deg); }
.filters .gb { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.3s var(--ease); }
.filters .grp.closed .gb { grid-template-rows: 0fr; }
.filters .gi { min-height: 0; overflow: hidden; }
.filters .gi > :last-child { margin-bottom: 12px; }
.filters label { display: flex; gap: 8px; align-items: baseline; font-size: 14px; padding: 3px 0; cursor: pointer; overflow-wrap: anywhere; }
.filters label .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters .zero { opacity: .45; }
.filters input[type=checkbox] { accent-color: var(--m-green); }
.filters input[type=search] { width: 100%; box-sizing: border-box; border: 1px solid var(--rule-soft); background: var(--surface); padding: 6px 9px; }
.filters select { width: 100%; }
@media (prefers-reduced-motion: reduce) { .filters .gb, .filters .grp > button svg { transition: none; } }

/* a result row: icon, title, meta line; the whole row opens the drawer */
ol.rows { list-style: none; padding: 0; margin: 0; }
ol.rows > li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 3px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; }
ol.rows > li:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
ol.rows .src { color: var(--ink-2); padding-top: 3px; }
ol.rows .t { font: 400 19px/1.25 var(--serif); }
ol.rows .m { grid-column: 2; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
ol.rows .d { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
ol.rows .x { grid-column: 2; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { padding: 18px 0; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--page); color: var(--ink); font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pill:hover { background: var(--hover); }
.pill.on { background: var(--picked); color: var(--on-picked); border-color: var(--picked); }
button.link { border: 0; background: none; color: var(--ink); padding: 0; cursor: pointer; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button.link:hover { color: var(--accent); }

/* tables */
.scrollx { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: right; font-weight: 400; font-size: 13px; color: var(--muted); padding: 8px 0 8px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.t td { text-align: right; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--rule-soft); font-variant-numeric: tabular-nums lining-nums; vertical-align: top; white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; padding-left: 0; white-space: normal; }
table.t td:first-child .s { font-size: 12px; color: var(--muted); }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td:first-child .nm { text-decoration: underline; text-underline-offset: 3px; }
table.t td.neg { color: var(--warn); }
table.t tr.tot td { font-weight: 600; }

/* wait time bar: length = days, tick = Treeknorm, ring = NL median */
.wbar { position: relative; height: 14px; min-width: 110px; }
.wbar .fill { position: absolute; left: 0; top: 4px; height: 6px; background: var(--ink); }
.over .wbar .fill { background: var(--warn); }
.wbar .norm { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.wbar .med { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--ink); background: var(--page); box-sizing: border-box; }
td.d.over, .over td.d { color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin: 10px 0; align-items: center; }
.legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.l-fill { width: 16px; height: 6px; background: var(--ink); }
.l-over { width: 16px; height: 6px; background: var(--warn); }
.l-norm { width: 2px; height: 12px; background: var(--ink); }
.l-med { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); box-sizing: border-box; }
.l-band { width: 16px; height: 8px; background: var(--axis); }
.l-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.l-reg { width: 16px; height: 2px; background: var(--ink); }
.l-nl { width: 16px; border-top: 2px dashed var(--muted); }
.loc { padding: 18px 0 6px; border-bottom: 1px solid var(--rule-soft); }
.loc-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.loc-head h3 { margin: 0; cursor: pointer; }
.loc-head h3:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 0 8px; line-height: 20px; border-radius: 999px; background: var(--warn-wash); color: var(--warn); white-space: nowrap; }

/* quality strip: band = middle half of NL, tick = median, dot = this location */
.qstrip { position: relative; display: block; height: 14px; min-width: 100px; }
.qstrip::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--grid); }
.qstrip .band { position: absolute; top: 3px; height: 8px; background: var(--axis); }
.qstrip .med { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.qstrip .dot { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
/* index around 1 */
.ibar { position: relative; display: block; height: 12px; min-width: 70px; }
.ibar::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink); }
.ibar i { position: absolute; top: 3px; height: 6px; background: var(--ink); }
.vchart { display: block; width: 100%; height: auto; overflow: visible; }
.vchart .grid { stroke: var(--grid); }
.vchart .ax { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.vchart .lab { fill: var(--ink); font-size: 12px; font-family: var(--sans); }
.vchart .lab.muted { fill: var(--muted); }
.vchart .reg { fill: none; stroke: var(--ink); stroke-width: 2; }
.vchart .nl { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.vchart .pt { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.vchart .hit { fill: transparent; }
.vchart .hit:hover { fill: var(--hover); fill-opacity: .5; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 18px 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kpi { padding: 14px 18px 14px 0; }
.kpi + .kpi { padding-left: 18px; border-left: 1px solid var(--rule-soft); }
.kpi .v { font: 400 34px/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.kpi .k { font-size: 13px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.zpick { list-style: none; margin: 8px 0 0; padding: 0; max-height: 420px; overflow: auto; }
.zpick li { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; font-size: 13px; line-height: 1.35; }
.zpick li:hover { color: var(--accent); }
.zpick li.on { background: var(--picked); color: var(--on-picked); padding-left: 6px; }
.zpick li small { display: block; color: var(--muted); }
.zhead { padding: 16px 0 6px; }
.zhead h3 { margin: 4px 0; }

/* ---------- map */
#map { height: calc(100vh - 290px); min-height: 420px; border: 1px solid var(--rule); }
.map-legend { display: flex; gap: 18px; font-size: 13px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; color: var(--ink-2); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.dot.igj { background: var(--m-ink); border: 2px solid var(--m-paper); box-shadow: 0 0 0 1px var(--m-ink); }
.dot.nza { background: var(--m-mint); border: 2px solid var(--m-ink); width: 14px; height: 14px; }
.maplibregl-popup-content { background: var(--surface); color: var(--ink); border-radius: 0; font: 13px/1.4 var(--sans); border: 1px solid var(--rule); box-shadow: none; }
.maplibregl-popup-tip { display: none; }

/* ---------- drawer: slides in from the right */
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(700px, 100vw); background: var(--surface); border-left: 1px solid var(--rule); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(102%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s 0.4s; }
#drawer.open { transform: none; visibility: visible; transition: transform 0.4s var(--ease); }
.drawer-head { display: flex; justify-content: flex-end; padding: 10px 12px 0; }
.drawer-body { overflow: auto; padding: 0 32px 48px; }
.drawer-body h2 { font-size: 30px; margin: 8px 0 6px; }
.drawer-body h3 { margin-top: 26px; }
.d-src { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 18px; font-size: 14px; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.srcbtn { display: inline-flex; align-items: center; gap: 6px; }
.doctext { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; background: var(--surface-2); padding: 18px 20px; max-height: 60vh; overflow: auto; }
.spark { display: block; width: 100%; height: 40px; overflow: visible; }
.spark .line { fill: none; stroke: var(--ink); stroke-width: 2; }
.spark .norm { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 3; }
.spark .pt { fill: var(--ink); }
.series { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.series .n { text-align: right; }
details.zset { border-top: 1px solid var(--rule-soft); }
details.zset summary { cursor: pointer; font: 400 17px var(--serif); padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.zset summary::-webkit-details-marker { display: none; }
details.zset summary svg { transition: transform 0.3s var(--ease); color: var(--muted); transform: rotate(-90deg); }
details.zset[open] summary svg { transform: none; }
.yrs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

/* ---------- sources */
footer.about { border-top: 1px solid var(--rule); padding-top: 22px; padding-bottom: 40px; font-size: 13px; color: var(--ink-2); }
footer.about h3 { font-size: 20px; }
.srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 28px; list-style: none; padding: 0; margin: 0 0 12px; }
.srcs li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 6px 0; align-items: start; }
.srcs b { font-weight: 500; color: var(--ink); }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .brand-row { padding-top: 14px; gap: 12px; }
  .logo-link { width: 84px; height: 33.3px; }
  header.compact .logo-link { height: 16.7px; }
  h1 { font-size: 26px; }
  header.compact h1 { font-size: 20px; }
  .query { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  header.compact .search-field { display: none; }
  .tabs button { padding: 8px 10px 9px; gap: 6px; font-size: 14px; }
  .ov, .cols, .grid2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kpis { grid-template-columns: 1fr; }
  .kpi + .kpi { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .hide-sm { display: none; }
  .drawer-body { padding: 0 16px 40px; }
  .resbar .total { font-size: 22px; }
}
.tab { transition: opacity 0.2s; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; cursor: pointer; }
@media (max-width: 860px) { .feed li:nth-child(n+9) { display: none; } }
.ftoggle { display: none; }
@media (max-width: 860px) {
  .ftoggle { display: inline-flex; margin-bottom: 12px; }
  .cols > aside.filters { display: none; }
  .cols.showf > aside.filters { display: block; animation: drop 0.2s var(--ease); }
}
