/* Native state adapter for existing public-header switch surfaces. No theme,
   persistence, API call or other product action is assigned here. */
.mkt-header-switch {
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 40px; width:40px; min-width:40px; height:20px; min-height:20px;
  margin:0; padding:0; border:0; border-radius:999px; background:transparent;
  cursor:pointer; user-select:none;
}
.mkt-header-switch > input {
  position:absolute; inset:0; z-index:1; width:100%; height:100%;
  margin:0; padding:0; opacity:0; cursor:pointer;
}
.mkt-header-switch > .mkt-header-switch__track {
  position:relative; display:block; box-sizing:border-box;
  width:40px; height:20px; margin:0; padding:0; border:0;
  border-radius:999px; background:#d8d2e3; box-shadow:none; pointer-events:none;
  transition:background-color 180ms ease;
}
.mkt-header-switch__thumb,
.site-header__theme-toggle > .mkt-header-switch__track > .mkt-header-switch__thumb,
.site-header__mode-toggle > .mkt-header-switch__track > .mkt-header-switch__thumb,
.tc-theme-switch > .mkt-header-switch__track > .mkt-header-switch__thumb {
  position:absolute; left:3px; top:3px; display:block; width:14px; height:14px;
  margin:0; border:0; border-radius:50%; background:#fff; box-shadow:none;
  transition:transform 180ms ease,background-color 180ms ease;
}
.mkt-header-switch > input:checked + .mkt-header-switch__track { background:#7653d9; }
.mkt-header-switch > input:checked + .mkt-header-switch__track .mkt-header-switch__thumb {
  transform:translateX(20px); background:#ffc45d;
}
.mkt-header-switch > input:focus-visible + .mkt-header-switch__track {
  outline:2px solid #673eda; outline-offset:3px;
}
body.page-zodiac-compatibility .mkt-header-switch--zodiac {
  height:44px; min-height:44px;
}

/* The Zodiac owner paints a pseudo-switch; suppress it only after the native
   control has been inserted into that header. */
body.page-zodiac-compatibility .site-header__actions:has([data-header-switch])::before {
  content:none !important; display:none !important;
}

/* Preserve each owner's existing small-screen visibility. */
@media(max-width:1199.98px) {
  body.page-phone-psychic .mkt-header-switch--phone { display:none !important; }
}
@media(max-width:768.98px) {
  body.page-all-psychics .mkt-header-switch--catalog { display:none !important; }
}
@media(max-width:767.98px) {
  body.page-tarot-reading .mkt-header-switch--catalog,
  body.page-psychic-reading .mkt-header-switch--psychic,
  body.page-zodiac-compatibility .mkt-header-switch--zodiac { display:none !important; }
}
@media(max-width:480px) {
  body.page-taurus-compatibility .mkt-header-switch--taurus { display:none !important; }
}

/* Shared signup response for the two audited public-header owners. */
header[data-sticky-header="public"] :is(.site-header__btn,.apn-signup-link) {
  transform:none !important; filter:none !important; box-shadow:none !important;
  border-color:transparent !important; text-decoration:none !important;
  transition:background-color 180ms ease,color 180ms ease !important;
}
@media(hover:hover) and (pointer:fine) {
  header[data-sticky-header="public"] :is(.site-header__btn,.apn-signup-link):hover {
    transform:none !important; filter:none !important; box-shadow:none !important;
    border-color:transparent !important; background:#f2edf9 !important; color:#674ba2 !important;
  }
}
header[data-sticky-header="public"] :is(.site-header__btn,.apn-signup-link):focus-visible {
  transform:none !important; filter:none !important; box-shadow:none !important;
  border-color:transparent !important; background:#f2edf9 !important; color:#674ba2 !important;
  outline:2px solid #673eda !important; outline-offset:3px !important;
}
header[data-sticky-header="public"] :is(.site-header__btn,.apn-signup-link):active {
  transform:none !important; filter:none !important; box-shadow:none !important;
  border-color:transparent !important; background:#e7def3 !important; color:#5d3f96 !important;
}
@media(prefers-reduced-motion:reduce) {
  .mkt-header-switch :is(.mkt-header-switch__track,.mkt-header-switch__thumb),
  header[data-sticky-header="public"] :is(.site-header__btn,.apn-signup-link) { transition:none !important; }
}
