/* cours-ia — student portal.
   One column, large targets, the action above the fold. Deliberately quieter
   than the teaching console: a student needs three links, not a dashboard. */

:root {
  --stock: #faf9f7;
  --panel: #ffffff;
  --ink: #16150f;
  --ink-2: #4e4a42;
  --ink-3: #857f74;
  --rule: #e2ddd3;
  --accent: #1d4ed8;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --stock: #14161a;
    --panel: #1b1e24;
    --ink: #eceef2;
    --ink-2: #b7bcc6;
    --ink-3: #878e9b;
    --rule: #2b303a;
    --accent: #7ba2ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

main { max-width: 42rem; margin: 0 auto; padding: 1.6rem 1.1rem 4rem; }

h1 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 0.3rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.6rem; }
h2.track {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-top: 1.8rem;
}
.meta { color: var(--ink-3); margin: 0 0 1.2rem; }
.crumb { margin: 0 0 1rem; font-size: 0.9rem; }
a { color: var(--accent); }

.actions { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0; }

.action {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.action:hover { border-color: var(--accent); color: var(--accent); }
.action.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.action.off { opacity: 0.55; font-weight: 400; cursor: default; }

.note { color: var(--ink-2); font-size: 0.92rem; margin: 0.6rem 0; }

pre {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

ul.sessions { list-style: none; padding: 0; margin: 0; }
ul.sessions a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}
ul.sessions a:hover { border-color: var(--accent); }
ul.sessions .id { font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
ul.sessions .title { font-weight: 600; flex: 1 1 12rem; }
ul.sessions .dur { color: var(--ink-3); font-size: 0.85rem; }

.doc h1 { font-size: 1.1rem; }
.doc h2 { font-size: 1rem; margin-top: 1.2rem; }
.doc h3 { font-size: 0.95rem; }
.doc code {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.88em;
}
.doc pre code { border: 0; padding: 0; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
