/* Gedeelde site-navigatie — interne beheerderssite */

.site-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}

.site-topbar--sticky {
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-nav-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.site-nav-toggle:hover { border-color: #94a3b8; background: #fff; }
.site-nav-toggle[aria-expanded="true"] { background: #eff6ff; border-color: #93b4f5; color: #1d4ed8; }

.site-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-topbar__logo {
  width: 36px;
  height: 36px;
  background: #1d4ed8;
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.site-topbar__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-topbar__sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.site-topbar__links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.site-topbar__link {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.site-topbar__link:hover { background: var(--bg); color: var(--text); }
.site-topbar__link--active { background: #eff6ff; color: #1d4ed8; }

.site-topbar__extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Drawer */
.site-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
}

.site-nav-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.site-nav-overlay.is-open .site-nav-backdrop { opacity: 1; }

.site-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--card);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

.site-nav-overlay.is-open .site-nav-drawer { transform: translateX(0); }

.site-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8faff 0%, var(--card) 100%);
}

.site-nav-drawer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.site-nav-drawer__brand-logo {
  width: 32px;
  height: 32px;
  background: #1d4ed8;
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.site-nav-drawer__brand-text { font-size: 0.9rem; font-weight: 700; }
.site-nav-drawer__sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.site-nav-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.site-nav-close:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

.site-nav-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 24px;
}

.site-nav__section { margin-bottom: 18px; }

.site-nav__section-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.site-nav__link {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: border-color 0.12s;
}

.site-nav__link:hover { border-color: #93b4f5; }
.site-nav__link--active { border-color: #1d4ed8; background: #eff6ff; }

.site-nav__link strong { display: block; font-size: 0.86rem; }
.site-nav__link span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.site-nav__group { margin-bottom: 10px; }

.site-nav__group-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
  padding-left: 4px;
}

.site-nav__topic {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav__topic:hover { background: var(--bg); color: var(--text); }
.site-nav__topic--active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }

.site-nav-drawer__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}

body.site-nav-open { overflow: hidden; }

/* Compact drawer */
.site-nav-drawer--compact { width: min(280px, 86vw); }

.site-nav__main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-nav-drawer--compact .site-nav__link {
  margin-bottom: 0;
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.84rem;
  background: var(--card);
}

.site-nav__divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.site-nav-drawer--compact .site-nav__section-title {
  margin-bottom: 10px;
}

.site-nav__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.site-nav__pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.site-nav__pill:hover { border-color: #93b4f5; color: var(--text); }
.site-nav__pill--active { border-color: #1d4ed8; background: #eff6ff; color: #1d4ed8; }

.site-nav__more {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  border: 1px dashed #93b4f5;
  text-align: center;
}

.site-nav__more:hover { background: #f0f5ff; }

/* Docs hub */
.docs-page { min-height: 100vh; background: var(--bg); }

.docs-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}

.docs-hero h1 { font-size: 1.65rem; font-weight: 700; margin-bottom: 8px; }
.docs-hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; max-width: 640px; }

.docs-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.docs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d4ed8;
}

.docs-card__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-card__links a {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}

.docs-card__links a:hover { background: var(--bg); border-color: var(--border); }

.docs-card__links a small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1px;
}

.docs-card--highlight {
  border-color: #93b4f5;
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
}

.docs-card--highlight .docs-card__links a { font-weight: 600; }

.docs-quick {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.docs-quick__inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.docs-quick__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

/* Detail page layout */
.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  gap: 24px;
  padding: 24px 24px 48px;
}

.detail-aside {
  position: sticky;
  top: 72px;
  align-self: start;
}

.detail-aside__title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-aside a {
  display: block;
  padding: 6px 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 5px;
  border-left: 2px solid transparent;
}

.detail-aside a:hover { color: var(--text); background: var(--card); }
.detail-aside a.is-active { color: #1d4ed8; border-left-color: #1d4ed8; font-weight: 600; }

.detail-main { min-width: 0; }

.detail-breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.detail-breadcrumb a { color: #1d4ed8; text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }

.detail-page__body h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #f0f5ff;
  border: 1px solid #93b4f5;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.detail-banner a { margin-top: 8px; }

/* Documenten sectie */
.docs-files-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 32px;
}

.docs-files-head {
  margin-bottom: 16px;
}

.docs-files-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.docs-files-head p {
  font-size: 0.82rem;
  color: var(--muted);
}

.docs-files-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 14px;
}

.docs-files-dropzone:hover,
.docs-files-dropzone.is-drag {
  border-color: #93b4f5;
  background: #f0f5ff;
  color: #1d4ed8;
}

.docs-files-hint {
  font-size: 0.7rem;
  font-family: var(--mono);
  color: #94a3b8;
}

.docs-upload-status {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.docs-file-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 6px;
}

.docs-file-icon { font-size: 1.2rem; flex-shrink: 0; }
.docs-file-name { font-size: 0.84rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-file-size { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; }

@media (max-width: 560px) {
  .docs-file-row { grid-template-columns: auto 1fr auto; }
  .docs-file-size { display: none; }
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 900px) {
  .site-topbar__links { display: flex; }
}

@media (max-width: 800px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; display: none; }
  .site-topbar__sub { display: none; }
  .site-topbar__brand { gap: 8px; }
  .site-topbar__logo { width: 30px; height: 30px; font-size: 10px; }
}

@media (max-width: 480px) {
  .site-topbar { padding: 8px 12px; gap: 8px; }
  .site-topbar__title { font-size: 0.85rem; }
  .auth-bar__name { display: none; }
  .auth-bar__btn span { display: none; }
  .auth-bar__btn { padding: 0 10px; }
  .auth-bar__user span:not(.auth-btn__icon) { display: none; }
}
