/* PDC Courses. Same palette and type as the onboarding site, so the firm's
   public sites look like one family. */
:root {
  --orange: #e5740b;
  --orange-600: #c9620a;
  --orange-50: #fff4ea;
  --orange-100: #ffe6cf;
  --ink: #2a2b2a;
  --ink-2: #555755;
  --ink-3: #8a8c8a;
  --line: #e9e6e1;
  --bg: #f7f5f2;
  --card: #ffffff;
  --green: #16a34a;
  --green-50: #e9f8ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 43, 42, .06), 0 8px 24px rgba(42, 43, 42, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1; }
a { color: var(--orange-600); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -.015em; line-height: 1.2; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { height: 30px; width: auto; }
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.spacer { flex: 1; }
.topbar-link { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar-link:hover { color: var(--orange-600); }

/* ------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(229, 116, 11, .18), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 64px 0 48px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; max-width: 16ch; }
.hero-course h1 { max-width: 22ch; }
.eyebrow { margin: 0 0 12px; color: var(--orange-600); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 16px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.meta { color: var(--ink-3); font-size: 14px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--orange);
  background: var(--orange); color: #fff; font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--orange-50); border-color: var(--orange-100); color: var(--ink); }
.btn-ghost.is-done { background: var(--green-50); border-color: #bfe8cd; color: var(--green); }

/* ------------------------------------------------------------ progress */
.progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.progress .bar { flex: 1; max-width: 320px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .3s; }
.progress small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.progress[hidden] { display: none; }

/* ------------------------------------------------------------ home */
.list-heading { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 40px 0 16px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; padding-bottom: 64px; }
.course-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(42,43,42,.06), 0 16px 40px rgba(42,43,42,.10); }
.course-card-art { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.course-card-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course-card-body { padding: 20px 22px 22px; }
.course-card-body h2 { font-size: 21px; }
.course-card-body p { color: var(--ink-2); margin: 8px 0 12px; }

/* ------------------------------------------------------------ course page */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.section + .section { margin-top: 40px; }
.section-head { margin-bottom: 14px; }
.section-num { color: var(--orange-600); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: 26px; margin-top: 4px; }
.section-head p { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson-row {
  display: grid; grid-template-columns: 22px 160px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 16px 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s;
}
.lesson-row:hover { border-color: var(--orange-100); background: #fffdfb; }
.row-thumb { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--line); }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-num { color: var(--ink-3); font-size: 12px; font-weight: 600; margin: 0; }
.row-title { font-weight: 700; line-height: 1.3; }
.row-desc { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-time { color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; }

.check {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none;
  display: inline-grid; place-items: center; background: #fff;
}
.is-done .check { background: var(--green); border-color: var(--green); }
.is-done .check::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

.course-aside { display: grid; gap: 20px; position: sticky; top: 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.card h3 { font-size: 16px; margin-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 5px; height: 9px; border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------ lesson page */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 24px; padding-bottom: 64px; align-items: start; }
.crumbs { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--orange-600); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 22px; }
.lesson-head h1 { font-size: clamp(22px, 3vw, 30px); margin-top: 4px; }
.lesson-desc { color: var(--ink-2); font-size: 17px; max-width: 70ch; margin: 14px 0 0; }
.pagers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.pager {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); text-decoration: none; color: var(--ink); min-width: 0;
}
.pager:hover { border-color: var(--orange-100); background: #fffdfb; }
.pager small { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.pager span { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager.next { text-align: right; }
.pager.empty { border: 0; background: none; }

.outline { position: sticky; top: 80px; }
.outline .card { padding: 18px 8px 10px; max-height: calc(100vh - 100px); overflow: auto; }
.outline-title { display: block; padding: 0 12px; font-weight: 800; color: var(--ink); text-decoration: none; }
.outline .progress { padding: 0 12px; margin: 8px 0 6px; }
.outline-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-600); padding: 14px 12px 6px; }
.outline-section ol { list-style: none; margin: 0; padding: 0; }
.outline-section a {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 14px; line-height: 1.35;
}
.outline-section a:hover { background: var(--bg); color: var(--ink); }
.outline-section a[aria-current="page"] { background: var(--orange-50); color: var(--ink); font-weight: 700; }
.o-time { color: var(--ink-3); font-size: 12px; white-space: nowrap; padding-top: 1px; }

.empty-page { padding: 96px 24px; text-align: center; }
.empty-page h1 { margin-bottom: 20px; }

.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--ink-3); font-size: 13px; background: #fff; }

/* ------------------------------------------------------------ narrow */
@media (max-width: 980px) {
  .course-layout, .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .course-aside, .outline { position: static; }
  .outline .card { max-height: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 10px 16px; }
  .topbar-link { display: none; }
  .hero { padding: 40px 0 32px; }
  .lesson-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .row-thumb { display: none; }
  .row-desc { display: none; }
  .lesson-head { flex-direction: column; }
  .pagers { grid-template-columns: 1fr; }
  .pager.next { text-align: left; }
  .pager.empty { display: none; }
}
