/* ======================================
   TIJDVERDRIJF - COMMUNITY SITE
   ====================================== */

@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --text: #FFFFFF;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ECFF0C;
  --accent-dim: rgba(236, 255, 12, 0.06);
  --border: #2A2A2A;
  --border-subtle: #1A1A1A;
  --success: #4ADE80;
  --danger: #F87171;
  --warning: #F59E0B;
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: body-in 0.3s ease forwards;
  padding-top: 64px;
}

@keyframes body-in {
  to { opacity: 1; }
}

/* --- Layout --- */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Links --- */

a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

/* --- Language toggle (subpages) --- */

/* Hide inline EN blocks by default (dual-block legal pages).
   `:not(html)` keeps this from matching <html lang="en"> when i18n
   flips the document language, which would otherwise hide the page. */
:not(html)[lang="en"] {
  display: none;
}

html[data-lang="en"] :not(html)[lang="nl"] {
  display: none;
}

html[data-lang="en"] :not(html)[lang="en"] {
  display: block;
}

html[data-lang="en"] .inline[lang="en"] {
  display: inline;
}

html[data-lang="en"] .inline[lang="nl"] {
  display: none;
}

/* --- Skip link --- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

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

/* --- Focus --- */

.cta-btn:focus-visible,
.hero-btn:focus-visible,
.lang-btn:focus-visible,
.navbar-logo:focus-visible,
.navbar-link:focus-visible,
.navbar-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ======================================
   NAVBAR
   ====================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 3px solid var(--accent);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px 0 0;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}

.navbar-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.navbar-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.navbar-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--text);
}

.navbar-link.active {
  color: var(--text);
}

.navbar-cta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

/* Event-count pill on the Events nav link. Drawn as a pseudo-element from a
   data attribute (set by js/nav-badges.js) so i18n textContent swaps can't
   wipe it and it never becomes a stretched flex item in the mobile menu. */
.navbar-link[data-nav-badge]::after {
  content: attr(data-nav-badge);
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Same count on the hamburger button so the collapsed mobile menu signals
   there's something inside. Hidden on desktop with the button itself. */
.navbar-hamburger[data-nav-badge]::after {
  content: attr(data-nav-badge);
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  white-space: nowrap;
}

.navbar-cta:hover {
  opacity: 0.75;
  text-decoration: none;
}

.navbar-hamburger {
  display: none;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

.navbar-hamburger svg {
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 600px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 3px solid var(--accent);
    padding: 8px 0;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-link,
  .navbar-cta {
    display: block;
    padding: 12px 24px;
    text-align: left;
    border-radius: 0;
  }

  .navbar-cta {
    margin: 8px 24px;
    text-align: center;
    border-radius: 6px;
  }

  .navbar-hamburger {
    display: block;
  }
}

.lang-toggle {
  display: flex;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.lang-btn.active {
  color: var(--accent);
}

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

.lang-btn.active:hover {
  color: var(--accent);
}

/* ======================================
   CTA (subpages)
   ====================================== */

.cta-wrap {
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}

.cta-btn::after {
  content: '\2192';
  transition: transform 0.25s ease;
  font-size: 1.125rem;
}

.cta-btn:hover {
  background: rgba(236, 255, 12, 0.15);
  color: var(--accent);
  text-decoration: none;
}

.cta-btn:hover::after {
  transform: translateX(4px);
}

/* ======================================
   HERO
   ====================================== */

.hero {
  position: relative;
  text-align: center;
  padding: 160px 24px 100px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* TV-static noise: feTurbulence (type=turbulence is sharper/artifact-y than
   fractalNoise). Opacity ~0.12 + screen blend on the dark bg reads as white
   grain. Mask-faded to transparent in the last ~30% so the hero blends into
   the #0A0A0A page bg without a visible seam. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 240px;
  opacity: 0.12;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(236, 255, 12, 0.22) 0%, rgba(236, 255, 12, 0.08) 35%, transparent 70%);
  animation: glow-breathe 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
}

.hero-logo,
.hero-tagline,
.hero-subtitle {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-logo { animation-delay: 0.15s; }
.hero-tagline { animation-delay: 0.35s; }
.hero-subtitle { animation-delay: 0.55s; }

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  margin-bottom: 48px;
}

.hero-logo img {
  height: 144px;
  width: auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Hero buttons --- */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.hero-btn:hover {
  text-decoration: none;
}

.hero-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.hero-btn-primary:hover {
  opacity: 0.75;
}

.hero-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.hero-btn-secondary:hover {
  background: rgba(236, 255, 12, 0.15);
  color: var(--accent);
}

.scroll-indicator {
  margin-top: 48px;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0;
  animation-delay: 1s;
}

@keyframes bounce {
  0% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(8px); }
  100% { opacity: 0.4; transform: translateY(0); }
}

/* ======================================
   SECTIONS
   ====================================== */

.section {
  padding: 80px 24px;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.section + .section {
  border-top: 1px solid var(--border-subtle);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* ======================================
   UPCOMING EVENTS (Section 2)
   ====================================== */

.upcoming-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  border-color: var(--border);
  background: #1a1a1a;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.event-card-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.event-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.event-card-location {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.event-card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.event-card-genre {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(236, 255, 12, 0.08);
  color: var(--accent);
  border: 1px solid rgba(236, 255, 12, 0.15);
}

.event-card-genre-more {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.event-card-rsvp {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.no-events {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.upcoming-more {
  margin-top: 24px;
}

/* ======================================
   HOMEPAGE CARD GRID
   Shared by Binnenkort + Open Calls — same column rules so the two sections
   feel visually unified.
   ====================================== */

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

/* Homepage upcoming-event card. Minimal — no images, just the scannable bits. */
.home-event-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--card, #141414);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 12px;
  color: var(--text, #fff);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.home-event-card:hover {
  border-color: var(--border-hover, #3A3A3A);
  background: #1A1A1A;
  transform: translateY(-2px);
  text-decoration: none;
}

.home-event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-event-title {
  margin: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.home-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}

.home-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary, #888);
}

.home-event-meta-sep {
  color: var(--text-muted, #555);
}

.home-event-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.link-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.link-cta:hover {
  text-decoration: underline;
}

/* ======================================
   HOMEPAGE REQUESTS
   ====================================== */

.requests-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: -20px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ======================================
   STORY (Section 3)
   ====================================== */

.story-section {
  text-align: center;
  padding: 100px 24px;
}

.story-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
}

.story-highlight {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--accent);
  line-height: 1.2;
}

/* ======================================
   THREE PATHS (Section 4)
   ====================================== */

.paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.path-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.path-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.2;
}

.path-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.path-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.path-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ======================================
   EVENT REQUEST CTA (Section 5)
   ====================================== */

.request-cta {
  border-left: 3px solid var(--accent);
  padding: 32px;
  background: linear-gradient(90deg, rgba(236, 255, 12, 0.04), transparent 60%);
  border-radius: 0 12px 12px 0;
}

.request-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.request-cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ======================================
   WHATSAPP CHANNEL CTA (shared)
   Used on homepage (wa-cta-hero, full-width block),
   community page (wa-cta-inline, single-line row),
   music + request-confirm (wa-cta-compact, card variant).
   WhatsApp brand green #25D366 - never use the app's
   yellow accent here; the whole point is visual recognition.
   ====================================== */

.wa-cta-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.02) 70%);
  border-left: 3px solid #25D366;
  border-radius: 0 12px 12px 0;
}

.wa-cta-hero-text {
  flex: 1 1 300px;
  min-width: 0;
}

.wa-cta-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.2;
}

.wa-cta-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Homepage "Get the app" CTA band - mirrors .wa-cta-hero in accent yellow. */
.home-app-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(236, 255, 12, 0.08), rgba(236, 255, 12, 0.02) 70%);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.home-app-cta-text {
  flex: 1 1 300px;
  min-width: 0;
}

.home-app-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.2;
}

.home-app-cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  white-space: nowrap;
  transition: background var(--duration-normal, 300ms) ease,
              transform var(--duration-fast, 150ms) ease;
}

.wa-cta-btn:hover,
.wa-cta-btn:focus-visible {
  background: #1FAA52;
  transform: translateY(-1px);
}

.wa-cta-btn svg {
  flex-shrink: 0;
  fill: currentColor;
}

.wa-cta-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  margin: 4px 0 24px;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background var(--duration-normal, 300ms) ease,
              border-color var(--duration-normal, 300ms) ease;
}

.wa-cta-inline:hover,
.wa-cta-inline:focus-visible {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
}

.wa-cta-inline svg {
  color: #25D366;
  fill: currentColor;
  flex-shrink: 0;
}

.wa-cta-inline .wa-cta-inline-arrow {
  color: var(--text-secondary);
  margin-left: 2px;
}

.wa-cta-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 12px;
  margin: 24px 0;
}

.wa-cta-compact-text {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .wa-cta-hero {
    padding: 20px;
    gap: 16px;
  }

  .wa-cta-hero-title {
    font-size: 1.125rem;
  }

  .wa-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ======================================
   JOIN FORM (Section 6)
   ====================================== */

.join-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.join-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -4px 0 10px;
}

.form-input {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input-short {
  max-width: 160px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.char-count {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.char-count.met {
  color: var(--text-secondary);
}

.form-field-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* --- Role pills --- */

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.role-pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.role-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(236, 255, 12, 0.06);
}

.anders-input {
  display: none;
  margin-top: 0.5rem;
}

.anders-input.visible {
  display: block;
}

/* --- Submit button --- */

.form-submit {
  display: block;
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.form-submit:hover {
  opacity: 0.75;
}

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

/* --- Form feedback --- */

.form-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--danger);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--danger);
  margin-bottom: 16px;
}

.form-success {
  text-align: center;
  padding: 48px 0;
}

.form-success svg {
  margin-bottom: 16px;
}

.form-success p {
  font-size: 1.125rem;
  color: var(--success);
  font-weight: 500;
}

/* ======================================
   GENRE PICKER (popular + collapsible all)
   Shared by /community and the subscribe form on /.
   Requires .filter-pill from events.css.
   ====================================== */

.genre-section-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  align-self: center;
  white-space: nowrap;
}

.genre-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 34px;
  overflow: hidden;
}

.genre-all {
  position: relative;
  margin-top: 24px;
}

.genre-all-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.genre-all-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.85) 50%, rgba(10, 10, 10, 1) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.genre-all-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.genre-all-overlay svg {
  color: var(--text-muted);
  transition: color 0.15s;
}

.genre-all-overlay:hover svg {
  color: var(--text);
}

/* ======================================
   FOOTER
   ====================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-connect-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-connect-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-connect-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-connect-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-connect-link:hover,
.footer-connect-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-connect-link:hover svg,
.footer-connect-link:focus-visible svg {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.footer-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-green:hover,
.footer-green:focus-visible {
  color: var(--success);
  outline: none;
}

.footer-green-leaf {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .footer {
    padding: 32px 24px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ======================================
   MANIFESTO PAGE
   ====================================== */

.page-title {
  text-align: center;
  padding: 72px 0 40px;
}

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}

.manifesto-content {
  padding-bottom: 72px;
}

.manifesto-content p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.manifesto-content p strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 4px;
}

.manifesto-highlight {
  border-left: 2px solid var(--accent);
  padding: 20px 0 20px 24px;
  margin: 48px 0;
  background: linear-gradient(90deg, var(--accent-dim), transparent 80%);
}

.manifesto-highlight strong {
  font-size: 1.25rem !important;
  color: var(--accent) !important;
  margin-top: 0 !important;
}

.manifesto-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text);
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.manifesto-byline {
  color: var(--text-muted) !important;
  font-size: 0.875rem !important;
  font-style: italic;
  margin-bottom: 40px !important;
}

.manifesto-footer {
  margin-top: 56px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

.manifesto-back {
  margin-bottom: 24px !important;
  font-size: 0.875rem !important;
}

.manifesto-back a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.manifesto-back a:hover {
  color: var(--accent);
}

.manifesto-cta {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.manifesto-cta a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.manifesto-cta a::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.2s;
}

.manifesto-cta a:hover {
  opacity: 0.85;
}

.manifesto-cta a:hover::after {
  transform: translateX(4px);
}

/* --- "In de media" section (manifest pages) --- */

.media-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.media-section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.media-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.media-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.media-btn-outline:hover,
.media-btn-outline:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
  transform: translateY(-1px);
}

.media-btn-outline .media-btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.media-btn-outline:hover .media-btn-arrow,
.media-btn-outline:focus-visible .media-btn-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 480px) {
  .media-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .media-btn-outline {
    justify-content: center;
  }
}

/* ======================================
   LEGAL PAGES
   ====================================== */

.legal-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.8125rem;
}

.legal-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 48px;
}

.legal-summary-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 6px;
}

.legal-summary-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .legal-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.legal-summary-col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.legal-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  padding: 6px 0;
}

.legal-summary-mark {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4;
  flex: 0 0 auto;
  width: 18px;
  text-align: center;
}

.legal-summary-list--do .legal-summary-mark {
  color: var(--success);
}

.legal-summary-list--dont .legal-summary-mark {
  color: var(--danger);
}

.legal-body {
  padding-bottom: 64px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  margin-top: 56px;
  margin-bottom: 14px;
}

/* First h2 inside an article shouldn't double-up against the subtitle */
.legal-body .legal-subtitle + h2 {
  margin-top: 24px;
}

.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-body p {
  margin-bottom: 12px;
}

.legal-body ul,
.legal-body ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 4px;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.8125rem;
}

.legal-body th {
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.legal-body td:last-child {
  font-family: var(--font-mono);
}

.legal-body tr:nth-child(even) {
  background: var(--surface);
}

.legal-body tr:nth-child(odd) {
  background: var(--bg);
}

/* ======================================
   SCROLL REVEAL
   ====================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   RESPONSIVE
   ====================================== */

@media (max-width: 640px) {
  .hero {
    padding: 100px 24px 56px;
    min-height: 85vh;
  }

  .hero-logo {
    margin-bottom: 36px;
  }

  .hero-logo img {
    height: 112px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .section {
    padding: 64px 24px;
  }

  .story-section {
    padding: 80px 24px;
  }

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

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

  .stats {
    gap: 32px;
  }

  .request-cta {
    padding: 24px;
  }

  .page-title {
    padding: 56px 0 32px;
  }
}

/* ======================================
   REDUCED MOTION
   ====================================== */

@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    animation: none;
  }

  .hero-logo,
  .hero-tagline,
  .hero-subtitle,
  .hero-buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-glow {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
    opacity: 0.4;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .path-card:hover,
  .event-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ======================================
   PRINT
   ====================================== */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .hero-glow,
  .scroll-indicator {
    display: none;
  }

  a {
    color: #000;
  }

  .hero-tagline,
  .section-heading,
  .page-title h1 {
    color: #000;
  }

  .stat-number {
    color: #000;
  }

  .pillar-card {
    border-color: #ccc;
  }
}

/* --- Site announcement banner --- */

.announcement-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--accent);
  overflow: hidden;
  z-index: 1000;
  border-top: 1px solid #0A0A0A;
  /* Plain block container - do NOT use flex here, otherwise the track
     would be stretched/shrunk to the parent width instead of sizing to
     its intrinsic content width. */
}

.announcement-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #0A0A0A;
  line-height: 40px; /* vertical center inside the 40px bar */
  will-change: transform;
}

.announcement-item {
  display: inline-block;
  padding: 0 6px;
}

.announcement-spacer {
  display: inline-block;
  padding: 0 24px;
  opacity: 0.55;
  font-size: 14px;
}

.announcement-track a {
  display: inline-block;
  background: #0A0A0A;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #0A0A0A;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}

.announcement-track a:hover,
.announcement-track a:focus-visible {
  background: var(--accent);
  color: #0A0A0A;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar {
    overflow-x: auto;
  }
  .announcement-track {
    animation: none;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ======================================
   COOKIE CONSENT BANNER
   ====================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050; /* Sits above the announcement marquee (1000). */
  background: #0F0F0F;
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.5);
  padding: 16px 24px;
}

.cookie-banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 320px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.cookie-banner-link {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-link:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

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

.cookie-btn-reject {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cookie-btn-reject:hover {
  background: rgba(236, 255, 12, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.cookie-btn-accept:hover {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 14px 18px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-actions {
    flex-direction: column-reverse;
  }
  .cookie-btn {
    width: 100%;
  }
}

/* ======================================
   MAP LOCATE BUTTON (shared across all maps)
   "Use my location" overlay button sitting in the bottom-right of any
   map container (events / requests / request form). The parent .events-map
   / .requests-map / .request-form-map supplies position: relative via its
   MapLibre init, which uses position: relative by default.
   ====================================== */

.map-locate-btn {
  position: absolute;
  left: 12px;
  bottom: 36px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface, #1A1A1A);
  color: var(--color-primary, #ECFF0C);
  border: 1px solid var(--border, #2A2A2A);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.map-locate-btn:hover,
.map-locate-btn:focus-visible {
  background: #232323;
  border-color: var(--color-primary, #ECFF0C);
  outline: none;
}

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

.map-locate-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.map-locate-btn.is-loading svg {
  animation: map-locate-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes map-locate-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-locate-hint {
  position: absolute;
  left: 12px;
  bottom: 84px;
  z-index: 2;
  max-width: 240px;
  background: rgba(20, 20, 20, 0.95);
  color: var(--text, #FFF);
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #2A2A2A);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .map-locate-btn.is-loading svg {
    animation: none;
  }
}

/* =========================================================================
   Embed mode - activated by `?embed=1` on terms.html / privacy.html so the
   app's WebView can load these pages as drop-in legal documents. Inline
   script in each page adds `.embed-mode` to <html> when the query param is
   present; rules below hide the site chrome so only content remains.
   ========================================================================= */
html.embed-mode nav,
html.embed-mode footer,
html.embed-mode [data-site-footer],
html.embed-mode .skip-link,
html.embed-mode .announcement-marquee,
html.embed-mode .announcement-bar,
html.embed-mode .cookie-banner,
html.embed-mode .manifesto-back {
  display: none !important;
}

html.embed-mode body {
  padding-top: 0;
}

html.embed-mode main {
  padding-top: 16px;
  padding-bottom: 16px;
}

html.embed-mode .page-title {
  padding-top: 8px;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

html.embed-mode .container {
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================================
   Open Calls
   - Section header + card grid live on /events and homepage.
   - Banner variant lives on the event + request detail pages.
   ========================================================================= */

.open-calls-section {
  margin-top: 64px;
}

.open-calls-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.open-call-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--card, #141414);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 12px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.open-call-card:hover {
  border-color: #ECFF0C;
  transform: translateY(-1px);
}

.open-call-badge {
  display: inline-flex;
  width: max-content;
}

.open-call-badge span,
.open-call-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
  border-radius: 4px;
}

.open-call-badge-pill {
  margin-left: 8px;
  vertical-align: middle;
}

.open-call-title {
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--text, #fff);
}

.open-call-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary, #888);
}

.open-call-meta-sep {
  opacity: 0.4;
}

.open-call-interested {
  color: #ECFF0C;
  font-weight: 600;
}

.open-call-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.open-call-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.open-call-need-pill {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 999px;
}

.open-call-lineup {
  font-size: 0.875rem;
  color: var(--text-secondary, #888);
}

.open-call-notes {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary, #aaa);
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(236, 255, 12, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
}

.open-call-notes-label {
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.open-call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.open-call-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A0A0A;
  background: #ECFF0C;
  border-radius: 8px;
  text-decoration: none;
  transition: filter 150ms ease;
}

.open-call-cta-primary:hover {
  filter: brightness(1.05);
}

.open-call-cta-secondary {
  font-size: 0.8125rem;
  color: var(--text-secondary, #888);
  text-decoration: none;
}

.open-call-cta-secondary:hover {
  color: #fff;
}

/* Detail-page banner — used on /event and /request-detail. */
.open-call-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--card, #141414);
  border-left: 4px solid #ECFF0C;
  border-radius: 8px;
}

.open-call-banner-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
  border-radius: 4px;
}

.open-call-banner-text {
  margin: 0;
  color: var(--text, #fff);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.open-call-banner-text a {
  color: #ECFF0C;
  text-decoration: underline;
}

/* Homepage variant — the request rail card already has its own .request-card
   styling; the .open-call badge wraps a yellow-outline pill inline with the
   genre title. */
.request-card.open-call {
  border-color: rgba(236, 255, 12, 0.4);
}
