/* ============================================================
   Syllabus pages — jimdelaney.net
   Additive layer on top of styles.css. Uses the site's existing
   tokens (--accent, --warm, --line, --ink-soft, --radius …) so
   nothing here needs to change when the palette changes.
   Linked only from syllabus pages; styles.css is untouched.
   ============================================================ */

/* ---------- Hero ---------- */
.syl-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 2rem; }
.syl-hero h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: 0.75rem; }
.syl-tagline { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.syl-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Key facts grid ---------- */
.syl-facts {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
}
.syl-facts li { font-size: 1rem; color: var(--ink); }
.syl-facts .label {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600; color: var(--accent);
  margin-bottom: 0.15rem;
}
.syl-facts a { color: var(--warm); font-weight: 500; }

/* ---------- Body blocks ---------- */
.syl { max-width: 820px; padding-bottom: var(--space); }
.syl-block { padding-top: 2.75rem; margin-top: 2.75rem; border-top: 1px solid var(--line); }
.syl-block > h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--accent); }
.syl-block h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.syl-block > h3:first-of-type { margin-top: 0; }
.syl-block p { color: #333331; font-size: 1.05rem; max-width: var(--max-prose); margin-bottom: 1rem; }
.syl-block ul { margin: 0 0 1.25rem; padding-left: 1.15rem; display: grid; gap: 0.45rem; }
.syl-block li { color: var(--ink-soft); font-size: 1.02rem; }
.syl-block li > ul { margin: 0.45rem 0 0; }
.syl-block li::marker { color: var(--warm); }
.syl-block a { color: var(--warm); font-weight: 500; }
.syl-block a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Small caps sub-label used for Learn / Reflect / Act / Read */
.syl-block .syl-label, .syl-label {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--accent); margin: 1.5rem 0 0.5rem;
}

/* ---------- Callout ---------- */
.syl-note {
  background: var(--bg-alt); border-left: 3px solid var(--warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.syl-note p { font-size: 0.98rem; margin-bottom: 0.75rem; }
.syl-note p:last-child { margin-bottom: 0; }

/* ---------- Course calendar ---------- */
.syl-module { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.syl-module:first-of-type { border-top: none; margin-top: 0.5rem; padding-top: 0; }
.syl-module-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.35rem 1.5rem; margin-bottom: 0.25rem;
}
.syl-module-head h3 { margin: 0; font-size: 1.25rem; }
.syl-date { font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.syl-break {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 1rem 1.5rem; margin: 2rem 0; color: var(--ink-soft); font-size: 1rem;
}
.syl-break strong { color: var(--ink); }

/* ---------- Assessment table ---------- */
.syl-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.syl-table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.syl-table th, .syl-table td {
  text-align: left; vertical-align: top; padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.syl-table thead th {
  border-bottom: 2px solid var(--accent); color: var(--accent);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.syl-table tbody th { color: var(--ink); font-weight: 600; }
.syl-table ul { margin: 0.5rem 0 0; gap: 0.3rem; }
.syl-table tbody th ul li { font-weight: 400; color: var(--ink-soft); }
.syl-weight { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* ---------- References & affirmation ---------- */
.syl-refs { list-style: none; padding-left: 0; }
.syl-refs li { padding-left: 1.5rem; text-indent: -1.5rem; font-size: 0.95rem; line-height: 1.55; }
.syl-affirm .anishinabe { font-style: italic; color: var(--ink-soft); }

@media (max-width: 720px) {
  .syl-module-head { justify-content: flex-start; }
}

/* ---------- On this page (jump links) ---------- */
.syl-toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 0.5rem 0 1rem;
}
.syl-toc-title {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--accent); margin: 0 0 0.75rem;
}
.syl-toc ul {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 2rem;
}
.syl-toc li { margin-bottom: 0.4rem; break-inside: avoid; font-size: 0.98rem; }
.syl-toc a { color: var(--ink-soft); }
.syl-toc a:hover { color: var(--warm); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .syl-toc ul { columns: 1; } }

/* ---------- Definition list (course information) ---------- */
.syl-dl {
  margin: 0; background: var(--bg-alt); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem;
}
.syl-dl dt {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--accent); margin-top: 1rem;
}
.syl-dl dt:first-child { margin-top: 0; }
.syl-dl dd { margin: 0.15rem 0 0; color: var(--ink); }
.syl-dl a { color: var(--warm); font-weight: 500; }

/* ---------- Back to top ---------- */
.syl-backtotop { margin-top: 1rem; }
.syl-backtotop a { font-size: 0.85rem; color: var(--ink-soft) !important; font-weight: 500; }
.syl-backtotop a:hover { color: var(--warm) !important; }

/* ---------- Table caption ---------- */
.syl-table caption {
  text-align: left; font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--accent); padding-bottom: 0.75rem;
}

/* ---------- Teaching index ---------- */
/* Layered on the site's existing .cards / .card */
a.card { display: block; color: inherit; }
.card .code {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--accent);
}
.card h3 { margin-top: 0.5rem; }
.card .meta { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.card .go { margin-top: 1.25rem; font-size: 0.92rem; font-weight: 600; color: var(--warm); }
a.card:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.teaching-intro { max-width: var(--max-prose); margin-bottom: 3rem; }
.teaching-past { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.teaching-past h2 { font-size: 1.5rem; color: var(--accent); margin-bottom: 1.25rem; }
.teaching-past ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; max-width: var(--max-prose); }
.teaching-past li { color: var(--ink-soft); font-size: 1.02rem; padding-left: 1.1rem; position: relative; }
.teaching-past li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--warm);
}
