/* GNI Gathering site-wide JOIN NOW tab — bottom left */

.gni-gathering-tab {
  --gni-tab-navy: #1c244b;
  --gni-tab-blue: #005eb8;
  --gni-tab-blue-bright: #467ff7;
  --gni-tab-gold: #e8b93a;
  --gni-tab-text: #324a6d;
  --gni-tab-white: #ffffff;
  --gni-tab-shadow: 0 12px 40px rgba(28, 36, 75, 0.28);

  position: fixed;
  left: 0;
  bottom: 1.25rem;
  z-index: 99980;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}

.gni-gathering-tab *,
.gni-gathering-tab *::before,
.gni-gathering-tab *::after {
  box-sizing: border-box;
}

.gni-gathering-tab__shell {
  display: flex;
  align-items: flex-end;
  gap: 0;
  pointer-events: auto;
}

/* Collapsed vertical handle */
.gni-gathering-tab__handle {
  appearance: none;
  border: 0 !important;
  outline: none !important;
  margin: 0;
  cursor: pointer;
  writing-mode: horizontal-tb;
  transform: none;
  background: linear-gradient(180deg, var(--gni-tab-blue) 0%, var(--gni-tab-navy) 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.05rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 24px rgba(28, 36, 75, 0.35), 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gni-gathering-tab__handle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transform: translateX(-120%);
  animation: gni-tab-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.gni-gathering-tab__handle:hover,
.gni-gathering-tab__handle:focus,
.gni-gathering-tab__handle:focus-visible,
.gni-gathering-tab__handle:active {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28, 36, 75, 0.42), 0 4px 12px rgba(0, 94, 184, 0.28) !important;
  outline: none !important;
  border: 0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(180deg, #1a78d4 0%, var(--gni-tab-navy) 100%) !important;
}

.gni-gathering-tab.is-open .gni-gathering-tab__handle {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
}

/* Expanded panel */
.gni-gathering-tab__panel {
  width: min(20.5rem, calc(100vw - 1.5rem));
  background: var(--gni-tab-white);
  color: var(--gni-tab-navy);
  border-radius: 0 18px 18px 0;
  box-shadow: var(--gni-tab-shadow);
  overflow: hidden;
  transform: translateX(-110%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s ease;
  border: 1px solid rgba(28, 36, 75, 0.08);
  border-left: 0;
}

.gni-gathering-tab.is-open .gni-gathering-tab__panel {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.gni-gathering-tab__banner {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 185, 58, 0.28), transparent 55%),
    linear-gradient(135deg, var(--gni-tab-navy) 0%, var(--gni-tab-blue) 72%, #0a6fd1 100%);
  color: var(--gni-tab-white);
  padding: 1.15rem 1.15rem 1.25rem;
  overflow: hidden;
}

.gni-gathering-tab__banner::before {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -2.5rem;
  bottom: -3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.gni-gathering-tab__kicker {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gni-tab-gold);
}

.gni-gathering-tab__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gni-gathering-tab__dates {
  margin: 0.55rem 0 0;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gni-tab-navy);
  background: var(--gni-tab-gold);
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
}

.gni-gathering-tab__close {
  appearance: none;
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 999px;
  background: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gni-gathering-tab__close:hover,
.gni-gathering-tab__close:focus,
.gni-gathering-tab__close:focus-visible,
.gni-gathering-tab__close:active {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: scale(1.05);
  background: #ffffff !important;
  color: #005eb8 !important;
  -webkit-text-fill-color: #005eb8 !important;
}

.gni-gathering-tab__close svg {
  width: 0.7rem;
  height: 0.7rem;
  display: block;
  stroke: currentColor !important;
}

.gni-gathering-tab__close svg path {
  stroke: currentColor !important;
}

.gni-gathering-tab__body {
  padding: 1rem 1.15rem 1.15rem;
}

.gni-gathering-tab__copy {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--gni-tab-text);
  font-weight: 400;
}

.gni-gathering-tab__actions {
  display: grid;
  gap: 0.55rem;
}

.gni-gathering-tab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gni-gathering-tab__btn:hover,
.gni-gathering-tab__btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.gni-gathering-tab__btn--primary {
  background: var(--gni-tab-blue);
  color: var(--gni-tab-white) !important;
  box-shadow: 0 8px 20px rgba(0, 94, 184, 0.28);
}

.gni-gathering-tab__btn--primary:hover,
.gni-gathering-tab__btn--primary:focus-visible {
  background: var(--gni-tab-blue-bright);
  box-shadow: 0 10px 24px rgba(70, 127, 247, 0.32);
}

.gni-gathering-tab__btn--ghost {
  background: transparent;
  color: var(--gni-tab-navy) !important;
  border: 1.5px solid rgba(28, 36, 75, 0.22);
}

.gni-gathering-tab__btn--ghost:hover,
.gni-gathering-tab__btn--ghost:focus-visible {
  border-color: var(--gni-tab-blue);
  color: var(--gni-tab-blue) !important;
}

@keyframes gni-tab-sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gni-gathering-tab__handle,
  .gni-gathering-tab__panel,
  .gni-gathering-tab__btn,
  .gni-gathering-tab__close {
    transition: none !important;
  }

  .gni-gathering-tab__handle::after {
    animation: none;
  }
}

@media (max-width: 480px) {
  .gni-gathering-tab {
    bottom: 5.5rem; /* clear Weglot / mobile chrome */
  }

  .gni-gathering-tab__panel {
    width: min(18.5rem, calc(100vw - 1rem));
  }
}
