:root {
  --accent: #00830b;
  --accent-dark: #034c12;
  --accent-soft: #e5f2e5;
  --ink: #111217;
  --muted: #6e7585;
  --line: #e0e2e6;
  --disabled: #a0a7b3;
  --page: #f3f3f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#app {
  min-height: 100vh;
}

.course-frame {
  width: min(1576px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 18, 23, 0.04);
  display: grid;
  grid-template-rows: 78px 1fr 82px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 27px 0 36px;
  gap: 24px;
}

.brand-lockup,
.progress-summary {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 27px;
}

.logo {
  width: 153px;
  height: auto;
  display: block;
}

.divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.section-title {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.progress-summary {
  gap: 22px;
  color: var(--accent);
  font-size: 17px;
}

.progress-track {
  width: min(201px, 18vw);
  height: 5px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.course-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 312px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 41px 16px 26px;
}

.sidebar h2,
.learning-goals figcaption,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.sidebar h2 {
  margin: 0 0 18px 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.sidebar nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  min-height: 56px;
  border-radius: 3px;
  color: var(--disabled);
  text-decoration: none;
  display: grid;
  grid-template-columns: 26px 1fr 6px;
  align-items: center;
  gap: 14px;
  padding: 0 16px 0 19px;
  font-weight: 700;
}

.nav-item::after {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-item.active::after {
  background: var(--accent);
}

.nav-item .icon {
  filter: brightness(0) saturate(100%) invert(78%) sepia(8%) saturate(215%) hue-rotate(179deg) brightness(90%) contrast(88%);
}

.nav-item.active .icon,
.nav-item.completed .icon {
  filter: none;
}

.nav-item.locked {
  cursor: not-allowed;
  pointer-events: none;
}

.icon {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 auto;
}

.icon-chevronDown {
  transform: rotate(90deg);
}

.icon-chevronLeft {
  transform: rotate(180deg);
}

.total-time {
  margin-top: auto;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.total-time .icon {
  width: 17px;
  height: 17px;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 49.8%);
}

.intro-copy {
  align-self: center;
  padding: 60px clamp(44px, 6.5vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 38px 0 10px;
  font-size: clamp(48px, 4.7vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.intro-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.course-meta {
  margin: 38px 0 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 30px;
}

.course-meta div {
  display: grid;
  gap: 10px;
}

.course-meta .icon {
  width: 22px;
  height: 22px;
}

.course-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.start-button {
  min-height: 61px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0, 131, 11, 0.18);
}

.start-button:hover,
.start-button:focus-visible {
  background: #007409;
}

.start-button .icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.hero-card {
  min-height: 100%;
  margin: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(34px, 4.4vw, 59px) clamp(34px, 4.2vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 51, 13, 0.72), rgba(4, 51, 13, 0.35)),
    linear-gradient(180deg, rgba(67, 122, 30, 0.2), rgba(1, 35, 10, 0.92)),
    var(--hero-image) center / cover,
    radial-gradient(circle at 35% 25%, #8ba75d 0, #526d38 35%, #173b1d 100%);
  color: #fff;
}

.learning-goals {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
}

.learning-goals figcaption {
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.learning-goals ul {
  margin: 0;
  padding-left: 21px;
  display: grid;
  gap: 13px;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.3;
}

.learning-goals li::marker {
  color: rgba(255, 255, 255, 0.9);
}

.chapter-panel {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 426px);
  gap: clamp(42px, 5vw, 56px);
  padding: clamp(48px, 6vw, 68px) clamp(42px, 5.2vw, 76px) 0 clamp(42px, 5vw, 57px);
  overflow: hidden;
}

.chapter-copy {
  min-width: 0;
  max-width: 670px;
}

.chapter-eyebrow {
  color: var(--accent);
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.32em;
  line-height: 1;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.chapter-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 3.2vw, 42px);
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.chapter-copy > p {
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
  letter-spacing: 0.03em;
  line-height: 1.58;
  margin: 0 0 46px;
  max-width: 690px;
}

.accordion-list {
  display: grid;
  gap: 6px;
}

.accordion-card {
  border: 1px solid #d9dde1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 18, 23, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.accordion-card.open {
  border-color: #d5e4d5;
}

.accordion-card h2 {
  margin: 0;
}

.accordion-card button {
  width: 100%;
  min-height: 74px;
  border: 0;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 31px 0 29px;
  font-size: 20px;
  font-weight: 900;
  text-align: left;
}

.accordion-card.open button {
  background: var(--accent-soft);
  color: var(--accent);
}

.accordion-card button .icon {
  flex: 0 0 auto;
  transition: transform 220ms ease;
}

.accordion-card.open button .icon-chevronRight {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 180ms ease;
}

.accordion-card.open .accordion-content {
  max-height: 240px;
  opacity: 1;
}

.accordion-content > p {
  transform: translateY(-4px);
  transition: transform 240ms ease;
}

.accordion-card.open .accordion-content > p {
  transform: translateY(0);
}

.accordion-card p {
  margin: 0;
  padding: 25px 29px 24px;
  color: var(--muted);
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.rule-callout {
  margin-top: 45px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 17px;
  padding: 30px 28px 29px;
  color: var(--accent);
}

.rule-callout .icon {
  width: 28px;
  height: 28px;
  margin-top: 1px;
}

.rule-callout strong {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}

.rule-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.chapter-aside {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 28px;
}

.chapter-aside img,
.chapter-video video {
  width: 100%;
  aspect-ratio: 426 / 322;
  border-radius: 8px;
  object-fit: cover;
  background: radial-gradient(circle at 30% 10%, #b7d3d8, #5b7f72 45%, #24402e 100%);
}

.chapter-video {
  width: 100%;
  position: relative;
}

.chapter-video video {
  display: block;
}

.quick-facts {
  border: 1px solid #d9dde1;
  border-radius: 10px;
  padding: 31px 28px 29px;
  box-shadow: 0 1px 2px rgba(17, 18, 23, 0.04);
}

.quick-facts h2 {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.32em;
  margin: 0 0 30px;
  text-transform: uppercase;
}

.quick-facts dl {
  margin: 0;
}

.quick-facts div {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0 14px;
}

.quick-facts div:last-child {
  border-bottom: 0;
}

.quick-facts dt,
.quick-facts dd {
  margin: 0;
}

.quick-facts dt {
  color: var(--muted);
}

.quick-facts dd {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.quiz-panel {
  min-height: 0;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 58px clamp(28px, 5vw, 72px) 14px;
  overflow: hidden;
}

.quiz-card {
  width: min(714px, 100%);
}

.quiz-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 27px;
}

.question-badge {
  width: 39px;
  height: 39px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.question-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.quiz-card h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 2.4vw, 32px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.quiz-scenario {
  margin-bottom: 44px;
  color: var(--ink);
  font-size: clamp(18px, 1.35vw, 20px);
  letter-spacing: 0.02em;
  line-height: 1.22;
}

.quiz-scenario p {
  margin: 0 0 20px;
}

.quiz-scenario p:last-child {
  margin-bottom: 0;
}

.answer-list {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.answer-option {
  min-height: 104px;
  border: 3px solid #e3e7ed;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 23px;
  padding: 20px 28px;
  color: #465164;
  font-size: clamp(18px, 1.25vw, 20px);
  letter-spacing: 0.03em;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.answer-option:hover,
.answer-option:focus-within {
  border-color: #cdd5df;
  box-shadow: 0 8px 18px rgba(17, 18, 23, 0.05);
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  width: 35px;
  height: 35px;
  border: 3px solid #cfd5dd;
  border-radius: 999px;
  display: block;
}

.answer-option input:checked + .radio-mark {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 7px #fff;
  background: var(--accent);
}

.answer-option:has(input:checked) {
  border-color: var(--accent);
}

.completion-panel {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 349px) minmax(0, 745px);
  gap: 45px;
  justify-content: center;
  align-items: start;
  padding: 68px clamp(38px, 5vw, 64px) 0;
  overflow: hidden;
}

.completion-summary,
.lesson-card,
.next-steps-card {
  border: 1px solid #d9dde1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 18, 23, 0.03);
}

.completion-summary {
  min-height: 790px;
  padding: 45px 44px;
  text-align: center;
}

.award-icon {
  width: 113px;
  height: 113px;
  border-radius: 21px;
  margin: 0 auto 31px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 11px rgba(0, 0, 0, 0.16);
}

.award-icon .icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.7;
  filter: brightness(0) invert(1);
}

.completion-eyebrow,
.lesson-card h2,
.next-steps-card h2 {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.completion-summary h1 {
  margin: 22px 0 15px;
  font-size: clamp(30px, 2.6vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.completion-summary > p {
  margin: 0 auto 39px;
  max-width: 260px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.completion-stats {
  border: 1px solid #d9dde1;
  border-radius: 10px;
  margin: 0 0 33px;
  overflow: hidden;
  text-align: left;
}

.completion-stats div {
  min-height: 63px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 23px;
}

.completion-stats div:last-child {
  border-bottom: 0;
}

.completion-stats dt,
.completion-stats dd {
  margin: 0;
}

.completion-stats dt {
  color: var(--muted);
}

.completion-stats dd {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.certificate-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.completion-details {
  display: grid;
  gap: 28px;
}

.lesson-card {
  padding: 38px 35px 34px;
}

.lesson-card h2,
.next-steps-card h2 {
  margin: 0 0 31px;
}

.lesson-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson;
  display: grid;
  gap: 28px;
}

.lesson-card li {
  counter-increment: lesson;
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 18px;
}

.lesson-card li::before {
  content: counter(lesson);
  width: 35px;
  height: 35px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.lesson-card span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.lesson-card p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.next-steps-card {
  padding: 38px 34px 34px;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.next-step {
  min-height: 79px;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
}

.next-step.complete {
  border-color: #b8e2bc;
  background: var(--accent-soft);
}

.next-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--disabled);
  display: grid;
  place-items: center;
}

.next-step.complete .next-step-icon {
  background: #bde8c1;
  color: var(--accent);
}

.next-step-icon .icon {
  width: 19px;
  height: 19px;
}

.next-step h3 {
  margin: 0 0 2px;
  color: #3f4858;
  font-size: 16px;
  font-weight: 900;
}

.next-step.complete h3 {
  color: var(--accent);
}

.next-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pager {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pager span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dfe2e6;
}

.pager .active {
  width: 28px;
  background: var(--accent);
}

.course-footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 57px 0 29px;
}

.course-footer .pager {
  border-top: 0;
}

.footer-link,
.next-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
}

.next-button:disabled {
  background: #cfd3da;
  color: #fff;
  cursor: not-allowed;
}

.footer-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.footer-link {
  color: var(--muted);
  justify-self: start;
}

.next-button {
  min-width: 131px;
  min-height: 46px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  justify-self: end;
  justify-content: center;
  padding: 0 22px;
}

.footer-link .icon,
.next-button .icon {
  width: 20px;
  height: 20px;
}

.next-button .icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 1100px) {
  .course-frame {
    min-height: 100vh;
  }

  .course-grid {
    grid-template-columns: 250px 1fr;
  }

  .intro-panel {
    grid-template-columns: 1fr;
  }

  .chapter-panel {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .chapter-copy {
    max-width: none;
  }

  .chapter-aside {
    grid-row: 1;
  }

  .quiz-panel,
  .completion-panel {
    overflow: visible;
  }

  .completion-panel {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .completion-summary {
    min-height: 0;
  }

  .hero-card {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .course-frame {
    grid-template-rows: auto auto auto;
  }

  .topbar {
    align-items: flex-start;
    padding: 22px;
    flex-direction: column;
  }

  .logo {
    width: 132px;
  }

  .progress-track {
    width: 180px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 18px;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .total-time {
    margin-top: 22px;
  }

  .intro-copy {
    padding: 42px 24px;
  }

  h1 {
    margin-top: 28px;
  }

  .course-meta {
    margin-bottom: 42px;
    grid-template-columns: 1fr;
  }

  .start-button {
    width: 100%;
    justify-content: center;
  }

  .chapter-panel {
    gap: 32px;
    padding: 36px 24px 42px;
  }

  .chapter-copy h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .chapter-copy > p,
  .accordion-card p,
  .rule-callout p {
    font-size: 17px;
  }

  .accordion-card button {
    min-height: 64px;
    padding: 0 20px;
    font-size: 18px;
  }

  .accordion-card p {
    padding: 20px;
  }

  .rule-callout {
    margin-top: 28px;
    padding: 24px 20px;
  }

  .quiz-panel {
    padding: 36px 24px 42px;
  }

  .quiz-heading {
    margin-bottom: 22px;
  }

  .quiz-scenario {
    margin-bottom: 30px;
    line-height: 1.35;
  }

  .answer-option {
    min-height: 86px;
    grid-template-columns: 31px 1fr;
    gap: 17px;
    padding: 18px;
    font-size: 17px;
  }

  .radio-mark {
    width: 31px;
    height: 31px;
  }

  .completion-panel {
    padding: 36px 24px 42px;
    gap: 24px;
  }

  .completion-summary,
  .lesson-card,
  .next-steps-card {
    border-radius: 14px;
  }

  .completion-summary,
  .lesson-card,
  .next-steps-card {
    padding: 28px 22px;
  }

  .award-icon {
    width: 88px;
    height: 88px;
  }

  .award-icon .icon {
    width: 44px;
    height: 44px;
  }

  .lesson-card li {
    grid-template-columns: 32px 1fr;
  }

  .lesson-card li::before {
    width: 32px;
    height: 32px;
  }

  .lesson-card span {
    font-size: 18px;
  }

  .lesson-card p {
    font-size: 15px;
  }

  .next-step-grid {
    grid-template-columns: 1fr;
  }

  .course-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 24px;
  }

  .course-footer .pager,
  .footer-link,
  .next-button {
    justify-self: stretch;
  }

  .course-footer .pager {
    order: -1;
  }
}

@media (max-width: 480px) {
  .brand-lockup {
    gap: 16px;
  }

  .section-title {
    font-size: 14px;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .nav-item {
    min-height: 50px;
  }

  .hero-card {
    min-height: 460px;
  }
}
