/* Appearance quick switch in the top bar */
.ls-theme { position:relative; }
.ls-topnav-list button.ls-theme-btn { background:none; border:0; cursor:pointer; color:#ffb33d; display:flex; align-items:center; gap:8px; padding:9px 11px; }
.ls-topnav-list button.ls-theme-btn:hover { color:#ffb33d; }
.ls-topnav-list button.ls-theme-btn svg { width:19px; height:19px; }
.ls-theme-menu[hidden] { display:none; }
.ls-theme-menu { position:absolute; right:0; top:calc(100% + 6px); min-width:190px; padding:6px; background:#fff; border:1px solid #e6eef0; border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,.25); z-index:2100; }
.ls-theme-menu button { display:block; width:100%; text-align:left; padding:9px 12px; border:0; border-radius:8px; background:transparent; color:#101725; font-size:14px; font-weight:600; cursor:pointer; }
.ls-theme-menu button:hover { background:rgba(212,167,58,.14); }
.ls-theme-menu button.on { background:#ffb33d; color:#0b1019; }
html[data-theme="dark"] .ls-theme-menu { background:#0b1019; border-color:#262f3d; }
html[data-theme="dark"] .ls-theme-menu button { color:#e6eef0; }
html[data-theme="dark"] .ls-theme-menu button.on { color:#0b1019; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .ls-theme-menu { background:#0b1019; border-color:#262f3d; }
  html[data-theme="auto"] .ls-theme-menu button { color:#e6eef0; }
  html[data-theme="auto"] .ls-theme-menu button.on { color:#0b1019; }
}
@media (max-width:767px) {
  .ls-theme-menu, html[data-theme] .ls-theme-menu { position:static; box-shadow:none; margin:0 16px 8px; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); display:flex; gap:6px; padding:6px; }
  .ls-theme-menu[hidden] { display:none; }
  .ls-theme-menu button, html[data-theme] .ls-theme-menu button { color:#e6eef0; text-align:center; padding:9px 6px; font-size:13px; }
  .ls-theme-menu button.on, html[data-theme] .ls-theme-menu button.on { color:#0b1019; }
}
@media (min-width:768px) {
  .ls-theme-menu { opacity:0; transform:translateY(-10px) scale(.96); transform-origin:top right; transition:opacity .4s cubic-bezier(.45,.05,.25,1), transform .45s cubic-bezier(.45,.05,.25,1); }
  .ls-theme-menu.ls-open { opacity:1; transform:none; }
}
@media (max-width:767px) {
  .ls-theme-menu { max-height:0; opacity:0; overflow:hidden; padding-top:0; padding-bottom:0; margin-bottom:0; transition:max-height .45s cubic-bezier(.45,.05,.25,1), opacity .35s ease, margin .45s ease, padding .45s ease; }
  .ls-theme-menu.ls-open { max-height:80px; opacity:1; padding-top:6px; padding-bottom:6px; margin-bottom:8px; }
}
@media (prefers-reduced-motion: reduce) { .ls-theme-menu { transition:none; } }

/* Sliding Light / Dark switch in the top bar */
.ls-theme{display:flex;align-items:center;margin-left:14px;margin-right:4px}
.ls-topnav-list button.ls-sw{position:relative;width:56px;height:30px;padding:0;border-radius:20px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.05);cursor:pointer;flex:none;display:block}
.ls-sw:hover{border-color:#ffb33d}
.ls-sw:focus-visible{outline:2px solid #2ee6c0;outline-offset:2px}
.ls-sw .ls-sw-ic{position:absolute;top:6px;width:16px;height:16px;color:#9fb0b4;line-height:0}
.ls-sw .ls-sw-ic svg{width:16px;height:16px;display:block}
.ls-sw .ls-sw-l{left:6px}.ls-sw .ls-sw-r{right:6px}
.ls-sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#ffb33d;transition:left .25s cubic-bezier(.45,.05,.25,1)}
.ls-sw[aria-checked="true"] i{left:29px}
.ls-sw[aria-checked="false"] .ls-sw-l,.ls-sw[aria-checked="true"] .ls-sw-r{color:#0b1019;z-index:1}
@media (max-width:767px){.ls-theme{margin:6px 16px}}

/* hardened so no other page style can change the switch */
.ls-topnav-list li.ls-theme{display:flex !important;align-items:center !important;margin:0 4px 0 14px !important;padding:0 !important;height:auto}
.ls-topnav-list li.ls-theme button.ls-sw{box-sizing:border-box !important;position:relative !important;display:block !important;width:56px !important;min-width:56px !important;height:30px !important;min-height:30px !important;padding:0 !important;margin:0 !important;border-radius:20px !important;border:1px solid rgba(255,255,255,.26) !important;background:rgba(255,255,255,.05) !important;color:inherit;line-height:0 !important;font-size:0 !important;box-shadow:none !important;transform:none !important;text-align:left !important}
.ls-topnav-list li.ls-theme button.ls-sw:hover{border-color:#ffb33d !important;background:rgba(255,255,255,.05) !important}
.ls-topnav-list li.ls-theme button.ls-sw i{position:absolute !important;top:3px !important;left:3px !important;width:22px !important;height:22px !important;border-radius:50% !important;background:#ffb33d !important;display:block !important}
.ls-topnav-list li.ls-theme button.ls-sw[aria-checked="true"] i{left:29px !important}
.ls-topnav-list li.ls-theme button.ls-sw .ls-sw-ic{position:absolute !important;top:6px !important;width:16px !important;height:16px !important;display:block !important}
.ls-topnav-list li.ls-theme button.ls-sw .ls-sw-ic svg{width:16px !important;height:16px !important;display:block !important}
@media (max-width:767px){.ls-topnav-list li.ls-theme{margin:6px 16px !important}}
