@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --app-ink: #17181c;
  --app-muted: #50535c;
  --app-line: #dce0e5;
  --app-rose: #8c355e;
  --app-pink: #eda6d6;
  --app-petal: #fbedf7;
  --app-aqua: #68e0e3;
  --app-sky: #c6e6f5;
  --app-sky-paper: #ebf5fb;
  --app-font: "Lexend", "Noto Sans Myanmar", system-ui, sans-serif;
  --app-width: 76rem;
  --app-ease: cubic-bezier(.2,.75,.25,1);
  --app-rim: #d1dce4;
  --app-elevation: 0 3px 0 -1px var(--app-rim), 0 7px 15px -10px rgb(25 39 56 / 27%);
  --app-lift: 0 4px 0 -1px var(--app-rim), 0 14px 24px -14px rgb(25 39 56 / 32%);
}

:where(.app-links, .studio-intro .app-actions, .learning-paths) > a[href="/practice/"],
[data-section-mark="practice"] { --entry-icon: url("/assets/learning-icons/practice.svg"); }
:where(.app-links, .studio-intro .app-actions, .learning-paths) > a[href="/courses/"],
[data-section-mark="courses"] { --entry-icon: url("/assets/learning-icons/courses.svg"); }
:where(.app-links, .studio-intro .app-actions, .learning-paths) > a[href="/services/"],
[data-section-mark="services"] { --entry-icon: url("/assets/learning-icons/services.svg"); }
:where(.app-links, .studio-intro .app-actions, .learning-paths) > a[href="/store/"],
[data-section-mark="store"] { --entry-icon: url("/assets/learning-icons/store.svg"); }
[data-section-mark="reading"] { --entry-icon: url("/assets/learning-icons/reading.svg"); }
.app-frame, .app-header .app-nav {
  width: min(var(--app-width), calc(100% - clamp(2rem, 8vw, 7rem)));
  margin-inline: auto;
  box-sizing: border-box;
}
.app-header {
  position: relative;
  inset: auto;
  z-index: 3;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  font-family: var(--app-font);
}
.app-header .app-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3.9vw, 3.3rem);
  height: auto;
  min-height: 4.6rem;
  padding: 0;
}
.app-header a { color: var(--app-ink); text-decoration: none; letter-spacing: normal; }
.app-header .app-brand { display: flex; flex: none; align-items: center; padding: 0; }
.app-header .app-brand img { display: block; width: 9.1rem; height: auto; max-width: 100%; }
.app-header .app-links { display: flex; align-items: stretch; flex-wrap: nowrap; align-self: stretch; gap: clamp(.7rem, 2vw, 2rem); }
.app-header .app-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .25rem .15rem;
  color: #393d45;
  gap: .48rem;
  font: 520 .95rem/1.3 var(--app-font);
}
.app-header .app-links a:is(:hover, [aria-current]) { color: var(--app-ink); text-decoration: none; }
.app-header .app-links a::before, .studio-intro .app-btn::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--entry-icon) center / contain no-repeat;
}
.app-header .app-links a::after {
  content: "";
  position: absolute;
  bottom: .55rem;
  left: .18rem;
  right: .18rem;
  height: 3px;
  border-radius: 50%;
  background: var(--app-pink);
  transform: scaleX(0);
  transform-origin: left;
}
.app-header .app-links a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.app-header .app-links a[aria-current]::after { background: var(--app-ink); }
.app-header .app-account {
  margin-inline-start: auto;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .55rem .95rem;
  border: 1px solid #abc8d8;
  border-radius: .8rem;
  background: var(--app-sky-paper);
  box-shadow: 0 2px 0 #c2dce8, inset 0 1px #fff;
  font: 570 .94rem/1.2 var(--app-font);
}
.app-header .app-account:is(:hover, [aria-current]) { background: #dceefa; text-decoration: none; }
.person-icon { position: relative; display: inline-block; width: 1rem; height: 1rem; color: var(--app-ink); }
.person-icon::before, .person-icon::after { content: ""; position: absolute; box-sizing: border-box; border: 1.5px solid currentColor; left: 50%; transform: translateX(-50%); }
.person-icon::before { width: .43rem; height: .43rem; top: 0; border-radius: 50%; }
.person-icon::after { width: .91rem; height: .46rem; bottom: 0; border-radius: .5rem .5rem .12rem .12rem; }
.app-skip { position: absolute; z-index: 10; left: 1rem; top: -7rem; padding: .75rem 1rem; background: #fff; color: var(--app-ink); }
.app-skip:focus { top: .5rem; }
.app-header :focus-visible, .learning-page :focus-visible, .storefront :focus-visible {
  outline: 3px solid var(--app-rose); outline-offset: 3px;
}
.learning-page { margin: 0; color: var(--app-ink); background: #fff; font: 1rem/1.55 var(--app-font); }
.learning-page *, .storefront *, .app-header * { box-sizing: border-box; }
.learning-page h1, .learning-page h2, .learning-page h3, .learning-page p { margin: 0; }
.learning-page a { color: inherit; }
.learning-page h1, .storefront .shop-intro h1 {
  font: 650 clamp(2.85rem, 5.35vw, 4.65rem)/1.07 var(--app-font);
  letter-spacing: -.06em;
}
.learning-page h2, .storefront .catalog-heading { font: 610 clamp(1.55rem, 2.55vw, 2.12rem)/1.2 var(--app-font); letter-spacing: -.042em; }
.learning-page h3 { font: 600 1.19rem/1.25 var(--app-font); letter-spacing: -.03em; }
.learning-page .app-kicker, .storefront .app-kicker {
  margin: 0 0 .85rem;
  color: #675660;
  font: 700 .81rem/1.45 var(--app-font);
  text-transform: uppercase;
  letter-spacing: .115em;
}
.learning-page .app-lead, .storefront .app-lead {
  margin: 1.15rem 0 0;
  color: var(--app-muted);
  font: 400 clamp(1.05rem, 1.4vw, 1.2rem)/1.55 var(--app-font);
  max-width: 44ch;
}
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.6rem; }
.app-btn, .storefront .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: .72rem 1.15rem;
  gap: .52rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  font: 560 .98rem/1.35 var(--app-font);
  text-decoration: none;
  cursor: pointer;
}
a.app-btn-dark, button.app-btn-dark, .storefront .button, .pass-order .pass-action {
  background: var(--app-ink);
  color: #fff;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--app-aqua) 48%, var(--app-sky)), inset 0 1px rgb(255 255 255 / 14%);
}
.studio-intro .app-btn-dark::before { filter: grayscale(1) invert(1) brightness(1.4); }
a.app-btn-outline, button.app-btn-outline {
  color: var(--app-ink);
  background: #fff;
  border-color: #d6c6d0;
  box-shadow: 0 3px 0 #e9d4e1, inset 0 1px #fff;
}
.app-btn-dark:hover, .storefront .button:hover { background: #303441; text-decoration: none; }
.app-btn-outline:hover { border-color: #ab8da0; background: var(--app-petal); text-decoration: none; }
.app-btn:disabled { opacity: .6; cursor: wait; }
.learning-page .app-inline, .storefront .app-inline { font: 650 .95rem/1.35 var(--app-font); color: var(--app-rose); text-decoration: underline; text-underline-offset: .23em; padding-block: .6rem; }
.app-inline:hover { text-decoration-thickness: 2px; }
.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.4rem, 4.1vw, 3.8rem);
  border-bottom: 1px solid var(--app-line);
}
.studio-intro { padding: .75rem 0; }
.marked-word { position: relative; isolation: isolate; display: inline-block; }
.marked-word::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.025em;
  right: -.025em;
  bottom: .01em;
  height: .13em;
  border-radius: 70% 30% 55% 35%;
  background: var(--app-pink);
  transform: rotate(-2deg);
}

/* The Premium pass and its backing sheets share a fixed link area. */
.study-desk { position: relative; min-width: 0; }
.pass-display {
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 13rem;
  aspect-ratio: 1.7;
  border: 1px solid #c8dce7;
  border-radius: 1.65rem;
  background-color: var(--app-sky-paper);
  background-image: linear-gradient(#b9d6e455 1px, transparent 1px), linear-gradient(90deg, #b9d6e455 1px, transparent 1px);
  background-size: 19px 19px;
  background-position: center;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 -1px #cbdce7, 0 12px 24px -18px #516981;
  color: #fff;
  text-decoration: none;
}
.desk-stack { display: grid; position: relative; isolation: isolate; width: min(64%, 21rem); }
.desk-notebook, .desk-sheet, .pass-ticket { grid-area: 1 / 1; border-radius: .86rem; }
.desk-notebook, .desk-sheet { position: relative; pointer-events: none; }
.desk-notebook {
  z-index: -2;
  border: 1px solid #6bafc4;
  background: #a7dcea;
  box-shadow: 0 2px 0 #edf7fa, 0 4px 0 #7ca6b5, 0 11px 14px -6px #36536555;
  transform: translate(-5%, -7%) rotate(-12deg);
}
.desk-notebook::before {
  content: "";
  position: absolute;
  top: -.38rem;
  left: 8%;
  width: 49%;
  height: .7rem;
  background: repeating-linear-gradient(90deg, #435664 0 2px, #e5f0f4 3px, transparent 4px 13px);
}
.desk-sheet {
  z-index: -1;
  border: 1px solid #d791b9;
  background: repeating-linear-gradient(0deg, transparent 0 11px, #e4aaca 11px 12px), #f5c8e3;
  box-shadow: 0 2px 0 #fff9fb, 0 4px 0 #ce9db7, 0 8px 13px -6px #3e2e4345;
  transform: translate(4%, 3%) rotate(7deg);
}
.pass-ticket {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(.75rem, 1.3vw, 1.25rem) clamp(1rem, 1.65vw, 1.5rem) 0;
  border: 1px solid #333944;
  color: #fff;
  background: #20232b;
  box-shadow: inset 0 1px 0 #60636b, 0 2px 0 #11151c, 0 .75rem 1rem -.35rem #24263166;
  transform: rotate(-5deg);
}
.pass-ticket::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 49%;
  inset: 0 0 0 auto;
  background: url("/assets/learning-icons/ticket-lines.svg") right center / auto 135% no-repeat;
  opacity: .8;
}
.ticket-top { display: flex; align-items: center; gap: .43rem; color: #fff2fa; font: 510 clamp(.74rem, 1.05vw, .85rem)/1.3 var(--app-font); }
.ticket-ribbon { width: .64rem; height: .89rem; background: var(--app-pink); clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.pass-ticket > strong { display: block; margin: .75rem 0 .9rem; font: 570 clamp(1.7rem, 3.18vw, 2.9rem)/1.05 var(--app-font); letter-spacing: -.045em; }
.ticket-lower { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .57rem 0 .64rem; border-top: 1px dashed #a1a1a5; font: 450 clamp(.76rem, 1.05vw, .92rem)/1.35 var(--app-font); }
.ticket-lower b { color: #fff0fa; font-size: 1.04em; }
.desk-clip, .desk-pencil, .desk-glint { position: absolute; pointer-events: none; }
.desk-clip { width: 6.7%; height: auto; top: 7%; left: 7%; rotate: -26deg; filter: drop-shadow(1px 3px 1px #67556838); }
.desk-pencil { right: 7.2%; bottom: 12%; width: 4.5%; height: auto; rotate: 26deg; filter: drop-shadow(3px 5px 2px #39445342); }
.desk-glint { right: 10%; top: 8%; width: 8%; height: auto; }
.desk-motion {
  position: absolute;
  display: grid;
  place-items: center;
  right: .3rem;
  bottom: .25rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--app-ink);
  background: transparent;
  cursor: pointer;
}
.desk-motion[hidden], .desk-motion .play-mark { display: none; }
.desk-motion svg { width: 1.8rem; height: 1.8rem; padding: .33rem; border: 1px solid #a9bdca; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 #bfd3df; }
.desk-motion path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.desk-motion:hover svg { background: var(--app-petal); }
.study-desk[data-motion="paused"] .pause-mark { display: none; }
.study-desk[data-motion="paused"] .play-mark { display: block; }
.app-section { margin-block: clamp(1.8rem, 3vw, 2.9rem); scroll-margin-top: 1rem; }
.section-line { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .95rem; }
.learning-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.learning-paths a { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--app-line); border-radius: .75rem; text-decoration: none; }
.learning-paths a:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: .2em; }
.learning-paths p { margin-top: .4rem; color: var(--app-muted); }
.app-shortcuts { display: flex; flex-wrap: wrap; gap: .15rem 1.35rem; align-items: center; padding-block: .35rem; min-height: 0; }
.app-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-ink); font: 600 .92rem/1.4 var(--app-font); text-decoration: underline; text-underline-offset: .2em; }
.skill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.skill-tile, .shelf-book {
  min-width: 0; color: var(--app-ink); text-decoration: none;
  border: 1px solid var(--app-line); background: #fff; border-radius: .85rem;
}
.skill-tile { display: flex; flex-direction: column; align-items: stretch; padding: 1.15rem; }
.skill-tile:focus-visible h3, .skill-tile:hover h3, .shelf-book:focus-visible h3, .shelf-book:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.tile-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: 1.05rem; }
.skill-symbol {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid #c1dce8;
  border-radius: .88rem;
  background: var(--app-sky-paper);
  box-shadow: inset 0 2px 0 #fff, 0 2px 0 #bed8e4;
}
.skill-tile:has(.paid) { --app-rim: #e6d1df; }
.skill-tile:has(.paid) .skill-symbol {
  background: var(--app-petal);
  border-color: #e6ccdf;
  box-shadow: inset 0 2px 0 #fff, 0 2px 0 #e2c6da;
}
.skill-symbol img { display: block; width: 1.67rem; height: 1.67rem; }
.tier { color: #28475b; background: #e5f2f9; padding: .17rem .55rem; border-radius: 2rem; font: 620 .82rem/1.5 var(--app-font); }
.tier.paid { color: #62324e; background: #fae1f0; }
.skill-tile p { margin: .4rem 0 0; color: var(--app-muted); line-height: 1.45; }
.bookshelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.shelf-book { display: flex; align-items: stretch; overflow: hidden; gap: 1rem; }
.cover-well { display: grid; place-items: center; flex: 0 0 min(34%, 7rem); background: var(--app-sky-paper); padding: 1rem .65rem; }
.cover-well img { display: block; width: min(100%, 4.35rem); height: auto; box-shadow: 2px 4px 7px #261d2433; }
.shelf-book > div { align-self: center; padding: .85rem .85rem .85rem 0; }
.shelf-book p { color: var(--app-muted); font-size: .86rem; }
.shelf-book h3 { margin: .2rem 0 .65rem; font-size: 1.12rem; }
.shelf-book strong { font-size: .93rem; }
.shelf-book small { color: var(--app-muted); font-weight: 450; font-size: .85rem; }
.resource-row { padding-block: 1.5rem 2.65rem; border-top: 1px solid var(--app-line); }
.resource-row h2 { font-size: 1.22rem; }
.resource-links { display: flex; flex-wrap: wrap; gap: .3rem 1.35rem; margin-top: .65rem; }
.shelf-book:nth-child(2) .cover-well { background: var(--app-petal); }
.shelf-book:nth-child(3) .cover-well { background: #e1f9f9; }
.resource-links a, .app-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .22em; font: 500 .93rem/1.4 var(--app-font); }
/* Site navigation stays independent from footers inside book and exam readers. */
.app-footer {
  display: block; width: 100%; max-width: none; margin: 0; box-sizing: border-box;
  border: 0; border-top: 1px solid var(--app-line);
  background: #f5f9fc; color: var(--app-ink); padding: 1.05rem 0;
  font: 450 1rem/1.5 var(--app-font);
}
.app-footer .app-frame, .app-footer nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.2rem;
  min-width: 0; min-height: 0; height: auto;
}
.app-footer .app-frame { justify-content: space-between; }
.app-footer nav { justify-content: flex-start; padding: 0; }
.footer-wordmark { display: inline-block; width: 8rem; max-width: 100%; height: auto; vertical-align: middle; mix-blend-mode: multiply; }
.app-footer strong { color: var(--app-ink); font: 610 .98rem/1.4 var(--app-font); }
.app-footer .footer-description { display: block; margin: .2rem 0; color: var(--app-muted); font: 450 .86rem/1.45 var(--app-font); }
.app-footer nav a {
  padding: .35rem 0; border: 0; min-height: 44px;
  color: var(--app-rose); font: 520 .93rem/1.4 var(--app-font);
  text-decoration: underline; text-underline-offset: .22em;
}
.app-footer nav a:hover { color: var(--app-ink); }
@media (max-width: 43rem) {
  .app-footer .app-frame { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (max-width: 55rem) {
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookshelf { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
  .studio-hero { gap: 1.25rem; }
}
@media (max-width: 43rem) {
  .app-header .app-nav { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; min-height: 0; padding-top: .4rem; }
  .app-header .app-brand { width: fit-content; }
  .app-header .app-brand img { width: 8rem; }
  .app-header .app-links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .45rem; }
  .app-header .app-links a { min-height: 44px; font-size: .93rem; }
  .app-header .app-account { grid-column: 2; grid-row: 1; }
  .studio-hero { grid-template-columns: 1fr; padding-block: 1.6rem; }
  .studio-intro { padding: 0; }
  .studio-intro .app-lead { margin-top: .8rem; }
  .studio-intro .app-actions { margin-top: 1.1rem; }
  .pass-display { min-height: 0; aspect-ratio: 2.05; border-radius: 1.2rem; }
  .desk-stack { width: min(60%, 18rem); }
  .pass-ticket { padding: .62rem .85rem 0; }
  .pass-ticket > strong { margin: .5rem 0 .55rem; font-size: clamp(1.25rem, 5.5vw, 1.8rem); }
  .ticket-top, .ticket-lower { font-size: .75rem; }
  .ticket-lower { padding: .37rem 0 .42rem; }
  .desk-pencil { bottom: 21%; width: 4%; }
  .skill-tile { padding: 1rem; }
  .skill-tile h3 { font-size: 1.1rem; }
  .skill-tile p { font-size: .95rem; }
  .app-section { margin-block: 1.65rem; }
  .shelf-book { min-height: 7.5rem; }
}
@media (max-width: 24rem) {
  .app-actions .app-btn { padding-inline: .82rem; font-size: .93rem; }
  .skill-grid { gap: .55rem; }
  .skill-tile { padding: .8rem; }
  .skill-symbol { width: 2.45rem; height: 2.45rem; }
  .app-header .app-account { padding-inline: .72rem; }
}
/* Store products retain their samples, edition choices and original order links. */
.storefront { font: 1rem/1.55 var(--app-font); }
.storefront .shop-intro { padding: clamp(1.8rem,4vw,3.4rem) 0 1.35rem; }
.storefront .shop-intro h1 { font-size: clamp(2.7rem,5.2vw,4.25rem); }
.shop-sections { display: flex; gap: .4rem 1.35rem; flex-wrap: wrap; margin-top: .85rem; }
.shop-sections a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-ink); font-weight: 600; text-decoration-color: #c2aab8; }
.store-pass {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,auto);
  align-items: center; gap: 1.25rem 3rem; padding: clamp(1.4rem,3vw,2.5rem);
  border: 1px solid #e1c5d7; border-radius: 1.15rem; background: var(--app-petal);
}
.store-pass .app-kicker { margin-bottom: .4rem; color: #594b52; }
.store-pass h2 { margin: 0 0 .6rem; font: 700 clamp(1.85rem,3.65vw,3.1rem)/1.1 var(--app-font); letter-spacing: -.05em; }
.store-pass p { max-width: 60ch; margin: 0; color: #4d4449; }
.store-pass-order { border-left: 1px dashed #b69aa8; padding-left: clamp(1.3rem,3vw,2.4rem); display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.store-pass-order p strong { font-size: 1.55rem; font-weight: 720; color: var(--app-ink); }
.store-pass-order a.app-inline { color: var(--app-ink); padding: .3rem 0; }
.catalog-group { margin: clamp(2rem,4vw,3.5rem) 0; }
.storefront .catalog-heading { margin: 0 0 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; align-items: start; }
.guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.product-card { display: flex; flex-direction: column; min-width: 0; align-self: stretch; border: 1px solid var(--app-line); border-radius: .9rem; }
.product-card > div:first-child { padding: 1.1rem 1.2rem 1.3rem; }
.product-card .book-plate, .product-card > [data-rla-preview] { order: -1; padding: 0; background: var(--app-sky-paper); border: 0; border-radius: .85rem .85rem 0 0; }
.product-card .book-plate, .product-card .rla-shelf { height: 12.75rem; }
.product-card .book-plate { display: grid; place-items: center; }
.product-card .book-plate img { height: 10.2rem; width: auto; max-width: 100%; }
.product-card .rla-shelf { border-radius: .85rem .85rem 0 0; overflow: hidden; align-content: center; align-items: end; padding: .6rem 1rem; border: 0; }
.product-card .rla-volume { gap: .4rem; }
.product-card .rla-volume img { max-height: 8rem; width: auto; max-width: 100%; }
.product-card .rla-preview-hint { margin: 0; padding: .4rem; font-size: .85rem; background: #fff; }
.product-card .eyebrow { color: #5d5259; margin: 0 0 .5rem; font: 650 .85rem/1.4 var(--app-font); text-transform: none; letter-spacing: .01em; }
.storefront .product-title { margin: 0; font: 680 1.43rem/1.2 var(--app-font); letter-spacing: -.035em; }
.product-card .deck, .product-card .row-intro, .product-card .byline, .product-card .first-edition { margin: .75rem 0 0; font: 400 1rem/1.5 var(--app-font); color: var(--app-muted); }
.product-card .byline { font-size: .91rem; }
.product-card .price, .product-card .edition-prices { margin: .85rem 0 .65rem; }
.product-card .edition-prices p { font-size: .96rem; }
.product-card .actions { margin-top: .6rem; gap: .4rem .8rem; }
.product-card .actions a:not(.button) { padding: .35rem 0; }
.product-card .book-contents { margin: 1rem 0 0; }
.storefront .ruled h2 { font: 675 1.65rem/1.2 var(--app-font); letter-spacing: -.035em; }
.storefront .list-row h3 { font: 650 1.13rem/1.3 var(--app-font); }
.storefront .site-foot strong { color: var(--app-ink); }
@media(max-width:58rem) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:42rem) {
  .product-grid { grid-template-columns: 1fr; }
  .store-pass { grid-template-columns: 1fr; gap: 1rem; }
  .store-pass-order { border: 0; border-top: 1px dashed #bea5b2; padding: .85rem 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; }
  .store-pass-order .app-inline { margin-right: auto; }
  .shop-sections { gap: .15rem 1rem; }
}

.learner-view { padding-block: clamp(2rem, 5vw, 4.25rem); min-height: 64vh; }
.learner-view h1 { font-size: clamp(2.75rem, 5vw, 4.35rem); }
.learner-view .app-lead { max-width: none; overflow-wrap: anywhere; }
.learner-view [hidden] { display: none !important; }
.learner-pass { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; padding: 1.35rem 1.5rem; background: #fbf1f5; border: 1px solid #e5d6dd; border-radius: .85rem; }
.learner-pass .app-kicker { margin-bottom: .35rem; }
.learner-pass h2 { font-size: 1.55rem; }
.learner-pass p:last-child { margin-top: .45rem; color: var(--app-muted); }
.workspace-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); margin-top: 1rem; }
.workspace-grid a { display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1.1rem; border: 1px solid var(--app-line); border-radius: .7rem; text-decoration: none; }
.workspace-grid a:hover { border-color: #977a89; }
.workspace-grid a > span { color: var(--app-muted); }
.latest-scores { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: .7rem; margin: .8rem 0 0; }
.latest-scores > div { padding: .8rem 1rem; border-left: 3px solid #d0a2b8; background: #f7f5f6; }
.latest-scores dt { font-weight: 650; }
.latest-scores dd { margin: .25rem 0 0; }

@media (max-width: 43rem) {
  .studio-intro .app-btn { font-size: .94rem; padding-inline: .8rem; }
}

/* Primary destinations share a small illustrated mark with their navigation link. */
[data-section-mark] { position: relative; }
[data-section-mark]::after {
  content: "";
  position: absolute;
  right: clamp(.7rem, 4vw, 4rem);
  top: 50%;
  width: clamp(4rem, 7vw, 5.8rem);
  aspect-ratio: 1;
  border: 1px solid #bfd5e1;
  border-radius: 28%;
  background: var(--entry-icon) center / 65% no-repeat, var(--app-sky-paper);
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 #b6cfdb, 0 7px 12px -6px #384e6345;
  transform: translateY(-50%) rotate(7deg);
  pointer-events: none;
}
[data-section-mark="services"]::after, [data-section-mark="store"]::after {
  border-color: #e3c3d9;
  background-color: var(--app-petal);
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 #dec1d3, 0 7px 12px -6px #53374745;
  transform: translateY(-50%) rotate(-6deg);
}
.directory .directory-intro[data-section-mark] .app-lead,
.storefront .shop-intro[data-section-mark] .app-lead { max-width: min(63ch, calc(100% - 8.5rem)); }

.skill-tile, .shelf-book, .learning-paths > a, .workspace-grid > a, .product-card, .catalog-topic,
.store-pass, .learner-pass, .pass-checkout, .library-intro .account {
  box-shadow: var(--app-elevation);
}
.learning-paths > a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: .25rem 1.05rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-color: #cbdfe9;
  border-radius: 1rem;
  background: #f3f9fd;
}
.learning-paths > a[href="/services/"] { --app-rim: #e6d1df; background: #fdf4fa; border-color: #ead9e4; }
.learning-paths > a::before {
  content: "";
  grid-row: 1 / 3;
  align-self: center;
  width: clamp(2.8rem, 4vw, 3.55rem);
  aspect-ratio: 1;
  background: var(--entry-icon) center / 75% no-repeat, #fff;
  border: 1px solid var(--app-rim);
  border-radius: 30%;
  box-shadow: 0 2px 0 var(--app-rim);
  rotate: -5deg;
}
.learning-paths > a[href="/services/"]::before { rotate: 5deg; }
.learning-paths > a > :is(h3,p) { grid-column: 2; }
.learning-paths p { margin: 0; }
.skill-tile, .shelf-book, .workspace-grid > a, .product-card { border-radius: 1rem; }
:is(.learning-page, .storefront) a:focus-visible, .app-header a:focus-visible, .desk-motion:focus-visible {
  outline: 3px solid #255675;
  outline-offset: 4px;
}
:is(.skill-tile, .shelf-book, .learning-paths > a, .workspace-grid > a):is(:hover,:focus-visible) {
  border-color: #91a7b6;
  box-shadow: var(--app-lift);
}
:is(.skill-tile:has(.paid), .learning-paths > a[href="/services/"]):is(:hover,:focus-visible) { border-color: #bc92ab; }
.workspace-grid > a { background: #fff; }
.workspace-grid > a::before {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: .35rem;
  border-radius: .6rem;
  background: var(--entry-icon) center / 72% no-repeat, var(--workspace-tint, var(--app-sky-paper));
}
.workspace-grid > a[href$="/reading-tests/"] { --entry-icon: url("/assets/learning-icons/reading.svg"); }
.workspace-grid > a[href$="/listening-tests/"] { --entry-icon: url("/assets/learning-icons/listening.svg"); }
.workspace-grid > a[href$="/writing-feedback/"] { --entry-icon: url("/assets/learning-icons/writing.svg"); --workspace-tint: var(--app-petal); }
.workspace-grid > a[href$="/reading-by-type/"] { --entry-icon: url("/assets/learning-icons/drills.svg"); --workspace-tint: var(--app-petal); }
.storefront .product-card:nth-child(2) .book-plate { background: var(--app-petal); }
.store-pass, .learner-pass, .pass-checkout { --app-rim: #e5c8da; }
.pass-order .pass-checkout { background: var(--app-petal); border-color: #e2c8d8; }
.pass-order .pass-action { border-radius: .7rem; font-family: var(--app-font); }
.library-intro .account { background: var(--app-sky-paper); border: 1px solid #c4dae6; border-radius: 1rem; }
.app-section .workspace-grid a strong { font-weight: 610; }

@media (min-width: 43.01rem) and (max-width: 54rem) {
  .app-header .app-nav { gap: .9rem; }
  .app-header .app-links { gap: .75rem; }
  .app-header .app-brand img { width: 7.25rem; }
  .app-header .app-links a { font-size: .87rem; gap: .25rem; }
  .app-header .app-links a::before { width: 1.05rem; height: 1.05rem; }
  .app-header .app-account { font-size: .88rem; padding-inline: .64rem; gap: .35rem; }
}
@media (max-width: 43rem) {
  .app-header .app-links { gap: .3rem; }
  .app-header .app-links a { padding-inline: .15rem; font-size: .91rem; gap: .35rem; }
  .app-header .app-links a::after { bottom: 0; }
  [data-section-mark]::after { width: 3.25rem; top: 1.9rem; right: .4rem; transform: rotate(5deg); }
  [data-section-mark="services"]::after, [data-section-mark="store"]::after { transform: rotate(-5deg); }
  [data-section-mark] > h1 { max-width: calc(100% - 4.5rem); }
  .storefront .shop-intro h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .directory .directory-intro[data-section-mark] .app-lead,
  .storefront .shop-intro[data-section-mark] .app-lead { max-width: 100%; }
  .studio-hero { gap: 1.65rem; }
}
@media (max-width: 31rem) {
  .app-header .app-links a { flex-direction: column; gap: .16rem; padding-block: .42rem; font-size: clamp(.78rem, 3.35vw, .91rem); }
  .app-header .app-links a::before { width: 1.12rem; height: 1.12rem; }
  .learning-paths > a { gap: .2rem .8rem; }
  .study-desk .desk-motion { right: .12rem; bottom: .08rem; }
}
@media (max-width: 27rem) {
  .studio-intro .app-actions { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: .55rem; }
  .studio-intro .app-btn { font-size: .9rem; padding-inline: .4rem; }
  .studio-intro .app-btn::before { display: none; }
  .app-header .app-links a { white-space: nowrap; }
}
@media (max-width: 22rem) {
  .app-header .app-links { gap: .12rem; }
  .app-header .app-links a { padding-inline: 0; }
  .studio-intro .app-actions { grid-template-columns: 1fr; }
  .ticket-top { font-size: .7rem; }
  .desk-stack { width: 62%; }
}

@keyframes desk-pass-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(1.8deg); }
}
@keyframes desk-pencil-drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
@keyframes desk-clip-drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(3px) rotate(5deg); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .study-desk[data-motion] .desk-stack { animation: desk-pass-float 4.8s ease-in-out infinite; }
  .study-desk[data-motion] .desk-pencil { animation: desk-pencil-drift 5.8s ease-in-out infinite; }
  .study-desk[data-motion] .desk-clip { animation: desk-clip-drift 6.7s ease-in-out infinite; }
  .study-desk[data-motion="paused"] :is(.desk-stack, .desk-pencil, .desk-clip) { animation-play-state: paused; }
  .app-header .app-links a::after { transition: transform 180ms var(--app-ease); }
  .pass-ticket { transition: transform 320ms var(--app-ease); }
  .cover-well img, .book-plate img, .skill-symbol, .learning-paths > a::before { transition: transform 240ms var(--app-ease); }
  :is(.skill-tile, .shelf-book, .learning-paths > a, .workspace-grid > a, .app-btn, .app-account, .storefront .button, .pass-action) {
    transition: translate 180ms var(--app-ease), box-shadow 180ms ease, border-color 180ms ease, background-color 160ms ease;
  }
  @media (hover: hover) and (pointer: fine) {
    :is(.skill-tile, .shelf-book, .learning-paths > a, .workspace-grid > a):hover { translate: 0 -3px; }
    .skill-tile:hover .skill-symbol, .learning-paths > a:hover::before { transform: rotate(-4deg); }
    :is(.shelf-book:hover .cover-well, .product-card .book-plate:hover) img { transform: translateY(-2px) rotate(-2deg); }
    :is(.app-btn:not(:disabled), .app-account, .storefront .button, .pass-action):hover { translate: 0 -2px; }
    .pass-display:hover .pass-ticket { transform: translateY(-4px) rotate(-3deg); }
  }
  :is(.app-btn:not(:disabled), .app-account, .skill-tile, .shelf-book, .learning-paths > a, .workspace-grid > a, .storefront .button, .pass-action):active {
    translate: 0 2px;
    box-shadow: 0 1px 0 var(--app-rim);
  }
}
@media (prefers-reduced-motion: reduce), print {
  .study-desk .desk-motion { display: none; }
}
