/* Styles for the generated course, university and site-information pages
 * (courses/, universities/, privacy.html, terms.html, accessibility.html) only. Everything else they use — the page shell, the
 * .fo-* layout and the .reqs panel — comes from styles.css. Loaded with a
 * content hash by scripts/build-course-pages.mjs, so edits here need no
 * manual version bump. */

.cp .fo__desc { max-width: 70ch; }

.cp-crumbs {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.cp-crumbs a,
.cp-links a,
.cp-uni a,
.cp-table a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cp-crumbs a:hover,
.cp-links a:hover,
.cp-uni a:hover,
.cp-table a:hover { color: var(--fo-accent, var(--accent-dark)); }

/* The panel sits on the page, not inside a course card. */
.cp-panel .reqs { margin-top: 0; border-top: none; padding-top: 0; }
.cp-panel .reqs__summary { font-size: var(--text-base); }

.cp .fo-btn { display: inline-block; margin: var(--space-3) var(--space-2) 0 0; text-decoration: none; }
.cp .fo-prose { max-width: 70ch; }

.cp-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}
.cp-uni {
  margin: var(--space-5) 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
}
.cp-muted { color: var(--color-text-secondary); font-style: italic; }

.cp-table-wrap { overflow-x: auto; }
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.cp-table th,
.cp-table td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.cp-table thead th {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.cp-table tbody th { font-weight: 600; min-width: 16ch; }
.cp-table .reqs__badge { margin-left: 4px; }
.cp-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sentence lists on the site-information pages. */
.cp-list {
  max-width: 66ch;
  margin: 0 0 var(--space-4);
  padding: 0 0 0 1.2em;
  list-style: disc;
  font-family: var(--ce-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ce-ink);
}
.cp-list > li + li { margin-top: var(--space-2); }
.cp-list li::marker { color: var(--ce-ink-60); }
.cp .fo-prose a,
.cp-list a {
  color: var(--ce-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cp .fo-prose code { font-family: var(--ce-font-mono); font-size: .9em; }
