/* movement-cms — CNP design system
 * Ported 2026-05-22 from NB Template/NewSite/theme/layout.html (lines 37–2923).
 * Source-of-truth for visual fidelity; refined during T3.7 and Phase 5 parity review.
 * Font URLs rewritten to /static/fonts/. No other transformations applied.
 */

  /* ===================================================================
     Custom Fonts - Bebas Neue Pro
     Self-hosted WOFF2 fonts for optimal performance and all weights
     =================================================================== */

  @font-face {
    font-family: 'Bebas Neue Pro';
    src: url('/static/fonts/BebasNeuePro-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: optional;
  }

  @font-face {
    font-family: 'Bebas Neue Pro';
    src: url('/static/fonts/BebasNeuePro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: optional;
  }

  @font-face {
    font-family: 'Bebas Neue Pro';
    src: url('/static/fonts/BebasNeuePro-Middle.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: block;
  }

  @font-face {
    font-family: 'Bebas Neue Pro';
    src: url('/static/fonts/BebasNeuePro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
  }

  /* Bebas Neue Pro Expanded - ExtraBold variants for special emphasis */
  @font-face {
    font-family: 'Bebas Neue Pro Expanded';
    src: url('/static/fonts/BebasNeuePro-ExpandedExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: block;
  }

  @font-face {
    font-family: 'Bebas Neue Pro Expanded';
    src: url('/static/fonts/BebasNeuePro-ExpandedExtraBold-Italic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: block;
  }

  /* ===================================================================
     CSS Variables - Color System
     Centralized color definitions for theme consistency and easy theming
     =================================================================== */
  :root {
    /* Backgrounds */
    --bg-primary: #000000;           /* Main page background, navbar */
    --bg-secondary: #1a1a1a;         /* Cards, forms, dropdowns, modals */
    --bg-tertiary: #2a2a2a;          /* Card headers, elevated surfaces */
    --bg-quaternary: #3a3a3a;        /* Subtle backgrounds, separators */

    /* Text Colors */
    --text-primary: #ffffff;         /* Primary text, headings */
    --text-secondary: #aaaaaa;       /* Muted text, footer */
    --text-tertiary: rgba(255, 255, 255, 0.9); /* Slightly transparent text */
    --text-quaternary: rgba(255, 255, 255, 0.8); /* More transparent text */
    --text-placeholder: #888888;     /* Form placeholders */
    --text-inverse: #000000;         /* Text on light backgrounds */

    /* Brand Colors */
    --ucla-blue: #8BB8E8;            /* Primary brand color (LIGHTER BLUE - WCAG AA compliant) */
    --ucla-blue-hover: #6A9DD8;      /* Hover state for UCLA blue */
    --ucla-blue-light: #A8CCF0;      /* Lighter variant (gradients) */
    --ca-gold: #FFD100;              /* Secondary brand color */
    --ca-gold-hover: #e6bc00;        /* Hover state for CA gold */

    /* Borders */
    --border-primary: #2a2a2a;       /* Primary borders (cards, containers) */
    --border-secondary: #3a3a3a;     /* Secondary borders (inputs, toggles) */
    --border-tertiary: #666666;      /* Tertiary borders (decorative) */
    --border-subtle: #555555;        /* Very subtle borders */

    /* Interactive States */
    --hover-overlay: rgba(255, 255, 255, 0.2);     /* Hover overlays */
    --hover-overlay-subtle: rgba(139, 184, 232, 0.2); /* Subtle blue hover */
    --focus-ring: rgba(139, 184, 232, 0.25);        /* Focus state ring */
    --focus-ring-strong: rgba(139, 184, 232, 0.5);  /* Strong focus indicator */

    /* Shadows & Overlays */
    --shadow-sm: rgba(0, 0, 0, 0.2);              /* Small shadows */
    --shadow-md: rgba(0, 0, 0, 0.3);              /* Medium shadows */
    --shadow-lg: rgba(0, 0, 0, 0.7);              /* Large shadows (modals) */
    --shadow-colored: rgba(39, 116, 174, 0.3);    /* Colored shadow (blue) */
    --shadow-colored-strong: rgba(39, 116, 174, 0.6); /* Strong colored shadow */
    --shadow-gold: rgba(255, 209, 0, 0.3);        /* Gold colored shadow */

    /* Alert Colors */
    --alert-info-bg: rgba(39, 116, 174, 0.15);    /* Info alert background */
    --alert-info-border: var(--ucla-blue);        /* Info alert border */
    --alert-success-bg: rgba(40, 167, 69, 0.15);  /* Success alert background */
    --alert-success-border: #28a745;              /* Success alert border */
    --alert-warning-bg: rgba(255, 209, 0, 0.15);  /* Warning alert background */
    --alert-warning-border: var(--ca-gold);       /* Warning alert border */
    --alert-danger-bg: rgba(220, 53, 69, 0.15);   /* Danger alert background */
    --alert-danger-border: #dc3545;               /* Danger alert border */

    /* Gradients (stored as color stops for flexibility) */
    --gradient-blue-start: var(--ucla-blue);
    --gradient-blue-end: var(--ucla-blue-hover);
    --gradient-mercury-start: var(--ucla-blue);
    --gradient-mercury-end: var(--ucla-blue-light);

    /* Border Radius */
    --radius-sm: 0.375rem;    /* 6px - buttons, dropdowns, alerts */
    --radius-md: 0.5rem;      /* 8px - cards, containers, CTA blocks */
    --radius-lg: 1rem;        /* 16px - quiz cards, special containers */
    --radius-circle: 50%;     /* circular elements (bulbs, avatars) */

    /* Button Padding */
    --btn-padding-sm: 0.5rem 1.25rem;     /* 8px 20px - compact buttons */
    --btn-padding-md: 0.625rem 1.5rem;    /* 10px 24px - standard buttons */
    --btn-padding-lg: 1rem 3rem;          /* 16px 48px - large CTA/quiz buttons */

    /* Typography */
    --font-headline: 'Bebas Neue Pro Expanded', sans-serif;  /* Major headings, page titles */
    --font-heading: 'Bebas Neue Pro', sans-serif;            /* Subheadings, card titles */
    --font-body: 'Poppins', sans-serif;                      /* Body text, paragraphs */
    --font-weight-headline: 800;                             /* ExtraBold for headlines */
    --font-weight-heading: 700;                              /* Bold for headings */
    --letter-spacing-headline: 0.05em;                       /* Headline letter spacing */

    /* Font Sizes - Desktop */
    --font-size-h1: 2.5rem;      /* 40px - Major page headlines */
    --font-size-h2: 2rem;        /* 32px - Section headings */
    --font-size-h3: 1.75rem;     /* 28px - Subsection headings */
    --font-size-h4: 1.5rem;      /* 24px - Card titles */
    --font-size-h5: 1.25rem;     /* 20px - Small headings */
    --font-size-h6: 1rem;        /* 16px - Minor headings */
    --font-size-lead: 1.25rem;   /* 20px - Lead paragraphs */
    --font-size-body: 1rem;      /* 16px - Body text */

    /* Font Sizes - Mobile */
    --font-size-h1-mobile: 2rem;      /* 32px */
    --font-size-h2-mobile: 1.75rem;   /* 28px */
    --font-size-h3-mobile: 1.5rem;    /* 24px */
    --font-size-h4-mobile: 1.25rem;   /* 20px */
    --font-size-h5-mobile: 1.125rem;  /* 18px */
    --font-size-lead-mobile: 1.125rem; /* 18px */
  }

  /* Base Styles */
  body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* Disable transitions during initial page load to prevent FOUC */
  body.preload * {
    transition: none !important;
  }

  /* Prevent layout shifts during page load */
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Reserve space for images before they load to prevent jumping */
  img:not([width]):not([height]) {
    aspect-ratio: 16 / 9;
    /* background removed - was causing gray backgrounds on transparent PNGs */
  }

  /* Reduce layout shifts by containing layout changes */
  main, section {
    contain: layout style;
  }

  /* Make main content grow to push footer down (sticky footer) */
  main {
    flex: 1;
  }

  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-family: var(--font-heading) !important;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  h1 { font-size: var(--font-size-h1); }
  h2 { font-size: var(--font-size-h2); }
  h3 { font-size: var(--font-size-h3); }
  h4 { font-size: var(--font-size-h4); }
  h5 { font-size: var(--font-size-h5); }
  h6 { font-size: var(--font-size-h6); }

  .lead {
    font-size: var(--font-size-lead);
    font-weight: 300;
    line-height: 1.7;
  }

  p { margin-bottom: 1rem; }

  a {
    color: var(--ucla-blue-light);  /* Brighter blue (#4a9ed8) for better visibility on black */
    text-decoration: none;
    transition: color 0.2s ease;
  }

  a:hover {
    color: var(--ucla-blue);  /* Slightly darker on hover (#2774AE) */
    text-decoration: underline;
  }

  /* Navbar */
  .navbar {
    background-color: var(--bg-primary) !important;
    border-bottom: none !important;
    padding: 1rem 0 !important;
    contain: layout style;
    min-height: 72px;
  }

  .navbar-collapse {
    contain: layout;
  }

  .navbar-brand {
    color: var(--text-primary) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 1.75rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
  }

  .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-size: 1.125rem !important; /* 18px - increased for better readability */
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
  }

  .navbar-nav .nav-link:hover {
    color: var(--ucla-blue) !important;
  }

  .navbar-nav .nav-link.nav-vote-urgent {
    color: var(--ca-gold) !important;
    font-weight: 700 !important;
    border: 1.5px solid var(--ca-gold);
    border-radius: 4px;
    padding: 0.4rem 0.85rem !important;
    margin: 0 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .navbar-nav .nav-link.nav-vote-urgent:hover,
  .navbar-nav .nav-link.nav-vote-urgent.active {
    background-color: var(--ca-gold);
    color: #000 !important;
  }

  /* Prevent navbar button reflow during page load */
  .navbar-nav .nav-link {
    min-width: max-content;
    white-space: nowrap;
  }

  /* Reserve space for Discord and Join Us buttons to prevent jumping */
  .navbar-nav .nav-item:nth-last-child(2) .nav-link {
    min-width: 90px;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    min-width: 90px;
  }

  /* Override for dropdown - must come after hover to win specificity */
  .navbar-nav .nav-link.dropdown-toggle:not(:hover):not(.show) {
    color: var(--text-primary) !important;
  }

  .navbar-nav .nav-link.dropdown-toggle:hover,
  .navbar-nav .nav-link.dropdown-toggle.show {
    color: var(--ucla-blue) !important;
  }

  .navbar-toggler {
    border-color: var(--border-secondary) !important;
  }

  .navbar-toggler-icon {
    /* Note: SVG data URL cannot use CSS variables. rgba(255, 255, 255, 0.8) matches --text-quaternary */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Dropdown Menus - Linear-inspired styling */
  .dropdown-menu {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 0.75rem 0 !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    min-width: 220px !important;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.6rem 1.25rem !important;
    transition: color 0.15s ease !important;
    font-size: 0.95rem !important;
    background: transparent !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: transparent !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
  }

  .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0.5rem 1rem !important;
  }

  /* Buttons */
  .btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: var(--btn-padding-md);
    transition: all 0.2s ease;
  }

  .btn-primary {
    background-color: var(--ucla-blue) !important;
    border-color: var(--ucla-blue) !important;
    color: var(--text-inverse) !important; /* Black text for WCAG AA compliance */
  }

  .btn-primary:hover {
    background-color: var(--ucla-blue-hover) !important;
    border-color: var(--ucla-blue-hover) !important;
    color: var(--text-primary) !important;
  }

  .btn-primary:focus {
    background-color: var(--ucla-blue) !important;
    border-color: var(--ucla-blue) !important;
    box-shadow: 0 0 0 0.25rem var(--focus-ring-strong) !important;
    outline: none;
  }

  .btn-secondary {
    background-color: var(--ca-gold) !important;
    border-color: var(--ca-gold) !important;
    color: var(--text-inverse) !important;
  }

  .btn-secondary:hover {
    background-color: var(--ca-gold-hover) !important;
    border-color: var(--ca-gold-hover) !important;
  }

  .btn-secondary:focus {
    background-color: var(--ca-gold) !important;
    border-color: var(--ca-gold) !important;
    box-shadow: 0 0 0 0.25rem var(--focus-ring-strong) !important;
    outline: none;
  }

  .btn-outline-primary {
    color: var(--ucla-blue) !important;
    border-color: var(--ucla-blue) !important;
    background: transparent !important;
  }

  .btn-outline-primary:hover {
    background-color: var(--ucla-blue) !important;
    color: var(--text-inverse) !important; /* Black text for WCAG AA compliance */
  }

  .btn-outline-primary:focus {
    background-color: transparent !important;
    border-color: var(--ucla-blue) !important;
    color: var(--ucla-blue) !important;
    box-shadow: 0 0 0 0.25rem var(--focus-ring-strong) !important;
    outline: none;
  }

  /* Cards */
  .card {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
  }

  .card-header {
    background-color: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-secondary) !important;
    color: var(--text-primary) !important;
  }

  .card-body {
    color: var(--text-primary) !important;
  }

  .card-title {
    color: var(--text-primary) !important;
  }

  .card-text {
    color: var(--text-primary) !important;
  }

  /* Forms */
  .form-control,
  .form-select {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-secondary) !important;
    color: var(--text-primary) !important;
  }

  .form-control:focus,
  .form-select:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--ucla-blue) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.25rem var(--focus-ring) !important;
  }

  .form-control::placeholder {
    color: var(--text-placeholder) !important;
  }

  .form-label {
    color: var(--text-primary) !important;
    font-weight: 500;
  }

  .form-check-input {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-secondary) !important;
  }

  .form-check-input:checked {
    background-color: var(--ucla-blue) !important;
    border-color: var(--ucla-blue) !important;
  }

  .form-check-label {
    color: var(--text-primary) !important;
  }

  /* Alerts */
  .alert {
    border-radius: var(--radius-sm);
  }

  .alert-info {
    background-color: var(--alert-info-bg) !important;
    border-color: var(--alert-info-border) !important;
    color: var(--text-primary) !important;
  }

  .alert-success {
    background-color: var(--alert-success-bg) !important;
    border-color: var(--alert-success-border) !important;
    color: var(--text-primary) !important;
  }

  .alert-warning {
    background-color: var(--alert-warning-bg) !important;
    border-color: var(--alert-warning-border) !important;
    color: var(--text-primary) !important;
  }

  .alert-danger {
    background-color: var(--alert-danger-bg) !important;
    border-color: var(--alert-danger-border) !important;
    color: var(--text-primary) !important;
  }

  /* Hero Section */
  .hero {
    padding: 4rem 0;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary) !important;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem;
  }

  .hero-cta {
    margin-top: 2rem;
  }

  /* Section Styles */
  .section {
    padding: 3rem 0;
  }

  /* Universal Page Headline - Use for major page titles across all pages */
  .page-headline {
    color: var(--ca-gold) !important;
    font-size: 2.5rem;
    font-weight: var(--font-weight-headline);
    font-family: var(--font-headline) !important;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-headline);
    margin-top: 0;
    margin-bottom: 1rem;
  }

  /* Hide breadcrumbs on pages with page-headline for cleaner appearance */
  /* Use broader selector to handle varying HTML structures */
  body:has(.page-headline) nav[aria-label="breadcrumb"] {
    display: none !important;
  }

  /* Remove padding from sections containing page headlines */
  section:has(.page-headline) {
    padding: 0 !important;
  }

  .section-title {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--ucla-blue);
  }

  .section-title.centered {
    text-align: center;
  }

  .section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* CTA Block */
  .cta-block {
    background: linear-gradient(135deg, var(--gradient-blue-start) 0%, var(--gradient-blue-end) 100%);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 2rem 0;
  }

  .cta-block h3 {
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem;
  }

  .cta-block p {
    color: var(--text-tertiary) !important;
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  /* App Container */
  .app-container {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .app-container-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary) !important;
  }

  .app-embed {
    width: 100%;
    min-height: 400px;
    border: none;
  }

  /* Footer */
  .site-footer {
    background-color: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-primary) !important;
    padding: 1rem 0 2rem 0 !important;
    margin-top: 4rem !important;
  }

  .site-footer p,
  .site-footer a {
    color: var(--text-secondary) !important;
    margin: 0;
  }

  .site-footer a:hover {
    color: var(--ucla-blue) !important;
  }

  /* Regulatory Information in Footer */
  .site-footer .regulatory-info {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .site-footer .contact-info {
    text-align: left;
  }

  .site-footer .contact-info strong {
    color: var(--text-primary) !important;
    font-weight: 600;
  }

  .site-footer .registration-info {
    text-align: left;
    font-size: 0.8125rem;
  }

  /* Mobile: Stack vertically with spacing */
  @media (max-width: 767px) {
    .site-footer .contact-info {
      margin-bottom: 1.5rem;
      text-align: center;
    }

    .site-footer .registration-info {
      text-align: center;
    }
  }

  /* Utility Classes */
  .text-gold {
    color: var(--ca-gold) !important;
  }

  .text-blue {
    color: var(--ucla-blue) !important;
  }

  .bg-dark-card {
    background-color: var(--bg-secondary) !important;
    padding: 2rem;
    border-radius: var(--radius-md);
  }

  .border-blue {
    border-color: var(--ucla-blue) !important;
  }

  .border-gold {
    border-color: var(--ca-gold) !important;
  }

  /* ===================================================================
     Media Page Styles
     =================================================================== */
  /* Link hover effect for media cards */
  .card-body a:hover {
    text-decoration: underline !important;
    color: var(--ca-gold) !important;
  }

  /* Ensure cards have equal height */
  .media-hub .card {
    height: 100%;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2rem;
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .section {
      padding: 2rem 0;
    }

    .page-headline {
      font-size: 2rem;
    }

    h1 { font-size: var(--font-size-h1-mobile); }
    h2 { font-size: var(--font-size-h2-mobile); }
    h3 { font-size: var(--font-size-h3-mobile); }
    h4 { font-size: var(--font-size-h4-mobile); }
    h5 { font-size: var(--font-size-h5-mobile); }

    .lead {
      font-size: var(--font-size-lead-mobile);
    }
    h6 { font-size: 1rem; }
  }

  /* ===================================================================
     Quiz Page Styles - "How Californian Are You?" Quiz
     Used by: pages/quiz.html
     Features: Interactive quiz with thermometer visualization
     =================================================================== */
  .quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  .quiz-content {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
  }

  .quiz-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
  }

  .quiz-header {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-lg);
  }

  .quiz-header h1 {
    color: var(--ca-gold) !important;
    font-size: 2.5rem;
    font-weight: var(--font-weight-headline);
    font-family: var(--font-headline) !important;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-headline);
    margin-bottom: 1rem;
  }

  .score-display {
    color: var(--text-primary) !important;
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  /* Tablet breakpoint - reduce gap */
  @media (max-width: 992px) {
    .quiz-content {
      gap: 2rem;
    }
  }

  /* Mobile breakpoint - stack vertically */
  @media (max-width: 768px) {
    .quiz-content {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
    }

    .quiz-left-column {
      max-width: 100%;
      width: 100%;
    }
  }

  /* Question Section */
  .question-section {
    flex: 1;
  }

  .question-card {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .question-text {
    color: var(--text-primary) !important;
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  .quiz-btn {
    display: inline-block !important;
    padding: var(--btn-padding-lg) !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
    text-align: center !important;
    min-width: 120px !important;
  }

  .btn-yes {
    background-color: var(--ucla-blue) !important;
    color: var(--text-inverse) !important; /* Black text for WCAG AA compliance */
  }

  .btn-yes:hover {
    background-color: var(--ucla-blue-hover) !important;
    transform: translateY(-2px);
  }

  .btn-no {
    background-color: var(--border-tertiary) !important;
    color: var(--text-primary) !important;
  }

  .btn-no:hover {
    background-color: var(--border-subtle) !important;
    transform: translateY(-2px);
  }

  /* Thermometer Section */
  .thermometer-section {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .thermometer-container {
    position: relative;
    width: 80px;
    height: 400px;
    margin-bottom: 1rem;
  }

  /* Thermometer tube */
  .thermometer-tube {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 320px;
    background-color: var(--bg-tertiary) !important;
    border: 3px solid var(--border-tertiary) !important;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 30px,
      var(--ca-gold) 30px,
      var(--ca-gold) 31px
    );
  }

  /* Thermometer bulb */
  .thermometer-bulb {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background-color: var(--bg-tertiary) !important;
    border: 3px solid var(--border-tertiary) !important;
    border-radius: var(--radius-circle);
    overflow: hidden;
  }

  /* Mercury */
  .mercury {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--gradient-mercury-start), var(--gradient-mercury-end));
    transition: height 0.8s ease;
  }

  .mercury-bulb {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ucla-blue) !important;
  }

  /* Thermometer labels */
  .thermometer-labels {
    position: absolute;
    width: 260px;
    height: 100%;
    left: 65px;
    top: 0;
  }

  .label {
    position: absolute;
    left: 0;
    color: var(--ca-gold) !important;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: normal;
    max-width: 260px;
    line-height: 1.3;
    text-align: left;
  }

  /* Label positions aligned with thermometer levels */
  .label-100 {
    top: 15px;  /* Top of tube = 100% score */
  }

  .label-75 {
    top: 95px;  /* 25% down from top = 75% score threshold */
  }

  .label-50 {
    top: 175px;  /* 50% down from top = 50% score threshold */
  }

  /* Responsive thermometer adjustments */
  @media (max-width: 992px) {
    /* Reduce thermometer section width on tablets */
    .thermometer-section {
      flex: 0 0 280px;
    }

    .thermometer-labels {
      width: 200px;
    }

    .label {
      font-size: 0.8rem;
      max-width: 200px;
    }
  }

  @media (max-width: 768px) {
    /* Compact thermometer for mobile */
    .thermometer-section {
      flex: none;
      width: 100%;
      max-width: 400px;
    }

    .thermometer-container {
      width: 100%;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Horizontal thermometer layout */
    .thermometer-tube {
      position: relative;
      width: 200px;
      height: 30px;
      bottom: auto;
      left: auto;
      transform: none;
      border-radius: 15px;
      overflow: hidden;
    }

    .thermometer-bulb {
      display: none;  /* Hide bulb on mobile for simplicity */
    }

    .mercury {
      height: 100%;
      width: 0%;
      background: linear-gradient(to right, var(--gradient-mercury-start), var(--gradient-mercury-end));
    }

    /* Simplified labels below thermometer */
    .thermometer-labels {
      position: relative;
      width: 100%;
      height: auto;
      left: 0;
      top: auto;
      margin-top: 1rem;
      display: flex;
      justify-content: space-between;
      padding: 0 1rem;
    }

    .label {
      position: relative;
      top: auto !important;
      left: auto;
      white-space: normal;
      text-align: center;
      font-size: 0.75rem;
      max-width: 30%;
    }

    .label::after {
      content: none;  /* Remove abbreviated text */
    }

    .label-100::before {
      content: "🌟";
      display: block;
      font-size: 1.2rem;
    }
    .label-75::before {
      content: "💪";
      display: block;
      font-size: 1.2rem;
    }
    .label-50::before {
      content: "👍";
      display: block;
      font-size: 1.2rem;
    }

    .tick {
      display: none;  /* Hide tick marks on mobile */
    }

    /* Adjust question card padding on mobile */
    .question-card {
      padding: 1.5rem;
    }

    .question-text {
      font-size: 1.2rem;
    }

    .button-group {
      flex-direction: row;
      gap: 0.75rem;
    }

    .quiz-btn {
      min-width: 100px !important;
      font-size: 1rem !important;
    }
  }

  /* Very small mobile screens */
  @media (max-width: 480px) {
    .quiz-container {
      padding: 1rem;
    }

    .quiz-header h1 {
      font-size: 1.8rem;
    }

    .score-display {
      font-size: 1.2rem;
    }

    .question-text {
      font-size: 1rem;
    }

    .label {
      font-size: 0.7rem;
      max-width: 28%;
    }

    .button-group {
      width: 100%;
    }

    .quiz-btn {
      flex: 1;
      min-width: 80px !important;
    }
  }

  /* Results Section */
  .results-section {
    display: none;
    text-align: center;
    background-color: var(--bg-secondary) !important;
    border: 2px solid var(--ucla-blue) !important;
    border-radius: var(--radius-lg);
    padding: 3rem;
  }

  .results-section.show {
    display: block;
  }

  .results-title {
    color: var(--ca-gold) !important;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
  }

  .results-message {
    color: var(--text-primary) !important;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  .btn-cta {
    background-color: var(--ca-gold) !important;
    color: var(--text-inverse) !important;
    padding: var(--btn-padding-lg);
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .btn-cta:hover {
    background-color: var(--ca-gold-hover) !important;
    transform: translateY(-2px);
  }

  /* ===================================================================
     End Quiz Page Styles
     =================================================================== */

  /* ===================================================================
     Leadership Page Styles
     Used by: NewSite/pages/leadership.html
     Features: Card grid layout for leadership team
     =================================================================== */

  /* Hide empty paragraphs (NationBuilder sometimes adds these) */
  .page-content:has(.leadership-intro) > p:empty,
  .page-content:has(.leadership-intro) > p:blank {
    display: none !important;
  }

  .leadership-intro {
    max-width: 800px;
    margin: 0 0 3rem 0;
    text-align: left;
  }

  .leadership-intro p {
    font-size: 1.125rem;
    color: var(--text-primary);
    opacity: 0.9;
  }

  .leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .leader-card {
    background: var(--bg-secondary);
    border: 3px solid var(--ucla-blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .leader-card:hover {
    border-color: var(--ca-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-gold);
  }

  .leader-photo-wrapper {
    background-color: var(--ucla-blue);
    padding: 10px;
    border-bottom: 3px solid var(--ca-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
  }

  .leader-photo {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
  }

  .leader-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .leader-name {
    color: var(--ca-gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .leader-title {
    color: var(--ucla-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .leader-bio {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    flex-grow: 1;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
  }

  /* Scrollbar styling for bio */
  .leader-bio::-webkit-scrollbar {
    width: 6px;
  }

  .leader-bio::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
  }

  .leader-bio::-webkit-scrollbar-thumb {
    background: var(--ucla-blue);
    border-radius: 3px;
  }

  .leader-bio::-webkit-scrollbar-thumb:hover {
    background: var(--ucla-blue-hover);
  }

  .leader-bio p {
    margin-bottom: 0.75rem;
  }

  .leader-bio p:last-child {
    margin-bottom: 0;
  }

  /* Mobile optimizations for leadership page */
  @media (max-width: 768px) {
    .leadership-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .leader-name {
      font-size: 1.25rem;
    }
  }

  /* ===================================================================
     End Leadership Page Styles
     =================================================================== */

  /* ===================================================================
     Platform Page - Accordion Styles
     =================================================================== */
  /* Custom Accordion Styling */
  .accordion-button:not(.collapsed) {
    background: var(--ucla-blue) !important;
    color: var(--text-inverse) !important; /* Black text for WCAG AA compliance */
  }

  .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem var(--focus-ring) !important;
    border-color: var(--ucla-blue) !important;
  }

  .accordion-button::after {
    filter: brightness(0) invert(1);
  }

  .accordion-button:hover {
    background: var(--hover-overlay-subtle) !important;
  }

  /* ===================================================================
     End Platform Page Styles
     =================================================================== */

  /* ===================================================================
     Site-wide Chatbot Styles
     =================================================================== */
  /* Floating button */
  .chatbot-float-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 144px;
    height: 144px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease;
    padding: 0;
  }

  .chatbot-float-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 20px var(--shadow-colored-strong));
  }

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

  /* Bear icon */
  .chatbot-bear-icon {
    width: 144px;
    height: 144px;
    object-fit: contain;
  }

  /* Caption text */
  .chatbot-caption {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ucla-blue);
    color: var(--text-inverse); /* Black text on light blue for WCAG AA compliance */
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 2px var(--shadow-sm);
    box-shadow: 0 2px 6px var(--shadow-md);
  }

  /* Badge notification */
  .chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ca-gold);
    color: var(--text-inverse);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--bg-primary);
  }

  /* Modal overlay */
  .chatbot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shadow-lg);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
  }

  /* Modal content */
  .chatbot-modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--ucla-blue);
    border-radius: var(--radius-lg);
    width: 75%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px var(--shadow-colored);
    animation: slideInUp 0.3s ease;
  }

  /* Modal header */
  .chatbot-modal-content .chatbot-header {
    background: linear-gradient(135deg, var(--gradient-blue-start) 0%, var(--gradient-blue-end) 100%);
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .chatbot-modal-content .chatbot-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary) !important;
  }

  .chatbot-close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
  }

  .chatbot-close-btn:hover {
    background: var(--hover-overlay);
  }

  /* Modal body */
  .chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
  }

  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

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

  @keyframes pulse-join-box {
    0%, 100% {
      background: rgba(39, 116, 174, 0.1);
      border-color: rgba(39, 116, 174, 0.5);
      box-shadow: 0 4px 12px rgba(39, 116, 174, 0.15);
    }
    50% {
      background: rgba(39, 116, 174, 0.25);
      border-color: rgba(39, 116, 174, 1);
      box-shadow: 0 4px 12px rgba(39, 116, 174, 0.5);
    }
  }

  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .chatbot-float-btn {
      width: 128px;
      height: 128px;
      bottom: 70px;
      right: 16px;
    }

    .chatbot-bear-icon {
      width: 128px;
      height: 128px;
    }

    .chatbot-caption {
      font-size: 0.75rem;
      padding: 0.2rem 0.6rem;
      bottom: 6px;
    }

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

    .chatbot-modal-content .chatbot-header {
      border-radius: 0;
    }
  }

  /* ===================================================================
     End Chatbot Styles
     =================================================================== */

  /* ===================================================================
     Welcome Speech Bubble Styles
     =================================================================== */

  /* Speech bubble container */
  .welcome-bubble {
    position: fixed;
    bottom: 244px; /* Position above chatbot button (144px + 80px bottom margin + 20px gap) */
    right: 20px;
    max-width: 320px;
    z-index: 9998; /* Below chatbot modal (9999) */
    animation: bubblePopIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  /* Bubble content container */
  .welcome-bubble-content {
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px var(--shadow-md);
    border: 2px solid var(--ucla-blue);
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
  }

  /* Cal's avatar in bubble */
  .welcome-bubble-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--ucla-blue);
  }

  /* Message text */
  .welcome-bubble-message {
    color: var(--text-inverse);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
  }

  /* Speech bubble tail (triangle pointing to chatbot button) */
  .welcome-bubble-tail {
    position: absolute;
    bottom: -12px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--ucla-blue);
  }

  .welcome-bubble-tail::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--text-primary);
  }

  /* Close button */
  .welcome-bubble-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-placeholder);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
  }

  .welcome-bubble-close:hover {
    color: var(--text-inverse);
  }

  /* Pop-in animation */
  @keyframes bubblePopIn {
    0% {
      opacity: 0;
      transform: scale(0) translateY(20px);
      transform-origin: bottom right;
    }
    70% {
      transform: scale(1.05) translateY(0);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
      transform-origin: bottom right;
    }
  }

  /* Pop-out animation */
  @keyframes bubblePopOut {
    0% {
      opacity: 1;
      transform: scale(1) translateY(0);
      transform-origin: bottom right;
    }
    100% {
      opacity: 0;
      transform: scale(0.8) translateY(10px);
      transform-origin: bottom right;
    }
  }

  /* Class for closing animation */
  .welcome-bubble-closing {
    animation: bubblePopOut 0.3s ease-out forwards !important;
  }

  /* Mobile responsive */
  @media (max-width: 576px) {
    .welcome-bubble {
      right: 10px;
      left: 10px;
      max-width: none;
      bottom: 218px; /* 128px button + 70px margin + 20px gap */
    }

    .welcome-bubble-content {
      padding: 1rem;
    }

    .welcome-bubble-avatar {
      width: 40px;
      height: 40px;
    }

    .welcome-bubble-message {
      font-size: 0.9rem;
    }

    .welcome-bubble-tail {
      right: 15px;
    }
  }

  /* ===================================================================
     End Welcome Speech Bubble Styles
     =================================================================== */

  /* ===================================================================
     Hero Video Overlay Styles
     Used for: First-time home page visit video intro
     =================================================================== */
  .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-video-overlay video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .hero-content-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-content-fade-in {
    animation: fadeIn 1s ease-in forwards;
  }

  .video-fade-out {
    animation: fadeOut 1s ease-out forwards;
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* ===================================================================
     End Hero Video Overlay Styles
     =================================================================== */

  /* ===================================================================
     Campaign Interstitial Styles
     Used for: Sean Forbes campaign announcement on home page
     =================================================================== */
  .interstitial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    cursor: pointer;
  }

  .interstitial-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 11;
  }

  .interstitial-close:hover {
    opacity: 1;
  }

  .interstitial-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    cursor: default;
  }

  .interstitial-text {
    flex: 1;
  }

  .interstitial-headline {
    font-family: var(--font-headline) !important;
    font-size: 3rem !important;
    font-weight: var(--font-weight-headline) !important;
    letter-spacing: var(--letter-spacing-headline) !important;
    color: var(--ca-gold) !important;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem !important;
  }

  .interstitial-tagline {
    font-family: var(--font-body) !important;
    font-size: 1.5rem !important;
    color: var(--text-primary) !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.4;
  }

  .interstitial-body {
    font-family: var(--font-body) !important;
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem !important;
    line-height: 1.6;
    max-width: 500px;
  }

  .interstitial-cta {
    display: inline-block;
    background-color: var(--ca-gold) !important;
    color: var(--bg-primary) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }

  .interstitial-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.3);
    color: var(--bg-primary) !important;
    text-decoration: none !important;
  }

  .interstitial-photo {
    flex-shrink: 0;
  }

  .interstitial-photo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ca-gold);
  }

  .interstitial-fade-out {
    animation: fadeOut 0.5s ease-out forwards;
  }

  /* AMA variant: dual TikTok CTA buttons */
  .interstitial-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }

  .interstitial-cta-label {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0.25rem !important;
  }

  /* Mobile responsive */
  @media (max-width: 768px) {
    .interstitial-content {
      flex-direction: column-reverse;
      text-align: center;
      gap: 1.5rem;
    }

    .interstitial-headline {
      font-size: 2rem !important;
    }

    .interstitial-tagline {
      font-size: 1.2rem !important;
    }

    .interstitial-body {
      font-size: 1rem !important;
      max-width: 100%;
    }

    .interstitial-photo img {
      width: 200px;
      height: 200px;
    }

    .interstitial-cta {
      width: 100%;
      text-align: center;
    }

    .interstitial-cta-group {
      flex-direction: column;
      width: 100%;
    }

    .interstitial-cta-label {
      width: 100%;
    }
  }

  /* Markdown-sourced interstitial content (announcement `interstitial` slot).
     The body is admin-authored Markdown rendered to plain h2/p/a/img, so style
     those generic elements to echo the original gold-on-dark poster look. */
  .interstitial-content.interstitial-md {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    max-width: 760px;
  }

  .interstitial-md img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ca-gold);
    margin: 0 auto;
  }

  .interstitial-md h1,
  .interstitial-md h2 {
    font-family: var(--font-headline) !important;
    font-size: 3rem !important;
    font-weight: var(--font-weight-headline) !important;
    letter-spacing: var(--letter-spacing-headline) !important;
    color: var(--ca-gold) !important;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 0.25rem !important;
  }

  .interstitial-md p {
    font-family: var(--font-body) !important;
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    margin: 0 auto !important;
    max-width: 560px;
  }

  /* The tagline is a bold-only paragraph (**…**) → reads as a subhead. Scoped
     to a direct child of <p> so it never matches the bold inside CTA links. */
  .interstitial-md p > strong {
    display: inline-block;
    font-size: 1.4rem !important;
    color: var(--text-primary) !important;
    font-weight: 700;
  }

  .interstitial-md a {
    display: inline-block;
    background-color: var(--ca-gold) !important;
    color: var(--bg-primary) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0.25rem 0.35rem;
  }

  .interstitial-md a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.3);
    color: var(--bg-primary) !important;
  }

  @media (max-width: 768px) {
    .interstitial-md h1,
    .interstitial-md h2 { font-size: 2rem !important; }
    .interstitial-md p:first-of-type { font-size: 1.15rem !important; }
    .interstitial-md img { width: 160px; height: 160px; }
  }

  /* ===================================================================
     End Campaign Interstitial Styles
     =================================================================== */

  /* ===================================================================
     Splash Video Styles
     Used for: First-visit campaign video modal (home page)
     =================================================================== */
  .splash-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in forwards;
  }

  .splash-video-fade-out {
    animation: fadeOut 0.35s ease-out forwards;
  }

  .splash-video-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
  }

  .splash-video-close:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .splash-video-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 960px;
  }

  .splash-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 3px solid var(--ca-gold);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  }

  .splash-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* Transparent layer over the player: makes the whole video a
     one-click "turn on sound" target while it is muted. Removed
     (via the [hidden] attribute) once the visitor unmutes. */
  .splash-video-clickcatch {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    cursor: pointer;
  }

  .splash-video-unmute {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--ca-gold);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.9rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, opacity 0.3s ease;
  }

  .splash-video-unmute:hover {
    transform: scale(1.05);
  }

  .splash-video-unmute-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .splash-video-skip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
  }

  .splash-video-skip:hover {
    color: var(--ca-gold);
  }

  @media (max-width: 768px) {
    .splash-video-overlay {
      padding: 1rem;
    }

    .splash-video-close {
      font-size: 2rem;
      top: 0.5rem;
      right: 0.75rem;
    }

    .splash-video-unmute {
      font-size: 0.8rem;
      padding: 0.4rem 0.7rem;
    }
  }

  /* ===================================================================
     End Splash Video Styles
     =================================================================== */

  /* ===================================================================
     Road to Socialism Section (home page)
     =================================================================== */
  .road-to-socialism-section {
    padding: 2rem 0;
  }

  .road-to-socialism-headline {
    font-family: var(--font-headline) !important;
    font-weight: var(--font-weight-headline) !important;
    letter-spacing: var(--letter-spacing-headline) !important;
    text-transform: uppercase;
    color: var(--ca-gold) !important;
    font-size: 3.25rem;
    line-height: 1.05;
    margin-bottom: 1.5rem !important;
  }

  .socialism-link {
    color: var(--ucla-blue, #2774AE) !important;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .socialism-link:hover,
  .socialism-link:focus {
    color: var(--ca-gold) !important;
    text-decoration-color: var(--ca-gold);
  }

  .road-to-socialism-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 2px solid var(--border-primary);
  }

  .road-to-socialism-image.image-carousel {
    border: none;
  }

  .no-ice-col {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .no-ice-badge {
    width: 100%;
    max-width: 260px;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }

  .slogan-row {
    margin-top: 1.5rem !important;
  }

  .slogan-box {
    height: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-left: 6px solid var(--ca-gold);
    border-radius: 0.75rem;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .slogan-box h3 {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-heading) !important;
    color: var(--text-primary) !important;
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 2px solid var(--border-primary);
  }

  .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
  }

  .carousel-slide-active {
    opacity: 1;
  }

  .carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
  }

  /* WCAG 2.5.5 (T5.4): touch targets ≥ 24×24 px. The visible dot stays 12×12
     (design parity with NB); we pad the button so the hit area is 24×24
     and render the visible dot via ::before. */
  .carousel-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }
  .carousel-dot::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  .carousel-dot-active::before {
    background: var(--ca-gold);
    border-color: var(--ca-gold);
  }

  @media (max-width: 768px) {
    .road-to-socialism-headline {
      font-size: 2.25rem;
    }

    .no-ice-badge {
      max-width: 200px;
    }

    .slogan-box h3 {
      font-size: 1.15rem;
    }
  }

  /* Socialism modal */
  .socialism-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  .socialism-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2.25rem 2rem;
    position: relative;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .socialism-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0.25rem 0.5rem;
  }

  .socialism-modal-close:hover {
    opacity: 1;
  }

  .socialism-modal h2 {
    font-family: var(--font-headline) !important;
    font-weight: var(--font-weight-headline) !important;
    letter-spacing: var(--letter-spacing-headline) !important;
    text-transform: uppercase;
    color: var(--ca-gold) !important;
    font-size: 2rem;
    margin-bottom: 1.25rem !important;
    padding-right: 2rem;
  }

  .socialism-modal p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .socialism-modal ul {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
  }

  .socialism-modal li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.35rem;
  }

  .socialism-modal .creed {
    font-style: italic;
    color: var(--ca-gold);
    margin-top: 1.25rem;
    font-weight: 600;
  }

  @media (max-width: 768px) {
    .socialism-modal {
      padding: 1.5rem 1.25rem;
    }

    .socialism-modal h2 {
      font-size: 1.5rem;
    }

    .socialism-modal p,
    .socialism-modal li {
      font-size: 1rem;
    }
  }
  /* ===================================================================
     End Road to Socialism Section
     =================================================================== */

  /* Fix for donate button text visibility - maximum specificity to override navbar styles */
  div.form input[type="submit"].btn.btn-primary.btn-lg.submit-button,
  div.form input[type="submit"].btn.btn-primary.btn-lg.submit-button:hover,
  div.form input[type="submit"].btn.btn-primary.btn-lg.submit-button:focus,
  div.form input[type="submit"].btn.btn-primary.btn-lg.submit-button:active,
  div.form input[type="submit"].btn.btn-primary.btn-lg.submit-button:visited,
  input[type="submit"].btn.btn-primary.btn-lg,
  input[type="submit"].btn.btn-primary.btn-lg:hover,
  input[type="submit"].btn.btn-primary.btn-lg:focus,
  input[type="submit"].btn.btn-primary.btn-lg:active,
  input[type="submit"].btn.btn-primary.btn-lg:visited,
  input[type="submit"].btn.btn-primary,
  input[type="submit"].btn.btn-primary:hover,
  input[type="submit"].btn.btn-primary:focus,
  input[type="submit"].btn.btn-primary:active,
  input[type="submit"].btn.btn-primary:visited,
  input[type="submit"].submit-button,
  input[type="submit"].submit-button:hover,
  input[type="submit"].submit-button:focus,
  input[type="submit"].submit-button:active,
  input[type="submit"].submit-button:visited,
  button.btn-primary,
  button.btn-primary:hover,
  button.btn-primary:focus,
  button.btn-primary:active,
  button.btn-primary:visited,
  .submit-button.btn-primary,
  .submit-button.btn-primary:hover,
  .submit-button.btn-primary:focus,
  .submit-button.btn-primary:active,
  .submit-button.btn-primary:visited,
  .form input[type="submit"],
  .form input[type="submit"]:hover,
  .form input[type="submit"]:focus,
  .form input[type="submit"]:active,
  .form input[type="submit"]:visited {
    color: var(--text-inverse) !important; /* Black text for WCAG AA compliance */
    background-color: var(--ucla-blue) !important;
    border-color: var(--ucla-blue) !important;
  }

  /* Extra override to beat navbar link styles that are somehow affecting buttons */
  .navbar-nav .nav-link.btn-primary,
  a.btn-primary,
  a.btn-primary:hover,
  a.btn-primary:active,
  a.btn-primary:visited {
    color: var(--text-inverse) !important; /* Black text for WCAG AA compliance */
  }

  /* ===================================================================
     Topics Page Styles
     =================================================================== */
  #topic-title {
    color: var(--ca-gold) !important;
    font-family: var(--font-headline) !important;
    font-size: var(--font-size-h1) !important;
    font-weight: var(--font-weight-headline) !important;
    text-transform: uppercase !important;
    letter-spacing: var(--letter-spacing-headline) !important;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  /* Remove section padding above topic title */
  section:has(#topic-title) {
    padding-top: 0 !important;
  }

  @media (max-width: 768px) {
    #topic-title {
      font-size: var(--font-size-h1-mobile) !important;
    }
  }

  /* ===================================================================
     End Topics Page Styles
     =================================================================== */

  /* ===================================================================
     Skip Link - Accessibility
     Allows keyboard users to skip navigation and jump to main content
     =================================================================== */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 100000;
    padding: 8px 16px;
    background: var(--ucla-blue);
    color: var(--text-inverse); /* Black text for WCAG AA compliance */
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top 0.2s ease;
  }

  .skip-link:focus {
    top: 0;
  }

  .skip-link:hover,
  .skip-link:focus {
    color: white;
    background: var(--ca-gold);
  }
  /* ===================================================================
     End Skip Link Styles
     =================================================================== */

  /* ===================================================================
     Discord Chapter Join Modal Styles
     =================================================================== */
  #discordJoinModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1060 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  #discordJoinModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #discordJoinModal .modal-dialog {
    position: relative !important;
    margin: 1.75rem auto !important;
    max-width: 500px !important;
    width: 90% !important;
    z-index: 1061 !important;
  }

  #discordJoinModal .modal-content {
    position: relative !important;
    background: #1a1a1a !important;
    border: 2px solid var(--ca-gold) !important;
    z-index: 1062 !important;
  }

  #discordJoinModal .modal-header {
    border-bottom: 1px solid #2a2a2a !important;
  }

  #discordJoinModal .modal-title {
    color: var(--ca-gold) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
  }

  #discordJoinModal .modal-body {
    color: var(--text-primary) !important;
  }

  /* Ensure backdrop is below modal - Bootstrap default is 1050 */
  .modal-backdrop {
    z-index: 1055 !important;
  }
  /* ===================================================================
     End Discord Modal Styles
     =================================================================== */

  /* ===================================================================
     How to Vote 6/2 Page Styles
     =================================================================== */
  .vote-page {
    max-width: 960px;
    margin: 0 auto;
  }

  .vote-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 3px solid var(--ca-gold);
    background: rgba(255, 209, 0, 0.05);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .vote-hero-portrait {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ca-gold);
    background: #fff;
  }

  .vote-hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .vote-hero-text {
    flex: 1 1 auto;
    min-width: 220px;
  }

  .vote-kicker {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ca-gold);
    margin: 0 0 0.25rem 0;
  }

  .vote-name {
    font-family: var(--font-headline);
    font-weight: var(--font-weight-headline);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: var(--letter-spacing-headline);
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
  }

  .vote-office {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
  }

  .vote-when {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ucla-blue-light);
    margin: 0;
    letter-spacing: 0.05em;
  }

  .vote-cta-row {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
  }

  .vote-cta-bottom {
    margin-top: 2rem;
  }

  .vote-download-btn {
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    padding: 0.85rem 1.75rem !important;
    font-size: 1.1rem !important;
  }

  .vote-cta-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.7));
    font-style: italic;
  }

  .vote-intro {
    text-align: center;
    margin: 2rem 0 1.5rem 0;
  }

  .vote-intro h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
  }

  .vote-intro p {
    font-size: 1.125rem;
    color: var(--ucla-blue-light);
    margin: 0;
  }

  .vote-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .vote-rule {
    border: 2px solid var(--ucla-blue);
    background: rgba(139, 184, 232, 0.05);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .vote-rule-wide {
    grid-column: 1 / -1;
  }

  .vote-rule-num {
    flex: 0 0 auto;
    font-family: var(--font-headline);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    border: 3px solid var(--ca-gold);
    color: var(--ca-gold);
    padding: 0.25rem 0.75rem;
    min-width: 56px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
  }

  .vote-rule-body {
    flex: 1 1 auto;
  }

  .vote-rule-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem 0;
    color: var(--ca-gold);
    line-height: 1.2;
  }

  .vote-rule-body p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
  }

  .vote-rule-body p:last-child {
    margin-bottom: 0;
  }

  .vote-ballot-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
  }

  .vote-ballot-col {
    text-align: center;
  }

  .vote-ballot {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 0.75rem;
    text-align: left;
    font-family: var(--font-body);
  }

  .vote-ballot-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #000;
    padding-bottom: 0.25rem;
    margin-bottom: 0.4rem;
  }

  .vote-ballot-office {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }

  .vote-ballot-opt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #888;
    margin: 0.15rem 0;
  }

  .vote-bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #000;
    display: inline-block;
    flex-shrink: 0;
    background: #fff;
  }

  .vote-bubble-filled {
    background: #000;
  }

  .vote-ballot-writein {
    border-top: 1px solid #000;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .vote-ballot-name {
    flex: 1;
    border-bottom: 1.5px solid #000;
    padding: 0 0.25rem 0.15rem 0.25rem;
    font-family: "Bradley Hand", "Brush Script MT", "Snell Roundhand", cursive;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
  }

  .vote-ballot-writein-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #000;
    margin-top: 0.25rem;
  }

  .vote-verdict {
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .vote-verdict-bad {
    color: #ff6b6b;
  }

  .vote-verdict-good {
    color: var(--ca-gold);
  }

  .vote-callout {
    margin: 2rem 0;
    border: 5px double var(--ca-gold);
    padding: 1.25rem 1.5rem;
    text-align: center;
    background: rgba(255, 209, 0, 0.08);
  }

  .vote-callout-big {
    font-family: var(--font-headline);
    font-weight: var(--font-weight-headline);
    font-size: 1.75rem;
    letter-spacing: var(--letter-spacing-headline);
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0;
    color: var(--ca-gold);
  }

  .vote-callout-small {
    margin: 0.5rem 0 0 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
  }

  .vote-source {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.6));
    margin-top: 1.5rem;
    font-style: italic;
  }

  @media (max-width: 768px) {
    .vote-hero {
      flex-direction: column;
      text-align: center;
    }
    .vote-name {
      font-size: 2.25rem;
    }
    .vote-office {
      font-size: 1.05rem;
    }
    .vote-rules {
      grid-template-columns: 1fr;
    }
    .vote-ballot-compare {
      grid-template-columns: 1fr;
    }
    .vote-callout-big {
      font-size: 1.35rem;
    }
  }
  /* ===================================================================
     End How to Vote 6/2 Page Styles
     =================================================================== */

  /* ===================================================================
     /join Page — visual parity with votecnp.org
     ===================================================================
     Replicates the NB layout: a gold page title, a single-line subtitle,
     and a blue-bordered "step card" wrapping the tier tabs + descriptions.
     Tabs render as plain text links with a gold underline on the active
     pill (data-bs-toggle="pill" still drives state). Migration 213 seeds
     the matching body HTML. */
  .join-page-title {
    /* !important overrides the global h1..h6 color rule (line ~205). */
    color: var(--ca-gold) !important;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: 0.01em;
  }
  .join-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem 0;
  }
  .join-step-card {
    border: 1px solid var(--ucla-blue);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
  }
  .join-step-title {
    color: var(--ca-gold) !important;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
  }
  /* Tab strip: plain blue text links, gold underline on active. */
  .membership-tabs {
    border-bottom: 1px solid rgba(139, 184, 232, 0.25);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  .membership-tabs .nav-link {
    background: transparent !important;
    color: var(--ucla-blue-light) !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
  }
  .membership-tabs .nav-link:hover {
    color: var(--ucla-blue) !important;
    border-bottom-color: rgba(255, 209, 0, 0.4) !important;
  }
  .membership-tabs .nav-link.active {
    background: transparent !important;
    color: var(--ucla-blue) !important;
    border-bottom: 3px solid var(--ca-gold) !important;
  }
  /* Tier descriptions inside each tab pane. */
  .membership-tab-content h3 {
    color: var(--ca-gold) !important;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-top: 0;
  }
  .membership-tab-content h4 {
    color: #fff;
    margin-top: 1.25rem;
  }
  .tier-pricing {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0.5rem 0 1rem 0;
  }
  .tier-description {
    color: #e0e0e0;
    line-height: 1.6;
  }
  /* FPPC + tax-deductibility notice — inline, immediately above each Join
     button so the visitor reads it at the action moment. Replaced the
     "Step 2: Before You Check Out" card from migration 214 (sat below the
     fold). Compact, gold-bordered to draw the eye without being shouty. */
  .checkout-notice {
    border-left: 3px solid var(--ca-gold);
    background: rgba(255, 209, 0, 0.06);
    padding: 0.85rem 1rem;
    margin: 1.25rem 0 0 0;
    border-radius: 0 6px 6px 0;
  }
  .checkout-notice p {
    margin: 0 0 0.5rem 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .checkout-notice p:last-child {
    margin-bottom: 0;
  }
  .checkout-notice .tax-line {
    font-size: 0.9rem;
    color: #c8c8c8;
  }
  /* ===================================================================
     End /join Page Styles
     =================================================================== */

  /* /_dev/stripe-landing — dev-only placeholder page. Production 404s the
     route, but if you're seeing it on dev/staging the gold "callout" box
     names the marker that was clicked so you can trace it back to its
     setting key. Visually de-emphasized vs. real pages (no big hero) so
     no one mistakes it for the actual checkout. */
  .dev-stripe-landing h1 {
    color: var(--ca-gold) !important;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
  }
  .dev-stripe-landing h2 {
    color: var(--ca-gold) !important;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    margin-top: 1.5rem;
  }
  .dev-stripe-landing code {
    background: rgba(255, 209, 0, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    color: var(--ca-gold);
  }
  .dev-stripe-callout {
    border: 1px dashed var(--ca-gold);
    background: rgba(255, 209, 0, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    color: #e0e0e0;
  }
