/* Structuurzoeker – exportknoppen (kopiëren / downloaden) rechtsboven op het tekenpapier, links van de
   favorietenster. Zelfde vormtaal en hoogte als .fav-ster en de schakelaar Skelet/Volledig; het papier
   is ook in donkere modus licht, dus vaste lichte kleuren. Absoluut gepositioneerd: niets verschuift. */

.exp-groep {
  position: absolute;
  top: 12px;
  /* 12px marge + breedte van de ster (22px icoon + 2 × 9.25px padding + 2px rand) + 8px tussenruimte */
  right: calc(12px + 42.5px + 8px);
  display: flex;
  z-index: 5;
}

.exp-knop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9.25px 12px;
  border: 1px solid #d5dce2;
  background: #e7ecf0;
  color: #4a5764;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.exp-knop svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.exp-knop:hover,
.exp-knop[aria-expanded="true"] { color: #1d2733; background: #ffffff; }
.exp-knop:focus-visible { outline-color: #2446c4; position: relative; z-index: 1; }

.exp-kopieer { border-radius: 10px 0 0 10px; }
.exp-meer { border-radius: 0 10px 10px 0; border-left: 0; padding-inline: 9.25px; }

.exp-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #d5dce2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(29, 39, 51, 0.16);
  display: grid;
}
.exp-menu[hidden] { display: none; }
.exp-item {
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d2733;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.exp-item:hover,
.exp-item:focus-visible { background: #eef2f6; outline: none; }

/* Middelgroot: alleen iconen. Smal (gsm): alleen de menuknop (daarin staat ook "Kopiëren voor Word"),
   zodat de knoppen niet tegen de schakelaar Skelet/Volledig aan komen. */
@media (max-width: 760px) {
  .exp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .exp-kopieer { padding-inline: 9.25px; }
}
@media (max-width: 480px) {
  .exp-kopieer { display: none; }
  .exp-meer { border-left: 1px solid #d5dce2; border-radius: 10px; }
  .exp-menu { min-width: 0; width: max-content; max-width: calc(100vw - 48px); }
}

/* Melding onderaan (zelfde stijl als de favorieten-melding). */
.exp-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  transform: translate(-50%, 8px);
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--inkt);
  color: var(--oppervlak);
  box-shadow: var(--schaduw);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.exp-toast.zichtbaar { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .exp-toast { transition: none; } }
