:root {
  color-scheme: light;
  --stage: #f5f3f2;
  --paper: #f9f7f5;
  --ink: #240f1b;
  --secondary-ink: #76656e;
  --edge: #eee7e8;
  --fill: #fff;
  --stroke: #e1d7d8;
  --academy-wine: #770523;
  --academy-wine-dark: #58041a;
  --academy-pill: #f7ecee;
  --academy-mom-500: #ee9ca7;
  --academy-blush: #ffdde1;
  /* Academy Moodboard: Pump (Brand/Rose), Lavender, Mint and Butter at 300. */
  --academy-pump-300: #ffc0cb;
  --academy-lavender-300: #c8bdff;
  --academy-mint-300: #b7e5ba;
  --academy-butter-300: #f0cb58;
  --weekly-guide-pink: #f5c6c9;
  --weekly-guide-apricot: #f1d9ad;
  --weekly-guide-lilac: #d2cbe5;
  --academy-line: #240f1b1f;
  --button-height: 48px;
  --academy-sans: "Academy Aeonik", system-ui, sans-serif;
  --editorial: "Academy Exposure", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-family: var(--academy-sans);
  color: var(--ink);
  background: var(--stage);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.academy-icon-definitions {
  position: absolute;
}

.academy-icon {
  flex: none;
  width: var(--icon-size, 1em);
  height: var(--icon-size, 1em);
  fill: none;
  vertical-align: middle;
}

:where(button, .knowledge-course-link, .knowledge-checkup-link, .entry-reference,
  .stage-picker-week) {
  min-height: var(--button-height);
}

.stage {
  --preview-scale: 1;
  --preview-max-phone-width: 540px;
  --screen-side-inset: 11.546;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  min-height: 100dvh;
  padding: 0 clamp(14px, 4vw, 48px) 14px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6d717e;
  font: 400 13px/1 var(--academy-sans);
}

.language-switch button {
  min-width: 36px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.language-switch [aria-pressed="true"] {
  color: #191919;
}

.language-switch button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

/* The source image uses a 511 × 968 canvas with a 393 × 852 screen opening. */
.phone {
  position: relative;
  width: 523px;
  aspect-ratio: 511 / 968;
  container-type: inline-size;
  isolation: isolate;
  zoom: var(--preview-scale);
}

.preview-device {
  display: grid;
  width: 100%;
  justify-items: center;
  padding-block-start: 14px;
}

.preview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  width: 100%;
  padding-block-start: 14px;
}

.course-state-switch {
  display: grid;
  width: min(100%, 280px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-state-switch button {
  min-height: 50px;
  padding: 0 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--fill);
  color: var(--secondary-ink);
  font: 600 13px/1.25 var(--academy-sans);
  cursor: pointer;
}

.course-state-switch [aria-pressed="true"] {
  border-color: var(--academy-wine);
  background: var(--academy-pill);
  color: var(--academy-wine);
}

.course-state-switch button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 1px;
}

.iphone-bezel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.phone-screen {
  --academy-gutter: clamp(13px, 4.1cqw, 21px);
  --screen-block-inset: 5.9917%;
  /* Overlap the bezel's anti-aliased inner edge by a few pixels. */
  --screen-radius: 10.57cqw;
  --status-height: 10.57cqw;
  --app-header-height: var(--button-height);
  --tab-bar-height: calc(var(--button-height) + 8px);
  --home-height: 4.3cqw;
  --header-veil: color-mix(in srgb, var(--paper) 34%, transparent);
  --glass-white: rgb(255 255 255 / 88%);
  --glass-paper: color-mix(in srgb, var(--paper) 94%, transparent);
  --glass-highlight: inset 0 1px 1px rgb(255 255 255 / 94%), inset 0 -1px 1px rgb(255 255 255 / 58%);
  --glass-shadow: 0 3px 12px rgb(36 15 27 / 6%);
  position: absolute;
  inset: var(--screen-block-inset) calc(var(--screen-side-inset) * 1%);
  isolation: isolate;
  display: grid;
  grid-template-rows: var(--status-height) var(--app-header-height) minmax(0, 1fr) var(--tab-bar-height) var(--home-height);
  overflow: hidden;
  border-radius: var(--screen-radius);
  background: linear-gradient(var(--header-veil), var(--header-veil)),
    url("assets/shell/header-glow.svg") center -632px no-repeat var(--paper);
}

.status-bar {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: min(1.96cqw, 10px) min(6.65cqw, 34px) 0 min(7.05cqw, 36px);
  color: #050505;
  font: 600 clamp(10px, 2.95cqw, 15px)/1 -apple-system, system-ui, "SF Pro Text", sans-serif;
}

.status-time {
  font-variant-numeric: tabular-nums;
}

.camera-cutout {
  position: absolute;
  top: 2.15cqw;
  left: 50%;
  width: 23.9cqw;
  height: 7.04cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #08080a;
}

.status-icons {
  display: block;
  width: min(15.46cqw, 79px);
  height: auto;
}

.app-header {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 14px;
}

.app-header-title {
  color: var(--ink);
  font: 400 clamp(14px, 3.3cqw, 17px)/1 var(--editorial);
}

.phone-screen:has(> .academy-page[hidden]) .app-header-title {
  display: none;
}

[data-preview-plan="2"] .app-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  padding-inline: 16px;
}

.academy-home-notifications-icon,
[data-preview-plan="2"] .academy-notifications > svg {
  display: none;
}

[data-preview-plan="2"] .app-header > .app-header-title {
  grid-area: 1 / 2;
  justify-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease-in-out, visibility 0s linear .22s;
}

[data-preview-plan="2"] .academy-home-notifications-icon {
  display: block;
}

[data-preview-plan="2"] .app-header .profile-button svg {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.academy-header-tabs:not([hidden]) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-area: 1 / 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: center;
  inline-size: min(100%, 208px);
  block-size: 35px;
  padding: 2px;
  border: 1px solid #fffb;
  border-radius: 999px;
  background: rgb(255 255 255 / 48%);
  box-shadow: 0 4px 14px #51142c08;
  backdrop-filter: blur(14px);
  translate: 0 0;
  transition: opacity .4s ease-out, translate .4s cubic-bezier(.24, .65, .33, 1);
}

.academy-header-tabs::before {
  position: absolute;
  z-index: -1;
  inset: 2px auto 2px 2px;
  inline-size: calc(50% - 2px);
  border-radius: inherit;
  background: rgb(255 255 255 / 80%);
  transition: transform .24s cubic-bezier(.3, .7, .25, 1);
  content: "";
}

.academy-header-tabs:has(#academy-explore-tab[aria-selected="true"])::before {
  transform: translateX(100%);
}

.app-header .academy-header-tabs button {
  width: auto;
  min-height: 0;
  border-radius: inherit;
  font: 500 13px/1.2 var(--academy-sans);
  cursor: pointer;
}

.academy-header-tabs button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  [data-preview-plan="2"] .app-header > .app-header-title,
  .academy-header-tabs:not([hidden]),
  .academy-header-tabs::before {
    transition: none;
  }
}

.app-header button {
  display: grid;
  width: var(--button-height);
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.app-header button[hidden] {
  display: none;
}

:is(.app-header, .home-toolbar) > .toolbar-glass-button {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  border: .5px solid #240f1b1f;
  border-radius: 50%;
  background: linear-gradient(145deg, #240f1b0d, #fff8);
  box-shadow: inset 0 1px 1px #ffffffe8, 0 8px 15px #00000005;
}

.academy-library-button:enabled {
  cursor: pointer;
}

.academy-library-button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.app-header svg {
  width: 21px;
  height: 21px;
}

.app-header .academy-library-button .academy-icon {
  width: 24px;
  height: 24px;
}

.app-header .profile-button svg {
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid #240f1b0a;
  border-radius: 50%;
  color: var(--fill);
  background: #240f1b1a;
}

.page {
  grid-area: 3 / 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  font: 400 14px/1.45 var(--academy-sans);
}

.page :where(h1, h2, h3) {
  font-weight: 500;
}

.page :where(button, input, select, textarea) {
  font-family: inherit;
}

.page .editorial-title {
  font-family: var(--editorial);
  font-weight: 400;
}

.academy-page {
  isolation: isolate;
  grid-row: 1 / -1;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--status-height) + var(--app-header-height));
  scroll-padding-block-end: calc(var(--tab-bar-height) + var(--home-height) + 12px);
  background: var(--paper);
}

.phone-screen:where(:has(> .academy-page[data-scrolled]:not([hidden]))) > :is(.status-bar, .app-header) {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.academy-intro {
  /* Scale the Figma background from its 402px artboard to the phone opening. */
  --intro-px: calc((100 - 2 * var(--screen-side-inset)) * 1cqw / 402);
  --intro-cream: #f8f4ee;
  --intro-nav-space: calc(var(--tab-bar-height) + var(--home-height));
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1.5cqw, 8px);
  min-height: calc(100% - var(--intro-nav-space));
  padding-block: calc(var(--status-height) + var(--app-header-height) + clamp(25px, 7.5cqw, 38px))
    12px;
  background:
    linear-gradient(transparent, var(--paper)) center bottom / 100% var(--intro-background-fade, 0px) no-repeat,
    linear-gradient(var(--intro-cream), transparent) center top / 100% calc(176 * var(--intro-px)) no-repeat,
    url("assets/academy/postpartum-glow.png") calc(50% + 24 * var(--intro-px)) calc(-76 * var(--intro-px)) / calc(604 * var(--intro-px)) auto no-repeat,
    linear-gradient(var(--intro-cream), transparent) center calc(617 * var(--intro-px)) / 100% calc(156 * var(--intro-px)) no-repeat,
    url("assets/academy/postpartum-cream.svg") center top / 100% auto no-repeat var(--paper);
}

.academy-intro:has(.course-progress-list[hidden]) {
  min-height: 0;
}

.academy-intro-copy {
  padding-inline: var(--academy-gutter);
}

[data-preview-layout="2"] .academy-intro {
  --intro-background-fade: clamp(38px, 10.6cqw, 55px);
  padding-block-start: calc(var(--status-height) + var(--app-header-height) + clamp(12px, 4.1cqw, 21px));
}

[data-preview-layout="2"] .academy-intro-copy {
  text-align: center;
}

[data-preview-layout="2"] .academy-intro-copy .postpartum-stage-actions {
  justify-content: center;
}

[data-preview-layout="2"] .academy-intro-subtitle {
  max-inline-size: 35ch;
  margin-inline: auto;
  text-wrap: balance;
}

.academy-intro-experts:not([hidden]) {
  display: flex;
  justify-content: center;
  margin-block-end: clamp(10px, 2.75cqw, 14px);
}

.academy-expert-avatar {
  display: block;
  flex: none;
  width: clamp(34px, 8.6cqw, 44px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--academy-pill);
}

.academy-intro-experts .academy-expert-avatar + .academy-expert-avatar {
  margin-inline-start: -6px;
}

.academy-expert-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-expert-avatar img[data-portrait="gina"] {
  transform: scale(1.7);
  transform-origin: 4% 7%;
}

.academy-expert-avatar img[data-portrait="stacey"] {
  object-position: center 13%;
}

[data-preview-plan="2"] .phone-screen:has(> .academy-welcome[data-leaving]) .academy-page .academy-intro-experts,
.academy-welcome-expert[data-avatar-source] {
  visibility: hidden;
}

[data-preview-plan="3"] .academy-intro {
  --intro-portrait-overlap: clamp(16px, 4.4cqw, 22px);
  display: grid;
  grid-template-columns: minmax(0, 61fr) minmax(0, 39fr);
  align-content: start;
  gap: 0;
  min-height: 0;
  padding-block-start: calc(var(--status-height) + var(--app-header-height) + clamp(17px, 4.3cqw, 22px));
}

[data-preview-plan="3"] .academy-intro-copy {
  grid-area: 1 / 1;
  align-self: start;
  min-inline-size: 0;
  padding: 17px 0 calc(var(--intro-portrait-overlap) + 12px) var(--academy-gutter);
  text-align: left;
}

[data-preview-plan="3"] .academy-intro-experts {
  display: none;
}

[data-preview-plan="3"] .academy-intro-portrait:not([hidden]) {
  display: block;
  grid-area: 1 / 2;
  align-self: end;
  justify-self: end;
  inline-size: clamp(190px, 42cqw, 213px);
  block-size: auto;
  margin-block-start: clamp(21px, 6cqw, 31px);
  margin-block-end: calc(-1 * clamp(27px, 8.8cqw, 45px));
  mask-image: linear-gradient(#000 67%, #000c 80%, transparent 100%);
  pointer-events: none;
}

[data-preview-plan="3"] .academy-intro-copy .postpartum-stage-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

[data-preview-plan="3"] .academy-intro-copy .postpartum-stage {
  max-inline-size: 100%;
  padding-inline: 11px 24px;
  font-size: clamp(11px, 2.55cqw, 13px);
}

[data-preview-plan="3"] .postpartum-stage span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-preview-plan="3"] .academy-intro h1 {
  font-size: clamp(20px, 4.9cqw, 25px);
  line-height: 1.16;
  letter-spacing: -.016em;
  text-wrap: wrap;
}

[data-preview-plan="3"] .academy-intro-subtitle {
  max-inline-size: none;
  margin-inline: 0;
  font-size: clamp(11px, 2.7cqw, 14px);
}

.academy-avatar-flight {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.academy-welcome:not([hidden]) {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(15px, 4.3cqw, 22px);
  padding-block: calc(var(--status-height) + var(--app-header-height) + 8px)
    calc(var(--tab-bar-height) + var(--home-height) + 12px);
  background: var(--paper);
  text-align: center;
  touch-action: pinch-zoom;
  user-select: none;
}

.phone-screen:has(> .academy-welcome:not([hidden])) {
  background: var(--paper);
}

.phone-screen:has(> .academy-welcome:not([hidden])) > :is(.status-bar, .app-header, .home-indicator) {
  z-index: 4;
  background: transparent;
}

[data-preview-plan="2"] .phone-screen:has(> .academy-welcome:not([hidden], [data-leaving])) .app-header-title {
  opacity: 1;
  visibility: visible;
  transition: none;
}

[data-preview-plan="2"] .phone-screen:has(> .academy-welcome[data-leaving]:not([hidden])) .app-header-title {
  transition-delay: .38s, .6s;
}

[data-preview-plan="2"] .phone-screen:has(> .academy-welcome:not([hidden])) .academy-header-tabs {
  opacity: 0;
  visibility: hidden;
  translate: 0 4px;
  transition: none;
}

.phone-screen:has(> .academy-welcome:not([hidden])) > .tab-bar {
  z-index: 4;
}

.academy-welcome-carousel {
  --welcome-unit: clamp(70px, 18.4cqw, 94px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  overflow: hidden;
  padding-block: 9px 12px;
}

.academy-welcome-track {
  --welcome-depth-shift: 0px;
  display: flex;
  grid-area: 1 / 1;
  justify-self: start;
  width: max-content;
  animation: academy-welcome-loop 16s linear infinite;
}

.academy-welcome-track[data-depth="back"] {
  --welcome-depth-shift: 8px;
  z-index: 1;
}

.academy-welcome-track[data-depth="middle"] {
  --welcome-tile-shadow: 0 4px 8px -5px #240f1b16;
  z-index: 2;
}

.academy-welcome-track[data-depth="front"] {
  --welcome-depth-shift: -12px;
  --welcome-tile-shadow: 0 8px 12px -6px #240f1b29;
  z-index: 3;
}

.academy-welcome-cards {
  position: relative;
  flex: none;
  width: calc(6.59 * var(--welcome-unit));
  height: calc(3.11 * var(--welcome-unit));
  animation: academy-welcome-depth 7s ease-in-out infinite alternate;
}

:is(.academy-welcome-cover.course-cover-theme, .academy-welcome-expert) {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #fff9;
  border-radius: 13px;
  box-shadow: var(--welcome-tile-shadow, none);
  text-align: start;
  font: 600 clamp(9px, 2.2cqw, 11px)/1.14 var(--academy-sans);
}

.academy-welcome-cards > :is([data-cover], [data-expert]) {
  position: absolute;
  z-index: var(--tile-layer, 1);
  top: calc(var(--tile-y) * var(--welcome-unit));
  left: calc(var(--tile-x) * var(--welcome-unit));
  width: calc(var(--tile-width) * var(--welcome-unit));
  height: calc(var(--tile-height) * var(--welcome-unit));
  opacity: var(--tile-opacity, 1);
}

.academy-welcome-cards > [data-cover="pelvic"] {
  --tile-x: .05;
  --tile-y: .22;
  --tile-width: .88;
  --tile-height: 1.22;
  --tile-opacity: .79;
}

.academy-welcome-cards > [data-expert="gina"] {
  --tile-x: 1.1;
  --tile-y: .42;
  --tile-width: 1.09;
  --tile-height: 1.53;
  --tile-layer: 3;
}

.academy-welcome-cards > [data-expert="cara"] {
  --tile-x: 2.36;
  --tile-y: .13;
  --tile-width: 1.02;
  --tile-height: 1.43;
  --tile-layer: 4;
}

.academy-welcome-cards > [data-cover="newborn"] {
  --tile-x: .65;
  --tile-y: 1.94;
  --tile-width: .79;
  --tile-height: 1.12;
  --tile-opacity: .81;
}

.academy-welcome-cards > [data-cover="feeding"] {
  --tile-x: 4.94;
  --tile-y: 1.64;
  --tile-width: 1.03;
  --tile-height: 1.43;
  --tile-layer: 3;
}

.academy-welcome-cards > [data-expert="stacey"] {
  --tile-x: 3.55;
  --tile-y: .61;
  --tile-width: .88;
  --tile-height: 1.23;
  --tile-layer: 2;
}

.academy-welcome-cards > [data-cover="yoga-ball"] {
  --tile-x: 4.6;
  --tile-y: .05;
  --tile-width: .8;
  --tile-height: 1.06;
  --tile-opacity: .74;
}

.academy-welcome-cards > [data-cover="core"] {
  --tile-x: 2.8;
  --tile-y: 1.84;
  --tile-width: .88;
  --tile-height: 1.16;
  --tile-layer: 3;
}

.academy-welcome-cards > [data-cover="fitness"] {
  --tile-x: 5.57;
  --tile-y: .53;
  --tile-width: .9;
  --tile-height: 1.27;
  --tile-layer: 2;
}

.academy-welcome-cover.course-cover-theme {
  padding: 8px;
  background: var(--card-surface);
  color: var(--featured-ink);
}

.academy-welcome-cover::before {
  position: absolute;
  z-index: -1;
  inset: 29% 0 0 15%;
  background: var(--featured-art) right bottom / contain no-repeat;
  content: "";
}

.academy-welcome-cover span {
  display: block;
  max-width: 11ch;
}

.academy-welcome-expert {
  background: var(--academy-pill);
}

.academy-welcome-cards > .academy-welcome-expert,
.academy-avatar-flight > .academy-welcome-expert {
  border-color: var(--paper);
}

.academy-avatar-flight > .academy-expert-avatar {
  position: absolute;
}

.academy-welcome-expert img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.academy-welcome-expert img[data-portrait="gina"] {
  transform: scale(1.7);
  transform-origin: 4% 7%;
}

.academy-welcome-expert span {
  position: absolute;
  inset: auto 0 0;
  padding: 14px 7px 7px;
  background: linear-gradient(transparent, #240f1bcf);
  color: var(--fill);
}

.academy-welcome-content {
  display: grid;
  gap: 8px;
  inline-size: calc(100% - 2 * var(--academy-gutter));
  max-inline-size: 360px;
}

.academy-welcome-heading {
  margin: 0 0 6px;
  color: var(--ink);
  font: 400 clamp(23px, 6.6cqw, 34px)/1.13 var(--editorial);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.academy-welcome .academy-welcome-sentence {
  display: grid;
  place-items: center;
  min-block-size: clamp(43px, 11cqw, 54px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--fill);
  color: var(--ink);
  font: 500 clamp(12px, 3.35cqw, 16px)/1.3 var(--academy-sans);
  letter-spacing: normal;
  text-wrap: balance;
}

.academy-welcome:not([hidden]) :is(.academy-welcome-heading, .academy-welcome-sentence) {
  animation: academy-welcome-sentence-entry 560ms cubic-bezier(.23, .66, .33, 1) both;
  animation-delay: 100ms;
}

.academy-welcome:not([hidden]) .academy-welcome-sentence:nth-child(2) {
  animation-delay: 790ms;
}

.academy-welcome:not([hidden]) .academy-welcome-sentence:nth-child(3) {
  animation-delay: 1480ms;
}

@keyframes academy-welcome-sentence-entry {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.academy-welcome-cue {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--academy-wine);
  font: 500 clamp(12px, 2.95cqw, 15px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.academy-welcome-cue .academy-icon {
  --icon-size: 19px;
  animation: academy-welcome-scroll-cue 1.8s ease-in-out infinite;
}

.academy-welcome-cue:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.academy-welcome[data-leaving] :is(.academy-welcome-track, .academy-welcome-cards),
.academy-welcome[data-leaving] :is(.academy-welcome-heading, .academy-welcome-sentence) {
  animation-play-state: paused;
}

@keyframes academy-welcome-scroll-cue {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}

@keyframes academy-welcome-loop {
  from { translate: 14px 0; }
  to { translate: calc(14px - 50%) 0; }
}

@keyframes academy-welcome-depth {
  from { translate: 0 0; }
  to { translate: var(--welcome-depth-shift) 0; }
}

.course-progress-list {
  display: grid;
  gap: clamp(7px, 2.35cqw, 12px);
  margin-block-start: clamp(19px, 5.7cqw, 30px);
  margin-inline: var(--academy-gutter);
}

.course-live-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2.65cqw, 13px);
  padding: clamp(10px, 2.95cqw, 15px);
  border: 0;
  border-radius: clamp(14px, 5cqw, 25px);
  background-color: var(--academy-wine);
  background-image: url("assets/academy/live-course-gradient.svg");
  background-size: 100% 100%;
  color: var(--fill);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.course-live-card[hidden] {
  display: none;
}

.course-live-card:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.course-live-schedule {
  display: grid;
  width: clamp(44px, 11.5cqw, 59px);
  aspect-ratio: 1;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border-radius: clamp(11px, 3.25cqw, 16px);
  background: var(--academy-wine-dark);
  color: var(--academy-blush);
}

.course-live-day {
  color: var(--fill);
  font: 400 clamp(15px, 4.15cqw, 21px)/1.05 var(--editorial);
}

.course-live-time {
  font-size: clamp(10px, 2.55cqw, 13px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.course-live-copy {
  display: grid;
  min-width: 0;
  gap: clamp(3px, 1cqw, 5px);
}

.course-live-badge {
  --icon-size: clamp(15px, 3.65cqw, 18px);
  display: grid;
  width: clamp(25px, 6.2cqw, 32px);
  aspect-ratio: 1;
  align-self: start;
  place-items: center;
  border-radius: clamp(7px, 2cqw, 10px);
  background: var(--academy-wine-dark);
  color: var(--academy-blush);
}

.course-live-copy strong {
  font-size: clamp(13px, 3.25cqw, 16px);
  font-weight: 600;
  line-height: 1.2;
}

.course-live-description {
  overflow: hidden;
  font-size: clamp(10px, 2.55cqw, 13px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-summary-card {
  --course-detail-inset: 16px;
  display: grid;
  grid-template-columns: clamp(76px, 25.5cqw, 130px) minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(8px, 2.5cqw, 13px);
  min-width: 0;
  padding: 9px var(--course-detail-inset) var(--course-detail-inset) 9px;
  border: 0;
  border-radius: clamp(14px, 5cqw, 25px);
  background: var(--fill);
  color: inherit;
  text-align: start;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.course-summary-cover {
  position: relative;
  align-self: start;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: clamp(11px, 3.15cqw, 16px);
}

.course-progress-cover {
  --cover-glow: url("assets/academy/recommended-courses/cover-glow.svg");
  /* Figma Cover uses the same blurred ellipse twice on a 1920 × 1080 canvas. */
  background:
    var(--cover-glow) -23.63% 69.51% / 148.02% 233.48% no-repeat,
    var(--cover-glow) 150.88% 17.54% / 148.02% 233.48% no-repeat var(--card-tint);
  color: var(--fill);
}

.course-progress-cover img {
  position: absolute;
  inset-inline-end: -2%;
  inset-block-end: 0;
  display: block;
  width: auto;
  height: 80%;
}

.course-progress-cover-label,
.course-progress-cover-title {
  position: absolute;
  inset-inline-start: 7%;
  line-height: 1.1;
}

.course-progress-cover-label {
  inset-block-start: 9%;
  padding: 2px 4px;
  border-radius: 999px;
  background: var(--academy-blush);
  color: var(--academy-wine-dark);
  font-size: clamp(4px, 1.25cqw, 6px);
  font-weight: 600;
  text-transform: uppercase;
}

.course-progress-cover-title {
  inset-block-start: 38%;
  display: grid;
  gap: 2px;
  font-size: clamp(6px, 1.95cqw, 10px);
  font-weight: 600;
}

.course-summary-copy {
  display: grid;
  gap: 3px;
  overflow-wrap: break-word;
}

.course-summary-title {
  margin: 0;
  font-size: clamp(11px, 3.05cqw, 15.5px);
  font-weight: 500;
  line-height: 1.15;
}

.course-progress-session {
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.45cqw, 12.5px);
  line-height: 1.2;
}

.course-progress-meter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-inline-start: calc(var(--course-detail-inset) - 9px);
  color: var(--academy-wine);
  font-size: clamp(10px, 2.5cqw, 13px);
  font-variant-numeric: tabular-nums;
}

.course-progress-track {
  --progress-fill: linear-gradient(90deg, var(--academy-wine), var(--academy-mom-500));
  appearance: none;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--academy-pill);
  color: var(--academy-wine);
}

.course-progress-track::-webkit-progress-bar {
  background: var(--academy-pill);
}

.course-progress-track::-webkit-progress-value {
  border-radius: 999px;
  background: var(--progress-fill);
}

.course-progress-track::-moz-progress-bar {
  border-radius: 999px;
  background: var(--progress-fill);
}

.course-summary-card:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.postpartum-stage-actions {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.5cqw, 8px);
  margin: 0 0 clamp(7px, 1.8cqw, 10px);
}

.postpartum-stage {
  flex: 0 0 auto;
  border-radius: 99px;
  color: var(--academy-wine);
  font: 600 clamp(11px, 2.7cqw, 14px)/1.2 var(--academy-sans);
  white-space: nowrap;
  cursor: pointer;
}

.postpartum-stage {
  min-height: clamp(28px, 6.75cqw, 34px);
  padding: 0 clamp(21px, 5.9cqw, 30px) 0 clamp(10px, 3cqw, 15px);
  border: 0;
  --glass-mask: url("assets/academy/icons/stage-glass-mask.svg");
  --glass-mask-size: 244px 196px;
}

.postpartum-stage,
.glass-back-button {
  position: relative;
  isolation: isolate;
  background-color: var(--glass-white);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.postpartum-stage::before,
.glass-back-button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, #fff8, transparent 52%, #fff5);
  mask: var(--glass-mask) center / var(--glass-mask-size) no-repeat luminance;
  opacity: .67;
  pointer-events: none;
  content: "";
}

.glass-back-button {
  --glass-mask: url("assets/academy/icons/back-glass-mask.svg");
  --glass-mask-size: 196px 196px;
  display: inline-grid;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1;
  align-self: center;
  justify-self: start;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.glass-back-button > .academy-icon {
  --icon-size: 24px;
}

.glass-back-button[hidden] {
  display: none;
}

.glass-back-label {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: none;
  aspect-ratio: auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font: 600 clamp(11px, 2.7cqw, 14px)/1.2 var(--academy-sans);
}

.postpartum-stage-actions .glass-back-label {
  min-height: clamp(28px, 6.75cqw, 34px);
}

.postpartum-stage-actions button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.postpartum-stage > .academy-icon {
  --icon-size: 11px;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: clamp(7px, 2.4cqw, 12px);
  color: var(--academy-wine);
  transform: translateY(-50%);
  pointer-events: none;
}

.academy-intro h1 {
  margin: 0;
  font-size: clamp(19px, 6.65cqw, 34px);
  line-height: 1.22;
  text-wrap: balance;
}

.academy-intro h1 .intro-title-accent {
  display: block;
  color: var(--academy-wine);
}

.academy-intro-subtitle {
  margin: clamp(8px, 2.35cqw, 12px) 0 0;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  font-size: clamp(11px, 2.95cqw, 15px);
  line-height: 1.4;
  white-space: pre-line;
}

.weekly-knowledge {
  --weekly-size: 1;
  --weekly-height: calc(clamp(108px, 38cqw, 194px) * var(--weekly-size));
  --weekly-shadow-space: calc(clamp(7px, 2.5cqw, 13px) * var(--weekly-size));
  min-width: 0;
  padding-block-start: clamp(17px, 4.6cqw, 24px);
}

[data-preview-layout="1"] .course-progress-list:not([hidden]) ~ .weekly-knowledge {
  margin-block-start: auto;
  padding-block-start: clamp(24px, 6.5cqw, 34px);
}

[data-preview-layout="1"] .course-progress-list[hidden] ~ .weekly-knowledge {
  padding-block-start: clamp(29px, 7.25cqw, 38px);
}

#weekly-title {
  margin: -7px var(--academy-gutter) 13px;
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.5cqw, 12px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

[data-preview-layout="1"] #weekly-rail:not([hidden]) ~ #weekly-title {
  margin-block-start: calc(4px - var(--weekly-shadow-space));
}

[data-preview-layout="1"] #weekly-rail[hidden] ~ #weekly-title {
  margin-block-start: 0;
}

[data-preview-layout="1"] .course-progress-list:not([hidden]) ~ .weekly-knowledge :is(#weekly-rail, #weekly-title),
[data-preview-layout="2"] .weekly-knowledge #weekly-rail,
[data-preview-layout="2"] .weekly-overview-rail[hidden] ~ #weekly-title,
[data-preview-layout="1"] .course-progress-list[hidden] ~ .weekly-knowledge :is(.weekly-overview-rail, .weekly-overview-title) {
  display: none;
}

:is(.weekly-overview-title, .academy-module .module-title) {
  font: 500 clamp(17px, 4cqw, 21px)/1.25 var(--academy-sans);
}

.weekly-overview-title {
  margin: 0 var(--academy-gutter) clamp(11px, 2.8cqw, 15px);
}

[data-preview-layout="2"] .weekly-knowledge {
  margin-block: clamp(19px, 5.5cqw, 28px) 12px;
  padding: 0;
}

[data-preview-layout="2"] #weekly-title {
  margin: 0 var(--academy-gutter);
}

[data-preview-layout="2"] .weekly-overview-title {
  display: none;
}

.weekly-overview-rail.weekly-rail {
  --weekly-height: calc(clamp(116px, 37cqw, 189px) * var(--weekly-size));
  --weekly-gap: calc(clamp(7px, 2.1cqw, 11px) * var(--weekly-size));
  --weekly-width: calc((100% + var(--academy-gutter) - 2 * var(--weekly-gap)) / 2.5 * var(--weekly-size));
  height: auto;
  padding: 7px var(--academy-gutter) 16px;
  scroll-padding-inline: var(--academy-gutter);
}

.weekly-overview-rail {
  --guide-card-unit: 1px;
  --guide-card-width: calc(100 * var(--guide-card-unit));
  --guide-card-height: calc(126 * var(--guide-card-unit));
  --guide-card-gap: 12px;
}

[data-preview-layout="2"] .weekly-overview-rail {
  --guide-card-unit: 1.09px;
  --weekly-height: var(--guide-card-height);
  --weekly-width: var(--guide-card-width);
  --weekly-gap: var(--guide-card-gap);
  padding-block: 3px 12px;
}

[data-preview-plan="3"] .academy-intro > :is(.course-progress-list, .weekly-knowledge) {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
}

[data-preview-plan="3"] .academy-intro > .course-progress-list:not([hidden]),
[data-preview-plan="3"] .course-progress-list[hidden] ~ .weekly-knowledge {
  margin-block-start: calc(-1 * var(--intro-portrait-overlap));
}

[data-preview-plan="3"] .weekly-knowledge {
  isolation: isolate;
  overflow: clip;
  margin: 12px 0 0;
  padding-block: clamp(28px, 6.6cqw, 36px) 12px;
  border-radius: clamp(18px, 5.1cqw, 26px);
}

[data-preview-plan="3"] .weekly-knowledge::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: rgb(255 255 255 / 67%);
  backdrop-filter: blur(18px) saturate(115%);
  mask-image: linear-gradient(#000 8%, #000b 49%, transparent 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / 52%);
  pointer-events: none;
  content: "";
}

[data-preview-plan="3"] .weekly-overview-rail {
  --guide-card-unit: 1.07px;
  --guide-card-gap: 9px;
}

.weekly-overview-rail[data-dragging] {
  scroll-snap-type: none;
}

.weekly-overview-rail .weekly-slide {
  scroll-snap-align: start;
}

.weekly-overview-rail .weekly-card {
  --weekly-scale: 1;
  padding: calc(clamp(7px, 2.45cqw, 13px) * var(--weekly-size));
  border-radius: calc(clamp(12px, 3.65cqw, 19px) * var(--weekly-size));
  font-size: calc(clamp(10px, 3.1cqw, 16px) * var(--weekly-size));
  transform: none;
}

.weekly-empty {
  display: grid;
  min-height: var(--weekly-height);
  place-items: center;
  margin: 0 var(--academy-gutter) 10px;
  padding: 14px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--fill);
  color: var(--secondary-ink);
  font-size: 13px;
  text-align: center;
}

.academy-page :is(.course-progress-list, .weekly-rail, .weekly-empty, .academy-content)[hidden] {
  display: none;
}

.weekly-rail {
  --weekly-width: calc(31.5cqw * var(--weekly-size));
  --weekly-gap: calc((clamp(4px, 1.4cqw, 7px) + 8px) * var(--weekly-size));
  --weekly-center-growth: .18;
  --weekly-lift: calc(var(--weekly-height) * var(--weekly-center-growth));
  --weekly-side-angle: 8deg;
  --weekly-arc-sine: sin(var(--weekly-side-angle));
  --weekly-arc-radius: calc((var(--weekly-width) + var(--weekly-gap)) / var(--weekly-arc-sine));
  --weekly-arc-drop: calc(var(--weekly-arc-radius) * (1 - cos(var(--weekly-side-angle))));
  --weekly-tilt-space: calc(var(--weekly-width) * var(--weekly-arc-sine) / 2);
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--weekly-width);
  grid-auto-rows: var(--weekly-height);
  gap: var(--weekly-gap);
  height: calc(var(--weekly-height) + var(--weekly-lift) + var(--weekly-arc-drop) + var(--weekly-tilt-space) + 2 * var(--weekly-shadow-space));
  padding-block: calc(var(--weekly-shadow-space) + var(--weekly-lift)) var(--weekly-shadow-space);
  padding-inline: calc((100% - var(--weekly-width)) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  user-select: none;
}

.weekly-rail.is-moving {
  scroll-snap-type: none;
}

.weekly-rail:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

.weekly-slide {
  display: grid;
  min-width: 0;
  scroll-snap-align: center;
}

.weekly-card {
  --weekly-card-color: var(--academy-pump-300);
  --weekly-card-shadow: 0 calc(clamp(6px, 2.1cqw, 11px) * var(--weekly-size))
    calc(clamp(19px, 6.8cqw, 35px) * var(--weekly-size)) -3px
    color-mix(in srgb, var(--weekly-card-color) 63%, transparent);
  --weekly-duration-ink: var(--academy-wine);
  --weekly-art-hue: -9deg;
  --weekly-scale: calc(.9 + (.1 + var(--weekly-center-growth)) * var(--weekly-focus, 0));
  --weekly-arc-angle: asin(calc(var(--weekly-arc-offset, 0) * var(--weekly-arc-sine)));
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  padding: calc(clamp(13px, 3.7cqw, 19px) * var(--weekly-size));
  border: 0;
  border-radius: calc(clamp(17px, 5cqw, 26px) * var(--weekly-size));
  background: var(--weekly-card-color);
  box-shadow: var(--weekly-card-shadow);
  color: var(--ink);
  font: 600 calc(clamp(11px, 3.3cqw, 16px) * var(--weekly-size))/1.18 var(--academy-sans);
  text-align: start;
  /* Anchor the bottom edge to the circle and rotate it to the tangent. */
  transform-origin: center bottom;
  transform: translateY(calc(var(--weekly-arc-radius) * (1 - cos(var(--weekly-arc-angle)))))
    rotate(var(--weekly-arc-angle)) scale(var(--weekly-scale, 1));
  cursor: pointer;
}

#weekly-rail .weekly-card {
  padding-block-start: calc(clamp(10px, 2.9cqw, 15px) * var(--weekly-size));
  padding-inline-start: calc(clamp(10px, 2.9cqw, 15px) * var(--weekly-size));
}

:is(.weekly-card, .knowledge-picker-illustration)[data-tone="lavender"] {
  --weekly-card-color: var(--academy-lavender-300);
  --weekly-duration-ink: #462480;
  --weekly-art-hue: -53deg;
}

:is(.weekly-card, .knowledge-picker-illustration)[data-tone="mint"] {
  --weekly-card-color: var(--academy-mint-300);
  --weekly-duration-ink: #1a5140;
  --weekly-art-hue: 136deg;
}

:is(.weekly-card, .knowledge-picker-illustration)[data-tone="butter"] {
  --weekly-card-color: color-mix(in srgb, var(--academy-butter-300) 88%, var(--fill));
  --weekly-duration-ink: #633d1a;
  --weekly-art-hue: 37deg;
}

.weekly-card-duration,
.weekly-card-label {
  position: relative;
  z-index: 1;
}

.weekly-card-duration {
  display: inline-flex;
  align-items: center;
  gap: .18em;
  justify-self: start;
  margin-block-end: calc(clamp(3px, 1.3cqw, 7px) * var(--weekly-size));
  padding: calc(3px * var(--weekly-size)) calc(clamp(6px, 1.65cqw, 9px) * var(--weekly-size));
  border-radius: 999px;
  background: color-mix(in srgb, var(--weekly-card-color) 80%, var(--weekly-duration-ink));
  color: var(--weekly-duration-ink);
  font-size: calc(clamp(9px, 2.25cqw, 12px) * var(--weekly-size));
  line-height: 1;
  white-space: nowrap;
}

.weekly-card-duration .academy-icon {
  width: 1.2em;
}

.weekly-card-label {
  overflow-wrap: anywhere;
}

.weekly-card-art {
  /* Compensate for the card scale so the visible artwork grows by 20% at center. */
  --weekly-art-scale: calc(.92 * (1 + .2 * var(--weekly-focus, 0)));
  position: absolute;
  inset-inline-end: var(--weekly-art-end, -24%);
  inset-block-end: var(--weekly-art-bottom, -23%);
  width: var(--weekly-art-width, 112%);
  height: auto;
  scale: calc(var(--weekly-art-scale) / var(--weekly-scale, 1));
  transform-origin: right bottom;
  pointer-events: none;
}

.weekly-rail[data-art-set="weekly-hand-drawn"] .weekly-card {
  isolation: isolate;
}

.weekly-rail[data-art-set="weekly-hand-drawn"] .weekly-card-art {
  filter: hue-rotate(var(--weekly-art-hue)) brightness(1.1);
  mix-blend-mode: multiply;
}

.weekly-card[data-motif="vision"] {
  --weekly-art-width: 118%;
  --weekly-art-end: -26%;
  --weekly-art-bottom: -33%;
}

.weekly-card[data-motif="nails"] {
  --weekly-art-width: 97%;
  --weekly-art-end: -16%;
  --weekly-art-bottom: -12%;
}

.weekly-card[data-motif="sleep-nightcap"] {
  --weekly-art-width: 106%;
  --weekly-art-end: -18%;
  --weekly-art-bottom: -11%;
}

.weekly-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

[data-preview-plan="2"] .weekly-guide-card:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

.weekly-overview-rail .weekly-guide-card {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  align-content: start;
  width: var(--guide-card-width);
  height: var(--guide-card-height);
  padding: calc(10 * var(--guide-card-unit));
  overflow: hidden;
  border: 0;
  border-radius: calc(16 * var(--guide-card-unit));
  background: var(--weekly-card-color);
  box-shadow: 0 2px 6px rgb(0 0 0 / 5%);
  color: var(--ink);
  font: 500 calc(12 * var(--guide-card-unit))/calc(16 * var(--guide-card-unit)) var(--academy-sans);
  text-align: start;
}

.weekly-guide-card img {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
}

.weekly-guide-card[data-guide-art="baby"] img {
  inset: auto auto 0 0;
  width: 100%;
}

.weekly-guide-illustration {
  inset: auto calc(-3 * var(--guide-card-unit)) calc(-14 * var(--guide-card-unit)) auto;
  width: calc(93 * var(--guide-card-unit));
}

.weekly-guide-card[data-motif="nails"] .weekly-guide-illustration,
.weekly-guide-card[data-motif="lochia"] .weekly-guide-illustration {
  inset: auto 0 calc(4 * var(--guide-card-unit));
  width: calc(88 * var(--guide-card-unit));
  height: calc(78 * var(--guide-card-unit));
  margin-inline: auto;
  object-fit: contain;
}

.weekly-guide-card[data-motif="feeding"] .weekly-guide-illustration {
  inset: auto 0 0;
  width: 100%;
}

.weekly-guide-card[data-motif="carrot"] .weekly-guide-illustration {
  inset: auto 0 calc(12 * var(--guide-card-unit));
  width: calc(94 * var(--guide-card-unit));
  margin-inline: auto;
}

.academy-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 0 var(--academy-gutter) calc(var(--tab-bar-height) + var(--home-height) + 24px);
}

.academy-module + .academy-module {
  padding-top: 24px;
}

[data-preview-layout="2"] .academy-module:is([aria-labelledby="expert-courses-title"], [aria-labelledby="featured-courses-title"]) {
  padding-block-start: 8px;
}

.academy-module .module-title {
  margin: 0 0 clamp(12px, 3.7cqw, 19px);
}

.academy-dialog h2 {
  margin: 0 0 14px;
  font-size: clamp(19px, 4.7cqw, 24px);
  line-height: 1.25;
}

.module-stage {
  margin-inline-start: 5px;
  color: var(--secondary-ink);
  font: 400 clamp(11px, 2.55cqw, 13px)/1.2 var(--academy-sans);
}

.questions-module {
  position: relative;
  isolation: isolate;
  margin-inline: calc(-1 * var(--academy-gutter));
  padding: clamp(14px, 4.2cqw, 22px) var(--academy-gutter) clamp(18px, 5cqw, 25px);
}

[data-preview-layout="2"] .questions-module {
  padding-block-start: clamp(6px, 2cqw, 10px);
  padding-block-end: clamp(12px, 3.4cqw, 18px);
}

.questions-module::before {
  position: absolute;
  z-index: -1;
  inset: 13% 0 -5px;
  background: linear-gradient(115deg, #ffcfaa 8%, #f8b6d8 59%, #ded2fa 100%);
  mask-image: radial-gradient(ellipse 43% 43%, #0009 45%, transparent 100%);
  opacity: .7;
  pointer-events: none;
  content: "";
}

[data-preview-plan="3"] .academy-check-in {
  margin-inline: calc(-1 * var(--academy-gutter));
  padding-block: clamp(6px, 2cqw, 10px) clamp(12px, 3.4cqw, 18px);
}

.academy-check-in .module-title {
  margin-inline: var(--academy-gutter);
  margin-block-end: clamp(9px, 2.7cqw, 14px);
}

.academy-check-in .check-in-cards {
  padding: 2px var(--academy-gutter) 5px;
}

.academy-check-in .check-in-card:not([hidden]) {
  --check-in-tone: var(--academy-mint-300);
  --check-in-surface: color-mix(in srgb, var(--check-in-tone) 42%, var(--fill));
  --check-in-outline: color-mix(in srgb, var(--check-in-tone) 80%, var(--fill));
  display: grid;
  min-width: 0;
  perspective: 1000px;
}

.academy-check-in .check-in-card[data-tone="rest"] {
  --check-in-tone: var(--academy-lavender-300);
}

.academy-check-in .check-in-card[data-tone="support"] {
  --check-in-tone: var(--academy-pump-300);
}

.academy-check-in .check-in-card-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform .38s cubic-bezier(.24, .62, .26, 1);
}

.academy-check-in .check-in-card:is([data-answer="yes"], [data-answer="no"]) .check-in-card-inner {
  transform: rotateY(180deg);
}

.academy-check-in .check-in-face {
  position: relative;
  display: grid;
  grid-area: 1 / 1;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-block-size: clamp(208px, 45cqw, 232px);
  overflow: clip;
  padding: clamp(15px, 4.3cqw, 22px);
  border: 1px solid var(--check-in-outline);
  border-radius: clamp(19px, 5cqw, 26px);
  backface-visibility: hidden;
}

.academy-check-in .check-in-face[inert] {
  pointer-events: none;
}

.academy-check-in .check-in-front {
  background: var(--check-in-surface);
}

.academy-check-in .check-in-back {
  background: var(--fill);
  transform: rotateY(180deg);
}

.academy-check-in .check-in-tag {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--check-in-outline);
  font: 600 12px/1.2 var(--academy-sans);
}

.academy-check-in :is(.check-in-question, .check-in-response) {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0;
  text-wrap: pretty;
}

.academy-check-in .check-in-question {
  font: 650 clamp(17px, 4.4cqw, 22px)/1.2 var(--academy-sans);
}

.academy-check-in .check-in-response {
  color: var(--academy-wine);
  font: 400 clamp(17px, 4.3cqw, 22px)/1.28 var(--editorial);
}

.academy-check-in .check-in-art {
  position: absolute;
  inset: auto -12px -17px auto;
  width: min(55%, 174px);
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
}

.academy-check-in :is(.check-in-actions, .check-in-links) {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: end;
  gap: 8px;
}

.academy-check-in .check-in-answer {
  min-width: 66px;
  min-height: 44px;
  padding-inline: 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--check-in-surface);
  font: 650 14px/1.2 var(--academy-sans);
  cursor: pointer;
}

.academy-check-in .check-in-answer[data-answer="yes"] {
  color: var(--fill);
  background: var(--ink);
}

.academy-check-in :is(.check-in-more, .check-in-advance):not([hidden]) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  margin-block-start: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--academy-wine);
  background: transparent;
  font: 650 13px/1.2 var(--academy-sans);
  text-align: start;
  cursor: pointer;
}

.academy-check-in .check-in-advance:not([hidden]) {
  margin-inline-start: auto;
  padding-inline: 16px;
  border-radius: 999px;
  color: var(--fill);
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .academy-check-in .check-in-card-inner {
    transition: none;
  }
}

.question-heading,
.featured-course-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.question-heading {
  margin-bottom: clamp(4px, 1.5cqw, 8px);
}

.question-heading .module-title {
  margin: 0;
  white-space: nowrap;
}

.question-heading .question-view-all {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--academy-wine);
  font-size: 12px;
}

.questions-intro {
  margin: 0 0 10px;
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.85cqw, 15px);
}

.featured-course-heading .module-title {
  margin: 0;
  text-wrap: balance;
}

.featured-course-heading,
.academy-module .featured-course-section-title {
  margin-bottom: clamp(4px, 1.25cqw, 6px);
}

[data-preview-layout="2"] .featured-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

[data-preview-layout="2"] .featured-stage-heading .featured-course-section-title {
  margin: 0;
}

.featured-stage-tabs:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-block: 10px;
  padding: 4px;
  border-radius: 999px;
  background: #eee5df;
}

.featured-stage-tabs button {
  min-height: 32px;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #705b57;
  font: 500 clamp(11px, 3cqw, 14px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.featured-stage-tabs [aria-selected="true"] {
  background: var(--fill);
  color: var(--academy-wine);
  font-weight: 600;
  box-shadow: 0 2px 5px rgb(36 15 27 / 7%);
}

:is(.featured-course-heading, .featured-stage-heading) .text-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 36px;
}

.more-courses-chevron {
  --icon-size: 16px;
  display: block;
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--academy-wine);
  font: 600 13px/1.3 var(--academy-sans);
  white-space: nowrap;
  cursor: pointer;
}

.question-preview:not(.question-featured-topic) {
  --check-in-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--check-in-columns), minmax(0, 1fr));
  gap: clamp(6px, 1.8cqw, 10px);
}

.questions-module :is(.question-shuffle, .question-view-all)[hidden] {
  display: none;
}

.question-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.question-shuffle .academy-icon {
  --icon-size: 17px;
}

.pill {
  padding: 5px 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--ink);
  background: var(--fill);
  font: 500 clamp(12px, 2.7cqw, 14px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.question-card {
  --check-in-accent: var(--academy-wine);
  --check-in-icon-fill: color-mix(in srgb, var(--academy-pump-300) 35%, white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: clamp(85px, 20.6cqw, 106px);
  padding: clamp(8px, 2.2cqw, 12px) clamp(6px, 1.6cqw, 9px);
  border: 1px solid #fff;
  border-radius: clamp(13px, 3.7cqw, 19px);
  background: var(--fill);
  color: var(--ink);
  box-shadow: 0 3px 10px #240f1b08;
  font: 500 clamp(11px, 2.35cqw, 12px)/1.2 var(--academy-sans);
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}

.question-card[data-tone="butter"] {
  --check-in-accent: #7e451f;
  --check-in-icon-fill: color-mix(in srgb, var(--academy-butter-300) 27%, white);
}

.question-card[data-tone="lavender"] {
  --check-in-accent: #552c95;
  --check-in-icon-fill: color-mix(in srgb, var(--academy-lavender-300) 36%, white);
}

.question-card[data-tone="mint"] {
  --check-in-accent: #1a5140;
  --check-in-icon-fill: color-mix(in srgb, var(--academy-mint-300) 43%, white);
}

.question-card strong {
  font-weight: 600;
}

.question-card-category {
  margin-top: 3px;
  color: var(--secondary-ink);
  font-size: 10px;
}

.question-icon {
  display: grid;
  width: clamp(28px, 7.1cqw, 36px);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: clamp(7px, 1.95cqw, 10px);
  border-radius: 50%;
  background: var(--check-in-icon-fill);
  color: var(--check-in-accent);
}

.question-icon svg {
  width: 57%;
  height: 57%;
}

.phone-screen:has(> :is(.question-library-page, .check-in-page):not([hidden])) > .app-header {
  visibility: hidden;
}

.question-library-nav:not([hidden]) {
  z-index: 1;
  grid-area: 2 / 1;
  display: flex;
  align-items: center;
  padding-inline: clamp(9px, 3cqw, 15px);
}

.check-in-nav-title {
  display: none;
}

.phone-screen:has(> :is(.question-library-page, .check-in-page):not([hidden])) {
  /* The original gradient is 920px wide and starts 459px above a 402px screen. */
  --check-in-glow-unit: calc((100 - 2 * var(--screen-side-inset)) * 1cqw / 402);
  background: url("assets/academy/check-in-glow.svg") center calc(-459 * var(--check-in-glow-unit)) / 228.86% auto no-repeat var(--paper);
}

.phone-screen:has(> :is(.question-library-page, .check-in-page):not([hidden])) > .home-indicator {
  background: transparent;
}

.phone-screen:has(> .check-in-page:not([hidden])) > .question-library-nav:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.phone-screen:has(> .check-in-page:not([hidden])) .check-in-nav-title {
  display: block;
  font: 500 clamp(13px, 3.55cqw, 18px)/1.1 var(--academy-sans);
  letter-spacing: .02em;
}

.question-library-page {
  padding: clamp(12px, 4.1cqw, 21px);
  padding-block-start: 9px;
  scrollbar-width: none;
}

.phone-screen:has(> .lesson-page:not([hidden])) > :is(.app-header, .tab-bar) {
  visibility: hidden;
}

.phone-screen:has(> .lesson-page:not([hidden])) > .status-bar {
  z-index: 3;
  background: linear-gradient(#240f1b75, transparent);
  color: var(--fill);
  pointer-events: none;
}

.phone-screen:has(> .lesson-page:not([hidden]):not([data-scrolled])) .status-icons {
  filter: brightness(0) invert(1);
}

.phone-screen:has(> .lesson-page[data-scrolled]:not([hidden])) > .status-bar {
  background: var(--glass-paper);
  color: #050505;
  backdrop-filter: blur(12px);
}

.phone-screen:has(> .lesson-page:not([hidden])) > .home-indicator {
  background: transparent;
  pointer-events: none;
}

.lesson-page {
  --lesson-bottom-space: calc(var(--home-height) + 24px);
  grid-row: 1 / -1;
  background: var(--paper);
  scrollbar-width: none;
  scroll-padding-block-start: calc(var(--status-height) + 62px);
  scroll-padding-block-end: var(--lesson-bottom-space);
}

.lesson-page:has(+ .lesson-buy-dock:not([hidden])) {
  --lesson-bottom-space: calc(var(--home-height) + var(--button-height) + 24px);
}

.lesson-toolbar {
  position: sticky;
  inset-block-start: var(--status-height);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  height: 0;
  padding-inline: clamp(10px, 2.8cqw, 14px);
  pointer-events: none;
}

.lesson-toolbar button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  margin-block-start: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--fill);
  pointer-events: auto;
  cursor: pointer;
}

.lesson-toolbar :is(.lesson-back, .lesson-save[aria-pressed="false"]) {
  border: 1px solid #ffffff80;
  background: #240f1b8c;
}

.lesson-save svg {
  --icon-size: 19px;
}

.lesson-save[aria-pressed="true"] svg {
  fill: currentColor;
}

.lesson-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(248px, 87.5cqw, 448px);
  background: var(--ink);
  color: var(--fill);
}

.lesson-hero > img,
.lesson-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lesson-hero > img {
  object-fit: cover;
  object-position: 50% 34%;
}

.lesson-hero::after {
  background: linear-gradient(180deg, #240f1b55, transparent 26%, #240f1b90 65%, #210f1bf5);
  pointer-events: none;
  content: "";
}

.lesson-hero-copy {
  z-index: 1;
  padding: 70px var(--academy-gutter) clamp(18px, 4.3cqw, 22px);
}

.lesson-hero h1 {
  margin: 0;
  font-size: clamp(22px, 6.2cqw, 32px);
  line-height: 1.08;
}

.lesson-hero p {
  margin: 9px 0 0;
  color: #f2e4e9;
  font-size: clamp(11px, 2.6cqw, 13px);
}

.lesson-content {
  padding: clamp(13px, 3.4cqw, 18px) var(--academy-gutter) var(--lesson-bottom-space);
}

.lesson-content [hidden] {
  display: none;
}

.lesson-course-overview {
  margin-block-start: 16px;
}

.lesson-byline {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--edge);
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.5cqw, 13px);
  text-align: center;
}

.lesson-byline p {
  margin: 0;
}

.lesson-author {
  color: var(--ink);
  font: 400 clamp(13px, 3.55cqw, 18px)/1.3 var(--editorial);
}

.lesson-review,
.lesson-listen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--academy-wine);
  font: inherit;
  cursor: pointer;
}

.lesson-review span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lesson-review svg,
.lesson-buy svg {
  --icon-size: 17px;
}

.lesson-buy {
  width: 100%;
  box-sizing: border-box;
}

.lesson-buy.lesson-buy-dock {
  position: absolute;
  z-index: 2;
  inset-inline: var(--academy-gutter);
  inset-block-end: calc(var(--home-height) + 8px);
  width: auto;
  box-shadow: 0 4px 16px #240f1b33;
  font-size: 14px;
}

.lesson-buy-dock[hidden],
.lesson-page[hidden] + .lesson-buy-dock {
  display: none;
}

.lesson-listen {
  margin: 12px auto 17px;
  padding: 0 15px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass-white);
  font-size: clamp(11px, 2.55cqw, 13px);
}

.lesson-listen .academy-icon {
  --icon-size: 14px;
}

.lesson-listen:not([data-playing]) .lesson-audio-pause,
.lesson-listen[data-playing] .lesson-audio-play {
  display: none;
}

.lesson-reading h2,
.lesson-related h2 {
  margin: 0 0 9px;
  font-size: clamp(16px, 4.15cqw, 22px);
}

.lesson-reading {
  line-height: 1.6;
}

.lesson-reading p {
  margin: 0 0 12px;
}

.lesson-reading h3 {
  margin: 16px 0 4px;
  font-size: inherit;
  font-weight: 600;
}

.lesson-related {
  margin-block-start: 24px;
}

.lesson-page :is(a, button):focus-visible,
.lesson-buy-dock:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.phone-screen:has(> .learning-page:not([hidden])) > :is(.app-header, .tab-bar) {
  visibility: hidden;
}

.phone-screen:has(> .learning-page:not([hidden])) > .status-bar {
  z-index: 3;
  background: var(--paper);
}

.phone-screen:has(> .learning-page:not([hidden])) > .home-indicator {
  pointer-events: none;
}

.learning-page {
  grid-row: 2 / 5;
  background: var(--paper);
  color: var(--ink);
  scrollbar-width: none;
}

.learning-toolbar {
  position: sticky;
  inset-block-start: 12px;
  z-index: 2;
  height: 0;
  margin-inline: calc(var(--academy-gutter) + 8px);
}

.learning-toolbar .glass-back-button {
  width: 44px;
  height: 44px;
}

.learning-hero {
  margin: 4px var(--academy-gutter) 0;
}

.learning-still {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 4.5cqw, 23px);
  background: var(--academy-pill);
  object-fit: cover;
}

.learning-hero figcaption {
  display: grid;
  gap: 8px;
  margin-block-start: 12px;
  color: var(--academy-wine);
  font-size: clamp(10px, 2.55cqw, 13px);
}

.learning-hero-label {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--academy-pill);
}

.learning-timeline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.learning-progress {
  display: block;
  min-width: 0;
  height: clamp(5px, 1.5cqw, 8px);
}

.learning-content {
  padding: clamp(13px, 4.5cqw, 23px) var(--academy-gutter) 20px;
}

.learning-intro {
  display: grid;
  gap: 7px;
}

.learning-intro :is(h1, p),
.learning-list-heading h2 {
  margin: 0;
}

#learning-course-title {
  color: var(--academy-wine);
  font-size: clamp(11px, 2.7cqw, 14px);
}

.learning-intro h1 {
  font-size: clamp(18px, 5.2cqw, 27px);
  line-height: 1.2;
  text-wrap: balance;
}

.learning-summary {
  color: var(--secondary-ink);
  font-size: clamp(12px, 3.15cqw, 16px);
}

.learning-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-block: 22px 12px;
}

.learning-list-heading h2 {
  font: 500 clamp(17px, 4cqw, 21px)/1.25 var(--academy-sans);
}

.learning-count,
.learning-row-meta {
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.6cqw, 13px);
}

.learning-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-row {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 2cqw, 10px);
  width: 100%;
  padding: clamp(6px, 2cqw, 10px);
  border: 0;
  border-radius: clamp(12px, 3.7cqw, 19px);
  background: var(--fill);
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.learning-row[aria-pressed="true"] {
  background: var(--academy-pill);
}

.learning-row[aria-pressed="true"] .learning-progress {
  background: var(--fill);
}

.learning-row[aria-pressed="true"] .learning-progress::-webkit-progress-bar {
  background: var(--fill);
}

.learning-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  object-fit: cover;
}

.learning-row-copy {
  display: grid;
  gap: 4px;
  font-size: clamp(11px, 3cqw, 15px);
  line-height: 1.24;
}

.learning-row-copy strong {
  font-weight: 500;
}

.learning-row-icon {
  --icon-size: 14px;
  margin-inline-end: 4px;
  color: var(--academy-wine);
}

.learning-page button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.learning-intro h1:focus {
  outline: none;
}

.question-library-period {
  margin: 0 0 5px;
  color: var(--academy-wine);
  font-size: clamp(10px, 2.35cqw, 12px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.question-library-page h1 {
  margin: 0 0 7px;
  font-size: clamp(15px, 5.35cqw, 27px);
  line-height: 1.15;
}

:is(.question-library-page, .check-in-page) h1:focus {
  outline: none;
}

.question-library-lead {
  margin: 0 0 14px;
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.65cqw, 14px);
}

.check-in-page {
  --check-in-tint: var(--academy-pump-300);
  --check-in-surface: color-mix(in srgb, var(--check-in-tint) 24%, var(--fill));
  font-size: clamp(12px, 2.75cqw, 14px);
  line-height: 1.4;
}

.check-in-page:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.check-in-scroll {
  padding: clamp(14px, 4.7cqw, 24px) var(--academy-gutter) 24px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.check-in-page[data-tone="lavender"] { --check-in-tint: var(--academy-lavender-300); }
.check-in-page[data-tone="butter"] { --check-in-tint: var(--academy-butter-300); }
.check-in-page[data-tone="mint"] { --check-in-tint: var(--academy-mint-300); }

.check-in-page [hidden] {
  display: none;
}

.check-in-intro {
  margin-block-end: clamp(18px, 5.5cqw, 28px);
  text-align: center;
}

.check-in-period {
  margin-block-end: 8px;
  color: var(--academy-wine);
  font-size: clamp(9px, 2.35cqw, 12px);
  letter-spacing: .05em;
}

.check-in-page h1 {
  margin: 0 0 8px;
  font-size: clamp(18px, 5.3cqw, 27px);
  line-height: 1.2;
  text-wrap: balance;
}

.check-in-lead {
  margin: 0;
  color: #503f49;
  font-size: clamp(12px, 3.15cqw, 16px);
  text-wrap: pretty;
}

.check-in-more {
  margin-block-start: clamp(20px, 6cqw, 31px);
}

.check-in-more h2 {
  margin: clamp(16px, 4.8cqw, 24px) 0 9px;
  font-size: clamp(14px, 3.8cqw, 19px);
  font-weight: 600;
}

.check-in-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  padding: clamp(12px, 4cqw, 20px);
  border: 0;
  border-radius: clamp(12px, 3.7cqw, 19px);
  background: var(--fill);
  color: var(--academy-wine);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.check-in-next strong {
  grid-column: 1;
  color: var(--ink);
  font-size: clamp(13px, 3.4cqw, 17px);
  line-height: 1.3;
}

.check-in-next-arrow {
  --icon-size: 20px;
  grid-area: 1 / 2 / span 2;
  align-self: center;
}

.check-in-next:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

.check-in-page article > section {
  margin-block-start: 16px;
}

.check-in-page article > section h2 {
  margin: 0 0 4px;
  font-size: clamp(13px, 3.5cqw, 18px);
  font-weight: 500;
}

.check-in-page article > section p {
  margin: 0;
}

.check-in-figure,
.check-in-help {
  margin: 14px 0 0;
  padding: clamp(11px, 3.2cqw, 16px);
  border-radius: 14px;
  background: var(--check-in-surface);
}

.check-in-figure figcaption {
  margin-bottom: 8px;
  font-weight: 600;
}

.check-in-figure-art:empty {
  display: none;
}

.check-in-figure-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  object-fit: cover;
}

.check-in-figure-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(11px, 2.7cqw, 14px);
}

.check-in-figure-points li {
  flex: 1 1 80px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--fill);
}

.check-in-figure:has(.check-in-point-icon) {
  margin: 0;
  padding: 0;
  background: transparent;
}

.check-in-figure:has(.check-in-point-icon) figcaption {
  margin-block-end: clamp(12px, 3.1cqw, 16px);
  font-size: clamp(13px, 3.5cqw, 18px);
  font-weight: 500;
}

.check-in-figure:has(.check-in-point-icon) .check-in-figure-points {
  display: grid;
  gap: clamp(13px, 4.7cqw, 24px);
}

.check-in-figure-points li:has(.check-in-point-icon) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(10px, 3.15cqw, 16px);
  padding: 0;
  background: transparent;
  color: #503f49;
}

.check-in-point-icon {
  --icon-size: 20px;
  display: grid;
  width: clamp(36px, 9.4cqw, 48px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--academy-blush);
  border-radius: clamp(12px, 3.15cqw, 16px);
  background: #fff7f8;
  color: var(--academy-wine);
}

.check-in-figure-points strong {
  display: block;
  font-size: clamp(12px, 3.15cqw, 16px);
  font-weight: 500;
}

.check-in-figure-points p {
  margin: 4px 0 0;
}

.check-in-sleep-timeline {
  display: flex;
  gap: 2px;
  height: 12px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 99px;
}

.check-in-sleep-timeline span:nth-child(odd),
.check-in-figure[data-timeline] li:first-child::before {
  background: #866bcf;
}

.check-in-sleep-timeline span:nth-child(even),
.check-in-figure[data-timeline] li:last-child::before {
  background: var(--check-in-tint);
}

.check-in-figure[data-timeline] li::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 5px;
  border-radius: 50%;
  content: "";
}

.check-in-figure-note {
  margin: 7px 0 0;
  color: var(--secondary-ink);
  font-size: 11px;
}

.check-in-help {
  background: var(--academy-pill);
}

.check-in-help h2 {
  color: var(--academy-wine);
}

.question-sources {
  margin-block-start: clamp(14px, 4.3cqw, 22px);
  padding-block-start: 10px;
  border-block-start: 1px solid var(--edge);
  font-size: clamp(11px, 2.75cqw, 14px);
}

.question-sources h2 {
  margin: 0 0 4px;
  color: var(--secondary-ink);
  font-size: inherit;
  font-weight: 600;
}

.question-sources ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-sources a {
  color: var(--academy-wine);
  text-underline-offset: .16em;
}

.check-in-lochia .lochia-week-note strong {
  display: none;
}

.check-in-lochia .lochia-later-stage .lochia-swatch {
  height: clamp(31px, 9.7cqw, 49px);
  outline: 0;
}

.question-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

:is(.question-library-filters, .course-filters, .consultation-tabs) .pill {
  min-width: 52px;
  min-height: 36px;
  padding-inline: 12px;
  border: 0;
  font-size: clamp(11px, 2.55cqw, 13px);
  white-space: nowrap;
}

.question-library-list {
  display: grid;
  gap: 9px;
}

.question-library-card:not([hidden]) {
  display: grid;
  gap: 4px;
  overflow: hidden;
  padding: clamp(12px, 3.6cqw, 18px);
  border-radius: clamp(14px, 4.1cqw, 21px);
  background: var(--fill);
  color: var(--ink);
  text-decoration: none;
}

.question-library-category,
.question-library-action {
  color: var(--academy-wine);
  font-size: clamp(10px, 2.45cqw, 12px);
  font-weight: 600;
}

.question-library-question {
  font-size: clamp(14px, 3.8cqw, 19px);
  line-height: 1.3;
}

.question-library-summary {
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.65cqw, 14px);
  line-height: 1.4;
}

.question-library-action {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
  margin-top: 2px;
}

.question-library-nav button:focus-visible,
.question-library-filters button:focus-visible,
.academy-content .consultation-tabs .pill:focus-visible,
.question-library-card:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

.pill[aria-pressed="true"] {
  border-color: var(--academy-wine);
  background: var(--academy-wine);
  color: var(--fill);
}

.academy-module #next-stage-title {
  margin-block-end: 5px;
}

.next-stage-subtitle {
  margin: 0 0 clamp(12px, 3.7cqw, 19px);
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.85cqw, 15px);
}

.next-stage-collections {
  --collection-depth: clamp(12px, 3.3cqw, 17px);
  display: grid;
  isolation: isolate;
  min-width: 0;
  padding-block-end: calc(2 * var(--collection-depth));
  touch-action: pinch-zoom;
  user-select: none;
}

:is(.collection-card, .course-cover-theme) {
  --card-tint: var(--academy-lavender-300);
  --card-surface: color-mix(in srgb, var(--card-tint) 47%, var(--fill));
  border: 0;
}

.collection-card[data-collection="mom"] {
  --card-tint: var(--academy-pump-300);
}

.collection-card {
  --collection-inset: clamp(16px, 5.5cqw, 28px);
  --collection-gap: clamp(13px, 4.4cqw, 22px);
  --collection-art-height: clamp(82px, 26cqw, 132px);
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto 1fr minmax(calc(var(--collection-art-height) - var(--collection-inset) - var(--collection-gap)), auto);
  gap: var(--collection-gap);
  min-width: 0;
  overflow: clip;
  padding: var(--collection-inset);
  border-radius: clamp(16px, 5.5cqw, 28px);
  background: var(--card-surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  transform-origin: center bottom;
  transition: transform .38s cubic-bezier(.2, .75, .25, 1);
  cursor: pointer;
}

.collection-card[data-depth="0"] {
  z-index: 3;
}

.collection-card[data-depth="1"] {
  z-index: 2;
  transform: translateY(var(--collection-depth)) scale(.92);
}

.collection-card[data-depth="2"] {
  z-index: 1;
  transform: translateY(calc(2 * var(--collection-depth))) scale(.83);
}

.collection-card > * {
  transition: opacity .16s ease;
}

.collection-card[inert] > * {
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s ease, visibility 0s .12s;
}

.academy-content .collection-card:focus-visible {
  outline-offset: -3px;
}

.collection-card[data-collection="questions"] {
  --card-tint: var(--academy-mint-300);
}

.collection-copy {
  display: grid;
  align-content: start;
  gap: 3px;
}

.collection-copy strong {
  font-size: clamp(11px, 3.4cqw, 17px);
  line-height: 1.2;
  white-space: nowrap;
}

.collection-copy .card-secondary {
  font-size: clamp(10px, 2.45cqw, 12px);
}

.collection-topics {
  display: grid;
  align-content: center;
  gap: clamp(7px, 2.4cqw, 12px);
  font: 500 clamp(12px, 3.2cqw, 16px)/1.3 var(--academy-sans);
}

.collection-topics [role="listitem"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.collection-topic-number {
  display: grid;
  width: 24px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 7px;
  background: var(--card-tint);
  font: 600 12px/1 var(--academy-sans);
}

.collection-action {
  align-self: end;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--fill);
  font-size: clamp(11px, 2.6cqw, 14px);
}

.collection-image {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: auto;
  height: calc(1.25 * var(--collection-art-height));
  pointer-events: none;
}

.collection-card:is([data-collection="mom"], [data-collection="questions"]) .collection-image {
  inset-inline-end: calc(-.13 * var(--collection-art-height));
  inset-block-end: calc(-.09 * var(--collection-art-height));
  height: var(--collection-art-height);
}

.entry-category {
  color: var(--academy-wine);
  font-size: 11px;
  font-weight: 600;
}

.card-secondary {
  color: var(--secondary-ink);
  font-size: 12px;
  line-height: 1.35;
}

.featured-courses {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - clamp(15px, 4.7cqw, 24px));
  gap: clamp(8px, 2.5cqw, 13px);
  margin-inline: calc(-1 * var(--academy-gutter));
  padding: 4px var(--academy-gutter);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--academy-gutter);
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  user-select: none;
}

.featured-courses[data-dragging] {
  scroll-snap-type: none;
}

.featured-course-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 4cqw, 18px);
}

:is(.featured-courses, .featured-course-stack):focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

.question-featured-topic {
  position: relative;
  display: flex;
  gap: 10px;
  min-width: 0;
  margin-inline: calc(-1 * var(--academy-gutter));
  padding-inline: var(--academy-gutter) clamp(22px, 5cqw, 28px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline-start: var(--academy-gutter);
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  user-select: none;
  cursor: grab;
}

.question-topic-card {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 0 0 100%;
  align-items: stretch;
  min-width: 0;
  min-height: clamp(205px, 49cqw, 230px);
  overflow: hidden;
  border-radius: clamp(14px, 4.6cqw, 23px);
  background: #795063;
  color: var(--fill);
  scroll-snap-align: start;
}

.question-topic-card[data-topic="pocket-feeding"] {
  background: #535d7d;
}

.question-topic-card[data-topic="pocket-newborn"] {
  background: #3f6258;
}

.question-featured-topic[data-dragging] {
  scroll-snap-type: none;
  cursor: grabbing;
}

.question-topic-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.question-topic-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(8px, 2.6cqw, 13px);
  width: 58%;
  padding: clamp(12px, 4cqw, 19px);
  padding-inline-end: 0;
}

.question-topic-copy h3 {
  margin: 0;
  font: 700 clamp(15px, 4.25cqw, 20px)/1.15 var(--academy-sans);
  white-space: nowrap;
}

.question-topic-copy ul {
  display: grid;
  gap: clamp(6px, 1.8cqw, 9px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-topic-copy li {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.6cqw, 8px);
  font: 400 clamp(10px, 2.95cqw, 13px)/1.3 var(--academy-sans);
  white-space: nowrap;
}

.question-topic-copy li .academy-icon {
  --icon-size: clamp(14px, 3.8cqw, 19px);
}

.question-topic-action {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  max-width: 100%;
  margin-block-start: 8px;
  padding: 6px clamp(12px, 4.3cqw, 21px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 clamp(12px, 3.35cqw, 16px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.question-topic-action::before {
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  border-radius: inherit;
  background: var(--fill);
  content: "";
}

.question-topic-copy .question-topic-action:focus-visible {
  outline-color: var(--fill);
}

.question-topic-art {
  /* Keep the original photo pixels and trace the subjects' outline in the card. */
  position: absolute;
  z-index: -1;
  inset: auto -17.9% 0 auto;
  width: 85.2%;
  max-width: none;
  height: auto;
  clip-path: polygon(evenodd,
    41.38% 2.17%, 42.16% 2.12%, 43.11% 2.46%, 45.14% 3.92%,
    45.68% 4.84%, 46.09% 5.19%, 48.89% 9.03%, 49.57% 10.54%,
    50.09% 14.26%, 50.04% 15.90%, 49.63% 16.87%, 50.65% 19.86%,
    51.09% 20.64%, 51.76% 19.39%, 52.95% 15.33%, 54.02% 13.64%,
    55.81% 12.38%, 57.99% 11.43%, 59.79% 12.06%, 59.99% 12.67%,
    61.14% 13.60%, 62.71% 16.24%, 63.24% 18.30%, 63.72% 19.25%,
    64.19% 21.15%, 64.43% 23.17%, 64.40% 24.92%, 64.78% 29.73%,
    65.19% 31.43%, 65.19% 33.69%, 64.92% 35.67%, 64.65% 35.77%,
    65.82% 36.84%, 66.75% 38.39%, 67.74% 41.13%, 68.55% 41.99%,
    68.75% 42.72%, 70.45% 45.19%, 71.17% 47.93%, 72.19% 50.34%,
    72.75% 52.37%, 73.07% 52.97%, 73.45% 55.01%, 73.79% 57.34%,
    73.76% 58.18%, 74.21% 60.50%, 74.07% 61.26%, 73.54% 62.44%,
    73.01% 63.11%, 72.40% 63.07%, 71.94% 62.27%, 71.69% 62.23%,
    70.92% 62.87%, 70.82% 63.26%, 71.58% 62.27%, 72.66% 65.73%,
    73.87% 68.11%, 76.74% 75.75%, 77.12% 77.42%, 77.09% 77.95%,
    77.69% 80.15%, 77.83% 83.41%, 78.12% 84.51%, 78.27% 86.70%,
    78.16% 89.30%, 77.54% 90.82%, 76.60% 90.99%, 76.31% 91.54%,
    73.06% 93.85%, 72.74% 96.22%, 72.59% 99.49%, 72.70% 100.00%,
    34.28% 100.00%, 32.65% 99.21%, 32.24% 94.19%, 31.90% 92.13%,
    31.74% 83.87%, 30.90% 77.67%, 30.32% 74.82%, 29.80% 69.84%,
    29.70% 64.66%, 29.96% 61.13%, 30.60% 58.84%, 31.33% 57.87%,
    34.14% 56.25%, 37.55% 53.86%, 38.51% 52.67%, 39.07% 51.63%,
    39.49% 50.05%, 39.53% 49.20%, 40.03% 46.90%, 41.28% 43.06%,
    41.47% 41.39%, 41.04% 39.19%, 39.79% 37.00%, 39.22% 37.23%,
    38.98% 37.69%, 38.79% 36.80%, 38.58% 36.63%, 38.13% 37.65%,
    37.86% 37.73%, 37.64% 37.50%, 37.39% 35.49%, 36.61% 34.95%,
    35.86% 33.75%, 35.21% 33.27%, 34.70% 31.38%, 34.43% 30.86%,
    34.31% 29.97%, 34.54% 29.21%, 34.47% 28.96%, 33.48% 26.03%,
    32.78% 24.68%, 32.20% 22.81%, 32.05% 21.57%, 32.05% 18.61%,
    32.73% 12.50%, 33.42% 10.14%, 34.39% 8.02%, 36.51% 5.04%,
    38.13% 3.70%, 39.92% 2.66%, 41.02% 1.66%, 41.38% 2.17%,
    52.88% 32.61%, 53.07% 32.72%, 53.17% 33.22%, 53.37% 33.90%,
    53.78% 34.72%, 53.67% 35.22%, 53.08% 35.67%, 52.75% 35.47%,
    52.71% 34.96%, 52.76% 33.66%, 52.88% 32.61%, 41.38% 2.17%
  );
  pointer-events: none;
}

.expert-course-rail {
  grid-auto-columns: min(82%, 365px);
}

.question-topic-card:is([data-topic="pocket-feeding"], [data-topic="pocket-newborn"]) .question-topic-art {
  inset: auto 0 0 auto;
  width: 49%;
  height: 79%;
  object-fit: contain;
  object-position: right bottom;
  clip-path: none;
}

.expert-course-card {
  --expert-action-color: #24634d;
  --expert-tint: color-mix(in srgb, var(--academy-mint-300) 34%, var(--fill));
  --expert-inset: clamp(12px, 4cqw, 18px);
  --expert-portrait-height: clamp(166px, 48cqw, 213px);
  --expert-portrait-shape: url(#expert-portrait-cloud);
  display: grid;
  grid-template-columns: 53% 47%;
  grid-template-rows: minmax(var(--expert-portrait-height), 1fr) auto;
  row-gap: 16px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: clamp(18px, 6cqw, 29px);
  background: var(--fill);
  box-shadow: 0 2px 5px rgb(36 15 27 / 4%);
  scroll-snap-align: start;
}

.expert-course-card[data-expert="gina"] {
  --expert-action-color: var(--academy-wine);
  --expert-tint: color-mix(in srgb, var(--academy-pump-300) 36%, var(--fill));
  --expert-portrait-shape: url(#expert-portrait-hourglass);
}

.expert-course-card[data-expert="cara"] {
  --expert-action-color: #552c95;
  --expert-tint: color-mix(in srgb, var(--academy-lavender-300) 32%, var(--fill));
  --expert-portrait-shape: url(#expert-portrait-hexagon);
}

.expert-course-card[data-expert="stacey"] {
  --expert-action-color: #7b551b;
  --expert-tint: color-mix(in srgb, var(--academy-butter-300) 23%, var(--fill));
  --expert-portrait-shape: url(#expert-portrait-heart);
}

.expert-course-card-copy {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
  padding: calc(var(--expert-inset) * 1.5) 0 var(--expert-inset) var(--expert-inset);
}

.expert-course-card h3 {
  margin: 0 0 4px;
  font-size: clamp(13px, 3.3cqw, 17px);
  font-weight: 600;
  line-height: 1.07;
  white-space: nowrap;
}

.expert-course-specialty {
  margin: 0;
  color: var(--academy-wine);
  font-size: clamp(10px, 3.15cqw, 14px);
  font-weight: 600;
  line-height: 1.25;
}

.expert-course-bio {
  margin: 9px 0 0;
  color: var(--secondary-ink);
  font-size: clamp(11px, 3.2cqw, 14px);
  line-height: 1.35;
}

.expert-course-portrait {
  position: relative;
  grid-area: 1 / 1 / 2 / -1;
  align-self: end;
  justify-self: end;
  width: 58%;
  height: var(--expert-portrait-height);
  margin-block-start: calc(var(--expert-inset) / 2);
  margin-inline-end: -14%;
  background: var(--expert-tint);
  clip-path: var(--expert-portrait-shape);
  pointer-events: none;
}

.expert-course-portrait img {
  position: absolute;
  inset: auto 14% -4% 2%;
  display: block;
  width: 84%;
  height: 90%;
  object-fit: contain;
  object-position: center bottom;
}

.expert-course-action {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 var(--expert-inset) var(--expert-inset);
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--expert-action-color);
  color: var(--fill);
  font: 600 clamp(12px, 3.6cqw, 16px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.expert-course-action:hover {
  background: color-mix(in srgb, var(--expert-action-color) 84%, var(--ink));
}

.expert-course-card .expert-course-action:focus-visible {
  outline-color: var(--expert-action-color);
}

.course-cover-theme {
  --featured-art: url("assets/academy/featured-course-fitness.png");
  --featured-ink: #552c95;
}

.featured-course-card {
  --featured-radius: calc(clamp(19px, 5.5cqw, 28px) + 4px);
  --featured-inset: clamp(12px, 3.6cqw, 18px);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  color: var(--ink);
  scroll-snap-align: start;
}

.course-cover-theme:is([data-cover="pelvic"], [data-cover="fitness"]) {
  --card-tint: var(--academy-pump-300);
  --featured-ink: var(--academy-wine);
}

.course-cover-theme[data-cover="newborn"] {
  --card-tint: var(--academy-mint-300);
  --featured-ink: #24634d;
  --featured-art: url("assets/academy/recommended-courses/featured-newborn.png");
}

.course-cover-theme[data-cover="feeding"] {
  --card-tint: var(--academy-butter-300);
  --featured-ink: #7b551b;
  --featured-art: url("assets/academy/recommended-courses/featured-feeding.png");
}

.featured-course-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 1;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  justify-items: start;
  gap: clamp(6px, 2cqw, 10px);
  padding: var(--featured-inset);
  border: 0;
  border-radius: var(--featured-radius) var(--featured-radius) 0 0;
  background: var(--card-surface);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.featured-course-hero::before {
  position: absolute;
  z-index: -1;
  inset: var(--featured-inset) calc(var(--featured-inset) / 2) 0 auto;
  width: 42%;
  background: var(--featured-art) right bottom / contain no-repeat;
  pointer-events: none;
  content: "";
}

:is(.featured-course-card, .academy-welcome-cover)[data-cover="yoga-ball"] {
  --featured-art: url("assets/academy/recommended-courses/featured-yoga-instructor.png");
}

:is(.featured-course-card, .academy-welcome-cover)[data-cover="pelvic"] {
  --featured-art: url("assets/academy/recommended-courses/pelvic-foundations-instructor.png");
}

:is(.featured-course-card, .academy-welcome-cover)[data-cover="core"] {
  --featured-art: url("assets/academy/recommended-courses/featured-core-mom-and-baby.png");
}

.featured-course-card[data-cover="core"] .featured-course-hero::before {
  inset-inline-end: 0;
  width: 48%;
}

.featured-course-copy {
  display: grid;
  gap: 4px;
  width: 63%;
}

.featured-course-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--card-tint);
  color: var(--featured-ink);
  font-size: clamp(10px, 2.4cqw, 12px);
  font-weight: 600;
  line-height: 1.2;
}

.featured-course-title {
  color: color-mix(in srgb, var(--ink) 70%, var(--featured-ink));
  font: 400 clamp(15px, 4cqw, 20px)/1.15 var(--editorial);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.featured-course-subtitle {
  color: color-mix(in srgb, var(--ink) 60%, var(--secondary-ink));
  font-size: clamp(10px, 2.45cqw, 13px);
  line-height: 1.3;
}

.featured-course-creator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  max-width: 59%;
  color: color-mix(in srgb, var(--ink) 68%, var(--featured-ink));
  font-size: clamp(10px, 2.35cqw, 12px);
  line-height: 1.2;
}

.featured-course-creator b {
  font-weight: 500;
}

.featured-course-creator-avatar {
  display: grid;
  width: clamp(15px, 4.3cqw, 22px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--academy-wine);
  color: var(--fill);
  font: 400 clamp(8px, 2.5cqw, 13px)/1 var(--editorial);
}

.featured-course-creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

@container (max-width: 330px) {
  :is(.featured-course-heading, .featured-stage-heading) .text-action {
    gap: 2px;
    font-size: 11px;
  }

  .more-courses-chevron {
    --icon-size: 12px;
  }

  .featured-course-hero {
    gap: 4px;
    padding: 7px 9px;
  }

  .featured-course-hero::before {
    width: 35%;
  }

  .featured-course-copy {
    gap: 3px;
    width: 69%;
  }

  .featured-course-tag {
    padding: 3px 7px;
    font-size: 9px;
  }

  .featured-course-title {
    font-size: 12.5px;
    line-height: 1.1;
  }

  .featured-course-subtitle,
  .featured-course-creator {
    font-size: 9px;
  }

  .featured-course-creator-avatar {
    width: 13px;
  }
}

.featured-course-card[data-cover="yoga-ball"] .featured-course-creator-avatar {
  position: relative;
}

.featured-course-card[data-cover="yoga-ball"] .featured-course-creator-avatar img {
  /* Show the central 80px square from the original 138 × 130 image. */
  position: absolute;
  inset: -25% auto auto -32.5%;
  width: 172.5%;
  height: auto;
}

.featured-course-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(12px, 3.6cqw, 18px);
  padding: 0 var(--featured-inset) var(--featured-inset);
  border-radius: 0 0 var(--featured-radius) var(--featured-radius);
  background: var(--card-surface);
}

.featured-course-stack .featured-course-panel {
  grid-template-rows: auto auto;
}

.featured-course-review {
  padding: clamp(10px, 2.8cqw, 14px);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-surface) 32%, var(--fill));
}

.featured-course-review-label {
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.35cqw, 12px);
  font-weight: 500;
}

.featured-course-review blockquote {
  margin: 3px 0 0;
  font-size: clamp(11px, 2.65cqw, 14px);
  line-height: 1.4;
}

.featured-course-previews {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #000;
}

.featured-course-previews > strong {
  font-size: clamp(11px, 2.65cqw, 14px);
  font-weight: 500;
}

.featured-course-preview-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.featured-preview {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: start;
  font-size: clamp(10px, 2.55cqw, 13px);
  line-height: 1.25;
  cursor: pointer;
}

.featured-preview img,
.entry-preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
}

.featured-preview-media {
  position: relative;
  display: block;
}

.featured-preview-play,
.featured-preview-badge {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: var(--featured-ink);
}

.featured-preview-play {
  inset: 50% auto auto 50%;
  width: clamp(26px, 6.8cqw, 34px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.featured-preview-play::after {
  width: 7px;
  height: 8px;
  margin-inline-start: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.featured-preview-badge {
  inset: 6px 6px auto auto;
  padding: 3px 6px;
  font-size: clamp(9px, 2.4cqw, 12px);
  font-weight: 600;
  color: inherit;
}

.phone-screen:has(> .course-library-page:not([hidden])) {
  --app-header-height: 0px;
  --tab-bar-height: 0px;
  background: var(--paper);
}

.phone-screen:has(> .course-library-page:not([hidden])) > :is(.app-header, .tab-bar) {
  display: none;
}

.course-library-page {
  --course-ink: #3e0010;
  padding: 10px 16px 20px;
  background: var(--paper);
  color: var(--course-ink);
  scrollbar-width: none;
}

.course-library-page .course-progress-list {
  margin: 0 0 clamp(15px, 4cqw, 21px);
}

.course-library-page .course-progress-list[hidden] {
  display: none;
}

.course-library-page .course-progress-card {
  background: var(--fill);
  backdrop-filter: none;
}

.course-library-back {
  margin-bottom: 12px;
}

.course-library-page h1 {
  margin: 0 0 4px;
  font: 500 16px/22px var(--academy-sans);
  outline: none;
}

.course-library-intro {
  margin: 0 0 16px;
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.6cqw, 13px);
}

.course-filters {
  display: flex;
  min-width: 0;
  gap: 5px;
  margin: 0 -4px 12px;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  user-select: none;
}

.course-library-page .course-filters .pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: var(--fill);
  color: var(--course-ink);
  backdrop-filter: none;
  box-shadow: none;
}

.course-library-page .course-filters .pill[aria-pressed="true"] {
  background: var(--academy-wine);
  color: var(--fill);
}

.question-view-all {
  width: 100%;
  margin-top: 18px;
}

.course-empty {
  margin: 0;
  padding: 15px 12px;
  border-radius: 14px;
  background: var(--fill);
  color: var(--secondary-ink);
  text-align: center;
}

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

.recommended-course-card {
  padding-block-end: 9px;
}

.recommended-course-cover {
  isolation: isolate;
  background: var(--card-surface);
  color: var(--featured-ink);
}

.recommended-course-cover::before {
  position: absolute;
  z-index: -1;
  inset: 18% 0 0 48%;
  background: var(--featured-art) right bottom / contain no-repeat;
  content: "";
}

.recommended-course-cover .course-progress-cover-label {
  background: var(--card-tint);
  color: inherit;
}

.recommended-course-footer {
  margin-top: 3px;
  color: var(--secondary-ink);
  font-size: clamp(9px, 2.2cqw, 11px);
}

@container (max-width: 330px) {
  .course-library-page .course-summary-card {
    --course-detail-inset: 12px;
    grid-template-columns: minmax(58px, 37%) minmax(0, 1fr);
  }

  .recommended-course-copy .card-secondary {
    font-size: 11px;
  }
}

:is(#expert-consultation, #academy-support) .module-title {
  margin-bottom: 5px;
}

#expert-consultation[data-team-layout] {
  padding: clamp(21px, 5.6cqw, 29px) 0 clamp(18px, 4.8cqw, 25px);
  overflow: clip;
  border-radius: clamp(21px, 5.6cqw, 29px);
  background: color-mix(in srgb, var(--academy-pill) 66%, var(--paper));
  text-align: center;
}

#expert-consultation[data-team-layout] > :is(.consultation-intro, .expert-service-list) {
  display: none;
}

#expert-consultation[data-team-layout] > .module-title {
  margin: 0 var(--academy-gutter) 8px;
  font: 400 clamp(24px, 6.55cqw, 34px)/1.06 var(--editorial);
  text-wrap: balance;
}

.expert-consultation-team p {
  max-width: 32ch;
  margin: 0 auto;
  padding-inline: 8px;
  color: var(--secondary-ink);
  font-size: clamp(12px, 3.15cqw, 16px);
  line-height: 1.4;
  text-wrap: balance;
}

.expert-consultation-team img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: clamp(12px, 3.5cqw, 18px) auto 9px;
  mask-image: linear-gradient(#000 90%, transparent);
}

.consultation-action.expert-consultation-team-action {
  width: min(60%, 194px);
  margin-inline: auto;
  background: var(--academy-wine);
  color: var(--fill);
  font-size: clamp(13px, 3cqw, 16px);
}

.consultation-intro,
.consultation-note {
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.7cqw, 14px);
  line-height: 1.4;
}

.expert-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.35cqw, 12px);
  margin-block-start: 14px;
}

.expert-service-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: clamp(9px, 2.6cqw, 13px);
  border: 1px solid var(--edge);
  border-radius: clamp(14px, 4.1cqw, 21px);
  background: var(--fill);
}

.expert-service-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expert-service-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px, 3.25cqw, 17px);
  font-weight: 600;
  line-height: 1.25;
}

.expert-service-icon {
  --icon-size: 19px;
  display: grid;
  flex: none;
  width: clamp(28px, 7.1cqw, 36px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--academy-pump-300) 38%, var(--fill));
  color: var(--academy-wine);
}

.expert-service-card[data-expert-service="parenting"] .expert-service-icon {
  background: color-mix(in srgb, var(--academy-mint-300) 43%, var(--fill));
}

.expert-service-card p {
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.7cqw, 14px);
  line-height: 1.4;
}

.expert-service-card .consultation-action {
  background: var(--academy-wine);
  color: var(--fill);
  white-space: normal;
}

.expert-service-card[data-expert-service="counseling"] .consultation-action {
  white-space: nowrap;
}

.consultation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-block: 14px;
}

.consultation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, 2.35cqw, 12px);
}

.consultation-list .consultation-note {
  grid-column: 1 / -1;
}

.stage-knowledge-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
  padding: clamp(8px, 2.6cqw, 13px);
  border: 1px solid var(--edge);
  border-radius: clamp(12px, 3.6cqw, 18px);
  background: var(--fill);
  color: var(--ink);
  font: inherit;
  font-size: clamp(11px, 2.9cqw, 15px);
  text-align: start;
  cursor: pointer;
}

.stage-knowledge-card .academy-icon {
  --icon-size: 17px;
  grid-row: span 2;
  color: var(--academy-wine);
}

.stage-knowledge-card .card-secondary {
  color: var(--secondary-ink);
  font-size: clamp(9px, 2.4cqw, 12px);
}

.self-care-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(14px, 4.1cqw, 21px);
  background: var(--fill);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.self-care-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--academy-pill);
}

.self-care-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.self-care-play:not([hidden]) {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  display: grid;
  width: clamp(29px, 8cqw, 41px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #ffffffed;
  color: #552c95;
}

.self-care-play::before {
  border-block: 5px solid transparent;
  border-inline-start: 8px solid currentColor;
  transform: translateX(1px);
  content: "";
}

.self-care-copy {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: clamp(8px, 2.6cqw, 13px);
}

.self-care-copy strong {
  font-size: clamp(12px, 3.1cqw, 16px);
  line-height: 1.3;
}

.consultation-option {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(8px, 2.1cqw, 11px);
  min-width: 0;
  padding: clamp(9px, 3.1cqw, 16px);
  border-radius: clamp(14px, 4.1cqw, 21px);
  background: var(--fill);
}

.consultation-option p {
  margin: 0;
}

.consultation-option h3 {
  margin: 0 0 4px;
  color: var(--academy-wine-dark);
  font-size: clamp(12px, 3.1cqw, 16px);
  line-height: 1.25;
}

.consultation-badge {
  display: grid;
  width: clamp(24px, 6.6cqw, 34px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 35%;
  background: color-mix(in srgb, var(--consultation-tint, var(--academy-pump-300)) 43%, var(--fill));
  color: var(--ink);
  font: 400 clamp(12px, 3.05cqw, 16px)/1 var(--editorial);
}

.consultation-option[data-tone="mint"] { --consultation-tint: var(--academy-mint-300); }
.consultation-option[data-tone="butter"] { --consultation-tint: var(--academy-butter-300); }
.consultation-option[data-tone="lavender"] { --consultation-tint: var(--academy-lavender-300); }

.consultation-action {
  display: grid;
  width: 100%;
  min-height: var(--button-height);
  place-items: center;
  padding-inline: clamp(6px, 1.9cqw, 10px);
  border: 0;
  border-radius: 999px;
  background: var(--academy-pill);
  color: var(--academy-wine);
  font: 600 clamp(10px, 2.5cqw, 13px)/1.2 var(--academy-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.academy-content button:focus-visible,
.course-library-page button:focus-visible,
.consultation-action:focus-visible,
.academy-dialog :is(button, a, textarea):focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.academy-dialog {
  position: fixed;
  inset: var(--dialog-top) auto auto var(--dialog-left);
  width: var(--dialog-width);
  height: var(--dialog-height);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: clip;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 14px/1.5 var(--academy-sans);
}

.academy-dialog-viewport {
  position: absolute;
  inset: var(--screen-block-inset) calc(var(--screen-side-inset) * 1%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
  border-radius: var(--screen-radius);
  pointer-events: none;
}

.academy-dialog-panel {
  position: relative;
  min-height: 0;
  max-height: calc(100% - 54px);
  padding: 14px clamp(14px, 4cqw, 20px) 26px;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  overscroll-behavior: contain;
  pointer-events: auto;
}

.academy-dialog::backdrop {
  background: transparent;
}

.phone:has(.academy-dialog[open]) > .iphone-bezel {
  visibility: visible;
}

.phone-screen:has(> .academy-dialog[open])::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #240f1b42;
  content: "";
}

.phone-screen:has(> .knowledge-picker[open])::after {
  background: #35202e4d;
  backdrop-filter: blur(9px);
}

.phone-screen:has(> .knowledge-picker[open]) > .status-bar {
  z-index: 6;
  background: transparent;
}

.academy-dialog [hidden] {
  display: none;
}

.academy-dialog h2 {
  font-family: var(--editorial);
  font-weight: 400;
}

.academy-dialog h2:focus {
  outline: none;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dialog-close {
  --icon-size: 20px;
  display: grid;
  flex: none;
  width: var(--button-height);
  place-items: center;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--ink);
  background: var(--fill);
  cursor: pointer;
}

:is(.stage-picker, .journal-picker, .stage-quiz-picker)[open] .academy-dialog-panel {
  animation: bottom-sheet-enter .26s cubic-bezier(.2, .75, .25, 1);
}

.support-picker-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(.journal-picker, .stage-quiz-picker) h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font: 650 clamp(18px, 5.3cqw, 26px)/1.25 var(--academy-sans);
}

.journal-picker h2 .academy-icon {
  --icon-size: .85em;
  flex: none;
}

.journal-description {
  margin: 12px 0 16px;
  color: var(--secondary-ink);
}

.journal-form textarea {
  display: block;
  width: 100%;
  min-height: clamp(105px, 31cqw, 145px);
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.journal-form textarea::placeholder {
  color: var(--secondary-ink);
}

.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.journal-actions button {
  min-height: var(--button-height);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.journal-actions .journal-save {
  background: var(--academy-wine);
  color: var(--fill);
}

.journal-actions .journal-delete {
  border-color: color-mix(in srgb, var(--academy-wine) 34%, var(--fill));
  background: var(--fill);
  color: var(--academy-wine);
}

.journal-status {
  margin: 8px 0 0;
  color: var(--academy-wine);
  font-size: 12px;
}

.journal-status:empty {
  margin: 0;
}

.stage-quiz-period {
  margin: 6px 0 18px;
  color: var(--secondary-ink);
  font-size: 12px;
}

.stage-quiz-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.stage-quiz-question + .stage-quiz-question {
  margin-top: 20px;
}

.stage-quiz-question legend {
  max-width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 650;
}

.stage-quiz-options {
  display: grid;
  gap: 7px;
}

.stage-quiz-options button {
  min-height: var(--button-height);
  padding: 8px 11px;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: var(--fill);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.stage-quiz-options [aria-pressed="true"] {
  border-color: var(--academy-wine);
  background: var(--academy-pill);
}

.stage-quiz-options [data-correct] {
  border-color: #2d725e;
  background: color-mix(in srgb, var(--academy-mint-300) 52%, var(--fill));
  color: #1a5140;
}

.stage-quiz-feedback {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--secondary-ink);
  font-size: 12px;
}

.stage-quiz-feedback strong {
  color: var(--ink);
}

.stage-quiz-feedback p {
  margin: 5px 0;
}

.knowledge-picker-sheet {
  --knowledge-inset: clamp(15px, 5.4cqw, 27px);
  --knowledge-peek: clamp(10px, 3cqw, 15px);
  display: grid;
  flex: none;
  grid-template-rows: var(--knowledge-peek) minmax(0, 1fr);
  height: calc(100% - var(--status-height) - 5px);
  max-height: none;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.knowledge-picker-front {
  grid-area: 2 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  touch-action: pan-y pinch-zoom;
}

.knowledge-picker-front > :not(.knowledge-picker-pages) {
  position: relative;
  z-index: 1;
}

.knowledge-picker[open] .knowledge-picker-sheet {
  animation: knowledge-deck-enter .34s cubic-bezier(.2, .75, .25, 1);
}

@keyframes knowledge-deck-enter {
  from { opacity: 0; transform: translateY(28px); }
}

.knowledge-picker-footer {
  grid-area: 4 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px var(--knowledge-inset) clamp(10px, 3.7cqw, 18px);
}

.knowledge-picker-next {
  padding-inline: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--academy-wine);
  font: 600 clamp(12px, 3.2cqw, 16px)/1 var(--academy-sans);
  cursor: pointer;
}

.knowledge-picker-progress {
  display: flex;
  flex: 0 1 62%;
  max-width: 230px;
  gap: 4px;
}

.knowledge-picker-progress button {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  padding: 0;
  min-height: var(--button-height);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.knowledge-picker-progress button::before {
  height: 3px;
  border-radius: 99px;
  background: #e6d9dd;
  content: "";
}

.knowledge-picker-progress .is-read::before {
  background: #b87a8b;
}

.knowledge-picker-progress [aria-current="step"]::before {
  background: var(--academy-wine);
}

.knowledge-picker-header {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  padding: 7px var(--knowledge-inset) 0;
  pointer-events: none;
}

.knowledge-picker-stage {
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 7px var(--knowledge-inset) 0;
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.7cqw, 14px);
}

.knowledge-picker-header .dialog-close {
  display: grid;
  width: 40px;
  min-height: 40px;
  margin-inline: -6px 0;
  place-items: center;
  border: 0;
  background: #fff9;
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.knowledge-picker-pages {
  --deck-forward: 0;
  --deck-back: 0;
  --deck-back-surface: color-mix(in srgb, var(--paper) 92%, var(--ink));
  grid-area: 1 / 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  isolation: isolate;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}

.knowledge-picker-front:has(.knowledge-picker-pages.is-dragging) {
  cursor: grabbing;
  user-select: none;
}

.knowledge-picker-slide {
  grid-area: 1 / 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  min-width: 0;
  overflow: clip;
  border-radius: clamp(13px, 4cqw, 20px) clamp(13px, 4cqw, 20px) 0 0;
  background-color: var(--paper);
  box-shadow: var(--glass-highlight), 0 -3px 18px #240f1b12;
  transform-origin: center top;
  transition: transform .36s cubic-bezier(.2, .75, .25, 1), background-color .25s ease, opacity .25s ease;
}

.knowledge-picker-slide[data-position="active"] {
  z-index: 3;
  background-color: color-mix(in srgb, var(--deck-back-surface) calc(100% * var(--deck-back)), var(--paper));
  transform: translate(calc(-104% * var(--deck-forward)), calc(-1 * var(--knowledge-peek) * var(--deck-back)))
    scale(calc(1 - .14 * var(--deck-back)));
}

.knowledge-picker-slide:not([data-position="active"]) {
  pointer-events: none;
}

.knowledge-picker-slide[data-position="previous"] {
  z-index: 4;
  transform: translateX(calc(-104% * (1 - var(--deck-back))));
}

.knowledge-picker-slide[data-position="next"] {
  z-index: 2;
  opacity: calc(1 - var(--deck-back));
  background-color: color-mix(in srgb, var(--paper) calc(100% * var(--deck-forward)), var(--deck-back-surface));
  transform: translateY(calc(-1 * var(--knowledge-peek) * (1 - var(--deck-forward))))
    scale(calc(.86 + .14 * var(--deck-forward)));
}

.knowledge-picker-slide[data-position="queued"] {
  z-index: 1;
  opacity: var(--deck-forward);
  background-color: var(--deck-back-surface);
  transform: translateY(calc(-1 * var(--knowledge-peek))) scale(.86);
}

.knowledge-picker-slide[data-position="offstage"] {
  visibility: hidden;
}

.knowledge-picker-pages:is(.is-dragging, .is-jumping) :is(.knowledge-picker-slide, .knowledge-picker-slide > *) {
  transition: none;
}

.knowledge-picker-page {
  grid-row: 2;
  min-height: 0;
  padding: clamp(12px, 3.2cqw, 16px) var(--knowledge-inset) 16px;
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  touch-action: pan-y pinch-zoom;
}

.knowledge-picker-slide > * {
  transition: opacity .25s ease;
}

.knowledge-picker-slide[data-position="next"] > * {
  opacity: var(--deck-forward);
}

.knowledge-picker-slide[data-position="active"] > * {
  opacity: calc(1 - var(--deck-back));
}

.knowledge-picker-slide[data-position="queued"] > * {
  opacity: 0;
}

.knowledge-picker-duration {
  display: inline-block;
  margin-block-end: clamp(7px, 2.3cqw, 12px);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--academy-pill);
  color: var(--academy-wine);
  font-size: clamp(10px, 2.4cqw, 13px);
  font-weight: 600;
}

.knowledge-picker-page h2 {
  margin: 0 0 clamp(11px, 3.5cqw, 18px);
  font-size: clamp(23px, 6.3cqw, 33px);
  line-height: 1.12;
  text-wrap: balance;
}

.knowledge-picker-lead {
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(13px, 3.2cqw, 16px);
}

.development-overview > p {
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(13px, 3.2cqw, 16px);
}

.development-overview:not([hidden]) ~ :is(.development-quiz, .development-report) {
  margin-block-start: clamp(22px, 6.4cqw, 32px);
  padding-block-start: clamp(16px, 4.6cqw, 24px);
  border-block-start: 1px solid var(--edge);
}

.development-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 8px;
  color: var(--academy-wine);
  font-size: clamp(11px, 2.8cqw, 14px);
  font-weight: 600;
}

.development-progress {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--academy-pill);
  font-variant-numeric: tabular-nums;
}

.development-quiz > h3,
.development-report > h3 {
  margin: 0 0 clamp(10px, 3.4cqw, 17px);
  color: var(--ink);
  font-size: clamp(17px, 4.4cqw, 22px);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: pretty;
}

.development-quiz > h3 {
  font-size: clamp(15px, 3.8cqw, 19px);
}

:is(.development-quiz, .development-report) h3:focus {
  outline: none;
}

.development-question-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(170px, 49cqw, 250px);
  border-radius: clamp(9px, 2.8cqw, 14px);
  object-fit: contain;
}

.development-question-image[src$="/overview.png"] {
  width: min(100%, 230px);
  margin-inline: auto;
}

.development-question-image[src$="/overview.png"],
.development-celebration {
  mix-blend-mode: multiply;
}

.development-question-tip {
  margin: 9px 0 0;
  color: var(--secondary-ink);
  font-size: clamp(12px, 2.8cqw, 14px);
}

.development-answers {
  display: grid;
  gap: 7px;
  margin-block-start: clamp(12px, 3.7cqw, 18px);
}

.development-answers > button,
.development-review {
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: clamp(10px, 3.2cqw, 16px);
  background: var(--fill);
  color: var(--academy-wine);
  font: 600 clamp(13px, 3.2cqw, 16px)/1.25 var(--academy-sans);
  cursor: pointer;
}

.development-answers > button[aria-pressed="true"] {
  border-color: var(--academy-wine);
  background: var(--academy-pill);
}

.development-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 4px;
  padding-inline: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--academy-wine);
  font: 600 clamp(12px, 3cqw, 15px)/1.25 var(--academy-sans);
  cursor: pointer;
}

.development-report > :is(h3, p) {
  text-align: center;
}

.development-celebration {
  display: block;
  width: min(52%, 174px);
  height: auto;
  max-height: 126px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.development-report > p {
  margin: 0;
  color: var(--secondary-ink);
}

.development-radar {
  min-width: 0;
  margin: clamp(18px, 5.4cqw, 28px) 0 0;
}

.development-radar figcaption,
.development-stage-notes h3 {
  margin: 0;
  color: var(--academy-wine);
  font-size: clamp(14px, 3.5cqw, 17px);
  font-weight: 600;
}

.development-radar-chart {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 6px auto 0;
  overflow: hidden;
}

.development-radar-chart text {
  fill: var(--ink);
  font: 600 11px var(--academy-sans);
}

.development-radar-grid,
.development-radar-axis {
  fill: none;
  stroke: #d9bcc4;
  stroke-width: 1px;
}

.development-radar-axis {
  stroke-dasharray: 3 3;
}

.development-radar-shape {
  fill: color-mix(in srgb, var(--academy-mom-500) 45%, transparent);
  stroke: var(--academy-wine);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.development-radar-point {
  fill: var(--paper);
  stroke: var(--academy-wine);
  stroke-width: 1.5px;
}

.development-domain-results {
  display: grid;
  gap: 0;
  margin: 0;
}

.development-domain-results > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 0;
  border-block-end: 1px solid var(--edge);
}

.development-domain-results dt {
  font-weight: 600;
}

.development-domain-results dd {
  margin: 0;
  color: var(--secondary-ink);
  font-variant-numeric: tabular-nums;
}

.development-stage-notes {
  margin-block-start: clamp(17px, 5cqw, 25px);
}

.development-stage-notes p {
  margin: 6px 0 0;
  color: var(--secondary-ink);
}

.development-review {
  width: 100%;
  margin-block-start: clamp(14px, 4.3cqw, 22px);
}

.knowledge-picker-illustration {
  --weekly-card-color: var(--academy-pump-300);
  --weekly-art-hue: -9deg;
  display: grid;
  height: clamp(116px, 47cqw, 240px);
  margin-block: clamp(16px, 5cqw, 26px);
  place-items: center;
  overflow: hidden;
  border-radius: clamp(12px, 3.5cqw, 18px);
  background: color-mix(in srgb, var(--weekly-card-color) 55%, var(--paper));
  isolation: isolate;
  pointer-events: none;
}

.knowledge-picker-illustration img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: hue-rotate(var(--weekly-art-hue)) brightness(1.1);
  mix-blend-mode: multiply;
}

.knowledge-picker-detail-image img {
  object-fit: cover;
  object-position: center 20%;
  filter: none;
  mix-blend-mode: normal;
}

.knowledge-nail-guide {
  margin-block: clamp(14px, 4.5cqw, 23px);
}

.nail-care-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1.5cqw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nail-care-steps li {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: clamp(8px, 2.5cqw, 13px);
  background: var(--fill);
  font-size: clamp(10px, 2.65cqw, 13px);
  line-height: 1.2;
  text-align: center;
}

.nail-care-steps li > [data-i18n] {
  align-self: center;
  padding: 6px 4px;
}

.nail-step-art {
  aspect-ratio: 1;
  /* The source sheet has six equal square tiles, in reading order. */
  background: #fbedc8 url("assets/academy/weekly/baby-nail-care-steps.jpg")
    var(--tile-x, 0%) var(--tile-y, 0%) / 300% 200% no-repeat;
}

.nail-care-steps li:nth-child(3n + 2) { --tile-x: 50%; }
.nail-care-steps li:nth-child(3n) { --tile-x: 100%; }
.nail-care-steps li:nth-child(n + 4) { --tile-y: 100%; }

.nail-tool-callout {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3cqw, 16px);
  margin: 8px 0 0;
  padding: 8px clamp(8px, 2.7cqw, 14px);
  border-radius: clamp(10px, 3cqw, 15px);
  background: var(--academy-pill);
}

.nail-tool-callout img {
  width: 46%;
  height: auto;
  max-width: 112px;
}

.nail-tool-callout figcaption {
  --icon-size: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--academy-wine);
  font-size: clamp(11px, 3cqw, 15px);
  font-weight: 600;
  line-height: 1.2;
}

.knowledge-recipes {
  display: grid;
  gap: clamp(8px, 2.4cqw, 12px);
}

.knowledge-recipe {
  display: grid;
  grid-template-columns: clamp(54px, 16cqw, 82px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(9px, 3cqw, 15px);
  padding: clamp(7px, 2.35cqw, 12px);
  border-radius: clamp(12px, 3.6cqw, 18px);
  background: var(--fill);
}

.knowledge-recipe > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: clamp(8px, 2.6cqw, 13px);
  object-fit: cover;
}

.knowledge-recipe span,
.knowledge-recipe strong {
  display: block;
}

.knowledge-recipe span {
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.65cqw, 13px);
}

.knowledge-recipe strong {
  margin-block-start: 2px;
  font-size: clamp(14px, 3.5cqw, 17px);
  line-height: 1.25;
}

.knowledge-recipe-details {
  border-radius: clamp(12px, 3.6cqw, 18px);
  background: var(--fill);
}

.knowledge-recipe-details summary {
  grid-template-columns: clamp(54px, 16cqw, 82px) minmax(0, 1fr) auto;
  cursor: pointer;
}

.knowledge-recipe-details summary::-webkit-details-marker {
  display: none;
}

.knowledge-recipe-details[open] svg {
  rotate: 180deg;
}

.knowledge-recipe-details .entry-knowledge {
  padding: 0 clamp(12px, 3.5cqw, 18px) 14px;
}

.knowledge-recipe-details > .knowledge-picker-lead {
  margin: 0 clamp(12px, 3.5cqw, 18px) 8px;
}

.knowledge-food-guide {
  margin-block: 16px;
  padding-block-end: 12px;
  border-bottom: 1px solid var(--edge);
  font-size: clamp(12px, 3cqw, 15px);
}

.knowledge-food-guide h3 {
  margin: 0 0 7px;
  color: var(--academy-wine);
  font-size: clamp(15px, 3.65cqw, 19px);
  line-height: 1.25;
}

.knowledge-food-guide dl,
.knowledge-food-guide dd {
  margin: 0;
}

.knowledge-food-guide dl {
  display: grid;
  gap: 7px;
}

.knowledge-food-guide dl > div {
  display: grid;
  grid-template-columns: minmax(64px, .44fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.knowledge-food-guide dt {
  color: #552c95;
  font-weight: 600;
}

.knowledge-sleep-chart {
  --sleep-asleep: #866bcf;
  --sleep-awake: #e9e1fa;
  margin: 0 0 16px;
  padding: clamp(12px, 4cqw, 20px);
  border-radius: 16px;
  background: var(--fill);
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.8cqw, 14px);
}

.knowledge-sleep-chart strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: clamp(19px, 5.4cqw, 28px);
  font-weight: 600;
}

.sleep-chart-track {
  display: flex;
  height: clamp(12px, 4cqw, 20px);
  margin-top: 14px;
  overflow: hidden;
  border-radius: 5px;
}

.sleep-chart-track span {
  flex: var(--hours) 0 0;
  background: var(--sleep-awake);
}

.sleep-chart-track span:nth-child(odd) {
  background: var(--sleep-asleep);
}

.sleep-chart-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4px;
}

.sleep-chart-axis span:nth-child(2) { text-align: center; }
.sleep-chart-axis span:last-child { text-align: end; }

.sleep-chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 9px;
  color: var(--ink);
}

.sleep-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sleep-chart-legend span::before {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--sleep-asleep);
  content: "";
}

.sleep-chart-legend span:last-child::before {
  background: var(--sleep-awake);
}

.knowledge-sleep-chart p {
  margin: 6px 0 0;
}

.knowledge-course-coach {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(13px, 5cqw, 25px);
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.8cqw, 14px);
}

.knowledge-course-coach img {
  width: clamp(42px, 13cqw, 65px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
}

.knowledge-course-coach strong {
  display: block;
  color: var(--ink);
  font-size: clamp(15px, 4cqw, 21px);
  font-weight: 600;
}

.knowledge-course-coach div span:first-child {
  color: var(--academy-wine);
}

.knowledge-course-training {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: clamp(13px, 4.5cqw, 22px) 0;
  border-radius: clamp(12px, 3.5cqw, 18px);
  object-fit: cover;
}

.knowledge-course-link,
.featured-course-trial,
.question-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--academy-wine);
  color: var(--fill);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.featured-course-trial {
  background: var(--featured-ink);
}

.academy-content .featured-course-card button:focus-visible {
  outline-color: var(--featured-ink);
}

.question-view-all > span:first-child {
  text-wrap: balance;
}

.lochia-camera-footer {
  grid-area: 3 / 1;
  padding: 5px var(--knowledge-inset) 3px;
}

.lochia-camera-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 4px 16px rgb(0 0 0 / 16%);
  color: rgb(255 255 255 / 80%);
  font: inherit;
  font-size: clamp(11px, 2.8cqw, 14px);
  text-align: start;
  cursor: pointer;
}

.lochia-camera-button strong {
  display: block;
  color: var(--fill);
  font-size: clamp(13px, 3.5cqw, 17px);
  font-weight: 600;
}

.check-in-photo {
  z-index: 1;
  padding: 8px var(--academy-gutter) 10px;
}

.lochia-camera-icon-wrap {
  --icon-size: 23px;
  display: grid;
  flex: none;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 20%);
}

.lochia-camera-status {
  color: var(--academy-wine);
}

.lochia-camera-status {
  margin: 5px 0 0;
  font-size: 12px;
}

.lochia-photo-preview {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 10px;
}

.lochia-photo-preview img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  object-fit: contain;
}

.knowledge-follow-up,
.knowledge-checkup-link {
  margin: 14px 0;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--academy-pill);
}

.knowledge-follow-up h3 {
  margin: 0;
  color: var(--academy-wine);
  font-size: inherit;
  font-weight: 600;
}

.knowledge-follow-up p {
  margin: 8px 0 0;
}

.knowledge-vision-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--fill);
  color: var(--secondary-ink);
  font-size: clamp(10px, 2.7cqw, 13px);
  text-align: center;
}

.knowledge-vision-comparison figcaption {
  grid-column: 1 / -1;
  color: var(--ink);
  font-weight: 600;
}

.vision-picture {
  display: block;
  width: 100%;
  aspect-ratio: 440 / 393;
  margin-bottom: 4px;
  object-fit: contain;
  transform: scale(1.15);
}

.vision-picture-blurred {
  filter: saturate(.28) blur(clamp(2px, .9cqw, 5px));
}

.knowledge-lochia-guide {
  margin: 16px 0;
  padding: clamp(10px, 3cqw, 16px);
  border-radius: 14px;
  background: var(--fill);
  font-size: clamp(11px, 2.7cqw, 13px);
  line-height: 1.35;
}

.knowledge-lochia-guide figcaption {
  font-weight: 600;
  text-align: center;
}

.lochia-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 3px 5px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.lochia-stages li {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

.lochia-swatches {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: clamp(50px, 14cqw, 71px);
}

.lochia-swatch {
  width: clamp(14px, 5.2cqw, 26px);
  height: clamp(31px, 9.7cqw, 49px);
  border: 1px solid var(--academy-line);
  border-radius: 999px;
}

.lochia-swatch[data-shade="bright-red"] { background: #bf3d48; }
.lochia-swatch[data-shade="dark-red"] { background: #8d2838; }
.lochia-swatch[data-shade="pink"] { background: #ca898d; }
.lochia-swatch[data-shade="light-brown"] { background: #b48b76; }
.lochia-swatch[data-shade="cream"] { background: #fff0d5; }

.lochia-later-stage .lochia-swatch {
  height: clamp(40px, 12cqw, 60px);
  outline: 1.5px solid var(--academy-wine);
  outline-offset: 2px;
}

.lochia-timing,
.lochia-week-note {
  color: var(--secondary-ink);
}

.lochia-week-note {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--academy-pill);
}

.lochia-week-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--academy-wine);
}

.lochia-pad-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.lochia-pad-stage {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  text-align: center;
}

.lochia-pad-stages img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.lochia-pad-stage img {
  width: clamp(48px, 16cqw, 76px);
  margin-bottom: 3px;
}

.lochia-pad-focus {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: clamp(62px, 24cqw, 106px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 3cqw, 14px);
  padding: clamp(8px, 3cqw, 14px);
  border-radius: 12px;
  background: var(--academy-pill);
}

.lochia-pad-week {
  display: block;
  margin-bottom: 3px;
  color: var(--academy-wine);
  font-weight: 600;
}

.lochia-pad-focus strong {
  font-size: clamp(13px, 3.6cqw, 17px);
}

.lochia-pad-focus p {
  margin: 4px 0 0;
  color: var(--secondary-ink);
}

.knowledge-checkup-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--academy-wine);
  text-decoration: none;
}

.knowledge-checkup-link .card-secondary {
  display: block;
  margin-top: 2px;
}

@keyframes bottom-sheet-enter {
  from { transform: translateY(100%); }
}

.stage-picker form {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 2.3cqw, 12px);
  max-height: calc(100% - var(--status-height));
  padding: clamp(10px, 3.6cqw, 18px) clamp(14px, 4cqw, 22px) clamp(12px, 4.2cqw, 22px);
  overflow: hidden;
}

.stage-picker-header,
.stage-picker-actions {
  flex: none;
}

.stage-picker-header,
.stage-picker-week-heading,
.stage-picker-arrows {
  display: flex;
  align-items: center;
}

.stage-picker-header h2 {
  margin: 0;
  font: 600 clamp(19px, 5.2cqw, 26px)/1.2 var(--academy-sans);
}

.stage-picker-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: clamp(8px, 2.4cqw, 12px);
  margin: -3px;
  padding: 3px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.stage-picker-content > p {
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(11px, 2.65cqw, 13px);
  line-height: 1.45;
}

.stage-picker-phases {
  display: grid;
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1.8cqw, 9px);
}

.stage-picker-phase {
  position: relative;
  display: flex;
  min-height: clamp(60px, 15.6cqw, 80px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 8px clamp(9px, 3.05cqw, 16px);
  border: 1px solid var(--academy-line);
  border-radius: clamp(12px, 3.5cqw, 18px);
  background: color-mix(in srgb, var(--ink) 5%, var(--fill));
  font: 600 clamp(13px, 3.25cqw, 17px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.stage-picker-phase:has(input:checked) {
  border-color: var(--academy-wine);
  background: var(--academy-pill);
}

.stage-picker-current-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--academy-mint-300) 40%, var(--fill));
  color: #1a5140;
  font-size: clamp(9px, 2.15cqw, 11px);
}

.stage-picker-done {
  padding: 4px 8px;
  border: 0;
  border-radius: 99px;
  color: var(--fill);
  background: var(--academy-wine);
  font: 600 clamp(11px, 2.65cqw, 13px)/1.2 var(--academy-sans);
  cursor: pointer;
}

.stage-picker-week-controls {
  display: grid;
  flex: none;
  gap: clamp(5px, 1.7cqw, 9px);
  padding-block-start: 4px;
  border-block-start: 1px solid var(--edge);
}

.stage-picker-week-controls[inert] {
  visibility: hidden;
}

.stage-picker-week-heading {
  justify-content: space-between;
  color: var(--secondary-ink);
  font-size: 12px;
  font-weight: 600;
}

.stage-picker-arrows {
  gap: 6px;
}

.stage-picker-arrows button {
  --icon-size: 20px;
  display: grid;
  width: var(--button-height);
  place-items: center;
  padding: 0;
  border: 1px solid var(--academy-line);
  border-radius: 50%;
  background: var(--fill);
  color: var(--academy-wine);
  cursor: pointer;
}

.stage-picker-arrows button:disabled {
  opacity: .35;
  cursor: default;
}

.stage-picker-weeks {
  --visible-weeks: 5;
  --week-gap: 5px;
  --week-inset: 4px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--visible-weeks) - 1) * var(--week-gap)) / var(--visible-weeks));
  gap: var(--week-gap);
  padding: var(--week-inset);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--week-inset);
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.stage-picker-week {
  position: relative;
  display: grid;
  min-height: clamp(57px, 13cqw, 67px);
  place-content: center;
  gap: 1px;
  border: 1px solid var(--edge);
  border-radius: 99px;
  background: var(--stage);
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  scroll-snap-align: start;
  cursor: pointer;
}

:is(.stage-picker-phase, .stage-picker-week) input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  clip-path: inset(50%);
}

.stage-picker-week span {
  font-size: 10px;
}

.stage-picker-week strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.stage-picker-week:has(input:checked) {
  border-color: var(--academy-wine);
  background: var(--academy-wine);
  color: var(--fill);
}

:is(.stage-picker-phase, .stage-picker-week):has(input:focus-visible) {
  outline: 2px solid var(--academy-wine);
  outline-offset: 1px;
}

.stage-picker-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stage-picker-actions button {
  white-space: nowrap;
}

@container (min-width: 430px) {
  .stage-picker-weeks {
    --visible-weeks: 7;
  }
}

@container (max-width: 320px) {
  .stage-picker form {
    gap: 5px;
    padding-block-end: 10px;
  }

  .stage-picker-weeks {
    --visible-weeks: 4;
  }
}

.entry-detail p {
  margin: 8px 0 0;
}

.entry-course-list:not([hidden]) {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.entry-course-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--fill);
  color: var(--ink);
  font: 600 14px/1.3 var(--academy-sans);
  text-align: start;
  cursor: pointer;
}

.entry-course-list button .academy-icon {
  color: var(--academy-wine);
}

.entry-reference {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--academy-wine);
  font-size: 13px;
  text-underline-offset: 2px;
}

.entry-purchase {
  display: flex;
  justify-content: center;
  min-height: var(--button-height);
  margin-top: 16px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--academy-wine);
  color: var(--fill);
  font-weight: 600;
  text-decoration: none;
}

.entry-meta,
.entry-subtitle {
  color: var(--secondary-ink);
  font-size: 12px;
}

.support-practice:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--academy-lavender-300) 38%, var(--fill));
  color: #552c95;
}

.support-practice-time {
  padding-inline-start: 8px;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.support-practice-control {
  padding-inline: 14px;
  color: inherit;
}

.entry-knowledge section + section {
  margin-top: 14px;
}

.entry-knowledge h3 {
  margin: 0;
  color: var(--academy-wine);
  font-size: 14px;
  font-weight: 600;
}

.entry-knowledge p {
  margin: 4px 0 0;
}

@container (max-width: 380px) {
  .question-preview:not(.question-featured-topic) {
    --check-in-columns: 2;
  }
}

.tab-bar {
  position: relative;
  z-index: 2;
  grid-area: 4 / 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-inline: min(2.74cqw, 14px);
  padding: 3px;
  border: 1px solid #240f1b18;
  border-radius: 999px;
  background: var(--fill);
  box-shadow: 0 4px 14px #240f1b08;
}

.tab-bar button {
  display: grid;
  min-width: 0;
  place-content: center;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: clamp(8px, 2.2cqw, 11px);
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.tab-bar svg {
  --icon-size: clamp(16px, 4.11cqw, 21px);
}

.tab-bar button:disabled {
  cursor: default;
}

.tab-bar button[aria-current="page"] {
  color: var(--academy-wine);
  background: var(--academy-pill);
}

.tab-bar button:focus-visible {
  outline: 2px solid var(--academy-wine);
  outline-offset: -2px;
}

.home-indicator {
  position: relative;
  z-index: 1;
  grid-area: 5 / 1;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.academy-page:not([hidden]) ~ .home-indicator {
  background: transparent;
}

.home-indicator span {
  width: 30%;
  height: 4px;
  border-radius: 99px;
  background: var(--ink);
}

.touch-cursor {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  translate: var(--pointer-x, 0px) var(--pointer-y, 0px);
  transform: translate(-50%, -50%);
  border: 1px solid #240f1b25;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 50% 44%, #ffffffb3 34%, #ffffff8a 58%, #eeeeee7a);
  box-shadow: inset 0 1px 2px #fff9, inset 0 -5px 10px #0000000d;
  pointer-events: none;
  transition: opacity .09s ease, transform .1s ease;
}

.dialog-cursor-layer {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

:is(.phone-screen, .academy-dialog-panel)[data-pointer],
:is(.phone-screen, .academy-dialog-panel)[data-pointer] * {
  cursor: none !important;
}

:is(.phone-screen, .academy-dialog-panel)[data-pointer] .touch-cursor {
  opacity: 1;
}

:is(.phone-screen, .academy-dialog-panel)[data-pointer="down"] .touch-cursor {
  transform: translate(-50%, -50%) scale(.82);
}

.phone-screen :is(.course-progress-card, .question-card, .question-library-card, .check-in-next,
  .consultation-option, .self-care-card, .tab-bar,
  .dialog-close, .pill:not(:where([aria-pressed="true"]))) {
  background-color: var(--glass-white);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.phone-screen :is(.course-progress-card, .check-in-next, .question-library-card,
  :is(.question-library-filters, .consultation-tabs) .pill) {
  box-shadow: none;
}

:is(.stage-picker, .journal-picker, .stage-quiz-picker) .dialog-close {
  border: 0;
  background: color-mix(in srgb, var(--ink) 10%, var(--fill));
  color: var(--secondary-ink);
  box-shadow: none;
}

.stage-picker .stage-picker-arrows button {
  border: 0;
  background: var(--glass-white);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.phone-screen .academy-dialog-panel:not(.knowledge-picker-sheet) {
  background-color: var(--glass-paper);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.phone-screen :is(.stage-picker, .journal-picker, .stage-quiz-picker) .academy-dialog-panel {
  background-color: var(--fill);
}

.phone-screen .collection-card {
  background-color: color-mix(in srgb, var(--card-surface) 94%, transparent);
  backdrop-filter: blur(16px) saturate(125%);
}

.phone-screen #weekly-rail .weekly-card,
.phone-screen .weekly-overview-rail .weekly-guide-card {
  background-color: color-mix(in srgb, var(--weekly-card-color) 94%, transparent);
}

.phone-screen #weekly-rail .weekly-card {
  box-shadow: var(--glass-highlight), var(--weekly-card-shadow);
}

.phone-screen .weekly-overview-rail .weekly-card:not(.weekly-guide-card) {
  background-color: color-mix(in srgb, var(--weekly-card-color) 78%, var(--fill));
  box-shadow: none;
}

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

  .academy-welcome-track,
  .academy-welcome-cards,
  .academy-welcome-cue .academy-icon,
  .academy-welcome:not([hidden]) :is(.academy-welcome-heading, .academy-welcome-sentence) {
    animation: none;
  }

  .weekly-card {
    transform: scale(var(--weekly-scale));
  }

  #weekly-rail {
    height: calc(var(--weekly-height) + var(--weekly-lift) + 2 * var(--weekly-shadow-space));
  }

  .academy-dialog[open] .academy-dialog-panel,
  .knowledge-picker[open] .knowledge-picker-sheet {
    animation: none;
  }

  .knowledge-picker-slide,
  .knowledge-picker-slide > *,
  .collection-card,
  .collection-card > *,
  .collection-card[inert] > * {
    transition: none;
  }

  .touch-cursor {
    transition: none;
  }
}
