body {
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #f1f3f5;
  background: #0a0a0a;
  min-height: 100vh;
}

/* ---------- main content container ---------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ---------- content sections ---------- */
section {
  background: #111114;
  border: 1px solid #1e1e22;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- overview section (description) styling ---------- */
#overview {
  background: linear-gradient(135deg, #111114 0%, #0f0f12 100%);
  border: 1px solid #1e1e22;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- header with logo ---------- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem 2rem; /* remove top padding so carousel sits flush under navbar */
  margin-bottom: 0;
  background: linear-gradient(135deg, #0f0f12 0%, #111114 100%);
}

header img.logo {
  width: 60%;
  max-width: 400px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(1.2) contrast(1.1);
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #f1f3f5;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
}

header h4 {
  color: #a6adbb;
  font-weight: 400;
  margin: 0.5rem 0;
  text-align: center;
  max-width: 800px;
  font-size: 1rem;
}

/* Ensure header content shares the same center line and width as main/partners */
header > h1,
header > h4,
header > .partners {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;  /* match page horizontal padding rhythm */
  padding-right: 1rem;
}

/* Reduce only the top padding for the partners section inside header so the carousel is flush with nav */
header > .partners {
  padding-top: 0;
}

/* ---------- navigation ---------- */
nav {
  display: grid;                  /* center links irrespective of logo size */
  grid-template-columns: 1fr auto 1fr; /* left spacer | centered links | right spacer */
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  background: rgba(30, 30, 34, 0.3);
  border-radius: 8px;
  position: relative;
  border-bottom: 1px solid #3b4452;
  padding-left: 0;                /* override older padding-left hacks */
}

/* Position logo in the left area without shifting center */
.nav-logo-link {
  grid-column: 1 / 2;
  justify-self: start;
  position: relative; /* no absolute so it participates in layout */
  left: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
  pointer-events: none;
}

/* Center the links as a group */
.nav-links {
  grid-column: 2 / 3;
  display: flex;
  gap: 2rem;
}

/* Position session info on the right */
.nav-session {
  grid-column: 3 / 4;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1rem;
}

/* Remove old absolute-position padding hack */
/* .nav { padding-left: ... } no longer needed */

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
  filter: invert(1);
  transition: none;
}

/* Preserve link hover effects */
nav a {
  color: #f1f3f5;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(17, 17, 20, 0.6);
  border: 1px solid transparent;
}

nav a:hover {
  background: #7c4dff;
  color: white;
  border-color: #7c4dff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 77, 255, 0.3);
}

@media (max-width: 768px) {
  nav { 
    grid-template-columns: 1fr auto 1fr; 
    gap: 1rem; 
  }
  .nav-links { gap: 1rem; }
  .nav-session { 
    gap: 0.5rem; 
    margin-right: 0.5rem;
  }
  .nav-logo { height: 36px; }
}

@media (max-width: 480px) {
  .nav-logo { height: 30px; }
}

/* ---------- collapsible sections ---------- */
details {
  border: 1px solid #1e1e22;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 0.75em 1em;
  background: #0f0f12;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

summary {
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-left: 1.5em;
  list-style: none;
  color: #f1f3f5;
  transition: color 0.2s ease;
}

summary:hover {
  color: #7aa9ff;
}

summary::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0.15em;
  transition: transform 0.2s ease;
  font-size: 0.9em;
  color: #7c4dff;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

summary.section-summary {
  font-size: 1.4rem;
  color: #f1f3f5;
  font-weight: 700;
}

summary.subitem-summary {
  font-size: 1.15rem;
  color: #f1f3f5;
  font-weight: 600;
}

details > *:not(summary) {
  margin-left: 0.5em;
  padding-left: 0.5em;
  border-left: 2px solid #1e1e22;
}

/* ---------- staff cards ---------- */
.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: linear-gradient(135deg, #111114 0%, #0f0f12 100%);
  border: 1px solid #1e1e22;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #7c4dff;
  box-shadow: 0 8px 16px rgba(124, 77, 255, 0.3);
}

.card img {
  width: 100%;
  border-radius: 8px;
  filter: brightness(1.1);
  margin-bottom: 1rem;
}

.card h4 {
  margin: 0.5em 0 0.2em;
  font-weight: 600;
  color: #f1f3f5;
  font-size: 1.1rem;
}

.affiliation {
  font-style: italic;
  color: #7aa9ff;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9em;
  font-weight: 500;
  text-align: center;
}

.card p {
  margin: 0.5em 0 0;
  color: #a6adbb;
  font-size: 0.9em;
}

/* ---------- card size variants ---------- */
.card-keynote {
  /* Larger cards for keynotes - allow natural content sizing */
  min-height: 400px;
  max-width: 400px; /* Prevent keynote cards from becoming too wide */
  margin: 0 auto; /* Center the card if it's narrower than grid space */
}

.card-standard {
  /* Fixed height for uniform sizing for all other roles */
  height: 350px;
  max-width: 280px; /* Prevent standard cards from becoming too wide */
  margin: 0 auto; /* Center the card if it's narrower than grid space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-standard img {
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-standard .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.staff-role-heading {
  text-align: center;
  font-size: 2rem;
  color: #f1f3f5;
  margin: 2.5em 0 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.staff-role-heading::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #7c4dff, #6a3fff);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.staff-divider {
  border: none;
  border-top: 2px solid #1e1e22;
  margin: 3em auto;
  width: 60%;
}

/* ---------- links and buttons ---------- */
a {
  color: #7aa9ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a9c4ff;
}

/* ---------- general text elements ---------- */
h2 {
  color: #f1f3f5;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #7c4dff;
  display: inline-block;
}

h3 {
  color: #f1f3f5;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
}

h4 {
  color: #f1f3f5;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}

p {
  color: #a6adbb;
  margin: 1rem 0;
  max-width: none;
  text-align: left;
}

ul, ol {
  color: #a6adbb;
  margin: 1rem 0;
  padding-left: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ---------- table styling for data ---------- */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #111114;
  border: 1px solid #3b4452;
  border-radius: 12px;
  overflow: hidden;
  table-layout: fixed;
  margin: 0;
}

th {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f3f5;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  text-align: center;
  border-bottom: 2px solid #7c4dff;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #3b4452;
  color: #a6adbb;
  text-align: center;
}

td:first-child {
  text-align: left;
  color: #f1f3f5;
  font-weight: 500;
}

tr:hover {
  background: rgba(124, 77, 255, 0.08);
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- headline chip style ---------- */
.headline-chip {
  background: #000;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", "Roboto Mono", monospace;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin: 0.25rem 0;
}

/* ---------- horizontal scroll wrapper for tables ---------- */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- responsive design ---------- */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  
  section, #overview {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  header h4 {
    font-size: 0.9rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav a {
    text-align: center;
  }
  
  .staff-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  /* Adjust max widths for mobile */
  .card-keynote {
    max-width: 300px;
    min-height: 320px;
  }
  
  .card-standard {
    max-width: 250px;
    height: 300px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.75rem;
  }
  
  .nav-logo { height: 36px; }
}

@media (max-width: 480px) {
  header img.logo {
    width: 80%;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  section, #overview {
    padding: 1rem;
  }
  
  .staff-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  /* Further adjust for very small screens */
  .card-keynote {
    max-width: 250px;
    min-height: 280px;
  }
  
  .card-standard {
    max-width: 200px;
    height: 260px;
  }
  
  .nav-logo { height: 30px; }
}

/* ---------- form elements and inputs ---------- */
input, textarea, select {
  background: #111114;
  border: 1px solid #1e1e22;
  color: #f1f3f5;
  padding: 0.5rem;
  border-radius: 6px;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #7c4dff;
  box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.1);
}

/* ---------- buttons ---------- */
button, .button {
  background: linear-gradient(135deg, #7c4dff 0%, #6a3fff 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(124, 77, 255, 0.3);
}

button:hover, .button:hover {
  background: linear-gradient(135deg, #6a3fff 0%, #5a2fff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 77, 255, 0.4);
}

a button {
  margin: 1rem 0;
}

/* ---------- footer ---------- */
footer {
  border-top: 2px solid #1e1e22;
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0f0f12 0%, #111114 100%);
}

footer p {
  color: #a6adbb !important;
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- code blocks ---------- */
code {
  background: #111114;
  color: #f1f3f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.9em;
  border: 1px solid #1e1e22;
}

pre {
  background: #111114;
  border: 1px solid #1e1e22;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  color: #f1f3f5;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
  border: none;
}

/* ---------- partner carousel ---------- */
.partners {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-title {
  margin: 0.5rem 0 0.75rem;
  color: #f1f3f5;
  text-align: center;
}

.partner-carousel {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 18px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.partner-carousel .swiper {
  width: 100%;
}

/* Make the autoplay translate linear for smooth continuous scroll */
.partner-carousel .swiper-wrapper {
  transition-timing-function: linear !important;
}

.partner-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-carousel img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: none;
}

@media (min-width: 768px) {
  .partner-carousel img { height: 56px; max-width: 180px; }
}

@media (min-width: 1024px) {
  .partner-carousel img { height: 64px; max-width: 220px; }
}

/* Full-bleed (edge-to-edge) variant for partner carousel */
.partner-carousel.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0; /* flush edges */
  border-left: none;
  border-right: none;
}

/* Ensure inner swiper respects the full width */
.partner-carousel.full-bleed .swiper {
  width: 100%;
}

/* Override: remove borders in partners section */
section.partners { border: none; }
.partner-carousel { border: none; }
.partner-carousel.full-bleed { border: none; }

/* ---------- readability helpers for sections ---------- */
.section-intro {
  color: #a6adbb;
  margin: 0.25rem 0 1rem;
  font-size: 1.05rem;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #3b4452, transparent);
  border: 0;
  margin: 0.75rem 0 1rem;
}

.section-body {
  margin-top: 0.5rem;
  color: #e5e7eb;
}

/* space stacked collapsible blocks nicely */
details + details { margin-top: 0.75rem; }

/* ---------- data tables (used in LAILA + schedule) ---------- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0 1rem;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #0f0f12;
  border: 1px solid #1e1e22;
  border-radius: 8px;
}

table.data-table th,
table.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #1e1e22;
  text-align: left;
}

table.data-table th {
  background: #121217;
  color: #e6e9ef;
  font-weight: 700;
}

table.data-table tbody tr:nth-child(odd) { background: #0f0f12; }

table.data-table tbody tr:nth-child(even) { background: #101015; }

table.data-table tbody tr:hover { background: rgba(124, 77, 255, 0.08); }

/* ---------- definition list (used in keynotes) ---------- */
dl { margin: 0.5rem 0; }

dt { color: #f1f3f5; margin-top: 0.5rem; }

dd { margin: 0.25rem 0 0.75rem 1rem; color: #cbd5e1; }

/* ---------- button CTA (fallback if not already themed) ---------- */
a.button {
  display: inline-block;
  background: #7c4dff;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #7c4dff;
  box-shadow: 0 2px 6px rgba(124, 77, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(124, 77, 255, 0.35);
}

/* ---------- subtle subheading used inside collapsible bodies ---------- */
.subheading {
  color: #a6adbb;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.5rem 0 0.25rem;
  border-left: 3px solid #7c4dff;
  padding-left: 0.5rem;
}
