/* ISR Dashboard · Public Colloquium View — Editorial / Academic (Variant A · calmer)
 */

:root {
  color-scheme: light;
  --bg: #FAFAF7;
  --paper: #FFFFFF;
  --ink: #15161A;
  --ink-2: #3A3B40;
  --muted: #7A7B80;
  --rule: #E4E2DA;
  --rule-2: #D8D5CB;
  --accent: oklch(0.42 0.09 250);
  --accent-soft: oklch(0.94 0.02 250);

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Masthead (same as landing) ─── */
.masthead {
  padding: 28px var(--pad-x) 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.masthead .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.masthead .brand a { color: inherit; text-decoration: none; }

.masthead .brand-mark {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.masthead .brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.masthead .brand-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  font-size: 14px;
  flex-wrap: wrap;
  color: var(--ink-2);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }

.site-nav a.nav-login {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 6px 14px;
  margin-left: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a.nav-login:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ─── Page header ─── */
.page-header {
  padding: clamp(40px, 6vw, 64px) var(--pad-x) 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.page-header-main { grid-column: 1 / 9; }

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.02;
}

.page-header .subtitle {
  margin: 16px 0 0 0;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 560px;
}

.page-header-actions {
  grid-column: 10 / 13;
  align-self: end;
  display: flex;
  justify-content: flex-end;
}

.btn {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ─── KPI / Stats ─── */
.kpi-grid {
  margin: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.kpi {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--rule);
}

.kpi:first-child { padding-left: 0; }
.kpi:not(:first-child) { padding-left: 24px; }
.kpi:last-child { border-right: none; padding-right: 0; }

.kpi .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.kpi .value {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

/* ─── Schedule ─── */
.schedule {
  padding: clamp(40px, 6vw, 56px) var(--pad-x) clamp(60px, 8vw, 96px);
}

.schedule h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.schedule .past-heading {
  margin-top: clamp(48px, 6vw, 72px);
  color: var(--muted);
}

.day-group { margin-top: 32px; }

.day-group.is-past {
  opacity: 0.62;
}

.day-group.is-past:hover {
  opacity: 1;
}

.day-group .day-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

.day-group .day-label .date {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.slot {
  display: grid;
  grid-template-columns: 110px 1fr 240px;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}

.slot .slot-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding-top: 4px;
}

.slot h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 8px 0;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

.slot .ua {
  font-size: 13px;
  color: var(--muted);
}

.slot .ua .name { color: var(--ink-2); }

.slot .members .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.slot .members .names {
  font-size: 13px;
  color: var(--ink-2);
}

.slot .members .empty {
  color: var(--muted);
  font-style: italic;
}

.empty-schedule {
  padding: 48px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ─── Footer ─── */
.dash-footer {
  padding: 28px var(--pad-x) 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.dash-footer p { margin: 0; }
.dash-footer a:hover { color: var(--ink); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .page-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-header-main,
  .page-header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .kpi:last-child { border-bottom: none; }
  .slot {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .masthead { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 14px; font-size: 13px; }
}
