/* Etagé Academy — shared course player. Mobile first, text first. */
.course-body { background: #fff; }
/* Fraunces accents sit above a line-height of 1, and a tight line box clips them. */
.course-body .brand .wm b { line-height: 1.45; padding-top: 0.06em; }
/* The shared header is sticky, 92% white, and blurred. On a scrolled lesson that lets the line under the ticker, and the first rows of the card, show through. Cover the top edge, the notch, and that seam with solid white. */
.course-body header {
  top: 0;
  z-index: 70;
  background: #fff;
  background-clip: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: env(safe-area-inset-top, 0px);
}
.course-body header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * (env(safe-area-inset-top, 0px) + 24px));
  height: calc(env(safe-area-inset-top, 0px) + 32px);
  background: #fff;
  pointer-events: none;
}
.course-body header, .course-body .nav, .course-body .brand { overflow: visible; }
@media (max-width: 940px) {
  .course-body .nav-links { top: calc(78px + env(safe-area-inset-top, 0px)); }
}
.course-body #course-root section { padding: 0; }
.course-body #course-root a:not(.btn) { text-decoration: underline; text-underline-offset: .18em; }
.course-hero a { color: #fff; }
.course-body .skip {
  position: absolute; left: 16px; top: -80px; z-index: 80;
  background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px;
}
.course-body .skip:focus { top: 12px; }
.course-hero {
  background: var(--navy); color: #fff; padding: 28px 0 32px;
}
.course-hero .eyebrow { color: var(--gold); }
.course-hero h1 {
  color: #fff; font-size: clamp(30px, 7vw, 48px); margin: 10px 0 12px; max-width: 18ch;
}
.course-hero h1 em { font-style: italic; color: var(--gold); }
.course-hero p { color: #d7e0ec; font-size: 16.5px; max-width: 62ch; }
.course-hero .fee {
  margin-top: 16px; background: rgba(246, 244, 239, .12);
  border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 0 10px 10px 0;
  color: #fff; font-size: 15px; max-width: 68ch;
}
.course-wrap { max-width: 760px; }
.course-main { padding: 22px 0 72px; }
.progress-card, .lesson-card, .panel, .q-card, .msg-card, .video-slot, .glossary, .module-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.cream { background: #F6F4EF; }
.band { background: #F6F4EF; padding: 22px 0; }
.progress-card { padding: 16px; margin: 18px 0; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); width: 0; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.module-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 8px; }
.module-card { padding: 16px; }
.module-card h3 { font-size: 20px; margin: 4px 0 6px; }
.module-card p, .quiet { color: var(--slate); font-size: 14.5px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.dots a, .dots span {
  min-width: 36px; min-height: 36px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--line); display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--navy); background: #fff;
}
.dots a.done, .dots span.done { background: var(--navy); color: #fff; border-color: var(--navy); }
.dots a.quiz { border-style: dashed; }
.row-actions, .lesson-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lesson-top { margin-bottom: 14px; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--royal); }
.lesson-card, .panel, .q-card { padding: 16px 16px 18px; margin: 12px 0; }
.lesson-card h1, .panel h1, .q-card h1 { font-size: clamp(26px, 6vw, 36px); margin: 6px 0 8px; }
.outcome {
  background: #F6F4EF; border-radius: 12px; padding: 12px 14px; margin: 12px 0;
  border-left: 4px solid var(--navy);
}
.outcome b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.video-slot { padding: 14px; margin: 12px 0; background: #F6F4EF; }
.video-slot h2 { font-size: 18px; margin-bottom: 6px; }
.video-slot p { font-size: 14.5px; color: #33475f; }
.prose p, .prose li, ul.prose li, ol.prose li { font-size: 16.5px; margin: 0 0 10px; }
.prose ul, .prose ol, ul.prose, ol.prose { padding-left: 1.25em; margin: 0 0 12px; }
.feedback p { margin: 0; }
.feedback-list { margin: 10px 0 0; padding: 0 0 0 1.25em; }
.feedback-list li { margin: 6px 0; padding-left: 0.15em; }
.prose h2 { font-size: 22px; margin: 16px 0 8px; }
.remember {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 12px 14px; margin: 12px 0;
}
.glossary { padding: 14px; margin: 12px 0; background: #F6F4EF; }
.glossary h2 { font-size: 18px; margin-bottom: 8px; }
.glossary dt { font-weight: 700; margin-top: 8px; }
.glossary dd { margin: 0; color: #33475f; }
.msg-card { padding: 12px; margin: 10px 0; }
.msg-card header { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.token {
  display: inline; margin: 0; padding: 0 1px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left;
  border-radius: 4px;
}
.token[aria-pressed="true"] { background: rgba(232, 178, 74, .45); border-bottom-color: var(--navy); }
.token.hit { background: #e5f6ec; border-bottom-color: #1f7a52; }
.token.miss { background: #fff4f4; border-bottom-color: #8a2a2a; }
.token.extra { background: #fff8e6; border-bottom-color: #8a6410; }
.feedback, .why { border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14.5px; }
.feedback.ok, .why.ok { background: #e5f6ec; color: #145c38; }
.feedback.bad, .why.bad { background: #fdeeee; color: #7a2424; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
  margin: 8px 0; font: inherit; cursor: pointer; color: var(--ink);
}
.choice:hover { border-color: var(--navy); }
.choice[aria-checked="true"], .choice.on { border-color: var(--navy); background: #F6F4EF; }
.choice.right { border-color: #1f7a52; background: #e5f6ec; }
.choice.wrong { border-color: #8a2a2a; background: #fdeeee; }
.field { margin: 12px 0; }
.field label, .field legend { font-weight: 700; display: block; margin-bottom: 6px; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.bucket {
  border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; background: #F6F4EF;
}
.bucket h3 { font-size: 16px; margin-bottom: 6px; }
.sort-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; }
.preview {
  white-space: pre-wrap; background: var(--navy); color: #f6f4ef; border-radius: 12px; padding: 12px; font-size: 14.5px;
}
.step-no { font-family: Fraunces, serif; color: var(--gold-d); font-weight: 800; }
.lock-note, .placeholder-note {
  background: #fff8e6; border: 1px solid #e6d7a8; border-radius: 12px; padding: 12px 14px; color: #3d3420; margin: 12px 0;
}
.score-big { font-family: Fraunces, serif; font-size: 42px; color: var(--navy); line-height: 1; }
.review-item { border-top: 1px solid var(--line); padding: 12px 0; }
.review-item h3 { font-size: 16px; margin-bottom: 6px; }
.tiny { font-size: 13px; color: var(--slate); }
.fictional { font-size: 12.5px; color: var(--slate); margin: 0 0 8px; }
button.btn, a.btn { text-align: center; }
a[aria-disabled="true"] { opacity: .55; }
.course-body button:focus-visible, .course-body a:focus-visible, .course-body input:focus-visible,
.course-body textarea:focus-visible, .course-body select:focus-visible, .course-body summary:focus-visible {
  outline: 3px solid var(--royal); outline-offset: 2px;
}
.schedule { display: grid; gap: 8px; margin: 10px 0 0; }
.schedule li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.week { margin-top: 8px; }
details.note { margin-top: 10px; }
details.note summary { cursor: pointer; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 800px) {
  .module-list.split-2 { display: grid; grid-template-columns: 1fr 1fr; }
  .course-hero { padding: 48px 0 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .course-body * { transition: none !important; animation: none !important; }
}
