@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --accent: #76b900;
  --accent-dark: #5f9700;
  --text: #111827;
  --muted: #4b5563;
  --border: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.hero {
  padding: 70px 24px 40px;
  /* max-width: 1200px; */
  background: #fff;
  color: var(--text);
  position: relative;
  /* display: block; */
  /* margin: 0 auto; */
  overflow: hidden;
}

.hero-content {
  /* max-width: 1200px; */
  /* padding-left: 0px; */
  margin-left: 0px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  position: relative;
  z-index: 2;
}

.badge {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(118, 185, 0, 0.12);
  color: var(--accent);
}

.hero-title {
  margin: 20px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  line-height: 1.1;
}

.hero-title-mark {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #597a4c, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.hero-title-mark::after {
  content: ':';
  margin-left: 12px;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--muted);
}

.hero-title-rest {
  font-size: clamp(2.8rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--muted);
}

.hero p.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 6px;
  font-size: 1.2rem;
}

.author-list a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px dotted transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.author-list a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.author-list sup {
  font-size: 0.8em;
  margin-left: 2px;
  color: var(--muted);
}

.author-note {
  margin: 0 0 18px;
  font-size: 0.98rem;
  color: var(--muted);
}

.affiliation-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 6px 0;
}

.affiliation-logos img {
  height: 32px;
  width: auto;
  margin-right: 30px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.affiliation-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 12px 24px rgba(118, 185, 0, 0.25);
}

.pill.secondary {
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.12);
  color: var(--text);
  box-shadow: none;
}

.pill:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.hero-media {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

main {
  flex: 1;
  padding: 60px 20px 10px;
}

section {
  max-width: 1200px;
  margin: 0 auto 80px;
  background: var(--card);
  border-radius: 28px;
  padding: 50px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

section.compact {
  padding: 36px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 18px;
}

section p {
  color: var(--muted);
  font-size: 1.18rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: #fdfef9;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(118, 185, 0, 0.18);
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card ul {
  padding-left: 24px;
  margin: 0;
  color: var(--muted);
  list-style: disc outside;
  font-size: 1.18rem; /* match section p */
}

.card ul li {
  margin-bottom: 0.4rem; /* extra space between items */
}

.card p {
  font-size: 1.05rem;
  margin: 8px 0 0;
  /* text-align: center; */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.grid .card {
  background: #f8fafc;
  border-color: var(--border);
}

.figure-card {
  background: #fdfef9;
  border-radius: 20px;
  padding: 24px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(118, 185, 0, 0.18);
}

.figure-card img {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.figure-card img:hover {
  transform: scale(1.01);
}

.figure-card span {
  font-size: 1.05rem;
  color: var(--muted);
}

/* .figure-card p {
  text-align: center;
  justify-content: center;
} */

.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.leaderboard .card {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}

.leaderboard h3 {
  color: var(--accent);
}

.data-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.data-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
}

.footnote {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
}

.footer {
  /* max-width: 1200px; */
  background-color: transparent;
  margin: 0 auto 50px;
  padding: 30px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.2s ease;
}

.footer a:hover {
  border-color: var(--accent);
}

dialog#lightbox {
  width: min(1100px, 90vw);
  border: none;
  border-radius: 24px;
  padding: 20px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(4px);
}

.lightbox-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Make header, main content sections, and footer share the same boxed width/visual */
header.hero {
  /* background: transparent; */
  padding-top: 48px;
  padding-bottom: 24px;
  padding-left: 0px;
  /* align-items: left; */

}

/* header.hero .hero-content {
  background: var(--card);
  border-radius: 28px;
  padding: 50px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
} */

/* Carousel: show only the active item and add a pale green border */
.results-carousel {
  position: relative;
  overflow: hidden;
}
.results-carousel .item {
  display: none;
  width: 100%;
  transition: opacity 0.3s ease;
}
.results-carousel .item.is-active,
.results-carousel .item.active {
  display: block;
  opacity: 1;
  border-radius: 12px;
  padding: 6px;
  border: 4px solid var(--accent);
  background: rgba(118, 185, 0, 0.08);
}
.results-carousel .item img {
  display: block;
  width: 85%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
}

/* Fallback: show first item if no JS sets an active class */
.results-carousel .item:first-child {
  display: block;
}

/* Carousel pagination dots (bulma-carousel actually uses slider-* classes) */
.results-carousel .slider-pagination,
.carousel.results-carousel .slider-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.results-carousel .slider-pagination .slider-page {
  background: #d1d5db; /* inactive gray */
}

.results-carousel .slider-pagination .slider-page.is-active,
.results-carousel .slider-pagination .slider-page:hover,
.results-carousel .slider-pagination .slider-page:focus {
  background: var(--accent); /* active green */
}

.lightbox-body img {
  border-radius: 16px;
}

.lightbox-close {
  align-self: flex-end;
  background: rgba(118, 185, 0, 0.15);
  color: var(--text);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 768px) {
  header.hero {
    padding: 60px 18px 50px;
  }

  section {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pill {
    width: 100%;
    justify-content: center;
  }
}

.teaser-figure {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.teaser-figure img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.teaser-caption {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 14px;
}

.citation-card {
  background: #fdfef9;
  color: var(--text);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(118, 185, 0, 0.18);
  font-family: 'Inter', monospace;
  font-size: 1.03rem;
  overflow-x: auto;
}

