:root {
  --bg: #0b0f14;
  --panel: #111827;
  --muted: #6b7280;
  --text: #e5e7eb;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --border: #1f2937;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(34,211,238,0.08));
  border-bottom: 1px solid var(--border);
  padding: 32px 0 20px;
}

.site-header h1 { margin: 0 0 6px; font-size: 28px; }
.tagline { margin: 0 0 12px; color: var(--muted); }

.quick-links { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,0.6);
}
.quick-links a:hover { border-color: var(--accent); color: white; }

main { padding: 24px 0 60px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel h2 { margin: 0 0 8px; }

.grid.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

ul.meta { padding-left: 18px; margin: 8px 0; }
ul.meta li { margin: 6px 0; color: var(--text); }

ul.links { padding-left: 18px; margin: 8px 0; }
ul.links li { margin: 6px 0; }
ul.links a { color: #a5b4fc; }
ul.links a:hover { color: white; }

#logistics .meta a {
  color: #a5b4fc;
  text-decoration-color: rgba(165, 180, 252, 0.6);
}
#logistics .meta a:hover,
#logistics .meta a:focus {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
#logistics .meta a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.panel a {
  color: #a5b4fc;
  text-decoration-color: rgba(165, 180, 252, 0.6);
}
.panel a:hover,
.panel a:focus {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
.panel a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.controls { display: flex; gap: 8px; align-items: center; }
select, input[type="search"] {
  background: #0f172a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
input[type="search"] { width: 240px; }

.schedule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lecture {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1726;
}
.lecture .num {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(34,211,238,0.15));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: white;
}
.lecture h3 { margin: 0; font-size: 16px; }
.lecture .meta { margin: 4px 0 8px; padding-left: 18px; color: var(--muted); }
.lecture .links { margin: 0; padding-left: 18px; }
.lecture .label { font-size: 12px; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(124,58,237,0.18);
  color: #e9d5ff;
}

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); }
.site-footer p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Schedule table styling */
.table-wrapper { overflow-x: auto; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #0d1726;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.schedule-table th, .schedule-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.schedule-table thead th {
  background: rgba(124,58,237,0.12);
  position: sticky;
  top: 0;
  z-index: 1;
}
.schedule-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.schedule-table .absorbing-column { width: 60%; }

