/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

a { color: #8c1919; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ───────────────────────────────────────────────── */
.site-header {
  background-color: #8c1919;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .nav-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-header nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 1.6rem;
}

.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header nav a.active { color: #fff; font-weight: 600; border-bottom: 2px solid rgba(255,255,255,0.6); padding-bottom: 2px; }

/* ── Page wrapper ─────────────────────────────────────────── */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Page title ───────────────────────────────────────────── */
.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #8c1919;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.5rem;
}

/* ── About section ────────────────────────────────────────── */
.about-section {
  background: #fdf8f8;
  border-left: 4px solid #8c1919;
  padding: 1rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.7;
}

.about-section p { margin-bottom: 0.5rem; }
.about-section p:last-child { margin-bottom: 0; }

/* ── Season heading ────────────────────────────────────────── */
.season-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #8c1919;
  border-bottom: 2px solid #8c1919;
  padding-bottom: 0.3rem;
  margin: 2.5rem 0 1.2rem;
}

/* ── Talk card ────────────────────────────────────────────── */
.talk-card {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s;
}

.talk-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.talk-meta {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 0.35rem;
}

.talk-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.25rem;
}

.talk-speaker {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.6rem;
}

.talk-speaker em { font-style: normal; color: #666; }

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8c1919;
}

/* ── Talk detail page ─────────────────────────────────────── */
.talk-detail-meta {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.talk-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.talk-detail-speaker {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.talk-detail-speaker strong { color: #222; }
.coauthors { font-size: 0.88rem; color: #666; font-style: italic; }

.abstract-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8c1919;
  margin-bottom: 0.6rem;
}

.abstract-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.75;
}

.action-link {
  display: inline-block;
  margin-top: 1.4rem;
  margin-right: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.zoom-link   { background: #8c1919; color: #fff; }
.video-link  { background: #1a5276; color: #fff; }
.slides-link { background: #145a32; color: #fff; }

.zoom-link:hover   { background: #6e1414; color: #fff; text-decoration: none; }
.video-link:hover  { background: #154360; color: #fff; text-decoration: none; }
.slides-link:hover { background: #0e3d22; color: #fff; text-decoration: none; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #8c1919;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
}

/* ── Nav cards (homepage) ─────────────────────────────────── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.nav-card {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.4rem;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  color: inherit;
}

.nav-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-color: #8c1919;
  text-decoration: none;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #8c1919;
  margin-bottom: 0.5rem;
}

.nav-card-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

/* ── Placeholder note ─────────────────────────────────────── */
.placeholder-note {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #777;
}

/* ── Awards page ──────────────────────────────────────────── */
.award-block {
  margin-bottom: 1.4rem;
}

.award-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.recipient-label { background: #8c1919; color: #fff; }
.finalist-label  { background: #555; color: #fff; }

.award-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.award-list li {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.award-list li em { color: #555; }

.award-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.award-table th {
  text-align: left;
  padding: 0.5rem 0.8rem;
  background: #f5f0f0;
  color: #8c1919;
  font-weight: 700;
  border-bottom: 2px solid #e0d0d0;
}

.award-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.award-table td:first-child {
  white-space: nowrap;
  color: #777;
  font-weight: 600;
}

.award-table em { color: #444; }

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

/* ── JSM page ─────────────────────────────────────────────── */
.jsm-session {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem;
}

.jsm-session-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #f0e8e8;
  color: #8c1919;
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.jsm-type-mixer { background: #e8f0f5; color: #1a5276; }

.jsm-session-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.jsm-session-meta {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 0.25rem;
}

.jsm-session-organizer {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.9rem;
}

.jsm-talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  padding-top: 0.8rem;
}

.jsm-talk-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f2f2f2;
}

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

.jsm-talk-title {
  font-size: 0.92rem;
  color: #222;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.jsm-talk-speaker {
  font-size: 0.83rem;
  color: #666;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; height: auto; padding: 0.6rem 1rem; }
  .site-header nav a { margin-left: 0.9rem; }
  .page-title { font-size: 1.5rem; }
}
