:root,
[data-bs-theme="light"] {
  --ink-900: #172235;
  --ink-700: #324b69;
  --muted-600: #6f8098;
  --paper-50: #fbfcfe;
  --paper-100: #f3f6fa;
  --paper-200: #e9eef5;
  --line-200: #d9e1ec;
  --accent-500: #2d6d9b;
  --accent-400: #5b93b8;
  --panel-bg: #ffffff;
  --panel-text: #2f425b;
  --panel-shadow: 0 8px 20px rgba(20, 34, 52, 0.08);
  --panel-soft: #f4f8fc;
  --panel-soft-2: #edf3f9;
  --news-date: #425f82;
  --hero-overlay-a: rgba(10, 20, 34, 0.9);
  --hero-overlay-b: rgba(28, 50, 76, 0.82);
  --nav-bg: rgba(16, 27, 43, 0.97);
  --nav-link: rgba(255, 255, 255, 0.84);
  --nav-link-hover: #89b5d7;
  --brand-color: #f3cd57;
  --brand-hover: #ffd978;
}

[data-bs-theme="dark"] {
  --ink-900: #e5edf8;
  --ink-700: #c7d4e8;
  --muted-600: #9eb0c8;
  --paper-50: #0f1723;
  --paper-100: #131d2d;
  --paper-200: #182437;
  --line-200: #283a54;
  --accent-500: #7db6db;
  --accent-400: #9bc8e6;
  --panel-bg: #1a2638;
  --panel-text: #d2def0;
  --panel-shadow: 0 8px 24px rgba(6, 10, 16, 0.34);
  --panel-soft: #202f45;
  --panel-soft-2: #263750;
  --news-date: #9dc3e0;
  --hero-overlay-a: rgba(7, 12, 20, 0.88);
  --hero-overlay-b: rgba(14, 25, 40, 0.82);
  --nav-bg: rgba(8, 12, 19, 0.97);
  --nav-link: rgba(225, 235, 247, 0.86);
  --nav-link-hover: #9ec8e6;
  --brand-color: #86c4e8;
  --brand-hover: #a8d7f2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background-color: var(--paper-50);
  background-image: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(120, 140, 165, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(120, 140, 165, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  padding-top: 72px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--ink-900);
}

a {
  color: var(--accent-500);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-400);
}

.section-space {
  padding: 84px 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--paper-100), var(--paper-200));
  border-top: 1px solid var(--line-200);
  border-bottom: 1px solid var(--line-200);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.section-heading {
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  letter-spacing: 0.2px;
}

.section-lead {
  color: var(--muted-600);
  font-size: 1.12rem;
  margin-bottom: 0;
}

.neuromm-navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(8, 14, 23, 0.3);
  padding: 10px 0;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.neuromm-brand {
  color: var(--brand-color);
  font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
  font-weight: 400;
  font-size: 1.62rem;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, font-size 0.3s ease;
}

.neuromm-brand:hover,
.neuromm-brand:focus {
  color: var(--brand-hover);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--nav-link);
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--nav-link-hover);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--brand-color);
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 3px;
  background: var(--brand-color);
  border-radius: 2px;
}

.theme-toggle {
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
  font-weight: 600;
  min-width: 98px;
}

.theme-toggle:hover,
.theme-toggle:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-section {
  min-height: 670px;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(130, 176, 210, 0.24) 0%, transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(145, 110, 174, 0.16) 0%, transparent 38%),
    linear-gradient(130deg, var(--hero-overlay-a), var(--hero-overlay-b));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 700;
}

.hero-subtitle {
  max-width: 790px;
  font-size: 1.08rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.92);
}

.hero-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.conference-panel {
  background: var(--panel-bg);
  color: var(--panel-text);
  border: 1px solid var(--line-200);
  border-radius: 12px;
  padding: 1.35rem;
  box-shadow: var(--panel-shadow);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.panel-title {
  font-size: 1.18rem;
  margin-bottom: 0.95rem;
}

.text-muted {
  color: var(--muted-600) !important;
}

.scope-list .list-group-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-200);
  color: var(--panel-text);
  padding-left: 0;
  padding-right: 0;
}

.scope-list .list-group-item:last-child {
  border-bottom: none;
}

.news-list .list-group-item {
  background: transparent;
  border-color: var(--line-200);
  padding: 1rem 1.2rem;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.news-date {
  color: var(--news-date);
  font-weight: 700;
  min-width: 172px;
}

.news-title {
  color: var(--panel-text);
}

.news-section .section-heading {
  font-size: clamp(1.95rem, 2.35vw, 2.45rem);
}

.news-section .section-lead {
  font-size: 1.03rem;
}

.news-section .news-date {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-section .news-title {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
}

.challenge-table th {
  width: 33%;
  color: var(--panel-text);
  background: var(--panel-soft);
}

.challenge-table td {
  color: var(--panel-text);
}

.topic-list {
  margin: 0;
  padding-left: 1.2rem;
}

.topic-list li {
  margin-bottom: 0.62rem;
  color: var(--panel-text);
}

.workshop-section .section-heading {
  font-size: clamp(1.95rem, 2.35vw, 2.45rem);
}

.workshop-section .panel-title {
  font-size: 1.28rem;
  margin-bottom: 1.05rem;
}

.workshop-section .text-muted {
  font-size: 1rem;
  line-height: 1.65;
}

.workshop-section .topic-list li {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Schedule timeline */
.timeline-wrapper {
  position: relative;
  padding-left: 2.8rem;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--accent-500), var(--accent-400));
}

.timeline-group {
  margin-bottom: 2rem;
}

.timeline-year {
  font-size: 1.34rem;
  margin-bottom: 1rem;
  color: var(--accent-500);
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-dot {
  position: absolute;
  left: -2.06rem;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-500);
  border: 2px solid var(--panel-bg);
  box-shadow: 0 0 0 3px rgba(77, 135, 176, 0.28);
}

.timeline-date {
  font-size: 0.88rem;
  color: var(--news-date);
  font-weight: 700;
  margin-bottom: 0.34rem;
  letter-spacing: 0.01em;
}

.schedule-section .section-heading {
  font-size: clamp(1.95rem, 2.35vw, 2.45rem);
}

.schedule-section .section-lead {
  font-size: 1.03rem;
}

.schedule-section .timeline-card p:last-child {
  font-size: 1.04rem;
  line-height: 1.45;
}

.year-nav {
  top: 98px;
}

.year-nav-list .list-group-item {
  background: var(--panel-bg);
  border: 1px solid var(--line-200);
  color: var(--panel-text);
  font-weight: 600;
}

.year-nav-list .list-group-item:hover,
.year-nav-list .list-group-item:focus {
  background: var(--panel-soft);
  color: var(--accent-500);
}

.speaker-img {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--panel-bg);
  box-shadow: 0 8px 20px rgba(20, 32, 50, 0.18);
}

.committee-accordion .accordion-item {
  border: 1px solid var(--line-200);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
}

.committee-accordion .accordion-button {
  background: var(--panel-soft);
  color: var(--ink-900);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
}

.committee-accordion .accordion-button:not(.collapsed) {
  background: var(--panel-soft-2);
  color: var(--accent-500);
  box-shadow: none;
}

.committee-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.committee-accordion .accordion-body {
  background: var(--panel-bg);
}

.member-img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--panel-bg);
  box-shadow: 0 8px 18px rgba(20, 33, 50, 0.15);
}

.member-name {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

footer {
  border-top: 1px solid var(--line-200);
  background: var(--paper-100);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

@media (max-width: 991px) {
  body {
    padding-top: 68px;
  }

  .hero-section {
    min-height: 620px;
  }

  .year-nav {
    position: static !important;
    top: auto;
  }
}

@media (min-width: 768px) {
  .neuromm-navbar {
    padding: 14px 0;
  }

  .neuromm-brand {
    font-size: 2em;
  }

  .neuromm-navbar.navbar-shrink {
    padding: 10px 0;
  }

  .neuromm-navbar.navbar-shrink .neuromm-brand {
    font-size: 1.5em;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 580px;
  }

  .speaker-img {
    width: 164px;
    height: 164px;
  }

  .member-img {
    width: 108px;
    height: 108px;
  }

  .timeline-wrapper {
    padding-left: 2.2rem;
  }

  .timeline-dot {
    left: -1.88rem;
  }

  .section-space {
    padding: 72px 0;
  }
}
