:root {
  color-scheme: light;
  --canvas: #fdfcff;
  --surface: #fff;
  --surface-soft: #faf7ff;
  --lavender: #f0e9ff;
  --lavender-strong: #e7d9ff;
  --heading: #241638;
  --ink: #352a46;
  --muted: #60536f;
  --accent-ink: #63419b;
  --line: #e2d9ed;
  --line-strong: #c0addc;
  --focus: #7449c1;
  --pattern: #9470c75b;
  --action: #6237b8;
  --action-hover: #50289f;
  --on-action: #fff;
  --about: #e6d8ff;
  --about-hover: #f0e6ff;
  --on-about: #3b225f;
  --danger: #920d32;
  --danger-surface: #fff0f3;
  --danger-line: #f0cad5;
  --danger-action: #a52a47;
  --danger-hover: #882139;
  --backdrop: #20123088;
  --overlay-shadow: 0 24px 70px #26163b38;
  --shadow: 0 12px 32px -24px #391f6066;
  --hover-shadow: 0 16px 32px -22px #391f6077;
  --cover-study: #d3c7f8;
  --cover-club: #dec7f4;
  --cover-sport: #cbbaf4;
  --card-radius: 1.5rem;
  --header-height: 4.75rem;
  --ease-entrance: cubic-bezier(.22, .72, .28, 1);
  --ease-spring: cubic-bezier(.2, .85, .35, 1.35);
  --display: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-height) + 1.1rem);
  scrollbar-gutter: stable;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #17131f;
  --surface: #211a2c;
  --surface-soft: #271f34;
  --lavender: #302641;
  --lavender-strong: #403054;
  --heading: #f5efff;
  --ink: #e7def2;
  --muted: #c0b3d0;
  --accent-ink: #d6beff;
  --line: #41334f;
  --line-strong: #81699b;
  --focus: #c6a8ff;
  --pattern: #c6a8ff65;
  --action: #bfa6ff;
  --action-hover: #d2bcff;
  --on-action: #241338;
  --danger: #ffafc1;
  --danger-surface: #442232;
  --danger-line: #74394e;
  --danger-action: #a6324e;
  --danger-hover: #b63d5b;
  --backdrop: #110b1ac2;
  --overlay-shadow: 0 24px 70px #08061088;
  --shadow: 0 12px 32px -20px #07050baf;
  --hover-shadow: 0 16px 32px -20px #07050bc4;
  --cover-study: #47365f;
  --cover-club: #4c335a;
  --cover-sport: #452c67;
}

:root.lenis { scroll-behavior: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 17.5rem; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; }
h1, h2 { color: var(--heading); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.shell { width: min(calc(100% - 6rem), 84rem); margin-inline: auto; }
.icon-library, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: .6rem;
  left: .75rem;
  z-index: 20;
  padding: .55rem .9rem;
  border-radius: .65rem;
  color: var(--heading);
  background: var(--lavender-strong);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar {
  min-height: 4.7rem;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto auto auto;
  grid-template-areas: "mark nav actions auth";
  align-items: center;
  gap: .9rem;
}
.topbar > .wordmark { grid-area: mark; }
.topbar:has(.site-nav[hidden]) {
  grid-template-columns: minmax(max-content, 1fr) auto auto;
  grid-template-areas: "mark actions auth";
}
.wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .68rem;
  font-size: 1.64rem;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--heading);
  text-decoration: none;
  line-height: 1;
}
.wordmark-icon {
  display: block;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: .8rem;
  background: var(--lavender);
  color: var(--accent-ink);
}
.brand-ring { fill: none; stroke: currentColor; stroke-width: 1.25; opacity: .68; }
.brand-sprout { fill: none; stroke: var(--heading); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-orbit { transform-box: view-box; transform-origin: center; }
.brand-orbit path { fill: currentColor; stroke: var(--lavender); stroke-width: 1.25; stroke-linejoin: round; }
.site-nav { grid-area: nav; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .34rem .66rem;
  border-radius: 2rem;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:is(:hover, [aria-current]) { color: var(--heading); background: var(--lavender); }
.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: .5rem; }
.nav-auth { grid-area: auth; justify-self: end; display: flex; align-items: center; gap: .42rem; max-width: 100%; min-width: 0; }
.nav-account { display: grid; min-width: 0; max-width: 9rem; line-height: 1.25; padding-inline: .4rem; }
.nav-account strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); font-size: .88rem; }
.nav-account small { color: var(--muted); font-size: .77rem; }
.nav-saved {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 2.45rem;
  padding: .32rem .62rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: var(--heading);
  background: var(--surface-soft);
  font-size: .92rem;
  font-weight: 720;
  white-space: nowrap;
}
.nav-saved:hover { background: var(--lavender); }
.theme-control { position: relative; display: flex; align-items: center; color: var(--accent-ink); }
.theme-control select {
  min-height: 2.45rem;
  appearance: none;
  padding: .3rem 1.7rem .3rem 2rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface-soft);
  color: var(--heading);
  font-size: .91rem;
  font-weight: 700;
  cursor: pointer;
}
.theme-control select:hover { border-color: var(--line-strong); background: var(--lavender); }
.theme-control > .icon { position: absolute; top: 50%; width: 1rem; transform: translateY(-50%); pointer-events: none; }
.theme-icon { left: .65rem; }
.theme-chevron { right: .53rem; }
.saved-count, .result-pill {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  padding: .12rem .33rem;
  border-radius: 1rem;
  background: var(--lavender-strong);
  color: var(--heading);
  font-size: .83rem;
  font-weight: 780;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  min-height: 2.78rem;
  justify-content: center;
  align-items: center;
  gap: .52rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .78rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}
.nav-auth .btn { min-height: 2.45rem; padding: .39rem .74rem; border-radius: 2rem; font-size: .91rem; white-space: nowrap; }
.nav-login { background: #063729; color: #d9f97a; border-color: #437465; }
.nav-login:hover { background: #155242; }
.nav-signup { background: #d9f97a; color: #063729; }
.nav-signup:hover { background: #e8ffad; }
#nav-profile[aria-current] { background: var(--lavender); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); box-shadow: var(--shadow); }
.btn-outline { background: var(--surface); color: var(--heading); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--focus); background: var(--lavender); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
}

.hero-wrap { padding-top: 1.75rem; }
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: clamp(26rem, 32vw, 31.5rem);
  overflow: clip;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: linear-gradient(125deg, var(--surface) 4%, var(--lavender) 82%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4.05vw, 4.2rem);
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -18% -30% auto;
  z-index: -1;
  width: min(82%, 26rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pattern) 1px, transparent 1.8px) 0 0 / 12px 12px;
  mask-image: radial-gradient(ellipse, #000 35%, transparent 71%);
  pointer-events: none;
}
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  padding: .42rem .78rem;
  color: var(--accent-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99rem;
  font-size: .795rem;
  font-weight: 780;
  letter-spacing: .09em;
}
.hero h1 {
  margin: 1.35rem 0 1.2rem;
  font-size: clamp(2.6rem, 5.38vw, 5.15rem);
  font-weight: 820;
  letter-spacing: -.065em;
  line-height: 1.035;
}
.hero-copy p { color: var(--muted); max-width: 29rem; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.62; }
.welcome-copy { padding-block: clamp(2.25rem, 6vw, 5.2rem); }
.welcome-copy h1 { margin-bottom: .95rem; }
.hero-actions { margin-top: 1.7rem; display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.4rem; }
.hero-actions .btn { min-height: 3.15rem; padding-inline: 1.35rem; }
.hero-visual { position: relative; min-width: 0; overflow: hidden; background: var(--cover-study); }
.hero-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.discovery { margin-top: clamp(1.5rem, 3.4vw, 3.2rem); }
.discovery-banner, .discovery-question {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: clamp(1.35rem, 5vw, 4.6rem);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.discovery-banner {
  min-block-size: clamp(22rem, 58svh, 34rem);
  overflow: clip;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 94% 12%, var(--lavender-strong), var(--lavender) 66%);
}
.discovery-copy h2 {
  max-width: 21ch;
  font-size: clamp(1.85rem, 3.6vw, 3.6rem);
  font-weight: 810;
  letter-spacing: -.046em;
  text-wrap: balance;
}
.discovery-banner h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.4vw, 4.65rem);
}
.discovery-copy h2 + p { max-width: 36ch; margin-top: .85rem; color: var(--muted); }
.discovery-step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  margin-bottom: .8rem;
  font-size: .875rem;
  font-weight: 700;
}
.discovery-step span { padding: .13rem .58rem; border: 1px solid currentColor; border-radius: 2rem; }
.discovery-step { color: var(--accent-ink); }
.discovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.3rem; }
.discovery-link { font-weight: 650; text-underline-offset: .23em; text-decoration-thickness: 1px; }
.discovery-link:hover { text-decoration-thickness: 2px; }
.discovery-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 26rem);
  aspect-ratio: 1.16;
  margin-inline: auto;
  isolation: isolate;
}
.discovery-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pattern) 1px, transparent 1.7px) 0 0 / 13px 13px;
  mask-image: radial-gradient(ellipse, #000 32%, transparent 72%);
  content: "";
}
.discovery-orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 85%;
  height: auto;
  transform: translate(-50%, -50%);
  fill: none;
  pointer-events: none;
}
.discovery-orbit circle { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.discovery-orbit--star { z-index: 1; color: var(--accent-ink); }
.discovery-orbit-star {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: center;
  transform: rotate(70deg);
}
.discovery-marker {
  position: absolute;
  z-index: 2;
  width: 20%;
  aspect-ratio: 1;
}
.discovery-tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 27%;
  background: var(--tile-background);
  color: var(--heading);
  box-shadow: var(--shadow);
  rotate: var(--tilt);
}
.discovery-marker .icon { width: 49%; height: 49%; }
.discovery-marker--book, .discovery-marker--ball { z-index: 3; }
.discovery-marker--book {
  top: 11%;
  left: 11%;
  --tile-background: var(--surface);
  --tilt: -14deg;
  --drift: clamp(.25rem, .9vw, .65rem);
  --lift: clamp(.48rem, 1.5vw, 1.05rem);
  --rock: 10deg;
}
.discovery-marker--sprout { width: 36%; top: 29%; left: 32%; --tile-background: var(--lavender-strong); --tilt: -6deg; }
.discovery-marker--ball {
  right: 9%;
  bottom: 13%;
  --tile-background: var(--cover-club);
  --tilt: 13deg;
  --drift: clamp(-.78rem, -1.05vw, -.28rem);
  --lift: clamp(.55rem, 1.65vw, 1.15rem);
  --rock: 11deg;
}

.discovery-question { margin-top: 1rem; min-block-size: 19rem; border: 1px solid var(--line); }
.discovery-question--interests { background: var(--lavender); }
.discovery-question--days { background: var(--surface-soft); }
.discovery-answers { min-width: 0; }
.discovery-answers .day-choice { min-height: 2.75rem; padding-inline: .85rem; }
.interest-pills { display: flex; flex-wrap: wrap; gap: .52rem; }
.interest-pill {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.55rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  color: var(--heading);
  font-size: .9rem;
  font-weight: 690;
}
.interest-pill:hover { border-color: var(--line-strong); }
.interest-pill[aria-pressed="true"] { border-color: var(--line-strong); background: var(--lavender-strong); }

@keyframes brand-orbit { to { transform: rotate(1turn); } }
@keyframes ambient-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-.75rem, -.62rem, 0); }
}
@keyframes discovery-orbit-spin { to { transform: rotate(430deg); } }
@keyframes discovery-bob {
  0%, 100% { translate: calc(var(--drift) * -.35) calc(var(--lift) * .22); }
  50% { translate: var(--drift) calc(var(--lift) * -1); }
}
@keyframes discovery-rock {
  0%, 100% { rotate: calc(var(--tilt) - var(--rock)); }
  50% { rotate: calc(var(--tilt) + var(--rock)); }
}
@keyframes hero-in {
  from { opacity: .38; transform: translateY(.6rem); }
  to { opacity: 1; transform: none; }
}

@keyframes discovery-tile-enter {
  from { transform: translateY(1.5rem) scale(.88); }
}

@keyframes scroll-reveal {
  from { opacity: .58; translate: 0 .85rem; scale: .98; }
}

@media (min-width: 53.001rem) {
  .course-grid > [data-reveal]:nth-child(3n + 2) { --reveal-delay: 45ms; }
  .course-grid > [data-reveal]:nth-child(3n + 3) { --reveal-delay: 90ms; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-orbit { animation: brand-orbit 7s linear infinite; }
  .hero-copy::before { animation: ambient-drift 11s ease-in-out infinite; }
  .discovery-orbit-star { animation: discovery-orbit-spin 4.5s linear infinite; }
  .discovery-marker--book .discovery-tile {
    animation: discovery-bob 4s ease-in-out infinite, discovery-rock 3.5s ease-in-out -.9s infinite;
  }
  .discovery-marker--ball .discovery-tile {
    animation: discovery-bob 4.65s ease-in-out -2.15s infinite, discovery-rock 3.9s ease-in-out -2.6s infinite;
  }
  .hero-copy > * { animation: hero-in .48s var(--ease-entrance) both; }
  .hero-copy h1 { animation-delay: .06s; }
  .hero-copy p { animation-delay: .12s; }
  .hero-actions { animation-delay: .18s; }
  [data-reveal="pending"]:not(:focus-within) { opacity: .58; translate: 0 .85rem; scale: .98; }
  [data-reveal="shown"] {
    animation: scroll-reveal .58s var(--ease-entrance) var(--reveal-delay, 0ms) backwards;
  }
  @supports (animation-timeline: view()) {
    .discovery-scene { view-timeline: --welcome block; }
    .discovery-marker {
      animation: discovery-tile-enter linear both;
      animation-timeline: --welcome;
      animation-range: entry 12% cover 55%;
    }
    .discovery-marker--book { animation-range: entry 3% cover 44%; }
    .discovery-marker--ball { animation-range: entry 20% cover 61%; }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 53.001rem) and (min-height: 43rem) {
  @supports (animation-timeline: view()) {
    .discovery-banner { position: sticky; top: calc(var(--header-height) + 1.1rem); }
    .discovery-scene::after { display: block; block-size: clamp(4rem, 15vh, 8rem); content: ""; }
  }
}
.smart-panel, .studio-panel {
  padding: clamp(1.1rem, 2.8vw, 2.55rem);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.smart-panel { margin-top: .95rem; }
.smart-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .8rem; margin-bottom: 1.12rem; }
.smart-heading h2 { color: var(--heading); font-size: clamp(1.45rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -.04em; }
.smart-heading p { margin-top: .36rem; color: var(--muted); }
.smart-heading .btn { font-size: .9rem; }

.marketplace { padding-block: clamp(2.25rem, 4vw, 3.8rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading h2 {
  color: var(--heading);
  font-size: clamp(1.95rem, 3.4vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -.053em;
}
.section-heading p { color: var(--muted); margin-top: .48rem; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.market-age-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-top: .75rem; }
.market-age-filters .field { min-width: min(100%, 11rem); }
.market-age-filters .filter { min-height: 2.8rem; text-align: left; }
.filters { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.filter {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .52rem .85rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--heading);
  background: var(--surface);
  font-weight: 680;
  font-size: .93rem;
}
.filter:hover { background: var(--lavender); border-color: var(--line-strong); }
.filter[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.filter[aria-pressed="true"]:hover { background: var(--action-hover); }
.search-field { position: relative; flex: 0 1 18.3rem; color: var(--muted); }
.search-field .icon { position: absolute; top: 50%; left: .8rem; transform: translateY(-50%); pointer-events: none; }
.search-field input {
  width: 100%;
  min-height: 2.65rem;
  padding: .42rem .7rem .42rem 2.42rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--ink);
}
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.results { margin: .9rem 0 .62rem; color: var(--muted); font-size: .875rem; font-weight: 650; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  transition: border-color 160ms, box-shadow 200ms, transform 300ms var(--ease-spring);
}
.course-card:hover { border-color: var(--line-strong); box-shadow: var(--hover-shadow); }
.course-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.bookmark {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .7rem;
  color: var(--heading);
  background: var(--surface);
}
button.bookmark:hover { background: var(--lavender); border-color: var(--line-strong); }
.bookmark[aria-pressed="true"] { border-color: var(--line-strong); background: var(--lavender-strong); }
.bookmark[aria-pressed="true"] .icon { fill: var(--heading); }
.bookmark--inline { position: static; }
.bookmark--detail { width: 2.78rem; height: 2.78rem; }
.course-cover {
  position: relative;
  height: clamp(8.6rem, 13vw, 12rem);
  overflow: hidden;
  isolation: isolate;
  color: var(--accent-ink);
  --cover-accent: var(--cover-study);
  background: radial-gradient(circle at 78% 18%, var(--lavender) 0 20%, transparent 20.5%),
    linear-gradient(125deg, var(--surface-soft), var(--cover-accent));
}
.cover--club { --cover-accent: var(--cover-club); }
.cover--sport { --cover-accent: var(--cover-sport); }
.cover-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: .55;
}
.cover-placeholder .icon { width: 4.1rem; height: 4.1rem; stroke-width: 1; }
.course-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.category-badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  padding: .34rem .62rem;
  border: 1px solid var(--line);
  border-radius: .48rem;
  font-weight: 750;
  font-size: .81rem;
  line-height: 1.1;
  color: var(--heading);
  background: var(--surface);
}
.course-body { display: flex; flex-direction: column; flex: 1; padding: 1.12rem 1.18rem .95rem; overflow-wrap: anywhere; }
.course-body h3 { margin-bottom: .62rem; color: var(--ink); font-size: clamp(1.17rem, 1.72vw, 1.53rem); font-weight: 800; letter-spacing: -.034em; }
.course-body p { display: flex; align-items: flex-start; gap: .47rem; }
.course-body p .icon { color: var(--accent-ink); margin-top: .18rem; font-size: .91em; }
.course-teacher { color: var(--ink); font-size: .95rem; font-weight: 680; }
.course-phone { color: var(--muted); font-size: .89rem; margin-top: .1rem; }
.course-meta { margin-top: .72rem; margin-bottom: .75rem; display: grid; gap: .23rem; color: var(--muted); font-size: .875rem; }
.course-meta .course-age { color: var(--heading); font-weight: 700; }
.course-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  padding-top: .62rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 690;
}
.course-bottom span { display: inline-flex; align-items: center; gap: .35rem; }
.course-open { padding: .2rem 0; border: 0; color: var(--heading); background: transparent; font-size: .875rem; font-weight: 770; }
button.course-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--card-radius); }
button.course-open:hover { text-decoration: underline; text-underline-offset: .25em; }
.course-open:focus-visible { outline: 0; text-decoration: underline; }
.course-card--preview .course-open { cursor: default; }
.course-card--preview:hover { border-color: var(--line); box-shadow: var(--shadow); }
.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 2.15rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 1.15rem;
  color: var(--muted);
  text-align: center;
}
.empty-state h3 { color: var(--heading); }
.empty-state .btn { margin-top: .45rem; }
.empty-icon, .mini-course-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: var(--lavender); color: var(--heading); }

.studio-section { margin-bottom: clamp(1.8rem, 4vw, 3.7rem); }
.studio-classes { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.studio-classes h3 { color: var(--heading); font-size: clamp(1.25rem, 2.5vw, 1.65rem); letter-spacing: -.025em; }
.studio-class-list { display: grid; gap: .6rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.studio-class {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
}
.studio-class-info { min-width: 0; }
.studio-class h4 { margin: .23rem 0 .35rem; color: var(--heading); font-size: 1.1rem; overflow-wrap: anywhere; }
.studio-class-category { display: inline-flex; align-items: center; gap: .3rem; color: var(--heading); font-size: .86rem; font-weight: 700; }
.studio-class-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; padding: 0; list-style: none; }
.studio-class-meta li { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.studio-class .btn { min-height: 2.5rem; }
.studio-class-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.studio-class-empty { margin-top: .8rem; padding: .8rem 1rem; border-radius: .8rem; background: var(--surface-soft); color: var(--muted); }
.studio-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .95rem;
  padding: clamp(.95rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface-soft);
}
.studio-access-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .95rem;
  background: var(--lavender-strong);
  color: var(--heading);
}
.studio-access-icon .icon { width: 1.75rem; height: 1.75rem; }
.studio-access > div { flex: 1 1 15rem; min-width: 0; }
.studio-access h3 { color: var(--heading); font-size: 1.2rem; }
.studio-access p { margin-top: .32rem; color: var(--muted); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.role-tile {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .45rem;
  padding: 1.08rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.role-tile:hover { border-color: var(--line-strong); background: var(--surface-soft); box-shadow: var(--shadow); }
.role-icon { display: grid; width: 2.75rem; height: 2.75rem; margin-bottom: .2rem; place-items: center; background: var(--lavender); color: var(--heading); border-radius: .8rem; }
.role-icon .icon { width: 1.47rem; height: 1.47rem; }
.role-tile--teacher .role-icon { background: var(--lavender-strong); }
.role-tile--parent .role-icon { background: var(--cover-study); }
.role-tile strong { color: var(--heading); font-size: 1.1rem; line-height: 1.2; }
.role-tile > span:last-child { color: var(--muted); font-size: .94rem; }

.site-footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.55rem; }
.footer-inner .wordmark { font-size: 1.31rem; }
.footer-inner p { color: var(--muted); font-size: .88rem; }
.footer-location { display: inline-flex; align-items: center; gap: .3rem; color: var(--heading); font-size: .88rem; font-weight: 690; white-space: nowrap; }
.noscript { padding-block: 1rem; }
.about-button {
  position: fixed;
  z-index: 6;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 2.65rem;
  padding: .52rem .88rem;
  border: 1px solid var(--line-strong);
  border-radius: 2rem;
  background: var(--about);
  color: var(--on-about);
  box-shadow: var(--shadow);
  font-size: .9rem;
}
.about-button:hover { background: var(--about-hover); box-shadow: var(--hover-shadow); }
.about-copy { color: var(--muted); }

.profile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 36rem);
  height: 100dvh;
  max-width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: var(--card-radius) 0 0 var(--card-radius);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--overlay-shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
.profile-drawer[open] { animation: drawer-in 230ms cubic-bezier(.22, .72, .28, 1) both; }
.profile-drawer::backdrop { background: var(--backdrop); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-frame { min-height: 100%; }
.drawer-heading {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.28rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.drawer-heading h2 { color: var(--heading); font-size: 1.74rem; font-weight: 800; letter-spacing: -.043em; }
.drawer-close { color: var(--heading); background: var(--surface-soft); border-color: var(--line); }
.drawer-close:hover { background: var(--lavender); }
.drawer-content { padding: 1.2rem; }
.profile-layout { display: grid; gap: .85rem; }
.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem .9rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  border-radius: var(--card-radius);
  background: radial-gradient(ellipse at bottom right, var(--lavender-strong), var(--lavender) 70%);
  color: var(--heading);
  overflow-wrap: anywhere;
}
.profile-avatar { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.1rem; background: var(--lavender-strong); color: var(--heading); }
.profile-avatar .icon { width: 2.4rem; height: 2.4rem; }
.profile-role { color: var(--accent-ink); font-size: .875rem; font-weight: 690; }
.profile-summary h3 { margin-block: .18rem; font-size: 1.55rem; letter-spacing: -.035em; }
.profile-summary p { color: var(--muted); }
.profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .42rem; }
.profile-box { min-width: 0; padding: clamp(1rem, 2.5vw, 1.35rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
.profile-box h3 { color: var(--heading); font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.028em; }
.profile-save { align-items: center; }
.form-status { color: var(--accent-ink); font-size: .88rem; font-weight: 670; }
.lock-note { display: flex; align-items: center; gap: .45rem; margin: .52rem 0 1.25rem; color: var(--muted); font-size: .9rem; }
.profile-classes-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .8rem; }
.profile-classes > p { color: var(--muted); }
.profile-course-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.profile-course-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .55rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: var(--heading);
  text-align: left;
  overflow-wrap: anywhere;
}
.profile-course-open:hover { background: var(--lavender); }
.profile-course-open small { display: block; font-size: .875rem; color: var(--muted); }
.profile-course-count { font-size: .875rem; font-weight: 680; }
.notice-box { background: var(--surface-soft); }
.notice-box h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; }
.notice-box h3 .icon { color: var(--accent-ink); }
.notice-empty { color: var(--muted); }
.notice-list { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.notice-entry {
  display: grid;
  justify-items: start;
  gap: .35rem;
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--lavender);
  color: var(--heading);
  text-align: left;
  overflow-wrap: anywhere;
}
.notice-entry:hover { background: var(--lavender-strong); border-color: var(--line-strong); }
.notice-line { display: flex; gap: .4rem; align-items: baseline; color: var(--muted); font-size: .89rem; }
.notice-line .icon { align-self: center; color: var(--accent-ink); }
.notice-line b { color: var(--heading); font-weight: 700; }

.dialog {
  width: min(calc(100% - 2rem), 39.5rem);
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--overlay-shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog--details { width: min(calc(100% - 2rem), 43rem); }
.dialog--roles { width: min(calc(100% - 2rem), 50.5rem); }
.dialog--wide { width: min(calc(100% - 2rem), 65rem); }
.dialog[open] { animation: dialog-in 170ms ease-out both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: translateY(0); } }
.dialog::backdrop { background: var(--backdrop); }
.dialog-frame { position: relative; }
.dialog-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  color: var(--heading);
  background: var(--surface-soft);
  border-color: var(--line);
}
.dialog-close:hover { background: var(--lavender); }
.dialog-body { padding: 1.55rem; }
.dialog-heading { margin-bottom: 1.15rem; padding-right: 2.3rem; overflow-wrap: anywhere; }
.dialog-heading h2 { color: var(--heading); font-size: clamp(1.46rem, 3.4vw, 2.08rem); font-weight: 800; letter-spacing: -.037em; }
.dialog-heading p { margin-top: .44rem; color: var(--muted); }
.auth-form { display: grid; gap: .8rem; }
.auth-form .form-actions, .auth-form .form-error { margin-top: 0; }
.auth-step {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--accent-ink);
  font-size: .84rem;
  font-weight: 720;
}
.auth-switch {
  display: block;
  margin: 1.05rem auto 0;
  padding: .32rem;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.finder-layout, .studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
}
.studio-layout { grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); }
.finder-form { display: grid; gap: .95rem; min-width: 0; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: .44rem; padding: 0; color: var(--ink); font-size: .94rem; font-weight: 750; }
.choice-group small { margin-left: .28rem; color: var(--muted); font-size: .84rem; font-weight: 550; }
.choice-list, .day-choices { display: flex; align-items: center; flex-wrap: wrap; gap: .43rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 2.4rem;
  padding: .42rem .62rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--heading);
  background: var(--surface-soft);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.choice:hover { border-color: var(--line-strong); }
.choice:has(:checked) { border-color: var(--line-strong); background: var(--lavender-strong); font-weight: 750; }
.choice:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.day-choice { min-width: 2.3rem; justify-content: center; padding-inline: .4rem; }
.finder-clear { justify-self: start; min-height: 2.4rem; font-size: .9rem; }
.finder-results, .studio-preview {
  min-width: 0;
  padding: .92rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface-soft);
}
.finder-results-header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.finder-results h3, .studio-preview h3 { color: var(--heading); font-size: 1.12rem; letter-spacing: -.02em; }
.finder-message { color: var(--muted); }
.recommendation-list { display: grid; gap: .46rem; margin: 0; padding: 0; list-style: none; }
.recommendation { display: flex; align-items: center; gap: .4rem; padding: .42rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.recommendation:hover { border-color: var(--line-strong); }
.recommendation-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .22rem;
  border: 0;
  border-radius: .4rem;
  color: var(--heading);
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
}
.recommendation-open small { display: block; color: var(--muted); font-size: .84rem; }
.recommendation-open .recommendation-match { color: var(--accent-ink); font-weight: 680; }
.studio-preview { position: sticky; top: calc(var(--header-height) + 1.05rem); }
.studio-preview h3 { margin-bottom: .73rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field--wide { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; gap: .38rem; margin-bottom: .31rem; color: var(--ink); font-size: .9rem; font-weight: 690; }
.field label .icon { color: var(--accent-ink); }
.field-control { position: relative; }
.field :is(input:not([type="file"]), select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: .68rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}
.field :is(input, textarea)::placeholder { color: var(--muted); font-size: .94rem; opacity: 1; }
.field input[readonly] { background: var(--surface-soft); border-style: dashed; color: var(--muted); }
.field input[readonly]::-webkit-inner-spin-button { display: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field textarea { display: block; resize: vertical; }
.field select { appearance: none; padding-right: 2.1rem; }
.field select:invalid { color: var(--muted); }
.field select option { color: var(--ink); }
.field-select .icon { position: absolute; right: .65rem; top: .76rem; color: var(--muted); pointer-events: none; }
.field-hint { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
.field label.file-picker {
  position: relative;
  min-height: 2.85rem;
  margin: 0;
  padding: .6rem .8rem;
  border: 1px dashed var(--line-strong);
  border-radius: .68rem;
  cursor: pointer;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}
.file-picker:hover { background: var(--lavender); }
.file-picker:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.file-picker input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.form-error { padding: .55rem .65rem; margin-top: .8rem; border-radius: .55rem; color: var(--danger); background: var(--danger-surface); font-size: .92rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: 1.2rem; }

.course-cover--large { height: clamp(8rem, 23vw, 11.4rem); }
.course-cover--large .category-badge { top: 1rem; left: 1rem; }
.detail-body .dialog-heading { padding-right: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .68rem; margin: 0; }
.detail-item { position: relative; padding: .7rem .7rem .7rem 3.25rem; border-radius: .7rem; background: var(--surface-soft); overflow-wrap: anywhere; }
.detail-item--wide { grid-column: 1 / -1; }
.detail-icon { position: absolute; top: .7rem; left: .7rem; display: grid; place-items: center; width: 1.94rem; height: 1.94rem; border-radius: .49rem; background: var(--lavender); color: var(--heading); }
.detail-item dt { color: var(--muted); font-size: .85rem; font-weight: 650; }
.detail-item dd { margin: .12rem 0 0; color: var(--ink); font-size: .95rem; font-weight: 680; white-space: pre-wrap; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .55rem; margin-top: 1.1rem; }
.btn-danger { background: var(--danger-action); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.detail-back { margin-inline-end: auto; }
.enrolled-label { display: inline-flex; align-items: center; gap: .45rem; padding: .54rem .8rem; border-radius: .63rem; color: var(--accent-ink); background: var(--lavender); font-weight: 720; }
.full-label { padding: .54rem .75rem; border-radius: .63rem; background: var(--surface-soft); color: var(--muted); font-weight: 690; }
.roster { margin-top: 1.2rem; }
.roster h3 { margin-bottom: .55rem; color: var(--heading); font-size: 1.1rem; }
.roster p { color: var(--muted); }
.roster-scroll { border-radius: .7rem; border: 1px solid var(--line); overflow: auto; }
.roster table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.roster :is(th, td) { padding: .53rem .65rem; }
.roster th { background: var(--lavender); color: var(--heading); }
.roster td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.roster :is(th, td):last-child { white-space: nowrap; }

.notification {
  display: flex;
  align-items: center;
  gap: .55rem;
  position: fixed;
  z-index: 10;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.25rem);
  max-width: calc(100% - 2.4rem);
  padding: .68rem 1rem;
  border-radius: .82rem;
  border: 1px solid var(--line-strong);
  background: var(--lavender);
  color: var(--heading);
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms, transform 160ms;
}
.notification--visible { opacity: 1; transform: translateY(0); }
.notification--error { color: var(--danger); background: var(--danger-surface); border-color: var(--danger-line); }

@media (max-width: 67rem) {
  .shell { width: calc(100% - 4rem); }
}
@media (max-width: 64rem) {
  .topbar { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mark actions" "nav auth"; gap: .42rem .6rem; padding-block: .55rem .52rem; }
  .site-nav { flex-wrap: wrap; gap: .2rem .3rem; }
  .site-nav a { font-size: .89rem; }
}
@media (max-width: 53rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.25rem; }
  .hero h1 { font-size: clamp(3rem, 8.25vw, 4.5rem); }
  .hero-visual { min-height: clamp(17rem, 46vw, 25rem); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-cover:not(.course-cover--large) { height: clamp(9rem, 23vw, 13rem); }
}
@media (max-width: 42rem) {
  .section-heading { align-items: start; flex-direction: column; }
  .marketplace { padding-block: 2.05rem 2.3rem; }
  .market-toolbar { align-items: stretch; flex-direction: column; gap: .65rem; }
  .search-field { flex: auto; }
  .discovery-banner, .discovery-question, .finder-layout, .studio-layout { grid-template-columns: 1fr; }
  .discovery-banner, .discovery-question { min-block-size: auto; }
  .discovery-banner { gap: .9rem; }
  .discovery-art { width: min(68%, 13rem); }
  .studio-preview { position: static; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: .75rem .5rem; }
  .footer-location { grid-column: 2; grid-row: 1; }
  .footer-inner p { grid-column: 1 / -1; order: 1; }
}
@media (max-width: 36rem) {
  .topbar { grid-template-areas: "mark actions" "nav nav" "auth auth"; }
  .topbar:has(.site-nav[hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "mark actions" "auth auth";
  }
  .nav-auth { gap: .34rem; }
  .site-nav a { min-height: 2rem; padding: .24rem .32rem; font-size: .83rem; }
  .nav-saved, .nav-auth .btn { min-height: 2.2rem; padding: .32rem .55rem; font-size: .84rem; }
  .header-actions { gap: .34rem; }
  .theme-control select { min-height: 2.2rem; padding-left: .65rem; font-size: .84rem; }
  .theme-control > .theme-icon { display: none; }
  .topbar .wordmark { gap: .45rem; font-size: 1.38rem; }
  .topbar .wordmark-icon { width: 2rem; height: 2rem; border-radius: .62rem; }
}
@media (max-width: 34rem) {
  .shell { width: calc(100% - 1.5rem); }
  .hero-wrap { padding-top: .75rem; }
  .hero { border-radius: 1.05rem; }
  .hero-copy { padding: 1.55rem 1.28rem 1.65rem; }
  .hero h1 { font-size: clamp(2.25rem, 9.9vw, 3.4rem); margin-block: .95rem .78rem; }
  .hero-actions { margin-top: 1.18rem; gap: .62rem .9rem; }
  .hero-actions .btn { min-height: 2.8rem; padding-inline: .9rem; }
  .hero-visual { min-height: clamp(13rem, 57vw, 16.5rem); }
  .filters { gap: .33rem; }
  .filter { min-height: 2.55rem; padding: .5rem .53rem; font-size: .875rem; gap: .27rem; }
  .course-grid { grid-template-columns: 1fr; gap: .9rem; }
  .course-cover:not(.course-cover--large) { height: clamp(8.8rem, 45vw, 13rem); }
  .course-body h3 { font-size: 1.28rem; }
  .profile-drawer { border-radius: 0; border-inline-start: 0; }
  .drawer-heading { padding: .8rem 1rem; }
  .drawer-content { padding: .85rem; }
  .profile-course-open { grid-template-columns: auto minmax(0, 1fr); }
  .profile-course-count { grid-column: 2; }
  .dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .dialog-body { padding: 1.1rem; }
  .dialog-close { top: .55rem; right: .55rem; }
  .role-grid--dialog, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .role-grid--dialog .role-tile { grid-template-columns: auto 1fr; align-items: center; gap: .3rem .65rem; padding: .75rem; }
  .role-grid--dialog .role-icon { grid-row: span 2; margin: 0; }
}
@media (max-width: 22rem) {
  .nav-saved-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .topbar .wordmark-icon { width: 1.8rem; height: 1.8rem; }
}

:is(.btn, .filter, .interest-pill, .nav-saved, .icon-btn, button.bookmark, .role-tile) {
  transition: background-color 150ms, color 150ms, border-color 150ms, box-shadow 200ms,
    transform 280ms var(--ease-spring);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.btn, .filter, .interest-pill, .nav-saved, .icon-btn, button.bookmark, .role-tile):not(:disabled):hover {
    transform: translateY(-2px) scale(1.025);
  }
  .course-card:not(.course-card--preview):hover { transform: translateY(-.25rem) scale(1.01); }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.btn, .filter, .interest-pill, .nav-saved, .icon-btn, button.bookmark, .role-tile):not(:disabled):active {
    transform: scale(.975);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
