/* Floating design switcher, shared by both designs. Deliberately neutral so it reads as a tool, not part of either design. */

.ds {
  position: fixed; left: 0; top: 50%; z-index: 70;
  transform: translateY(-50%);
  padding: .5rem .4rem .45rem .35rem;
  background: #111214; color: #fff;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5);
  font: 500 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.ds__label {
  margin: 0 0 .4rem; text-align: center;
  color: #A9ABB3; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.ds__list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }

.ds__link {
  display: flex; align-items: center; gap: 0;
  min-width: 40px; min-height: 40px; padding: .45rem;
  border-radius: 9px; color: #D6D7DC; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, gap .35s cubic-bezier(.16, 1, .3, 1);
}
.ds__link:hover { background: rgb(255 255 255 / .1); color: #fff; }
.ds__link[aria-current="page"] { background: #fff; color: #111214; font-weight: 600; }
.ds__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ds__chip {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}
.ds__link[aria-current="page"] .ds__chip { box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / .35); }
/* Chips mirror each design: Case file is a light page with black type, Bold campaign a black field with white. */
.ds__link--case-file .ds__chip { background: linear-gradient(135deg, #F6F6F6 0 55%, #111111 55%); }
.ds__link--campaign .ds__chip { background: linear-gradient(135deg, #0A0A0A 0 55%, #FFFFFF 55%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); }

/* Names slide out on hover or keyboard focus; collapsed it is just the two chips. */
.ds__name {
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .35s cubic-bezier(.16, 1, .3, 1), opacity .2s;
}
.ds:focus-within .ds__link { gap: .6rem; padding-right: .8rem; }
.ds:focus-within .ds__name { max-width: 10rem; opacity: 1; }
@media (hover: hover) {
  .ds:hover .ds__link { gap: .6rem; padding-right: .8rem; }
  .ds:hover .ds__name { max-width: 10rem; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ds__link, .ds__name { transition: none; }
}
@media print {
  .ds { display: none; }
}
