/* Reference header + floating contact — pairs with :root vars in wiz-home.css */

.site-header {
  height: 0;
  position: sticky;
  top: 16px;
  z-index: 50;
}

.site-header .bar {
  position: relative;
  width: min(1360px, calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px 11px 17px;
  border: 1px solid #e1e5dc;
  border-radius: 22px;
  background: #fffffff2;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow, 0 16px 45px #2334160b);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  color: inherit;
}

.site-header .brand img {
  width: 43px;
  height: 43px;
  border: 4px solid var(--lime, #b6ff51);
  border-radius: 13px;
  background: var(--purple, #5521ba);
  object-fit: cover;
}

.site-header #site-nav,
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
  font-size: 0.94rem;
}

.site-header #site-nav > a,
.site-header #site-nav summary,
.site-header .login {
  white-space: nowrap;
  font-weight: 650;
  color: #444a40;
  text-decoration: none;
}

.site-header #site-nav > a:hover,
.site-header #site-nav summary:hover,
.site-header .login:hover {
  color: var(--purple, #5521ba);
}

.site-header .dropdown {
  position: relative;
}

.site-header summary {
  list-style: none;
  cursor: pointer;
}

.site-header summary::-webkit-details-marker {
  display: none;
}

.site-header .dropdown summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .dropdown summary span {
  height: 7px;
  width: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
}

.site-header .dropdown[open] summary span {
  transform: rotate(225deg);
}

.site-header .drop-panel {
  position: absolute;
  top: calc(100% + 20px);
  left: -16px;
  width: max-content;
  min-width: 210px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line, #e0e5da);
  border-radius: 15px;
  box-shadow: 0 15px 38px #2223;
}

.site-header .drop-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.site-header .drop-panel a:hover,
.site-header .drop-panel a:focus-visible {
  background: #f0f9e2;
}

.site-header .header-actions .button.small {
  min-height: 43px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid #a0e845;
  background: var(--lime, #b6ff51);
  color: #171d11;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.site-header .header-actions .button.small:hover {
  transform: translateY(-2px);
  background: #a9f043;
  box-shadow: 0 8px 20px #4d790822;
}

.site-header .member-menu--redesign a,
.site-header .member-menu--redesign span {
  font-weight: 650;
}

.site-header .member-menu--redesign a {
  border: none;
  background: transparent;
  padding: 0;
  color: #444a40;
  font-size: 0.94rem;
}

.site-header .member-menu--redesign a:hover {
  color: var(--purple, #5521ba);
}

.site-header .menubtn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line, #e0e5da);
  border-radius: 10px;
  background: white;
  padding: 9px;
  cursor: pointer;
}

.site-header .menubtn i {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px;
  background: white;
}

.float-contact {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 40;
  width: 54px;
  height: 54px;
  background: var(--lime, #b6ff51);
  border: 1px solid #a0e845;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 11px 25px #15260c22;
  text-decoration: none;
}

.float-contact:hover {
  background: #a9f043;
}

.float-contact span {
  border: 2px solid #28361b;
  border-radius: 50%;
  width: 22px;
  height: 18px;
  position: relative;
}

.float-contact span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border: solid #28361b;
  border-width: 0 0 2px 2px;
  transform: skewY(-24deg);
  background: var(--lime, #b6ff51);
}

@media (max-width: 950px) {
  .site-header .menubtn {
    display: block;
  }

  .site-header #site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid var(--line, #e0e5da);
    border-radius: 16px;
    background: white;
    padding: 12px;
    box-shadow: var(--shadow, 0 16px 45px #2334160b);
    max-height: 70svh;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header #site-nav.open {
    display: flex;
  }

  .site-header #site-nav > a,
  .site-header #site-nav summary {
    display: flex;
    padding: 9px 10px;
  }

  .site-header .drop-panel {
    position: static;
    width: auto;
    box-shadow: none;
    margin: 0 8px;
  }
}

@media (max-width: 650px) {
  html.home-wiz-page {
    scroll-padding-top: 83px;
  }

  .site-header .bar {
    width: calc(100% - 24px);
    border-radius: 15px;
    padding: 8px 9px;
  }

  .site-header .brand img {
    width: 37px;
    height: 37px;
  }

  .site-header .brand {
    gap: 6px;
    font-size: 0.91rem;
  }

  .site-header .header-actions {
    gap: 7px;
  }

  .site-header .login {
    font-size: 0.84rem;
  }

  .site-header .header-actions .button.small {
    font-size: 0.85rem;
    padding: 8px;
    min-height: 40px;
  }

  .float-contact {
    width: 44px;
    height: 44px;
    right: 10px;
    bottom: 12px;
  }
}

@media (max-width: 370px) {
  .site-header .bar .brand span {
    display: none;
  }
}