/* FIX: Hide the FirebaseUI Terms of Service footer */
.firebaseui-tos-and-pp {
  display: none !important;
}

.event-card--hero .hero-card-new__title {
  color: var(--color-on-primary-container-variant, #dce7d7);
  font-weight: var(--font-weight-normal);
}

:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(245, 245, 240, 1);
  --color-cream-100: rgba(252, 252, 248, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(45, 47, 47, 1); /* Darker gray for WCAG AA compliance */
  --color-brown-600: rgba(94, 82, 64, 1);
  --primary: #19502a;
  --tertiary: #ff905b;
  --surface: #fafaf5;
  --surface-container-low: #f4f4ef;
  --surface-container-lowest: #ffffff;
  --on-surface: #1a1c19;
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(100, 212, 154, 1);
  --color-teal-400: rgba(80, 190, 140, 1);
  --color-teal-500: rgba(76, 197, 156, 1);
  /* Main Primary - Fresh Mint Green */
  --color-teal-600: rgba(63, 178, 141, 1);
  /* Darker mint for hover */
  --color-teal-700: rgba(11, 59, 60, 1);
  /* Deep teal for headings */
  --color-teal-800: rgba(41, 150, 161, 1);
  /* Accent (High-contrast Navy) */
  --color-accent-600: rgba(26, 64, 92, 1);
  --color-accent-700: rgba(16, 44, 67, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);
  --color-accent-warm: rgba(255, 122, 89, 1);
  /* Coral Accent for highlights */
  
  /* Earthy / Vintage Vibe Palette */
  --color-sunset-terracotta: #E07A5F;
  --color-deep-charcoal: #2D2D2D;
  --color-deep-espresso: #3D2B1F;
  --color-vellum-cream: #FAF9F6;
  --color-soft-peach: #F4F1DE;
  --color-paper-white: #fafaf5;
  --color-surface-container-low: #f4f4ef;
  --color-surface-container-lowest: #ffffff;
  
  --color-mint-light: rgba(223, 243, 234, 1);
  /* Light sage for subtle backgrounds */
  
  /* Brand Palette for Step Badges & Orbs */
  --color-brand-coral: #c3272b; /* Darkened to meet WCAG AA contrast (4.5:1) */
  --color-brand-blue: #2563EB;
  --color-brand-peach: #C2410C;
  --color-brand-teal: #0D9488;
  --color-brand-charcoal: rgba(31, 33, 33, 1);
  --color-brand-forest: #267749; /* Improved contrast for AA compliance (5.1:1 with white) */
  --color-accent-earth: #A84B2F; /* Clay tone for community/free events */

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 45, 47, 47;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: #F8F8F6;
  --color-surface: #FAFAF9;
  --color-text: #1A1A1A;
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --border-ghost: 1px solid rgba(0, 0, 0, 0.04);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --shadow-stack: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23134252%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;

  /* Typography Scale (Suggested for Mobile) */
  --font-size-h1: 2.5rem; /* 40px */
  --font-size-h2: 1.75rem; /* 28px */
  --font-size-h3: 1.25rem; /* 20px */
  --font-size-base: 1rem; /* 16px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-xs: 0.75rem;

  /* Legacy variables for compatibility */
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;

  /* Line Heights */
  --line-height-h1: 1.1;
  --line-height-h2: 1.2;
  --line-height-h3: 1.3;
  --line-height-normal: 1.6;
  --line-height-small: 1.5;
  --line-height-tight: 1.2;

  /* Letter Spacing */
  --letter-spacing-h1: -0.02em;
  --letter-spacing-h2: -0.01em;
  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: normal;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Premium Shadow Tiers */
  --shadow-tier-1: 0 10px 30px rgba(0,0,0,.08);
  --shadow-tier-2: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-tier-3: 0 1px 2px rgba(0,0,0,.03), 0 2px 4px rgba(0,0,0,.02);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  --hero-bg-color: #FAF9F6;
  --about-hero-image: var(--hero-background-image);
  
  --btn-primary-bg: #267749; /* Darkened for accessibility (5.1:1 ratio with white text) */
  --btn-primary-bg-hover: #1e5e3a;
  --btn-primary-border: #267749;
  --btn-primary-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  --btn-primary-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.08);

  /* Accessible primary button colors (white text ≥ 4.5:1 on green) */
  --color-primary-button: #267749;
  --color-primary-button-hover: #1e5e3a;
  --color-primary-button-text: var(--color-cream-50);

  --table-bg: var(--color-surface);
  --table-border: var(--color-card-border);
  --canvas-bg: var(--color-background);
  --timer-color: var(--color-text);

  --firebase-btn-password-bg: var(--color-primary-button);
  --firebase-btn-password-border: var(--color-primary-button);
  --firebase-btn-password-text: var(--color-primary-button-text);
  --firebase-btn-google-bg: var(--color-surface);
  --firebase-btn-google-border: var(--color-border);
  --firebase-btn-google-text: var(--color-text);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

@media (max-width: 599px) {
  :root {

  }
}
.btn--primary-nav {
  background-color: #2e8f58 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 0.5rem 1.5rem !important;
  border: none !important;
  transition: all 0.2s ease;
}

.btn--primary-nav:hover {
  background-color: #247f4a !important;
  box-shadow: 0 2px 8px rgba(46, 143, 88, 0.3) !important;
  transform: translateY(-1px);
}

.btn--primary-nav:active {
  background-color: #1a5a34 !important;
  transform: translateY(0);
}


@media (min-width: 600px) and (max-width: 1079px) {
  :root {

  }
}

@media (min-width: 1080px) {
  :root {

  }
}

.hero-group-card {
    background-color: var(--hero-bg-color);
    background-image: var(--hero-background-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.header-actions {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

.avatar-btn {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  overflow: hidden;
}

.avatar-btn:hover {
  border-color: var(--color-teal-500);
  background-color: var(--color-mint-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avatar-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.avatar-btn--logged-in {
  width: auto;
  min-width: 44px;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  gap: var(--space-4);
}

.avatar-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.avatar-initial {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
}

.avatar-image {
  width: 32px; /* Slightly smaller to fit better with padding */
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-background); /* Fallback color */
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar-chevron {
  margin-left: 8px;
  font-size: 10px;
  color: var(--color-text-secondary);
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.avatar-menu {
  position: absolute;
  top: 60px;
  right: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-8);
  z-index: 1000;
  display: none;
  font-family: var(--font-family-serif);
}
.avatar-menu.is-open {
  display: block;
}

.avatar-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  border: none;
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.avatar-menu-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.top-nav-menu {
  position: absolute;
  top: 60px;
  right: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: var(--space-8);
  z-index: 1000;
}

.top-nav-item {
  display: block;
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  color: var(--color-text);
}

.top-nav-profile {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-8) var(--space-12);
  border-bottom: 1px solid var(--color-card-border-inner);
}

.top-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.top-nav-name {
  font-weight: var(--font-weight-medium);
}

.top-nav-logout {
  color: var(--color-error);
  background: transparent;
  border: none;
  text-align: left;
}

.hero-cta {
  margin-top: 0.75rem; /* Reduced from 1.5rem to bring CTA closer to title */
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: center;
}

.relocated-cta {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-cta .btn {
  flex: 0 0 auto;
  min-width: 160px;
  max-width: none;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  min-height: 48px;
}

/* Avatar remains visible on mobile (≥375px), tap target is 44×44 */

.live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: rgba(var(--color-teal-500-rgb), 0.1);
  border-bottom: 1px solid var(--color-card-border-inner);
}

.round-controls {
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-card-border-inner);
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-12);
  align-items: center;
}

.round-label {
  font-weight: var(--font-weight-medium);
}

.round-timer {
  font-weight: var(--font-weight-semibold);
}

.round-buttons .btn {
  min-width: 80px;
}





[data-theme="light"],
[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: 16px; /* Reverted to 16px for a more deliberate, premium typographic scale */
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px; 
  }
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  font-weight: 600;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p, .body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  margin: 0 0 var(--space-16) 0;
}

small, .text-sm {
  font-size: var(--font-size-sm); /* 0.875rem (14px) */
  line-height: var(--line-height-small); /* 1.5 */
  letter-spacing: var(--letter-spacing-normal);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-16);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
  min-height: 40px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}

.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-1px);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--ghost,
.btn-ghost {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  transition: all var(--duration-normal) var(--ease-standard);
}

.btn--ghost:hover,
.btn-ghost:hover {
  background: rgba(var(--color-teal-500-rgb), 0.1);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--ghost:focus-visible,
.btn-ghost:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: none;
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
  line-height: var(--line-height-tight);
}

.btn--register.btn--sm {
  font-size: calc(var(--font-size-sm) * 1.2);
  padding: calc(var(--space-4) * 1.2) calc(var(--space-12) * 1.2);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge--round {
  background-color: var(--color-teal-500);
  color: var(--color-white);
}

.badge--question {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xl);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

/* Event Card Animations */
#upcomingEventsList {
  min-height: 200px; /* Adjust as needed */
}

.event-card.initially-hidden {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

.event-card.fade-in {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity var(--duration-normal) var(--ease-standard),
    transform var(--duration-normal) var(--ease-standard);
}
/*  micro-stagger for organic group entrance — feels cohesive but alive */
.event-card.fade-in:nth-child(2) { transition-delay: 0.03s; }
.event-card.fade-in:nth-child(3) { transition-delay: 0.06s; }
.event-card.fade-in:nth-child(4) { transition-delay: 0.09s; }


.divider-or-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-24) 0;
}

.divider-line {
  flex-grow: 1;
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.divider-or-text {
  position: absolute;
  background-color: var(--color-surface);
  padding: 0 var(--space-16);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.guest-access-text {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.guest-access {
  position: static;
  z-index: auto;
  background: transparent;
}

#guestAccessBtn {
  position: relative;
  z-index: 10;
}

#guestAccessBtn.btn--ghost,
#guestAccessBtn.btn-ghost {
  background: var(--color-white) !important;
  border: 2px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
  box-shadow: none !important;
}

#guestAccessBtn.btn--ghost:hover,
#guestAccessBtn.btn-ghost:hover {
  background: rgba(var(--color-teal-500-rgb), 0.1) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(var(--color-success-rgb, 33, 128, 141),
      var(--status-bg-opacity));
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(var(--color-error-rgb, 192, 21, 47),
      var(--status-bg-opacity));
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(var(--color-warning-rgb, 168, 75, 47),
      var(--status-bg-opacity));
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(var(--color-info-rgb, 98, 108, 113),
      var(--status-bg-opacity));
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
section {
  padding-inline: 1.25rem;
}

.container {
  width: 100%;
  max-width: 35rem; /* 560px */
  margin-inline: auto;
}

/* Utility classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}

.hidden {
  display: none !important;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Dark mode colors */
[data-theme="dark"],
[data-color-scheme="dark"] {
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(119, 124, 124, 0.2);
  --color-card-border-inner: rgba(119, 124, 124, 0.15);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --table-bg: #334455;
  --table-border: #ffffff;
  --canvas-bg: #222222;
  --timer-color: #ff9900;
}

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

html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: opacity 0.5s ease; /* Soften the "blink" into a smooth fade-in */
  overflow-x: hidden;
  width: 100%;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

/* Login Container - Modal Overlay Pattern */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(245, 245, 240, 0.8);
  /* Subtle cream background */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  z-index: 1000;
  backdrop-filter: blur(10px);
  /* Enhanced blur effect */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Login Container fade out animation */
.login-container.fade-out {
  animation: fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.login-card {
  background: var(--color-surface);
  border-radius: 32px;
  padding: var(--space-32);
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-card h1 {
  font-size: 1.75rem;
  margin-top: var(--space-24);
  margin-bottom: var(--space-8);
  color: var(--color-text);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.login-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  position: relative;
  z-index: 1;
}

/* Updated subtitle with requested text */
.login-subtitle-community {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.login-form {
  text-align: left;
  margin-bottom: var(--space-20);
}

.login-form .form-group {
  margin-bottom: var(--space-16);
}

.guest-access {
  margin-top: var(--space-20);
  padding-top: var(--space-20);
  border-top: 1px solid var(--color-border);
}

.guest-access p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

/* Premium divider with centered text */
.guest-access .divider {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: var(--space-12) 0;
}

.guest-access .divider::before,
.guest-access .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.guest-access .divider .or-block {
  background: var(--color-surface);
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guest-access .divider .or-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.guest-access .divider .or-subtext {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.login-microcopy {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
  margin: var(--space-16) 0;
  line-height: 1.5;
}

/* Updated guest access link styling */
.guest-access-link {
  display: block;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  text-decoration: none;
  padding: var(--space-8);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  margin-top: var(--space-8);
}

.guest-access-link:hover {
  color: var(--color-primary);
  background-color: rgba(63, 178, 141, 0.05);
}

.guest-access-link:active {
  transform: translateY(1px);
}

.error-message {
  margin-top: var(--space-12);
  padding: var(--space-12);
  background-color: rgba(var(--color-error-rgb), 0.1);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-base);
  color: var(--color-error);
  font-size: var(--font-size-sm);
}

.login-hint {
  margin-top: var(--space-16);
  padding: var(--space-12);
  background-color: var(--color-bg-8);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
}

/* Setup Notice */
.setup-notice {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  background-color: var(--color-background);
}

.setup-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  max-width: 700px;
  width: 100%;
  border: 2px solid var(--color-warning);
  box-shadow: var(--shadow-lg);
}

.setup-card h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-20);
  color: var(--color-text);
}

.setup-card p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.setup-card ol {
  margin-left: var(--space-20);
  margin-bottom: var(--space-20);
}

.setup-card li {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-12);
  line-height: 1.6;
}

.setup-card code {
  background-color: var(--color-secondary);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: var(--font-size-sm);
}

.setup-card a {
  color: var(--color-primary);
  text-decoration: underline;
}

.setup-footer {
  margin-top: var(--space-20);
  padding-top: var(--space-20);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: var(--space-16);
}

@media (min-width: 768px) {
  .app-container {
    max-width: var(--container-lg);
  }
}

.optimization-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: var(--space-8);
}

/* Configuration Panel */
.config-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  margin-bottom: var(--space-24);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
}

.config-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.config-panel__header h3 {
  margin: 0;
}

.config-panel-toggle {
  margin-left: auto;
}

.config-panel--collapsible.is-collapsed {
  padding-bottom: var(--space-20);
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-20);
}

.config-grid--compact {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .config-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: end;
}

@media (min-width: 768px) {
  .form-row {
    gap: var(--space-16);
  }
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}

/* Make links styled as buttons retain their text color, even when visited or hovered. */
a.btn--primary,
a.btn--primary:visited,
a.btn--primary:hover,
a.btn--primary:active {
  color: var(--color-btn-primary-text);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-teal-700);
  border: 1px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  background: var(--color-cream-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--full-width {
  width: 100%;
}

.btn--lg {
  padding: var(--space-16) var(--space-32);
  font-size: var(--font-size-lg);
}

.btn--danger {
  background-color: var(--color-error);
  color: var(--color-white);
}

.btn--danger:hover {
  background-color: var(--color-red-400);
}

.btn--warning {
  background-color: var(--color-warning);
  color: var(--color-white);
}

.btn--warning:hover {
  background-color: var(--color-orange-400);
}

/* Firebase UI Auth Button Styles - More Specific Selectors */
.firebaseui-container .firebaseui-idp-password {
  background-color: var(--firebase-btn-password-bg) !important;
  border: 1px solid var(--firebase-btn-password-border) !important;
  color: var(--firebase-btn-password-text) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.firebaseui-container .firebaseui-idp-google {
  background-color: var(--firebase-btn-google-bg) !important;
  border: 1px solid var(--firebase-btn-google-border) !important;
  color: var(--firebase-btn-google-text) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.firebaseui-container .firebaseui-idp-button {
  border-radius: 12px !important;
  min-height: 48px !important;
  font-weight: 500 !important;
  width: 100% !important;
  margin-bottom: var(--space-12) !important;
  transition: all 0.2s ease !important;
}

/* Additional specificity for hover states */
.firebaseui-container .firebaseui-idp-password:hover {
  background: linear-gradient(135deg, var(--color-primary-button), var(--color-primary-button-hover)) !important;
  border-color: var(--color-primary-button-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.firebaseui-container .firebaseui-idp-google:hover {
  background-color: var(--color-gray-200) !important;
  border-color: var(--color-border) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Active states for buttons */
.firebaseui-container .firebaseui-idp-password:active,
.firebaseui-container .firebaseui-idp-google:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.firebaseui-idp-button,
.mdl-button.firebaseui-idp-button,
button.firebaseui-idp-button {
  color: #ffffff !important;
}

.firebaseui-idp-button span,
.firebaseui-idp-button .firebaseui-idp-text {
  color: inherit !important;
}

.firebaseui-idp-button[data-provider-id="google.com"],
.firebaseui-idp-google {
  background-color: #ffffff !important;
  border: 1px solid #dadce0 !important;
}

.firebaseui-idp-button[data-provider-id="google.com"] .firebaseui-idp-text,
.firebaseui-idp-google .firebaseui-idp-text,
.firebaseui-idp-text-long {
  color: #3c4043 !important;
}

.firebaseui-idp-icon {
  filter: none !important;
}

@media (prefers-color-scheme: dark) {
  .firebaseui-idp-button,
  .firebaseui-idp-button span {
    color: var(--color-text) !important;
  }
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Text and Close Button Styles */
.btn--text {
  background: transparent;
  border: none;
  color: var(--color-text);
  padding: var(--space-8);
  min-height: auto;
}

.btn--text:hover {
  background: var(--color-secondary);
}

.btn--close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  padding: 0;
  min-height: auto;
}

.btn--close:hover {
  background-color: var(--color-secondary);
  color: var(--color-text);
  transform: scale(1.05);
}

.btn--close:active {
  transform: scale(0.95);
}

/* Subtle text link for low-prominence actions */
.link--subtle {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  padding: 0;
  min-height: auto;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link--subtle:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Auth footer area where low-emphasis actions live */
.auth-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-card-border);
  text-align: center;
}

/* Status Panel */
.status-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  margin-bottom: var(--space-24);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
}

.content-wrapper {
  max-width: var(--container-xl, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem; /* Padding for mobile view */
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 4rem !important; /* Remove mobile padding on desktop */
  }
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.status-grid--dashboard {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

@media (min-width: 768px) {
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.status-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.status-value.good {
  color: var(--color-success);
}

.status-value.warning {
  color: var(--color-warning);
}

/* Admin Status Bar (Compact) */
.admin-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
  padding: var(--space-8) var(--space-12);
  background-color: var(--color-background);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}

.admin-status-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
}

.admin-status-item .status-label {
  font-size: var(--font-size-xs);
  margin-bottom: 0;
  text-transform: uppercase;
}

.admin-status-item .status-value {
  font-size: var(--font-size-base);
}

/* Results Panel */
.results-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  margin-bottom: var(--space-24);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
}

.results-panel h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.results-text {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  max-height: 400px;
  overflow-y: auto;
  font-size: var(--font-size-base);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Completion Panel */
.completion-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin-bottom: var(--space-24);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.completion-card h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.completion-card p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .modal {
    padding: var(--space-16);
    overflow-y: auto;
  }
}

.modal.is-open {
  opacity: 1;
}

.modal-content {
  background-color: var(--color-surface);
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: none;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-standard);
  overflow: hidden;
}

@media (min-width: 768px) {
  .modal-content {
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-card-border);
    transform: scale(0.95);
  }
}

.modal.is-open .modal-content {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal.is-open .modal-content {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) var(--space-20);
  border-bottom: 1px solid var(--color-card-border-inner);
  background: linear-gradient(to bottom, var(--color-surface), rgba(var(--color-brown-600-rgb), 0.02));
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .modal-header {
    padding: var(--space-24) var(--space-32);
  }
}

.modal-header h2 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  color: var(--color-teal-700);
  margin: 0;
}

@media (min-width: 768px) {
  .modal-header h2 {
    font-size: var(--font-size-3xl);
  }
}

.btn-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-text);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  transition: background-color var(--duration-fast);
}

.btn-close:hover {
  background-color: var(--color-secondary);
}

.modal-footer {
  padding: var(--space-16) var(--space-20);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
  display: flex;
  justify-content: stretch;
  gap: var(--space-12);
  flex-shrink: 0;
}

.modal-footer .btn {
  flex: 1;
  min-height: 48px;
}

@media (min-width: 768px) {
  .modal-footer {
    justify-content: flex-end;
  }
  .modal-footer .btn {
    flex: none;
  }
}

/* Card-based table list for mobile */
@media (max-width: 767px) {
  .tables-list {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-12);
    padding: var(--space-16);
    width: 100%;
  }
  
  .table-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-teal-500);
    border-radius: var(--radius-md);
    padding: var(--space-16);
    box-shadow: var(--shadow-sm);
    text-align: left;
  }
  
  .table-card h4 {
    margin-top: 0;
    margin-bottom: var(--space-8);
    font-family: var(--font-family-serif);
    color: var(--color-teal-700);
    font-size: var(--font-size-lg);
  }
  
  .table-card p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
  }
}

/* Timer Controls */
.timer-controls {
  padding: var(--space-24);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: center;
  min-height: 100px;
}

.guest-timer-modal {
  justify-content: center;
  background: rgba(var(--color-brown-600-rgb), 0.01);
}

.guest-timer-modal .timer-label {
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .timer-controls {
    flex-direction: row;
    justify-content: space-between;
  }
}

.timer-config {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.timer-input {
  width: 80px;
  padding: var(--space-8);
}

.timer-display {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--timer-color);
  font-family: monospace;
}

.timer-display.complete {
  color: var(--color-success);
}

.timer-buttons {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* Canvas Container */
.canvas-container {
  flex: 1;
  overflow: hidden;
  padding: var(--space-32);
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(var(--color-brown-600-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-brown-600-rgb), 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Force light theme for the seating map workspace */
  --canvas-bg: #ffffff;
  --table-bg: #ffffff;
  --table-border: var(--color-teal-500);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
}

.tables-canvas {
  position: relative;
  min-height: 400px;
  width: 100%;
  transition: transform 0.3s var(--ease-standard), margin 0.3s var(--ease-standard);
}

/* Draggable Table */
.draggable-table {
  position: absolute;
  background-color: var(--table-bg);
  border: 1px solid var(--color-teal-500);
  border-radius: 12px;
  padding: var(--space-20);
  cursor: move;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 160px;
  max-width: 280px;
}

.draggable-table:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  z-index: 10;
}

.draggable-table.dragging {
  opacity: 0.8;
  z-index: 1000;
  cursor: grabbing;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: none !important;
}

.table-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  color: var(--color-teal-700);
  text-align: center;
}

.table-guests {
  font-size: var(--font-size-md);
  color: var(--color-slate-700);
  line-height: 1.5;
  text-align: center;
}

/* Modal Footer */
.modal-footer {
  padding: var(--space-24) var(--space-32);
  border-top: 1px solid var(--color-card-border-inner);
  display: flex;
  justify-content: center;
  background: rgba(var(--color-brown-600-rgb), 0.02);
}

@media (max-width: 768px) {
  .modal {
    padding: 0;
  }

  .modal-content {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .modal-header {
    padding: var(--space-12) var(--space-16);
  }

  .modal-header h2 {
    font-size: var(--font-size-xl);
  }

  .timer-controls {
    padding: var(--space-12) var(--space-16);
    gap: var(--space-8);
  }

  .timer-display {
    font-size: var(--font-size-2xl);
  }

  .canvas-container {
    padding: var(--space-12);
    overflow: hidden;
  }

  .draggable-table {
    padding: var(--space-12);
    min-width: 120px;
    max-width: 180px;
    border-radius: 8px;
  }

  .table-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-4);
  }

  .table-guests {
    font-size: var(--font-size-sm);
  }

  .modal-footer {
    padding: var(--space-12) var(--space-16);
  }

  .btn--lg {
    padding: var(--space-12) var(--space-24);
    font-size: var(--font-size-base);
  }
}

/* Guest View Specific Styles */
.app-container.guest-view {
  padding-top: 1rem;
  padding-bottom: 5rem;
  background-color: #fafaf5;
  min-height: 100vh;
}

/* Ensure sections within guest view are centered and contained */
.app-container.guest-view > section {
  max-width: var(--container-xl, 1280px);
  margin: 0 auto var(--space-24) auto;
  padding: 2rem 1.5rem;
  background-color: var(--color-cream-50);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-24);
}

.app-container.guest-view > .ticket-stub-section {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-top: 0;
}

/* --- Live Event View Redesign --- */

/* Live Event Title */
.live-event-title-section {
  text-align: center;
  padding: 1rem 0 0 0;
  margin-bottom: 2rem;
}

.live-event-title {
  font-family: var(--font-family-serif);
  font-size: 2.5rem;
  color: #2e8f58;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* --- Event Card Component --- */
.event-card {
  background-color: var(--surface-container-low, #f4f4ef);
  border-radius: 1rem; /* Corresponds to rounded-xl */
  padding: 2rem; /* Corresponds to p-8 */
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Corresponds to space-y-8 */
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
}

.event-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.event-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* Corresponds to space-y-1 */
}

.event-card__status-badge {
  color: var(--color-white);
  font-size: 10px;
  font-family: var(--font-family-mono);
  padding: 0.25rem 0.75rem; /* Corresponds to py-1 px-3 */
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Corresponds to tracking-widest */
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

.event-card__status-badge--accent-orange {
  background-color: var(--color-accent-warm, #ff7a59);
}

.event-card__title {
  font-family: var(--font-family-serif);
  font-size: 1.5rem; /* Corresponds to text-2xl */
  color: var(--primary, #19502a);
  font-weight: 600;
  margin: 0;
}

.event-card__topic {
  text-align: right;
}

.event-card__topic-label {
  font-family: var(--font-family-mono);
  font-size: 0.75rem; /* Corresponds to text-xs */
  color: var(--color-text-secondary, #454747);
}

.event-card__question {
  background-color: var(--surface-container-lowest, #ffffff);
  padding: 1.5rem; /* Corresponds to p-6 */
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--primary, #19502a);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.event-card__question-text {
  font-family: var(--font-family-serif);
  font-style: italic;
  font-size: 1.125rem; /* Corresponds to text-lg */
  color: var(--on-surface, #1a1c19);
  line-height: 1.625; /* Corresponds to leading-relaxed */
  margin: 0;
}

.event-card__progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Corresponds to space-y-2 */
}

.event-card__progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary, #454747);
}

.event-card__progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.event-card__progress-fill {
  height: 100%;
  background-color: var(--primary, #19502a);
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

/* Find Your Station Section */
.find-station-section {
  max-width: var(--container-md, 768px);
  margin: 0 auto 2rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.find-station-title {
  font-family: var(--font-family-serif);
  font-size: 2rem;
  color: #2e8f58;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.find-station-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.find-station-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
  margin: 0 auto;
}

.find-station-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  text-align: center;
  background-color: var(--color-surface);
  transition: border-color 0.2s ease;
}

.find-station-input:focus {
  outline: none;
  border-color: #2e8f58;
  box-shadow: 0 0 0 2px rgba(25, 80, 42, 0.1);
}

.find-station-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--btn-primary-shadow);
}

.find-station-btn:hover {
  background: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-1px);
}

.find-station-btn:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

@media (min-width: 640px) {
  .find-station-input-group {
    flex-direction: row;
  }
  
  .find-station-input {
    flex: 1;
    text-align: left;
  }
  
  .find-station-btn {
    width: auto;
  }
}

/* STATUS BAR */

/* STATUS BAR */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,.03);
  font-size: 14px;
  font-weight: 500;
  color: #666;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 0;
  border-radius: 8px;
  margin: 10px 0 20px 0;
}

.status-separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* FIND TABLE HERO */
.find-table-hero {
  padding: 0;
  background: transparent;
  margin-bottom: 24px;
}

.hero-card {
  padding: 32px 20px !important;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: white;
  border-radius: 12px;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--color-text);
}

.hero-input {
  height: 56px !important;
  font-size: 18px !important;
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  margin-bottom: 12px !important;
  width: 100%;
}

.hero-input:focus {
    border-color: var(--color-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}



/* QUESTION CARD REDESIGN */
.question-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.question-text {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
    font-weight: 400 !important;
    margin-bottom: 24px !important;
}

.questions-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.section-title-sm {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
    margin: 0;
}

.questions-progress {
    font-size: 14px;
    color: #666;
}

.question-hint {
  background: #E8F5E9 !important;
  color: #1B4332 !important; /* Darker green for contrast */
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  margin-bottom: 16px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation Improvements (Event Card Inspired) */
.questions-nav .btn {
    min-height: 44px;
    min-width: 176px;
    padding: 0.56rem 1.05rem;
    border-radius: 999px;
    font-family: "Plus Jakarta Sans", var(--font-family-base);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, transform 320ms ease;
}

.questions-nav .btn--ghost {
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(65, 73, 65, 0.12);
    color: #3f4a41;
}

.questions-nav .btn--ghost:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(25, 80, 42, 0.24);
    transform: translateY(-1px);
}

.questions-nav .btn--ghost:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.questions-nav .btn--primary {
    background-image: linear-gradient(120deg, #19502a 0%, #336940 100%);
    border: 1px solid rgba(25, 80, 42, 0.28);
    color: #fafaf5;
    box-shadow: 0 8px 20px rgba(26, 28, 25, 0.08);
}

.questions-nav .btn--primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(26, 28, 25, 0.1);
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: var(--color-border);
    border-radius: 4px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary, #19502a);
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Integrated Question Timer & Nav */
.nav-center-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
}

.question-timer-pill {
  font-family: "Plus Jakarta Sans", var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #7b4b36;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0.36rem 0.78rem;
  background: linear-gradient(135deg, rgba(250, 250, 245, 0.9), rgba(244, 244, 239, 0.92));
  border: 1px solid rgba(224, 122, 95, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(26, 28, 25, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ADMIN CONTROLS */
.admin-controls {
   padding: 20px;
   background: rgba(0,0,0,.02);
   border-top: 1px solid rgba(0,0,0,.06);
   margin-top: 40px;
   border-radius: 8px;
   display: grid;
   gap: 12px;
}

.admin-controls-header {
   font-size: 12px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: #999;
   margin-bottom: 4px;
   text-align: center;
}

/* Replaced Timer Section Styles */
.guest-timer-section {
  display: none; /* Hidden by default now */
}

.timer-display-large {
  font-size: 64px;
  font-weight: var(--font-weight-bold);
  color: var(--timer-color);
  font-family: monospace;
  margin: var(--space-8) 0;
}

.timer-display-large.complete {
  color: var(--color-success);
  font-size: var(--font-size-3xl);
  line-height: 1.3;
}

.timer-display-large.complete small {
  display: block;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
  margin-top: var(--space-8);
}

/* Style for the "Event has not started" message */
.timer-display-large.event-status-message {
  font-size: var(--font-size-xl);
  /* e.g., 18px */
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  font-family: var(--font-family-base);
  /* Use standard font, not monospace */
  margin: var(--space-16) 0;
  /* Reduce margin */
  line-height: var(--line-height-normal);
}

#questionsSection {
  margin-bottom: var(--space-32);
  text-align: center;
}

.questions-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-20);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-card-border-inner);
}

.section-title-sm {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-teal-700);
  margin: 0;
}

.questions-placeholder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 160px;
  text-align: left;
  color: var(--color-text);
  margin-bottom: var(--space-20);
}

/* Question Cards */
.question-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  margin-bottom: var(--space-20);
  width: 100%;
}

.question-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-20);
  gap: var(--space-12);
}

.question-metadata-left {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.question-metadata-right {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.question-text {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.question-hint {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-card-border-inner);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}

.badge--type {
  font-weight: var(--font-weight-bold);
  padding: 0.2rem 0.5rem;
}

.badge--intro { background-color: var(--color-primary); color: var(--color-white); }
.badge--prompt { background-color: var(--color-primary); color: var(--color-white); }
.badge--instruction { background-color: var(--color-warning); color: var(--color-white); }
.badge--wildcard { background-color: var(--color-brand-coral); color: var(--color-white); }
.badge--outro { background-color: var(--color-slate-500); color: var(--color-white); }

/* Questions Navigation (Mobile Flow) */
@media (max-width: 767px) {
  .questions-nav {
    position: static;
    padding: var(--space-16); /* Increased padding for card-like feel */
    background: linear-gradient(180deg, rgba(250, 250, 245, 0.84), rgba(244, 244, 239, 0.84));
    border-radius: calc(var(--radius-lg) + 4px);
    border: none;
    box-shadow: 0 12px 32px rgba(26, 28, 25, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-12);
    border-top: none;
    border-bottom: none; /* Removed border-bottom */
    margin-bottom: var(--space-16);
  }
  
  .questions-nav .btn {
    width: auto;
    min-height: 44px;
    padding: 0.75rem 1rem; /* Slightly larger padding on mobile */
    font-size: 0.875rem;
    border-radius: 999px;
  }
  
  .app-container.guest-view {
    padding-bottom: var(--space-32); /* Reset padding */
  }
}

.progress-dots {
  display: flex;
  gap: var(--space-8);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  transition: all 0.3s ease;
}

.progress-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
}

.progress-dot.completed {
  background-color: var(--color-primary);
  opacity: 0.5;
}

/* Ticket Stub Section (Editorial Redesign) */
.ticket-stub-section {
    padding-bottom: var(--space-32);
    animation: fadeIn 0.6s ease-out;
}

.stub-welcome {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-3xl);
    color: var(--color-charcoal-700);
    margin-bottom: var(--space-24);
    text-align: center;
}

.event-hero-header {
    margin-bottom: 2rem;
}

.bookmark-chip {
    background: #336940; /* primary_container */
    color: var(--color-white);
    padding: 0.25rem 1rem;
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    display: inline-block;
    border-radius: 0 4px 4px 0; /* Asymmetrical bookmark style */
}

.event-hero-title {
    font-size: 3rem; /* text-5xl */
    font-family: var(--font-family-serif);
    font-weight: var(--font-weight-bold);
    color: var(--primary, #19502a);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
    margin: 0;
}

@media (min-width: 768px) {
    .event-hero-title {
        font-size: 3.75rem; /* text-6xl */
    }
}

.event-hero-card {
    background-color: var(--surface-container-lowest, #ffffff);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.5s ease;
    /* Soft Paper Lift */
    box-shadow: var(--shadow-sm); 
}

.event-hero-card:hover {
    opacity: 0.95;
    box-shadow: var(--shadow-md); 
}

.event-hero-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

.event-hero-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.event-hero-icon {
    color: var(--tertiary, #ff905b);
    margin-top: 0.25rem;
}

.event-hero-detail-content {
    display: flex;
    flex-direction: column;
}

.event-hero-label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-family: var(--font-family-base); /* font-label */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.event-hero-value {
    font-size: var(--font-size-xl);
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    color: var(--on-surface, #1a1c19);
    margin: 0;
}

.event-hero-location-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.event-hero-location-link:hover .event-hero-value {
    color: var(--tertiary, #ff905b);
}

.event-hero-message {
    padding: var(--space-16);
    background: rgba(94, 82, 64, 0.05); /* Soft background */
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--tertiary, #ff905b);
    margin: 1.5rem 0;
}

.event-hero-message p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    font-style: italic;
}

.event-hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary, #19502a);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    transition: background-color 0.2s;
    text-decoration: none;
    border: none;
}

.event-hero-action-btn:hover {
    background-color: #336940; /* primary_container */
    color: var(--color-white);
}

.event-hero-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary, #19502a);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.event-hero-action-link:hover {
    color: var(--tertiary, #ff905b);
}

.event-hero-action-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--tertiary, #ff905b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.event-hero-action-link:hover::after {
    transform: scaleX(1);
}

/* Question Card - The Primary Focus */
.question-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-24);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: cardFadeIn 0.4s ease-out forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-card.exit {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.question-type-badge {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.question-text {
  font-size: var(--font-size-2xl);
  line-height: 1.4;
  color: var(--color-text);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  text-align: center;
}

.question-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-weight-bold);
  transition: all 0.2s ease;
  word-break: break-word;
}

.question-link:hover {
  color: var(--color-primary-hover);
  text-decoration-thickness: 2px;
}

.question-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.facilitator-helper {
  background-color: var(--color-surface);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-16);
  text-align: center;
  border: 1px dashed var(--color-border-secondary);
  box-shadow: var(--shadow-sm-inset);
}

.facilitator-helper p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  font-style: italic;
}

/* Type-specific Styles */
.question-card.intro,
.question-card.prompt,
.question-card.instruction,
.question-card.wildcard,
.question-card.outro {
  border: none;
  box-shadow: inset 0 0 0 1px rgba(26, 28, 25, 0.08);
}

.question-card.prompt {
  background:
    linear-gradient(140deg, var(--surface-container-low, #f4f4ef), rgba(var(--color-slate-500-rgb), 0.08));
}
.question-card.prompt .question-type-badge {
  border: 1px solid rgba(var(--color-slate-500-rgb), 0.16);
  background-color: rgba(var(--color-slate-500-rgb), 0.08);
  color: rgba(var(--color-slate-500-rgb), 0.95);
}

.question-card.intro {
  background:
    linear-gradient(140deg, var(--surface-container-low, #f4f4ef), rgba(var(--color-primary-rgb), 0.09));
}
.question-card.intro .question-type-badge {
  border: 1px solid rgba(var(--color-primary-rgb), 0.18);
  background-color: rgba(var(--color-primary-rgb), 0.09);
  color: var(--color-primary);
}

.question-card.instruction {
  background:
    linear-gradient(140deg, var(--surface-container-low, #f4f4ef), rgba(var(--color-teal-500-rgb), 0.08));
}
.question-card.instruction .question-type-badge {
  border: 1px solid rgba(var(--color-teal-500-rgb), 0.18);
  background-color: rgba(var(--color-teal-500-rgb), 0.09);
  color: var(--primary);
}
.question-card.instruction .question-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

.question-card.wildcard {
  background:
    linear-gradient(140deg, var(--surface-container-low, #f4f4ef), rgba(var(--color-orange-500-rgb), 0.09));
}
.question-card.wildcard .question-type-badge {
  border: 1px solid rgba(var(--color-orange-500-rgb), 0.2);
  background-color: rgba(var(--color-orange-500-rgb), 0.1);
  color: rgba(var(--color-orange-500-rgb), 0.95);
}

.question-card.outro {
  background:
    linear-gradient(140deg, var(--surface-container-low, #f4f4ef), rgba(var(--color-brown-600-rgb), 0.09));
}
.question-card.outro .question-type-badge {
  border: 1px solid rgba(var(--color-brown-600-rgb), 0.2);
  background-color: rgba(var(--color-brown-600-rgb), 0.1);
  color: rgba(var(--color-brown-600-rgb), 0.95);
}

.question-card.group-task {
  border: 2px solid var(--color-info);
  background-color: rgba(var(--color-info-rgb), 0.02);
}
.question-card.group-task .question-type-badge {
  background-color: var(--color-info);
  color: white;
}

/* Navigation & Progress */
.action-panel {
  padding: var(--space-16) 0;
  margin-top: var(--space-8);
}

.action-panel .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 52px;
  font-weight: var(--font-weight-semibold);
}

/* --- Questions Navigation (Event Card Inspired) --- */
.questions-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-20);
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(250, 250, 245, 0.82), rgba(244, 244, 239, 0.86));
  border-radius: 18px;
  border: none;
  box-shadow: 0 14px 34px rgba(26, 28, 25, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#guestQuestionsControls.questions-controls-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0 0 0.35rem;
  padding: 0.56rem 0.62rem 0.42rem;
  background: linear-gradient(180deg, rgba(250, 250, 245, 0.78), rgba(244, 244, 239, 0.84));
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(26, 28, 25, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#guestQuestionsControls #questionTimer.question-timer-pill {
  margin: 0 auto;
  color: #e07a5f;
}

#guestQuestionsControls #guestQuestionsNav.questions-nav {
  margin: 0;
  padding: 0.62rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
}

#guestQuestionsControls #guestQuestionsNav.questions-nav .btn {
  width: auto;
  min-width: 0;
  justify-self: center;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
  box-shadow: 0 10px 22px rgba(26, 28, 25, 0.12);
}

#guestQuestionsControls #guestQuestionsNav.questions-nav .nav-center-stack {
  width: 100%;
  margin: 0 0.35rem;
}

#guestQuestionsControls #prevQuestionBtn {
  transform: translateX(12px);
}

#guestQuestionsControls #prevQuestionBtn.btn--ghost {
  background: linear-gradient(180deg, #fafaf5 0%, #f4f4ef 100%);
  border: 1px solid rgba(65, 73, 65, 0.16);
  color: #2f3a33;
}

#guestQuestionsControls #prevQuestionBtn.btn--ghost:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #f6f5ef 100%);
  border-color: rgba(25, 80, 42, 0.24);
  box-shadow: 0 12px 26px rgba(26, 28, 25, 0.16);
}

#guestQuestionsControls #nextQuestionBtn.btn--primary {
  background-image: linear-gradient(120deg, #19502a 0%, #336940 100%);
  border: 1px solid rgba(25, 80, 42, 0.28);
  color: #fafaf5;
}

#guestQuestionsControls #nextQuestionBtn.btn--primary:hover {
  filter: brightness(1.05);
  border-color: rgba(25, 80, 42, 0.34);
  box-shadow: 0 12px 26px rgba(26, 28, 25, 0.16);
}

#guestQuestionsPlaceholder {
  margin-top: 0;
}

#questionTimer.question-timer-pill {
  margin-bottom: 0.8rem;
}

#guestQuestionsNav.questions-nav {
  margin-top: 0;
}

@media (max-width: 767px) {
  #guestQuestionsControls.questions-controls-cluster {
    padding: 0.52rem;
    border-radius: 16px;
  }

  #guestQuestionsControls #guestQuestionsNav.questions-nav {
    padding: 0.52rem;
    border-radius: 12px;
  }

  .questions-nav .btn {
    min-width: 148px;
    padding: 0.62rem 0.8rem;
  }
}

.progress-dots {
  display: flex;
  gap: var(--space-8);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  transition: all 0.3s ease;
}

/* Feedback & Testimonial UI */
.rating-stars {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.rating-stars .btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.rating-stars .btn.active {
  background-color: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-12) 0;
}

/* Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-gray-300);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Admin Tabs */
.admin-tabs-container {
  margin-bottom: var(--space-20);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-12);
}

.admin-tabs {
  display: flex;
  gap: var(--space-12);
}

.admin-tabs .btn {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
}

.admin-tabs .btn.active {
  background-color: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
}

/* Feedback List Admin */
.feedback-list-admin {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.feedback-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.feedback-item strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  color: var(--color-text-secondary);
  padding: var(--space-32) 0;
  font-style: italic;
}

.mb-8 { margin-bottom: var(--space-8); }
.mt-8 { margin-top: var(--space-8); }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

.progress-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

.progress-dot.completed {
  background-color: var(--color-primary-light);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .question-text {
    font-size: var(--font-size-xl);
  }
  
  .question-card {
    padding: var(--space-24) var(--space-16);
  }
}

.no-questions {
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Upcoming Preview */
.upcoming-questions {
  margin-top: var(--space-24);
  padding: var(--space-16);
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.7;
}

.upcoming-label {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
}

.upcoming-preview {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin Table & Editor */
.table-responsive {
  overflow-x: auto;
  margin: 0 -var(--space-16);
  padding: 0 var(--space-16);
}

@media (min-width: 768px) {
  .table-responsive {
    margin: 0 -var(--space-24);
    padding: 0 var(--space-24);
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  margin-top: var(--space-16);
}

.admin-table th {
  text-align: left;
  padding: var(--space-12) var(--space-8);
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: rgba(var(--color-teal-500-rgb), 0.02);
}

.admin-table input,
.admin-table select {
  width: 100%;
  padding: var(--space-12); /* Increased for touch */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base); /* Larger font for mobile */
  background-color: var(--color-surface);
  min-height: 44px; /* Touch target */
}

.admin-table textarea {
  width: 100%;
  min-height: 100px; /* Increased default height */
  padding: var(--space-12); /* Increased for touch */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  resize: vertical;
  background-color: var(--color-surface);
  line-height: 1.5;
}

.admin-table .btn-sm {
  padding: var(--space-8) var(--space-16);
  font-size: var(--font-size-sm);
  min-height: 44px;
}

/* Mobile Card Layout for Admin Table */
@media (max-width: 768px) {
  .admin-table, 
  .admin-table thead, 
  .admin-table tbody, 
  .admin-table th, 
  .admin-table td, 
  .admin-table tr {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none; /* Hide headers on mobile */
  }

  .admin-table tr {
    margin-bottom: var(--space-16);
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .admin-table td {
    padding: 0;
    margin-bottom: 16px;
    border-bottom: none;
    position: relative;
  }

  /* Add labels before inputs on mobile */
  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
  }

  .admin-table textarea {
    min-height: 150px; /* Requested height */
    font-size: 16px; /* Prevents iOS zoom */
    padding: 12px;
  }

  .admin-table input,
  .admin-table select {
    height: 44px; /* Touch-friendly */
    font-size: 16px; /* Prevents iOS zoom */
    padding: 10px 12px;
  }

  /* Specific handling for Checkbox alignment on mobile */
  .admin-table td[data-label="Enabled"] {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 20px;
  }

  .admin-table td[data-label="Enabled"]::before {
    margin-bottom: 0;
    margin-left: 10px;
    font-size: 14px; /* Label size for checkbox */
    text-transform: none; /* More natural for checkbox label */
    letter-spacing: normal;
  }

  .admin-table .edit-enabled {
    width: 24px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
    transform: scale(1); /* Reset scaling */
  }

  .save-question-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    border-radius: 8px;
  }
}

/* Unsaved state indicator */
.admin-table .is-dirty {
  border-color: var(--color-warning) !important;
  box-shadow: 0 0 0 1px var(--color-warning);
}

/* Finder Card Styles */
.finder-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-24);
}

.finder-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .finder-stack {
    flex-direction: row;
    align-items: center;
  }
  
  .finder-stack .form-control {
    flex: 1;
  }
}

.error-message {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-8);
  font-weight: var(--font-weight-medium);
}

.table-result {
  margin-top: var(--space-16);
  padding: var(--space-16);
  background-color: var(--color-mint-light);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-teal-300);
  text-align: center;
  font-weight: var(--font-weight-semibold);
  color: var(--color-teal-700);
}

/* Make logout buttons more clickable */
.dropdown-item.text-danger {
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.dropdown-item.text-danger:hover {
  background-color: rgba(var(--color-error-rgb), 0.1);
  cursor: pointer;
}

.btn--hero:disabled {
  background-color: #E5E7EB !important;
  border: 2px dashed #D1D5DB !important;
  color: #6B7280 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.form-control:disabled {
  background-color: var(--color-bg-alt);
  cursor: not-allowed;
}

.finder-input-group .form-control {
  flex: 1;
}

.finder-input-group .btn {
  flex-shrink: 0;
}

.table-result {
  margin-top: var(--space-16);
  padding: var(--space-16);
  background-color: var(--color-bg-3);
  border: 2px solid var(--color-success);
  border-radius: var(--radius-base);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-align: center;
}

.table-result .highlight {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
  display: block;
  margin-top: var(--space-8);
}

.draggable-table.guest-mode {
  cursor: default;
}

.draggable-table.highlighted {
  border-color: var(--color-success);
  border-width: 3px;
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .header-content>div:first-child {
    padding-left: 0;
    /* Remove the padding on mobile */
  }

  /* The rest of your mobile styles... */

  .app-header h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1.125rem;
  }

  .header-content .btn {
    padding: var(--space-8) var(--space-12);
    /* Smaller button on mobile */
  }

  .timer-display-large {
    font-size: 48px;
  }

  .finder-input-group {
    flex-direction: column;
  }

  .modal {
    padding: 0;
  }

  .modal-content {
    max-height: 100vh;
    border-radius: 0;
  }

  .draggable-table {
    max-width: 180px;
  }
}

/* Welcome View Styles */
.welcome-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: var(--color-cream-50);
  min-height: 100vh;
  position: relative;
}

.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.4rem 1.5rem;
  flex-wrap: nowrap; /* Allow standard flex behavior, removed !important */
  max-width: 100%;
  margin: 0 auto;
}

/* Smart Header Functionality */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-cream-50);
  transition: transform 0.3s ease-in-out, padding 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  display: none; /* Hidden by default, shown via body[data-current-view] */
}

.site-header.hide {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  background-color: var(--color-cream-50);
  padding: 0.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Visibility based on current view */
body[data-current-view="welcome"] .site-header,
body[data-current-view="about"] .site-header,
body[data-current-view="expect"] .site-header,
body[data-current-view="getinvolved"] .site-header,
body[data-current-view="admin"] .site-header,
body[data-current-view="guest"] .site-header {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

html {
  scroll-padding-top: 4rem;
}

@media (max-width: 768px) {
  .welcome-header {
    padding: 0.4rem 1rem;
    margin-bottom: 0rem;
  }
}

.mobile-nav-toggle {
  display: flex;
  background: transparent;
  border: none;
  color: var(--color-brand-charcoal);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1199px) {
  .welcome-header {
    padding: 0.4rem 0.75rem; /* Reduced horizontal padding on mobile */
    gap: 0.5rem; /* Reduced gap on mobile */
  }
}

@media (min-width: 1200px) {
  .welcome-header {
    padding: 0.5rem 2rem;
  }
  
  .welcome-header.is-scrolled {
    padding: 0.3rem 2rem;
  }
  
  .mobile-nav-toggle {
    display: none;
  }
}

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  top: 0;
  right: -240px; /* Initially hidden off-screen */
  width: 240px; /* Narrow width for "half pull out" feel */
  height: 100vh;
  background-color: var(--color-cream-50);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
  .sidebar-nav {
    display: none; /* Hide sidebar completely on desktop */
  }
}

.sidebar-nav.is-active {
  right: 0;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  padding: 1rem 2.5rem;
  gap: 1.5rem;
}

.sidebar-link {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  color: var(--color-brand-charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  width: fit-content;
}

.sidebar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-forest);
  transition: width 0.3s ease;
}

.sidebar-link:hover {
  color: var(--color-brand-forest);
}

.sidebar-link:hover::after {
  width: 100%;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-active {
  display: block;
  opacity: 1;
}

@media (min-width: 1200px) {
  .sidebar-overlay {
    display: none !important;
  }
}

.close-sidebar {
  color: var(--color-brand-charcoal);
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.close-sidebar:hover {
  transform: rotate(90deg);
  color: var(--color-brand-forest);
}

.close-sidebar svg {
  width: 32px;
  height: 32px;
}

.welcome-nav {
  display: none !important; /* Hidden on mobile by default */
  margin-top: 4px; /* Lower slightly to align with logo baseline */
}

/* Home link visibility handled by active state underline logic */

/* Hide Live Event link when on guest view */
[data-current-view="guest"] .welcome-nav a[href="#event"] {
  display: none;
}

@media (min-width: 1200px) {
  .welcome-nav {
    display: flex !important;
    gap: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
  }
}

.nav-link {
  font-family: var(--font-family-serif);
  font-size: 1.125rem;
  color: var(--color-brand-charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
  padding: 0;               /* rely on header padding */
}

.nav-link:hover {
  opacity: 0.7;
}

/* Active Link Underline */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-charcoal);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

[data-current-view="welcome"] #navHomeLink::after,
[data-current-view="about"] #navAboutLink::after,
[data-current-view="expect"] #navFaqLink::after,
[data-current-view="getinvolved"] #navGetInvolvedLink::after {
  transform: scaleX(1);
}

.logo-area {
  position: relative;
  z-index: 2; /* Ensure logo is above nav container */
  flex: 0 1 30%; /* Reduced width to prevent overlapping center nav */
  min-width: 0; /* Enable flex shrink */
}

.logo-area h1 {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-brand-charcoal);
  margin: 0;
  white-space: nowrap;
}

.welcome-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Always right-aligned */
  gap: 0.75rem;
  position: relative;
  z-index: 2; /* Ensure actions are above nav container */
  flex: 0 0 auto;
}

.login-btn-top-right {
  min-height: auto;
  font-size: 0.875rem;
  padding: 0.3rem 0.6rem;
  background-color: transparent !important;
  color: var(--color-slate-900) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
  border: none;
}

.login-btn-top-right:hover {
  color: var(--color-teal-600) !important;
  text-decoration: underline;
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.btn--close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  padding: 0.5rem;
  line-height: 1;
  z-index: 10;
}

.btn--close:hover {
  color: var(--color-text);
  background: var(--color-background-subtle);
  border-radius: 50%;
}

/* Utility Classes */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

/* Events Grid */
.events-section {
  text-align: left;
  width: 100%;
  margin: 0 auto;
  padding-block: 1rem;
  background: var(--color-background);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .events-section {
    padding-block: 1.5rem;
  }
}

.events-section h3 {
  font-family: var(--font-family-serif);
  font-size: 2rem; /* Reduced from 2.5rem */
  margin-bottom: 2rem; /* Reduced from 3rem */
  color: var(--color-brand-charcoal);
  font-weight: 600; /* Adjusted from 700 to 600 */
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem; /* Reduced from 1.5rem */
  margin: 0 auto;
  width: 100%;
}

/* Removed media query that forced 2 columns - all cards now share the 560px column */

.event-card {
  background: var(--color-surface); 
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 2rem; /* Tier 2 padding as base */
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.625rem; /* Slightly reduced gap from 0.75rem */
  position: relative;
  box-shadow: var(--shadow-tier-2);
}



@media (min-width: 640px) {
  .event-card--hero {
    padding: 4rem;
  }
}

.event-card--hero::before {
  display: none;
}

.card-top-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.btn--edit-icon {
  position: relative; /* Changed from absolute since it's now in a flex container */
  top: auto;
  right: auto;
  background: rgba(0, 0, 0, 0.03); /* Subtle background for better touch target */
  border: none;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  color: var(--color-slate-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn--edit-icon:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-primary);
}

.btn--edit-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.menu-icon {
  width: 18px;
  height: 18px;
  margin-right: var(--space-12);
  stroke-width: 2;
  flex-shrink: 0;
  stroke: var(--color-primary-button);
}

@media (min-width: 640px) {
  .event-card {
    padding: 1.5rem;
    gap: 1rem;
  }
  .event-card h4 {
    font-size: 1.5rem;
    padding-right: 0;
  }
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--color-primary);
}

.event-card-header {
   display: flex;
   justify-content: flex-start;
   align-items: center;
   gap: var(--space-8);
   margin-bottom: 0.5rem;
 }

.event-date-badge {
    display: inline-block;
    font-family: var(--font-family-mono);
  font-size: 1rem; /* Matched to location paragraph size */
  font-weight: 700; 
  color: var(--color-slate-900); 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.event-countdown-timer {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-mono);
  font-size: 0.8rem; /* Increased from 0.65rem */
  font-weight: 700;
  color: var(--color-sunset-terracotta);
  background: rgb(145 173 151 / 34%);
  padding: 6px 8px;
  border-radius: 999px;
  vertical-align: middle;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 8px;
}

.event-card h4 {
  font-size: 1.25rem; /* Increased from 1.125rem */
  font-weight: 700; /* Reduced from 800 for a more refined look */
  margin-bottom: 0.5rem;
  color: var(--color-teal-700);
  line-height: 1.2;
  padding-right: 4.5rem;
  display: block;
}

.event-card .event-time {
  color: var(--color-charcoal-800);
  font-size: 1.125rem; /* Increased from 0.875rem to match Date prominence */
  margin-bottom: 0.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.event-card .event-location {
  color: var(--color-slate-500); /* Slightly softer than time for hierarchy */
  font-size: 1rem; /* Increased from 0.875rem */
  margin-bottom: 0.125rem;
  line-height: 1.4;
  font-weight: 500;
}

/* Watercolor Map Link Styling */
.event-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-brand-charcoal);
  font-family: var(--font-family-serif);
  font-weight: 600;
  font-size: 0.875rem; /* Slightly smaller for mobile */
  transition: color 0.2s ease;
  background: rgba(255, 255, 255, 0.6); /* Semi-transparent background for readability */
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.event-map-link span {
  position: relative;
  padding-bottom: 2px;
}

/* Hand-Drawn Underline Effect */
.event-map-link span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* Adjusted for padding */
  width: 100%;
  height: 4px; /* Slightly thinner for better ratio */
  background-image: url("data:image/svg+xml,%3Csvg width=%27100%27 height=%276%27 viewBox=%270 0 100 6%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M2 3Q15 0 25 3T50 3T75 3T98 3%27 stroke=%27%23FF7F50%27 stroke-width=%272%27 stroke-linecap=%27round%27 fill=%27none%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0;
  transform: scaleX(0.8);
  transform-origin: left center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-map-link:hover span::after {
  opacity: 1;
  transform: scaleX(1);
}

.event-map-link:hover {
  color: var(--color-black);
}

.map-icon {
  flex-shrink: 0;
}

.event-card p {
  color: var(--color-charcoal-700);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.event-card .event-link {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.event-card .btn {
  width: auto;
  min-height: 44px;
  font-weight: 500;
}
/* Make register button visually lighter when small */
.event-card .btn--sm {
  min-height: 44px;
}

@media (min-width: 640px) {
  .event-card .btn {
    width: auto;
  }
  .event-card .btn--sm {
    min-height: 36px;
  }
  .event-card .btn--primary.btn--sm {
    box-shadow: var(--shadow-sm);
  }
}

.event-card.is-clickable {
  cursor: pointer;
}

/* Tier 3: Event List Styling */
.event-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.event-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  min-height: 44px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-tier-3);
}

.event-list-item:hover,
.event-list-item:active {
  background-color: #FAFAF9;
  padding-left: 1.25rem;
}

.event-list-item-content {
  flex: 1;
}

.event-list-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.event-list-item-title {
  font-family: var(--font-family-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.event-list-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.event-list-item-actions .chevron {
  font-size: 1.25rem;
  color: var(--color-primary);
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.event-list-item:hover .chevron {
  transform: translateX(4px);
  opacity: 1;
}

.event-card.is-clickable:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Admin Event List */
.admin-events-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Hero Group Card */
.hero-group-card {
  background-color: var(--hero-bg-color);
  background-image: var(--hero-background-image);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 0;
  animation: fadeIn 0.6s ease-in-out;
  position: relative;
  z-index: 1;
}

#welcomeView .hero-group-card {
  /* Ensure these styles are applied regardless of ID selector specificity */
  background-color: var(--hero-bg-color);
  background-image: var(--hero-background-image);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-group-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05); /* Very subtle wash */
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 768px) {
  #welcomeView .hero-group-card {
    background-size: 100% auto;
    background-position: center top;
  }
}

@media (min-width: 1080px) {
  #welcomeView .hero-group-card {
    background-size: cover;
    background-position: center center;
  }
}

/* Hero Section */
.welcome-hero {
  padding-block: 0 1rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.hero-content-card {
  max-width: 35rem; /* Standardized to 560px */
  width: 100%;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 0.8s var(--ease-standard) forwards;
}

/* Hero CTA Area */
.hero-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* Reduced gap */
  margin-top: 2rem;
  width: 100%;
}

.hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  width: auto;
  min-width: 240px;
}

.hero-event-highlight {
  margin-bottom: 0; /* Removed margin so it sits right above */
  text-align: center;
}

.hero-event-line-1 {
  font-size: 1.25rem; /* ~16pt */
  font-weight: 700;
  color: var(--color-charcoal-700);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.hero-event-line-2 {
  font-size: 1rem; /* ~14pt */
  color: var(--color-slate-500);
  font-weight: 400;
  line-height: 1.4;
}

.hero-event-info-text {
  text-align: center;
  color: var(--color-slate-700);
}

.next-event-line {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-meta-line {
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

@media (max-width: 640px) {
  .hero-btn {
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .welcome-hero {
    padding-bottom: 3rem;
  }
}

.hero-cta-group {
  display: none; /* Removed in favor of hero-event-card */
}

.fast-path-link {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.fast-path-link:hover {
  color: var(--color-primary);
}

/* How It Works Section */
.how-it-works-section {
  padding-block: 8rem; /* Increased padding for premium negative space */
  background-color: transparent; /* Allow hero-group-card background to show through */
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

/* Removed media queries for multi-column grids to maintain consistent card widths */

.how-it-works-item {
  position: relative;
  padding: 1.5rem;
  padding-left: calc(1.5rem + 56px + 1.25rem); /* Original padding + icon width + gap */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  box-shadow: var(--shadow-tier-2);
}

.how-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-500);
}

.how-icon {
  position: absolute;
  left: 1.5rem; /* Original padding */
  top: 1.5rem;  /* Original padding */
  width: 56px;
  height: 56px;
  background-color: #F0F7F4; /* Light mint */
  color: var(--color-brand-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure icon is above other content if needed */
}

.how-svg {
  width: 28px;
  height: 28px;
}

.how-content {
  width: 100%;
  text-align: left;
}

.how-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--color-charcoal-700);
  font-weight: 700;
}

.how-content p {
  font-size: 0.9375rem;
  color: var(--color-slate-500);
  margin: 0;
  line-height: 1.4;
}

/* Logistics FAQ */
.logistics-faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.logistics-details {
  background: var(--color-cream-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.logistics-summary {
  list-style: none;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-slate-700);
  user-select: none;
}

.logistics-summary::-webkit-details-marker {
  display: none;
}

.details-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.logistics-details[open] .details-arrow {
  transform: rotate(180deg);
}

.logistics-content {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.75rem;
}

.logistics-item {
  font-size: 0.9375rem;
  color: var(--color-slate-600);
  line-height: 1.4;
}

.logistics-item strong {
  color: var(--color-slate-900);
}

.how-closing {
  margin-top: 2rem;
  text-align: center;
  font-style: italic;
  color: var(--color-slate-500);
  font-size: 0.875rem;
}

/* Philosophy Section */

.hero-tagline {
  display: block;
  font-size: 0.6875rem; /* ~11px */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-500);
  opacity: 0.8;
  margin-bottom: 0.25rem; /* Reduced from 0.75rem to bring h2 closer */
  font-weight: 500;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.hero-scroll-indicator svg {
  width: 28px;
  height: 28px;
  color: var(--color-slate-500);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* Removed redundant welcome-hero::before overlay as it's now on hero-group-card */

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Removed Social Proof and Upgrade Sections */

/* Desktop: darker overlay */
@media (min-width: 768px) {
  .welcome-hero {
    padding: 6rem 2rem 4.5rem;
  }
}

.welcome-hero h1 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-h1); /* 2.5rem (40px) as per suggestion */
  margin-top: 4.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-wrap: balance;
  line-height: var(--line-height-h1); /* 1.1 */
  color: var(--color-charcoal-700);
  position: relative;
  z-index: 1;
  letter-spacing: var(--letter-spacing-h1); /* -0.02em */
  text-align: center;
}

@media (min-width: 768px) {
  .welcome-hero h1 {
    font-size: var(--font-size-h1); 
    line-height: var(--line-height-h1);
  }
}

/* Removed unused benefits styles */

.cta-subtext {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
  margin-top: 1.5rem;
  opacity: 0.8;
}

.welcome-hero .hero-subheading {
  font-size: var(--font-size-base); /* 1rem (16px) */
  line-height: var(--line-height-normal); /* 1.6 */
  color: var(--color-slate-500);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Override CTA button color */
#heroPrimaryBtn {
  background-color: #2e8f58 !important; /* Slightly lighter green */
  border-color: #2e8f58 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(46, 143, 88, 0.25) !important; /* Updated shadow to match lighter green */
  transition: all 0.3s ease !important;
  border-radius: 50px !important; /* Pill shaped */
}

@media (hover: hover) {
  #heroPrimaryBtn:hover {
    background-color: #267749 !important; /* Original forest green for hover */
    border-color: #267749 !important;
    box-shadow: 0 6px 16px rgba(46, 143, 88, 0.4) !important;
    transform: translateY(-2px);
  }
}

/* Mobile Layout - Reposition Login Button */
@media (max-width: 768px) {
  .welcome-header {
    padding: 0.4rem 1rem;
    background-color: var(--color-cream-50); /* Always opaque on mobile for better visibility */
    box-shadow: var(--shadow-sm);
  }

  .logo-area h1 {
    font-size: 1.125rem;
  }

  .login-btn-top-right {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 32px;
  }

  .hero-group-card {
    margin-bottom: 0;
  }

  .welcome-hero {
    padding-top: 0.2rem; 
    padding-bottom: 1rem; /* Tight connection to How it Works */
  }

  .hero-content-card {
    padding: 0;
    margin: 0 auto;
  }
}

/* iPhone SE and smaller screens (< 400px) */
@media (max-width: 400px) {
  .welcome-hero {
    padding: 0.2rem 0.75rem 1rem; /* Lowered to prevent overlap */
  }

  .hero-content-card {
    padding: 0;
    margin: 0 auto;
  }

  .welcome-hero h1 {
    font-size: 32px; 
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }

  .welcome-hero p {
    font-size: 0.9375rem;
    /* Slightly smaller */
    line-height: 1.4;
    margin-bottom: 0.375rem;
  }

  .welcome-hero .hero-subheading {
    font-size: 1.0625rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    margin-top: var(--space-2);
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-area h1 {
    font-size: 1.125rem;
  }

  .login-btn-top-right {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 32px;
  }
}
/* 1. Reset padding & border on your container */
.guest-access.firebaseui-container {
  margin-top: 20px;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* 2. Hide FirebaseUI's auto-generated dividers (top-level rule) */
#firebaseui-auth-container .firebaseui-divider,
#firebaseui-auth-container .firebaseui-idp-divider,
#firebaseui-auth-container hr {
  display: none !important;
}

/* 3. Optional: tighten spacing around your custom divider & microcopy */
.divider-or-container {
  margin: var(--space-16) 0; /* 16px top/bottom instead of default 20–24px */
}

.guest-access-text {
  margin: var(--space-4) 0 var(--space-12) 0;
}
.firebaseui-container .firebaseui-idp-button {
  border-radius: 12px !important;
  min-height: 48px !important;
  font-weight: 500 !important;
  width: 100% !important;
  margin-bottom: var(--space-12) !important;
  transition: all 0.2s ease !important;
}
.btn--ghost#loginSignupBtn,
#loginSignupBtn.btn--ghost {
  border-width: 2px;
}
.hero-cta .btn--ghost {
  border-color: var(--color-teal-700);
  color: var(--color-teal-700);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hero-cta .btn--ghost:hover {
  background: rgba(var(--color-teal-700), 0.08);
  border-color: var(--color-teal-800);
  color: var(--color-teal-800);
}

#loginSignupBtn.btn--ghost {
  border-color: var(--color-teal-700);
  color: var(--color-teal-700);
}
.welcome-hero h1,
.welcome-hero p,
.welcome-hero .hero-subheading {
  text-align: center;
}
.logo-link {
  color: inherit;
  text-decoration: none;
  font-size: clamp(1rem, 4vw, 1.8rem); /* Slightly smaller minimum size for tight viewports */
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px; /* Minimal gap for tighter spacing */
}

.logo-text-regular {
  font-weight: 400;
}

.logo-text-bold {
  font-weight: 700;
}

.logo-icon {
  flex-shrink: 0;
  width: clamp(24px, 5vw, 32px); /* Responsive icon size */
  height: clamp(24px, 5vw, 32px);
}

.logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.user-menu-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-avatar-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.user-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: var(--space-8);
  z-index: 1000;
}

.user-info-sm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-8) var(--space-12);
}

#dropdownUserName {
  font-weight: bold;
}

.dropdown-item {
  display: block;
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  color: var(--color-text);
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
}

.dropdown-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.text-danger {
  color: var(--color-error);
}
.event-card__actions {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: auto;
  width: 100%;
}
.event-card__actions .btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .event-card__actions .btn {
    white-space: normal;
    word-break: break-word;
  }
}

/* How It Works Styles */
.how-it-works-section {
  padding-block: 4rem;
  background-color: var(--color-surface);
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .how-it-works-section {
    padding-block: 8rem;
  }
}

.section-title {
  font-family: var(--font-family-serif);
  font-size: 2.75rem; /* Match about-hero-title size */
  color: var(--color-brand-charcoal);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: var(--line-height-h2); /* 1.2 */
  letter-spacing: var(--letter-spacing-h2); /* -0.01em */
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem; /* Maintain consistent size with about-hero-title */
    margin-bottom: 2rem;
  }
}

.section-subtitle {
  font-size: var(--font-size-base); /* 1rem (16px) */
  line-height: var(--line-height-normal); /* 1.6 */
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 32ch; /* Tighten for mobile scanability */
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .section-subtitle {
    max-width: 60ch;
  }
}

.step-nav-numeric {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.progressive-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0; /* Removed margin-top */
}

.nav-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background-color: var(--color-background);
  color: var(--color-slate-500);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.nav-number:hover {
  background-color: var(--color-gray-300);
  color: var(--color-brand-charcoal);
}

.nav-number.active {
  background-color: var(--color-brand-forest);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(46, 139, 87, 0.2);
}

.nav-number[data-step="0"].active { background-color: var(--color-brand-coral); }
.nav-number[data-step="1"].active { background-color: var(--color-brand-blue); }
.nav-number[data-step="2"].active { background-color: var(--color-brand-peach); }
.nav-number[data-step="3"].active { background-color: var(--color-brand-teal); }

.mobile-only {
  display: flex;
}

@media (min-width: 768px) {
  .how-it-works-section {
    padding: 4rem 2rem;
  }
  
  .mobile-only {
    display: none;
  }
}

/* Expect View Specific Styles */
.expect-card {
    text-align: center;
}

.expect-hero {
    padding-bottom: 2rem;
}

#expectView .mission-card {
    max-width: 35rem; /* Standardized to 560px */
    text-align: left;
}

#expectView .expectation-section h3 {
    margin-top: var(--space-32);
    font-size: var(--font-size-2xl);
    color: var(--color-brand-charcoal);
}

/* Card Carousel in View */
#expectView .card-carousel {
    padding: var(--space-16) 0;
    justify-content: center;
}

@media (max-width: 768px) {
    #expectView .card-carousel {
        justify-content: flex-start;
        padding: var(--space-16) 5%;
    }
}

/* Overlay Container */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.overlay-container.is-active {
    visibility: visible;
    opacity: 1;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Lighter backdrop */
    backdrop-filter: blur(12px) saturate(160%); /* Floating boutique feel */
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.overlay-content {
    position: relative;
    background: var(--color-background);
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-container.is-active .overlay-content {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .overlay-container {
        justify-content: center;
        align-items: center;
    }
    
    .overlay-content {
        max-width: 600px;
        height: 90vh;
        border-radius: var(--radius-lg);
        transform: translateY(20px);
    }
    
    .overlay-container.is-active .overlay-content {
        transform: translateY(0);
    }
}

.overlay-header {
    padding: var(--space-24) var(--space-24) var(--space-12);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--color-background);
}

.header-text-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    flex: 1;
    text-align: left; /* Back to left for better alignment with stepper */
}

.overlay-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    margin: 0;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.overlay-footer {
    padding: var(--space-16) var(--space-24);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex;
    justify-content: center;
}

/* Card Carousel */
.card-carousel-container {
    position: relative;
    margin: var(--space-8) 0 var(--space-24);
    perspective: 1000px;
    height: 240px; /* Set height for the stack */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-carousel {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vibe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-vellum-cream);
    border-radius: 24px;
    padding: var(--space-32) var(--space-24);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-top: 6px solid var(--color-sunset-terracotta);
    box-shadow: 0 10px 30px rgba(61, 43, 31, 0.12);
    /* Faster transitions for smoother "pop" to the front */
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease, z-index 0s;
    cursor: pointer;
    user-select: none;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Floating animation only for the current top card */
.vibe-card.is-top {
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.01); }
}

/* Stacking depth effect - applied via JS classes */
.vibe-card.position-0 {
    z-index: 10;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.vibe-card.position-1 {
    z-index: 9;
    transform: translateY(12px) scale(0.96);
    opacity: 0.9;
    pointer-events: none;
}

.vibe-card.position-2 {
    z-index: 8;
    transform: translateY(24px) scale(0.92);
    opacity: 0.6;
    pointer-events: none;
}

.vibe-card.position-3 {
    z-index: 7;
    transform: translateY(36px) scale(0.88);
    opacity: 0;
    pointer-events: none;
}

/* Swipe animations */
.vibe-card.swiping-right {
    transform: translateX(150%) rotate(30deg) !important;
    opacity: 0 !important;
    transition: all 0.5s ease-out !important;
}

.vibe-card.swiping-left {
    transform: translateX(-150%) rotate(-30deg) !important;
    opacity: 0 !important;
    transition: all 0.5s ease-out !important;
}

.vibe-card::after {
    content: "Tap to reveal next";
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-sunset-terracotta);
    opacity: 0.5;
    font-weight: 600;
    pointer-events: none;
}

/* Only show hint on the top card */
.vibe-card:not(:nth-child(1))::after {
    display: none;
}

.vibe-card:active {
    transform: scale(0.96) !important;
}

/* Internal white "glow" border */
.vibe-card::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.vibe-card:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(61, 43, 31, 0.1);
    cursor: grabbing;
}

@media (max-width: 767px) {
    .vibe-card {
        flex: 0 0 82%; /* Slightly smaller for better peek */
    }
}

@media (min-width: 768px) {
    .card-carousel {
        padding: var(--space-8) 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        gap: var(--space-20);
    }
    .vibe-card {
        flex: 0 0 calc(33.333% - var(--space-20)); /* 3 cards per row on desktop */
        min-width: 250px;
    }
}

/* Watercolor grain texture overlay */
.vibe-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    pointer-events: none;
    /* Watercolor wash / grain filter */
    background-image: 
        radial-gradient(at 20% 20%, rgba(224, 122, 95, 0.15) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(224, 122, 95, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox=%270 0 200 200%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27noiseFilter%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.8%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23noiseFilter%29%27/%3E%3C/svg%3E");
    z-index: 1;
}

.vibe-card h4 {
    position: relative;
    z-index: 2;
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg); /* Slightly smaller to breathe more */
    line-height: 1.5;
    color: var(--color-deep-espresso);
    margin: 0;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
    margin-top: var(--space-16);
}

.carousel-dots {
    display: flex;
    gap: var(--space-8);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.2s;
}

.dot.active {
    background: var(--color-primary);
}

.carousel-prev, .carousel-next {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* Vertical Stepper Boutique Refined - Timeline Mode */
.vertical-stepper {
    margin-top: var(--space-12);
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.stepper-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2.5rem;
}

.stepper-line {
    position: absolute;
    left: 11px; /* Center with 24px icon */
    top: 24px;
    bottom: -12px;
    width: 2px;
    background: var(--color-border);
    opacity: 0.15;
}

.stepper-item:last-child {
    padding-bottom: 0;
}

.stepper-item:last-child .stepper-line {
    display: none;
}

.stepper-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
    margin-bottom: 0.5rem;
    cursor: default;
}

.stepper-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    z-index: 2;
}

.stepper-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.stepper-meta {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.8;
    font-weight: 500;
}

.stepper-arrow {
    display: none; /* No arrows in exploded view */
}

.stepper-content {
    opacity: 1;
    max-height: none;
    padding: 0;
    margin-top: 0.25rem;
}

.stepper-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-slate-500);
}

.stepper-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.sample-prompt-container {
    margin-top: var(--space-16);
    border-left: 2px solid var(--color-primary);
    padding-left: var(--space-12);
}

.sample-prompt-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-6);
}

.vibe-card.small-card {
    min-height: auto;
    padding: var(--space-16);
    background: white;
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: none;
}

.vibe-card.small-card h4 {
    font-size: var(--font-size-sm);
    margin: 0;
}

.age-disclaimer {
    margin: var(--space-24) auto var(--space-16);
    max-width: 600px;
    font-size: var(--font-size-sm) !important; /* Standard small size for info text */
    font-style: italic;
    color: var(--color-text-secondary);
    text-align: center;
    padding: var(--space-12);
    border-top: 1px solid var(--color-border);
    opacity: 0.8;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .age-disclaimer {
        font-size: var(--font-size-sm) !important; 
        margin-top: var(--space-16);
        padding: var(--space-8);
    }
}

/* Fix Overlay for Mobile */
.overlay-content.drawer {
    display: flex;
    flex-direction: column;
    height: 94%; /* Don't take up 100% so backdrop is visible at top */
    margin-top: 6%;
    width: 100%;
    max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.2);
}

.drawer-handle {
    width: 48px;
    height: 5px;
    background: var(--color-border);
    border-radius: 3px;
    margin: var(--space-12) auto 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    position: relative;
    z-index: 101;
    touch-action: pan-y;
}

.drawer-handle:hover {
    background: var(--color-gray-400);
}

.drawer-handle:active {
    transform: scale(0.95);
    background: var(--color-gray-500);
}

/* Add a larger hit area for the handle */
.drawer-handle::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -20px;
    right: -20px;
    bottom: -15px;
}

@media (min-width: 768px) {
    .overlay-content.drawer {
        width: 100%;
        max-width: 600px;
        height: 90vh;
        border-radius: var(--radius-lg);
    }
}

.vibe-check-section {
    padding-bottom: calc(var(--space-32) * 0.1);
    border-bottom: 1px solid rgba(var(--color-brown-600-rgb), 0.1);
    text-align: center;
}

.vibe-check-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sunset-terracotta);
    font-weight: 700;
    margin-bottom: var(--space-8);
    opacity: 0.8;
}

.expectation-section {
    padding-top: 0;
    margin-top: 0;
}

.expectation-section h3 {
    margin-top: 0;
    margin-bottom: var(--space-16);
    text-align: center;
    font-family: var(--font-family-serif);
    color: var(--color-deep-espresso);
    font-size: var(--font-size-lg);
    font-weight: 600; /* Adjusted to 600 for consistency */
}

.overlay-header h2 {
    margin: 0;
    font-size: var(--font-size-xl);
    line-height: 1.2;
    color: var(--color-sunset-terracotta);
    font-weight: var(--font-weight-black);
}
.progressive-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.25rem; /* Slightly reduced padding for compactness */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Reduced gap from 1.25rem */
  margin-top: 0.5rem;
  max-width: 440px; /* 40% more horizontally compact (approx 60% of mobile container) */
  margin-left: auto;
  margin-right: auto;
  width: 90%; /* Ensure it doesn't overflow on very small screens */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progressive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.12), 0 15px 15px -5px rgba(0, 0, 0, 0.06);
}

.progress-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
  height: 100%;
  width: 25%;
  background-color: var(--color-brand-forest);
  transition: width 0.3s ease;
}

.step-container {
  min-height: 100px; /* Reduced from 120px to fix "extra space" */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-content-active {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-micro-cta {
  background-color: var(--color-brand-forest);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-base);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-micro-cta:hover {
  background-color: var(--color-brand-teal);
}

/* About Us & Mission Styles */
.about-card {
  text-align: left;
  box-shadow: none !important;
  border: none !important;
  background-image: none !important; /* Prevent stretching over the long agenda */
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background-color: var(--color-background);
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .about-hero {
    background-attachment: fixed; /* Parallax effect prevents stretching on desktop */
    padding: 2.5rem 2rem;
  }
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 0;
  pointer-events: none;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.mission-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem 1.5rem;
  margin: 0.5rem auto 2rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  max-width: 700px;
  width: 100%;
  text-align: left; /* Changed from center for better readability */
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 1200px) {
  .mission-card {
    max-width: 1024px;
  }
}

@media (min-width: 768px) {
  .mission-card {
    padding: 4rem;
    margin: 1rem auto 4rem;
    max-width: 40rem; /* Increased from 35rem */
  }
}

.mission-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 100%; /* Fill the 35rem container */
  /* Removed auto margins to keep it left-aligned */
  text-align: left;
  color: var(--color-slate-500);
}

@media (min-width: 768px) {
  .mission-content p {
    font-size: 1.125rem;
  }
}

.mission-cta {
  margin-top: 2rem;
  text-align: center; /* Keep the CTA centered within the left-aligned card */
}

.mission-photo {
  max-width: 700px;
  width: 100%;
  margin: 0 auto 2rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .mission-photo {
    max-width: 35rem; /* Match .mission-card */
    margin: 0 auto 4rem;
  }
}

.mission-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.mission-photo-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-slate-500);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Promise Card Next Event Teaser */
.promise-next-event {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--color-brown-600-rgb), 0.15);
}

.next-event-teaser {
  background: rgba(var(--color-teal-500-rgb), 0.04);
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
}

.next-event-label {
  font-family: var(--font-family-serif);
  font-size: 1.125rem !important;
  margin-bottom: 0.35rem !important;
  color: var(--color-text);
  line-height: 1.3 !important;
}

.next-event-meta {
  font-size: 0.875rem !important;
  color: var(--color-text-secondary);
  margin-bottom: 0 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-hero-title,
#expectView > div > section > h2,
#aboutView > div > section > h2 {
  font-family: var(--font-family-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-brand-charcoal);
  margin-bottom: 0.5rem;
  padding-top: 4.5rem !important; /* Force 4.5rem as requested by user */
  text-align: center;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.8);
}

.about-hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-slate-500);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .about-hero-title {
    font-size: 4rem;
  }
  .about-hero-subtitle {
    font-size: 1.5rem;
  }
}

.about-hero::before {
  display: none;
}

.agenda-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 32px;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .agenda-section {
    padding: 1rem 1rem;
  }
}

/* Event Agenda Styles */
h3#event-agenda,
.expectation-section h3 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem; /* Increased for better section spacing */
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--color-charcoal-800);
  text-align: center;
  font-weight: 600; /* Adjusted from 700 to 600 as requested */
}

.agenda-container {
  max-width: 700px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.event-agenda-block {
  padding: 0.75rem 0 1.25rem; /* Reduced by 60% for tighter rhythm */
  border-bottom: 1px solid #eee; /* Clearer light gray divider */
}

.event-agenda-block:last-of-type {
  border-bottom: none;
}

.event-agenda-label {
  display: block;
  margin-top: 2rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-coral);
}

.event-round-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-charcoal-700);
}

.event-round-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-brand-coral);
  border-radius: 2px;
}

.event-agenda-block h4 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600; /* Adjusted to 600 for refined hierarchy */
  color: var(--color-charcoal-800);
  line-height: 1.3;
}

.event-agenda-block p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 42rem;
}

@media (max-width: 640px) {
  .about-hero {
    padding: 2rem 1.5rem;
  }
  
  .agenda-container {
    padding: 0 1rem;
  }
  
  .event-agenda-block h4 {
    font-size: 1.15rem;
  }
  
  .event-agenda-block p {
    font-size: 0.95rem;
  }
}

/* Civic Glass Design System */
.background-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--color-background);
  opacity: 0.40; /* Increased opacity by 15% for better visibility as requested */
  /* Fade orbs from 100% at top to 30% towards the bottom of the viewport */
  mask-image: linear-gradient(to bottom, black 40%, rgba(0, 0, 0, 0.3) 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, rgba(0, 0, 0, 0.3) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8; /* High opacity above the fold */
  animation: floatOrb 25s infinite ease-in-out;
  pointer-events: none;
}

.orb-blue {
  width: 500px;
  height: 500px;
  background: rgba(147, 112, 219, 0.4); /* Soft Lavender instead of Teal */
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-orange {
  width: 600px;
  height: 600px;
  background: var(--color-brand-coral);
  top: -100px;
  right: -150px;
  animation-delay: -5s;
}

.orb-peach {
  width: 450px;
  height: 450px;
  background: var(--color-brand-peach);
  top: 20%;
  left: 20%;
  animation-delay: -10s;
  opacity: 0.6; /* Increased from 0.2 */
}

.orb-sky {
  width: 400px;
  height: 400px;
  background: var(--color-brand-blue);
  top: 40%;
  right: 10%;
  animation-delay: -15s;
  opacity: 0.6; /* Increased from 0.2 */
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 150px) scale(1.1); }
  66% { transform: translate(-30px, 80px) scale(0.9); }
}

/* Status Card & Pills */
.status-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-bottom: var(--space-24);
}

.status-card h3 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

.status-pill-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
}

.status-pill--waiting {
  color: var(--color-text-secondary);
  border: 1px dashed var(--color-border);
  background-color: rgba(var(--color-brown-600-rgb), 0.03);
  flex-direction: column;
  text-align: center;
  gap: var(--space-4);
  min-height: 80px;
}

.reg-prompt {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  margin-top: var(--space-4);
}

.reg-prompt a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: var(--font-weight-bold);
}

.status-pill--active {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(var(--color-teal-500-rgb), 0.05) 100%);
  color: var(--color-text);
  border: 1px solid var(--color-primary);
  gap: var(--space-12);
  min-height: 64px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-red-500);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.live-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-red-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.round-text {
  letter-spacing: 0.02em;
}

/* Skeleton Loader */
@keyframes skeleton-loading {
  0% {
    background-color: rgba(var(--color-slate-500-rgb), 0.1);
  }
  50% {
    background-color: rgba(var(--color-slate-500-rgb), 0.2);
  }
  100% {
    background-color: rgba(var(--color-slate-500-rgb), 0.1);
  }
}

.skeleton-text {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  border-radius: 4px;
  display: inline-block;
  min-width: 150px;
  min-height: 1em;
  vertical-align: middle;
}

/* Geoapify Autocomplete Overrides */
.geoapify-autocomplete-container {
    position: relative;
    width: 100%;
}

.geoapify-autocomplete-input {
    display: block;
    width: 100%;
    padding: var(--space-12) !important;
    font-size: var(--font-size-md) !important;
    line-height: 1.5 !important;
    color: var(--color-text) !important;
    background-color: var(--color-background) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-base) !important;
    transition: border-color var(--duration-fast) var(--ease-standard) !important;
    height: auto !important;
}

.geoapify-autocomplete-input:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-focus-ring) !important;
}

.geoapify-autocomplete-items {
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-base) !important;
    margin-top: 4px !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 1001 !important;
    color: var(--color-text) !important;
}

.geoapify-autocomplete-item {
    padding: var(--space-8) var(--space-12) !important;
    cursor: pointer !important;
}

.geoapify-autocomplete-item:hover,
.geoapify-autocomplete-item.active {
    background-color: var(--color-secondary) !important;
}

.geoapify-autocomplete-item .main-part {
    font-weight: var(--font-weight-medium) !important;
}

.geoapify-autocomplete-item .secondary-part {
    font-size: var(--font-size-xs) !important;
    color: var(--color-text-secondary) !important;
}

.geoapify-close-button {
    color: var(--color-text-secondary) !important;
}

.geoapify-close-button:hover {
    color: var(--color-text) !important;
}

/* Admin Round Controls Styling */
.admin-round-controls {
    transition: opacity var(--duration-standard) var(--ease-standard);
}

.admin-round-controls.hidden {
    display: none;
    opacity: 0;
}

.admin-round-controls .config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
}

.admin-round-controls .btn {
    border-radius: var(--radius-full) !important;
    padding: var(--space-8) var(--space-20) !important;
    font-weight: var(--font-weight-bold);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: var(--font-size-base);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-round-controls #adminEndEventBtn {
    margin-top: var(--space-16);
    border-radius: var(--radius-base) !important; /* Keep End Event slightly more rectangular or consistent with other primary buttons */
}

.admin-round-note {
    margin: var(--space-8) 0 var(--space-12);
    color: var(--color-text-secondary);
}

.admin-inline-timer {
    margin-top: var(--space-12);
    padding: var(--space-12);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-background);
}

.admin-inline-timer .timer-buttons {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .admin-round-controls {
        padding-bottom: var(--space-8);
    }

    .admin-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-8);
    }

    .admin-round-controls .config-grid {
        grid-template-columns: 1fr;
    }

    .admin-round-controls .btn {
        width: 100%;
        min-height: 40px;
        padding: var(--space-6) var(--space-12) !important;
        font-size: var(--font-size-sm);
    }

    .admin-inline-timer {
        align-items: stretch;
        gap: var(--space-8);
        min-height: auto;
        padding: var(--space-10) var(--space-12);
    }

    .admin-inline-timer .timer-config {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-8);
        width: 100%;
    }

    .admin-inline-timer .timer-config .form-label {
        margin: 0;
        white-space: nowrap;
        font-size: var(--font-size-sm);
    }

    .admin-inline-timer .timer-input {
        width: 88px;
        min-width: 88px;
        margin-left: auto;
        padding: var(--space-6) var(--space-8);
    }

    .admin-inline-timer .timer-label {
        margin: 0;
        font-size: var(--font-size-sm);
    }

    .admin-inline-timer .timer-display {
        font-size: var(--font-size-2xl);
        line-height: 1.1;
    }

    .admin-inline-timer .timer-buttons .btn {
        width: auto;
        min-width: 132px;
    }
}

/* Progressive Card (Mobile) */

/* Attention Highlight Animation */
@keyframes attention-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 178, 141, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(63, 178, 141, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 178, 141, 0); }
}

.attention-highlight {
    animation: attention-pulse 1s ease-in-out 3;
    border: 2px solid var(--color-primary) !important;
}

.inline-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: opacity 0.2s;
}

.inline-link:hover {
    opacity: 0.8;
}

/* Footer Styles */
.app-footer {
    padding: 1.5rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-background);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: 2rem; /* Increased bottom margin */
    padding-bottom: 1rem; /* Added bottom padding */
}

.footer-link {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-separator {
    color: var(--color-border);
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Removed Difference Section */

/* --- Section Title Utility --- */
.section-title {
    text-align: center;
    margin-bottom: var(--space-24);
    color: var(--color-text);
}

.mission-subtitle {
    text-align: center;
    margin-bottom: var(--space-24);
    color: var(--color-text-secondary);
    font-size: var(--font-size-h3); /* 1.25rem (20px) */
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-h3); /* 1.3 */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* What to Expect - Section Styles */
.at-each-table-section,
.faq-section {
    margin-top: var(--space-32);
    padding: var(--space-24);
    background: var(--color-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Split Closer Section */
.split-closer {
  padding-block: 1rem;
  background-color: var(--color-background);
}

@media (min-width: 768px) {
  .split-closer {
    padding-block: 1.5rem;
  }
}

.closer-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.closer-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* Removed .closer-grid as cards are now full-width */

.closer-card {
  width: 100%;
  box-sizing: border-box;
  padding: 2rem; /* Reduced from 3rem to better fit the 560px standard */
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease;
}

@media (min-width: 640px) {
  .closer-card {
    padding: 3rem; /* Restore 3rem on larger screens where 560px container is fully active */
  }
}

.closer-card--ethos {
  background-color: #FAFAF9;
  border: none;
  box-shadow: none;
  margin-bottom: 4rem;
  padding: 3rem;
}

.closer-card--host {
  background-color: var(--color-slate-900);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.closer-card--host .closer-card-title {
  color: var(--color-white);
}

.closer-card-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-h2); /* 1.75rem (28px) - Using H2 for prominence in these cards */
  margin-bottom: 1.25rem;
  line-height: var(--line-height-h2); /* 1.2 */
  letter-spacing: var(--letter-spacing-h2); /* -0.01em */
}

.closer-card-copy {
  font-size: var(--font-size-base); /* 1rem (16px) */
  line-height: var(--line-height-normal); /* 1.6 */
  margin-bottom: 2rem;
  color: inherit;
  opacity: 0.9;
}

.btn-text {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-text:hover {
  text-decoration: underline;
}


.at-each-table-section h3,
.faq-section h3 {
    margin-bottom: var(--space-16);
    color: var(--color-text);
}

.faq-item {
    margin-bottom: var(--space-20);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    font-size: 1.05rem;
}

.faq-answer {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: 0.95rem;
}

.at-each-table-list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-16);
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.at-each-table-list li {
    position: relative;
    padding-left: var(--space-24);
    line-height: var(--line-height-standard);
    color: var(--color-text);
}

.at-each-table-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

/* Feedback Section Styles */
.feedback-section {
    margin-bottom: var(--space-24);
    animation: fadeIn 0.5s ease-out;
}

.feedback-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12);
    margin-top: var(--space-16);
}

.feedback-btn {
    font-size: 2rem;
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-12);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.feedback-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-mint-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feedback-btn:active {
    transform: translateY(0) scale(0.95);
}

.feedback-btn.selected {
    border-color: var(--color-primary);
    background-color: transparent;
}


.feedback-success {
    text-align: center;
    padding: var(--space-16);
    background-color: rgba(var(--color-success-rgb), 0.1);
    border-radius: var(--radius-md);
    margin-top: var(--space-16);
    border: 1px solid var(--color-success);
    color: var(--color-success);
    font-weight: 600;
}

.awkward-reason-section {
    animation: fadeIn 0.3s ease-out;
}

.awkward-btn.selected {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background-color: transparent !important;
}

@media (max-width: 480px) {
    .feedback-btn {
        font-size: 1.5rem;
        padding: var(--space-8);
        min-height: 56px;
    }
    
    .feedback-options {
        gap: var(--space-8);
    }
}

/* Get Involved Section */
.get-involved-section {
    padding-block: 4rem;
    background-color: var(--color-background);
}

@media (min-width: 768px) {
    .get-involved-section {
        padding-block: 8rem;
    }
}

.get-involved-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 992px) {
    .get-involved-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

/* Removed desktop grid expansion to maintain 560px column standard */

.get-involved-card {
    background: var(--surface-container-lowest);
    border-radius: 8px;
    padding: 2.5rem 2rem; /* Asymmetrical padding */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background-color 0.3s ease-in-out;
}

.get-involved-card:hover {
    background: var(--surface-container-low);
}



.get-involved-card .card-title {
    font-family: 'Noto Serif', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--on-surface);
    text-align: center;
}

.card-bullets {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--on-surface);
    padding-left: 1.5rem;
    margin: 0;
}

.get-involved-card .btn--primary {
    background: linear-gradient(to right, var(--primary), #336940);
    color: var(--surface-container-lowest);
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease-in-out;
}

.get-involved-card .btn--tertiary {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.get-involved-card .btn--tertiary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--tertiary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.get-involved-card .btn--tertiary:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.card-microcopy {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    line-height: 1.5;
    margin: 0;
}

.card-microcopy strong {
    color: var(--color-slate-900);
}

/* ============================================================
   HOME PAGE REFACTOR — Stitch Design System
   New classes prefixed with `home-` to avoid conflicts
   ============================================================ */

/* --- Shared font families for new home sections --- */
.home-headline,
.home-section-title,
.home-events-title,
.home-first-time-title,
.home-host-title,
.home-how-title,
.home-step-title,
.home-footer-brand,
.home-quote-text {
  font-family: var(--font-family-serif);
}

.home-season-pill,
.home-events-eyebrow,
.home-step-num {
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, monospace;
}

.home-hero-sub,
.home-section-sub,
.home-how-body,
.home-step-body,
.home-host-body,
.home-footer-copy,
.home-footer-link,
.home-quote-attr {
  font-family: "Plus Jakarta Sans", "FKGroteskNeue", "Inter", sans-serif;
}

/* --- Hero Section --- */
.home-hero {
  background-color: #fafaf5;
  overflow-x: hidden;
}

.home-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}



/* Headline */
.home-headline {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #1a1c19;
  margin: 0;
  text-wrap: balance;
}

.home-headline em {
  font-style: italic;
  font-weight: 300;
  color: #19502a;
}

/* CTA Stack */
.home-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.home-btn-primary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background-color: #19502a !important;
  border-color: #19502a !important;
  color: #ffffff !important;
  padding: 1.125rem 1.5rem !important;
  border-radius: 0.75rem !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(25, 80, 42, 0.25) !important;
  transition: all 0.25s ease !important;
  text-decoration: none;
  width: 80%;
}

.home-btn-primary:hover {
  background-color: #144221 !important;
  box-shadow: 0 6px 20px rgba(25, 80, 42, 0.35) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.home-btn-ghost {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #1a1c19 !important;
  border: 1px solid rgba(65, 73, 65, 0.3) !important;
  border-radius: 0.75rem !important;
  padding: 0.875rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  transition: background 0.2s ease !important;
  text-decoration: none;
  width: 80%;
}

.home-btn-ghost:hover {
  background: #f4f4ef !important;
  color: #1a1c19 !important;
}

.home-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.home-hero-sub {
  font-size: 1.0625rem;
  color: #414941;
  line-height: 1.65;
  margin: 0;
}

/* Hero Photo */
.home-photo-wrap {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.home-photo-inner {
  aspect-ratio: 4 / 3;
  background: #e8e8e3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

.home-quote-chip {
  position: absolute;
  bottom: -1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(65, 73, 65, 0.08);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  max-width: 185px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.home-quote-text {
  font-style: italic;
  color: #19502a;
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.home-quote-attr {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #717970;
  margin: 0;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Our Setup Section --- */
.home-setup-section {
  background-color: #f4f4ef;
  padding-top: 2rem;
}

.home-setup-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1c19;
  margin: 0 0 0.5rem;
}

.home-section-sub {
  color: #414941;
  font-size: 0.9375rem;
  margin: 0;
}

/* Horizontal card strip */
.home-how-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.home-how-strip::-webkit-scrollbar {
  display: none;
}

.home-how-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(65, 73, 65, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.home-how-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.home-how-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-surface-container-low);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-how-icon .material-symbols-outlined {
  font-size: 24px;
}

.home-how-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1c19;
  margin: 0 0 0.5rem;
}

.home-how-body {
  font-size: 0.875rem;
  color: #414941;
  line-height: 1.55;
  margin: 0;
}

/* Container for the scrollable strip to position the chevron */ 
 .home-how-strip-container { 
   position: relative; 
 } 
 
 /* On mobile, add the chevron to the container */ 
 @media (max-width: 767px) { 
   .home-how-strip-container::after { 
     content: '>'; 
     position: absolute; 
     top: 50%; 
     right: 0.5rem; 
     transform: translateY(-50%); 
     color: rgba(80, 198, 158, 0.5); /* Semi-transparent tertiary color */ 
     font-size: 2rem; 
     font-weight: bold; 
     pointer-events: none; /* Allows clicks to pass through */ 
     animation: bounce-right 1.5s infinite; 
     opacity: 1; 
     transition: opacity 0.3s ease-out; 
   } 
 
   /* Hide the chevron when this class is added by JS */ 
   .home-how-strip-container.is-scrolled-to-end::after { 
     opacity: 0; 
   } 
 } 
 
 @keyframes bounce-right { 
   0%, 20%, 50%, 80%, 100% { 
     transform: translateY(-50%) translateX(0); 
   } 
   40% { 
     transform: translateY(-50%) translateX(5px); 
   } 
   60% { 
     transform: translateY(-50%) translateX(3px); 
   } 
 }

/* --- Events Section --- */
.home-events-section {
  padding: 2rem 0;
  background-color: var(--color-paper-white);
}

.home-events-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-events-header {
  margin-bottom: 2rem;
}

.home-events-eyebrow {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #723420;
  margin-bottom: 0.5rem;
}

.home-events-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1c19;
  margin: 0;
}

/* --- First Time Section --- */
.home-first-time-section {
  background-color: #19502a;
  color: #fafaf5;
  padding: 2rem 0;
}

.home-first-time-inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-first-time-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.home-first-time-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(250, 250, 245, 0.3);
  flex-shrink: 0;
}

.home-first-time-title {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  color: #fafaf5;
  margin: 0;
}

.home-first-time-steps {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.home-first-time-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.home-step-num {
  font-size: 1.25rem;
  color: rgba(250, 250, 245, 0.45);
  flex-shrink: 0;
  padding-top: 0.125rem;
  min-width: 2.5rem;
}

.home-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fafaf5;
  margin: 0 0 0.5rem;
}

.home-step-body {
  font-size: 0.9375rem;
  color: rgba(250, 250, 245, 0.88);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}

/* --- Host CTA Section --- */
.home-host-section {
  padding: 2rem 1.5rem;
  background: #fafaf5;
}

.home-host-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.home-host-content {
  background: #ffdbd0;
  color: #3a0b00;
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.home-host-content::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: rgba(114, 52, 32, 0.07);
  border-radius: 50%;
}

.home-host-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3a0b00;
  margin: 0;
  position: relative;
  z-index: 1;
}

.home-host-body {
  font-size: 0.9375rem;
  color: #5c3322;
  line-height: 1.65;
  margin: 0;
  position: relative;
  z-index: 1;
}

.home-host-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.625rem;
  background: #723420 !important;
  color: #ffffff !important;
  border-color: #723420 !important;
  border-radius: 0.75rem !important;
  padding: 0.875rem 1.75rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: all 0.2s ease !important;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  width: auto !important;
}

.home-host-btn:hover {
  background: #5c2918 !important;
  box-shadow: 0 4px 12px rgba(114, 52, 32, 0.3) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* --- Home Footer --- */
.home-footer {
  background: #f4f4ef;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3.5rem 1.5rem 2.5rem;
}

.home-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.home-footer-brand {
  display: block;
  font-style: italic;
  font-size: 1.175rem;
  color: #1a1c19;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.home-footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #414941;
  line-height: 1.7;
  margin: 0;
}

.home-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

.home-footer-link {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #414941 !important;
  text-decoration: none;
  transition: all 0.15s ease;
}

.home-footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #1a1c19 !important;
}

/* --- Responsive: tablet and up --- */
@media (min-width: 768px) {
  .home-hero {
  }

  .home-hero-inner {
    padding: 2.5rem 2rem 2rem;
    max-width: 52rem;
  }

  .home-how-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-type: none;
  }

  .home-how-card {
    flex: unset;
  }

  .home-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .home-footer-links {
    min-width: 220px;
  }
}

@media (min-width: 1024px) {
  .home-hero-inner {
    max-width: 56rem;
    padding: 3rem 6rem 2rem;
  }

  .home-host-content {
    padding: 3rem 3.5rem;
  }
}

#heroTitle,
.home-hero-sub,
.home-section-title,
.home-section-sub,
.home-events-eyebrow,
.home-events-title,
.home-step-title,
.home-step-body,
.home-host-title,
.home-host-body,
.home-footer-brand,
.home-footer-copy,
.home-footer-links {
  text-align: left;
}

/* New Event Hero Card Styles */
.event-card--hero .hero-card-new {
  background-color: var(--color-brand-forest, #267749);
  color: var(--color-white, #fff);
  padding: 2rem;
  border-radius: 1.5rem; /* rounded-3xl */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
  position: relative;
  overflow: hidden;
}

.event-card--hero .hero-card-new__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.event-card--hero .hero-card-new__date {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.event-card--hero .hero-card-new__day {
  font-family: 'Noto Serif', serif;
  font-size: 3rem; /* text-5xl */
  line-height: 1;
}

.event-card--hero .hero-card-new__month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem; /* text-lg */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.event-card--hero .hero-card-new__top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.event-card--hero .hero-card-new__rsvp {
  background-color: #c7ecc8; /* secondary-container */
  color: #4c6c4f; /* on-secondary-container */
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.625rem; /* text-[10px] */
  font-weight: 700;
  letter-spacing: 0.025em;
}

.event-card--hero .hero-card-new__title {
  font-family: 'Noto Serif', serif;
  font-size: 1.875rem; /* text-3xl */
  font-weight: var(--font-weight-normal);
  margin-bottom: 0.75rem;
}

.event-card--hero .event-countdown-timer {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.event-card--hero .hero-card-new__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 0.875rem; /* text-sm */
  font-style: italic;
}

.event-card--hero .hero-card-new__location .material-symbols-outlined {
  font-size: 1rem;
}



.hero-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transform: translate(50%, -50%);
    transition: transform 0.7s;
    z-index: 0;
}

.hero-card-new:hover::before {
    transform: translate(50%, -50%) scale(1.5);
}

.hero-card-new > * {
    position: relative;
    z-index: 1;
}

.event-card--hero .hero-card-new__actions .btn--primary-on-dark { 
     width: 100%; 
     background-color: var(--color-white, #fff); 
     color: var(--color-brand-forest, #267749); 
     padding: 1rem; 
     border-radius: 0.75rem; 
     font-weight: 700; 
     font-size: 1.125rem; 
     text-align: center; 
     text-decoration: none; 
     display: block; 
     border: 1px solid transparent; 
     transition: background-color 0.2s; 
 }

 .conversation-photo { 
   position: relative; 
 } 
 
 .conversation-card { 
   aspect-ratio: 4 / 5; 
   border-radius: 12px; 
   overflow: hidden; 
   transform: rotate(2deg); 
   transition: transform 0.7s ease; 
   box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
 } 
 
 .conversation-card:hover { 
   transform: rotate(0deg); 
 } 
 
 /* mobile-friendly subtle motion */ 
 @media (hover: none) { 
   .conversation-card { 
     animation: cardDrift 6s ease-in-out infinite; 
   } 
 } 
 
 @keyframes cardDrift { 
   0% { transform: rotate(2deg); } 
   50% { transform: rotate(0deg); } 
   100% { transform: rotate(2deg); } 
 } 
 
 .conversation-card img { 
   width: 100%; 
   height: 100%; 
   
   object-fit: cover; 
   filter: grayscale(20%) sepia(10%); 
 } 
 
 .testimonial { 
   position: absolute; 
   bottom: -24px; 
   left: -24px; 
   background: rgba(255,255,255,0.95); 
   backdrop-filter: blur(6px); 
   padding: 24px; 
   border-radius: 8px; 
   max-width: 260px; 
   transform: rotate(-3deg); 
   box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
 } 
 
 .quote { 
   font-family: serif; 
   font-style: italic; 
   font-size: 20px; 
   color: var(--color-brand-forest);
 } 
 
 .author { 
   font-size: 12px; 
   margin-top: 10px; 
   letter-spacing: 0.08em; 
   text-transform: uppercase; 
  color: var(--color-gray-400);
 }
@media (min-width: 769px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
  }

  .site-header .logo-area {
    justify-self: start;
  }

  .site-header .welcome-nav {
    justify-self: center;
  }

  .site-header .welcome-actions {
    justify-self: end;
  }
}




