:root {
  --snf-nav-red: #b40018;
  --snf-nav-gold: #d6a449;
}

/* Suppress Neve/FSE navigation UI completely. The plugin supplies the visible trigger. */
body.snf-nav-active header .wp-block-navigation,
body.snf-nav-active .wp-site-blocks > header .wp-block-navigation,
body.snf-nav-active .wp-block-template-part .wp-block-navigation {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.snf-menu-trigger {
  position: fixed;
  z-index: 99998;
  top: 24px;
  right: clamp(18px, 4vw, 42px);
  width: 46px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.snf-trigger-mounted .snf-menu-trigger {
  position: relative;
  top: auto;
  right: auto;
  margin-left: auto;
  flex: 0 0 auto;
}

body.snf-drawer-open .snf-menu-trigger { opacity: 0; pointer-events: none; }
.admin-bar:not(.snf-trigger-mounted) .snf-menu-trigger { top: 56px; }

.snf-menu-trigger__bar {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.16);
}

.snf-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99996;
  background: rgba(0,0,0,.34);
  opacity: 0;
  transition: opacity .22s ease;
}
body.snf-drawer-open .snf-drawer-backdrop { opacity: 1; }

.snf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 330px);
  z-index: 99997;
  transform: translateX(103%);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.admin-bar .snf-drawer { top: 46px; }
@media (min-width: 783px) { .admin-bar .snf-drawer { top: 32px; } }
body.snf-drawer-open .snf-drawer { transform: translateX(0); pointer-events: auto; }

.snf-drawer__inner {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, var(--snf-drawer-red, var(--snf-nav-red)) 0%, #970014 100%);
  color: #fff;
  border-left: 3px solid var(--snf-drawer-gold, var(--snf-nav-gold));
  box-shadow: -20px 0 36px rgba(0,0,0,.24);
  padding: 18px 22px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.snf-drawer__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
}

.snf-drawer__close {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.snf-drawer__close:focus { outline: none; box-shadow: none; }
.snf-drawer__close:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 4px; border-radius: 6px; }
.snf-drawer__close span {
  position: absolute;
  left: 4px;
  top: 13px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.16);
}
.snf-drawer__close span:first-child { transform: rotate(45deg); }
.snf-drawer__close span:last-child { transform: rotate(-45deg); }

.snf-drawer__member-card {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.snf-member-card-link { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.snf-drawer-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.65);
  flex: 0 0 auto;
}
.snf-member-card-text, .snf-member-card-guest { display: flex; flex-direction: column; gap: 2px; }
.snf-member-card-text strong, .snf-member-card-guest strong { font-size: 15px; line-height: 1.15; }
.snf-member-card-text span, .snf-member-card-guest span { font-size: 12.5px; color: rgba(255,255,255,.78); }

.snf-drawer__auth-links { display: flex; gap: 9px; margin-top: 12px; }
.snf-drawer__auth-links a {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.snf-drawer-menu,
.snf-drawer-submenu { list-style: none; margin: 0; padding: 0; }
.snf-drawer-section { margin: 0 0 15px; }
.snf-drawer-section-title {
  display: block;
  margin: 0 0 5px;
  color: var(--snf-drawer-gold, var(--snf-nav-gold));
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.snf-drawer-item { margin: 0; }
.snf-drawer-link {
  display: block;
  padding: 6px 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .005em;
}
.snf-drawer-link:hover,
.snf-drawer-link:focus { color: var(--snf-drawer-gold, var(--snf-nav-gold)); outline: none; }

.snf-drawer-item--current > .snf-drawer-link {
  color: var(--snf-drawer-gold, var(--snf-nav-gold));
}
.snf-drawer-item--current > .snf-drawer-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--snf-drawer-gold, var(--snf-nav-gold));
  vertical-align: middle;
  transform: translateY(-1px);
}

.snf-drawer-empty {
  padding: 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  line-height: 1.4;
}
body.snf-drawer-open { overflow: hidden; }

@media (max-width: 600px) {
  .snf-menu-trigger { top: 20px; right: 22px; width: 44px; height: 40px; }
  .snf-menu-trigger__bar { width: 32px; height: 4px; }
  .snf-drawer { width: min(82vw, 324px); }
  .snf-drawer__inner { padding: 17px 22px 28px; }
  .snf-drawer__top { margin-top: 6px; margin-bottom: 17px; }
  .snf-drawer-link { font-size: 17px; padding: 6px 0; }
  .snf-drawer-section { margin-bottom: 15px; }
}

/* v1.0.7: Render the exact Member Hub jersey component and scale it from its own center.
   No clipping/nudging wrapper, because that can make the jersey look off-center inside the circle. */
.snf-nav-jersey-frame {
  width: 62px;
  height: 62px;
  min-width: 62px;
  flex: 0 0 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  border-radius: 999px;
  background: transparent;
}
.snf-nav-jersey-frame .snf-nav-jersey-inner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  max-width: none !important;
  transform: scale(.596) !important;
  transform-origin: center center !important;
  border-radius: 999px !important;
  margin: 0 !important;
}
.snf-nav-avatar-fallback {
  width: 58px;
  height: 58px;
  min-width: 58px;
  flex: 0 0 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.65);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.04em;
  background: rgba(0,0,0,.18);
}
.snf-member-card-link { gap: 11px; }


/* Hide WP admin bar on the front-end for a cleaner app-like experience. */
html:has(body.snf-nav-active) { margin-top: 0 !important; }
body.snf-nav-active #wpadminbar { display: none !important; }

.snf-drawer__account-actions {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.snf-drawer__utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1;
  background: rgba(255,255,255,.07);
}
.snf-drawer__utility-link:hover,
.snf-drawer__utility-link:focus {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.12);
  outline: none;
}
.snf-drawer__utility-link--admin::before {
  content: "⚙";
  font-size: 12px;
  line-height: 1;
  margin-right: 6px;
  color: var(--snf-drawer-gold, var(--snf-nav-gold));
}
