/* ========== Global ========== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  background: #f9fafb;
  color: #111827;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: #111827;
}

h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  margin-top: 1.2rem;
}

/* ========== Layout ========== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

main.container {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* ========== Header & Navigation ========== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-title {
  font-size: 1.3rem;
  margin: 0;
}

.site-title a {
  color: #111827;
  text-decoration: none;
}

.site-nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
}

.site-nav a.active {
  border-bottom: 2px solid #1d4ed8;
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

/* ========== Home page ========== */

.home-grid {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  display: grid;
  /* Contact column slightly narrower, right column slightly wider */
  grid-template-columns: minmax(0, 1.0fr) minmax(0, 1.2fr);
  column-gap: 1.75rem;
  row-gap: 1.75rem;
  align-items: flex-start;
}

.home-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.home-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Right-hand column: External Links + Editorial Board stacked */
.home-column {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space between the two boxes */
}

/* External links list */
.home-links ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.home-links li + li {
  margin-top: 0.5rem;
}

.home-links a {
  display: inline-block;
  font-size: 0.95rem;
}

/* Editorial board list: no bullets */
.home-editorial ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.home-editorial li + li {
  margin-top: 0.5rem;
}

/* ========== Publications ========== */

.publications {
  max-width: 60rem;
  margin: 0 auto;
}

.publications h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Main numbered list (research articles) */
.pub-list {
  margin: 0;
  padding-left: 1.7rem;
}

.pub-list.pub-numbered,
ol.pub-list {
  list-style-type: decimal;
  list-style-position: outside;
}

.pub-list li {
  margin: 0 0 0.35rem 0;
  padding: 0.1rem 0 0.35rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-list li a {
  font-weight: 500;
}

/* Books edited / survey papers */
.pub-secondary {
  list-style-type: decimal;
  padding-left: 1.7rem;
  margin: 0;
}

.pub-secondary li {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.1rem 0 0.35rem 0;
  font-size: 0.95rem;
}

/* ========== Workshops index page ========== */

.workshop-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.workshop-list li {
  margin-bottom: 0.5rem;
}

.workshop-list a {
  font-size: 0.96rem;
}

/* ========== Workshop talk cards (Titles & Abstracts) ========== */

.talks-section {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.talk-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d1d5db;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.talk-speaker {
  margin: 0 0 0.25rem 0;
  font-size: 1.02rem;
}

.talk-title {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
}

.talk-abstract {
  margin: 0;
  font-size: 0.94rem;
}

.talk-label {
  font-weight: 600;
  margin-right: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

/* ========== Responsive tweaks ========== */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 0.5rem;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .publications {
    max-width: 100%;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .talks-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .talk-card {
    padding: 0.9rem 0.95rem;
  }
}
