/* persona-notes.css — persona-szabott margó-jegyzetek + zárt körös persona-váltó
   Használat: a lecke <head>-jébe ez a CSS + persona-notes.js (defer, auth.js után).
   A persona-jegyzet: <aside class="margin-note right persona-note" data-persona="dev" hidden>…</aside> */

/* rejtett persona-jegyzet sosem foglal helyet, akkor sem, ha a .margin-note display-t ad rá */
aside[data-persona][hidden] {
  display: none !important;
}

/* a persona-jegyzet kap egy kis "kinek szól" chipet a jegyzet fölé (a JS tölti a data-plabel-t) */
.margin-note.persona-note::before {
  content: attr(data-plabel);
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #783FF3;
  opacity: 0.75;
  margin-bottom: 0.15rem;
  transform: none;
}

/* ── persona-váltó (zárt körös teszt-eszköz) ───────────────────────────── */
.persona-switcher {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 80;
  background: #FFFEF9;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 10px;
  box-shadow: 2px 3px 0 rgba(26, 26, 26, 0.08);
  padding: 7px 9px 8px;
  max-width: 210px;
}
.persona-switcher .ps-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  margin: 0 0 5px 1px;
}
.persona-switcher .ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.persona-switcher button {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  line-height: 1;
  padding: 4px 8px 5px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
}
.persona-switcher button:hover {
  border-color: #783FF3;
}
.persona-switcher button.active {
  background: #783FF3;
  border-color: #783FF3;
  color: #FFFEF9;
}
.persona-switcher .ps-toggle {
  display: none;
}

/* mobilon összecsukható, hogy ne takarja a bottom-nav-ot */
@media (max-width: 768px) {
  .persona-switcher {
    bottom: 64px;
    left: 10px;
  }
}

/* videó-render és nyomtatás alatt nem létezik */
.video-mode .persona-switcher {
  display: none !important;
}
@media print {
  .persona-switcher { display: none !important; }
}
