/* ProjectSwitcher — one thin full-length light bar across the container,
   three sections: HSB | HHODL | HRE.
   Modelled on the continuous DRL strip of Chinese EVs: a slim dark capsule
   where only the current section is illuminated.

   Sits below the page's own disclaimer, so it reads as a footer-level
   affordance rather than competing with the page's own tab strips. */

.psw-host {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.psw {
  display: block;
}

/* The bar itself: full container width, kept deliberately slim — its length
   and the lit section carry the meaning, not its height. */
.psw-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  height: 30px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(255,255,255,.035));
  backdrop-filter: blur(8px);
}

.psw-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  color: var(--muted2);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

/* Hairline separators so the three sections of the one bar read as sections. */
.psw-item + .psw-item { position: relative; }
.psw-item + .psw-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: var(--border);
}

.psw-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.psw-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--text);
}

a.psw-item:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

/* Illuminated section: the only lit part of the bar, inset from the capsule
   edge so it reads as a lamp behind glass rather than a filled cell. */
.psw-item.is-active {
  background: linear-gradient(180deg, rgba(201,168,106,.42), rgba(201,168,106,.16));
  border-color: rgba(201,168,106,.55);
  color: #FFEFD2;
  box-shadow: 0 0 16px rgba(201,168,106,.38), inset 0 1px 0 rgba(255,255,255,.28);
  cursor: default;
}

.psw-item.is-active::before { background: transparent; }

/* Stays a three-column bar at every width — the labels are short codenames,
   so stacking would only spend vertical space. */
@media (max-width: 760px) {
  .psw-track { height: 26px; padding: 2px; }
  .psw-name { font-size: 9px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  .psw-item { transition: none; }
}
