/* ============================================================
   Premise Homepage — PROTOTYPE TOOLING LAYER
   Version switcher + RFP annotation system.
   This is presentation scaffolding, not part of the site design.
   ============================================================ */

.toolbar {
  position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  background: #0c1a1a; color: #eef6f5;
  padding: 7px 7px 7px 16px; border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 13.5px; max-width: calc(100vw - 32px);
}
.toolbar__label { font-weight: 700; letter-spacing: .02em; opacity: .62; font-size: 11px; text-transform: uppercase; margin-right: 4px; white-space: nowrap; }
.toolbar__seg { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.toolbar__seg button { padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 13px; color: rgba(255,255,255,.7); transition: all .16s; white-space: nowrap; }
.toolbar__seg button.is-active { background: #16b3a8; color: #042320; box-shadow: 0 2px 8px rgba(22,179,168,.4); }
.toolbar__div { width: 1px; height: 26px; background: rgba(255,255,255,.14); margin: 0 4px; }
.toolbar__toggle {
  display: flex; align-items: center; gap: 9px; padding: 8px 15px 8px 13px;
  border-radius: 999px; font-weight: 600; font-size: 13px; transition: all .16s;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.82);
}
.toolbar__toggle.is-on { background: #e8a14c; color: #2a1a05; }
.toolbar__toggle .sw { width: 30px; height: 17px; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; transition: background .16s; flex: none; }
.toolbar__toggle.is-on .sw { background: rgba(42,26,5,.32); }
.toolbar__toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .16s; }
.toolbar__toggle.is-on .sw::after { transform: translateX(13px); }
.toolbar a.toolbar__doc { display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.08); color: #eef6f5; font-weight: 600; font-size: 13px; transition: background .16s; }
.toolbar a.toolbar__doc:hover { background: rgba(255,255,255,.16); }
.toolbar svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
  .toolbar { flex-wrap: wrap; justify-content: center; bottom: 12px; padding: 10px; border-radius: 18px; gap: 8px; }
  .toolbar__label { width: 100%; text-align: center; margin: 0; }
}

/* ---------- Annotation markers ---------- */
.anno {
  position: absolute; z-index: 90;
  width: 30px; height: 30px; border-radius: 50%;
  background: #e8a14c; color: #2a1a05;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 800; font-size: 14px;
  display: none; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 4px rgba(232,161,76,.28);
  transition: transform .15s;
}
.anno:hover { transform: scale(1.12); z-index: 95; }
.anno::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #e8a14c; opacity: .5; animation: annopulse 2.4s ease-out infinite;
}
@keyframes annopulse { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.9); opacity: 0; } }

.site.show-anno .anno { display: grid; }

/* tooltip popover */
.anno__pop {
  position: absolute; z-index: 96; width: 320px; max-width: calc(100vw - 32px);
  background: #0c1a1a; color: #eef6f5; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 20px 56px rgba(0,0,0,.4); font-family: "Hanken Grotesk", system-ui, sans-serif;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; pointer-events: none;
}
.anno__pop.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.anno__pop .tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #e8a14c; margin-bottom: 8px; }
.anno__pop h6 { margin: 0 0 7px; font-size: 15px; font-weight: 800; color: #fff; line-height: 1.25; }
.anno__pop p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(238,246,245,.82); }
.anno__pop .src { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11.5px; color: rgba(238,246,245,.6); font-style: italic; }
.anno__close { position: absolute; top: 12px; right: 12px; color: rgba(255,255,255,.5); width: 20px; height: 20px; display: grid; place-items: center; }
.anno__close:hover { color: #fff; }

/* When annotations are on, give a hint banner once */
.anno-hint {
  position: fixed; z-index: 199; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: #16b3a8; color: #042320; font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.anno-hint.show { opacity: 1; }
