/* TNXTO Kompas — opmaak. Alles staat onder .kompas, dus geen botsing met de site.
   Verwacht Roboto op de pagina; kleuren staan hieronder als eigen variabelen. */
.kompas {
  --k-navy-950: #072540; --k-navy-900: #004874; --k-ink: #3A4550; --k-steel-500: #6D8BAB;
  --k-steel-100: #C9D4E0; --k-blue-50: #ECF0F7; --k-orange-500: #E26530; --k-orange-700: #B84A1C;
  --k-cream-50: #FDF0E7; --k-line: #E3E6E9; --k-r-xs: 6px; --k-r-sm: 12px; --k-r-md: 18px;
  --k-shadow-sm: 0 4px 14px rgba(7, 37, 64, .08);
  font-family: Roboto, Arial, Helvetica, sans-serif; color: var(--k-ink); line-height: 1.6;
}
.kompas *, .kompas *::before, .kompas *::after { box-sizing: border-box; }
.kompas :focus-visible { outline: 3px solid var(--k-orange-500); outline-offset: 3px; }

.kompas__stage {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
}
.kompas__mark {
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin: 0 auto;
  touch-action: none; cursor: grab; border-radius: var(--k-r-md);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.kompas__mark.is-dragging { cursor: grabbing; }
.kompas__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kompas__seg { cursor: pointer; }
.kompas__seg.is-hover { filter: brightness(1.12); }
.kompas__mark.is-dragging .kompas__seg { cursor: grabbing; }
.kompas__ring { pointer-events: none; }

.kompas__tip {
  position: absolute; left: 0; top: 0; pointer-events: none; background: var(--k-navy-950); color: #fff;
  font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: var(--k-r-xs);
  white-space: nowrap; box-shadow: var(--k-shadow-sm);
}
/* de bedieningstip staat niet meer in beeld; hij blijft voor schermlezers beschikbaar via aria-describedby */
.kompas__hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* uitlegblok */
/* uitlegblok: redactioneel, geen kaart (zoals in het prototype Raster) */
.kompas__panel { position: relative; min-height: 190px; padding: 4px 0 22px 22px; border-left: 2px solid var(--k-line); transition: border-color .25s; }
.kompas__panel.is-open { border-left-color: var(--k-orange-500); }
.kompas__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--k-orange-700); margin: 0 0 8px; }
.kompas__title { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 48px 12px 0; color: var(--k-navy-900); }
.kompas__lead { margin: 0 0 8px; font-weight: 500; color: var(--k-navy-900); max-width: 52ch; }
.kompas__text { margin: 0; max-width: 52ch; }
.kompas__close {
  position: absolute; top: 0; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--k-steel-100);
  background: #fff; color: var(--k-navy-900); font-size: 18px; line-height: 1; cursor: pointer; display: none;
}
.kompas__close:hover { border-color: var(--k-navy-900); }
.kompas__panel.has-sel .kompas__close { display: block; }
.kompas__panel.is-open .kompas__body { animation: kompas-rise .28s ease-out; }
@keyframes kompas-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* index van expertises: tekst, nummers en lijnen in plaats van knoppen met iconen */
.kompas__index { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--k-navy-900); }
.kompas__index li { border-bottom: 1px solid var(--k-line); }
.kompas__index .kompas__index-core { grid-column: 1 / -1; }
.kompas__index li { position: relative; transition: background .15s, box-shadow .15s; }
.kompas__index li.is-hover { background: var(--k-blue-50); box-shadow: -8px 0 0 var(--k-blue-50), 8px 0 0 var(--k-blue-50); }
.kompas__index li.is-hover .kompas__name { color: var(--k-navy-900); }
.kompas__chip {
  all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 34px; align-items: baseline; gap: 6px;
  padding: 13px 2px 12px; cursor: pointer; color: var(--k-ink); font-size: .9375rem; line-height: 1.35; position: relative;
}
.kompas__chip:focus-visible { outline: 3px solid var(--k-orange-500); outline-offset: 2px; border-radius: 2px; }
.kompas__num { font-size: .75rem; font-weight: 500; color: #5B6875; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.kompas__index-core .kompas__num { text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: .6875rem; }
.kompas__index-core .kompas__name { font-weight: 700; color: var(--k-navy-950); }
/* pijl: link naar de thema's van deze expertise */
.kompas__go {
  position: absolute; right: -4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border-radius: 50%;
  color: var(--k-steel-500); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s, background .2s, color .2s; z-index: 1;
}
.kompas__go svg { width: 16px; height: 16px; }
.kompas__go:hover { background: var(--k-blue-50); color: var(--k-orange-500); }
.kompas__go:focus-visible { outline: 3px solid var(--k-orange-500); outline-offset: 1px; opacity: 1; transform: none; }
.kompas__index li:hover .kompas__go, .kompas__chip:focus-visible + .kompas__go, .kompas__chip[aria-pressed="true"] + .kompas__go { opacity: 1; transform: none; }
.kompas__chip[aria-pressed="true"] + .kompas__go { color: var(--k-orange-500); }
@media (hover: none) { .kompas__go { opacity: 1; transform: none; } }
.kompas__chip:hover .kompas__name { color: var(--k-navy-900); }
.kompas__chip.is-front .kompas__num { color: var(--k-orange-700); }
.kompas__chip[aria-pressed="true"] { color: var(--k-navy-900); }
.kompas__chip[aria-pressed="true"] .kompas__name { font-weight: 700; }
.kompas__chip[aria-pressed="true"] .kompas__num { color: var(--k-orange-700); }
.kompas__chip[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--k-orange-500); }

/* bediening van de carrousel: vorige/volgende met teller en streepjes */
.kompas__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px auto 0; max-width: 360px; }
.kompas__ctrlbtn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--k-steel-100); background: #fff; color: var(--k-navy-900);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s; padding: 0;
}
.kompas__ctrlbtn svg { width: 20px; height: 20px; }
.kompas__ctrlbtn:hover { border-color: var(--k-navy-900); background: var(--k-navy-900); color: #fff; }
.kompas__ctrlmid { flex: 1; min-width: 0; text-align: center; }
.kompas__count { margin: 0 0 8px; font-size: .8125rem; color: #5B6875; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.kompas__count b { color: var(--k-navy-900); font-weight: 700; text-transform: uppercase; }
.kompas__ticks { display: flex; gap: 4px; }
.kompas__ticks i { flex: 1; height: 2px; background: var(--k-steel-100); transition: background .25s; }
.kompas__ticks i.is-on { background: var(--k-orange-500); }

@media (max-width: 960px) { .kompas__stage { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .kompas__mark { max-width: 86vw; }
  .kompas__panel { min-height: 0; }
  .kompas__index { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .kompas__panel.is-open .kompas__body { animation: none; } }
