/* TEMPORARY: styles of the design preview panel (dev-switcher.js). Delete with it. */

/* ---------- the switcher panel itself ---------- */
.dev-switch {
  position: fixed; left: 12px; bottom: 12px; z-index: 200; max-width: calc(100vw - 100px);
  padding: 10px 12px; border-radius: 6px; background: rgba(var(--ink-rgb), .94); color: var(--on-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); font: 500 .8rem/1.3 var(--font-body);
}
.dev-switch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.dev-switch-title { color: var(--gold-3); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.dev-switch-row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: start; margin-top: 6px; }
.dev-switch-label { padding-top: 8px; color: var(--on-dark-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.dev-switch-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.dev-switch button {
  font: inherit; color: inherit; cursor: pointer; border: 1px solid rgba(var(--light-rgb), .25); background: transparent;
  border-radius: 4px; padding: 5px 8px; min-height: 30px;
}
.dev-switch button[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.dev-switch .dev-switch-min { border: 0; padding: 2px 6px; min-height: 0; font-size: .85rem; line-height: 1.2; }
.dev-switch-desc { margin-top: 8px; color: var(--on-dark-muted); font-weight: 400; max-width: 36rem; }
.dev-switch.is-min .dev-switch-groups, .dev-switch.is-min .dev-switch-desc { display: none; }
.dev-switch.is-min .dev-switch-head { margin: 0; }
.dev-switch.is-min .dev-switch-title { display: none; }

@media (max-width: 760px) { .dev-switch.is-min { bottom: auto; top: calc(var(--header-h) + 6px); left: 8px; padding: 6px 10px; } }

/* the panel never grows taller than the screen; its top row (with the fold button) stays visible */
.dev-switch { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.dev-switch { padding-top: 0; }
.dev-switch-head { position: sticky; top: 0; z-index: 1; margin: 0 -12px 8px; padding: 10px 12px 6px; background: rgb(18, 16, 14); }
.dev-switch .dev-switch-min { min-width: 40px; min-height: 32px; font-size: 1.1rem; }
@media (max-width: 760px) {
  .dev-switch { left: 8px; right: 8px; max-width: none; bottom: 8px; max-height: 62vh; max-height: 62dvh; font-size: .72rem; padding: 8px 10px; }
  .dev-switch { padding-top: 0; }
  .dev-switch-head { top: 0; margin: 0 -10px 6px; padding: 8px 10px 6px; }
  .dev-switch-row { grid-template-columns: 88px 1fr; margin-top: 4px; }
  .dev-switch-label { padding-top: 6px; font-size: .62rem; }
  .dev-switch button { min-height: 28px; padding: 3px 7px; }
  .dev-switch.is-min { left: 8px; right: auto; }
}
