/* ============================================================
   NEXUS – Main Stylesheet
   Danish Network for Transformative Mental Health
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #1C4E6B;
  --primary-dark:   #0F3347;
  --primary-light:  #2C7AAE;
  --accent:         #C07830;
  --accent-light:   #E09A52;
  --accent-pale:    #FBF0E4;
  --bg:             #F4F3EE;
  --bg-card:        #FFFFFF;
  --border:         #DDD9D0;
  --text:           #1A1A2E;
  --text-light:     #5B6474;
  --text-muted:     #9CA3AF;
  --white:          #FFFFFF;
  --success:        #2E7D52;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --r:    8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

  --nav-h: 68px;
  --max-w: 1180px;
  --t: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary-dark);
}
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--primary-light); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section      { padding: 5rem 0; }
.section-sm   { padding: 3rem 0; }
.section-alt  { background: var(--bg-card); }
.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
}
.logo-text-block { line-height: 1; }
.logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  display: block;
}
.logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

/* Main nav links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r);
  transition: all var(--t);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--bg);
}
.nav-menu a.members-link {
  color: var(--accent);
  border: 1px solid var(--border);
}
.nav-menu a.members-link:hover {
  background: var(--accent-pale);
  border-color: var(--accent);
}

/* Controls (right side) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border: none;
  border-radius: var(--r-full);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--t);
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

/* ── Hero (main) ──────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #2E7AAE 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(192,120,48,0.15) 0%, transparent 50%);
  pointer-events: none;
}
/* Decorative network nodes */
.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='100' r='6' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='50' cy='60' r='4' fill='rgba(255,255,255,0.10)'/%3E%3Ccircle cx='160' cy='60' r='5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='40' cy='150' r='3' fill='rgba(255,255,255,0.09)'/%3E%3Ccircle cx='155' cy='145' r='4' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='100' cy='40' r='3' fill='rgba(255,255,255,0.10)'/%3E%3Cline x1='100' y1='100' x2='50' y2='60' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cline x1='100' y1='100' x2='160' y2='60' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='100' y1='100' x2='40' y2='150' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='100' y1='100' x2='155' y2='145' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='100' y1='100' x2='100' y2='40' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='50' y1='60' x2='100' y2='40' stroke='rgba(255,255,255,0.05)' stroke-width='0.8'/%3E%3Cline x1='160' y1='60' x2='155' y2='145' stroke='rgba(255,255,255,0.05)' stroke-width='0.8'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-vision {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Stats in hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.78); max-width: 620px; font-size: 1.05rem; margin: 0; }
.page-hero .hero-eyebrow { margin-bottom: 0.75rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  text-decoration: none;
}
.btn-primary   { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); }
.btn-outline   { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.btn-secondary { background: var(--bg); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.02rem; }
.section-label {
  display: inline-block;
  background: rgba(192,120,48,0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: var(--r-full);
  margin-bottom: 0.75rem;
}
.section-label-blue {
  background: rgba(28,78,107,0.08);
  color: var(--primary);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }

/* Value cards */
.value-card { text-align: center; padding: 2rem 1.5rem; }
.value-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.4rem;
}
.value-card h3  { font-size: 1.05rem; margin-bottom: 0.4rem; }
.value-card p   { color: var(--text-light); font-size: 0.88rem; margin: 0; }

/* Research theme cards */
.theme-card { padding: 1.75rem; }
.theme-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.theme-card h3  { font-size: 1.1rem; margin-bottom: 0.6rem; }
.theme-card p   { color: var(--text-light); font-size: 0.88rem; margin-bottom: 1rem; }
.theme-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: rgba(28,78,107,0.08);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
}
.tag-accent {
  background: rgba(192,120,48,0.1);
  color: var(--accent);
}

/* Acronym origin labels (CHIME / EMERGES) – visible on DA, hidden on EN */
.acronym-origin {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
[data-lang="en"] .acronym-origin { display: none; }

/* Clickable theme cards */
a.theme-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.theme-card--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(28,78,107,0.12);
}
.theme-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 1rem;
}
a.theme-card--link:hover .theme-read-more { color: var(--accent); }

/* Theme detail page */
.td-breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--primary); }

.td-proj-heading {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  color: var(--text);
}

/* Project detail cards */
.project-detail-card {
  margin-bottom: 1.5rem;
  padding: 1.75rem;
}
.proj-detail-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.proj-detail-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.project-detail-card h3 { font-size: 1.05rem; margin: 0; }
.proj-detail-inst {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-style: italic;
}
.proj-detail-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.proj-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.proj-link:hover {
  background: rgba(28,78,107,0.06);
  border-color: var(--primary);
}

/* Beta placeholder */
.beta-placeholder {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
}
.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: rgba(192,120,48,0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid rgba(192,120,48,0.3);
}

/* Member cards */
.member-card { text-align: center; padding: 1.75rem 1.25rem; position: relative; }
.member-card.hidden { display: none; }
.member-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  background: var(--bg);
}
.member-initials {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.member-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.member-institution { color: var(--primary-light); font-size: 0.78rem; font-weight: 600; margin-bottom: 0.25rem; }
.member-role { color: var(--text-light); font-size: 0.8rem; margin-bottom: 0.75rem; }
.member-expertise {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  justify-content: center; margin-bottom: 0.75rem;
}
.member-links { display: flex; gap: 0.4rem; justify-content: center; }
.member-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r);
  transition: all var(--t);
}
.member-link:hover { color: var(--primary); border-color: var(--primary); }

/* Event cards */
.event-card { display: flex; gap: 1.25rem; padding: 1.5rem; align-items: flex-start; }
.event-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--primary);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  border-radius: var(--r);
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}
.event-date .month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }
.event-date .day   { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.event-body { flex: 1; }
.event-body h3     { font-size: 1rem; margin-bottom: 0.25rem; }
.event-body p      { color: var(--text-light); font-size: 0.875rem; margin-bottom: 0.6rem; }
.event-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.event-meta span   { display: flex; align-items: center; gap: 0.3rem; }
.event-type {
  display: inline-block;
  background: rgba(28,78,107,0.08);
  color: var(--primary);
  font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-full);
  margin-bottom: 0.4rem;
}

/* Advisor cards */
.advisor-card { display: flex; gap: 1.5rem; padding: 1.75rem; align-items: flex-start; }
.advisor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid var(--border);
}
.advisor-info h3  { font-size: 1rem; margin-bottom: 0.2rem; }
.advisor-title    { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.15rem; display: block; }
.advisor-inst     { color: var(--text-light); font-size: 0.82rem; margin-bottom: 0.6rem; display: block; }
.advisor-bio      { font-size: 0.86rem; color: var(--text); }

/* Resource items */
.resource-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--r);
  transition: background var(--t);
}
.resource-item:hover { background: var(--bg); }
.resource-icon {
  width: 48px; height: 48px;
  background: rgba(28,78,107,0.08);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.resource-info h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.resource-info p  { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Playlist cards */
.playlist-card { padding: 1.75rem; }
.playlist-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.playlist-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid var(--border);
}
.playlist-curator h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.playlist-curator p  { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.playlist-reads { list-style: none; padding: 0; counter-reset: reads; }
.playlist-reads li {
  counter-increment: reads;
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.playlist-reads li:last-child { border-bottom: none; }
.playlist-reads li::before {
  content: counter(reads);
  display: flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0; margin-top: 1px;
}
.playlist-read-title { font-weight: 600; color: var(--text); display: block; }
.playlist-read-auth  { font-size: 0.78rem; color: var(--text-light); }

/* ── Image Band / Gallery ─────────────────────────────────── */
.image-band {
  overflow: hidden;
  padding: 2.5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.image-band-track {
  display: flex;
  gap: 1rem;
  animation: scrollBand 50s linear infinite;
  width: max-content;
}
.image-band-track:hover { animation-play-state: paused; }
.band-img {
  width: 300px; height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.band-img-placeholder {
  width: 300px; height: 200px;
  border-radius: var(--r-lg);
  flex-shrink: 0;
  border: 2px dashed var(--border);
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted); font-size: 0.8rem; text-align: center;
}
@keyframes scrollBand {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Vision & Mission ─────────────────────────────────────── */
.vision-statement {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.6;
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin-bottom: 2.5rem;
}
.mission-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.mission-pillar {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
}
.pillar-icon {
  width: 36px; height: 36px;
  background: rgba(192,120,48,0.12);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.mission-pillar h4 { font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--primary); }
.mission-pillar p  { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* ── Search / Filter ──────────────────────────────────────── */
.search-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.search-input {
  flex: 1; min-width: 220px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem; font-family: var(--font);
  background: var(--white); color: var(--text);
  transition: border-color var(--t);
}
.search-input:focus { outline: none; border-color: var(--primary); }
.filter-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tag {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  background: var(--white); color: var(--text-light);
  transition: all var(--t);
  font-family: var(--font);
}
.filter-tag:hover,
.filter-tag.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Member count badge */
.member-count {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.member-count span { font-weight: 700; color: var(--primary); }

/* ── Denmark Map ──────────────────────────────────────────── */
.map-section { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.map-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  flex: 0 0 340px;
}
.map-wrapper h3 { font-size: 1rem; margin-bottom: 1rem; }
#dk-map { width: 100%; }
.map-marker { cursor: pointer; transition: all 0.2s; }
.map-marker:hover circle { r: 9; }
.map-legend { flex: 1; min-width: 220px; }
.map-legend h4 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text-light); }
.legend-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-light);
  margin-bottom: 0.5rem;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Map tooltip */
.map-tooltip {
  position: fixed;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r);
  font-size: 0.78rem;
  pointer-events: none;
  z-index: 500;
  display: none;
  box-shadow: var(--shadow-md);
  max-width: 200px;
  line-height: 1.4;
}

/* ── Password Gate ────────────────────────────────────────── */
.password-gate {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
}
.password-form {
  max-width: 400px; width: 100%;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.lock-icon {
  width: 56px; height: 56px;
  background: rgba(28,78,107,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}
.password-form h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.password-form > p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 1.5rem; }
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem; font-family: var(--font);
  background: var(--white); color: var(--text);
  margin-bottom: 0.75rem;
  transition: border-color var(--t);
}
.form-input:focus { outline: none; border-color: var(--primary); }
.pw-error { color: #DC2626; font-size: 0.82rem; margin-top: 0.5rem; display: none; }
.members-content { display: none; }
.members-content.visible { display: block; }

/* Members area content */
.members-area-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.members-area-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.members-area-card h3 { font-size: 1rem; }
.members-area-card p  { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.4); }
.footer-brand > p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-bottom: 0.6rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--t);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Projects section ─────────────────────────────────────── */
.project-card { padding: 1.75rem; }
.project-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700;
  color: var(--success);
  background: rgba(46,125,82,0.1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  margin-bottom: 0.75rem;
}
.project-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.project-status--upcoming {
  color: #92600A;
  background: rgba(192, 120, 48, 0.12);
  margin-bottom: 0;
}
.project-status--upcoming::before {
  background: #C07830;
  animation: none;
}
/* Nulstil margin-bottom når badges er side om side i en flex-row */
.project-card > div > .project-status {
  margin-bottom: 0;
}

/* ── Lived experience match cards ─────────────────────────── */
.le-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.le-match-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  transition: all 0.2s;
  cursor: default;
}
.le-match-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.le-match-card.hidden { display: none; }
.le-match-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
}
.le-match-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}
.le-match-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
}
.le-filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.project-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.project-card p  { color: var(--text-light); font-size: 0.875rem; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-light); }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Anchor institutions badge */
.anchor-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem; font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  margin: 0.3rem;
}

/* ── Nav Dropdown ─────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--t);
  opacity: 0.65;
  flex-shrink: 0;
}
.nav-dropdown:hover > a::after,
.nav-dropdown.open > a::after {
  transform: rotate(-135deg) translateY(1px);
}
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.35rem;
  min-width: 210px;
  z-index: 200;
}
/* invisible bridge over the gap so hover doesn't drop out */
.nav-sub::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-sub,
.nav-dropdown.open .nav-sub { display: block; }
.nav-sub a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r);
  transition: background var(--t);
  white-space: nowrap;
}
.nav-sub a:hover { background: var(--bg); color: var(--primary); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4          { grid-template-columns: repeat(2,1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mission-pillars { grid-template-columns: 1fr; }
  .members-area-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }

  /* ── Mobile navigation ── */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 4px;
    align-items: flex-start;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1rem; padding: 0.75rem 0.9rem; width: 100%; min-height: 44px; }
  .nav-hamburger { display: flex; }

  /* Hamburger → X animation */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Hero ── */
  .hero { min-height: auto; padding: 3.5rem 0 2.5rem; }
  .hero::after { display: none; }
  .hero-stats { gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; }

  /* ── Page heroes ── */
  .page-hero { padding: 2.5rem 0 2rem; min-height: auto; }

  /* ── Grids ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* ── Cards with flex layouts ── */
  .event-card   { flex-direction: column; gap: 0.75rem; }
  .advisor-card { flex-direction: column; align-items: center; text-align: center; }
  .advisor-info { width: 100%; }

  /* ── Map ── */
  .map-section  { flex-direction: column; }
  .map-wrapper  { flex: none; width: 100%; }

  /* ── Image band ── */
  .band-img, .band-img-placeholder { width: 220px; height: 150px; }

  /* ── Footer ── */
  .footer-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* ── Password form ── */
  .password-form { padding: 2rem 1.25rem; }

  /* ── Buttons: minimum touch target ── */
  .btn { min-height: 44px; }

  /* ── Nav dropdown on mobile ── */
  .nav-dropdown > a { width: 100%; justify-content: space-between; }
  .nav-sub {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--r);
    margin: 4px 0 4px 0.75rem;
    min-width: unset;
    width: calc(100% - 0.75rem);
    padding: 0.25rem;
  }
  .nav-sub a { font-size: 0.92rem; padding: 0.65rem 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section, .section-sm { padding: 2.5rem 0; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-vision { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.6rem; }
  .section-header { margin-bottom: 2rem; }
  .card-body { padding: 1.25rem; }
  .event-card { padding: 1.25rem; }
  .playlist-card { padding: 1.25rem; }
  .advisor-card { padding: 1.25rem; }
  .band-img, .band-img-placeholder { width: 180px; height: 120px; }
  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero p { font-size: 0.9rem; }
}
