/* The site's sections as tabs, on every page (tools/build_pages.py tabs, index.html, privacy.html): on top beside
   the name; on a phone a bar at the bottom of the screen, always there, under the thumb (Tomas, 15 Nov 2026,
   pick "8A · Tabs onderaan, altijd zichtbaar"). Mics reads "Microphones" where there is room (Tomas, 15 Nov
   2026: "Microphones hier (waar plaats)"). Keys 1, 2 and 3 open them (app/site.js; pick "9A · 1, 2 en
   3 openen Compare, Mics en Instruments"), without showing on the tabs (Tomas, 15 Nov 2026: "1 2 3 shortcuts weg
   uit UI voor tabs"). */
.site-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--border); margin: -8px 0 16px; }
.site-top .brand { font-size: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; margin: 0; padding: 8px 0; }
.tabs { display: flex; margin-bottom: -1px; }
.tabs a { padding: 10px 12px 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .short { display: none; }
@media (max-width: 600px) {
  .site-top { margin-bottom: 12px; }
  .tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; background: var(--surface);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a, .tabs a:first-child { flex: 1; display: grid; place-items: center; min-height: 52px; padding: 0 4px; border-bottom: 0; border-top: 2px solid transparent; }
  .tabs a.on { border-top-color: var(--accent); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 340px) { .tabs .long { display: none; } .tabs .short { display: inline; } }

/* The search field (app/search.js), on top of every page at the right of the tabs; on a phone beside the
   name, the tabs being at the bottom. Its results open under it, as on most sites (Tomas, 15 Nov 2026:
   "Search boven. Volg al conventions ever"). */
.site-top:has(.site-search) { flex-wrap: nowrap; }
.site-top:has(.site-search) .brand { white-space: nowrap; }
.site-search { position: relative; margin-left: auto; flex: 0 1 300px; min-width: 120px; display: flex; align-items: center; }
.site-search .loupe { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.site-search input { width: 100%; min-width: 0; height: 36px; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--page);
  border: 1px solid var(--border); border-radius: 8px; padding: 0 30px 0 32px; }
.site-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.site-search input::-webkit-search-cancel-button { display: none; }
.site-search kbd { position: absolute; right: 8px; font: 0.75rem ui-monospace, monospace; color: var(--muted); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 5px; pointer-events: none; }
.site-search input:focus ~ kbd, .site-search input:not(:placeholder-shown) ~ kbd { display: none; }
.site-hits { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; width: min(420px, 92vw); max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.14); padding: 4px 0 8px; }
.site-hits .sh-group { margin: 10px 14px 2px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.site-hits a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px; color: var(--ink); text-decoration: none; user-select: none; }
.site-hits a:hover, .site-hits a[aria-selected="true"] { background: var(--border); }
.site-hits a > span:last-child { flex: 1; min-width: 0; }
.site-hits b { font-weight: 600; display: block; }
.site-hits small { display: block; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-hits .sh-pic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
.site-hits .sh-pic img { max-width: 36px; max-height: 36px; object-fit: contain; }
.site-hits .sh-all { color: var(--accent); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 6px; }
.site-hits .sh-none { margin: 10px 14px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) {
  .site-top { gap: 0 12px; }
  .site-search { flex: 1 1 auto; }
  .site-search kbd { display: none; }
  .site-search input { font-size: 16px; height: 40px; }   /* 16 px: iOS doesn't zoom in on focus */
  .site-hits { width: calc(100vw - 32px); max-height: calc(100dvh - 140px); }
}
