/* ==========================================================================
   concepts/switcher.css — the floating switcher pill (post-decision:
   Ledger is the site language, so there are no direction buttons anymore).
   Markup is injected by concepts/switcher.js:
     .cx-switcher
       > .cx-switcher__row      (.cx-switcher__link x2:
                                 "Creative direction" + "Components")
       > .cx-switcher__variants (.cx-switcher__vlabel "Light reflection";
                                 .cx-switcher__var x3: Strips/Bent/Wave)
   MONOCHROME per the monochrome law: slate, ink, and white only — the
   active state is ink with white letters. Color belongs to the foil, and
   the switcher is chrome, not foil. Frosted-white surface so it sits
   quietly on both dark and light pages.
   ========================================================================== */

.cx-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200; /* above nav (50) and the scroll progress line (60) */
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.16);
  font-family: var(--font-display);
}

.cx-switcher__row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cx-switcher__link:focus-visible,
.cx-switcher__var:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* "Creative direction" (the /concepts/ page) + "Components" (the gallery) */
.cx-switcher__link {
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: -0.01em;
  color: var(--slate-500);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.cx-switcher__link:hover { background: var(--slate-100); color: var(--ink); }

/* ---- row 2: the Light reflection segmented control (Strips/Bent/Wave) ---- */
.cx-switcher__variants {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 2px;
  border-top: 1px solid var(--slate-100);
}
.cx-switcher__vlabel {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 0 8px 0 10px;
}
.cx-switcher__var {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.cx-switcher__var:hover { background: var(--slate-100); color: var(--ink); }
.cx-switcher__var[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* small screens: tighter links, label hidden */
@media (max-width: 640px) {
  .cx-switcher__link { padding: 6px 8px; }
  .cx-switcher__vlabel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-switcher__link, .cx-switcher__var { transition: none; }
}

@media print {
  .cx-switcher { display: none; }
}
