/* Theme Switcher. Pill layout (all pages but home in the export), then the vertical layout (home). */

body.menu-open .theme-switch { display: none !important; }
    .theme-switch { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--ek-card); border: 1px solid var(--ek-line); box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.6); }
    .theme-switch span { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--ek-paper) 70%, transparent); }
    .theme-switch button { width: 28px; height: 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s ease; }
    .theme-switch button:hover { transform: scale(1.12); }
    .theme-switch button[aria-pressed="true"] { border-color: var(--ek-paper); }
/* Vertical layout */

    .theme-switch.theme-switch--vertical { position: fixed; left: 16px; top: 50%; bottom: auto; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 8px; border-radius: 999px; background: var(--ek-card); border: 1px solid var(--ek-line); box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.6); }
    .theme-switch.theme-switch--vertical span { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--ek-paper) 70%, transparent); }
    .theme-switch.theme-switch--vertical button[data-theme="white"] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18); }
    @media (max-width: 1359px) {
      .theme-switch.theme-switch--vertical { left: 0; gap: 8px; padding: 10px 5px; border-left: 0; border-radius: 0 14px 14px 0; }
    }
    @media (max-width: 1359px) {
      .theme-switch.theme-switch--vertical span { display: none; }
    }
    @media (max-width: 1359px) {
      .theme-switch.theme-switch--vertical button { width: 20px; height: 20px; }
    }
    .theme-switch.theme-switch--vertical button { width: 28px; height: 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s ease; }
    .theme-switch.theme-switch--vertical button:hover { transform: scale(1.12); }
    .theme-switch.theme-switch--vertical button[aria-pressed="true"] { border-color: var(--ek-paper); }
    @media (max-width: 1023px) {
      .theme-switch.theme-switch--vertical { top: auto; bottom: 12px; transform: none; flex-direction: row; padding: 6px 10px; border-left: 1px solid var(--ek-line); border-radius: 999px; left: 12px; }
    }
    @media (max-width: 1023px) {
      .theme-switch.theme-switch--vertical button { width: 22px; height: 22px; }
    }
