/* Shared public chrome — /events & /nexus (no borders) */
:root {
  --nxp-ink: #1a2332;
  --nxp-muted: #5a6a80;
  --nxp-faint: #8a98ab;
  --nxp-join: #12b886;
  --nxp-accent: #4a5568;
  --nxp-warm: #e67700;
  --nxp-pill: 999px;
  --nxp-font: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --nxp-display: "Nunito", "Noto Sans JP", sans-serif;
}

.nxp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  min-height: 60px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.nxp-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--nxp-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.nxp-logo-text {
  font-family: var(--nxp-display);
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.nxp-logo-text em {
  font-style: normal;
  color: var(--nxp-join);
}

.nxp-header-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.nxp-header-links {
  display: none;
  align-items: center;
  gap: 18px;
}

.nxp-header-links a {
  color: var(--nxp-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nxp-header-links a.is-active,
.nxp-header-links a:hover {
  color: var(--nxp-ink);
}

.nxp-header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nxp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--nxp-pill);
  background: var(--nxp-join);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 8px 22px rgba(18, 184, 134, 0.28);
}

.nxp-header-cta-warm {
  background: var(--nxp-warm);
}

.nxp-foot {
  margin-top: auto;
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--nxp-muted);
  font-size: 0.9rem;
}

.nxp-foot p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.nxp-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-bottom: 12px;
}

.nxp-foot-links a {
  color: var(--nxp-muted);
  text-decoration: none;
  font-weight: 600;
}

.nxp-foot-links a:hover { color: var(--nxp-ink); }

.nxp-foot-copy {
  margin: 0;
  color: var(--nxp-faint);
  font-size: 0.82rem;
}

/* Board search (events) */
.nxp-search {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.nxp-search input {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--nxp-pill);
  background: #e9ecef;
  color: var(--nxp-ink);
  font: inherit;
  font-size: 0.95rem;
}

.nxp-search input::placeholder { color: var(--nxp-faint); }
.nxp-search input:focus { background: #e2e6ea; }

.nxp-header-board {
  gap: 10px 14px;
}

.nxp-header-board .nxp-header-mid {
  flex: 1 1 220px;
}

.nxp-header-links-always {
  display: none;
  align-items: center;
  gap: 14px;
}

.nxp-nav-help,
.nxp-nav-login {
  color: var(--nxp-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nxp-nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--nxp-pill);
  background: rgba(88, 101, 242, 0.14);
  color: #4c5bd4 !important;
  font-weight: 800;
}

/* display:inline-flex が [hidden] を潰すのを防ぐ */
.nxp-nav-login[hidden],
.nxp-nav-help[hidden],
.nxb-user-menu[hidden] {
  display: none !important;
}

@media (min-width: 860px) {
  .nxp-header-links { display: flex; }
  .nxp-header-links-always { display: flex; }
}

@media (max-width: 720px) {
  .nxp-header-board {
    flex-wrap: wrap;
  }
  .nxp-header-board .nxp-header-mid {
    order: 3;
    flex: 1 1 100%;
  }
  .nxp-nav-help { display: none; }
}

.nxp-support-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  background: #5865f2;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 14px 36px rgba(88, 101, 242, 0.4);
}
.nxp-support-fab span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.2);
  font-weight: 900;
}
@media (max-width: 640px) {
  .nxp-support-fab b { display: none; }
  .nxp-support-fab {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
  .nxp-support-fab span {
    width: 52px;
    height: 52px;
    background: transparent;
  }
}
