/* Logo switcher — chevron button + popover. Button is invisible until
   the user hovers the brand lockup (or focuses the button itself, or
   the popover is open). */

/* Wrapper sits inline with the brand and provides a positioning context
   that is NOT clipped by the brand element's overflow:hidden. The
   padding-right reserves space for (and importantly extends the hover
   area to) the chevron button so the cursor never leaves the
   wrapper when traversing from logo → button. */
.logo-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding-right: 36px;
}

.logo-switcher__btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(10, 34, 64, 0.10);
  color: var(--fan-blue, #0A2240);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  z-index: 60;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
}
.logo-switcher:hover .logo-switcher__btn,
.logo-switcher__btn:hover,
.logo-switcher__btn:focus-visible,
.logo-switcher__btn[aria-expanded="true"] {
  opacity: 1;
  pointer-events: auto;
}
.logo-switcher__btn:hover { background: rgba(10, 34, 64, 0.18); }
.logo-switcher__btn[aria-expanded="true"] {
  background: var(--fan-blue, #0A2240);
  color: #fff;
}
.logo-switcher__btn[aria-expanded="true"] svg { transform: rotate(180deg); transition: transform 160ms ease; }

/* Dark surfaces (footer) — invert chrome */
.logo-switcher--dark .logo-switcher__btn,
.logo-switcher__btn.is-dark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.logo-switcher--dark .logo-switcher__btn:hover,
.logo-switcher__btn.is-dark:hover { background: rgba(255, 255, 255, 0.28); }
.logo-switcher--dark .logo-switcher__btn[aria-expanded="true"],
.logo-switcher__btn.is-dark[aria-expanded="true"] {
  background: #fff;
  color: var(--fan-blue, #0A2240);
}

/* In the footer the brand element is a block stacked above text — pin
   the button to the top-right of the logo pill instead of the right
   edge. */
.logo-switcher--dark { display: block; padding-right: 0; }
.logo-switcher--dark .logo-switcher__btn {
  top: 18px;
  right: -10px;
  transform: translateY(0);
}
.logo-switcher--dark .logo-switcher__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Popover */
.logo-switcher__pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(10, 34, 64, 0.18), 0 2px 6px rgba(10, 34, 64, 0.08);
  padding: 8px;
  min-width: 220px;
  z-index: 100;
  display: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.logo-switcher__pop.is-open { display: block; animation: logoSwitcherIn 140ms ease-out; }

@keyframes logoSwitcherIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-switcher__title {
  font: 600 10px/1 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 6px 8px 8px;
}

.logo-switcher__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.logo-switcher__opt + .logo-switcher__opt { margin-top: 2px; }
.logo-switcher__opt:hover { background: #f4f5f7; }
.logo-switcher__opt.is-active { background: #f0f4ff; border-color: #c7d2fe; }

.logo-switcher__sw {
  width: 72px; height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  flex: 0 0 auto;
}
.logo-switcher__lbl {
  font: 500 13px/1 'Inter', sans-serif;
  color: #111;
  flex: 1 1 auto;
}
.logo-switcher__tick {
  width: 16px; height: 16px;
  color: #4f46e5;
  opacity: 0;
  flex: 0 0 auto;
}
.logo-switcher__opt.is-active .logo-switcher__tick { opacity: 1; color: var(--fan-red, #E5253D); }
