/* Bovenbalk, gelijk op alle pagina's. Telefoon: logo links, knoppen rechts, menu klapt eronder open. */
body { margin: 0; }
header.top { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.3; }
header.top > .wrap { max-width: 1100px; height: auto; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.top .brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; margin-right: auto; font-size: 1.2rem; font-weight: 500; letter-spacing: .01em; color: var(--accent); white-space: nowrap; text-decoration: none; }
.top .brand .logo { width: 34px; height: 42px; flex: none; background: var(--ink); -webkit-mask: url(/logo.svg) center / contain no-repeat; mask: url(/logo.svg) center / contain no-repeat; }
.top .brand .name { display: block; }
.top .brand small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tnav a, .tnav button { font: inherit; font-size: .9rem; line-height: 1.2; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tnav a:hover, .tnav button:hover { border-color: var(--muted); }
.tnav [aria-current="page"], .tnav button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.tnav .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.mtools, .mmenu { display: none; }
.mtools svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (min-width: 681px) and (max-width: 999px) {
  /* Tablet: logo en knoppen elk op een eigen, gecentreerde regel. */
  .top .brand { margin: 0 auto; }
  .tnav { flex: 1 1 100%; }
}
@media (max-width: 680px) {
  header.top > .wrap { flex-wrap: nowrap; gap: 8px; padding-top: 6px; padding-bottom: 6px; position: relative; }
  .top .brand { flex: 1; margin-right: 0; gap: 8px; font-size: 1.02rem; }
  .top .brand .name { overflow: hidden; text-overflow: ellipsis; }
  .top .brand .logo { width: 26px; height: 34px; }
  .top .brand small { font-size: .62rem; }
  .tnav { display: none; }
  .mtools { display: flex; gap: 6px; flex: none; }
  .mtools button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; font: inherit; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
  .mtools button[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .top .pane { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 10px 22px rgba(0, 0, 0, .14); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  .top.open-menu .mmenu { display: flex; flex-direction: column; padding-block: 4px; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; }
  .mmenu a, .mmenu button { display: block; text-align: left; width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); text-decoration: none; font: inherit; font-size: 1rem; }
  .mmenu .mhead { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 18px 2px 6px; border-bottom: 1px solid var(--line); }
  .mmenu > :last-child { border-bottom: 0; }
  .mmenu [aria-current="page"] { color: var(--accent); font-weight: 500; }
}
@media print { header.top { display: none !important; } }
