:root {
  /* Zes lettergroottes en verder niets. */
  --fs-1: .70rem; --fs-2: .78rem; --fs-3: .88rem; --fs-4: 1rem; --fs-5: 1.35rem; --fs-6: 1.75rem;
  --ink: #15211f;
  --muted: #66736f;
  --soft: #8a9692;
  --canvas: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #f8faf7;
  --line: #dfe5df;
  --line-strong: #cbd4cc;
  --nav: #12211e;
  --nav-muted: #91a09b;
  --nav-active: #20332f;
  --blue: #3f6e9c;
  --blue-soft: #e9f0f7;
  --green: #2f7a5c;
  --green-soft: #e5f1eb;
  --red: #b05449;
  --red-soft: #f8e9e7;
  --amber: #9a6d22;
  --amber-soft: #f5edda;
  --violet: #735f9d;
  --violet-soft: #eee9f6;
  --shadow: 0 1px 2px rgba(18, 33, 30, .035), 0 8px 24px rgba(18, 33, 30, .035);
  --radius: 12px;
  /* De binnenrand van elke kaart. Er waren er zeven; naast elkaar in een raster
     begon de tekst van de ene kaart dan op een andere plek dan die van zijn
     buurman. Zie besluiten/2026-09-23/. */
  --kaartrand: 1rem;
  --sidebar: 238px;
  /* Afstanden: een schaal, en verder niets. Een sectie staat --s-7 van de volgende, een
     kop --s-4 van zijn inhoud, kaarten --s-4 van elkaar. */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 2rem; --s-7: 2.75rem;
  color-scheme: light;
}


* { box-sizing: border-box; }
/* A jump to a section keeps its heading below the sticky top bar (#49, point 4). */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .6rem .9rem; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.eyebrow { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 20;
  display: flex; flex-direction: column; padding: 1.4rem 1rem;
  color: #f2f6f4; background: var(--nav); border-right: 1px solid rgba(255,255,255,.035);
}
.wordmark { display: inline-flex; align-items: baseline; gap: .05em; width: max-content; color: #f7faf8; font-size: var(--fs-5); font-weight: 760; letter-spacing: -.045em; text-decoration: none; }
.wordmark span { color: #8da09a; font-weight: 650; }
.scope-card { position: relative; margin: 1.5rem 0 1rem; padding: .85rem .85rem .9rem 3rem; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); border-radius: 10px; }
.broker-logo-fallback { position: absolute; left: .8rem; top: 50%; width: 26px; height: 26px; display: grid !important; place-items: center; transform: translateY(-50%); color: #31554a; background: #dfeae4; border-radius: 7px; font-size: var(--fs-1); font-weight: 800; }
.broker-favicon { position: absolute; left: .8rem; top: 50%; width: 26px; height: 26px; padding: 4px; transform: translateY(-50%); object-fit: contain; background: #fff; border-radius: 7px; }
.scope-card .eyebrow { color: var(--nav-muted); margin-bottom: .3rem; }
.scope-card strong, .scope-card > span:last-child { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-card strong { font-size: var(--fs-4); }
.scope-card > span:last-child { margin-top: .12rem; color: var(--nav-muted); font-size: var(--fs-2); }
.primary-nav { display: grid; gap: .2rem; }
.primary-nav a { display: flex; align-items: center; gap: .72rem; min-height: 40px; padding: .58rem .72rem; border-radius: 8px; color: #a9b7b2; text-decoration: none; font-size: var(--fs-3); font-weight: 540; }
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.primary-nav a[aria-current] { color: #fff; background: var(--nav-active); box-shadow: inset 2px 0 #7fb69f; }
/* One icon set: 16px grid, 1.4px stroke, no fill. Drawn as SVG so the shapes stay
   readable at the 15px size the mobile bar uses. */
.nav-icon { width: 16px; height: 16px; flex: 0 0 auto; opacity: .9; fill: none;
  stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav-more { display: none; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .55rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer a + a { position: relative; }
.sidebar-footer a + a::before { content: "|"; position: absolute; left: -.55rem; color: var(--nav-muted); text-decoration: none; opacity: .5; }
.portfolio-nav .eyebrow { margin: 0 .72rem .35rem; color: var(--nav-muted); }
.sidebar-footer a { padding: .35rem .7rem; color: var(--nav-muted); font-size: var(--fs-2); text-decoration: underline; text-underline-offset: 2px; }
.sidebar-footer a:hover { color: #fff; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 64px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.scope-pickers { display: flex; align-items: center; gap: .55rem; }
.scope-picker { position: relative; }
.scope-picker summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto; align-items: center; gap: .1rem .55rem; min-width: 158px; min-height: 44px; padding: .42rem .75rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9px; }
.scope-picker summary::-webkit-details-marker { display: none; }
.scope-picker summary:hover { border-color: #9daba2; background: #fff; }
.scope-picker summary span { grid-row: 1; grid-column: 1; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.scope-picker summary strong { grid-row: 2; grid-column: 1; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-2); }
.scope-picker summary::after { content: ""; grid-row: 1 / 3; grid-column: 2; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.picker-menu { position: absolute; z-index: 40; top: calc(100% + .4rem); left: 0; width: 270px; max-height: 390px; overflow: auto; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px rgba(18,33,30,.15); }
.picker-menu .eyebrow { padding: .4rem .55rem .6rem; }
.picker-search { display: block; padding: 0 .3rem .45rem; }
.picker-search input { width: 100%; padding: .48rem .55rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; outline: none; }
.picker-search input:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.picker-options a { display: block; padding: .5rem .55rem; border-radius: 6px; text-decoration: none; }
.picker-menu a:hover, .picker-menu a[aria-current] { background: var(--surface-2); }
.picker-menu a[aria-current] { color: var(--green); font-weight: 700; }
.topbar-meta { display: flex; align-items: center; gap: 1.1rem; color: var(--muted); font-size: var(--fs-2); }
.freshness i { display: inline-block; width: 6px; height: 6px; margin-right: .35rem; border-radius: 50%; background: #5a9a79; box-shadow: 0 0 0 3px var(--green-soft); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span:last-child { display: grid; line-height: 1.15; }
.account-menu summary small { color: var(--soft); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .055em; }
.account-menu summary strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: var(--fs-1); white-space: nowrap; }
.account-avatar { position: relative; width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--green-soft); }
.account-avatar img { position: absolute; width: 22px; height: 22px; object-fit: contain; background: var(--green-soft); }
.account-initials { color: var(--green); font-size: var(--fs-1); font-weight: 800; }
.account-popover { position: absolute; right: 0; top: calc(100% + .65rem); width: 245px; display: grid; gap: .25rem; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px rgba(18,33,30,.15); }
.account-popover > strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.account-popover > span { margin-bottom: .35rem; color: var(--muted); }
.account-popover a { padding: .4rem .45rem; color: var(--ink); background: var(--surface-2); border-radius: 6px; text-decoration: none; }
.admin-content .kop-blok { margin-bottom: 1rem; }.admin-content .tabelwrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }.admin-content .beheerformulier { display: grid; gap: .7rem; max-width: 680px; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }.admin-content input,.admin-content select { padding: .48rem; border: 1px solid var(--line-strong); border-radius: 6px; }
.account-table { min-width: 0; }
.account-table .account-row { height: 64px; }
.account-table .account-row > td { height: 64px; vertical-align: middle; }
.account-table .account-row form { margin: 0; }
.account-table .account-row button,
.mcp-create-form button,
.mcp-result-done { min-height: 36px; padding: .48rem .75rem; color: #fff; background: var(--nav); border: 1px solid var(--nav); border-radius: 7px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mcp-summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-width: 180px; }
.mcp-summary > span { color: var(--muted); font-size: var(--fs-2); }
.mcp-manage-link { flex: 0 0 auto; padding: .36rem .6rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; font-size: var(--fs-1); }
.mcp-manage-link:hover { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.account-table .mcp-panel-row:hover { background: transparent; }
.account-table .mcp-panel-row > td { padding: 0; white-space: normal; background: #eef3f0; border-bottom: 1px solid var(--line-strong); }
.mcp-panel { padding: 1.15rem 1.25rem 1.25rem; }
.mcp-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.mcp-panel-header h2 { margin: .15rem 0 0; font-size: var(--fs-4); }
.mcp-panel-header > a { font-size: var(--fs-2); font-weight: 700; }
.mcp-key-list { display: grid; gap: .55rem; }
.mcp-key-card { display: grid; grid-template-columns: minmax(210px,1.3fr) minmax(150px,.8fr) minmax(150px,.8fr) auto; align-items: center; gap: .8rem; padding: .72rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.mcp-key-card > div { display: grid; gap: .12rem; min-width: 0; }
.mcp-key-card span,.mcp-key-card small { color: var(--muted); font-size: var(--fs-1); }
.mcp-key-card strong { font-size: var(--fs-2); font-weight: 700; }
.mcp-key-card code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-key-card .button-secondary { color: var(--ink); background: var(--surface-2); border-color: var(--line-strong); }
.mcp-create-form { display: flex; align-items: end; justify-content: flex-end; gap: .65rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.mcp-create-form label { display: grid; gap: .3rem; color: var(--muted); font-size: var(--fs-1); font-weight: 700; }
.mcp-create-form input { min-height: 36px; background: var(--surface); }
.mcp-result-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(9,20,17,.52); backdrop-filter: blur(3px); }
.mcp-result-card { width: min(680px,100%); padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 28px 80px rgba(18,33,30,.32); }
.mcp-result-card h2 { margin: .25rem 0 .45rem; font-size: var(--fs-5); }
.mcp-result-card > p { margin: 0 0 1rem; color: var(--muted); }
.mcp-result-card pre { max-width: 100%; margin: 1rem 0; padding: 1rem; overflow-x: auto; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; font: .76rem/1.7 Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.mcp-result-card .mcp-doc-link { color: var(--muted); font-size: var(--fs-2); }
.mcp-result-done { display: inline-flex; align-items: center; justify-content: center; }

.admin-body { background: var(--canvas); }
.admin-topbar { height: 64px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; background: var(--nav); }
.admin-topbar nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-topbar nav a { color: var(--nav-muted); font-size: var(--fs-2); text-decoration: none; }
.admin-topbar nav a:hover, .admin-topbar nav a:focus-visible { color: #fff; }
/* The bar marked the current page with aria-current and showed nothing, so a reader
   could not see where they were. */
.admin-topbar nav a[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 0 currentColor; }
/* An interface this product does not render, opening in its own tab. */
.admin-topbar nav a.admin-extern::after { content: "\2197"; margin-left: .15rem; opacity: .75; }
.admin-session { margin-left: .5rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); color: #d9e1dd; font-size: var(--fs-2); }
/* 1500px en niet de 1180px van een leespagina: een adminblad draagt een tabel en geen
   tekst. Met elke kolom op één regel vraagt de workspaces-tabel 1417px, en op 1180 viel
   de knopkolom buiten beeld -- de kolom waarvoor dat blad bestaat. */
.admin-content { max-width: 1500px; margin: 0 auto; padding: 2rem; }
.admin-card .status { grid-column: 1 / -1; align-self: end; }


.suggestion-trigger { position: fixed; z-index: 35; right: 1.25rem; bottom: 1.25rem; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--nav); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 12px 32px rgba(18,33,30,.24); cursor: pointer; }
.suggestion-trigger:hover { background: var(--nav-active); transform: translateY(-1px); }
.suggestion-trigger span { position: relative; width: 21px; height: 16px; border: 1.7px solid currentColor; border-radius: 5px; }
.suggestion-trigger span::after { content: ""; position: absolute; left: 4px; bottom: -5px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.7px 1.7px; transform: skewY(-35deg); background: var(--nav); }
.suggestion-trigger:hover span::after { background: var(--nav-active); }
.suggestion-dialog { width: min(520px,calc(100vw - 2rem)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 28px 80px rgba(18,33,30,.28); }
.suggestion-dialog::backdrop { background: rgba(9,20,17,.45); backdrop-filter: blur(2px); }
.suggestion-dialog form { padding: 1.25rem; }
.suggestion-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.suggestion-heading h2 { margin: .1rem 0 0; font-size: var(--fs-5); letter-spacing: -.025em; }
.suggestion-close { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: var(--muted); background: var(--canvas); border: 0; border-radius: 50%; font-size: var(--fs-5); cursor: pointer; }
.suggestion-dialog p { margin: .75rem 0 1rem; color: var(--muted); font-size: var(--fs-2); }
.suggestion-dialog label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.suggestion-dialog textarea { width: 100%; min-height: 145px; resize: vertical; padding: .7rem .75rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; }
.suggestion-dialog textarea:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px var(--green-soft); }
.suggestion-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: .85rem; }
.suggestion-actions button { padding: .55rem .85rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.suggestion-actions button[type="submit"] { color: #fff; background: var(--nav); border-color: var(--nav); font-weight: 700; }
.suggestion-toast { position: fixed; z-index: 50; right: 1.25rem; bottom: 4.9rem; max-width: min(360px,calc(100vw - 2rem)); padding: .7rem .9rem; color: #215840; background: var(--green-soft); border: 1px solid #bdd8c9; border-radius: 9px; box-shadow: var(--shadow); font-size: var(--fs-2); font-weight: 650; }
.suggestion-toast--error { color: #843f37; background: var(--red-soft); border-color: #ebc8c3; }
.creative-lightbox { width: min(1000px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 90px rgba(10,20,17,.35); }
.creative-lightbox::backdrop { background: rgba(8,17,15,.72); }
.creative-lightbox > img { width: 100%; max-height: 76vh; display: block; object-fit: contain; background: #eef0ed; }
.creative-lightbox > div { padding: .8rem 1rem 1rem; }
.creative-lightbox > div strong,.creative-lightbox > div span { display: block; }
.creative-lightbox > div span,.creative-lightbox > div p { color: var(--muted); font-size: var(--fs-2); }
.creative-lightbox__close { position: sticky; z-index: 2; float: right; top: .65rem; right: .65rem; width: 34px; height: 34px; margin: .65rem .65rem -3rem 0; color: #fff; background: rgba(18,33,30,.82); border: 0; border-radius: 50%; cursor: pointer; font-size: var(--fs-5); }
.map-heading { align-items: flex-end; }
.map-summary { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.map-summary span { padding: .45rem .65rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: var(--fs-1); }
.map-summary strong { margin-right: .18rem; color: var(--ink); font-size: var(--fs-3); }
.world-map-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .72fr); gap: .9rem; align-items: stretch; }
.world-map-card,.map-detail { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.world-map-card { padding: var(--kaartrand); overflow: hidden; }
.world-map-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.world-map-toolbar strong { display: block; margin-top: .18rem; font-size: var(--fs-3); }
.world-map-legend { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-1); }
.world-map-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .3rem; border-radius: 3px; vertical-align: -1px; background: var(--line); }
.world-map-legend .covered::before { background: #6689a7; }.world-map-legend .untracked::before { background: #e3e8e3; }
.world-map-viewport { position: relative; width: 100%; overflow: hidden; background: radial-gradient(circle at 50% 45%,#f8fbfc 0,#edf3f3 100%); border: 1px solid var(--line); border-radius: 10px; }
.world-map { width: 100%; height: auto; display: block; touch-action: manipulation; }
/* The untracked countries are one cached image; its colours are baked into that file
   (see write_untracked_map) because an external image cannot inherit this stylesheet. */
.world-map__market { cursor: pointer; outline: none; }
.world-map__market path { fill: #6689a7; stroke: #fff; stroke-width: .75; vector-effect: non-scaling-stroke; transition: filter .14s ease, stroke-width .14s ease; }

.world-map__market:hover path { stroke: var(--ink); stroke-width: 1.2; }
/* De selectie is donkerder blauw, niet zwart: zwart leest als een fout in de kaart. */
.world-map__market.is-selected path { fill: #2f5473; stroke: #fff; stroke-width: 1.8; }
/* Een kleine markt is een gevolgde markt, geen gat: zelfde vulling als de landen. */
.world-map__marker { fill: #6689a7; stroke: #fff; stroke-width: 1.6;
  vector-effect: non-scaling-stroke; }
.world-map__market.is-selected .world-map__marker { fill: #2f5473; }
/* Omlopen in plaats van schuiven: tweeenveertig knoppen vragen 2758 pixels in een
   vak van 872, en met een verborgen schuifbalk stond driekwart van de markten
   buiten beeld zonder dat iets dat liet zien. */
.map-market-index { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .7rem; padding-bottom: .1rem; }
.map-market-index::-webkit-scrollbar,.world-map-viewport::-webkit-scrollbar { display: none; }
.map-market-index button { flex: 0 0 auto; padding: .32rem .55rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: var(--fs-1); }
.map-market-index button:hover,.map-market-index button[aria-pressed="true"] { color: var(--ink); background: var(--blue-soft); border-color: #b9cddd; }
/* The zoom buttons of the world map had no rules and showed as browser buttons. */
.world-map-toolbar--zoom { margin-top: .8rem; }
.map-zoom { display: inline-flex; gap: .3rem; }
.map-zoom button { min-width: 2.2rem; padding: .32rem .6rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font: inherit; font-size: var(--fs-1); }
.map-zoom button:hover { background: var(--blue-soft); border-color: #b9cddd; }
.map-zoom-hint { color: var(--muted); font-size: var(--fs-1); }
@media (hover: none) { .map-zoom-hint { display: none; } }
.map-detail { display: flex; min-height: 500px; padding: 1.05rem; }
.map-detail > article { width: 100%; display: flex; flex-direction: column; }
.map-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.map-detail__heading h2 { margin: .12rem 0 0; font-size: var(--fs-6); letter-spacing: -.04em; }
.map-climate .climate-symbol { position: relative; inset: auto; width: 48px; height: 48px; }
.map-detail__link { display: block; margin-top: auto; padding: .65rem .8rem; color: #fff; background: var(--nav); border-radius: 8px; text-align: center; text-decoration: none; font-size: var(--fs-2); font-weight: 720; }
.map-detail__link:hover { background: var(--nav-active); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.news-list { margin: 0; padding: 0; display: grid; gap: .4rem; list-style: none; }
.news-who { color: var(--muted); font-weight: 600; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* Geen gekleurde balk links. Zes soorten melding droegen er een in vier
   kleuren, en er stond nergens een legenda: dan leest de kleur als
   betekenis zonder er een te hebben. Wat de melding is, staat in de zin
   ernaast. Elke rij heeft nu dezelfde rand. */
.news-open { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .7rem .85rem; background: none; border: 0; cursor: pointer; text-align: left; }
.news-open:hover { background: var(--surface-2); }
.news-open strong { font-size: var(--fs-3); }
.news-open span { color: var(--muted); font-size: var(--fs-1); }
.news-open::after { content: ""; width: 7px; height: 7px; flex: 0 0 auto; margin-left: .2rem; border: 1.5px solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .12s; }
.news-open[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.news-panel { padding: 0 .85rem .8rem; border-top: 1px solid var(--line); }

.map-detail__panel { display: grid; gap: .6rem; margin: .9rem 0 0; }
.map-detail__chart { padding: .7rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

.map-detail__chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .3rem; }
.map-detail__chart-head span { color: var(--muted); font-size: var(--fs-1); }
.map-detail__chart-head strong { font-size: var(--fs-4); }
/* Vier even hoge vakjes: de onderste rij werd 98 pixels en de bovenste 81, puur omdat
   een van de waarden langer is. Gelijke rijen leest als een blok in plaats van als vier
   losse vakjes. */
.map-detail__cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: .45rem; }
.map-detail__card { min-width: 0; padding: .6rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.map-detail__card span { display: block; color: var(--muted); font-size: var(--fs-1); }
.map-detail__card strong { display: block; margin-top: .1rem; overflow: hidden; font-size: var(--fs-4); letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.map-detail__card small { display: block; margin-top: .05rem; overflow: hidden; color: var(--muted); font-size: var(--fs-1); text-overflow: ellipsis; white-space: nowrap; }
.map-detail__leaders .bar-row { grid-template-columns: minmax(0, 1fr) minmax(50px, .8fr) 3.4rem; }
/* A narrow panel has no room for a label under every week; first and last are enough. */
.map-detail__chart .chart__x > span:not(:first-child):not(:last-child) { display: none; }
/* Meldingen: de bel in de kopbalk, de popover eronder en de eigen pagina.
   Dezelfde kaartvorm als de rest van de site; wat nieuw is, is het pictogram links
   (brokerlogo of landcode) en de kleine reeks rechts, zodat een melding te lezen is
   zonder hem open te klappen. */
.bell { position: relative; }
.bell > summary { position: relative; list-style: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover { color: var(--ink); border-color: var(--soft); }
.bell > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bell__count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: var(--fs-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.bell-popover { position: absolute; right: 0; top: calc(100% + .65rem); z-index: 30; width: min(400px, calc(100vw - 2rem)); display: grid; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(18,33,30,.15); overflow: hidden; }
.bell-popover__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.bell-popover__head strong { color: var(--ink); font-size: var(--fs-2); }
.bell-tabs { display: flex; gap: .2rem; padding: 2px; background: var(--surface-2); border-radius: 7px; }
.bell-tabs button { padding: .22rem .5rem; border: 0; border-radius: 5px; background: none; color: var(--muted); font: inherit; font-size: var(--fs-1); cursor: pointer; }
.bell-tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(18,33,30,.12); }
.bell-list { display: grid; }
.bell-popover { max-height: calc(100vh - 5rem); overflow: auto; scrollbar-width: none; }
.bell-empty { margin: 0; padding: 1rem .85rem; color: var(--muted); font-size: var(--fs-2); }
.bell-all { padding: .6rem .85rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--blue); font-size: var(--fs-1); font-weight: 600; text-align: center; }
.melding { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: .6rem; padding: .6rem .85rem; color: inherit; text-decoration: none; }
.melding + .melding { border-top: 1px solid var(--line); }
.melding:hover { background: var(--surface-2); }
.melding__body { display: grid; gap: .1rem; min-width: 0; }
.melding__body strong { color: var(--ink); font-size: var(--fs-2); line-height: 1.25; }
.melding__body small { color: var(--muted); font-size: var(--fs-1); line-height: 1.3; }
.melding__spark { width: 104px; flex: 0 0 auto; }
.melding__spark svg { width: 104px; height: 34px; }
.melding__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.melding__icon img { width: 100%; height: 100%; object-fit: contain; }
.melding__iso, .melding__initialen { color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .02em; }

/* De pagina: dezelfde regels, maar met de reeks eronder uitklapbaar. */
.melding-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.melding-filter button { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fs-1); cursor: pointer; }
.melding-filter button span { color: var(--soft); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.melding-filter button:hover { color: var(--ink); border-color: var(--soft); }
.melding-filter button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.melding-filter button.is-active span { color: rgba(255,255,255,.75); }
/* Vier kolommen: het vlaggetje, de melding zelf, wanneer hij gemeten is, en de knop.
   De datum stond er eerst niet; dan is een melding een bewering zonder moment. */
.news-item[data-melding] { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; }
.melding__wanneer { padding-right: .8rem; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
.melding__uitleg { margin: 0 0 .6rem; color: var(--muted); font-size: var(--fs-2); }
.news-item[data-melding] > .melding__icon { margin-left: .8rem; }
.news-item[data-melding] > .news-panel { grid-column: 1 / -1; }
.melding__go { padding: .7rem .85rem .7rem 0; color: var(--blue); font-size: var(--fs-1); font-weight: 600; white-space: nowrap; }
.melding__go span { margin-left: .25rem; }

@media (max-width: 720px) {
  .melding__spark { display: none; }
  .bell-popover { position: fixed; right: .75rem; left: .75rem; top: 4.2rem; width: auto; }
}
/* De uitkomst van een beheeractie op de statische workspacelijst. */
.admin-note { margin: 0 0 1rem; padding: .6rem .85rem; background: var(--blue-soft);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  font-size: var(--fs-2); }
.team-access-form button { padding: .25rem .6rem; border: 1px solid var(--line);
  border-radius: 7px; background: var(--surface); color: var(--blue); font: inherit;
  font-size: var(--fs-1); cursor: pointer; white-space: nowrap; }
.team-access-form button:hover { border-color: var(--blue); }

/* Kandidaat-maildomeinen in beheer: een knop met het bewijs eronder, en geblokkeerde
   domeinen die er nadrukkelijk niet als knop uitzien. */
.team-access { display: grid; gap: .4rem; min-width: 260px; }
.team-access-form { display: grid; gap: .15rem; }
.team-access-form small, .team-access-blocked small, .team-access-none small {
  color: var(--soft); font-size: var(--fs-1); line-height: 1.3; }
.team-access-blocked, .team-access-none { display: grid; gap: .15rem; color: var(--muted);
  font-size: var(--fs-1); }
.team-access-blocked { padding-left: .5rem; border-left: 2px solid var(--line); }
/* Geen 70ch meer. Een adminblad zet zijn tabellen op de volle breedte, en een inleiding
   die halverwege ophoudt geeft het blad een tweede rechterrand. Dezelfde reden laat het
   kopblok groeien: anders houdt de ondertitel op waar zijn langste regel toevallig
   eindigt. */
.admin-content .page-heading > div { flex: 1 1 auto; min-width: 0; }
.admin-lede { margin: 0 0 1rem; color: var(--muted); font-size: var(--fs-2);
  line-height: 1.5; }
@media (max-width: 900px) { .team-access { min-width: 0; } }


/* Databronnen-overzicht. Eigen namen en niet .status--up/--down: een bron die achterloopt
   is geen dalende trend, en de dag dat iemand die trendkleuren herziet moet dit blad
   niet meeveranderen. */
.status--ok { color: var(--green); background: var(--green-soft); }
.status--laat { color: var(--amber); background: var(--amber-soft); }
.status--stuk { color: var(--red); background: var(--red-soft); }
.bron-samenvatting { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
#bron-table td { vertical-align: top; }
#bron-table .bron-bestand { display: block; margin-top: .15rem; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
#bron-table .bron-uitleg { max-width: 34ch; color: var(--muted); }
#bron-table .bron-melding { max-width: 40ch; }
#bron-table .bron-melding span { display: block; color: var(--red); font-size: var(--fs-1); }
#bron-table .bron-melding .bron-wacht { color: var(--amber); }
#bron-table .bron-leeg { color: var(--line-strong); }
.bron-voet { margin-top: .8rem; margin-left: 0; text-align: left; }

/* Workspaces: de kopteksten bepaalden de kolombreedte. "Leading brand market" en "Active
   markets" staan op één regel en duwen daarmee de brokerkolom smal, waar de naam dan over
   twee regels breekt -- de kolom die je juist scant. Andersom is beter: een kop mag over
   twee regels, een brokernaam niet. */
/* `th, td` draagt algemeen `overflow-wrap: anywhere`, en dat is voor een cel met een lang
   domein erin goed. Voor een koptekst is het dat niet: het zegt tegen de browser dat de
   kolom ook één teken breed mag zijn, en dan staat "HOME MARKET" letter onder letter --
   precies wat deze tabel deed. Een kop mag over twee regels breken, maar niet door een
   woord heen; zijn langste woord is daarmee de ondergrens van de kolom. */
/* Elke kolom op één regel. `overflow-wrap: normal` moet erbij blijven staan: `th, td`
   draagt algemeen `overflow-wrap: anywhere`, en dat zegt tegen de browser dat een kolom
   ook één teken breed mag zijn. Met nowrap erbij is een koptekst de ondergrens van zijn
   kolom, en dat is precies wat een kolomkop hoort te zijn. */
#workspace-table th, #workspace-table th .sort-button,
#workspace-table td { white-space: nowrap; overflow-wrap: normal; }
#workspace-table th .sort-button { text-align: left; }
/* De knopkolom draagt geen bijschriften meer, dus de 260px die daarvoor nodig was mag weg;
   die breedte kwam bovenop de kopteksten en kneep de brokerkolom mee dicht.
   `display: block` stond hier tot 23-09-2026 en dat brak de tabel: een cel die geen
   table-cell meer is doet niet mee aan de rij, dus de knopkolom stond een halve regel
   verschoven naast de rest. Met `white-space: nowrap` erbij vroeg diezelfde cel ook nog
   om onbeperkte breedte, en dan knijpt de browser elke andere kolom tot één teken --
   de kopteksten stonden letter onder letter. De cel blijft dus een cel; de knoppen erin
   mogen wel naast elkaar staan en afbreken. `display` staat er expliciet, want de
   algemene `.team-access` hierboven zet `grid` en dat breekt de rij net zo hard. */
#workspace-table .team-access { display: table-cell; min-width: 0; }
/* De knopkolom past op één regel zolang het bij de demoknop en één domein blijft. Achttien
   van de 348 brokers hebben er meer; die rij breekt af in plaats van elke andere kolom
   mee te trekken naar een tabel die niemand meer in beeld heeft. */
#workspace-table .team-access--veel { white-space: normal; }
#workspace-table .team-access-form { display: inline-block; margin: 0 .3rem .25rem 0;
  vertical-align: top; }

/* De grafiek in een meldingpaneel. `.series` is elders 100% breed met overflow zichtbaar,
   wat in een kaart klopt maar hier niet: de rij is bijna tweeduizend pixels breed terwijl
   de viewBox 520x140 is, en de tekening liep daardoor dwars over de regel erboven. Een vak
   met dezelfde verhouding als de viewBox, en niets valt er meer buiten. */
.news-panel .series { max-width: 660px; height: auto; aspect-ratio: 520 / 140;
  overflow: hidden; }
.news-panel { padding-top: .7rem; }
/* De vlag bij een melding over de lezer zelf. */
.melding__vlag { font-size: var(--fs-4); line-height: 1; }
/* De vlag bij een melding: een plaatje met vaste verhouding, niet een emoji die per
   besturingssysteem anders uitpakt. */
img.melding__vlag { display: block; width: 22px; height: 17px; object-fit: cover;
  border-radius: 2px; }

/* Lange domeinnamen zijn één ononderbroken woord en liepen daardoor uit hun vak:
   financieelonafhankelijkblog.nl vroeg 171px in een kolom van 104px. Niet afkappen maar
   laten afbreken -- een half domein is onbruikbaar, een domein over twee regels niet. */
.source-row strong, .source-row a, .source-list strong { overflow-wrap: anywhere; }
/* Hetzelfde voor de samenvattingsregel van een uitklapper. */
summary { overflow-wrap: anywhere; }
/* Punt 42: about-the-data stond scheef. De kolom was 963px breed maar de tekst brak op
   513px af, dus stond alles links met 450px leegte rechts -- gemeten op de pagina zelf.
   Een leeskolom van 760px, gecentreerd: dan staat de tekst midden in het vak in plaats van
   ertegenaan. Alleen op deze pagina, want een dashboard hoort wel de volle breedte te
   gebruiken. */
body.methodpagina .content > .page-heading,
body.methodpagina .content > .section-block { max-width: 760px; margin-left: auto;
  margin-right: auto; }
/* Pijplijnblad (/admin/pipeline/). Eigen namen naast die van het bronnenblad hierboven:
   daar betekent een regel in een cel "er is iets mis" en staat hij rood, hier is het
   gewoon bijschrift. Dezelfde klasse voor allebei zou de ene of de andere fout kleuren. */
.page-heading h2 { margin: 1.6rem 0 .2rem; font-size: var(--fs-5); line-height: 1.15; letter-spacing: -.035em; }
#ronde-table td, #melding-table td, #uitgaaf-table td { vertical-align: top; }
.pijplijn-bij { display: block; margin-top: .15rem; color: var(--muted); font-size: var(--fs-1); }
.pijplijn-leeg { color: var(--line-strong); }
.pijplijn-titel { max-width: 52ch; }
.pijplijn-cron { font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
/* De laatste vijf rondes als stippen: nieuwste links, zoals de kolom ernaast telt. */
.pijplijn-reeks { white-space: nowrap; }
.pijplijn-reeks .stip { display: inline-block; width: .6rem; height: .6rem; margin-right: .22rem; border-radius: 50%; }
.stip--ok { background: var(--green); }
.stip--laat { background: var(--amber); }
.stip--stuk { background: var(--red); }

/* Uniform product explanations, points and alignment. */
.data-tooltip { position: fixed; z-index: 10000; max-width: min(290px, calc(100vw - 24px)); padding: .55rem .7rem; color: #fff; background: #20302d; border-radius: 6px; box-shadow: 0 4px 18px #0002; font-size: var(--fs-2); line-height: 1.45; white-space: pre-line; pointer-events: none; }
.data-tooltip[hidden] { display: none; }

/* ==========================================================================
   Ontwerpsysteem, 25-09-2026 (besluiten/2026-09-25/ontwerpsysteem.md).
   Een raster, een kaart en een kop voor de hele site. Tot 25-09 had elke kaartsoort
   eigen regels die elkaar in latere lagen overschreven; dezelfde klasse stond tot vijf
   keer in dit bestand. Hier staat elke klasse een keer.
   ========================================================================== */

/* -- Pagina en secties ---------------------------------------------------------- */
.content { max-width: 1480px; margin: 0 auto; padding: var(--s-6) var(--s-6) 4rem;
  display: flex; flex-direction: column; gap: var(--s-7); }
.content > * { margin: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.page-heading h1 { margin: .15rem 0 .2rem; font-size: var(--fs-6); line-height: 1.12; letter-spacing: -.04em; }
.page-heading p { margin: 0; color: var(--muted); font-size: var(--fs-3); }
.quiet-link, .section-aside a, .card-link { color: var(--green); text-decoration: none; font-size: var(--fs-2); font-weight: 650; white-space: nowrap; }
.quiet-link:hover, .section-aside a:hover, .card-link:hover { text-decoration: underline; }
/* A link to more detail is there when it is needed, not a call to action (#49, point 9). */
.section-aside a, .card-link { color: var(--muted); font-weight: 500; }
.section-aside a:hover, .card-link:hover { color: var(--green); }
.market-count { padding: .4rem .7rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: var(--fs-2); white-space: nowrap; }
.page-notice { display: flex; flex-wrap: wrap; gap: .55rem; padding: .65rem .8rem; color: var(--muted); background: var(--blue-soft); border: 1px solid #cbdce9; border-radius: 9px; font-size: var(--fs-2); }
.page-notice strong { color: var(--ink); }
.explorer-back { margin: 0; font-size: var(--fs-2); }

/* Een sectie is kop plus inhoud, altijd met dezelfde afstand ertussen. Een tabel onder
   een rij kaarten krijgt dezelfde afstand als de kaarten onder de kop. */
.section-block { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.section-heading h2 { margin: .2rem 0 0; font-size: var(--fs-5); line-height: 1.2; letter-spacing: -.025em; }
/* Het bijschrift van een sectie staat altijd rechts, op de hoogte van de titel. */
.section-aside { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.section-heading h2, .section-note, .metric-note, .eyebrow, h1, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.section-note { max-width: 52ch; color: var(--muted); font-size: var(--fs-2); line-height: 1.4; }
.section-footnote { margin: 0; color: var(--muted); font-size: var(--fs-2); }

/* -- Raster --------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(var(--kolommen, 4), minmax(0, 1fr)); align-items: stretch; }
.grid--2 { --kolommen: 2; }
/* A card beside a list of a different height (brokerdata#81): both start at the top. */
.grid--3 { --kolommen: 3; }
.grid--4 { --kolommen: 4; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.hero-grid > .stack > .metric-card { flex: 1 1 auto; }

/* -- Kaart ---------------------------------------------------------------------- */
.metric-card, .market-card, .ranking-tile, .list-card, .creative-card, .empty-panel, .world-map-card, .map-detail {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
/* Vier delen op vaste plekken: kop, getal, uitleg direct onder het getal, en wat erbij
   hoort onderaan. Zo staan de getallen in een rij op dezelfde hoogte. */
.metric-card { display: flex; flex-direction: column; gap: .3rem; padding: var(--kaartrand); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); min-height: 36px; }
.metric-label { margin: 0; padding-top: .45rem; color: var(--muted); font-size: var(--fs-3); font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.metric-value { margin-top: .15rem; color: var(--ink); font-size: var(--fs-6); font-weight: 720; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-note { color: var(--muted); font-size: var(--fs-2); line-height: 1.4; }
.metric-body { margin-top: auto; padding-top: var(--s-3); display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.metric-body p { margin: 0; color: var(--muted); font-size: var(--fs-2); line-height: 1.55; }
.metric-body:has(.chart--vul) { flex: 1 1 auto; }
/* Een lijst staat direct onder het getal; een grafiek onderaan, zodat grafieken in een
   rij op dezelfde hoogte eindigen. */
.metric-body:has(> .app-summary-list, > .bar-list:first-child, > .pie-block) { flex: 1 1 auto; margin-top: var(--s-2); }
.metric-body > .stat-tiles:last-child { margin-top: auto; }
.metric-footnote { color: var(--soft); font-size: var(--fs-1); line-height: 1.4; }
.card-link { align-self: flex-end; }
.metric-card--one-line .metric-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intro-card { background: var(--surface); }

/* Het icoon rechtsboven: een tint per betekenis, nooit een ring of een losse vorm. */
.card-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 10px; }
.card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-icon--green { color: var(--green); background: var(--green-soft); }
.card-icon--red { color: var(--red); background: var(--red-soft); }
.card-icon--grey { color: #68736f; background: #edf0ed; }
.card-icon--violet { color: var(--violet); background: var(--violet-soft); }
.card-icon--amber { color: var(--amber); background: var(--amber-soft); }

/* Tellingen per richting: drie tegels en een gestapelde balk, voor vooruitblik en klimaat. */
.metric-card--counts .metric-body { flex: 1 1 auto; margin-top: var(--s-3); padding-top: 0; }
/* The tiles sit in the middle between the header and the bar (#49, point 1). */
.metric-card--counts .count-tiles { margin-block: auto; }
.metric-card--counts .count-bar { margin-top: 0; }
.count-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.count-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .4rem; background: var(--surface-2); border-radius: 10px; text-align: center; }
.count-tile .card-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
.count-tile .card-icon svg { width: 15px; height: 15px; }
.count-tile strong { font-size: var(--fs-5); line-height: 1; font-variant-numeric: tabular-nums; }
.count-tile small { color: var(--muted); font-size: var(--fs-2); }
.count-bar { display: flex; height: 8px; overflow: hidden; background: var(--line); border-radius: 99px; }
.count-bar i { display: block; height: 100%; }
.count-bar__up { background: var(--green); }
.count-bar__flat { background: #b5bfba; }
.count-bar__down { background: var(--red); }
.count-bar__unmeasured { background: var(--line); }

/* Twee kleine vakken onder een grafiek, met een label en een cijfer. */
.stat-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); }
.stat-tiles > [hidden] { display: none; }
.intro-card .metric-body { margin-top: var(--s-3); }
.stat-tiles > span { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .7rem; background: var(--surface-2); border-radius: 8px; }
.stat-tiles small { color: var(--muted); font-size: var(--fs-1); }
.stat-tiles strong { font-size: var(--fs-4); font-variant-numeric: tabular-nums; }

.tone--up { color: var(--green); }
.tone--down { color: var(--red); }
.tone--flat { color: #68736f; }
.status { display: inline-flex; align-items: center; gap: .4rem; width: max-content; padding: .28rem .58rem; color: var(--muted); background: #eef1ee; border-radius: 99px; font-size: var(--fs-2); font-weight: 600; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--up, .status--strong-up { color: var(--green); background: var(--green-soft); }
.status--down, .status--strong-down { color: var(--red); background: var(--red-soft); }
.status--flat { color: #68736f; background: #edf0ed; }
.status--ok { color: var(--green); background: var(--green-soft); }
.status--laat { color: var(--amber); background: var(--amber-soft); }
.status--stuk { color: var(--red); background: var(--red-soft); }
.trend-arrow { display: inline-flex; width: .95em; height: .95em; margin-left: .3em; vertical-align: -.08em; color: #68736f; }
.trend-arrow svg { width: 100%; height: 100%; }
.trend-arrow--up, .trend-arrow--strong-up { color: var(--green); }
.trend-arrow--down, .trend-arrow--strong-down { color: var(--red); }
.classification { display: inline-flex; width: max-content; padding: .17rem .42rem; color: var(--muted); background: #edf0ed; border-radius: 99px; font-size: var(--fs-1); font-weight: 650; }
.classification--none { display: none; }
.channel-state { color: var(--muted); }
.channel-state--active { color: var(--green); font-weight: 650; }
.app-state { color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
.app-state--not-collected { color: var(--amber); }
.scope-note { margin-left: .35rem; padding: .05rem .3rem; color: var(--muted); background: var(--surface-2); border-radius: 4px; font-size: var(--fs-1); font-style: normal; white-space: nowrap; }

/* Periodeknoppen. */
.card-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.tabs { display: inline-flex; width: max-content; max-width: 100%; gap: .2rem; padding: .2rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.tabs button { padding: .32rem .7rem; color: var(--muted); background: none; border: 0; border-radius: 7px; font-size: var(--fs-2); font-weight: 650; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(18,33,30,.12); }
.tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* -- Grafieken ------------------------------------------------------------------ */
/* Drie lijnsoorten die niet op elkaar lijken: de periode zelf (blauw, doorgetrokken),
   de periode ervoor (blauw, gestippeld) en de trend (grijs, doorgetrokken). De
   rasterlijnen zijn lichter dan alle drie, zodat ze niet als een tweede lijn lezen. */
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); font-size: var(--fs-1); }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend span::before { content: ""; width: 16px; height: 0; border-top: 2px solid var(--blue); }
.chart-legend__previous::before { border-top-style: dashed !important; opacity: .55; }
.chart-legend__trend::before { border-top-color: #8c9893 !important; opacity: .55; }
.chart { position: relative; min-width: 0; }
.chart--K { max-width: 520px; }
.chart__plot { position: relative; margin-left: calc(var(--goot, 3ch) + .45rem); }
.chart__plot > svg { display: block; width: 100%; }
.chart__y, .chart__x { pointer-events: none; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; line-height: 1; }
.chart__y { position: absolute; inset: 0; }
.chart__y span { position: absolute; right: 100%; padding-right: .45rem; transform: translateY(-50%); white-space: nowrap; }
.chart__x { position: relative; height: 1.5em; margin-left: calc(var(--goot, 3ch) + .45rem); }
.chart__x span { position: absolute; top: .35em; white-space: nowrap; }
.chart__x-midden { transform: translateX(-50%); }
.chart__x-rechts { transform: none; }
.chart--vul { flex: 1 1 auto; display: flex; flex-direction: column; max-width: none; }
.chart--vul .chart__plot { flex: 1 1 auto; min-height: 8rem; }
.chart--vul .chart__plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__punt { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); border: 1.5px solid currentColor; transform: translate(-50%, -50%); pointer-events: none; color: var(--blue); }
.chart__punt--laatst { width: 9px; height: 9px; border-width: 1.8px; }
.series { display: block; width: 100%; overflow: visible; color: var(--blue); }
.series[data-maat="S"] { width: 168px; height: 48px; }
.series__grid { stroke: #edf0ed; stroke-width: 1; }
.series__line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.series__point { fill: var(--surface); stroke: currentColor; stroke-width: 1.5; }
.series__area { fill: currentColor; opacity: .07; }
.series__last { fill: var(--surface); stroke: currentColor; stroke-width: 1.8; }
.series__trend { fill: none; stroke: #8c9893; stroke-width: 1; stroke-linecap: round; opacity: .55; }
.series__line--previous { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .5; }
.series__line--current { stroke: var(--blue); stroke-width: 1.9; }
.series__line, .series__grid, .series__point, .series__last, .series__trend { vector-effect: non-scaling-stroke; }
.series__hit { fill: transparent; pointer-events: all; }
.series__hit:hover { fill: rgba(63,110,156,.08); }
.series__hit:focus-visible { fill: rgba(63,110,156,.12); outline: none; }
.series--amber { color: var(--amber); }
.series--green { color: var(--green); }
.series--violet { color: var(--violet); }
.series--comparison { color: var(--blue); }
.bars { display: block; width: 100%; }
.bars__zero { stroke: var(--line-strong); stroke-width: 1; }
.bars__bar--up { fill: var(--blue); }
.bars__bar--down { fill: var(--red); opacity: .8; }
/* Seasonality (brokerdata#166): the current month full, the other months lighter. */
.bars--seizoen .bars__bar { opacity: .5; }
.bars--seizoen .bars__bar--nu { opacity: 1; }
.column { display: block; width: 100%; }
.column__bar { fill: var(--blue); opacity: .78; }
.column__bar:hover { opacity: 1; }
.rank-gauge { display: block; width: 100%; max-width: 280px; margin: 0 auto; }
.rank-tick { stroke-linecap: round; stroke-width: 2.5; }
.rank-tick--ahead { stroke: #b5bfba; }
.rank-tick--behind { stroke: var(--line); }
.rank-tick--own { stroke: var(--blue); stroke-width: 5; }
.rank-gauge__edge { fill: var(--muted); font-size: 9px; }
.pie { width: 96px; height: 96px; flex: 0 0 96px; }
.pie__slice--rank1 { fill: var(--blue); }
.pie__slice--rank2 { fill: #7f9fd4; }
.pie__slice--rank3 { fill: #b6c9e6; }
.pie__slice--rest { fill: #dfe4ea; }
.pie__slice--up { fill: var(--green); }
.pie__slice--flat { fill: #b5bfba; }
.pie__slice--down { fill: var(--red); }
/* De taart vult de vrije hoogte van zijn kaart. Hij staat naast een lange ranglijst, en
   met een vaste 96 px bleef driekwart van de kaart leeg (Bart, 28-09-2026, #37). */
.pie-block { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: clamp(var(--s-4), 6cqi, var(--s-6)); container-type: inline-size; }
.pie-block__figure { flex: 0 0 clamp(120px, 42cqi, 260px); display: flex; }
.pie-block .pie { width: 100%; height: auto; flex: none; aspect-ratio: 1; }
.pie-legend { flex: 1 1 11rem; max-width: 22rem; margin: 0; padding: 0; display: grid; list-style: none; color: var(--muted); font-size: var(--fs-3); }
.pie-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .6rem 0; }
.pie-legend li + li { border-top: 1px solid var(--line); }
.pie-legend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pie-legend__value { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.pie-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.pie-key--rank1 { background: var(--blue); }
.pie-key--rank2 { background: #7f9fd4; }
.pie-key--rank3 { background: #b6c9e6; }
.pie-key--rest { background: #dfe4ea; }
.rating-visual { height: 12px; overflow: hidden; background: var(--canvas); border-radius: 99px; }
.rating-visual i { display: block; width: var(--rating); height: 100%; background: var(--green); border-radius: inherit; }
.stars { display: inline-flex; gap: 1px; margin-left: .4rem; vertical-align: -1px; }
.stars .star { width: 10px; height: 10px; background: var(--line); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars .star--vol { background: var(--amber); }
.stars .star--half { background: linear-gradient(90deg, var(--amber) 50%, var(--line) 50%); }
/* Een tegel per winkel die de kaart vult. De kaart staat naast hogere kaarten, en met
   twee regels tekst bovenaan bleef tweederde leeg (Bart, 28-09-2026, #42). */
.app-summary-list { flex: 1 1 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-3); }
.app-summary-list > div { display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.app-summary-list > div > span { color: var(--muted); font-size: var(--fs-3); }
.app-summary-list > div > strong { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; font-size: var(--fs-6); line-height: 1.1; font-variant-numeric: tabular-nums; }
.app-summary-list .stars { margin-left: 0; }
.app-summary-list .stars .star { width: 15px; height: 15px; }
.app-summary-list small { color: var(--muted); font-size: var(--fs-2); }

/* -- Lijsten -------------------------------------------------------------------- */
/* Een balklijst: naam, balk, getal op een regel. De eigen broker is vet met een blauwe
   balk; geen gekleurde rij eronder. */
.list-card { padding: var(--kaartrand); }
.bar-list { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 1.3fr) 4.5rem; align-items: center; gap: var(--s-3); min-height: 32px; color: var(--ink); font-size: var(--fs-2); text-decoration: none; }
.bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A period label ("Mar – Aug 2025") is read in full, not cut (#49, point 8). */
.bar-list--perioden .bar-row { grid-template-columns: max-content minmax(70px, 1fr) 4.5rem; }
.bar-list--perioden .bar-row > span:first-child { overflow: visible; }
.bar-row > strong { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar-list--verschil .bar-row { grid-template-columns: minmax(0, 1fr) minmax(70px, 1.1fr) 8rem; }
.bar-row__change { margin-left: .4em; font-weight: 400; color: var(--muted, inherit); opacity: .75; }
.bar-list--verschil .bar-row__change { display: block; margin-left: 0; font-size: var(--fs-1); }
a.bar-row:hover > span:first-child { text-decoration: underline; }
.bar-track { height: 6px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }
.bar-track i { display: block; height: 100%; background: #93a59d; border-radius: inherit; }
.bar-row.own { font-weight: 750; }
.bar-row.own > strong { font-weight: 750; }
.bar-row.own .bar-track i { background: var(--blue); }
.bar-list__rest { margin-top: .3rem; border-top: 1px solid var(--line); }
.bar-list__rest summary { padding: .6rem 0 .3rem; color: var(--muted); font-size: var(--fs-2); cursor: pointer; }

/* Ranglijst in rijen, met een koprij in hetzelfde raster. */
.list-card.ranking-list { padding: 0; overflow: hidden; }
.ranking-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1.3fr) minmax(90px, 1fr) 7.2rem 5.4rem 8rem; align-items: center; gap: var(--s-3); min-height: 52px; padding: .45rem var(--kaartrand); color: var(--ink); border-top: 1px solid var(--line); font-size: var(--fs-2); text-decoration: none; }
.ranking-row:hover { background: var(--surface-2); }
/* Table roles for readers and the API; the boxes stay the grid's own (re-check 22-10-2026). */
.ranking-table, .cell-contents { display: contents; }
.ranking-row > strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row.own, .ranking-row.own > strong { font-weight: 760; }
.ranking-row--head { min-height: 40px; border-top: 0; color: var(--muted); background: var(--surface-2); font-size: var(--fs-1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: normal; line-height: 1.25; }
.ranking-row--head > span { min-width: 0; overflow-wrap: break-word; }
/* app.js turns each head into a sort button, which keeps to one line (.sort-button);
   in this table it wraps within its column, or it runs into the next head. */
.ranking-row--head .sort-button { white-space: normal; max-width: 100%; text-align: left; }
.ranking-row--head:hover { background: var(--surface-2); }
.ranking-trend .series { width: 100%; max-width: 168px; height: 40px; }
.cell-numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-number { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.7rem; padding: 0 .4rem; color: var(--ink); background: var(--surface-2); border-radius: 7px; font-size: var(--fs-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.ranking-row--head > span:first-child { text-align: center; }
/* In a half-width column the trend spark has no room; the list drops it, not the names. */
.ranking-list { container-type: inline-size; }
@container (max-width: 760px) {
  /* The number heads carry a sort arrow and a help mark; at 4.6rem "Share, 12-month avg"
     stood five lines high. The broker column gives the room. */
  .ranking-row { grid-template-columns: 2.2rem minmax(0, 1fr) 7.8rem 6.8rem 7.4rem; }
  .ranking-row--head { letter-spacing: .02em; }
  .ranking-row > :nth-child(3) { display: none; }
}

/* Tegels in de concurrentieranglijst: naam links, plek rechts, lijn eronder. De eigen
   broker krijgt een blauwe rand om de hele tegel. */
.ranking-tile { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--kaartrand); color: inherit; text-decoration: none; }
.ranking-tile:hover { border-color: var(--line-strong); }
.ranking-tile.own { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.ranking-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.ranking-tile__name { min-width: 0; }
.ranking-tile__name strong, .ranking-tile__name span { display: block; }
.ranking-tile__name strong { font-size: var(--fs-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-tile__name span { color: var(--muted); font-size: var(--fs-2); }
.ranking-tile__chart { min-height: 88px; min-width: 0; }
/* The change line wraps under the status at every width: in four columns at 1440px
   "+4.02 pt · 6 months vs a year earlier" ran 130px out of its tile (10-11-2026). */
.ranking-tile { min-width: 0; }
.ranking-tile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem; margin-top: auto; }
.ranking-tile__change { min-width: 0; color: var(--muted); font-size: var(--fs-1); white-space: normal; }

/* -- Marktkaarten (portfolio) --------------------------------------------------- */
/* Kop, cijfers en klimaat staan in een rij kaarten op dezelfde hoogte, ook als een
   sorteerregel naast een lange marktnaam naar een tweede regel gaat. */
.market-portfolio { grid-auto-flow: row dense; }
.market-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--s-3); padding: var(--kaartrand); color: inherit; text-decoration: none; }
.market-card:hover { border-color: var(--line-strong); }
/* De sorteerregel staat rechts van de marktnaam; op een telefoon eronder. */
.market-card__heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem var(--s-3); }
.market-card__heading strong { font-size: var(--fs-5); letter-spacing: -.02em; }
.market-card__heading span { color: var(--muted); font-size: var(--fs-2); text-align: right; }
.market-card__signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.market-card__signals > span { display: flex; flex-direction: column; gap: .2rem; padding: .55rem .6rem; background: var(--surface-2); border-radius: 8px; min-width: 0; }
.market-card__signals small { color: var(--muted); font-size: var(--fs-1); line-height: 1.2; }
.market-card__signals strong { font-size: var(--fs-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.market-card__climate { display: flex; flex-direction: column; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.market-card__climate-title { display: flex; flex-direction: column; gap: .1rem; }
@media (min-width: 900px) {
  .market-card__climate-title { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: var(--s-2); }
  .market-card__climate-title > span { text-align: right; }
}
.market-card__climate-title strong { font-size: var(--fs-3); }
.market-card__climate-title > span { color: var(--muted); font-size: var(--fs-2); }
.market-card__empty { margin: auto 0 0; color: var(--muted); font-size: var(--fs-2); }
.sort-controls { flex-direction: row; align-items: center; gap: var(--s-3); }
.ranking-board > [hidden] { display: none; }
.inline-sort { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: var(--fs-2); font-weight: 650; }
.inline-sort select { min-height: 38px; padding: .4rem 1.8rem .4rem .6rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs-2); }

/* -- Tabellen ------------------------------------------------------------------- */
.table-wrap { max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
th, td { padding: .6rem .75rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
/* Kopteksten op een regel: "VS LAST YEAR" stond over drie regels (Barts document). */
th { color: var(--muted); background: var(--surface-2); font-size: var(--fs-1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
th.number-cell { text-align: left; }
td.number-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
tr.own td { font-weight: 750; }
td a { text-decoration: none; white-space: nowrap; }
td:first-child { white-space: nowrap; }
td a:hover { text-decoration: underline; }
.table-spark { width: 184px; }
.table-spark small { display: block; margin-top: .15rem; color: var(--muted); font-size: var(--fs-1); }
.table-spark .series[data-maat="S"] { width: 168px; height: 40px; }
.sort-button { display: inline-flex; align-items: center; gap: .3rem; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
.sort-button::after { content: "\2195"; opacity: .35; }
.sort-button[aria-sort="ascending"]::after { content: "\2191"; opacity: 1; }
.sort-button[aria-sort="descending"]::after { content: "\2193"; opacity: 1; }
.table-search { width: min(420px, 100%); display: flex; flex-direction: column; gap: .3rem; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.table-search input { padding: .55rem .65rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; text-transform: none; letter-spacing: 0; }
.radar-table { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overscroll-behavior-inline: contain; }
.radar-head, .radar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(5, minmax(64px, 1fr)) minmax(110px, 132px); align-items: center; gap: var(--s-3); padding: .55rem var(--kaartrand); min-width: 0; }
.radar-head { color: var(--muted); background: var(--surface-2); font-size: var(--fs-1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.radar-head button { display: inline-flex; align-items: center; gap: .25rem; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; cursor: pointer; }
.radar-head button[aria-sort="descending"]::after { content: "\2193"; }
.radar-head button[aria-sort="ascending"]::after { content: "\2191"; }
.radar-row { min-height: 48px; color: var(--ink); border-top: 1px solid var(--line); font-size: var(--fs-2); text-decoration: none; }
.radar-row:hover { background: var(--surface-2); }
.radar-row.own, .radar-row.own > strong { font-weight: 760; }
.matrix-value { font-variant-numeric: tabular-nums; }
.matrix-second { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 500; }
.radar-row .classification { white-space: normal; line-height: 1.2; }

/* -- Advertenties ---------------------------------------------------------------- */
.creative-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.creative-card > .creative-copy { margin-top: auto; }
.creative-open { width: 100%; display: block; padding: 0; background: none; border: 0; cursor: zoom-in; }
.creative-open:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.creative-media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.creative-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.creative-media--text { padding: 1.1rem; place-items: start; overflow: auto; background: linear-gradient(145deg, #f1f3ef, #fafbf9); }
.creative-media--text p { margin: 0; color: #31403b; font-size: var(--fs-3); line-height: 1.5; }
.creative-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .65rem .75rem .5rem; }
.creative-meta strong, .creative-meta span { display: block; }
.creative-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-2); }
.creative-meta div > span { color: var(--muted); font-size: var(--fs-1); }
.variant-count { flex: 0 0 auto; padding: .16rem .35rem; color: var(--muted); background: var(--canvas); border-radius: 99px; font-size: var(--fs-1); }
.creative-run { display: flex; flex-wrap: wrap; gap: .16rem .5rem; margin: 0; padding: 0 .75rem .6rem; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.creative-copy { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; margin: 0 .75rem .75rem; padding: 0; overflow: hidden; color: var(--muted); font-size: var(--fs-2); line-height: 1.45; }
[data-creative-format="image"] .creative-copy { display: none; }
.filter-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); padding: .75rem var(--kaartrand); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-toolbar label { display: flex; flex-direction: column; gap: .25rem; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.filter-toolbar select { min-height: 38px; padding: .4rem 1.8rem .4rem .6rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs-2); text-transform: none; letter-spacing: 0; }
.filter-count { margin-left: auto; color: var(--muted); font-size: var(--fs-2); }

/* -- Leeg, uitleg en tekst -------------------------------------------------------- */
.empty-panel { padding: 1.4rem var(--kaartrand); color: var(--muted); font-size: var(--fs-2); text-align: center; }
.empty { margin: 0; padding: 1rem; color: var(--muted); font-size: var(--fs-2); text-align: center; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; }
/* A heading with a question mark is one row: label and mark cannot break apart. A table
   heading stays a table cell; its nowrap does the same job there. */
.has-metric-help { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; }
th.has-metric-help { display: table-cell; }
.metric-help { display: inline; margin-left: .35rem; padding: 0 .3em; color: #75817b; border: 1px solid #a0aaa5; border-radius: 99px; font-family: system-ui, sans-serif; font-size: var(--fs-1); font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: nowrap; cursor: help; opacity: .55; }
.metric-help:hover, .metric-help:focus-visible { opacity: 1; outline: 2px solid #6689a7; outline-offset: 2px; }
.prose-block { max-width: 68ch; }
.prose-block h2 { margin: 1.6rem 0 .5rem; font-size: var(--fs-4); }
.prose-block h2:first-child { margin-top: 0; }
.prose-block p { margin: 0 0 .7rem; color: var(--muted); font-size: var(--fs-3); line-height: 1.65; }
.method-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-3); margin: .2rem 0 0; }
.method-list > div { margin: 0; padding: .6rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.method-list dt { font-size: var(--fs-2); font-weight: 700; }
.method-list dd { margin: .15rem 0 0; color: var(--muted); font-size: var(--fs-2); line-height: 1.55; }
svg text { -webkit-user-select: none; user-select: none; }
.table-wrap, .prose-block, .section-block p, .metric-card strong { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }

/* -- Kleinere schermen ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid--4, .grid--3 { --kolommen: 2; }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > .stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .content { padding: var(--s-5) var(--s-5) 3rem; gap: var(--s-6); }
}
/* Between 681 and 900 the competitor table scrolls; below it shows fewer columns. */
@media (max-width: 900px) and (min-width: 681px) {
  .radar-head, .radar-row { min-width: 720px; }
}
@media (max-width: 680px) { .col-optional { display: none; } }
@media (max-width: 680px) {
  .content { padding: var(--s-5) var(--s-4) 2rem; gap: var(--s-6); }
  .grid, .grid--4, .grid--3, .grid--2 { --kolommen: 1; }
  .hero-grid > .stack { grid-template-columns: minmax(0, 1fr); }
  .page-heading { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .section-heading { flex-direction: column; align-items: stretch; gap: .4rem; }
  .section-aside { align-items: flex-start; text-align: left; }
  .sort-controls { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-sort { flex-direction: column; align-items: stretch; gap: .25rem; }
  .inline-sort select { width: 100%; min-height: 44px; }
  .metric-value { font-size: var(--fs-5); }
  .market-card__heading span { text-align: left; }
  .ranking-row { grid-template-columns: 2rem minmax(0, 1fr) 6.8rem; }
  .ranking-row > :nth-child(3), .ranking-row > :nth-child(4), .ranking-row > :nth-child(5) { display: none; }
  .radar-head, .radar-row { min-width: 0; grid-template-columns: minmax(88px, 1fr) 62px minmax(96px, 116px); }
  .radar-head > span:nth-child(n+3):nth-child(-n+6), .radar-row > *:nth-child(n+3):nth-child(-n+6) { display: none; }
  .filter-toolbar { flex-direction: column; align-items: stretch; }
  .filter-toolbar select { width: 100%; }
  .filter-count { margin-left: 0; }
  .metric-card--one-line .metric-note { white-space: normal; }
  .pie-block { flex-direction: column; align-items: stretch; }
  .pie-block__figure { flex: none; width: min(220px, 70cqi); align-self: center; }
  .pie-legend { max-width: none; }
}

/* -- De schil op kleinere schermen (zijbalk, kopbalk, beheer, kaart) -- */
@media (max-width: 900px) {
  :root { --sidebar: 78px; }
  .sidebar { padding: 1.3rem .65rem; align-items: center; }
  .sidebar .wordmark { font-size: 0; }
  .sidebar .wordmark::before { content: "BD"; font-size: var(--fs-4); letter-spacing: -.04em; }
  .scope-card { width: 52px; height: 52px; display: grid; place-items: center; padding: 0; }
  .scope-card .broker-favicon { left: 50%; width: 30px; height: 30px; transform: translate(-50%,-50%); }
  .scope-card .broker-logo-fallback { left: 50%; width: 30px; height: 30px; transform: translate(-50%,-50%); }
  .scope-card .eyebrow, .scope-card > span:last-child { display: none; }
  .scope-card strong { font-size: 0; }
  .scope-card::before { content: none; }
  .primary-nav a { width: 48px; justify-content: center; font-size: 0; }
  .primary-nav a[aria-current] { box-shadow: inset 0 -2px #7fb69f; }
  .nav-icon { width: 18px; height: 18px; }
  .sidebar-footer { width: 100%; }
  .sidebar-footer a { padding: .4rem 0; font-size: var(--fs-1); text-align: center; }
  .sidebar-footer { gap: .45rem; }
  .scope-picker summary { min-width: 130px; }
  .topbar-meta .freshness { display: none; }
  .world-map-layout { grid-template-columns: 1fr; }
  .map-detail { min-height: 0; }
  .map-detail__link { margin-top: 1rem; }
}
@media (max-width: 680px) {
  .app-shell { display: block; padding-bottom: 66px; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 30; width: auto; height: 66px; padding: .4rem .55rem; flex-direction: row; justify-content: center; border: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .sidebar > .wordmark, .scope-card, .sidebar-footer { display: none; }
  .primary-nav { width: 100%; max-width: 620px; display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav > a:nth-of-type(n+6) { display: none; }
  .primary-nav a { width: auto; height: 56px; min-width: 58px; min-height: 0; flex: 1 0 58px; flex-direction: column; gap: .2rem; padding: .35rem .08rem; font-size: var(--fs-1); }
  .primary-nav a[aria-current] { background: var(--nav-active); }
  .mobile-nav-more { position: static; display: block; min-width: 58px; height: 56px; flex: 1 0 58px; }
  .mobile-nav-more summary { height: 56px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .2rem; padding: .35rem .08rem; color: #a9b7b2; border-radius: 8px; font-size: var(--fs-1); font-weight: 540; list-style: none; cursor: pointer; }
  .mobile-nav-more summary::-webkit-details-marker { display: none; }
  .mobile-nav-more.is-active summary,.mobile-nav-more[open] summary { color: #fff; background: var(--nav-active); }
  .mobile-nav-more-menu { position: fixed; right: .55rem; bottom: 70px; width: min(230px,calc(100vw - 1.1rem)); display: grid; gap: .15rem; padding: .45rem; background: var(--nav); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; box-shadow: 0 -12px 34px rgba(9,20,17,.25); }
  .primary-nav .mobile-nav-more-menu a { width: 100%; height: auto; min-height: 42px; display: flex; align-items: center; justify-content: flex-start; flex-direction: row; gap: .65rem; padding: .55rem .65rem; font-size: var(--fs-2); }
  .nav-icon { width: 15px; height: 15px; }
  .topbar { height: auto; min-height: 62px; padding: .45rem .7rem; gap: .4rem; }
  .topbar-meta .account-link { display: none; }
  .freshness { font-size: 0; }
  .freshness::after { content: "Current"; font-size: var(--fs-1); }
  .scope-pickers { gap: .3rem; }
  .scope-picker summary { min-width: 0; width: 122px; min-height: 43px; padding: .35rem .5rem; }
  .scope-picker summary strong { max-width: 92px; }
  .picker-menu { width: min(280px, calc(100vw - 1.4rem)); }
  .market-picker .picker-menu { left: auto; right: 0; }
  .account-menu summary span:last-child { display: none; }
  .admin-topbar { height: auto; padding: .6rem .9rem; }
  .admin-topbar nav { gap: .75rem; row-gap: .35rem; }
  .admin-topbar nav a.admin-extern { display: none; }
  .admin-session { margin-left: 0; padding-left: 0; border-left: 0; }
  .admin-content { padding: 1.25rem .9rem; }
  .mcp-key-card { grid-template-columns: 1fr 1fr; }
  .mcp-key-card > div:first-child { grid-column: 1 / -1; }
  .mcp-key-card form { justify-self: start; }
  .mcp-create-form { align-items: stretch; flex-direction: column; }
  .suggestion-trigger { right: .85rem; bottom: 78px; width: 44px; height: 44px; }
  .suggestion-toast { right: .85rem; bottom: 132px; }
  .map-summary { width: 100%; justify-content: flex-start; }
  .world-map-card { padding: var(--kaartrand); }
  .world-map-toolbar { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .world-map-legend { justify-content: flex-start; }
  .world-map-viewport { overflow: hidden; }
  .world-map { width: 100%; max-width: 100%; }
  .map-detail { padding: .85rem; }
}

/* A missing value: a word, not a dash. The reason is in the title (25-09). */
.value-missing { color: var(--muted); font-weight: 500; }

/* The accounts page (2026-10-05): one line per account, its details folded under it,
   the rest of the administration folded at the foot. No script on this page. */
.admin-accounts { max-width: 1180px; }
.admin-accounts .verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-melding { margin: 0 0 1rem; padding: .6rem .85rem; background: var(--green-soft); border: 1px solid #cfe3d8; border-radius: 9px; font-size: var(--fs-3); }
.admin-accounts button { min-height: 34px; padding: .4rem .8rem; color: #fff; background: var(--nav); border: 1px solid var(--nav); border-radius: 7px; font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
.admin-accounts button.button-secondary { color: var(--ink); background: var(--surface-2); border-color: var(--line-strong); }
.admin-accounts button.button-danger { color: var(--red); background: var(--surface); border-color: #e3c4bf; }
.admin-accounts input, .admin-accounts select { min-height: 34px; padding: .35rem .5rem; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); font: inherit; font-weight: 400; font-size: var(--fs-3); color: var(--ink); }
.badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: var(--fs-1); font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge--paid { background: var(--green-soft); color: var(--green); border-color: #cfe3d8; }
.badge--free { background: var(--blue-soft); color: var(--blue); border-color: #d3e0ee; }
.badge--warn { background: var(--amber-soft); color: var(--amber); border-color: #eadbb8; }
.badge--role { background: var(--violet-soft); color: var(--violet); border-color: #ddd4ec; }
.acct-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.acct-stat { padding: .4rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-2); color: var(--muted); }
.acct-stat strong { color: var(--ink); }
.acct-stat--note { margin-left: auto; border-style: dashed; }
.acct-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.acct-search { display: flex; align-items: center; gap: .5rem; }
.acct-search input { width: 300px; max-width: 60vw; }
.acct-search a { font-size: var(--fs-2); }
.acct-add { position: relative; }
.acct-add > summary { list-style: none; display: inline-flex; align-items: center; min-height: 34px; padding: .4rem .9rem; color: #fff; background: var(--green); border-radius: 7px; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
.acct-add > summary::-webkit-details-marker { display: none; }
.acct-add > summary::before { content: "+"; margin-right: .4rem; font-size: var(--fs-4); line-height: 1; }
.acct-add[open] > .acct-form { position: absolute; right: 0; z-index: 20; width: min(420px, 90vw); margin-top: .4rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(18,33,30,.16); }
.acct-form { display: grid; gap: .6rem; }
.acct-form label { display: grid; gap: .25rem; color: var(--muted); font-size: var(--fs-1); font-weight: 700; }
.acct-form label small { font-weight: 500; }
.acct-form button { justify-self: start; }
.acct-actions .acct-form { grid-template-columns: 1fr 1fr; align-items: end; }
.acct-actions .acct-form > label:first-of-type, .acct-actions .acct-form > button { grid-column: 1 / -1; }
.acct-form--row { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; margin-top: .75rem; }
.acct-hint { margin: 0 0 .6rem; color: var(--muted); font-size: var(--fs-2); }
.acct-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.acct-line { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1fr) 1.5rem; align-items: center; gap: 1rem; padding: .7rem 1rem; font-size: var(--fs-3); }
.acct-line--head { padding-top: .55rem; padding-bottom: .55rem; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.account-row { border-bottom: 1px solid var(--line); }
.account-row:last-of-type { border-bottom: 0; }
.account-row > summary { list-style: none; cursor: pointer; }
.account-row > summary::-webkit-details-marker { display: none; }
.account-row > summary:hover { background: var(--surface-2); }
.account-row[open] > summary { background: #eef3f0; }
.account-row.leeg > summary { color: var(--soft); }
.acct-who { display: grid; min-width: 0; }
.acct-who strong, .acct-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who strong { font-weight: 600; }
.acct-who small, .acct-plan small, .acct-login { color: var(--muted); font-size: var(--fs-2); }
.acct-broker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-open::after { content: "\203A"; display: inline-block; color: var(--muted); font-size: var(--fs-5); transition: transform .15s; }
.account-row[open] .acct-open::after { transform: rotate(90deg); }
.acct-detail { padding: 1rem 1rem 1.25rem; background: #f7faf8; border-top: 1px solid var(--line); }
.acct-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0 0 1rem; }
.acct-facts div { display: grid; gap: .1rem; }
.acct-facts dt { color: var(--muted); font-size: var(--fs-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.acct-facts dd { margin: 0; font-size: var(--fs-3); }
.acct-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.acct-actions section { padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.acct-actions h3 { margin: 0 0 .6rem; font-size: var(--fs-4); }
.acct-actions .mcp-key-card { grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.acct-actions .mcp-key-card > div:first-child, .acct-actions .mcp-key-card form { grid-column: 1 / -1; }
.acct-actions .mcp-create-form { justify-content: flex-start; flex-wrap: wrap; }
.acct-toggle { display: grid; gap: .3rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.acct-toggle button { justify-self: start; }
.acct-toggle small { color: var(--muted); font-size: var(--fs-1); }
.acct-log { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: var(--fs-2); }
.acct-log caption { text-align: left; color: var(--muted); font-size: var(--fs-1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding-bottom: .3rem; }
.acct-log td { padding: .3rem .5rem .3rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.acct-empty { margin: 0; padding: 1rem; color: var(--muted); }
.admin-folds { display: grid; gap: .6rem; margin-top: 1.5rem; }
.admin-fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-fold > summary { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; font-weight: 700; cursor: pointer; }
.admin-fold[open] > summary { border-bottom: 1px solid var(--line); }
.admin-fold > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.admin-fold > :last-child { margin-bottom: 1rem; }
.admin-fold > .acct-hint:first-of-type { margin-top: .8rem; }
.acct-table { width: calc(100% - 2rem); margin-top: .75rem; border-collapse: collapse; font-size: var(--fs-2); }
.acct-table th { padding: .45rem .5rem; text-align: left; color: var(--muted); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.acct-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.acct-table form { margin: 0; }
@media (max-width: 760px) {
  .acct-line--head { display: none; }
  .acct-line { grid-template-columns: 1fr auto; gap: .2rem .75rem; }
  .acct-broker, .acct-login { grid-column: 1; }
  .acct-open { grid-row: 1; grid-column: 2; }
  .acct-stat--note { margin-left: 0; }
  .acct-search input { width: 100%; }
  .acct-form--row { grid-template-columns: 1fr; }
  .acct-table { display: block; overflow-x: auto; }
}

/* Workspaces and Pipeline (05-10): the same calm frame as the accounts page. Layout
   only; the words and numbers are those of the JSON behind each page. */
.admin-compact { max-width: 1280px; }
.admin-uitleg { margin: 0 0 1rem; color: var(--muted); font-size: var(--fs-2); }
.admin-uitleg > summary { display: inline-block; color: var(--blue); font-weight: 700; cursor: pointer; }
.admin-uitleg > p { max-width: 90ch; margin: .45rem 0 0; line-height: 1.5; }
.pl-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 .75rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pl-strip .bron-samenvatting { margin: 0; align-items: center; }
.pl-strip__label { margin-right: .2rem; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-compact > .page-heading { margin-top: 1.5rem; }
.admin-compact > .page-heading:first-of-type { margin-top: 0; }
.admin-compact > .page-heading h2, .pl-fold .page-heading h2 { margin: 0 0 .15rem; font-size: var(--fs-4); letter-spacing: 0; }
.admin-compact > .page-heading p, .pl-fold .page-heading p { font-size: var(--fs-2); }
.pl-fold { margin-top: .6rem; }
.pl-fold > summary { display: block; padding: .75rem 1rem; list-style: none; }
.pl-fold > summary::-webkit-details-marker { display: none; }
.pl-fold > summary .page-heading { align-items: center; }
.pl-fold > summary .page-heading > div::before { content: "\203A"; float: left; width: 1rem; margin-right: .35rem; color: var(--muted); font-size: var(--fs-5); line-height: 1.1; transition: transform .15s; }
.pl-fold[open] > summary .page-heading > div::before { transform: rotate(90deg); }
.pl-fold > .table-wrap { margin: .75rem 1rem 1rem; }
.pl-fold > .table-search { margin: .75rem 1rem 0; }
.pl-fold > .admin-lede, .pl-fold > .bron-voet { margin: .75rem 1rem; }
.ws-table td { padding-top: .5rem; padding-bottom: .5rem; }
.ws-broker a { font-weight: 600; }
.ws-broker small { display: block; color: var(--muted); font-size: var(--fs-1); }
.ws-access { display: flex; align-items: flex-start; gap: .35rem; }
#workspace-table .ws-access .team-access-form { margin: 0; }
.ws-domains { position: relative; }
.ws-domains > summary { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--blue); font-size: var(--fs-1); cursor: pointer; list-style: none; white-space: nowrap; }
.ws-domains > summary::-webkit-details-marker { display: none; }
.ws-domains[open] > summary { border-color: var(--blue); }
.ws-domains__menu { position: absolute; right: 0; z-index: 30; display: grid; gap: .55rem; width: max-content; max-width: 320px; margin-top: .3rem; padding: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(18,33,30,.16); white-space: normal; }
#workspace-table .ws-domains__menu .team-access-form { display: grid; margin: 0; }
#workspace-table .ws-domains__menu .team-access-form button { justify-self: start; }
.pl-fold > summary .page-heading p { font-weight: 400; }

/* Account pages of a signed-in customer, in the product frame (#117). The login service
   renders them with templates/account.html; these rules style what
   src/abonnement_paginas.py writes inside the content area. */
.account-app .content { display: grid; gap: var(--s-4); align-content: start; }
.account-app .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--kaartrand); display: grid; gap: var(--s-3); }
.account-app .card h2 { margin: 0; font-size: var(--fs-4); }
.account-app .card p { margin: 0; }
.account-app .muted, .account-app .note { color: var(--muted); font-size: var(--fs-3); }
.account-app .narrow { max-width: 640px; display: grid; gap: var(--s-4); }
.account-app .narrow h2 { margin: var(--s-3) 0 0; font-size: var(--fs-4); }
.account-app .notice { margin: 0; background: var(--green-soft); border: 1px solid #cfe4d9; color: #1f5a43; border-radius: 10px; padding: .75rem 1rem; font-size: var(--fs-3); }
.account-app .kv { display: flex; justify-content: space-between; gap: var(--s-4); padding: .55rem 0; border-top: 1px solid var(--line); font-size: var(--fs-3); }
.account-app .kv span { color: var(--muted); }
.account-app .people { list-style: none; margin: 0; padding: 0; font-size: var(--fs-3); }
.account-app .people li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: .6rem 0; border-top: 1px solid var(--line); }
.account-app .people li span { display: grid; }
.account-app .people small { color: var(--muted); font-size: var(--fs-1); }
.account-app .people form { margin: 0; }
.account-app .linkbutton { border: 0; background: none; color: var(--red); font: inherit; font-size: var(--fs-2); font-weight: 600; cursor: pointer; padding: 0; text-decoration: none; }
.account-app .button { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; border-radius: 9px; border: 1px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 650; font-size: var(--fs-3); text-decoration: none; cursor: pointer; white-space: nowrap; }
.account-app .button:hover { background: #276a4f; border-color: #276a4f; }
.account-app .button--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.account-app .button--outline:hover { background: var(--surface-2); border-color: var(--ink); }
.account-app .inline-form { display: flex; gap: var(--s-2); align-items: end; flex-wrap: wrap; margin: 0; }
.account-app .inline-form label { flex: 1; min-width: 220px; display: grid; }
.account-app .inline-form input, .account-app .inline-form select { padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: var(--fs-3); background: var(--surface); color: var(--ink); }
.account-app .market-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .45rem 1rem; margin: 0 0 var(--s-3); }
.account-app .market-toggle { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-3); }
.account-app .market-toggle small { color: var(--muted); }
.account-app .card a:not(.button):not(.linkbutton), .account-app .narrow a:not(.button) { color: var(--green); }
.account-app .code { margin: 0; background: var(--nav); color: #cfe2da; border-radius: var(--radius); padding: var(--s-4); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-2); line-height: 1.6; overflow-x: auto; }
.account-app .code code { background: none; padding: 0; }

/* Phone layout, found on 06-11-2026 (Bart's screenshot of the notifications page and an
   agent audit of the code). Last in the file, so it wins over the desktop rules above. */
@media (max-width: 680px) {
  /* A notification: the title and its sentence under each other over the full width,
     the date and the link on a line below. The four desktop columns left the sentence
     a strip of one or two words wide. */
  .news-item[data-melding] { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "i b b" "i w g"; align-items: start; }
  .news-item[data-melding] > .melding__icon { grid-area: i; margin-top: .75rem; }
  .news-item[data-melding] > .news-open { grid-area: b; }
  .news-item[data-melding] > .melding__wanneer { grid-area: w; align-self: center; padding: 0 0 .65rem .85rem; }
  .news-item[data-melding] > .melding__go { grid-area: g; padding: 0 .85rem .65rem 0; }
  .news-item[data-melding] > .news-panel { grid-area: auto; grid-column: 1 / -1; }
  .news-open { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .news-open::after { display: none; }
  /* The account page: a long address or key label wraps instead of widening the page. */
  .account-app .content { grid-template-columns: minmax(0, 1fr); }
  .account-app .page-heading h1, .account-app .people li span { min-width: 0; overflow-wrap: anywhere; }
  /* The open More menu goes over the round suggestion button, not under it. */
  .sidebar:has(.mobile-nav-more[open]) { z-index: 36; }
  /* Both pickers open over the full width; the market menu ran off the left edge. */
  .picker-menu, .market-picker .picker-menu { position: fixed; top: 4.2rem; left: .7rem; right: .7rem; width: auto; }
  /* Bar lists: the name gets the room, the bar less. Names were cut to a few letters. */
  .bar-row { grid-template-columns: minmax(0, 1.6fr) minmax(40px, .6fr) 3.8rem; }
  .bar-list--verschil .bar-row { grid-template-columns: minmax(0, 1.4fr) minmax(40px, .6fr) 5.5rem; }
  /* A competitor tile: the change line wraps under the status. On one line it made the
     competitors page 442px wide. */
  .ranking-tile { min-width: 0; }
  .ranking-tile__foot { flex-wrap: wrap; row-gap: .3rem; }
  .ranking-tile__change { white-space: normal; }
  /* The competitor matrix headers wrap instead of running into the next column. */
  .radar-head { white-space: normal; line-height: 1.2; }
  /* Tap targets of at least 40px. */
  .bell > summary, .account-avatar { width: 40px; height: 40px; }
  .tabs button, .melding-filter button, .map-market-index button { min-height: 40px; }
}
@media (max-width: 720px) {
  /* The bell popover ends above the bottom navigation. */
  .bell-popover { max-height: calc(100dvh - 4.2rem - 66px - .75rem); overflow-y: auto; }
}

/* The public site (#113). This file comes after app.css, the stylesheet of the product,
   in one file (publiek_bouwen.py). Cards, grids, headings, tables, charts, icons and
   status words are those of the product. This file has only what the product has not:
   a site with a top bar instead of an application with a side bar, the hero, the plans
   and the forms. Every page puts its content on the same left edge: `.wrap`. */

body.publiek { font-size: 15px; }
.publiek h1, .publiek h2, .publiek h3 { margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.publiek h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; font-weight: 720; }
.publiek p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .6rem .9rem; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.eyebrow--light { color: #9fb5ad; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.page-body { display: flex; flex-direction: column; gap: var(--s-7); padding-top: var(--s-5); }
.page-body--text { max-width: 1180px; }
.prose { color: var(--muted); font-size: var(--fs-3); line-height: 1.65; max-width: 68ch; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: var(--fs-2); }
.note a, .prose a, .prose-block a, .faq a, .hero__aside a { color: var(--green); }

/* Top bar: the logo of the product, larger, with room before the menu. */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--nav); color: #eef3f1; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-head__row { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.site-head__logo { font-size: 1.65rem; margin-right: var(--s-6); }
.site-nav { display: flex; gap: var(--s-5); flex: 1; }
.site-nav a { color: #b9c8c2; text-decoration: none; font-size: var(--fs-3); font-weight: 560; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; border-bottom-color: #7fc4a4; }
.site-head__actions { display: flex; align-items: center; gap: var(--s-4); }
.link-login { color: #dbe6e2; text-decoration: none; font-size: var(--fs-3); font-weight: 560; }
@media (max-width: 900px) {
  .site-head__row { flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding-top: .6rem; padding-bottom: .6rem; }
  .site-head__logo { margin-right: 0; font-size: 1.45rem; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: var(--s-4); }
  .site-head__actions { margin-left: auto; }
}
.wordmark--dark { color: var(--ink); font-size: 1.25rem; }
.wordmark--dark span { color: var(--muted); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: .45rem; justify-content: center; padding: .7rem 1.15rem; border-radius: 9px; border: 1px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 650; font-size: var(--fs-3); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { background: #276a4f; border-color: #276a4f; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.button--small { padding: .5rem .95rem; }
.button--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button--outline:hover { background: var(--surface-2); border-color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.button--ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.link-more { color: var(--green); font-weight: 650; font-size: var(--fs-3); text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }

/* Page head: always on the left edge of .wrap. */
.page-head { padding: var(--s-6) 0 0; }
.page-head p { color: var(--muted); max-width: 64ch; margin-top: var(--s-2); }
.page-head__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.page-head h1 .flag { width: 30px; height: 21px; margin-right: .6rem; vertical-align: -.05em; }
.crumbs { display: flex; gap: .45rem; color: var(--muted); font-size: var(--fs-2); margin-bottom: var(--s-3); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: var(--nav); color: #eef3f1; padding: var(--s-7) 0; }
.hero__row { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.hero__row--video { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
.publiek .hero h1 { margin: var(--s-3) 0 var(--s-4); color: #fff; max-width: 17ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.hero p { color: #c3d1cc; max-width: 56ch; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero .hero__aside { margin-top: var(--s-4); font-size: var(--fs-3); }
.hero__aside a { color: #9fd7bd; }
/* The promo video of the home page (12-11-2026) */
.hero__video { margin: 0; min-width: 0; width: 100%; }
.video-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #0d1a17; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.video-player video { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; background: #0d1a17; }
.video-player:not(.is-playing) video { cursor: pointer; }
.video-player__play { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center;
  width: 68px; height: 68px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
  cursor: pointer; color: #fff; background: rgba(13,26,23,.62); box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .15s ease, background-color .15s ease; }
.video-player__play svg { width: 34px; height: 34px; fill: currentColor; }
.video-player__play:hover, .video-player__play:focus-visible { transform: scale(1.06); background: #3f7a5f; }
.video-player__play:focus-visible { outline: 2px solid #9fd7bd; outline-offset: 2px; }
.video-player.is-playing .video-player__play { display: none; }
@media (prefers-reduced-motion: reduce) { .video-player__play { transition: none; } }
.hero__panel { background: var(--nav-active); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: var(--s-5); }
.hero__panel-head { display: flex; justify-content: space-between; align-items: center; color: #9fb5ad; font-size: var(--fs-2); margin-bottom: var(--s-3); padding: 0 .4rem; }
.hero__panel-head .eyebrow { margin: 0; }
.hero__panel-when { width: 6.5rem; text-align: center; }
.climate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.climate-list a { display: flex; align-items: center; gap: var(--s-3); padding: .55rem .4rem; border-radius: 8px; text-decoration: none; color: #eef3f1; }
.climate-list a:hover { background: rgba(255,255,255,.05); }
.climate-list span:not(.status) { flex: 1; font-weight: 560; }
.climate-list .status { width: 6.5rem; justify-content: center; }
@media (max-width: 860px) { .hero__row { grid-template-columns: minmax(0, 1fr); } }

/* A status the product draws as text only: a market or class that is not measured. */
.status--unmeasured { color: #68736f; background: #edf0ed; }

/* Cards that link somewhere, and the locked cards. */
a.metric-card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.metric-card:hover { border-color: var(--green); }
.metric-value--word { font-size: var(--fs-5); }
.metric-card--locked .metric-body { margin-top: auto; display: grid; gap: var(--s-3); padding-top: var(--s-3); }
.locked-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-size: var(--fs-2); font-weight: 650; text-decoration: none; }
.locked-link:hover { text-decoration: underline; }
.ghost { height: 84px; border-radius: 9px; background: var(--surface-2); border: 1px dashed var(--line-strong); padding: .7rem; display: grid; gap: 7px; align-content: center; }
.ghost--bars i { display: block; height: 9px; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #dde5df, #eef2ee); }
.ghost--line svg { width: 100%; height: 100%; }
.ghost--line path { fill: none; stroke: #cbd6cf; stroke-width: 3; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.ghost--tiles { grid-template-columns: repeat(3, 1fr); }
.ghost--tiles b { display: block; height: 28px; border-radius: 6px; background: #e5ebe6; }
.stack { display: grid; gap: var(--s-3); align-content: start; }

/* Rankings with the first rows open. */
.ranking-title { margin: var(--s-3) 0 var(--s-1); color: var(--muted); font-size: var(--fs-2); font-weight: 650; }
.ranking { list-style: none; margin: 0; padding: 0; }
.ranking li { display: flex; align-items: center; gap: var(--s-3); min-height: 38px; border-top: 1px solid var(--line); font-size: var(--fs-3); }
.ranking__n { width: 1.2rem; color: var(--soft); font-variant-numeric: tabular-nums; font-size: var(--fs-2); }
.ranking li a { flex: 1; color: inherit; text-decoration: none; font-weight: 600; }
.ranking li a:hover { text-decoration: underline; }
.ranking__more a, .ranking__more a:hover { display: inline-flex; align-items: center; gap: .4rem; color: var(--green) !important; font-size: var(--fs-2); }
.ranking__empty { color: var(--muted); font-size: var(--fs-2); }

/* Map, lists and tables */
.map { width: 100%; height: auto; display: block; }
.map__rest path { fill: #e3e8e3; stroke: var(--surface); stroke-width: .5; }
.map__market path { stroke: var(--surface); stroke-width: .6; transition: opacity .15s; }
.map__market--up path { fill: #5fa585; }
.map__market--flat path { fill: #7d9fbf; }
.map__market--down path { fill: #d0a85f; }
.map__market--unmeasured path { fill: #c5cfca; }
.map__market:hover path { opacity: .75; }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); padding: var(--s-3) var(--s-2) 0; color: var(--muted); font-size: var(--fs-2); }
.key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.key--up::before { background: #5fa585; } .key--flat::before { background: #7d9fbf; } .key--down::before { background: #d0a85f; } .key--rest::before { background: #e3e8e3; }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); flex: none; vertical-align: -2px; margin-right: .5rem; }
.cell-link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; font-weight: 600; }
.locked-cell a { display: inline-flex; align-items: center; gap: .4rem; color: var(--soft); text-decoration: none; font-size: var(--fs-2); font-weight: 600; }
.locked-cell a:hover { color: var(--green); }
.row-locked th a { color: var(--muted); }
.broker-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-2); }
.broker-grid a { display: flex; align-items: center; gap: var(--s-3); padding: .5rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-weight: 560; font-size: var(--fs-3); }
.broker-grid a:hover { border-color: var(--green); }
.market-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.market-chips a { display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; text-decoration: none; font-size: var(--fs-2); font-weight: 560; }
.market-chips a:hover { border-color: var(--green); }
.market-chips .flag { margin-right: .4rem; }
.market-tiles { list-style: none; margin: 0; padding: 0; }
.market-tile { height: 100%; }
.market-tile .metric-label { display: flex; align-items: center; }
.reasons .metric-card { height: 100%; }

/* Brokers */
.filter input { width: min(420px, 100%); padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font: inherit; }
.letters { display: flex; flex-wrap: wrap; gap: .3rem; }
.letters a { min-width: 2rem; text-align: center; padding: .25rem .4rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: var(--fs-2); font-weight: 650; }
.letter-group h2 { font-size: var(--fs-4); color: var(--muted); margin-bottom: var(--s-2); }
#broker-index { gap: var(--s-5); }
.broker-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-2); }
.broker-card { display: flex; gap: var(--s-3); align-items: center; padding: .65rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.broker-card:hover { border-color: var(--green); }
.broker-card span:last-child { display: grid; min-width: 0; }
.broker-card strong { font-size: var(--fs-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broker-card small { color: var(--muted); font-size: var(--fs-1); }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-size: var(--fs-1); font-weight: 750; color: var(--muted); flex: none; }
.mark { background: #fff; }
.mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.broker-head .mark img { padding: 6px; }
.broker-head { display: flex; gap: var(--s-4); align-items: center; }
.broker-head .mark { width: 56px; height: 56px; border-radius: 12px; font-size: var(--fs-4); }

/* Code and steps */
.code { margin: 0; background: var(--nav); color: #cfe2da; border-radius: var(--radius); padding: var(--s-5); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.metric-card .code { margin-top: var(--s-3); }
.steps { margin: var(--s-3) 0 0; padding-left: 1.2rem; color: var(--muted); font-size: var(--fs-3); display: grid; gap: .4rem; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; }
.code code { background: none; padding: 0; }

/* Pricing */
.interval { display: inline-flex; align-self: flex-start; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; gap: 2px; }
.interval button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: var(--fs-3); cursor: pointer; color: var(--muted); }
.interval button[aria-checked="true"] { background: var(--nav); color: #fff; }
.save { color: var(--green); font-size: var(--fs-1); font-weight: 700; margin-left: .25rem; }
.interval button[aria-checked="true"] .save { color: #7fc4a4; }
.page-pricing .page-body { gap: var(--s-5); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; margin-top: var(--s-3); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.plan--featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.plan__badge { position: absolute; top: -.75rem; left: var(--s-5); background: var(--green); color: #fff; font-size: var(--fs-1); font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .04em; }
.plan__users { color: var(--muted); font-size: var(--fs-3); }
.plan__price { font-size: 1.9rem; font-weight: 750; margin-top: var(--s-2) !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plan__price small { font-size: var(--fs-3); font-weight: 560; color: var(--muted); letter-spacing: 0; }
.plan__per { color: var(--muted); font-size: var(--fs-2); }
.plan__per[data-show="month"] { color: var(--green); font-weight: 600; }
.plan__lead { margin: var(--s-3) 0 var(--s-2) !important; }
.plan__features { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: .45rem; flex: 1; align-content: start; font-size: var(--fs-3); }
.plan__features li { padding-left: 1.4rem; position: relative; }
.plan__features li::before { content: ""; position: absolute; left: .1rem; top: .4em; width: .65rem; height: .35rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
[data-current="year"] [data-show="month"], [data-current="month"] [data-show="year"] { display: none; }
.faq { max-width: 760px; gap: 0; margin-top: var(--s-6); }
.faq h2 { margin-bottom: var(--s-3); }
.faq details { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { color: var(--muted); margin-top: var(--s-2); max-width: 64ch; }

/* Forms: subscribe, demo, account */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-3); align-content: start; }
legend { font-weight: 700; margin-bottom: var(--s-3); padding: 0; font-size: var(--fs-4); }
.subscribe label, .demo label, .form label, .inline-form label { display: grid; gap: .3rem; font-size: var(--fs-3); font-weight: 600; }
.subscribe input:not([type="radio"]), .demo input, .demo textarea, .demo select, .form input, .form select, .inline-form input { padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-weight: 400; background: var(--surface); color: var(--ink); }
.demo select:disabled { color: var(--soft); background: var(--surface-2); }
.optional { color: var(--soft); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.demo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.subscribe__steps { display: grid; gap: var(--s-6); }
.demo fieldset:last-child { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5); }
.demo fieldset:last-child legend { float: left; width: 100%; }
.demo fieldset:first-child { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5); }
.demo fieldset:first-child legend { float: left; width: 100%; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.subscribe .choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__body { display: grid; gap: .2rem; height: 100%; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.choice__body strong { font-size: var(--fs-4); }
.choice__body small { color: var(--muted); font-size: var(--fs-2); font-weight: 400; }
.choice__price { color: var(--ink) !important; }
.choice input:checked + .choice__body { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--blue); outline-offset: 2px; }
.invoice-fields { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-4) 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.invoice-fields legend { padding: 0; font-weight: 700; font-size: var(--fs-3); }
.invoice-fields small { font-weight: 400; color: var(--muted); }
.invoice-fields__row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-3); }
.invoice-fields input, .invoice-fields select { width: 100%; min-width: 0; box-sizing: border-box; }
.subscribe select { padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-weight: 400; background: var(--surface); color: var(--ink); }
.account .done { width: 100%; max-width: 560px; justify-self: center; margin-top: var(--s-6); padding: var(--s-6); }
.done h1 { margin: 0; font-size: var(--fs-6); }
.done .order { margin-top: var(--s-2); }
.done__actions { margin: var(--s-2) 0 0; }
.summary { display: grid; gap: 2px; padding: var(--s-4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.summary strong { font-size: var(--fs-5); }
.summary span:not(.eyebrow) { color: var(--muted); font-size: var(--fs-3); }
.summary a { color: var(--green); font-size: var(--fs-2); font-weight: 600; }
.form { display: grid; gap: var(--s-3); }
.form .button, .subscribe .button, .demo .button { justify-self: start; }
.inline-form { display: flex; gap: var(--s-2); align-items: end; flex-wrap: wrap; }
.inline-form label { flex: 1; min-width: 220px; }

/* Insights */
.article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.article-card { height: 100%; gap: var(--s-2); padding: var(--s-5); }
.article-card h2 { font-size: var(--fs-5); line-height: 1.25; }
.article-card__date, .article-date { color: var(--soft); font-size: var(--fs-2); margin-top: auto; }
.page-head .article-date { margin-top: var(--s-3); color: var(--soft); }
.article { max-width: 70ch; }
.article p, .article li { color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.2rem; display: grid; gap: .35rem; margin: 0 0 .9rem; }
.article p { margin: 0 0 1rem; }
.article h2 { font-size: var(--fs-5); margin: 2.25rem 0 .75rem; }
.article h3 { font-size: var(--fs-4); margin: 1.5rem 0 .4rem; }
.article-next { border-top: 1px solid var(--line); padding-top: var(--s-5); max-width: 70ch; }
.article-next h2 { font-size: var(--fs-4); margin-bottom: var(--s-3); }
.article-next ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.article-next a { color: var(--green); }

/* Bottom */
.cta-band { margin-top: var(--s-7); background: var(--nav); color: #eef3f1; padding: var(--s-6) 0; }
.cta-band__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: var(--fs-5); }
.cta-band p { color: #b9c8c2; margin-top: var(--s-2); max-width: 60ch; }
.cta-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cta-band .button--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.site-foot { padding: var(--s-6) 0; color: var(--muted); font-size: var(--fs-2); }
.page-subscribe .site-foot, .page-demo .site-foot { margin-top: var(--s-7); border-top: 1px solid var(--line); }
.site-foot__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); }
.site-foot__row p { margin-top: var(--s-2); max-width: 46ch; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s-4); align-content: start; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot__legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s-4); }
@media (max-width: 720px) { .site-foot__row { grid-template-columns: 1fr; } }

/* Account, sign-up and checkout pages of the login service (#114). They use .wrap, so
   they start on the same left edge as every other page. */
.account { display: grid; gap: var(--s-4); padding-top: var(--s-6); padding-bottom: var(--s-7); }
/* .account > * stood at 820px; full width since 05-10, see .legal below. */
.account .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5); display: grid; gap: var(--s-3); }
.account .card--table { padding: var(--s-4) 0 0; }
.account .pad { padding: 0 var(--s-5); }
.narrow { max-width: 560px; display: grid; gap: var(--s-4); }
.kv { display: flex; justify-content: space-between; gap: var(--s-4); padding: .55rem 0; border-top: 1px solid var(--line); }
.kv span { color: var(--muted); }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: .6rem 0; border-top: 1px solid var(--line); }
.people li span { display: grid; }
.people small { color: var(--muted); font-size: var(--fs-1); }
.people form { margin: 0; }
.linkbutton { border: 0; background: none; color: var(--red); font: inherit; font-size: var(--fs-2); font-weight: 600; cursor: pointer; padding: 0; }
.notice { background: var(--green-soft); border: 1px solid #cfe4d9; color: #1f5a43; border-radius: 10px; padding: .75rem 1rem; }
.sandbox { background: var(--amber-soft); border-radius: 8px; padding: .5rem .75rem; color: var(--amber); }
.mail { white-space: pre-wrap; font: 13px/1.55 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: var(--s-3); border-radius: 8px; margin: 0; overflow-x: auto; }
.mail a { color: var(--green); word-break: break-all; }

/* Log in as a dialog on every public page (base.html, publiek.js). */
.login-dialog { border: 0; border-radius: 14px; padding: var(--s-6); width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10, 20, 16, .25); }
.login-dialog::backdrop { background: rgba(10, 20, 16, .55); }
.login-dialog h2 { font-size: var(--fs-6); margin: 0 0 var(--s-2); }
.login-dialog p { color: var(--muted); margin: 0 0 var(--s-4); }
.login-dialog form { display: grid; gap: var(--s-2); }
.login-dialog label { font-weight: 600; font-size: var(--fs-3); }
.login-dialog input { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line-strong, #cfd8d3); border-radius: 8px; }
.login-dialog .button { margin-top: var(--s-2); }
.login-dialog .login-dialog__note { font-size: var(--fs-2); margin: var(--s-4) 0 0; }
.login-dialog__note a, .login-dialog .linkbutton { color: var(--green); }
.login-dialog__close { position: absolute; top: .6rem; right: .8rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }

/* The evergreen texts of market and broker pages (content_publiek/). */
.evergreen__text { max-width: none; }
.evergreen__text h3 { font-size: var(--fs-4); margin: var(--s-5) 0 var(--s-2); }
.evergreen__text p { margin: 0 0 var(--s-3); line-height: 1.7; }
.evergreen__text ul { margin: 0 0 var(--s-3); padding-left: 1.2rem; line-height: 1.7; }
.evergreen__data { color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-3); }

/* Locked values: a lock and a grey bar in every closed column. */
.locked-cell a { display: inline-flex; align-items: center; gap: .45rem; }
.locked-bar { display: inline-block; width: 4.5rem; height: .55rem; border-radius: 99px; background: #e4e9e6; }
.locked-cell a:hover .locked-bar { background: var(--green-soft); }

/* Sortable tables (publiek.js), the buttons of the product. */
.publiek th .sort-button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.publiek th .sort-button::after { content: "\2195"; color: var(--soft); font-size: .85em; }
.publiek th .sort-button[aria-sort="ascending"]::after { content: "\2191"; color: var(--ink); }
.publiek th .sort-button[aria-sort="descending"]::after { content: "\2193"; color: var(--ink); }

/* The site links of a broker under its name. */
.broker-sites { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .3rem; font-size: var(--fs-3); }
.broker-sites a { color: var(--green); }

/* Market text beside the climate cards. */
.market-about .evergreen__text, .market-about__card { max-width: none; padding: var(--s-6); }
.market-about__card > :last-child { margin-bottom: 0; }
.market-about .evergreen__text > :first-child { margin-top: 0; }

/* Subscribe: the cards of the product, the order on the right. */
.subscribe { align-items: start; }
.subscribe fieldset { margin: 0; min-width: 0; }
.subscribe__card legend { float: left; padding: 0; }
.subscribe__card .choice-row { clear: both; }
.subscribe__card .metric-note { margin-top: var(--s-2); }
.subscribe__order { position: sticky; top: 88px; gap: var(--s-3); }
.order { margin: 0; display: grid; }
.order div { display: flex; justify-content: space-between; gap: var(--s-3); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.order dt { color: var(--muted); font-size: var(--fs-3); }
.order dd { margin: 0; font-weight: 650; text-align: right; }
.order__total dd { font-size: var(--fs-5); }
.subscribe__details { gap: var(--s-3); }
.subscribe__details .button { justify-self: stretch; }
@media (max-width: 860px) { .subscribe__order { position: static; } }

/* Legal pages. */
/* Content blocks take the full width of the page, unless something stands beside them (Bart 05-10). */
.legal { padding: var(--s-6); }
.prose-block, .account > * { max-width: none; }
.legal h2 { font-size: var(--fs-5); margin: var(--s-5) 0 var(--s-2); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { line-height: 1.7; }
.site-foot__legal a { color: inherit; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* The broker field of the subscribe page. */
.broker-field { display: grid; gap: .4rem; }
.broker-field label { font-size: var(--fs-3); font-weight: 600; }
.broker-field .check { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--muted); }
.broker-field input:invalid[data-broker-search]:not(:placeholder-shown) { border-color: var(--red, #b24a3b); }

/* Account: the markets of the workspace. */
.market-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .45rem 1rem; margin: var(--s-3) 0 var(--s-4); }
.market-toggle { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-3); }
.market-toggle small { color: var(--muted); }

/* The notice after logging out. */
.toast { position: fixed; top: 84px; left: 50%; z-index: 60; transform: translateX(-50%); padding: .75rem 1.1rem; background: var(--green-soft); border: 1px solid #cfe4d9; color: #1f5a43; border-radius: 10px; box-shadow: 0 14px 40px rgba(18,33,30,.14); font-weight: 600; transition: opacity .4s; }
.toast--gone { opacity: 0; pointer-events: none; }

/* One form for running text on the whole site (Bart 05-10): the form of the market
   texts. Ink, one size, one line height, in a white card (.text-card, .legal,
   .evergreen__text). Grey stays for notes and captions, not for text to read. */
.prose, .prose-block p, .prose-block li, .legal p, .legal li, .evergreen__text p,
.evergreen__text li, .evergreen__data { color: var(--ink); font-size: var(--fs-4); line-height: 1.7; max-width: none; }
.text-card { padding: var(--s-6); }
.text-card > :first-child, .text-card > section > :first-child { margin-top: 0; }
.text-card h2 { font-size: var(--fs-5); margin: var(--s-5) 0 var(--s-2); }

/* Visibility by market beside the broker text (05-10): a table without its own frame. */
.visibility-card .table-wrap--flat { border: 0; box-shadow: none; margin: 0; }
.table--compact tbody th { text-transform: none; letter-spacing: 0; font-size: var(--fs-3); font-weight: 600; color: var(--ink); }
.table--compact th, .table--compact td { padding: .45rem .5rem; }
.table--compact .status { padding: .2rem .45rem; gap: .3rem; }
/* No scrollbar in a table or a code block, also on a phone (Bart, 05-10): the compact
   table gets smaller pills, a code sample and a tool name wrap. */
@media (max-width: 680px) {
  .table-wrap .table--compact th, .table-wrap .table--compact td { padding: .4rem .3rem; }
  .table--compact .status { white-space: normal; font-size: var(--fs-1); }
  .table--compact .flag, .table--compact .status i { display: none; }
  .table--compact { table-layout: fixed; width: 100%; }
  .table--compact th:first-child { width: 38%; }
  .table--compact .status { max-width: 100%; padding: .15rem .35rem; }
  .table-wrap tbody th, .table--compact td, .table--compact thead th, .table--compact .sort-button { white-space: normal; }
  .table-wrap th, .table-wrap td { padding-left: .5rem; padding-right: .5rem; }
  .locked-cell a { display: flex; max-width: 100%; }
  .locked-bar { flex: 1 1 auto; width: auto; min-width: .75rem; max-width: 4.5rem; }
}
.code { white-space: pre-wrap; overflow-wrap: anywhere; }
td code { overflow-wrap: anywhere; }
.demo fieldset { min-width: 0; }
.demo select, .demo input:not([type="checkbox"]):not([type="radio"]), .demo textarea { width: 100%; max-width: 100%; }
