/* Responsive course catalogue and web editions of the original lesson jackets. */
#learning {
  --course-line: #33445b;
  --course-ink: #f0f3f6;
  --course-muted: #aec0d0;
  padding-block: clamp(52px, 6.8vw, 100px);
  color: var(--course-ink);
  background: radial-gradient(ellipse at 15% 62%, #182b43 0%, transparent 62%), #0b1422;
}

#learning .course-heading { align-items: end; margin-bottom: clamp(25px, 3.6vw, 52px); }
#learning .course-heading h2 { color: var(--course-ink); line-height: 1.16; }
#learning .course-heading .v4-kicker { color: #b2caff; }
#learning .v4-learning-intro { max-width: 35em; }
#learning .v4-learning-intro p { font-size: 14px; color: var(--course-muted); }
#learning .v4-learning-intro p:first-child { color: var(--course-ink); font-size: 18px; }

.course-library {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(26px, 4.3vw, 76px);
}
.course-feature, .course-program { min-width: 0; }
#learning .v4-course-theatre {
  isolation: isolate;
  overflow: hidden;
  height: auto;
  aspect-ratio: 1.92;
  margin: 0;
  border-block: 1px solid var(--course-line);
  background:
    linear-gradient(90deg, #87baff0b 1px, transparent 1px) center / 30px 30px,
    linear-gradient(#87baff0b 1px, transparent 1px) center / 30px 30px,
    #0b1522;
}
#learning .v4-course-card {
  top: 11%;
  width: 72%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  container-type: inline-size;
}
#learning .v4-course-card::after { display: none; }
#learning .v4-course-card[aria-hidden="true"] { visibility: hidden; }
.v4-course-card .course-jacket {
  --jacket-base: #273656;
  --jacket-light: #f5f5ff;
  --jacket-accent: #afcaff;
  --jacket-glow: #536ca0;
  border-radius: 4px;
  border-color: #9eafd064;
  text-align: left;
  background:
    radial-gradient(ellipse at 90% 6%, var(--jacket-glow), transparent 67%),
    linear-gradient(125deg, #07111d, var(--jacket-base));
}
.v4-course-card:nth-child(3n + 2) .course-jacket {
  --jacket-base: #173a45;
  --jacket-accent: #b1ecdf;
  --jacket-glow: #3e747c;
}
.v4-course-card:nth-child(3n) .course-jacket {
  --jacket-base: #432344;
  --jacket-accent: #ffc6df;
  --jacket-glow: #845c81;
}
.course-jacket::before,
.course-jacket::after {
  content: "";
  position: absolute;
  inset: -40% -31% -64% 42%;
  border: 1px solid #dce5ff45;
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}
.course-jacket::after { inset: -30% -38% -55% 48%; border-color: #dce5ff23; }
.jacket-copy {
  position: absolute;
  z-index: 2;
  inset: 11% 34% 11% 7.5%;
  display: flex;
  align-items: start;
  flex-direction: column;
  color: var(--jacket-light);
}
.jacket-series {
  color: var(--jacket-accent);
  font-size: clamp(11px, 2.7cqw, 15px);
  letter-spacing: .08em;
}
.jacket-heading {
  display: grid;
  gap: .12em;
  margin-block: auto;
  font-size: clamp(22px, 7.5cqw, 56px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -.055em;
}
.jacket-heading span:first-child { color: var(--jacket-accent); }
.jacket-illustration {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: 5.5%;
  width: 32%;
  height: 66%;
  perspective: 480px;
}
.resume-sheet, .review-sheet, .cost-sheet {
  position: absolute;
  inset: 1% 7%;
  display: block;
  color: #1d2a3d;
  background: linear-gradient(125deg, #fffdf8, #d5e2ee);
  border-radius: 2%;
  box-shadow: 4px 5px 0 #9eabc6, 8px 10px 0 #66758f, 12px 15px 24px #040d2138;
  transform: rotateY(-12deg) rotateZ(10deg);
}
.resume-sheet b, .cost-sheet b, .review-sheet b {
  position: absolute;
  left: 11%;
  top: 7%;
  font-size: 4.1cqw;
  font-weight: 730;
  line-height: 1;
}
.resume-avatar {
  position: absolute;
  top: 8%;
  right: 9%;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 6%;
  background:
    radial-gradient(circle at 50% 32%, #82688a 0 20%, transparent 22%),
    radial-gradient(ellipse at 50% 100%, #82688a 0 39%, transparent 41%), #d0c2d4;
}
.resume-lines, .review-lines {
  position: absolute;
  inset: 31% 11% 12%;
  background: repeating-linear-gradient(to bottom, #8999ad 0 2%, transparent 2% 17%);
}
.resume-lines::before, .resume-lines::after {
  content: "";
  position: absolute;
  top: -3%;
  left: -3%;
  width: 86%;
  height: 11%;
  background: #d82f78;
  transform: rotate(-2deg);
  box-shadow: 0 1px 1px #521b3d4d;
}
.resume-lines::after { top: 31%; width: 67%; transform: rotate(1deg); }
.org-figure {
  position: absolute;
  inset: 13% 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1.1fr 1fr;
  align-items: stretch;
  justify-items: center;
  transform: rotateY(-10deg) rotateZ(5deg);
}
.org-lead, .org-member {
  display: block;
  width: 82%;
  border-radius: 12%;
  border: 1px solid #c6d9fb;
  box-shadow: 2px 3px 0 #53647e, 3px 5px 8px #03163042;
  background:
    radial-gradient(circle at 50% 34%, #435b85 0 13%, transparent 15%),
    radial-gradient(ellipse at 50% 89%, #435b85 0 28%, transparent 30%), #d4e0ef;
}
.org-lead { grid-column: 2; border-color: #ffc4dc; background-color: #ffd5e5; }
.org-branches { grid-column: 1 / -1; position: relative; width: 67%; }
.org-branches::before, .org-branches::after { content: ""; position: absolute; }
.org-branches::before { inset: 50% 0 0; border: solid #a5bdde; border-width: 2px 2px 0; }
.org-branches::after { left: 50%; border-left: 2px solid #a5bdde; height: 100%; }
.cost-sheet { inset: 12% 0; transform: rotateY(-12deg) rotateZ(-7deg); }
.cost-sheet b { color: #123c46; font-size: 3.8cqw; font-style: italic; }
.cost-cells { position: absolute; inset: 29% 8% 10%; background: repeating-linear-gradient(90deg, #73968e 0 1px, transparent 1px 25%), repeating-linear-gradient(0deg, #73968e 0 1px, transparent 1px 20%), #dcefe7; border: 1px solid #73968e; }
.cost-range { position: absolute; inset: 41% 29% 33% 29%; background: #62ad9570; border: 2px solid #34836a; }
.cost-range::after { content: ""; position: absolute; width: 5px; height: 5px; right: -4px; bottom: -4px; background: #347964; }
.review-sheet { transform: rotateY(-12deg) rotateZ(-8deg); }
.review-sheet b { color: #216653; font-size: 5.2cqw; }
.review-lines { background: repeating-linear-gradient(to bottom, #91a0b4 0 2%, transparent 2% 24%); }
.review-mark { position: absolute; top: 47%; left: 15%; width: 71%; height: 17%; border: 2px solid #c72e69; border-radius: 50%; transform: rotate(-8deg); }
.review-mark::after { content: ""; position: absolute; left: 72%; bottom: -110%; width: 39%; height: 120%; border-left: 2px solid #c72e69; border-bottom: 2px solid #c72e69; transform: skewX(14deg); }
.jacket-lens {
  position: absolute;
  right: -2.5%;
  top: 15%;
  width: 40%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #eceafe7d;
  padding: 5px;
  background: #e1e5ff14;
}
#learning .v4-course-card .jacket-lens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.jacket-path { font-size: clamp(35px, 17cqw, 100px); font-style: italic; letter-spacing: -.13em; color: var(--jacket-accent); }
#learning .v4-course-card .v4-course-face { box-shadow: 0 12px 28px #0208156b, 2px 3px 0 #4a5b76; }
#learning .v4-course-card.is-hovered .v4-course-face {
  transform: translateY(-4px) translateZ(18px) rotateX(var(--course-tilt-x, 0deg)) rotateY(var(--course-tilt-y, 0deg)) scale(1.012);
  border-color: #c8dbf5;
}
#learning .v4-course-card.is-hovered .v4-course-glare { opacity: .22; }
#learning .v4-course-control {
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 23px 0 0;
  border: 0;
}
#course-current h3 { color: var(--course-ink); line-height: 1.48; font-size: clamp(20px, 1.7vw, 27px); }
#course-current p { color: var(--course-muted); }
#course-current a { min-height: 34px; align-items: center; color: #ffc3e0; }
#course-current .course-original { margin-right: 18px; color: #acbfd4; border-bottom-color: #acbfd44d; }
#learning .v4-course-arrows { gap: 8px; margin: 0; padding-top: 3px; }
#course-position { color: var(--course-muted); font-variant-numeric: tabular-nums; letter-spacing: .05em; }
#learning .v4-course-arrows button { width: 38px; height: 38px; background: #0e1b2a; }
.course-program h3 { margin: 0 0 12px; color: var(--course-ink); font-size: 20px; font-weight: 580; }
#learning .v4-course-index { margin: 0; display: block; border-top: 1px solid var(--course-line); }
#learning .v4-course-index button {
  position: relative;
  width: 100%;
  min-height: 45px;
  padding: 9px 22px 9px 5px;
  gap: 15px;
  border-bottom: 1px solid var(--course-line);
  color: var(--course-muted);
  font-size: clamp(14px, 1.08vw, 17px);
  line-height: 1.52;
}
#learning .v4-course-index button[aria-pressed="true"] { color: #f7f9ff; background: linear-gradient(90deg, #8dbfff15, transparent); }
#learning .v4-course-index button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fe80b8;
  box-shadow: 0 0 12px #ff67946b;
}
#learning .v4-course-index button:hover { color: white; }
#learning .v4-course-index button small { color: #96b1ce; }
#learning .v4-learning-bottom { border-top: 1px solid var(--course-line); padding-top: 21px; }
#learning .v4-hosts { margin: 0; }
#learning .v4-hosts span { color: var(--course-muted); font-size: 13px; }

@media (max-width: 1050px) {
  .course-library { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 25px; }
  #learning .v4-course-control { flex-direction: column; gap: 9px; }
}
@media (max-width: 780px) {
  .course-library { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #learning .v4-learning-intro { margin-top: 12px; }
  #learning .v4-learning-intro p:first-child { font-size: 16px; }
  #learning .v4-learning-intro p + p { margin-top: 4px; }
  #learning .v4-course-theatre { aspect-ratio: 1.78; }
  #learning .v4-course-card { top: 13%; width: 76%; }
  #learning .v4-course-control { display: flex; gap: 14px; flex-direction: row; flex-wrap: wrap; }
  #learning .v4-course-arrows { margin-left: auto; }
  #learning .v4-course-arrows button { width: 44px; height: 44px; }
  #learning .v4-course-index button { min-height: 48px; }
  #learning .v4-learning-bottom { display: flex; flex-wrap: wrap; gap: 15px; }
  #learning .v4-learning-bottom .button { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #learning .v4-course-card.is-hovered .v4-course-face { transform: none; }
}
