/* Gedeelde stijl voor alle pagina's: navigatie, in-/uitklappen, toelichting-popups en mobiele aanpassingen. */
.topnav { display: none !important; }   /* oude navigatiebalk; vervangen door .gnav */

/* ---------- navigatiebalk ---------- */
.gnav { position: sticky; top: 0; z-index: 2500; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px;
  background: var(--surface); border-bottom: 1px solid var(--border); font: 13px system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
.gnav .gn-brand { margin: 0 8px 0 2px; font-size: 13px; white-space: nowrap; }
.gnav .gn-links { display: flex; align-items: stretch; height: 100%; }
.gnav .gn-links a { display: flex; align-items: center; color: var(--ink2); text-decoration: none; padding: 0 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.gnav .gn-links a:hover { color: var(--ink); }
.gnav .gn-links a.on { color: var(--s1); border-bottom-color: var(--s1); font-weight: 600; }
.gnav .gn-spacer { flex: 1; }
.gnav a.gn-back { font: inherit; font-weight: 600; color: var(--ink); background: var(--page); border: 1px solid var(--axis); border-radius: 8px; padding: 5px 10px; text-decoration: none; white-space: nowrap; }
.gnav a.gn-back:hover { border-color: var(--s1); color: var(--s1); }
.gnav button.gn-btn { font: inherit; font-weight: 600; color: var(--ink); background: var(--page); border: 1px solid var(--axis); border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.gnav button.gn-btn:hover, .gnav button.gn-btn[aria-expanded=true] { border-color: var(--s1); color: var(--s1); }
.gnav .gn-burger { display: none; }
.gnav .gn-page { position: relative; }
.gnav .gn-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 2600; width: min(340px, calc(100vw - 20px)); max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.28); padding: 6px; }
.gnav .gn-menu[hidden] { display: none; }
.gnav .gn-menu a, .gnav .gn-menu button { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer; text-decoration: none; }
.gnav .gn-menu a:hover, .gnav .gn-menu button:hover { background: var(--page); color: var(--s1); }
.gnav .gn-menu .ind { padding-left: 24px; color: var(--ink2); font-size: 12.5px; }
.gnav .gn-menu .gn-sep { height: 1px; background: var(--grid); margin: 5px 4px; }
.gnav .gn-menu .gn-row { display: flex; gap: 6px; }
.gnav .gn-menu .gn-row button { text-align: center; border: 1px solid var(--axis); font-size: 12px; }
[data-gn-target] { scroll-margin-top: 58px; }

/* ---------- in-/uitklappen ---------- */
.cz-head { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.cz-head > h1, .cz-head > h2, .cz-head > h3 { margin: 0; }
.cz-head .cz-chev { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: transform .15s; font-size: 12px; }
.cz.collapsed > .cz-head .cz-chev { transform: rotate(-90deg); }
.cz.collapsed > .cbody { display: none; }
.cz > .cbody { margin-top: 4px; }
.cz-head .cz-end { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cz-head.chead { justify-content: flex-start; }
.cz-head.chead > h3 + * { margin-left: auto; }
.sect > .cz-head { padding: 4px 0; }
.sect > .cz-head > h2 { font-size: 18px; }

/* ---------- toelichting in een popup ---------- */
.tipsrc { display: none !important; }
button.info { flex: none; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--axis); background: var(--page); color: var(--ink2); font: italic 700 12px/1 Georgia, serif; cursor: help; }
button.info:hover, button.info[aria-expanded=true] { border-color: var(--s1); color: var(--s1); }
#gtip { position: absolute; z-index: 3500; max-width: min(420px, calc(100vw - 20px)); background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28); padding: 10px 12px; font: 12.5px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
#gtip[hidden] { display: none; }
#gtip hr { border: 0; border-top: 1px solid var(--grid); margin: 7px 0; }
#gtip p { margin: 0 0 6px; }
#gtip .facts { display: grid; gap: 6px; font-size: 12.5px; }
#gtip .facts div { border-left: 3px solid var(--axis); padding-left: 8px; }
#gtip .facts b { display: block; font-size: 11.5px; color: var(--ink2); }

/* ---------- mobiel ---------- */
.scroll, .tablewrap { overflow: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .gnav .gn-burger { display: inline-block; }
  .gnav .gn-links { display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
  .gnav .gn-links.open { display: flex; }
  .gnav .gn-links a { padding: 13px 16px; border-bottom: 1px solid var(--grid); border-left: 3px solid transparent; }
  .gnav .gn-links a.on { border-bottom-color: var(--grid); border-left-color: var(--s1); }
  .gnav .gn-brand { font-size: 12px; }
  main { padding: 12px 10px 48px !important; }
  .grid2 { grid-template-columns: 1fr !important; }
  .kpis { grid-template-columns: repeat(2, 1fr) !important; }
  .kpi .v { font-size: 20px !important; }
  .card { padding: 10px 12px !important; }
  input[type=text], input[type=number], input[type=datetime-local], select { font-size: 16px; }
  .bar { position: static !important; }
  .combo input { width: 100% !important; }
  .facts { grid-template-columns: 1fr !important; }
  table { font-size: 12px; }
  th, td { padding: 5px 6px; }
}

/* hamburgermenu */
.gnav .gn-brand { font-size: 14px; margin: 0 8px 0 2px; }
.gnav button.gn-hamb { font-size: 18px; line-height: 1; padding: 4px 11px; }
.gnav .gn-menu a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--s1); text-decoration: none; font-weight: 600; }

.gnav .gn-brand { display: inline-flex; align-items: center; gap: 8px; }
.gnav .gn-ico { flex: none; display: block; }

/* tweetaligheid (zie i18n.js): pagina verborgen tot de taal bekend en de vertaling klaar is; taalwisselaar NL | EN */
html.i18n-wait body { visibility: hidden; }
.langsw { flex: none; align-self: center; width: 40px; height: 40px; margin: 0; padding: 0; display: inline-flex; border: 0; border-radius: 50%; overflow: hidden; background: none; cursor: pointer; box-shadow: 0 0 0 1px var(--axis, #c8ced6); }   /* breedte en hoogte worden in i18n.js gelijkgetrokken met de knop Filters */
.langsw svg { width: 100%; height: 100%; display: block; opacity: 0.5; filter: saturate(0.55); transition: opacity .15s, filter .15s; }   /* subtiel: valt pas op bij hover */
.langsw:hover svg, .langsw:focus-visible svg { opacity: 1; filter: none; }
.langsw:hover { box-shadow: 0 0 0 1px var(--axis, #c8ced6); }
.gnav .langsw { width: 30px; height: 30px; align-self: center; margin-left: 8px; }

/* terugknop met chevron */
.gnav a.gn-back { display: inline-flex; align-items: center; gap: 4px; padding-left: 6px; }
.gnav a.gn-back .gn-chev { flex: none; }
