/* AI for Meta-Science — NeurIPS 2026 workshop site */

:root {
  --accent: #1f4e79;        /* deep blue */
  --accent-light: #2d6ba3;
  --accent-bg: #eef4fa;
  --gold: #c9a227;          /* small accent for character */
  --text: #222831;
  --muted: #5f6b7a;
  --border: #dde4ec;
  --bg: #ffffff;
  --hero-grad-a: #16324f;
  --hero-grad-b: #2d6ba3;
  --max-width: 1050px;
  --display-font: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hero-grad-a), var(--hero-grad-b));
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  overflow: hidden;
}

/* subtle "citation network" motif */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.13'%3E%3Cpath d='M60 120L200 60M200 60L340 140M340 140L480 80M60 120L180 260M180 260L340 140M180 260L120 420M120 420L300 380M300 380L340 140M300 380L460 460M460 460L480 80M480 80L520 300M520 300L460 460M520 300L300 380'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.20'%3E%3Ccircle cx='60' cy='120' r='5'/%3E%3Ccircle cx='200' cy='60' r='7'/%3E%3Ccircle cx='340' cy='140' r='9'/%3E%3Ccircle cx='480' cy='80' r='5'/%3E%3Ccircle cx='180' cy='260' r='6'/%3E%3Ccircle cx='120' cy='420' r='7'/%3E%3Ccircle cx='300' cy='380' r='9'/%3E%3Ccircle cx='460' cy='460' r='5'/%3E%3Ccircle cx='520' cy='300' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 560px 560px;
  pointer-events: none;
}

.hero-inner { position: relative; max-width: var(--max-width); margin: 0 auto; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 2rem;
}

.hero h1 {
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.92;
  margin: 0 auto 0.9rem;
  max-width: 42em;
}

.hero-buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.5rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.12rem;
}
.btn:hover { text-decoration: none; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }


/* ---------- Sections ---------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 0.5rem;
}

.section h2 {
  font-family: var(--display-font);
  color: var(--accent);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-bg);
}

.section h3 { color: var(--text); font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }

.note { color: var(--muted); font-size: 0.92rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.muted-inline { color: var(--muted); font-size: 1.05rem; font-weight: 400; font-family: inherit; }

.objectives { padding-left: 1.2rem; }
.objectives li { margin: 0.7rem 0; }
.objectives li::marker { color: var(--gold); }

/* ---------- News box ---------- */

#news { padding-top: 2rem; }

.news-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 0.9rem 1.25rem;
}
.news-box ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.news-box li { margin: 0.25rem 0; }

/* ---------- CFP tracks ---------- */

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 720px) { .tracks { grid-template-columns: 1fr; } }

.track-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
}
.track-card .note { margin-top: auto; padding-top: 0.8rem; }
.track-card h3 { margin-top: 0; color: var(--accent); font-weight: normal; font-style: italic; font-family: var(--display-font); font-size: 1.35rem; }
.track-card ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.track-card li { margin: 0.35rem 0; }

.guidelines { padding-left: 1.2rem; }
.guidelines li { margin: 0.6rem 0; }

/* ---------- FAQ ---------- */

.faq dt {
  font-weight: 700;
  color: var(--accent);
  margin: 1.2rem 0 0.3rem;
}
.faq dd { margin: 0 0 0.8rem; }

/* ---------- Tables ---------- */

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }

.dates-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.dates-table tr td:first-child { width: 45%; color: var(--muted); }

/* Program table: Event | Speaker | Time */

.program-table th {
  text-align: left;
  padding: 0.55rem 0.9rem;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.95rem;
}

.program-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.program-table tr td:nth-child(2) { color: var(--muted); }

.program-table tr td:last-child {
  width: 5.5rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}
.program-table tr th:last-child { text-align: right; }

/* ---------- People cards (organizers grid) ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.person {
  text-align: center;
  padding: 1rem 0.6rem;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.person:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(31, 78, 121, 0.12);
}

/* Initials placeholder (div) and real photo (img) share .avatar */
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
}
.person .avatar { margin: 0 auto 0.6rem; }
div.avatar {
  background: linear-gradient(135deg, var(--hero-grad-a), var(--hero-grad-b));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
}
img.avatar {
  object-fit: cover;
  object-position: center 25%;
  border: 3px solid var(--accent-bg);
}

.person h3 { margin: 0.2rem 0; font-size: 1.02rem; }
.person .affil { margin: 0; color: var(--muted); font-size: 0.9rem; }
.person .talk { margin: 0.4rem 0 0; font-size: 0.9rem; font-style: italic; }

/* ---------- Speaker entries with bios (speakers page) ---------- */

.speaker-entry {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfe;
}

.speaker-entry .avatar { width: 120px; height: 120px; }

.speaker-body h3 { margin: 0 0 0.15rem; font-size: 1.2rem; }
.speaker-body .affil { margin: 0; color: var(--muted); font-size: 0.95rem; }
.speaker-body .talk-title {
  margin: 0.4rem 0 0.6rem;
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.speaker-body .bio { margin: 0.4rem 0 0; font-size: 0.96rem; }

@media (max-width: 600px) {
  .speaker-entry { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Page end ---------- */

main { padding-bottom: 3.5rem; }

/* ---------- Deadline countdown (NeurIPS-style right column) ---------- */
.dates-table td.cd {
  width: 30%;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
