/* Eigen opmaak van deze site. De gedeelde regels staan in css/base.css, css/kaarten.css
   (bron: shared/files/, verspreid met node shared/sync.mjs); die laden vóór dit bestand. */
/* ============================================================
   VKS Leeromgeving — "operations room" thema
   Donker leisteenblauw met crimson/amber accenten
   ============================================================ */

:root {
  --bg:          #0a0d12;
  --bg-panel:    #11161e;
  --bg-raised:   #171f2a;
  --bg-hover:    #1d2735;
  --border:      #283546;
  --border-soft: #1c2632;
  --text:        #dbe3ec;
  --text-dim:    #93a1b3;
  --text-faint:  #61708a;
  --accent:      #e0564a;   /* crimson */
  --accent-dim:  #b23c33;
  --accent-bg:   rgba(224, 86, 74, 0.09);
  --amber:       #e8b04a;
  --amber-bg:    rgba(232, 176, 74, 0.09);
  --steel:       #5aa0d0;
  --danger:      #ff6b6b;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar-h: 56px;
  --sidebar-w: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 75% -10%, rgba(224, 86, 74, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(90, 160, 208, 0.05), transparent);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Topbar ---------- */
.brand-logo .star { transform-origin: 16px 16px; }

/* Cross-site academy-links */
.academies a:hover { border-color: var(--steel); color: var(--steel); }

/* Notitie / waarschuwing / voorbeeld / doctrine */
.note { background: var(--accent-bg); border: 1px solid rgba(224,86,74,0.25); }
.keypt { background: rgba(90,160,208,0.08); border: 1px solid rgba(90,160,208,0.3); }

/* org-chart */
.orgchart { margin: 22px 0; max-width: 920px; }
.org-node { background: var(--bg-raised); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 6px 0; }
.org-node .on-t { font-weight: 600; }
.org-node .on-s { font-size: 13px; color: var(--text-dim); }
.org-children { margin-left: 26px; border-left: 1px dashed var(--border); padding-left: 14px; }

/* ============================================================
   KAART
   ============================================================ */
.map-filters { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 16px; }
.mf-group { display: flex; flex-wrap: wrap; gap: 7px; }
.mf-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.map-stage { position: relative; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
#vks-map-svg { display: block; width: 100%; height: auto; cursor: grab; }
#vks-map-svg.grabbing { cursor: grabbing; }
.map-sea { fill: #0c121c; }
.map-land { fill: #1b2735; stroke: #3a4d63; stroke-width: 1; stroke-linejoin: round; }
.map-relief { mix-blend-mode: soft-light; pointer-events: none; }
.grat { stroke: rgba(120,140,165,0.13); stroke-width: 1; }
.grat-lbl { fill: rgba(120,140,165,0.45); font-family: var(--mono); font-size: 11px; }
.mk { cursor: pointer; }
.mk-halo { opacity: 0.18; transition: opacity 0.12s; }
.mk:hover .mk-halo { opacity: 0.4; }
.mk:hover .mk-dot { stroke: #fff; }
.mk-struck { fill: none; stroke: #e8b04a; stroke-width: 1.6; stroke-dasharray: 3 2.5; opacity: 0.9; }
.tt-struck { margin-top: 6px; font-size: 11.5px; color: var(--amber); font-family: var(--mono); line-height: 1.4; }
.hint-struck { color: var(--amber); }

.map-tooltip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 260px;
  background: rgba(13,18,26,0.97); border: 1px solid var(--accent-dim); border-radius: 9px;
  padding: 10px 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}
.tt-name { font-weight: 700; font-size: 14px; color: var(--text); }
.tt-cmd { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); margin: 4px 0 6px; display: flex; align-items: center; gap: 6px; }
.tt-dot { width: 9px; height: 9px; border-radius: 50%; }
.tt-unit { font-size: 13px; color: var(--text); }
.tt-ac { font-size: 12.5px; color: var(--amber); font-family: var(--mono); margin-top: 2px; }
.map-hint { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: rgba(150,165,185,0.6); pointer-events: none; }
.map-count { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }

/* ============================================================
   THREAT-CARDS
   ============================================================ */
.thr-card.t-crit { border-left-color: #e0564a; }
.thr-card.t-high { border-left-color: var(--amber); }
.thr-card.t-med { border-left-color: var(--steel); }
.t-crit .thr-badge { background: rgba(224,86,74,0.16); color: #f08070; border-color: rgba(224,86,74,0.3); }
.t-high .thr-badge { background: rgba(232,176,74,0.16); color: var(--amber); border-color: rgba(232,176,74,0.3); }
.t-med .thr-badge { background: rgba(90,160,208,0.16); color: var(--steel); border-color: rgba(90,160,208,0.3); }

/* threat modal */

.t-crit .ts-badge { background: rgba(224,86,74,0.18); color: #f08070; border: 1px solid var(--accent-dim); }
.t-high .ts-badge { background: rgba(232,176,74,0.16); color: var(--amber); border: 1px solid rgba(232,176,74,0.4); }
.t-med .ts-badge { background: rgba(90,160,208,0.16); color: var(--steel); border: 1px solid rgba(90,160,208,0.4); }

.ts-left { }
.ts-v { color: var(--text); text-align: right; font-family: var(--mono); font-size: 12px; }

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
  .content { margin-left: 0; padding: 24px 18px 80px; }
  .search-wrap { width: auto; flex: 1; }
}

/* ---------- Print ---------- */

@media print {
  .topbar, .sidebar, .sidebar-overlay, #search-results, .nav-toggle, .print-fab, .map-filters, .map-hint, .thr-filters { display: none !important; }
  .content { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .note, .warn, .example, .keypt, .ts-panel, table.data { break-inside: avoid; }
}

/* ============================================================
   Kennischeck / quiz (ch10)
   ============================================================ */
.quiz-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 22px 20px; margin: 18px 0;
}
.quiz-intro, .quiz-result { text-align: center; }
.quiz-btn {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.03em;
  background: var(--accent); color: #0a0d12; border: none; border-radius: 8px;
  padding: 11px 22px; cursor: pointer; font-weight: 600;
}
.quiz-btn:hover { background: #ec6d61; }
.quiz-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.quiz-score { color: var(--accent); }
.quiz-prompt { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.quiz-clue { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.quiz-opts { display: grid; gap: 9px; }
.quiz-opt {
  text-align: left; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--sans); font-size: 14.5px;
  padding: 12px 15px; cursor: pointer; transition: border-color .12s, background .12s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--accent-dim); background: var(--bg-hover); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-correct { border-color: #3fae74; background: rgba(63,174,116,0.12); color: #9fe3bf; }
.quiz-opt.is-wrong { border-color: var(--accent-dim); background: var(--accent-bg); color: #f0a49c; }
.quiz-fb {
  margin-top: 15px; font-size: 14px; padding: 11px 14px; border-radius: 8px; line-height: 1.5;
}
.quiz-fb.fb-ok { background: rgba(63,174,116,0.12); color: #9fe3bf; }
.quiz-fb.fb-no { background: var(--accent-bg); color: #f0a49c; }
.quiz-actions { margin-top: 16px; text-align: right; }
.quiz-result-msg { font-size: 16px; line-height: 1.6; margin-bottom: 18px; color: var(--text); }

/* ============================================================
   Live OSINT-feed in threat-modal
   ============================================================ */
.ts-feed { border-top: 2px solid var(--accent-dim); }
.tf-item {
  display: block; text-decoration: none; padding: 8px 10px; border-radius: 7px;
  margin: 2px 0;
}
.tf-item:hover { background: var(--bg-hover); }
.tf-title { display: block; color: var(--text); font-size: 13px; line-height: 1.45; }
.tf-item:hover .tf-title { color: #fff; }
.tf-meta { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); margin-top: 2px; letter-spacing: 0.03em; }
.tf-disclaimer {
  font-size: 11px; color: var(--text-faint); line-height: 1.5;
  border-top: 1px dashed var(--border); margin-top: 8px; padding: 8px 10px 2px;
}
