/* rondleiding.css — help-boei in de kopbalk, keuzemenu en spotlight-rondleiding (rondleiding.js).
   Mechanisme en vorm overgenomen uit de declaraties-app; kleuren/hoeken uit huisstijl.css. */

/* ---------- Help-boei (rond vraagteken rechts in de kopbalk) ---------- */
.help-boei {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 50%; border: 1.5px solid rgba(134, 199, 157, .55);
  background: rgba(134, 199, 157, .14); color: var(--groen);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.help-boei[hidden] { display: none; }
.help-boei:hover, .help-boei[aria-expanded="true"] { background: rgba(134, 199, 157, .28); border-color: var(--groen); color: var(--zuiver-wit); }
.help-boei:hover { transform: translateY(-1px); }
.help-boei:focus-visible { outline: 3px solid var(--oranje); outline-offset: 2px; }
.help-boei svg { width: 20px; height: 20px; }

/* ---------- Keuzemenu "Waar wil je uitleg over?" ---------- */
.rl-menu {
  position: fixed; z-index: 2050;
  width: min(300px, calc(100vw - 24px));
  background: var(--zuiver-wit); color: var(--donkergroen);
  border-radius: var(--r-groot);
  box-shadow: 0 10px 30px rgba(13, 24, 33, .22);
  padding: 14px 12px 12px;
}
.rl-menu-titel { margin: 0 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--oranje-donker); }
.rl-menu-lijst { display: grid; gap: 4px; }
.rl-menu-optie {
  display: grid; gap: 1px; width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--donkergroen);
  padding: 10px 12px; min-height: 44px; border-radius: var(--r-klein);
  transition: background-color .12s ease;
}
.rl-menu-optie:hover { background: rgba(134, 199, 157, .2); }
.rl-menu-optie:focus-visible { outline: 3px solid var(--oranje); outline-offset: -1px; }
.rl-menu-optie-naam { font-weight: 700; font-size: 15px; }
.rl-menu-optie-sub { font-size: 13px; opacity: .72; }
.rl-menu-alles { background: var(--wit); margin-bottom: 4px; }
.rl-menu-alles .rl-menu-optie-naam::after { content: ' →'; color: var(--oranje); }
.rl-menu-alles:hover { background: rgba(134, 199, 157, .28); }
/* Editor open: korte melding i.p.v. de onderwerpen. */
.rl-menu-melding { margin: 0 6px 8px; font-size: 14px; line-height: 1.5; }
.rl-menu-ok { background: var(--wit); text-align: center; }
.rl-menu-ok:hover { background: rgba(134, 199, 157, .28); }

/* ---------- Rondleiding: afscherming, spotlight, uitlegkaartje ---------- */
#rl-blocker { position: fixed; inset: 0; z-index: 2100; display: none; }
#rl-blocker.dim { background: rgba(19, 52, 43, .74); }

#rl-spotlight {
  position: fixed; z-index: 2101; pointer-events: none; display: none;
  border-radius: 14px; outline: 3px solid var(--groen);
  box-shadow: 0 0 0 9999px rgba(19, 52, 43, .74);
  transition: top .3s cubic-bezier(.3, .7, .3, 1), left .3s cubic-bezier(.3, .7, .3, 1), width .3s, height .3s;
}

#rl-callout {
  position: fixed; z-index: 2102; display: none;
  width: min(340px, calc(100vw - 24px));
  background: var(--zuiver-wit); color: var(--donkergroen);
  border-radius: var(--r-groot);
  box-shadow: 0 12px 34px rgba(13, 24, 33, .28);
  padding: 20px 20px 16px;
  will-change: transform; /* eigen laag: voorkomt naad-strepen van de grote spotlight-schaduw erachter */
  transition: opacity .25s ease;
}
#rl-callout.rl-wissel { opacity: 0; pointer-events: none; } /* even weg tijdens een schermwissel */
@media (prefers-reduced-motion: reduce) { #rl-callout { transition: none; } }
#rl-callout .rl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#rl-callout .rl-count { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--oranje-donker); }
#rl-callout .rl-x {
  width: 32px; height: 32px; border: none; cursor: pointer; padding: 0;
  background: rgba(134, 199, 157, .2); color: var(--donkergroen); border-radius: 50%;
  font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
#rl-callout .rl-x:hover { background: rgba(134, 199, 157, .4); }
#rl-callout h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
#rl-callout p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
#rl-callout .rl-dots { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
#rl-callout .rl-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(19, 52, 43, .15); }
#rl-callout .rl-dots i.on { width: 20px; border-radius: 999px; background: var(--oranje); }
#rl-callout .rl-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#rl-callout .rl-ghost { background: transparent; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--donkergroen); opacity: .75; padding: 10px 4px; min-height: 44px; }
#rl-callout .rl-ghost:hover { opacity: 1; }
#rl-callout .rl-next {
  background: var(--donkergroen); color: var(--zuiver-wit); border: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; padding: 11px 22px; min-height: 44px;
  border-radius: var(--r-pil);
}
#rl-callout .rl-next:hover { background: #0d251e; }
#rl-callout button:focus-visible { outline: 3px solid var(--oranje); outline-offset: 2px; }

/* Smal scherm: compacter, zodat de kopbalk niet extra hoog wordt of uitloopt. */
@media (max-width: 640px) {
  .topbar-rechts { gap: 10px; }
  .help-boei { width: 32px; height: 32px; }
  .help-boei svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #rl-spotlight, .help-boei, .rl-menu-optie { transition: none; }
  .help-boei:hover { transform: none; }
}
