/* ==========================================================================
   Design toggle switch (footer) — CLASSIC tree styling
   --------------------------------------------------------------------------
   Styles the Classic/Modern switch as it appears in the classic design's
   footer. All rules are namespaced under new .design-toggle* classes used
   nowhere else in the Webflow CSS, so the classic design is otherwise
   untouched. The modern theme styles its own copy of the switch inside
   themes/modern/static/css/theme.css.
   ========================================================================== */

.design-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  color: #888;
}

.design-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
}

/* The switch is a real <button role="switch">. Left/unchecked = classic,
   right/checked = modern. */
.design-toggle {
  position: relative;
  width: 46px;
  height: 24px;
  padding: 0;
  border: 1px solid #bbb;
  border-radius: 999px;
  background-color: #d4d4d4;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.design-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

/* Checked = modern: knob slides right, track shows the accent color
   (true amber #BB6C43, matching the modern theme's --accent-ui) */
.design-toggle[aria-checked="true"] {
  background-color: #bb6c43;
  border-color: #bb6c43;
}

.design-toggle[aria-checked="true"] .design-toggle-knob {
  transform: translateX(22px);
}

/* Keyboard focus must be clearly visible */
.design-toggle:focus-visible {
  outline: 2px solid #bb6c43;
  outline-offset: 3px;
}
