:root {
  --yellow: #ffd428;
  --yellow-soft: #ffeb8a;
  --red: #ff2222;
  --orange: #ff7a00;
  --dark: #050508;
  --dark-soft: #15151c;
  --light: #f5f5f5;
  --daves-favorite: #cfffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", system-ui, sans-serif;
  color: var(--light);
  background: radial-gradient(circle at top, #2a0404 0, #050508 60%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  background:
    repeating-linear-gradient(
      -60deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 3px,
      transparent 3px,
      transparent 20px
    );
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -2;
  animation: speedLines 18s linear infinite;
}

body::after {
  animation-duration: 30s;
  animation-direction: reverse;
  opacity: 0.25;
}

@keyframes speedLines {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-20%, -60%, 0); }
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 25px rgba(255, 200, 0, 0.4);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: 0.14em;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

/* Ensure nav-title link is styled and uses the same font */
.nav-title a { color: var(--yellow); text-decoration: none; font-family: "Bebas Neue", system-ui, sans-serif; display:inline-block; }
.nav-title a:hover { text-decoration: underline; }

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

nav a {
  color: #eaeaea;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

/* Ensure nav link font is consistent */
nav a { font-family: "Rajdhani", system-ui, sans-serif; }

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--yellow), var(--red));
  transition: width 0.25s ease;
}

/* Show floating nav toggle at all sizes; overlay remains hidden until activated */
.mobile-nav-toggle {
  display: flex;
  position: fixed;
  /* primary placement: top-right where the header nav used to live */
  right: max(12px, env(safe-area-inset-right));
  top: max(10px, env(safe-area-inset-top));
  width: 52px;
  height: 52px;
  border-radius: 10px;
  /*background-image: url('../img/navbtn.png');*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60% auto;
  /* keep background transparent and prevent native tap highlights */
  background-color: transparent !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  color: #140000;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.36), 0 8px 22px rgba(255,120,0,0.08) inset;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.06);
  z-index: 220;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

/* hide internal icon text (we keep aria-label for accessibility) */
.mobile-nav-toggle > span { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* Hover / lighting effect (mouse) */
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible,
.mobile-nav-toggle.hovered {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.06);
  /*animation: navbtn-glow 900ms ease-in-out 1;*/
  box-shadow: 0 12px 36px rgba(255,140,30,0.32), 0 0 30px rgba(255,140,30,0.12) inset;
}

/* Prevent mobile/UA focus/active from showing a white background */
.mobile-nav-toggle:focus,
.mobile-nav-toggle:active,
.mobile-nav-toggle:focus-visible {
  background-color: transparent !important;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/*@keyframes navbtn-glow {
  0% { box-shadow: 0 6px 18px rgba(255,120,0,0.08), 0 0 6px rgba(255,120,0,0.04) inset; transform: scale(1); }
  40% { box-shadow: 0 14px 40px rgba(255,160,40,0.36), 0 0 28px rgba(255,160,40,0.14) inset; transform: scale(1.07); }
  100% { box-shadow: 0 10px 32px rgba(255,130,30,0.28), 0 0 20px rgba(255,130,30,0.1) inset; transform: scale(1.04); }
}*/

/* overlay and panel base rules (show only when .show is added) */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.mobile-nav-overlay.show { display: flex; }
.mobile-nav-panel {
  background: linear-gradient(180deg,#1b0a0a,#120808);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  width: min(92%, 360px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.mobile-nav-panel ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.6rem; }
.mobile-nav-panel li { border-bottom: 1px solid rgba(255,255,255,0.03); }
.mobile-nav-panel a { color:var(--light); font-family: "Rajdhani", system-ui, sans-serif; text-decoration:none; display:block; padding:0.9rem 0.6rem; font-size:1rem; }
/* Always show the floating mobile-nav toggle — it's the primary menu control now */
.mobile-nav-toggle { display: flex !important; }

/* Hide the old header nav so the floating button is the primary entry point */
/* On desktop show a simple 'Site Menu' button in the header nav area and hide the old links */
header nav { display:flex !important; align-items:center; gap:1rem; }
header nav .site-menu-link { appearance: none; background: transparent; border: 1px solid rgba(255,255,255,0.06); color: var(--light); padding: 0.45rem 0.8rem; border-radius: 8px; cursor: pointer; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; transition: transform 180ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms ease, background 200ms ease, color 200ms ease; }
header nav .site-menu-link:hover, header nav .site-menu-link:focus {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(255,120,0,0.12), 0 0 20px rgba(255,120,0,0.06) inset;
}
header nav .site-menu-link:focus { outline: 3px solid rgba(255,160,0,0.08); }
header nav .site-menu-link[aria-expanded='true'] { background: linear-gradient(135deg,var(--orange),var(--red)); color:#140000; box-shadow: 0 12px 36px rgba(255,120,0,0.14); }

/* Hide the original nav link list content (we replaced it with the site-menu-link) */
header nav ul { display:none !important; }

/* On large screens, keep some breathing room to the right of the logo/title so the toggle can sit above without overlapping */
@media (min-width: 900px) {
  .nav-left { padding-right: 96px; }
}

/* hide the floating round toggle on wide screens to avoid duplicate controls */
@media (min-width: 900px) {
  .mobile-nav-toggle { display: none !important; }
}

/* (z-index is set on the main rule above to ensure the toggle sits above header content) */

nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-left {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--red));
  box-shadow: 0 0 16px rgba(255, 60, 0, 0.9);
}

.hero-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title-top {
  font-size: 3.3rem;
  letter-spacing: 0.12em;
  color: var(--yellow-soft);
}

.hero-title-bottom {
  font-size: 4.5rem;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(255, 0, 0, 0.7);
}

.hero-tagline {
  font-size: 1.05rem;
  color: #f1f1f1;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #140000;
  box-shadow: 0 0 20px rgba(255, 80, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 120, 0, 1);
}

.btn-primary[disabled], .btn-primary[aria-disabled='true'] {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.05) brightness(0.95);
  pointer-events: none;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.5);
  color: var(--yellow-soft);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #cccccc;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-label {
  opacity: 0.65;
}

.meta-value {
  color: var(--yellow-soft);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.hero-logo-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: radial-gradient(circle at 15% 0%, #ffef9a 0, #ff7a00 45%, #1b0202 90%);
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(255, 60, 0, 0.8);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-flare {
  position: absolute;
  border-radius: 40%;
  filter: blur(20px);
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: flarePulse 6s ease-in-out infinite;
}

.hero-flare-1 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 0, 0, 0));
  top: -20%;
  right: -10%;
}

.hero-flare-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.8), rgba(255, 0, 0, 0));
  bottom: -25%;
  left: -15%;
  animation-delay: -2s;
}

@keyframes flarePulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.hero-stats-pill {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pill-label {
  opacity: 0.7;
}

.pill-value {
  color: var(--yellow-soft);
}

.hero-statbar {
  width: 100%;
  max-width: 360px;
}

.statbar-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.2rem;
  opacity: 0.8;
}

.statbar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.statbar-fill {
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.9);
  animation: statbarPulse 2.2s ease-in-out infinite;
}

@keyframes statbarPulse {
  0%, 100% { transform: scaleX(0.98); }
  50%      { transform: scaleX(1.02); }
}

.section {
  padding: 3rem 0;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.section-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-text {
  max-width: 34rem;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: radial-gradient(circle at top, #261111, #0b0505);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.card h3 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--yellow);
}

.card p {
  font-size: 0.95rem;
  color: #e5e5e5;
}

.section-highlight {
  background: radial-gradient(circle at top, rgba(255, 122, 0, 0.1), rgba(0, 0, 0, 0.95));
}

.highlight-inner {
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 0 1.8rem;
  background: rgba(0, 0, 0, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-tagline {
  font-style: italic;
  color: var(--yellow-soft);
}

/* Footer links styling to match site branding and override visited color */
.footer-links a {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #140000 !important;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.footer-links a:visited { color: #140000 !important; }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .highlight-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile floating nav button and overlay */
@media (max-width: 900px) {
  nav { display:none; }
  .mobile-nav-toggle {
    position: fixed;
    /* move to top-right where the header nav was */
    right: max(16px, env(safe-area-inset-right));
    top: max(12px, env(safe-area-inset-top));
    width: 52px;
    height: 52px;
    border-radius: 10px;
    /* Keep the icon image while still providing a warm gradient behind it */
    /*background-image: url('../img/navbtn.png');*/
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% auto;
    /* keep background transparent and prevent native tap highlights */
    background-color: transparent !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    color: #140000;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 6px 16px rgba(255,120,0,0.06) inset;
    z-index: 160;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.06);
  }
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 110;
    display:none;
    align-items:center;
    justify-content:center;
  }
  .mobile-nav-overlay.show { display:flex; }
  .mobile-nav-panel {
    background: linear-gradient(180deg,#1b0a0a,#120808);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    width: min(92%, 360px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  }
  .mobile-nav-panel ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.6rem; }
  .mobile-nav-panel li { border-bottom: 1px solid rgba(255,255,255,0.03); }
  .mobile-nav-panel a { color:var(--light); font-family: "Rajdhani", system-ui, sans-serif; text-decoration:none; display:block; padding:0.9rem 0.6rem; font-size:1rem; }
}

/* Prevent background scroll when mobile nav is open */
body.mobile-nav-open { overflow: hidden; touch-action: none; }

/* ensure overlay sits above sticky header */
.mobile-nav-overlay { z-index: 9999; }

@media (max-width: 600px) {
  .hero-title-top {
    font-size: 2.5rem;
  }

  .hero-title-bottom {
    font-size: 3.2rem;
  }

  nav ul {
    gap: 0.9rem;
    font-size: 0.75rem;
  }
}

/* Mobile hero tweaks */
@media (max-width: 480px) {
  .hero {
    padding: 2.4rem 0 1.8rem;
  }

  .hero-flare-1, .hero-flare-2 {
    width: 140px;
    height: 140px;
    filter: blur(14px);
    opacity: 0.6;
  }

  .hero-logo-card {
    max-width: 260px;
  }
}

/* Site animation helpers */
nav a.active::after {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  transition: transform 560ms cubic-bezier(.2,.9,.2,1), opacity 560ms ease;
  will-change: transform, opacity;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

.hero-logo-img {
  transition: transform 350ms cubic-bezier(.2,.9,.2,1);
}

/* 3D perspective for hero card and smoother transform rendering */
.hero-logo-card {
  perspective: 1000px;
  -webkit-perspective: 1000px;
}
.hero-logo-card img {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Team page styles */
.role-legend {
  margin: 1rem 0 1.6rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.team-page .role-legend { gap: 1rem; margin-top: 1.6rem; }
.role-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000;
  background: #ddd;
}

/* Specific role colors */
.role-badge.role-admin {
  background: var(--daves-favorite);
  color: #0b2525;
  box-shadow: 0 6px 18px rgba(207,255,255,0.06);
}
.role-badge.role-honorary-ducky {
  background: linear-gradient(90deg, #f6e9a8, #ffd428);
  color: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Calendar styles */
.calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.6rem;
  margin-top: 1.2rem;
}
.calendar-panel {
  background: linear-gradient(180deg, rgba(20,6,6,0.6), rgba(0,0,0,0.6));
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  /* full-panel glow using --daves-favorite */
  box-shadow: 0 30px 80px rgba(207,255,255,0.05), 0 8px 24px rgba(207,255,255,0.03) inset;
  outline: 1px solid rgba(207,255,255,0.02);
}
.calendar-legend { display:flex; gap:0.8rem; margin-bottom:0.8rem; align-items:center; }
.legend-item { display:flex; gap:0.5rem; align-items:center; color:#ddd; font-size:0.9rem; }
.legend-dot { width:12px; height:12px; border-radius:8px; display:inline-block; }
.legend-dot.team { background: linear-gradient(90deg,var(--yellow),var(--red)); box-shadow: 0 6px 18px rgba(255,80,0,0.12); }
.legend-dot.holiday { background: linear-gradient(90deg,#39ff6b,#20d44a); box-shadow: 0 6px 18px rgba(32,212,74,0.08); }

/* Ensure modal is positioned inside calendar panel (not full-screen overlay) */
.calendar-panel { position: relative; z-index: 10; }
.calendar-panel .calendar-modal {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 25%; /* center vertically */
  transform: translateY(-25%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 120ms ease;
  z-index: 50;
}
.calendar-panel .calendar-modal.show { opacity:1; pointer-events:auto; }
.calendar-panel .calendar-modal-inner {
  margin-top: 0;
  transform: translateY(0);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  max-width: calc(100% - 32px);
  max-height: 45vh; /* prevent it from growing too tall */
  overflow: auto;
  /* stronger separation from background */
  border: 1px solid rgba(255,80,0,0.18);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px rgba(255,80,0,0.6), 0 0 28px rgba(255,80,0,0.08) inset, 0 0 36px rgba(255,255,255,0.03);
}

@media (max-width: 1000px) {
  .calendar-panel .calendar-modal { bottom: 120px; left: 12px; right: 12px; }
  .calendar-panel .calendar-modal-inner { max-height: 50vh; padding: 14px; }
}

@media (min-width: 1100px) {
  .calendar-panel { box-shadow: 0 36px 110px rgba(207,255,255,0.08), 0 8px 28px rgba(207,255,255,0.04) inset; }
}

@media (max-width: 640px) {
  .calendar-panel { box-shadow: none; outline: none; }
}

@media (max-width: 680px) {
  .calendar-panel .calendar-modal { bottom: 140px; left: 8px; right: 8px; }
  .calendar-panel .calendar-modal-inner { max-height: 55vh; }
}
.calendar-header { display:flex; gap:0.6rem; align-items:center; margin-bottom:0.8rem; }
.calendar-month { font-weight:700; font-size:1.1rem; color:var(--daves-favorite); flex:1; text-align:center; }
.country-select {
  background: rgba(0,0,0,0.6);
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
}
.calendar-grid { display:flex; flex-direction:column; gap:6px; }
.calendar-row { display:grid; grid-template-columns: repeat(7, 1fr); gap:6px; }
.calendar-weekdays .calendar-cell { opacity:0.9; color:#ddd; font-weight:700; }
.calendar-cell { min-height:86px; background: linear-gradient(180deg, rgba(40,12,12,0.35), rgba(0,0,0,0.4)); border-radius:8px; padding:8px; position:relative; }
.calendar-empty { background: transparent; box-shadow:none; }
.calendar-daynum { position:absolute; top:8px; left:8px; font-size:0.95rem; color:var(--yellow-soft); font-weight:700; }
.calendar-markers { position:absolute; bottom:8px; left:8px; display:flex; gap:6px; align-items:center; }
.event-dot { width:14px; height:14px; border-radius:7px; border:none; cursor:pointer; background:linear-gradient(90deg,var(--yellow),var(--red)); }
.event-dot.holiday { background: linear-gradient(90deg, #39ff6b, #20d44a); box-shadow: 0 3px 12px rgba(32,212,74,0.18); }
.calendar-day.holiday { outline: 2px solid rgba(32,212,74,0.06); }
.calendar-more { padding:2px 6px; background:rgba(0,0,0,0.4); border-radius:999px; color:#fff; font-size:0.75rem; }
.calendar-sidebar { background: linear-gradient(180deg, rgba(20,6,6,0.6), rgba(0,0,0,0.6)); padding:1rem; border-radius:12px; }
.upcoming-card { padding:0.6rem; border-radius:8px; margin-bottom:0.6rem; background: rgba(0,0,0,0.2); cursor:pointer; }
.calendar-modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.5); z-index:80; opacity:0; pointer-events:none; transition:opacity 160ms ease; }
.calendar-modal.show { opacity:1; pointer-events:auto; }
.calendar-modal-inner { background:linear-gradient(180deg,#1b0a0a,#120808); padding:1rem; border-radius:12px; width:90%; max-width:720px; display:flex; gap:1rem; color:#fff; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }

/* stronger glow when modal is visible */
.calendar-panel .calendar-modal.show .calendar-modal-inner {
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,120,0,0.95), 0 0 36px rgba(255,200,120,0.08) inset;
  border-color: rgba(255,120,0,0.3);
}
.calendar-modal-media img { width:220px; height:140px; object-fit:cover; border-radius:8px; }
.calendar-modal-title { font-size:1.3rem; color:var(--yellow-soft); }
.calendar-modal-when { opacity:0.9; margin-bottom:0.6rem; }
.calendar-modal-desc { color:#e6e6e6; }
.calendar-modal-close { position:absolute; right:12px; top:12px; background:transparent; border:none; color:#fff; font-size:1.1rem; cursor:pointer; }

/* Make the close button a larger circular target and ensure it sits above modal content */
#carbuild-modal .calendar-modal-close {
  right: 14px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  font-size: 1.05rem;
}
#carbuild-modal .calendar-modal-close:hover { background: rgba(255,255,255,0.04); }

/* Hide big brand image on very small screens to reduce vertical space */
@media (max-width: 640px) {
  #carbuild-modal .carbuild-media { display:none; }
  #carbuild-modal .carbuild-modal-inner { padding-top: 0.8rem; }
}

/* Small header divider to visually separate title/meta from the parts list */
.carbuild-header { position:relative; }
.carbuild-header::after { content: ""; display:block; height:1px; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); margin-top:0.6rem; border-radius:2px; }

@media (max-width: 900px) {
  .calendar-wrap { grid-template-columns: 1fr; }
  .calendar-cell { min-height:72px; }
  .calendar-modal-inner { flex-direction:column; }
  .calendar-modal-media img { width:100%; height:180px; }
}

/* Tighter calendar layout for narrow phones (e.g. 412x883) */
@media (max-width: 420px) {
  .calendar-wrap { grid-template-columns: 1fr; gap: 0.8rem; }
  .calendar-panel { padding: 0.6rem; border-radius:10px; }
  .calendar-header { gap:0.4rem; margin-bottom:0.6rem; }
  .calendar-month { font-size: 1rem; }
  .country-select { padding: 0.36rem 0.5rem; font-size:0.92rem; }
  .calendar-grid { gap:4px; }
  .calendar-row { gap:4px; }
  .calendar-cell { min-height:58px; padding:6px; border-radius:8px; }
  .calendar-daynum { top:6px; left:6px; font-size:0.82rem; }
  .calendar-markers { bottom:6px; left:6px; gap:4px; }
  .calendar-modal-inner { padding:0.6rem; }
  .calendar-sidebar { margin-top:0.8rem; padding:0.6rem; }
  .legend-item { font-size:0.85rem; }
}

/* Collapsible calendar sidebar on small screens */
@media (max-width: 420px) {
  /* Keep calendar sidebar visible but compact on small screens */
  .calendar-sidebar { display:block; padding:0.6rem; margin-top:0.6rem; }
  .calendar-sidebar-toggle { display:none; }
  .calendar-sidebar.expanded { display:block; margin-top:0.6rem; }
  /* Make add-event a small circular button with + */
  #add-event { width:44px; height:44px; padding:0; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:0; line-height:0; }
  /* visually hide the button text and show a styled plus via ::after */
  #add-event::after { content: '+'; font-size:1.2rem; line-height:1; color:#140000; font-weight:800; }
  #add-event span { display:none; }
}

/* Additional tighter rules for phones like 412px width */
@media (max-width: 440px) {
  .calendar-panel { padding: 0.5rem; }
  .calendar-header { align-items:center; display:flex; gap:0.35rem; flex-wrap:wrap; }
  .calendar-header button.btn { padding:6px 8px; width:36px; height:36px; font-size:0.9rem; }
  .calendar-month { font-size:0.95rem; }
  .country-select { display:inline-block; width: auto; font-size:0.88rem; max-width: 40%; }
  .calendar-grid { gap:3px; }
  .calendar-row { gap:3px; }
  .calendar-cell { min-height:48px; padding:6px 4px; border-radius:6px; }
  .calendar-daynum { font-size:0.78rem; }
  .calendar-weekday { font-size:0.78rem; padding:4px; }
  .calendar-panel, .calendar-sidebar { width:100%; box-sizing:border-box; }
}

/* Make the weekday header slightly smaller and compact */
@media (max-width: 480px) {
  .calendar-weekday { font-size:0.8rem; opacity:0.92; }
  .calendar-weekday, .calendar-cell { border-radius:6px; }
}

/* Extra-tight for very small screens */
@media (max-width: 360px) {
  .calendar-panel { padding: 0.45rem; }
  .calendar-cell { min-height:50px; padding:5px; }
  .calendar-daynum { font-size:0.75rem; }
  .calendar-month { font-size:0.95rem; }
  .calendar-sidebar { padding:0.5rem; }
}
.team-page .role-badge { font-size: 0.85rem; padding: 0.28rem 0.8rem; font-weight: 700; }
.role-founder { background: linear-gradient(90deg, #ff7a7a, #ff3b3b); color: #140000; }
.role-leader { background: linear-gradient(90deg, #ffd428, #ffb300); color: #140000; }
.role-coleader { background: linear-gradient(90deg, #9b59b6, #7e3fb0); color: #ffffff; }
.role-dealer { background: linear-gradient(90deg, #39ff6b, #20d44a); color: #002b00; }
.role-ducky { background: linear-gradient(90deg, #fff27a, #ffd428); color: #140000; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}
/* Mobile improvements for team page */
@media (max-width: 760px) {
  .team-page .member-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .team-page .member-avatar { width: 72px; height: 72px; }
  .team-page .member-name { font-size: 1rem; white-space: normal; }
  .team-page .member-info { min-width: 0; }
  .team-page .member-blurb { font-size: 0.95rem; }
  .team-page .role-legend { display:flex; flex-direction:row; gap:0.6rem; flex-wrap:wrap; }
}

/* When body.is-mobile is present, slightly increase spacing and stack content for better tap targets */
body.is-mobile .team-page .member-card { padding: 0.9rem; }
.member-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(180deg, #2b1111, #0b0505);
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}
.team-page .member-card { padding: 1.3rem; border-radius: 16px; }
.member-avatar {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.06);
}
.team-page .member-avatar { width: 96px; height: 96px; }
.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* allow text to wrap inside grid */
}
.member-name {
  font-weight: 700;
  color: var(--yellow-soft);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 1.05rem;
  white-space: nowrap; /* keep name and badge on one line */
}
.member-role { font-size: 0.95rem; opacity: 0.9; }
.member-blurb { font-size: 1rem; color: #e6e6e6; }

/* Car Builds grid */
.carbuilds-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1rem; margin-top:1.2rem; }
.car-card { background: linear-gradient(180deg,#220909,#120606); border-radius:12px; padding:0.6rem; display:flex; gap:0.8rem; align-items:center; border:1px solid rgba(255,255,255,0.04); }
.car-card { background: linear-gradient(180deg,#220909,#120606); border-radius:12px; padding:0.9rem; display:flex; gap:1rem; align-items:center; border:1px solid rgba(255,255,255,0.04); min-height:140px; }
.car-media { width:120px; height:120px; display:grid; place-items:center; background: rgba(255,255,255,0.02); padding:12px; border-radius:12px; overflow: hidden; }
.car-media img { max-width:85%; max-height:85%; width:auto; height:auto; object-fit:contain; object-position:center center; display:block; margin:0 auto; align-self:center; border-radius:6px; }
.car-body { flex:1; display:flex; flex-direction:column; gap:0.4rem; }
.car-title { font-weight:700; color:var(--yellow-soft); }
.car-meta { font-size:0.9rem; opacity:0.9; }
.carbuild-modal-inner { display:flex; gap:1rem; align-items:flex-start; }
.carbuild-media { width:160px; height:160px; display:grid; place-items:center; background: rgba(255,255,255,0.02); padding:10px; border-radius:10px; overflow: hidden; }
.carbuild-media img { max-width:100%; max-height:100%; object-fit:contain; object-position:center center; display:block; margin:0 auto; align-self:center; border-radius:6px; }
.carbuild-setup .setup-list { list-style:none; padding-left:0; margin:0; }
.carbuild-setup .setup-list li { padding:0.3rem 0; border-bottom:1px dashed rgba(255,255,255,0.03); }

@media (max-width: 1100px) { .carbuilds-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .car-card { min-height:120px; } .car-media { width:180px; height:100px; } .carbuild-media { width:240px; height:140px; } }
@media (max-width: 680px) { .carbuilds-grid { grid-template-columns: 1fr; } .car-media{ width:150px; height:86px; } .car-media img{ max-width:85%; max-height:85%; } }

/* Per-brand tweaks to prevent large logos from filling the box too much */
.car-card[data-brand="honda"] .car-media img,
.car-card[data-brand="acura"] .car-media img {
  max-width:75%;
  max-height:75%;
}
.car-card[data-brand="mitsubishi"] .car-media img {
  max-width:70%;
  max-height:70%;
}
.car-card[data-brand="nft"] .car-media img {
  /* NFT logos are taller; reduce max-height */
  max-width:75%;
  max-height:65%;
}

/* Modal equivalents */
#carbuild-modal[data-brand="honda"] .carbuild-media img,
#carbuild-modal[data-brand="acura"] .carbuild-media img {
  max-width:70%;
  max-height:75%;
}
#carbuild-modal[data-brand="mitsubishi"] .carbuild-media img { max-width:75%; max-height:78%; }
#carbuild-modal[data-brand="nft"] .carbuild-media img { max-width:78%; max-height:72%; }

.class-filters .filter-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #140000;
  box-shadow: 0 0 20px rgba(255,80,0,0.7);
}
.class-filters .filter-btn { padding:0.4rem 0.6rem; }

/* Build type filter styles */
.type-filters .type-btn { padding:0.36rem 0.6rem; margin-right:0.2rem; }
.type-filters .type-btn.active { background: linear-gradient(135deg, var(--orange), var(--red)); color:#140000; box-shadow: 0 0 18px rgba(255,80,0,0.7); }

.carbuild-setup .setup-list { display:grid; grid-template-columns: 1fr; gap:0.2rem; }
.carbuild-setup .setup-list li { display:flex; justify-content:space-between; align-items:flex-start; gap:0.8rem; }
.carbuild-setup .setup-list li strong { display:inline-block; width:120px; color:var(--yellow-soft); flex:0 0 120px; }

/* Setup header badge and stat row */
.setup-type-badge {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  color: #140000;
  font-weight:700;
  font-size:0.8rem;
}
.setup-stats-row { display:flex; gap:0.6rem; margin-top:0.5rem; align-items:baseline; }
.setup-stats-row .stat { background: rgba(255,255,255,0.02); padding:0.28rem 0.6rem; border-radius:6px; font-weight:700; color:var(--light); }
.setup-stats-row .stat-hp { color: var(--yellow-soft); }
.setup-stats-row .stat-tq { color: #cfeaff; }
.setup-stats-row .stat-weight { color: #ffd8b8; }

/* Carbuild modal sizing and scroll */
/* Modal sizing: on desktop keep side-by-side; on small screens stack and allow full modal scroll */
#carbuild-modal .calendar-modal-inner { width:92%; max-width:980px; max-height:82vh; overflow:hidden; }
#carbuild-modal .carbuild-modal-inner { display:flex; gap:1.2rem; align-items:flex-start; padding:1rem 1.2rem; min-width:0; }
#carbuild-modal .carbuild-media { flex:0 0 220px; border-radius:8px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04)); padding:12px; min-width:0; }
#carbuild-modal .carbuild-body { flex:1 1 auto; min-width:0; }
#carbuild-modal .carbuild-setup { overflow:auto; max-height:60vh; padding-right:0.8rem; }

@media (max-width: 900px) {
  /* Make modal inner stack vertically and allow the whole modal to scroll */
  #carbuild-modal .calendar-modal-inner { max-height:90vh; overflow:auto; }
  #carbuild-modal .carbuild-modal-inner { flex-direction:column; gap:0.8rem; }
  #carbuild-modal .carbuild-media { width:100%; flex:0 0 auto; }
  /* ensure setup and side are in flow and fully reachable by scrolling the modal */
  #carbuild-modal .carbuild-body { width:100%; }
  #carbuild-modal .carbuild-setup { max-height:none; overflow:visible; }
  .setup-side { width:100%; flex:0 0 auto; }
  /* small tweaks for readability */
  .setup-columns-dl { gap:0.8rem; }
}

/* extra mobile tweaks to ensure last elements are reachable and scrolling is smooth */
@media (max-width: 900px) {
  /* make outer modal inner scrollable and allow the full content to be reached */
  #carbuild-modal .calendar-modal-inner {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    scroll-padding-bottom: 220px; /* give extra room so bottom items can scroll into view */
    max-height: calc(100vh - 6vh);
    overflow:auto;
  }
  /* ensure the close button is above content */
  #carbuild-modal .calendar-modal-close { z-index: 60; }
  #carbuild-modal .carbuild-modal-inner { padding-bottom: 1rem; }
}

@media (max-width: 900px) {
  /* Anchor the modal toward the top on mobile so scrolling starts from near the top edge */
  #carbuild-modal.calendar-modal { align-items: flex-start; padding-top: 3.5vh; padding-bottom: env(safe-area-inset-bottom, 12px); }
  #carbuild-modal.calendar-modal .calendar-modal-inner { margin: 0 auto; }
  /* ensure close button remains above content */
  #carbuild-modal .calendar-modal-close { z-index: 120; }
  /* make inner padding slightly larger so the last element isn't flush with the bottom */
  #carbuild-modal .carbuild-modal-inner { padding-bottom: 1.2rem; }
}

/* clearer two/three column parts grid with better spacing and label alignment */
#carbuild-modal .carbuild-setup .setup-list { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:0.6rem 1.6rem; list-style:none; padding:0; margin:0; }
@media (min-width: 1300px) { #carbuild-modal .carbuild-setup .setup-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap:0.8rem 2rem; } }
@media (max-width: 900px) { #carbuild-modal .carbuild-modal-inner { flex-direction:column; } #carbuild-modal .carbuild-media { flex:0 0 auto; width:100%; } #carbuild-modal .carbuild-setup .setup-list { grid-template-columns: 1fr; } }

/* part label/value improvements */
.carbuild-setup .setup-list li { padding:0.45rem 0; display:flex; gap:0.8rem; align-items:flex-start; }
.carbuild-setup .setup-list li strong { display:inline-block; width:160px; color:var(--yellow-soft); flex:0 0 160px; font-weight:800; }
.carbuild-setup .setup-list li span { color:#f3f0e8; }

/* independent columns container for parts list */
.setup-columns { display:flex; gap:1.2rem; align-items:flex-start; }
.setup-columns .column-list { list-style:none; padding:0; margin:0; flex:1 1 0; min-width:0; max-width:420px; }
.setup-columns .column-list li { border-bottom: 1px dashed rgba(255,255,255,0.03); padding-bottom:0.4rem; margin-bottom:0.4rem; }

/* New DL-based parts layout: use definition lists for label/value alignment */
.setup-columns-dl { display:flex; gap:1.2rem; align-items:flex-start; flex-wrap:wrap; }
.setup-columns-dl .setup-dl { min-width:260px; max-width:420px; }
.setup-dl { display:grid; grid-template-columns: 160px 1fr; gap:0.4rem 1rem; align-items:start; }
.setup-dl dt { color:var(--yellow-soft); font-weight:800; }
.setup-dl dd { margin:0; color:#f3f0e8; }

@media (max-width: 900px) {
  .setup-columns-dl { display:block; }
  .setup-dl { grid-template-columns: 1fr; }
  .setup-dl dt { margin-top:0.6rem; }
}

/* ensure the carbuild-setup area can scroll horizontally if necessary and prevent overflow */
#carbuild-modal .carbuild-setup { overflow:auto; max-width:100%; }
@media (max-width:900px){ .setup-columns { flex-direction:column; gap:0.6rem; } }

/* modal header & meta tweaks */
.carbuild-header { display:flex; flex-direction:column; gap:0.45rem; }
.carbuild-title { font-size:1.25rem; color:var(--yellow); margin-bottom:0; }
.carbuild-meta { font-size:0.95rem; color:#e8e1d8; display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.setup-type-badge { margin-left:0; padding:0.18rem 0.5rem; border-radius:6px; font-size:0.78rem; font-weight:800; }
.setup-stats-row { margin-top:0.2rem; gap:0.5rem; }
.setup-stats-row .stat { padding:0.3rem 0.6rem; font-size:0.95rem; font-weight:800; }

/* better contrast for gear/stance boxes and spacing */
.gear-block, .stance-block { background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(255,255,255,0.01)); padding:0.8rem; border-radius:8px; }
.gear-block h4, .stance-block h4 { margin:0 0 0.6rem 0; }

/* ensure bottom panels line up nicely */
.carbuild-footer-panels { display:flex; gap:1rem; margin-top:0.8rem; }
@media (max-width:900px){ .carbuild-footer-panels { flex-direction:column; } }

/* sidebar for gear ratios and stance */
.setup-side { width:320px; flex:0 0 320px; display:flex; flex-direction:column; gap:0.6rem; min-width:0; }
.gear-block h4, .stance-block h4 { color:var(--yellow-soft); margin:0 0 0.4rem 0; }
.gear-block { background: rgba(255,255,255,0.02); padding:0.6rem; border-radius:8px; margin:0; flex:1 1 0; }
.stance-block { background: rgba(255,255,255,0.02); padding:0.6rem; border-radius:8px; margin:0; flex:1 1 0; }
.stance-block .stance-row { display:flex; gap:0.6rem; }
.stance-block .stance-col { flex:1; padding:0.4rem; background: rgba(0,0,0,0.06); border-radius:6px; }

@media (min-width: 900px) { .setup-side { flex-direction:row; width:660px; flex:0 0 660px; } }
@media (max-width: 900px) { .setup-side { width:100%; flex:0 0 auto; } }

.gear-ratios { margin-top:0.4rem; color:var(--light); }
.gear-ratios div { margin-top:0.2rem; }
.gear-list { margin-top:0.2rem; font-size:0.9rem; opacity:0.95; }

.stance-row { display:flex; gap:1rem; margin-top:0.4rem; }
.stance-col { background: rgba(255,255,255,0.02); padding:0.45rem; border-radius:6px; width:50%; }
.stance-col strong { display:block; margin-bottom:0.4rem; color:var(--yellow-soft); }
.stance-col div { font-size:0.95rem; margin:0.18rem 0; }

@media (max-width: 900px) {
  .team-page .member-avatar { width: 76px; height: 76px; }
  .team-page .member-card { padding: 1rem; }
}

/* Role toast/tooltip */
.role-toast {
  position: fixed;
  z-index: 60;
  max-width: 300px;
  background: rgba(10,10,10,0.95);
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.role-toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Full-height layout (sticky footer) */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* WP themes typically wrap content in <main> */
main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}
/* --- WordPress admin bar: prevent it from creating extra scroll space --- */
/* WordPress admin bar: offset fixed/sticky headers correctly */
body.admin-bar header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

#wpadminbar { position: fixed !important; top: 0; }

/* --- Keep layout clean; prevent tiny overflow from transforms/rounding --- */
html, body { height: 100%; } /* you already have this, keeping it explicit */ /*:contentReference[oaicite:1]{index=1}*/
body { overflow-x: hidden; } /* already present */ /*:contentReference[oaicite:2]{index=2}*/
/* Sticky footer layout (safe with WP admin bar) */
html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* When WP admin bar is present, subtract its height to prevent tiny scroll */
body.admin-bar {
  min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar {
    min-height: calc(100vh - 46px);
  }
}
.member-favcar{
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.92rem;
}
