/* ===== Variables ===== */
:root {
  --navy:        #002855;
  --navy-mid:    #004b80;
  --teal:        #009fbe;
  --teal-dark:   #007a94;
  --hero-bg:     #c8ecf5;
  --hero-bg2:    #e8f7fb;
  --text:        #1c2333;
  --text-muted:  #5a6478;
  --bg:          #ffffff;
  --bg-alt:      #f0f8fb;
  --bg-dark:     #001a38;
  --border:      #cde8f0;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.13);
  --transition:  0.2s ease;
  --header-h:    66px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Header / Nav ===== */
.site-header {
  height: var(--header-h);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0,40,85,.12);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-erasmus { color: var(--navy); font-weight: 800; font-size: 1.2rem; letter-spacing: -.5px; }
.logo-mc       { color: var(--navy); font-weight: 800; font-size: 1.2rem; letter-spacing: -.5px; }
.logo-sep      { color: var(--border); margin: 0 .5rem; font-size: 1.2rem; }
.logo-group    { color: var(--text-muted); font-size: .95rem; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.nav-links a {
  color: var(--navy);
  padding: .45rem .85rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { background: var(--hero-bg2); color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); font-weight: 600; border-bottom: 2px solid var(--teal); border-radius: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(120deg, var(--hero-bg) 0%, var(--hero-bg2) 100%);
  color: var(--navy);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(0,159,190,.08);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(0,40,85,.08);
  border: 1px solid rgba(0,40,85,.15);
  color: var(--navy-mid);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -.5px;
  color: var(--navy);
}

.hero h1 em { font-style: normal; color: var(--teal); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn-primary  { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost    { background: rgba(0,40,85,.08); color: var(--navy); border-color: rgba(0,40,85,.2); }
.btn-ghost:hover { background: rgba(0,40,85,.14); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }

/* ===== Overview Cards (homepage) ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.overview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
}

.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); text-decoration: none; }

.overview-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-blue   { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.icon-green  { background: linear-gradient(135deg, #1a7a5e, #22a27a); }
.icon-purple { background: linear-gradient(135deg, #5b3fa6, #7c5cbf); }
.icon-teal   { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.icon-orange { background: linear-gradient(135deg, #7a2340, #b03060); }

.overview-card h3 { font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.overview-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.overview-card .card-cta { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--teal); }

.news-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.news-home-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy); text-decoration: none; }

.news-home-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.news-home-date { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.news-home-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.news-home-card .card-cta { font-size: .85rem; font-weight: 600; color: var(--teal); margin-top: .5rem; }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(120deg, var(--hero-bg) 0%, var(--hero-bg2) 100%);
  color: var(--navy);
  padding: 3rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.page-header p  { margin-top: .5rem; color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }

/* ===== Section heading ===== */
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.section-heading p  { color: var(--text-muted); margin-top: .3rem; font-size: .95rem; }

/* ===== Tags ===== */
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===== Applications ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }

.app-card-link {
  text-decoration: none;
  color: inherit;
}

.app-card-link:hover {
  text-decoration: underline;
}

.app-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.app-card h3 { font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.app-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; flex: 1; }

.app-links { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.app-links a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 600;
  color: var(--navy); border: 1px solid var(--border);
  padding: .3rem .75rem; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.app-links a:hover { background: var(--teal); color: #fff; border-color: var(--teal); text-decoration: none; }

/* ===== Publications ===== */
.pub-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.pub-search {
  flex: 1; min-width: 220px;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.pub-search:focus { border-color: var(--teal); }

.pub-list { display: flex; flex-direction: column; gap: 2rem; }

.pub-year-group { display: flex; flex-direction: column; gap: .6rem; }

.pub-year-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--teal);
  padding-bottom: .3rem;
  margin: 0 0 .25rem 0;
}

.pub-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.pub-item:hover { box-shadow: var(--shadow); }

.pub-item h3 { font-size: .95rem; color: var(--text); font-weight: 600; line-height: 1.45; margin-bottom: .2rem; }
.pub-meta { font-size: .82rem; color: var(--text-muted); }
.pub-meta em { font-style: italic; }
.pub-doi { color: var(--teal); font-weight: 500; text-decoration: none; }
.pub-doi:hover { text-decoration: underline; }

.no-results { text-align: center; padding: 3rem; color: var(--text-muted); font-size: .95rem; }

/* ===== Projects ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.project-card.completed .project-card-top {
  background: linear-gradient(120deg, #cdd8db 0%, #dde6e8 100%);
}

.project-card-top {
  background: linear-gradient(120deg, var(--hero-bg) 0%, var(--hero-bg2) 100%);
  padding: 1.5rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.project-card-top h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }

.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.status-active    { background: rgba(0,159,190,.15); color: var(--teal-dark); }
.status-ongoing   { background: rgba(0,75,128,.12);  color: var(--navy-mid); }
.status-completed { background: rgba(90,100,120,.1);  color: var(--text-muted); }

.project-card-body { padding: 1.35rem 1.5rem; flex: 1; }
.project-card-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.project-period { margin-top: .75rem; font-size: .8rem; color: var(--text-muted); }
.project-funding { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; font-style: italic; }

/* ===== Members ===== */
.member-section { margin-bottom: 2.5rem; }

.member-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.member-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }

.member-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .35rem;
  overflow: hidden;
  flex-shrink: 0;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.member-card h3   { font-size: .95rem; color: var(--navy); font-weight: 600; line-height: 1.3; }
.member-role      { font-size: .8rem; color: var(--teal); font-weight: 500; }
.member-project   { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.member-links     { display: flex; flex-direction: column; gap: 3px; margin-top: .3rem; }
.member-email     { font-size: .78rem; color: var(--teal); word-break: break-all; }
.member-orcid     { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #555; text-decoration: none; }
.member-orcid:hover { color: #A6CE39; }
.member-linkedin  { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #555; text-decoration: none; }
.member-linkedin::before { content: ''; display: inline-block; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='4' fill='%230A66C2'/%3E%3Cpath fill='%23fff' d='M7.2 9.6H4.8v9.6h2.4zm-1.2-3.84a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88zm10.08 3.6c-1.32 0-2.16.6-2.52 1.2V9.6H11.16v9.6h2.4v-4.8c0-1.08.6-1.92 1.68-1.92s1.56.84 1.56 1.92v4.8H19.2v-5.28c0-2.52-1.44-3.6-3.12-3.6z'/%3E%3C/svg%3E") no-repeat center/contain; }
.member-linkedin:hover { color: #0A66C2; }
.member-github    { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #555; text-decoration: none; }
.member-github::before { content: ''; display: inline-block; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z'/%3E%3C/svg%3E") no-repeat center/contain; }
.member-github:hover { color: #333; }
.member-thesis    { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #555; text-decoration: none; }
.member-thesis::before { content: '🎓'; font-size: .75rem; }
.member-thesis:hover { color: var(--navy); }

/* ===== News ===== */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.news-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.3;
}

.news-date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  background: #eaf6f6;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.news-summary {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.news-speakers {
  margin: 0 0 14px;
}

.news-speakers-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  margin-bottom: 6px;
}

.news-speakers ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-speakers ul li {
  font-size: .8rem;
  background: #f0f4ff;
  color: #3730a3;
  padding: 2px 10px;
  border-radius: 999px;
}

details.news-details summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

details.news-details summary::before { content: '▶'; font-size: .6rem; }
details.news-details[open] summary::before { content: '▼'; }
details.news-details summary::-webkit-details-marker { display: none; }

details.news-details .news-content {
  margin-top: 12px;
  font-size: .9rem;
  color: #333;
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.news-link-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.news-link-btn:hover { background: var(--navy); }

/* ===== Links ===== */
.links-section { margin-bottom: 2.5rem; }

.links-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.link-card:hover { border-color: var(--teal); transform: translateY(-2px); }

.link-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.link-card-body h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}

.link-card-body p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 6px;
}

.link-card-url {
  font-size: .72rem;
  color: var(--teal);
  word-break: break-all;
}

/* ===== Datasets ===== */
.dataset-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dataset-search {
  width: 100%;
  max-width: 420px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.dataset-search:focus { border-color: var(--teal); }

.dataset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dataset-chip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: .78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.dataset-chip:hover { border-color: var(--teal); color: var(--teal); }
.dataset-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }

.dataset-count {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 1.2em;
}

.tag-project {
  background: #f0f4ff;
  color: #3730a3;
  font-weight: 500;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.dataset-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition), transform var(--transition);
}

.dataset-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.dataset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.dataset-card-header h3 {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.dataset-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dataset-id {
  font-size: .72rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text-muted);
}

.dataset-year {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dataset-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.dataset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dataset-tags .tag {
  margin: 0;
  padding: 2px 7px;
  font-size: .68rem;
}

.tag-assay {
  background: #e8f0fe;
  color: #1a56db;
}

.dataset-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

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

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2rem;
  font-size: .83rem;
  line-height: 1.7;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    padding: .75rem 1rem 1.25rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    gap: .1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .55rem 1rem; }
  .nav-links a.active { border-bottom: none; border-left: 3px solid var(--teal); border-radius: 0; padding-left: .85rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: fit-content; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .app-grid, .project-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }  /* tablet: 2 kolommen */
}

@media (max-width: 480px) {
  .overview-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Application detail page ── */
.app-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e5e5e5;
  margin-top: 24px;
}

.app-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.app-details {
  margin-top: 24px;
  line-height: 1.7;
}

/* ── Sub-application sections ── */
.sub-apps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sub-app-section {
  border: 1px solid #d4e8f0;
  border-radius: 10px;
  padding: 24px 28px;
  background: #f7fbfd;
}

.sub-app-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.sub-app-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #002855;
  margin: 0;
}

.sub-app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-app-section p {
  margin-top: 10px;
  line-height: 1.65;
}

.step-heading {
  font-weight: 600;
  margin-top: 20px !important;
  margin-bottom: 6px;
  color: #1c2333;
}

.asset-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 6px;
  line-height: 1.9;
}

.upload-hint {
  margin-top: 12px !important;
  font-size: 0.93rem;
  color: #4a5568;
}

/* ── Code blocks ── */
.code-block {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cde0ea;
}

.code-label {
  background: #002855;
  color: #a8d4e8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
}

.code-block pre {
  background: #011e38;
  color: #cde8f5;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  tab-size: 4;
}

.code-block code {
  font-family: inherit;
}
