:root {
  --primary: #1f3a5f; --on-primary: #ffffff;
  --accent: #9a3b26; --on-accent: #ffffff;
  --ink: #1c2430; --muted: #5b6676; --line: #dfe3e8; --paper: #ffffff; --wash: #f5f6f8;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--wash);
}
.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
a { color: var(--primary); }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 1rem; }
.lede { color: var(--muted); max-width: 42rem; }

.site-header { background: var(--primary); color: var(--on-primary); border-bottom: 4px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; }
.brand img { max-height: 3rem; max-width: 16rem; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-size: .95rem; white-space: nowrap; }
.site-nav a { color: inherit; }
.site-nav form { margin: 0; }
.site-nav button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1.25rem 0; background: var(--paper); }

.courses, .providers { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.courses { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.course-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.course-title { font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.course-title:hover { text-decoration: underline; }
.presenters { color: var(--muted); margin: .25rem 0 0; font-size: .95rem; }
.course-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.credits { display: flex; flex-wrap: wrap; gap: .35rem; }
.credit { font-size: .8rem; border: 1px solid var(--primary); color: var(--primary); border-radius: 999px; padding: .1rem .6rem; white-space: nowrap; }
.credit.conduct { border-color: var(--accent); color: var(--accent); }
.price { font-weight: 700; }

.crumb { margin: 0 0 1rem; font-size: .9rem; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.course-facts { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; }
.course-facts dl { margin: 0 0 1rem; }
.course-facts dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.course-facts dd { margin: .15rem 0 .9rem; }
a.button { display: block; text-align: center; text-decoration: none; }
.button { width: 100%; font: inherit; font-weight: 650; padding: .7rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 720px) { .course-layout { grid-template-columns: 1fr; } }

.notice { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: .7rem 1rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; max-width: 30rem; }
.panel form p { margin: 0 0 1rem; }
.panel label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.panel input[type=email], .panel input[type=text] { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #b9c0ca; border-radius: 6px; }
.panel .helptext { display: block; color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.errorlist { list-style: none; margin: 0 0 .3rem; padding: 0; color: #a12020; font-size: .9rem; }
.muted { color: var(--muted); font-size: .9rem; }

.player { position: relative; background: #10151c; color: #e8ecf1; border-radius: 8px; padding: 1.5rem; margin-top: 1rem; }
.player-screen { aspect-ratio: 16 / 7; display: grid; place-items: center; text-align: center; border: 1px dashed #3a4656; border-radius: 6px; }
.player-clock { font-size: 2.5rem; font-variant-numeric: tabular-nums; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.player-controls button, .player-controls select { font: inherit; padding: .4rem .8rem; border-radius: 6px; border: 1px solid #4a5769; background: #1d2632; color: inherit; cursor: pointer; }
.player-controls input[type=range] { flex: 1; min-width: 8rem; }
.progress { height: .6rem; background: var(--line); border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.progress > div { height: 100%; background: var(--primary); width: 0; }
.watch-status { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .95rem; }
.overlay { position: absolute; inset: 0; background: rgba(10, 14, 20, .93); border-radius: 8px; display: grid; place-items: center; text-align: center; padding: 1rem; }
.overlay[hidden] { display: none; }
.overlay .code { font-size: 2.2rem; letter-spacing: .3em; font-weight: 700; margin: .5rem 0; user-select: none; }
.overlay input { font: inherit; font-size: 1.3rem; text-align: center; text-transform: uppercase; width: 9rem; padding: .4rem; border-radius: 6px; border: 0; }
.overlay .button { width: auto; margin-top: .75rem; }
.player:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
.player:fullscreen .player-screen { flex: 1; aspect-ratio: auto; }
.button.inline { display: inline-block; width: auto; }
.materials, .course-list { padding-left: 1.2rem; }
.course-list li { margin: .4rem 0; }
.course-list li > * { margin-right: .75rem; }
