:root {
  --canvas: #f8faf9;
  --paper: #ffffff;
  --paper-soft: #f1f5f4;
  --ink: #15242c;
  --ink-soft: #33454e;
  --muted: #65757d;
  --line: #dbe3e4;
  --line-strong: #b9c6c8;
  --navy: #173e78;
  --navy-deep: #102d58;
  --navy-soft: #edf3fb;
  --teal: #006d73;
  --teal-soft: #e7f4f3;
  --magenta: #8d3563;
  --magenta-soft: #f8edf3;
  --yellow: #f4c83f;
  --yellow-soft: #fff8dc;
  --success: #17734f;
  --danger: #9e2e35;
  --display: "Zen Kaku Gothic New", sans-serif;
  --body: "BIZ UDPGothic", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --shadow-sm: 0 5px 18px rgba(19, 38, 47, 0.08);
  --shadow-md: 0 18px 50px rgba(19, 38, 47, 0.12);
  --page: min(1200px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(21, 36, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 36, 44, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  color: inherit;
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  min-height: 44px;
  padding: 9px 18px;
  transform: translateY(-140%);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(21, 36, 44, 0.12);
  background: rgba(248, 250, 249, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: var(--page);
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand__avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #00797f;
}

.brand__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
}

.brand__text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.main-nav a:hover {
  background: var(--paper-soft);
  color: var(--navy);
}

.header-progress {
  width: 128px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 5px 10px;
  font-size: 11px;
}

.header-progress span {
  color: var(--muted);
  font-weight: 700;
}

.header-progress strong {
  font-family: var(--mono);
  font-size: 11px;
}

.header-progress i,
.curriculum-progress i {
  height: 4px;
  overflow: hidden;
  grid-column: 1 / -1;
  background: #dce3e4;
}

.header-progress b,
.curriculum-progress b {
  width: 0;
  height: 100%;
  display: block;
  background: var(--yellow);
  transition: width 240ms ease;
}

.home-hero {
  width: var(--page);
  min-height: 610px;
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 72px;
}

.overline,
.section-label {
  margin: 0;
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 720px;
  margin: 16px 0 20px;
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.home-hero h1 span {
  display: block;
  color: var(--teal);
  font-size: 0.47em;
  letter-spacing: 0.02em;
}

.mobile-title-break {
  display: none;
}

.home-hero__lead {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
}

.instructor-chip {
  max-width: 620px;
  margin-top: 26px;
  padding: 10px 16px 10px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.instructor-chip img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #00797f;
}

.instructor-chip p {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 10px;
  line-height: 1.45;
}

.instructor-chip p span {
  color: var(--muted);
  font-size: 11px;
}

.instructor-chip p strong {
  font-family: var(--display);
  font-size: 18px;
}

.instructor-chip p small {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.home-hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button--primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.button--quiet {
  background: var(--paper);
}

.button--full {
  width: 100%;
}

.study-route {
  max-width: 650px;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.study-route li {
  min-height: 68px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-route li + li {
  border-left: 1px solid var(--line);
}

.study-route b {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 13px;
}

.study-route span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-sheet {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.contact-sheet::before {
  position: absolute;
  inset: -18px 22px 24px -18px;
  z-index: -1;
  border: 1px solid rgba(21, 36, 44, 0.18);
  background: var(--teal-soft);
  content: "";
}

.contact-sheet figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #0b1115;
  box-shadow: var(--shadow-sm);
}

.contact-sheet__main {
  grid-row: 1 / 3;
}

.contact-sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-sheet figcaption {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.home-player {
  width: var(--page);
  margin: 20px auto 96px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.home-player__header {
  min-height: 104px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.home-player__header h2,
.section-heading h2,
.instructor h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.network-state {
  min-height: 32px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #a7c8ba;
  background: #edf8f3;
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.network-state::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.network-state.is-offline {
  border-color: #dfb8bb;
  background: #fff1f1;
  color: var(--danger);
}

.course-player {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.72fr);
}

.course-player__media {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070b0e;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #070b0e;
  object-fit: contain;
}

.video-error {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(8, 14, 18, 0.96);
  color: #fff;
}

.video-error strong {
  font-family: var(--display);
  font-size: 20px;
}

.video-error p {
  max-width: 520px;
  margin: 10px auto 18px;
  color: #cfd9dd;
  font-size: 13px;
}

.video-error div {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.video-error button,
.video-error a {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.player-controls {
  min-height: 72px;
  padding: 14px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.speed-control {
  display: grid;
  gap: 4px;
}

.speed-control span,
.offline-control > span,
.chapter-select > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.speed-control select,
.chapter-select select {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  font-weight: 700;
}

.speed-control select {
  min-width: 108px;
  padding: 6px 30px 6px 12px;
}

.offline-control {
  display: grid;
  grid-template-columns: auto;
  justify-items: end;
  gap: 4px;
}

.offline-control button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.offline-control button[data-offline-remove] {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: var(--ink-soft);
}

.offline-control button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.now-learning {
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--navy-soft);
}

.chapter-select {
  display: grid;
  gap: 5px;
}

.chapter-select select {
  width: 100%;
  padding: 7px 34px 7px 12px;
}

.now-learning__meta {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.now-learning__meta span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.now-learning__meta b {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1;
}

.now-learning h3 {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
}

.now-learning > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.now-learning__goal {
  margin: 22px 0;
  padding: 15px 0;
  border-top: 1px solid #c9d7e8;
  border-bottom: 1px solid #c9d7e8;
}

.now-learning__goal span {
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.now-learning__goal p {
  margin: 5px 0 0;
  font-weight: 700;
  line-height: 1.65;
}

.now-learning .button {
  margin-top: auto;
}

.curriculum {
  width: var(--page);
  margin: 0 auto 112px;
}

.section-heading {
  margin-bottom: 34px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading > div:first-child {
  min-width: 0;
}

.section-heading > p {
  max-width: 530px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.curriculum-progress {
  width: 150px;
  display: grid;
  gap: 7px;
  text-align: right;
}

.curriculum-progress strong {
  font-family: var(--mono);
  font-size: 13px;
}

.curriculum-list {
  display: grid;
  gap: 30px;
}

.curriculum-phase {
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.curriculum-phase__header {
  min-height: 96px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.curriculum-phase--navy .curriculum-phase__header {
  background: var(--navy-soft);
}

.curriculum-phase--magenta .curriculum-phase__header {
  background: var(--magenta-soft);
}

.curriculum-phase--teal .curriculum-phase__header {
  background: var(--teal-soft);
}

.curriculum-phase__header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.curriculum-phase__header h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
}

.curriculum-phase__header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.curriculum-phase__header time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.curriculum-row {
  min-height: 166px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.curriculum-row:last-child {
  border-bottom: 0;
}

.curriculum-row:hover {
  background: #fbfcfc;
}

.curriculum-row.is-complete {
  background: #f4faf7;
}

.curriculum-row__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #10181d;
}

.curriculum-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curriculum-row__image span {
  position: absolute;
  top: 7px;
  left: 7px;
  min-width: 30px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.curriculum-row__body {
  min-width: 0;
}

.curriculum-row__meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.curriculum-row__body h3 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.curriculum-row__body h3 a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.curriculum-row__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.curriculum-row__action {
  display: grid;
  gap: 10px;
}

.curriculum-row__action > a {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.curriculum-status {
  min-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.curriculum-status i,
.complete-button i {
  width: 12px;
  height: 12px;
  display: block;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.curriculum-status.is-complete {
  color: var(--success);
}

.curriculum-status.is-complete i,
.complete-button.is-complete i {
  border-color: var(--success);
  background: var(--success);
  box-shadow: inset 0 0 0 3px #fff;
}

.curriculum-row__action > a {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.instructor {
  width: var(--page);
  margin: 0 auto 110px;
  padding: 44px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 310px;
  align-items: center;
  gap: 42px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--teal-soft);
}

.instructor__visual {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #00797f;
}

.instructor__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.instructor__copy p {
  margin: 18px 0 20px;
  color: var(--ink-soft);
}

.instructor__copy dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.instructor__copy dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}

.instructor__copy dt {
  color: var(--magenta);
  font-size: 11px;
  font-weight: 700;
}

.instructor__copy dd {
  margin: 0;
  font-size: 12px;
}

.instructor__works {
  display: grid;
  gap: 10px;
}

.instructor__works img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.site-footer {
  min-height: 170px;
  padding: 40px max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line-strong);
  background: #eef2f1;
}

.site-footer > div > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer > a {
  min-height: 44px;
  padding: 9px 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 500;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  transform: translateY(24px);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Lesson workspace */
.lesson-layout {
  width: min(1480px, calc(100% - 40px));
  margin: 34px auto 110px;
  display: grid;
  grid-template-columns: 292px minmax(0, 920px);
  justify-content: center;
  align-items: start;
  gap: 40px;
}

.course-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: hidden auto;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  scrollbar-width: thin;
}

.course-sidebar__head {
  min-height: 80px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
  color: #fff;
}

.course-sidebar__head span {
  grid-column: 1 / -1;
  color: #bed0e5;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.course-sidebar__head strong {
  font-family: var(--display);
  font-size: 18px;
}

.course-sidebar__head small {
  font-family: var(--mono);
  font-size: 10px;
}

.course-nav__phase + .course-nav__phase {
  border-top: 1px solid var(--line);
}

.course-nav__phase > header {
  min-height: 42px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-soft);
}

.course-nav__phase > header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.course-nav__phase > header strong {
  font-size: 11px;
}

.course-nav__lesson {
  position: relative;
  min-height: 68px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf0f1;
}

.course-nav__lesson:hover {
  background: #f8fafb;
}

.course-nav__lesson.is-current {
  background: var(--yellow-soft);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.course-nav__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.course-nav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-nav__copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 7px;
  line-height: 1.35;
}

.course-nav__copy b {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 8px;
}

.course-nav__copy strong {
  overflow: hidden;
  grid-column: 1 / -1;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-nav__copy small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
}

.course-nav__lesson > i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.course-nav__lesson > i.is-complete {
  border-color: var(--success);
  background: var(--success);
}

.lesson-main {
  min-width: 0;
}

.lesson-breadcrumb {
  min-height: 44px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.lesson-breadcrumb a {
  min-height: 32px;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
}

.lesson-breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lesson-intro {
  position: relative;
  padding: 34px 38px 36px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--navy);
  background: var(--paper);
}

.lesson-intro--magenta {
  border-top-color: var(--magenta);
}

.lesson-intro--teal {
  border-top-color: var(--teal);
}

.lesson-intro::after {
  position: absolute;
  right: -54px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border: 34px solid var(--paper-soft);
  border-radius: 50%;
  content: "";
}

.lesson-intro__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.lesson-intro__meta span,
.lesson-intro__meta time,
.lesson-intro__meta b {
  min-height: 28px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.lesson-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 22px 0 12px;
  font-family: var(--display);
  font-size: clamp(35px, 4.2vw, 50px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.lesson-intro > p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.mobile-course-menu {
  display: none;
}

.lesson-player {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.lesson-player > header {
  min-height: 76px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.lesson-player > header > span {
  color: var(--magenta);
  font-size: 10px;
  font-weight: 700;
}

.lesson-player > header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
}

.lesson-player .video-shell {
  margin: 20px;
}

.lesson-player .player-controls {
  padding: 0 20px 20px;
}

.lesson-brief {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.lesson-brief__summary {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.lesson-brief__summary > span,
.lesson-brief aside > div > span {
  color: var(--magenta);
  font-size: 10px;
  font-weight: 700;
}

.lesson-brief__summary h2 {
  margin: 9px 0 15px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.45;
}

.prose p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.95;
}

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

.lesson-brief aside {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 24px;
  background: var(--paper-soft);
}

.lesson-brief aside > div + div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lesson-brief aside ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.lesson-brief aside li {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.7;
}

.lesson-content {
  margin-top: 54px;
  display: grid;
  gap: 72px;
}

.lesson-block {
  min-width: 0;
}

.block-heading {
  margin-bottom: 24px;
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.block-heading span {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.block-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.block-intro {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.block-explanation .prose {
  max-width: 760px;
  margin-left: 128px;
}

.block-explanation .prose ul {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.block-explanation .prose li {
  padding: 15px 17px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.block-steps > p {
  max-width: 760px;
  margin: -8px 0 24px 128px;
  color: var(--ink-soft);
}

.block-steps ol {
  margin: 0 0 0 128px;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.block-steps li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.block-steps li > b {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 22px;
}

.block-steps h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
}

.block-steps li p {
  margin: 7px 0 12px;
  color: var(--ink-soft);
}

.block-steps small {
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  background: var(--teal-soft);
  color: var(--ink-soft);
  font-size: 11px;
}

.block-steps small span {
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 700;
}

.block-example {
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: var(--navy-soft);
}

.block-example .block-heading {
  border-color: #cbd8e8;
}

.block-example dl {
  margin: 0;
  display: grid;
  gap: 1px;
  border: 1px solid #cbd8e8;
  background: #cbd8e8;
}

.block-example dl > div {
  padding: 16px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  background: #fff;
}

.block-example dt {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.block-example dd {
  margin: 0;
}

.example-compare {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.example-compare article {
  padding: 17px;
  border: 1px solid #b7c8dc;
  background: #fff;
}

.example-compare article:last-child {
  border-color: #dfc4d2;
  background: #fff8fb;
}

.example-compare span {
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.example-compare article:last-child span {
  color: var(--magenta);
}

.example-compare p,
.example-compare ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
}

th,
td {
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--navy-deep);
  color: #fff;
  font-size: 11px;
}

td {
  font-size: 13px;
  line-height: 1.7;
}

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

.comparison-grid article {
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.comparison-grid h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
}

.comparison-grid dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.comparison-grid dl div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.comparison-grid dt {
  color: var(--magenta);
  font-size: 10px;
  font-weight: 700;
}

.comparison-grid dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.block-pitfalls > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.block-pitfalls article {
  padding: 22px;
  border-top: 4px solid var(--magenta);
  background: var(--magenta-soft);
}

.block-pitfalls h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
}

.block-pitfalls p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.block-pitfalls p span {
  margin-right: 8px;
  color: var(--magenta);
  font-weight: 700;
}

.block-visuals > p {
  max-width: 760px;
  margin: -6px 0 22px 128px;
  color: var(--ink-soft);
}

.block-visuals > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.block-visuals figure {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.block-visuals img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.block-visuals figcaption {
  min-height: 68px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 11px;
}

.block-note {
  padding: 28px 32px;
  border-left: 7px solid var(--teal);
  background: var(--teal-soft);
}

.block-note .block-heading {
  border-color: #c6dedd;
}

.practice-section {
  padding: 34px;
  border: 1px solid #d7bd55;
  background: var(--yellow-soft);
}

.practice-section > header {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 18px;
}

.practice-section > header span,
.check-section > header span {
  color: #755c00;
  font-size: 11px;
  font-weight: 700;
}

.practice-section > header h2,
.check-section > header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
}

.practice-section__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid #ddca7a;
  background: #ddca7a;
}

.practice-section__grid > div {
  padding: 18px;
  background: #fffdf4;
}

.practice-section h3 {
  margin: 0 0 7px;
  color: #755c00;
  font-size: 11px;
}

.practice-section p {
  margin: 0;
}

.practice-sample,
.practice-criteria {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #ddca7a;
  background: #fff;
}

.practice-sample > span {
  color: var(--magenta);
  font-size: 10px;
  font-weight: 700;
}

.practice-criteria ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.practice-criteria li {
  margin: 5px 0;
  font-size: 13px;
}

.check-section {
  padding: 34px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.check-section > header {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: baseline;
  gap: 18px;
}

.check-section > header span {
  color: var(--teal);
}

.check-section > header p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.check-list {
  margin-top: 26px;
  display: grid;
  border-top: 1px solid var(--line);
}

.check-list label {
  min-height: 60px;
  padding: 11px 4px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check-list input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.check-list span {
  font-size: 13px;
  font-weight: 700;
}

.complete-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.complete-button.is-complete {
  border-color: var(--success);
  background: var(--success);
}

.lesson-next {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

.lesson-next a {
  min-height: 110px;
  padding: 20px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.lesson-next a.is-next {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.lesson-next span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.lesson-next .is-next span {
  color: #c2d1e5;
}

.lesson-next strong {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  :root {
    --page: min(100% - 36px, 1000px);
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 44px;
  }

  .course-player {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  }

  .instructor {
    grid-template-columns: 160px 1fr;
  }

  .instructor__works {
    display: none;
  }

  .lesson-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  .course-nav__lesson {
    grid-template-columns: 54px minmax(0, 1fr) 7px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .contact-sheet {
    min-height: 360px;
  }

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

  .course-player__media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .curriculum-row {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .curriculum-row__action {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }

  .lesson-layout {
    width: min(100% - 32px, 920px);
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    display: none;
  }

  .mobile-course-menu {
    margin-top: 14px;
    display: block;
    border: 1px solid var(--line-strong);
    background: var(--paper);
  }

  .mobile-course-menu > summary {
    min-height: 52px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
  }

  .mobile-course-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-course-menu > summary strong {
    color: var(--navy);
  }

  .mobile-course-menu nav {
    max-height: 420px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }

  .course-nav__lesson {
    grid-template-columns: 76px minmax(0, 1fr) 8px;
  }

  .course-nav__copy strong {
    font-size: 12px;
  }

  .lesson-brief {
    grid-template-columns: 1fr;
  }

  .lesson-brief__summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 28px);
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  body::before {
    background-size: 32px 32px;
  }

  .site-header__inner {
    width: calc(100% - 24px);
    min-height: 62px;
    gap: 10px;
  }

  .brand__avatar {
    width: 38px;
    height: 38px;
  }

  .brand__text strong {
    font-size: 15px;
  }

  .brand__text small {
    font-size: 8px;
  }

  .header-progress {
    width: 84px;
  }

  .header-progress span {
    display: none;
  }

  .header-progress strong {
    grid-column: 1 / -1;
    text-align: right;
  }

  .home-hero {
    padding: 34px 0 28px;
    gap: 30px;
  }

  .overline {
    font-size: 9px;
  }

  .home-hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(37px, 11.7vw, 48px);
    line-height: 1.15;
  }

  .home-hero h1 span {
    font-size: 0.52em;
  }

  .mobile-title-break {
    display: block;
  }

  .home-hero__lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .instructor-chip {
    margin-top: 20px;
    padding: 8px;
  }

  .instructor-chip img {
    width: 52px;
    height: 52px;
  }

  .instructor-chip p small {
    font-size: 10px;
  }

  .home-hero__actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 50px;
  }

  .study-route {
    margin-top: 20px;
    grid-template-columns: 1fr;
  }

  .study-route li {
    min-height: 48px;
    padding: 8px 12px;
  }

  .study-route li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-sheet {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .contact-sheet::before {
    inset: -10px 10px 12px -10px;
  }

  .contact-sheet__main {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .contact-sheet figure:not(.contact-sheet__main) {
    display: none;
  }

  .home-player {
    width: calc(100% - 20px);
    margin: 6px auto 72px;
  }

  .home-player__header {
    min-height: 0;
    padding: 18px;
    align-items: flex-start;
  }

  .home-player__header h2,
  .section-heading h2,
  .instructor h2 {
    font-size: 24px;
  }

  .network-state {
    min-height: 30px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .course-player__media {
    padding: 10px;
  }

  .player-controls,
  .lesson-player .player-controls {
    min-height: 0;
    padding: 12px 0 2px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lesson-player .player-controls {
    padding: 0 12px 14px;
  }

  .speed-control,
  .offline-control {
    width: 100%;
    justify-items: stretch;
  }

  .speed-control select,
  .offline-control button {
    width: 100%;
  }

  .offline-control > span {
    text-align: left;
  }

  .now-learning {
    padding: 20px 18px;
  }

  .now-learning__meta {
    margin-top: 20px;
  }

  .now-learning h3 {
    font-size: 23px;
  }

  .section-heading {
    margin-bottom: 20px;
    padding-bottom: 18px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .section-heading > p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12px;
  }

  .curriculum-progress {
    width: 90px;
  }

  .curriculum {
    margin-bottom: 72px;
  }

  .curriculum-list {
    gap: 18px;
  }

  .curriculum-phase__header {
    min-height: 0;
    padding: 15px;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }

  .curriculum-phase__header p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .curriculum-phase__header time {
    grid-column: 2;
    grid-row: 1;
  }

  .curriculum-row {
    min-height: 0;
    padding: 14px;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .curriculum-row__body h3 {
    margin-top: 5px;
    font-size: 16px;
  }

  .curriculum-row__body p {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 11px;
  }

  .curriculum-row__action {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .curriculum-row__action > a {
    min-height: 46px;
  }

  .instructor {
    margin-bottom: 72px;
    padding: 22px;
    grid-template-columns: 82px 1fr;
    align-items: start;
    gap: 18px;
    box-shadow: 6px 6px 0 var(--teal-soft);
  }

  .instructor__copy {
    display: contents;
  }

  .instructor__copy > .section-label,
  .instructor__copy > h2 {
    grid-column: 2;
  }

  .instructor__copy > p,
  .instructor__copy > dl {
    grid-column: 1 / -1;
  }

  .instructor__copy > p {
    margin: 8px 0 12px;
    font-size: 13px;
  }

  .instructor__copy dl div {
    grid-template-columns: 82px 1fr;
  }

  .site-footer {
    min-height: 0;
    padding: 30px 18px;
    align-items: flex-start;
  }

  .site-footer > div > p {
    max-width: 230px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
  }

  .lesson-layout {
    width: calc(100% - 20px);
    margin-top: 16px;
    margin-bottom: 72px;
  }

  .lesson-breadcrumb {
    margin: 0 4px 8px;
    font-size: 9px;
  }

  .lesson-breadcrumb a {
    min-height: 44px;
  }

  .lesson-intro {
    padding: 22px 20px 24px;
  }

  .lesson-intro::after {
    right: -96px;
    bottom: -118px;
  }

  .lesson-intro h1 {
    margin: 16px 0 9px;
    font-size: 32px;
  }

  .lesson-intro > p {
    font-size: 13px;
    line-height: 1.75;
  }

  .lesson-player {
    margin-top: 14px;
  }

  .lesson-player > header {
    min-height: 64px;
    padding: 12px;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }

  .lesson-player > header > span {
    grid-column: 1;
    font-size: 9px;
  }

  .lesson-player > header h2 {
    grid-column: 1;
    font-size: 17px;
  }

  .lesson-player > header .network-state {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .lesson-player .video-shell {
    margin: 10px;
  }

  .lesson-brief {
    margin-top: 14px;
  }

  .lesson-brief__summary {
    padding: 22px 18px;
  }

  .lesson-brief__summary h2 {
    font-size: 22px;
  }

  .lesson-brief aside {
    padding: 20px 18px;
  }

  .lesson-content {
    margin-top: 42px;
    gap: 54px;
  }

  .block-heading {
    margin-bottom: 18px;
    padding: 0 4px 13px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .block-heading h2 {
    font-size: 25px;
  }

  .block-explanation .prose,
  .block-steps > p,
  .block-steps ol,
  .block-visuals > p {
    margin-left: 4px;
    margin-right: 4px;
  }

  .block-explanation .prose ul {
    grid-template-columns: 1fr;
  }

  .block-steps li {
    grid-template-columns: 42px 1fr;
  }

  .block-steps li > b {
    font-size: 18px;
  }

  .block-example {
    padding: 20px 16px;
  }

  .block-example dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .example-compare,
  .comparison-grid,
  .block-pitfalls > div,
  .block-visuals > div,
  .practice-section__grid {
    grid-template-columns: 1fr;
  }

  .table-scroll {
    overflow: visible;
    border: 0;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
    background: transparent;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    border: 1px solid var(--line-strong);
    background: var(--paper);
  }

  td {
    padding: 12px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    border-right: 0;
    font-size: 12px;
  }

  td::before {
    color: var(--navy);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
  }

  .block-visuals figcaption {
    min-height: 0;
  }

  .block-note,
  .practice-section,
  .check-section {
    padding: 22px 18px;
  }

  .practice-section > header,
  .check-section > header {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .practice-section > header h2,
  .check-section > header h2 {
    font-size: 24px;
  }

  .check-section > header p {
    grid-column: 1;
  }

  .check-list label {
    min-height: 64px;
  }

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

  .lesson-next a {
    min-height: 92px;
  }
}

@media (max-width: 360px) {
  .brand__text small {
    display: none;
  }

  .home-player__header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .network-state {
    justify-self: start;
  }

  .curriculum-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .course-sidebar,
  .mobile-course-menu,
  .lesson-player,
  .home-player,
  .toast,
  .lesson-next,
  .complete-button {
    display: none !important;
  }

  body,
  .lesson-intro,
  .lesson-brief,
  .lesson-block,
  .practice-section,
  .check-section {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .lesson-layout,
  .lesson-main,
  .lesson-content {
    width: 100%;
    max-width: none;
    display: block;
  }
}
