.course-paper {
  color-scheme: light;
  color: #231f19;
  background: #faf7ef;
  padding: clamp(24px, 4vw, 64px) 0 clamp(36px, 5vw, 72px);
}
.course-wrap { width: var(--page-width); margin: auto; }
.course-heading { margin-bottom: clamp(20px, 3vw, 38px); }
.course-price { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 580; }
.course-price b { padding: 4px 11px; border-radius: 20px; background: #f4cd89; font-weight: 680; }
.course-price span { color: #6a6053; font-size: 13px; font-weight: 450; }
.course-heading h1 { margin: 12px 0 10px; font-size: clamp(43px, 6.3vw, 88px); font-weight: 570; line-height: 1; }
.course-heading em { color: #8b5924; font-style: normal; white-space: nowrap; }
.course-intro { max-width: 68ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.42; color: #51493e; }
.course-heading--with-kit {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(18px, 3.8vw, 60px);
}
.course-heading--with-kit .course-price { flex-wrap: wrap; }
.course-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 14px; }
.course-heading-actions .course-sample-link { margin: 0; }
.course-kit { display: grid; gap: clamp(6px, .85vw, 12px); min-width: 0; }
.course-kit-materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
.course-kit-tile {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(14px, 1.9vw, 30px);
  border: 1px solid var(--kit-line, #72563d);
  border-radius: clamp(14px, 1.75vw, 24px);
  color: var(--kit-text, #fff4df);
}
.course-kit-tile h2 {
  max-width: var(--kit-text-width, 68%); font-size: clamp(22px, 2.2vw, 37px);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 650;
}
.course-kit-tile p {
  max-width: var(--kit-text-width, 68%); margin-top: 6px; color: var(--kit-muted, #f1dcc4);
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.26;
}
.course-kit-tile img, .course-kit-codex::before {
  position: absolute; z-index: -1; display: block;
}
.course-kit-video {
  --kit-text-width: 60%;
  background: linear-gradient(90deg, #23180f 18%, #24180fc9 54%, #30201133),
    #3b281a url("media/pilot/course-kit-backdrop.webp") center / cover no-repeat;
}
.course-kit-video h2 {
  max-width: 100%; color: #ffdc9f; font-size: clamp(33px, 4vw, 62px);
  text-shadow: 0 2px 10px #21160e;
}
.course-kit-video img {
  width: 54%; height: auto; top: 18%; right: -5%; transform: rotate(4deg);
  border: 1px solid #aa815c; border-radius: clamp(5px, 1vw, 13px);
  box-shadow: 0 10px 22px #130b07ad; mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.course-kit-video a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 5px 0 -6px;
  color: #ffdb9f; font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px;
}
.course-kit-pdf {
  --kit-text: #39281b; --kit-muted: #5e4731; --kit-line: #d3b891;
  background: linear-gradient(110deg, #f5e5cc, #ebc795);
}
.course-kit-pdf img {
  top: 16%; right: -5%; width: 45%; max-width: 150px; height: auto; transform: rotate(8deg);
  border-radius: 3px; box-shadow: 0 6px 12px #48311a4d; clip-path: inset(0 0 49% 0);
}
.course-kit-codex { --kit-line: #4d6064; background: #152b32; }
.course-kit-codex::before {
  content: ""; inset: 0 0 0 42%;
  background: linear-gradient(90deg, #152b32 4%, #152b3226), url("media/pilot/course-module-codex.webp") right 56% / auto 121%;
}
.course-heading-actions .cta:focus-visible, .course-kit-video a:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}
@media (max-width: 850px) { .course-heading--with-kit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .course-kit-materials { grid-template-columns: minmax(0, 1fr); }
  .course-kit-video { --kit-text-width: 66%; }
  .course-kit-video img { width: 58%; top: 24%; right: -11%; }
  .course-kit-pdf img { right: 2%; width: 34%; }
}
.course-sample-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 5px;
  color: #764a21; font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px;
}
.course-program {
  margin-bottom: clamp(28px, 4vw, 58px);
  padding: clamp(10px, 2.1vw, 32px);
  border-radius: clamp(18px, 2.4vw, 32px);
  background: radial-gradient(ellipse at 100% 0, #50331f, transparent 56%), #1b1816;
  color: #fff9ef;
  scroll-margin-top: 80px;
}
.course-program-heading {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: 8px 20px; margin: 0 0 clamp(16px, 2vw, 25px);
}
.course-program h2 {
  font-size: clamp(28px, 4vw, 58px); font-weight: 620; line-height: 1.16; letter-spacing: -.04em;
}
.course-program h2 em {
  display: inline-block; padding: 0 .18em; border-radius: 7px;
  background: #f3cb87; color: #2d2116; font-style: normal; white-space: nowrap;
}
.course-program-heading > p { color: #e5d5c3; font-size: 14px; line-height: 1.35; }
.course-modules {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
  gap: clamp(10px, 1.4vw, 20px);
}
.course-module {
  --module-inset: clamp(12px, 1.6vw, 24px);
  --module-visual-inset: max(0px, calc(100% - 640px));
  --module-title-width: max(54%, 8em);
  border-radius: 16px; overflow: hidden;
  background: #fffdf8; color: #27211a;
}
.course-module--setup {
  --module-shade: #0c181b; --module-visual: url("media/pilot/course-module-codex.webp"); --module-focus: 52%;
}
.course-module--production {
  --module-shade: #172e38; --module-visual: url("media/pilot/tower-panorama.webp"); --module-focus: 67%;
  --module-visual-inset: 26%;
  --module-title-width: 65%;
}
.course-module--publishing {
  --module-shade: #211915; --module-visual: url("media/pilot/course-module-publishing.webp"); --module-focus: 47%;
}
.course-module--sales {
  --module-shade: #10232d; --module-visual: url("media/pilot/course-module-sales.webp"); --module-focus: 50%;
}
.course-module-heading {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: clamp(9px, 1.2vw, 17px);
  min-height: clamp(68px, 8vw, 116px); padding: 12px var(--module-inset);
  color: #fff9ef; background: var(--module-shade);
}
.course-module-heading::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 var(--module-visual-inset);
  background: linear-gradient(90deg, var(--module-shade), transparent),
    var(--module-visual) center var(--module-focus) / cover no-repeat;
}
.course-module-heading span {
  display: grid; place-items: center; flex: none;
  width: clamp(34px, 4vw, 52px); aspect-ratio: 1; border: 1px solid #f5c77b8c; border-radius: 50%;
  color: #f6cf91; font-size: clamp(15px, 1.7vw, 24px); font-weight: 600; font-variant-numeric: tabular-nums;
}
.course-module h3 {
  max-width: var(--module-title-width); font-size: clamp(20px, 2.15vw, 34px); line-height: 1.08;
  letter-spacing: -.038em; font-weight: 620;
}
.course-lessons { list-style: none; margin: 0; padding: 0; }
.course-lessons li + li { border-top: 1px solid #eee5d8; }
.course-lessons summary {
  display: grid; grid-template-columns: 2ch minmax(0, 1fr) 24px; gap: 9px;
  min-height: 44px; padding: 8px var(--module-inset);
  font-size: clamp(15px, 1.35vw, 18px); font-weight: 630; line-height: 1.2;
  -webkit-tap-highlight-color: #985d2428;
}
.course-lessons summary:focus-visible { outline: 2px solid #97601c; outline-offset: -2px; }
.course-lessons summary .course-lesson-number {
  margin: 0; color: #7c542c; font-size: 13px; font-weight: 580; font-variant-numeric: tabular-nums;
}
.course-lessons summary::after,
.course-lessons details[open] > summary::after {
  content: ""; width: 24px; height: 24px; margin: 0; border-radius: 50%;
  color: #74471b; background-color: #f4e8d6;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: center; background-size: 10px 1px, 1px 10px;
}
.course-lessons details[open] > summary::after { background-size: 10px 1px, 0 0; background-color: #4c3726; color: #ffe5b8; }
.course-lessons details[open] { background: #f9f1e5; }
.course-lessons details > p {
  padding: 0 var(--module-inset) 11px calc(var(--module-inset) + 2ch + 9px);
  color: #534434; font-size: 15px; line-height: 1.42;
}
.course-lesson-time {
  display: block; margin-bottom: 4px; color: #795128; font-size: 13px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.course-cabinet {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center;
  gap: clamp(14px, 3vw, 40px); padding: clamp(16px, 2.8vw, 40px);
  margin-bottom: clamp(28px, 4vw, 58px); border: 1px solid #e8d8be;
  border-radius: clamp(18px, 2.4vw, 32px); background: #f4ebdc; scroll-margin-top: 80px;
}
.course-cabinet h2 { font-size: clamp(26px, 3.4vw, 49px); font-weight: 620; line-height: 1.1; }
.course-cabinet p { margin-top: 8px; font-weight: 600; }
.course-cabinet ul { margin: 10px 0 0; padding-inline-start: 1.15em; color: #51493e; }
.course-cabinet li + li { margin-top: 5px; }
.course-cabinet img { display: block; width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 720px) {
  .course-cabinet { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: hover) {
  .course-lessons summary:hover { background: #f8ecdc; }
}
.course-outcome {
  padding: 10px var(--module-inset) 12px; border-top: 1px solid #eadabc;
  background: linear-gradient(110deg, #f2dfbf, #f9efde);
  color: #433322; font-size: 14px; line-height: 1.35;
}
.course-outcome b { margin-inline-end: .35em; font-size: 14px; font-weight: 720; }
.course-stage { background: #191a19; color: #fff9ed; padding: 16px; border-radius: 24px; }
.course-stage > h2 {
  margin: 0 12px 12px 0; font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 570; line-height: 1.15; letter-spacing: -.035em;
}
.course-topics { display: none; }
.course-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.course-card { min-width: 0; border-radius: 13px; overflow: hidden; border: 1px solid #474039; background: #242421; }
.course-visual { position: relative; isolation: isolate; overflow: hidden; height: clamp(166px, 15vw, 215px); }
.template-visual { display: flex; align-items: center; justify-content: flex-end; padding: 14px; background: #18292f; }
.template-visual img { position: absolute; inset: 0; z-index: -1; height: 100%; width: 62%; object-fit: cover; object-position: 52% 44%; }
.course-note {
  margin: 0; width: 56%; padding: 11px 12px 12px; transform: rotate(2deg); border-radius: 2px;
  background: #fae7bf; color: #38271a; box-shadow: 0 6px 16px #0d121559;
  font-size: clamp(12px, 1.04vw, 15px); line-height: 1.28;
}
.course-note small { display: block; margin-bottom: 7px; padding-bottom: 5px; border-bottom: 1px solid #c8ac7f; font-size: .85em; font-weight: 650; }
.course-note b { display: block; margin-top: 6px; font-weight: 600; }
.series-visual { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 46% 100%, #ae8350, #493a30 68%, #322b25); }
.series-visual img { height: 88%; width: auto; border-radius: 3px; box-shadow: 0 6px 18px #261c1bb3; }
.series-visual img:first-child { transform: rotate(-7deg) translateY(-2%); }
.series-visual img + img { margin-left: 4%; transform: rotate(7deg) translateY(3%); }
.income-visual { display: flex; align-items: center; justify-content: center; gap: 8%; background: #18242b; }
.income-visual img { height: 87%; width: auto; border-radius: 6px; border: 1px solid #ffffff38; transform: rotate(-4deg); }
.income-visual p { font-size: 12px; color: #e5dac7; }
.income-visual b { display: block; font-size: clamp(27px, 2.8vw, 38px); line-height: 1; font-weight: 560; letter-spacing: -.055em; color: #f1c983; margin-top: 7px; }
.course-caption { padding: clamp(15px, 1.6vw, 24px); }
.course-caption small { display: block; color: #eac287; font-weight: 590; font-size: 13px; }
.course-caption h3 { margin: 6px 0 9px; font-size: clamp(24px, 2.4vw, 36px); font-weight: 570; letter-spacing: -.052em; line-height: 1.06; }
.course-caption p { color: #e4dfd5; font-size: 16px; line-height: 1.45; }
.course-caption ul { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.38; color: #e4dfd5; }
.course-caption li + li { border-top: 1px solid #ffffff24; padding-top: 5px; margin-top: 5px; }
.course-caption li b { color: #fff9ed; font-weight: 640; }
.course-caption a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: #f2c982; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.course-start h2 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.045em; line-height: 1.14; }
.course-start p { margin: 6px 0 0; max-width: 76ch; line-height: 1.45; }
.course-start { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(12px, 6vw, 80px); padding: 24px 2px 0; }
.course-start b { white-space: nowrap; }
.course-start .cta { margin-top: 12px; }

@media (max-width: 939px) {
  .course-wrap { width: 94%; }
  .course-stage { padding: 12px 0 12px 12px; border-radius: 17px; }
  .course-topics { display: flex; gap: 5px; margin: 0 12px 10px 0; }
  .course-topics a {
    display: grid; flex: 1; place-items: center; min-height: 44px; border: 1px solid #60584c; border-radius: 10px;
    font-size: 14px; font-weight: 590; color: #f3e9d8;
  }
  .course-topics a[aria-current="true"] { background: #efc47c; border-color: #efc47c; color: #211c15; }
  .course-cards {
    display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; gap: 9px;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    height: var(--card-height, auto);
  }
  .course-cards::-webkit-scrollbar { display: none; }
  .course-card { flex: 0 0 91%; scroll-snap-align: start; }
  .course-cards::after { content: ''; flex: 0 0 max(0px, calc(9% - 9px)); }
  .course-visual { height: clamp(140px, 41vw, 230px); }
  .course-note { font-size: clamp(12px, 3.1vw, 16px); padding: 10px; }
  .course-caption h3 { font-size: clamp(23px, 6.3vw, 32px); }
  .course-caption p { font-size: 15px; }
  .course-intro { max-width: 50ch; }
}
@media (max-width: 700px) {
  .course-modules { grid-template-columns: minmax(0, 1fr); }
  .course-program-heading { padding: 4px 3px 0; }
  .course-module { --module-visual-inset: max(0px, calc(100% - 390px)); }
  .course-module--production { --module-visual-inset: 34%; }
}
@media (max-width: 600px) {
  .course-heading { padding-inline: 4px; }
  .course-heading h1 { max-width: 11em; font-size: clamp(38px, 10.2vw, 56px); }
  .course-start { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 5px 0; }
}
@media (max-width: 720px) {
  /* The fixed lesson link is available throughout the course on phones. */
  .course-start .course-lesson-cta { display: none; }
}
@media (max-width: 355px) {
  .course-heading h1 { font-size: 33px; }
  .course-module:not(.course-module--production) { --module-visual-inset: 12%; }
  .template-visual { padding: 8px; }
  .course-note { width: 59%; }
}

/* Cover layout shared by both course previews. */
.course-heading--with-cover {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(66px, 15vw, 166px);
  align-items: center; gap: clamp(14px, 4vw, 58px);
}
.course-heading--with-cover .course-price { flex-wrap: wrap; gap: 6px 9px; }
.course-cover {
  display: block; width: 100%; height: auto; border-radius: 4px;
  transform: rotate(3deg); box-shadow: 3px 8px 19px #2f241e29;
}
.handbook-modules .course-module { --module-title-width: 71%; --module-visual-inset: 28%; }
.handbook-module--start {
  --module-shade: #102028; --module-visual: url("media/pilot/course-module-codex.webp"); --module-focus: 50%;
}
.handbook-module--story {
  --module-shade: #291e19; --module-visual: url("media/pilot/pdf-topic-story-512.webp"); --module-focus: 40%;
}
.handbook-module--finish {
  --module-shade: #12252d; --module-visual: url("media/pilot/pdf-topic-actor-512.webp"); --module-focus: 41%;
}
.handbook-example {
  display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  align-items: center; gap: clamp(14px, 3vw, 42px); padding: clamp(13px, 2.4vw, 32px);
  background: #17252a;
}
.handbook-example .course-caption { padding: 0; }
.handbook-example h2 { margin-bottom: 9px; font-size: clamp(25px, 3.1vw, 43px); }
.handbook-frame-picker { position: relative; min-width: 0; padding: 0; margin: 0; border: 0; }
.handbook-frame-option, .handbook-frame-labels { display: none; }
.handbook-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px); }
.handbook-frame-image { position: relative; aspect-ratio: 423 / 260; overflow: hidden; border-radius: 10px; background: #233b3f; }
.handbook-frame-image img {
  position: absolute; top: 0; left: calc(0% - var(--frame-x)); max-width: none; width: calc(100% * 1446 / 423); height: auto;
}
.handbook-frame figcaption { display: grid; gap: 4px; padding-top: 9px; }
.handbook-frame figcaption b { color: #ffd69a; }
.handbook-frame figcaption span { color: #f0e8db; font-size: 14px; line-height: 1.35; }
.handbook-start .cta { display: inline-flex; }
.handbook-lesson {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: #764a21; text-decoration: underline; text-underline-offset: 4px;
}
@media (min-width:1000px) {
  .handbook-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width:999px) {
  .handbook-modules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width:700px) {
  .course-heading--with-cover { grid-template-columns: minmax(0,1fr) clamp(60px, 19vw, 112px); gap: 12px; }
}
@media (max-width:900px) {
  .handbook-example { grid-template-columns: minmax(0,1fr); }
  .handbook-frame-option { display: block; }
  .handbook-frame-labels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; margin-bottom: 10px; }
  .handbook-frame-labels label {
    display: grid; place-items: center; min-height: 44px; padding: 5px 3px; text-align: center;
    border: 1px solid #846f58; border-radius: 8px; color: #f8e9d4; font-size: clamp(13px, 3.75vw, 15px); font-weight: 620;
    cursor: pointer; touch-action: manipulation;
  }
  #handbook-lamp:checked ~ .handbook-frame-labels label[for="handbook-lamp"],
  #handbook-gesture:checked ~ .handbook-frame-labels label[for="handbook-gesture"],
  #handbook-twist:checked ~ .handbook-frame-labels label[for="handbook-twist"] {
    background: #f2c982; color: #261d15; border-color: #f2c982;
  }
  #handbook-lamp:focus-visible ~ .handbook-frame-labels label[for="handbook-lamp"],
  #handbook-gesture:focus-visible ~ .handbook-frame-labels label[for="handbook-gesture"],
  #handbook-twist:focus-visible ~ .handbook-frame-labels label[for="handbook-twist"] {
    outline: 2px solid #ffd69a; outline-offset: 2px;
  }
  .handbook-frames { grid-template-columns: minmax(0,1fr); }
  .handbook-frame, .handbook-frame figcaption b { display: none; }
  #handbook-lamp:checked ~ .handbook-frames [data-frame="lamp"],
  #handbook-gesture:checked ~ .handbook-frames [data-frame="gesture"],
  #handbook-twist:checked ~ .handbook-frames [data-frame="twist"] { display: block; }
  .handbook-frame figcaption { min-height: 3.35em; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .handbook-frame-picker { width: min(100%, 520px); }
}
