/* members.css v3 – shared styles for members area
   - Brand + theme variables
   - Members page layout
   - Navigation bar + theme toggle pill
   - Logo swap in dark mode
   - Footer / contact section
*/

/* ============================================================
   THEME VARIABLES (LIGHT BY DEFAULT)
   ============================================================ */
:root {
  /* Brand */
  --brand-primary: #650000;
  --brand-primary-dark: #ab0000;
  --brand-accent: #ab0000;

  --brand: var(--brand-primary);
  --brand-dark: var(--brand-primary-dark);

  /* Text & backgrounds */
  --text-main: #222222;
  --text-muted: #555555;
  --text-subtle: #a9a9a9;

  --bg-main: #f6f6f6;
  --bg-card: #ffffff;

  --border-soft: #dddddd;

  /* Footer/public-style compatibility variables */
  --nav-bg: var(--bg-card);
  --text: var(--text-main);
  --card: var(--bg-card);
  --card-border: var(--border-soft);

  /* NEW: dedicated background for mobile dropdown */
  --nav-menu-bg: #ffffff;

  /* Theme toggle pill */
  --switch-track: #d7d7d7;
  --switch-thumb: #ffffff;

  /* For modal background + inputs */
  --page-bg: var(--bg-main);

  /* Modal header gradient + shadow (copied from public site) */
  --gold1: #ffd580;
  --gold2: #e6b800;
  --modal-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   DARK MODE OVERRIDES (match behaviour of public site)
   ============================================================ */
body.theme-dark {
  /* Backgrounds & text */
  --bg-main: #0f0f10;
  --bg-card: #161618;
  --text-main: #eaeaea;
  --text-muted: #c9c9c9;
  --border-soft: #2a2a2d;

  /* Derived */
  --nav-bg: var(--bg-card);
  --text: var(--text-main);
  --card: var(--bg-card);
  --card-border: var(--border-soft);

  /* Brighter brand in dark mode */
  --brand-primary: #e04646;
  --brand: var(--brand-primary);

  /* Theme toggle colours in dark mode */
  --switch-track: #3a3a3f;
  --switch-thumb: #ffffff;

  /* NEW: darker floating panel for mobile menu */
  --nav-menu-bg: #26262b;

  --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Logo swap: white logo in dark mode */
body.theme-dark .brand-logo {
  content: url("images/logo_white.png");
}

/* ============================================================
   BASIC RESET / BODY
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   GLOBAL: disable text selection by default (APP MODE)
   ============================================================ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection where appropriate */
.selectable,
input,
textarea,
select,
button {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}

/* Simple container (used in footer) */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   MEMBERS PAGE LAYOUT
   ============================================================ */
.members-page {
  max-width: 960px;
  margin: 0 auto;
  /* padding: 1.5rem 1rem 3rem; */
  /* border: 1px solid red; */
  padding: 0 1rem 0;
  margin-top: 75px; /* allow room for navigation */
}

.members-page__header {
  /* margin-top: 0.5rem; */
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
}

@media (max-width: 520px) {
  .members-page__header {
    padding-top: 0;
  }
}

.members-page__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.members-page__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.members-page__content {
  padding: 1.5rem 1rem;
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  font-size: 1rem;
}

/* Mobile: remove card styling for full-bleed layouts */
@media (max-width: 720px) {
  .members-page {
    /* padding: 0; */
    /* margin-top: 0; */
    border: 0;
    border-radius: 0;
    background-color: transparent;
    /* border: 3px solid green; */
    /* margin-top: 50px; */
  }
  .members-page__content {
    border-radius: 0;
    border: none;
    margin-top: 0;
    /* padding-top: 0; */
  }
  .members-page__header {
    /* margin: 1.5rem 1rem; */
    border-radius: 0;
    border: none;
    margin: 0;
  }
}

/* Utility spacing */
.u-mt-1 {
  margin-top: 0.5rem;
}
.u-mt-2 {
  margin-top: 1rem;
}
.u-mt-3 {
  margin-top: 1.5rem;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.4rem 1rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  /* TEMP: set navbar to fixed height of 65px */
  height: 65px;
}

@media (max-width: 520px) {
  .members-page {
    padding: 0;
  }

  /* Intentionally blank: the 520px navbar/hamburger rules live in the later 520px block near the .hamburger definition to avoid cascade conflicts. */
}

/* NEW: make inner container the flex row */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Left: logo */
.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
}

/* Center: links */
.nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-main);
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Mobile menu theme toggle: show correct label for current mode */
.nav-theme-toggle__light {
  display: inline;
}
.nav-theme-toggle__dark {
  display: none;
}
body.theme-dark .nav-theme-toggle__light {
  display: none;
}
body.theme-dark .nav-theme-toggle__dark {
  display: inline;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* ACTIVE NAV LINK */
.nav-links a.active {
  font-weight: 600;
  color: var(--brand-primary);
  position: relative;
}

/* Ensure active item turns white on hover (desktop only) */
.nav-links a.active:hover {
  color: #ffffff;
}

.nav-links a.active {
  transition: color 0.15s ease;
}

/* Subtle underline bar for desktop */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background-color: var(--brand-primary);
  border-radius: 2px;
}

.nav-links a.active::after {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.nav-links a.active:hover::after {
  opacity: 0;
}

/* Contact link */
.nav-contact {
  font-size: 1rem;
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  border-color: var(--brand-primary);
}

/* Desktop vs mobile helpers */
.show-mobile {
  display: none;
}

.hide-mobile {
  display: inline-flex;
}

/* Right side: theme toggle + logout + hamburger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

/* Buttons */

/* Base button style – works for <a> and <button> */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

/* Primary button – matches your existing Logout pill */
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Ghost button – light mode and dark mode aware */
.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-ghost:hover {
  background: rgba(101, 0, 0, 0.06); /* subtle maroon tint */
}

/* Dark theme override: match index.php ghost style */
body.theme-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

body.theme-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Mobile-only logout link inside dropdown */
.nav-logout-mobile {
  font-weight: 600;
  color: var(--brand-primary);
}

.nav-logout-mobile:hover,
.nav-logout-mobile:focus-visible {
  color: var(--brand-primary-dark);
}

/* Login error message (invalid credentials) */
.login-error {
  color: #b00020; /* red tone */
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
  text-align: center;
  font-weight: 500;
}

body.theme-dark .login-error {
  color: #ff8a80; /* lighter red for dark mode */
}

/* Logout success message */
.logout-success {
  color: #008800;
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
  text-align: center;
  font-weight: 500;
}

body.theme-dark .logout-success {
  color: #70ff70;
}

/* ============================================================
   THEME TOGGLE PILL (sun/moon) – MATCH PUBLIC SITE
   ============================================================ */

.theme-toggle {
  position: relative;
  width: 70px;
  height: 30px;
  background: var(--switch-track);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  flex-shrink: 0;

  /* Match public site — remove borders/outlines */
  border: none;
  outline: none;
  box-shadow: none;

  /* prevent selection / highlight */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle,
.theme-toggle * {
  user-select: none;
  -webkit-user-select: none;
}

.theme-toggle:focus,
.theme-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.theme-toggle .icon {
  font-size: 16px;
  pointer-events: none;
}

.theme-toggle .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

/* In dark mode, slide the thumb to the right */
body.theme-dark .theme-toggle .thumb {
  transform: translateX(40px);
}

/* ============================================================
   ADMIN MODE TOGGLE PILL (matches theme toggle, but independent)
   ============================================================ */

.admin-toggle {
  position: relative;
  width: 70px;
  height: 30px;
  background: var(--switch-track);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  flex-shrink: 0;

  /* Match public site — remove borders/outlines */
  border: none;
  outline: none;
  box-shadow: none;

  /* prevent selection / highlight */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-toggle,
.admin-toggle * {
  user-select: none;
  -webkit-user-select: none;
}

.admin-toggle:focus,
.admin-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.admin-toggle .admin-mode-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  pointer-events: none;
}

body.theme-dark .admin-toggle .admin-mode-label {
  color: var(--text-main);
}

.admin-toggle .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

/* Admin mode icon swap (OFF / ON) + correct positioning */
.admin-toggle .admin-mode-icon--off {
  margin-left: auto; /* 👤 pushed to the right when it's the only visible icon */
}

.admin-toggle .admin-mode-icon--on {
  display: none;
}

body.pcc-admin-mode .admin-toggle .admin-mode-icon--off {
  display: none;
}

body.pcc-admin-mode .admin-toggle .admin-mode-icon--on {
  display: inline;
}

/* When admin mode is ON, slide the admin thumb to the right */
body.pcc-admin-mode .admin-toggle .thumb {
  transform: translateX(40px);
}

/* ============================================================
   HAMBURGER & RESPONSIVE BEHAVIOUR
   ============================================================ */

.hamburger {
  display: none;
  position: relative;
  width: 36px;
  height: 50px; /* increased height */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 300;
}

@media (max-width: 520px) {
  /* push all content downward so navbar doesn't block buttons (i.e. Gigs|Socials|Rehearsals in calendar */
  /* remove by adding @media (max-width: 520px) { body { padding-top: 0; } } - DONE in player.css 08/01/2026 */
  :root {
    /* --mobile-navbar-offset: 63px; */
  }
  body {
    /* padding-top: var(--mobile-navbar-offset); */
  }
  /* Restore the navbar’s original padding so the hamburger lands in the exact same place */
  .navbar {
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 1rem;
    height: auto;
    background: white;
    border: none;
    border: 1px dashed red; */
  }

  @media (max-width: 520px) {
    body.theme-dark .navbar {
      background: var(--bg-card);
    }
  }

  /* Hide all nav content at <=720px (keep hamburger only) */
  .navbar .brand-link,
  .navbar .nav-center {
    display: none;
  }

  /* When hamburger is open, show mobile menu */
  .navbar.nav-open .nav-center {
    display: block;
  }

  .navbar .nav-actions > *:not(.hamburger) {
    display: none;
  }

  /* With everything else hidden, force the remaining hamburger to the right */
  .navbar .nav-container {
    justify-content: flex-end;
    min-height: 40px; /* matches .brand-logo height so hamburger sits exactly where it did before */
  }

  /* Let the hamburger sit in its original layout position (no fixed offsets) */
  .navbar .hamburger {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 0;
    z-index: 400;
  }
}

/* The three lines */
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;

  height: 3px;
  width: 100%;
  border-radius: 2px;
  background-color: var(--text-main);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    top 0.2s ease,
    background-color 0.2s ease;
}

/* --- Hamburger state (vertically centred in button) --- */
.hamburger span:nth-child(1) {
  top: 50%;
  transform: translateY(-10px);
}
.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-1.5px);
}
.hamburger span:nth-child(3) {
  top: 50%;
  transform: translateY(7px);
}

/* --- X state (vertically centred in button) --- */
.navbar.nav-open .hamburger span:nth-child(1) {
  top: 50%;
  transform: translateY(-1.5px) rotate(45deg);
}
.navbar.nav-open .hamburger span:nth-child(2) {
  opacity: 0; /* hide middle bar */
}
.navbar.nav-open .hamburger span:nth-child(3) {
  top: 50%;
  transform: translateY(-1.5px) rotate(-45deg);
}

/* Mobile breakpoint */
@media (max-width: 950px) {
  .nav-center {
    position: fixed;
    inset: 0;
    padding: 3rem 1.5rem 3rem;
    background-color: var(--nav-menu-bg);
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 200;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar.nav-open .nav-center {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    /* align-items: stretch; */
    align-items: center; /* center items horizontally */
    gap: 0.35rem;
  }

  .nav-links a {
    font-size: 1.5rem; /* your bigger size */
    padding: 0.6rem 0.9rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* center the text */
  }

  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  /* CHANGE ME */
  .login-btn {
    display: none;
  }

  .nav-links a.active {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding-left: 1.1rem;
  }

  body.theme-dark .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-links a.active::after {
    display: none; /* no underline in mobile */
  }

  .footer-contact {
    display: none;
  }
}

/* ============================================================
   FOOTER / CONTACT SECTION
   ============================================================ */

.footer-contact {
  background: var(--nav-bg);
  border-top: 1px solid var(--card-border);
  padding-top: 36px;
  margin-top: 40px;
}

/* Two columns on tablet/desktop; stacks on mobile */
.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr; /* Contact | Socials */
    align-items: start;
  }
}

.contact-block {
  margin-bottom: 16px;
}

.contact-heading,
.footer-contact h2,
.footer-contact h3 {
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 10px;
}

/* Contact list */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

/* Monochrome icon wrapper */
.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: var(--text);
}

/* Social pills */
.socials {
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 10px;
  align-items: stretch; /* children stretch to same width */
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  min-height: 40px; /* consistent height */
  width: 100%; /* consistent width within container */
  box-sizing: border-box;

  border: 1px solid var(--card-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.1s ease;
}

.social:hover {
  border-color: var(--brand);
  background: var(--card);
}

.social:active {
  transform: translateY(1px);
}

/* Footer links readable in both themes */
.footer-contact a,
.footer-contact a:visited {
  color: var(--text);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand);
}

/* Dark-mode micro-contrast */
body.theme-dark .footer-contact .social {
  border-color: #3a3a3f;
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .footer-contact .social:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Dark mode: make contact pills match social pills */
body.theme-dark .footer-contact .contact-list li,
body.theme-dark .footer-contact .social {
  background: rgba(255, 255, 255, 0.04);
  border-color: #3a3a3f;
}

body.theme-dark .footer-contact .contact-list li:hover,
body.theme-dark .footer-contact .social:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Fineprint / copyright */
.fineprint {
  display: flex;
  justify-content: center;
  text-align: center;
}

#contact .fineprint p {
  margin: 0;
  text-align: center;
}

/* Constrain width of nav + footer to match main content */
.nav-container,
.footer-contact .container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact items styled like social pills */
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%; /* match social pill width */
  min-height: 40px; /* match social pill height */
  padding: 8px 12px;
  box-sizing: border-box;

  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 999px; /* pill shape */
}

/* Ensure the link takes the remaining space */
.footer-contact .contact-list a {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0;
}

.footer-contact .fineprint {
  margin-top: 3rem; /* adjust to taste */
  padding: 1rem;
  font-size: 0.85rem; /* slightly smaller */
  color: var(--text-muted); /* optional: softer colour */
}

/* ===========================
   LOGIN MODAL (members area)
   =========================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 1000;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal.hiding {
  opacity: 0;
}

.modal-content {
  width: min(92vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  box-shadow: var(--modal-shadow);
  color: var(--text);
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  padding: 20px;
  text-align: center;
  border-bottom-left-radius: 50% 22px;
  border-bottom-right-radius: 50% 22px;
}

.modal-header img {
  max-height: 60px;
  display: block;
  margin: 0 auto 10px;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #2b2b2b;
}

.modal-body {
  padding: 22px;
}

.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body input[type="text"],
.modal-body input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid var(--card-border);
  background: var(--page-bg);
  color: var(--text);
  border-radius: 10px;
  font-size: 16px;
}

.modal-body label {
  display: flex;
  align-items: center;
  font-size: 15px; /* slightly larger text */
  cursor: pointer; /* clicking label toggles the box */
}

.modal-body input[type="checkbox"] {
  width: 30px;
  height: 30px;
  cursor: pointer;
  accent-color: var(--brand-primary); /* maroon tick, works in light + dark mode */
  margin: 0 10px 10px 0;
  vertical-align: middle; /* centres box against text */
  position: relative;
  top: 1px; /* adjust between 1–2px as needed */
}

.modal-footer {
  padding: 0 22px 22px;
  text-align: center;
}

.modal-footer button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  width: 100%;
  transition:
    background-color 0.25s ease,
    transform 0.1s ease;
}

.modal-footer button:hover {
  background: var(--brand-primary-dark);
}

.modal-footer button:active {
  transform: translateY(1px);
}

/* ===========================
   MEMBERSHIP GATE MODAL
   =========================== */

.membership-gate .modal-body p {
  margin: 0 0 12px;
}

.membership-gate .membership-gate__who {
  margin: 0 0 12px;
  color: var(--text-muted);
}

/* Ensure membership gate fully blocks page interaction */
.membership-gate {
  pointer-events: auto;
}

body:has(.membership-gate.show) {
  overflow: hidden;
}

/* Honeypot spam-trap fields — invisible and unfocusable */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.theme-dark .modal-content input,
body.theme-dark .modal-content textarea {
  color: #efefef;
}

body.theme-dark .modal-content input::placeholder,
body.theme-dark .modal-content textarea::placeholder {
  color: #222222;
  opacity: 1; /* make the hint text fully opaque */
}

/* iOS Safari / Chrome placeholder fix */
body.theme-dark .modal-content input::-webkit-input-placeholder,
body.theme-dark .modal-content textarea::-webkit-input-placeholder {
  /* color: var(--text-muted); */
  color: #222222;
  opacity: 1;
}

/* iOS Safari / Chrome — force actual typed text to correct colour */
body.theme-dark .modal-content input,
body.theme-dark .modal-content textarea {
  /* -webkit-text-fill-color: #efefef;
  color: #efefef; */
  -webkit-text-fill-color: #222222;
  color: #222222;
}

body.theme-dark .modal-content,
body.theme-dark .modal-content input {
  border: 1px solid var(--modal-border, #3a3a3a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.49);
}

.reset-form input {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-main);
  color: var(--text);
}

body.theme-dark .reset-form input,
body.theme-dark #forgotForm input {
  color: #000; /* dark text inside the white input */
  background: #fff; /* optional — improves contrast */
  border-color: var(--border-soft);
}

/* Logged-in user pill under the phone number */
.footer-contact .contact-list li.contact-user-pill {
  /* background: var(--brand-primary);
  border-color: var(--brand-primary-dark); */
  /* color: #fff; */
  color: var(--brand-primary);
}

.footer-contact .contact-list li.contact-user-pill span {
  color: inherit;
}

.footer-contact .contact-list li.contact-user-pill .icon svg {
  stroke: currentColor;
}

/* Dark mode variant */
body.theme-dark .footer-contact .contact-list li.contact-user-pill {
  /* background: var(--brand-primary-dark);
  border-color: var(--brand-primary); */
  color: var(--brand-primary-dark);
}

/* Utility: brand-colour text */
.text-brand {
  color: var(--brand-primary);
  font-weight: 600;
}

body.theme-dark .text-brand {
  color: var(--brand-primary-dark);
}

.nowrap {
  white-space: nowrap;
}

/* -------------------------------------------------
   Global move-to-top sticky bar
------------------------------------------------- */
.move-to-top-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.move-to-top-bar .move-to-top-btn {
  pointer-events: auto;
}

.move-to-top-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
}

/* Move-to-top button (floating pill) */
.move-to-top-btn {
  pointer-events: auto; /* button accepts clicks */
  padding: 10px 14px;

  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  background: white;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;

  /* floating effect */
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.2);

  transition:
    background 0.15s ease-out,
    color 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.1s ease-out,
    box-shadow 0.2s ease-out;
}

.move-to-top-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.28),
    0 3px 6px rgba(0, 0, 0, 0.25);
}

/* Desktop: show text + arrow */
.move-to-top-text {
  display: inline;
}

.move-to-top-arrow {
  display: inline;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

/* Mobile: arrow only */
@media (max-width: 768px) {
  .move-to-top-text {
    display: none;
  }
}

/* -------------------------------------------------------------
   Zoom indicator (added when JS sets body.pcc-is-zoomed)
------------------------------------------------------------- */

/* -------------------------------------------------------------
   Zoomed state: FULL overlay above all content (testing)
------------------------------------------------------------- */

body.pcc-is-zoomed::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(200, 0, 0, 0.05); /* obvious red for testing */
  pointer-events: none;
  z-index: 99999;
}

body.pcc-is-zoomed::after {
  content: "🔍";
  position: fixed;
  top: var(--square-y, 10px);
  left: var(--square-x, 10px);
  z-index: 2147483647; /* above everything */
  pointer-events: none;
}

/* Hide page title/subtitle card on shorter viewports
   (unless the header opts in to forcing titles visible) 
   Move to bottom so it always "wins" */
@media (max-height: 999px), (max-width: 520px) {
  .members-page {
    /* border: 1px solid yellow; */
  }
  .members-page__header:not(.force-page-titles) {
    display: none;
  }
}

.notice-body p {
  margin: 0 0 0.9rem 0;
}
.notice-body p:last-child {
  margin: 0 0 1.5rem 0;
}
