/* BOOONG teacher curation home */

.curation-app {
  --desk-ink: var(--color-text-primary);
  --desk-ink-soft: var(--color-text-secondary);
  --desk-paper: var(--color-surface-subtle);
  --desk-white: var(--color-surface);
  --desk-line: var(--color-border-strong);
  --desk-muted: var(--color-text-secondary);
  --desk-lime: var(--color-highlight-bg);
  --desk-blue: var(--color-primary);
  --desk-coral: var(--color-accent);
  min-height: 100vh;
  background: var(--color-surface-sidebar);
  color: var(--desk-ink);
  font-family: var(--font-sans);
}

.curation-app *,
.curation-app *::before,
.curation-app *::after {
  box-sizing: border-box;
}

.curation-app a,
.curation-app button,
.curation-app input {
  font: inherit;
}

.curation-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--desk-paper);
}

.curation-shell > main {
  padding: 0 clamp(24px, 5vw, 80px) 96px;
}

.curation-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  border-bottom: 1px solid var(--desk-line);
  background: color-mix(in srgb, var(--desk-paper) 92%, transparent);
  padding: 12px clamp(24px, 5vw, 80px);
  backdrop-filter: blur(18px);
}

.curation-brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 11px;
  min-height: var(--space-11);
  color: var(--desk-ink);
  text-decoration: none;
}

.curation-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--desk-ink);
  color: var(--desk-lime);
}

.curation-brand__mark svg,
.teacher-entry__brand svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.curation-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.curation-brand b {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.curation-brand small {
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 750;
}

.curation-topbar__actions {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-2);
  border-left: 1px solid var(--desk-line);
  padding-left: var(--space-5);
}

.curation-topbar__favorites {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--space-11);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 var(--space-1);
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.curation-topbar__favorites b {
  display: grid;
  place-items: center;
  min-width: var(--space-6);
  height: var(--space-6);
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-sm);
  background: var(--desk-white);
  color: var(--desk-blue);
  font-size: 11px;
  line-height: 1;
}

.curation-topbar__favorites.is-current {
  color: var(--desk-blue);
}

.curation-topbar__favorites.is-current b {
  border-color: var(--desk-blue);
  background: var(--desk-blue);
  color: var(--desk-white);
}

.curation-topbar__favorites:hover,
.curation-topbar__favorites:focus-visible {
  background: transparent;
  color: var(--desk-blue);
}

.curation-topbar__favorites:hover b,
.curation-topbar__favorites:focus-visible b {
  border-color: var(--desk-blue);
}

.curation-app a:focus-visible,
.curation-app button:focus-visible,
.curation-app input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--desk-blue) 35%, transparent);
  outline-offset: 3px;
}

.curation-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  min-height: 372px;
  border-bottom: 1px solid var(--desk-line);
  padding: 52px 0;
}

.curation-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: var(--space-4);
  max-width: 850px;
}

.curation-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 30px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--desk-blue) 10%, var(--desk-paper));
  padding: 0 12px;
  color: var(--desk-blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.curation-hero h1 {
  margin: 0;
  color: var(--desk-ink);
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.curation-hero h1 em {
  position: relative;
  color: var(--desk-blue);
  font-style: normal;
  white-space: nowrap;
}

.curation-hero h1 em::after {
  position: absolute;
  right: 1%;
  bottom: -9px;
  left: 2%;
  height: 4px;
  border-radius: 60% 45% 55% 38%;
  background: var(--desk-coral);
  content: "";
  opacity: 0.72;
  transform: rotate(-1deg);
}

.curation-hero__copy > p {
  max-width: 34rem;
  margin: 0;
  color: var(--desk-ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.curation-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(680px, 100%);
  min-height: 62px;
  margin-top: 6px;
  border: 2px solid var(--desk-ink);
  border-radius: var(--radius-sm);
  background: var(--desk-white);
  padding: 7px 9px 7px 16px;
  box-shadow: 7px 7px 0 var(--desk-ink);
}

.curation-search > span {
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-18deg);
}

.curation-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--desk-ink);
  font-size: 17px;
  font-weight: 650;
}

.curation-search input::placeholder {
  color: var(--color-text-tertiary);
}

.curation-search kbd {
  display: grid;
  place-items: center;
  min-width: 60px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--desk-ink);
  color: var(--desk-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.curation-search-results {
  width: min(680px, 100%);
  border-top: 2px solid var(--desk-ink);
  border-bottom: 1px solid var(--desk-line);
  background: var(--desk-paper);
}

.curation-search-results header,
.curation-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.curation-search-results header {
  padding: var(--space-2) 0;
}

.curation-search-results header span {
  color: var(--desk-blue);
  font-size: 12px;
  font-weight: 900;
}

.curation-search-results header small,
.curation-search-results a small,
.curation-search-results p {
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 800;
}

.curation-search-results ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.curation-search-results li {
  border-top: 1px solid var(--desk-line);
}

.curation-search-results a {
  min-height: 52px;
  padding: var(--space-2) 0;
  color: var(--desk-ink);
  text-decoration: none;
}

.curation-search-results a > span {
  display: grid;
  gap: 1px;
}

.curation-search-results a strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.curation-search-results a i {
  color: var(--desk-blue);
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
}

.curation-search-results a:hover,
.curation-search-results a:focus-visible {
  background: var(--desk-lime);
}

.curation-search-results p {
  margin: 0;
  padding: var(--space-3) 0;
}

.curation-popular {
  display: grid;
  align-content: center;
  overflow: hidden;
  border: 2px solid var(--desk-ink);
  background: var(--desk-white);
  box-shadow: 6px 6px 0 var(--desk-ink);
}

.curation-popular header,
.curation-popular a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.curation-popular header {
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--desk-ink);
  background: var(--desk-ink);
  padding: var(--space-3) var(--space-4);
}

.curation-popular header span,
.curation-popular a > b {
  color: var(--desk-blue);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.curation-popular header span {
  color: var(--desk-white);
}

.curation-popular a > b {
  font-size: 12px;
  letter-spacing: 0;
}

.curation-popular header small {
  color: var(--desk-white);
  font-size: 11px;
  font-weight: 800;
}

.curation-popular ol {
  display: grid;
  margin: 0;
  padding: 0 var(--space-4);
  list-style: none;
}

.curation-popular li {
  border-top: 1px solid var(--desk-line);
}

.curation-popular li > a {
  grid-template-columns: auto minmax(0, 1fr) minmax(10rem, 0.48fr) auto;
  min-height: 80px;
  padding: var(--space-2) 0;
  color: var(--desk-ink);
  text-decoration: none;
}

.curation-popular a > span {
  display: grid;
  gap: 2px;
}

.curation-popular a small {
  color: var(--desk-muted);
  font-size: 11px;
  font-weight: 800;
}

.curation-popular__lesson > small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.curation-popular__lesson > small > span {
  white-space: nowrap;
}

.curation-popular__lesson > small > span + span {
  margin-left: var(--space-2);
  padding-left: var(--space-2);
  border-left: 1px solid var(--desk-line);
}

.curation-popular__lesson .curation-popular__subject {
  color: var(--desk-muted);
}

.curation-popular__lesson .curation-popular__unit {
  color: var(--desk-ink-soft);
}

.curation-popular__lesson .curation-popular__kind {
  color: var(--desk-muted);
}

.curation-popular a strong {
  color: var(--desk-ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.curation-popular__meta {
  align-self: stretch;
  align-content: center;
  border-left: 1px solid var(--desk-line);
  padding-left: var(--space-3);
}

.curation-popular__meta small:first-child {
  color: var(--desk-ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curation-popular__metrics {
  display: flex;
  gap: var(--space-3);
}

.curation-popular__metrics > span {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.curation-popular__metrics b {
  color: var(--desk-ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.curation-popular__metrics small {
  color: var(--desk-muted);
  font-size: 10px;
  font-weight: 800;
}

.curation-popular a i {
  color: var(--desk-blue);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.curation-popular a:hover,
.curation-popular a:focus-visible {
  background: var(--desk-lime);
}

.unit-axis {
  padding: 70px 0 0;
}

.unit-axis__head {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: 24px;
}

.unit-axis__head > div {
  display: grid;
  gap: 6px;
}

.unit-axis__head > div:first-child > span {
  color: var(--desk-blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.unit-axis__head h2 {
  margin: 0;
  color: var(--desk-ink);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.subject-roller {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  border: 1px solid var(--desk-line);
  border-radius: var(--radius);
  background: var(--desk-white);
  padding: var(--space-3);
  user-select: none;
  touch-action: pan-y;
}

.subject-roller__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--desk-line);
  padding-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.subject-roller__meta span {
  color: var(--desk-blue);
}

.subject-roller__meta strong {
  color: var(--desk-ink);
  font-size: 12px;
  font-weight: 800;
}

.subject-roller__groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  min-width: 0;
}

.subject-roller__group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
}

.subject-roller__group > span {
  color: var(--desk-ink-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.subject-roller__field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
  min-width: 0;
}

.subject-roller__field button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: var(--space-9);
  border: 1px solid var(--desk-line);
  border-radius: var(--radius);
  background: var(--desk-white);
  padding: 6px var(--space-2);
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.subject-roller__field button:hover,
.subject-roller__field button:focus-visible {
  border-bottom-color: var(--desk-blue);
  color: var(--desk-blue);
}

.subject-roller__field .is-current {
  border-color: var(--desk-blue);
  background: var(--desk-blue);
  color: var(--desk-white);
  font-weight: 900;
}


.unit-workspace {
  display: grid;
  grid-template-columns: minmax(14rem, 0.29fr) minmax(0, 0.71fr);
  gap: var(--space-8);
  align-items: start;
  border-top: 2px solid var(--desk-ink);
  padding-top: var(--space-6);
}

.unit-picker {
  position: sticky;
  top: calc(var(--space-8) * 3);
  min-width: 0;
}

.unit-picker > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--space-11);
  border-bottom: 1px solid var(--desk-line);
  padding: 0 var(--space-3);
}

.unit-picker > header span {
  color: var(--desk-blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.unit-axis__track {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-4) var(--space-8);
}

.unit-axis__track::before {
  position: absolute;
  top: var(--space-2);
  bottom: var(--space-2);
  left: calc(var(--space-3) + var(--space-0-5));
  width: 2px;
  border-radius: var(--radius);
  background: var(--desk-ink);
  content: "";
}

.unit-tab {
  position: relative;
  display: grid;
  grid-template-areas: "title" "count";
  gap: var(--space-1) var(--space-2);
  align-items: start;
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-sm);
  background: var(--desk-white);
  padding: var(--space-3) var(--space-4);
  color: var(--desk-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.unit-tab::before {
  position: absolute;
  top: var(--space-5);
  left: calc(-1 * var(--space-5));
  width: var(--space-5);
  height: 2px;
  background: var(--desk-ink);
  content: "";
}

.unit-tab::after {
  position: absolute;
  top: calc(var(--space-5) - var(--space-1-5));
  left: calc(-1 * var(--space-6));
  width: var(--space-3);
  height: var(--space-3);
  border: 3px solid var(--desk-paper);
  border-radius: var(--radius-full);
  background: var(--desk-ink);
  outline: 2px solid var(--desk-ink);
  content: "";
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.unit-tab > strong {
  grid-area: title;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.unit-tab > small {
  grid-area: count;
  color: var(--desk-muted);
  font-size: 14px;
  font-weight: 800;
}

.unit-tab:hover,
.unit-tab:focus-visible {
  background: color-mix(in srgb, var(--desk-lime) 18%, var(--desk-white));
  transform: translateY(-2px);
}

.unit-tab[aria-pressed="true"] {
  background: var(--desk-ink);
  color: var(--desk-white);
  outline: 2px solid var(--desk-ink);
  outline-offset: 2px;
}

.unit-tab[aria-pressed="true"]::after {
  background: var(--desk-lime);
  transform: scale(1.45);
}

.unit-tab[aria-pressed="true"] > small {
  color: var(--desk-lime);
}

.unit-detail {
  min-width: 0;
  border-left: 1px solid var(--desk-line);
  padding-left: var(--space-8);
}

.unit-axis__empty {
  display: grid;
  gap: var(--space-2);
  border-top: 2px solid var(--desk-ink);
  border-bottom: 1px solid var(--desk-line);
  padding: var(--space-6) 0;
  color: var(--desk-muted);
  font-size: 14px;
}

.unit-axis__empty strong {
  color: var(--desk-ink);
  font-size: 15px;
}

.curation-recommendations {
  min-width: 0;
}

.curation-section-head {
  position: sticky;
  z-index: 2;
  top: calc(var(--space-8) * 3);
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 0.65fr);
  gap: var(--space-5);
  align-items: start;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--desk-line);
  background: var(--desk-paper);
  padding: var(--space-2) 0 var(--space-4);
}

.curation-section-head > div {
  display: grid;
  gap: var(--space-2);
}

.curation-section-head span {
  color: var(--desk-blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curation-section-head h2 {
  margin: 0;
  color: var(--desk-ink);
  color: var(--desk-ink-soft);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.unit-detail__head {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.unit-detail__head > div:first-child {
  gap: var(--space-1);
}

.unit-detail__summary {
  border-left: 2px solid var(--desk-blue);
  padding-left: var(--space-3);
}

.unit-detail__head .unit-detail__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  border-top: 1px solid var(--desk-line);
  border-left: 0;
  padding: var(--space-3) 0 0;
}

.unit-detail__summary strong {
  display: block;
  color: var(--desk-blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.unit-detail__summary ul {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-1) 0 0;
  padding: 0;
  color: var(--desk-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  list-style: none;
}

.unit-detail__head .unit-detail__summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}

.unit-detail__head .unit-detail__summary li {
  padding: 0 var(--space-3);
  white-space: nowrap;
}

.unit-detail__head .unit-detail__summary li:first-child {
  padding-left: 0;
}

.unit-detail__head .unit-detail__summary li + li {
  border-left: 1px solid var(--desk-line);
}

.unit-detail__summary p {
  margin: 0;
  color: var(--desk-muted);
  font-size: 13px;
  line-height: 1.6;
}

.curation-empty {
  display: grid;
  gap: var(--space-3);
  min-height: 18rem;
  align-content: center;
  border: 2px dashed var(--desk-line);
  border-radius: var(--radius);
  background: var(--desk-white);
  padding: var(--space-8);
}

.curation-empty > span {
  color: var(--desk-blue);
  font-size: 11px;
  font-weight: 900;
}

.curation-empty h3 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.curation-empty p {
  max-width: 55ch;
  margin: 0;
  color: var(--desk-muted);
  font-size: 13px;
  line-height: 1.65;
}

.curation-kind-filter {
  display: inline-flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  border: 1px solid var(--desk-ink);
  border-radius: var(--radius);
  padding: 3px;
}

.curation-kind-filter button {
  min-width: 4rem;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.curation-kind-filter button[aria-pressed="true"] {
  background: var(--desk-ink);
  color: var(--desk-white);
}

.bundle-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.bundle-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--desk-line);
  border-radius: var(--radius);
  background: var(--desk-white);
  padding: var(--space-4);
  color: var(--desk-ink);
}

.bundle-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "badges makers"
    "title title"
    "description description"
    "actions actions";
  gap: var(--space-2) var(--space-4);
  align-items: center;
  min-width: 0;
}

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

.bundle-card__badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.bundle-favorite {
  display: inline-grid;
  place-items: center;
  width: var(--space-11);
  height: var(--space-11);
  margin-block: calc(-1 * var(--space-2));
  margin-left: calc(-1 * var(--space-1));
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  padding: 0;
  color: var(--desk-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bundle-favorite:hover,
.bundle-favorite:focus-visible {
  background: color-mix(in srgb, var(--desk-blue) 8%, transparent);
  color: var(--desk-blue);
}

.bundle-favorite[aria-pressed="true"] {
  color: var(--desk-blue);
}

.bundle-favorite__icon {
  font-size: 18px;
  line-height: 1;
}

.bundle-card__badges > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-sm);
  background: var(--desk-paper);
  padding: 0 var(--space-2);
  color: var(--desk-ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.bundle-card__badges > span:first-child {
  border-color: var(--desk-blue);
  background: var(--desk-blue);
  color: var(--desk-white);
}

.bundle-card__badges > span:not(:first-child) {
  border-color: var(--desk-lime);
  background: var(--desk-lime);
  color: var(--desk-ink);
}

.bundle-card__title-row {
  grid-area: title;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.bundle-card h3 {
  min-width: 0;
  flex: 0 1 auto;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.bundle-card__content > p {
  grid-area: description;
  max-width: 64ch;
  margin: 0;
  color: var(--desk-muted);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.bundle-card__makers {
  grid-area: makers;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  overflow-x: auto;
  justify-self: end;
  white-space: nowrap;
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 750;
}

.bundle-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: 0;
}

.bundle-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  min-width: 12rem;
  min-height: var(--space-11);
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--desk-ink);
  text-decoration: none;
}

.bundle-action strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle-action span {
  font-size: 16px;
  transition: transform 0.16s ease;
}

.bundle-action:hover,
.bundle-action:focus-visible {
  border-color: var(--desk-ink);
  background: var(--desk-lime);
}

.bundle-action:hover span,
.bundle-action:focus-visible span {
  transform: translateX(var(--space-1));
}

.bundle-action.is-disabled {
  border-style: dashed;
  color: var(--desk-muted);
}

.curation-library__empty {
  display: grid;
  gap: var(--space-2);
  place-items: center;
  min-height: 14rem;
  border: 1px dashed var(--desk-line);
  border-radius: var(--radius);
  color: var(--desk-muted);
  text-align: center;
}

.curation-library__empty[hidden] {
  display: none;
}

.curation-library__empty strong {
  color: var(--desk-ink);
  font-size: 17px;
}

.curation-library__empty span {
  font-size: 12px;
}

.curation-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 104px;
  background: var(--desk-ink);
  padding: 24px clamp(24px, 5vw, 80px);
  color: var(--desk-white);
  font-size: 13px;
}

.curation-footer > span {
  font-weight: 900;
}

.curation-footer p {
  margin: 0;
  color: color-mix(in srgb, var(--color-text-on-brand) 72%, transparent);
}

.curation-footer a {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: var(--space-11);
  color: var(--desk-lime);
  font-weight: 850;
  text-decoration: none;
}

/* two-step teacher entry */

.teacher-entry {
  display: grid;
  grid-template-columns: minmax(330px, 0.43fr) minmax(0, 0.57fr);
  min-height: 100vh;
  background: var(--desk-white);
}

.teacher-entry__intro {
  display: flex;
  flex-direction: column;
  gap: 70px;
  background: var(--desk-ink);
  padding: clamp(30px, 5vw, 72px);
  color: var(--desk-white);
}

.teacher-entry__brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  min-height: var(--space-11);
  color: var(--desk-white);
  text-decoration: none;
}

.teacher-entry__brand > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: var(--radius-full);
  background: var(--desk-lime);
  color: var(--desk-ink);
}

.teacher-entry__brand b {
  color: var(--desk-white);
  font-size: 20px;
  font-weight: 900;
}

.teacher-entry__intro > div {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.teacher-entry__intro > div > span {
  color: var(--desk-lime);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.teacher-entry__intro h1 {
  margin: 0;
  color: var(--desk-white);
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.teacher-entry__intro p {
  max-width: 44ch;
  margin: 0;
  color: color-mix(in srgb, var(--color-text-on-brand) 72%, transparent);
  font-size: 14px;
  line-height: 1.75;
}

.teacher-entry__intro ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.teacher-entry__intro li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--color-text-on-brand) 30%, transparent);
  padding-top: 14px;
  color: color-mix(in srgb, var(--color-text-on-brand) 55%, transparent);
}

.teacher-entry__intro li > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
}

.teacher-entry__intro li small {
  font-size: 9px;
  font-weight: 800;
}

.teacher-entry__intro li b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-entry__intro li.is-current,
.teacher-entry__intro li.is-complete {
  color: var(--desk-lime);
}

.teacher-entry__intro li.is-current > span,
.teacher-entry__intro li.is-complete > span {
  border-color: var(--desk-lime);
  background: var(--desk-lime);
  color: var(--desk-ink);
}

.teacher-entry__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-11);
  min-width: 0;
  padding: clamp(36px, 7vw, 100px);
}

.teacher-entry__panel > header {
  display: grid;
  gap: 11px;
}

.teacher-entry__panel > header > span {
  color: var(--desk-blue);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
}

.teacher-entry__panel h2 {
  margin: 0;
  color: var(--desk-ink);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.teacher-entry__panel header p {
  margin: 0;
  color: var(--desk-muted);
  font-size: 14px;
  line-height: 1.65;
}

.teacher-entry__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.teacher-entry__options.is-subjects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-entry__options button {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 124px;
  border: 2px solid var(--desk-line);
  border-radius: 0;
  background: var(--desk-white);
  padding: 22px;
  color: var(--desk-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.teacher-entry__options.is-subjects button {
  min-height: 82px;
  padding: 17px;
}

.teacher-entry__options button:hover,
.teacher-entry__options button:focus-visible,
.teacher-entry__options button[aria-pressed="true"] {
  border-color: var(--desk-ink);
  box-shadow: 6px 6px 0 var(--desk-lime);
  outline: none;
  transform: translate(-2px, -2px);
}

.teacher-entry__options button > span {
  padding-right: 28px;
  font-size: 18px;
  font-weight: 900;
}

.teacher-entry__options.is-subjects button > span {
  font-size: 14px;
}

.teacher-entry__options button small {
  color: var(--desk-muted);
  font-size: 10px;
  font-weight: 700;
}

.teacher-entry__options button i {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: var(--radius-full);
  background: var(--desk-ink);
  color: var(--desk-lime);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: 0;
}

.teacher-entry__options button[aria-pressed="true"] i {
  opacity: 1;
}

.teacher-entry__panel > footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--desk-line);
  padding-top: 24px;
}

.teacher-entry__panel > footer button {
  min-height: 52px;
  border: 0;
  padding: 0 25px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.teacher-entry__back {
  background: transparent;
  color: var(--desk-ink);
}

.teacher-entry__next {
  min-width: 174px;
  background: var(--desk-ink);
  color: var(--desk-white);
  box-shadow: 6px 6px 0 var(--desk-lime);
}

.teacher-entry__next:disabled {
  background: var(--color-disabled-fill);
  color: var(--color-disabled-text);
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .curation-hero {
    grid-template-columns: minmax(0, 0.76fr) minmax(19rem, 1.24fr);
  }

  .teacher-entry {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  }

  .teacher-entry__options.is-subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .unit-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .unit-picker {
    position: static;
  }

  .unit-axis__track {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding: var(--space-8) var(--space-1) var(--space-4);
    scroll-padding-inline: var(--space-1);
    scroll-snap-type: x mandatory;
  }

  .unit-axis__track::before {
    top: calc(var(--space-3) + var(--space-0-5));
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }

  .unit-tab {
    flex: 0 0 min(15rem, 80vw);
    width: auto;
    scroll-snap-align: start;
  }

  .unit-tab::before {
    top: calc(-1 * var(--space-5));
    left: var(--space-5);
    width: 2px;
    height: var(--space-5);
  }

  .unit-tab::after {
    top: calc(-1 * var(--space-5) - var(--space-1-5));
    left: calc(var(--space-5) - var(--space-1-5));
  }

  .unit-tab:focus-visible {
    z-index: 1;
  }

  .unit-detail {
    border-top: 1px solid var(--desk-line);
    border-left: 0;
    padding-top: var(--space-6);
    padding-left: 0;
  }

  .curation-section-head {
    position: static;
  }
}

@media (max-width: 720px) {
  .curation-shell > main {
    padding: 0 18px 70px;
  }

  .curation-topbar {
    position: static;
    min-height: 68px;
    padding: 10px 18px;
  }

  .curation-brand__mark {
    width: 36px;
    height: 36px;
  }

  .curation-brand small {
    display: none;
  }

  .curation-hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    min-height: auto;
    padding: 48px 0 54px;
  }

  .curation-hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .curation-hero h1 em {
    white-space: normal;
  }

  .curation-search {
    min-height: 56px;
    box-shadow: 5px 5px 0 var(--desk-ink);
  }

  .curation-search kbd {
    display: none;
  }

  .unit-axis {
    padding-top: 54px;
  }

  .unit-axis__head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .subject-roller {
    width: 100%;
  }

  .curation-kind-filter {
    justify-self: start;
  }

  .curation-footer {
    grid-template-columns: 1fr auto;
    min-height: 90px;
    padding: 20px 18px;
  }

  .curation-footer p {
    display: none;
  }

  .teacher-entry {
    grid-template-columns: 1fr;
  }

  .teacher-entry__intro {
    gap: 24px;
    padding: 22px 18px 26px;
  }

  .teacher-entry__intro h1 {
    font-size: 36px;
  }

  .teacher-entry__intro p {
    display: none;
  }

  .teacher-entry__intro ol {
    margin-top: 4px;
  }

  .teacher-entry__panel {
    gap: 30px;
    padding: 36px 18px;
  }

  .teacher-entry__panel h2 {
    font-size: 36px;
  }

  .teacher-entry__options,
  .teacher-entry__options.is-subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-entry__options button {
    min-height: 92px;
    padding: 15px;
  }

  .teacher-entry__options.is-subjects button {
    min-height: 68px;
  }
}

@media (max-width: 620px) {
  .curation-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .curation-kind-filter {
    display: flex;
    width: 100%;
  }

  .curation-kind-filter button {
    flex: 1;
    min-width: 0;
  }

  .bundle-card {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-4);
  }

  .bundle-card__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "badges"
      "title"
      "description"
      "makers"
      "actions";
  }

  .bundle-card__makers {
    justify-self: start;
  }

  .bundle-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
    margin-top: var(--space-1);
    border-top: 1px solid var(--desk-line);
    padding-top: var(--space-3);
  }

  .bundle-action {
    width: 100%;
    min-width: 0;
  }

  .unit-tab,
  .curation-kind-filter button,
  .bundle-action {
    min-height: var(--space-11);
  }
}

.curation-new-lessons {
  padding-top: clamp(40px, 6vw, 80px);
}

.curation-new-lessons .curation-section-head {
  position: static;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: var(--space-6);
}

.curation-new-lessons .curation-section-head > a,
.curation-library__empty > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-11);
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-3);
  color: var(--desk-ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.curation-new-lessons .curation-section-head > a:hover,
.curation-new-lessons .curation-section-head > a:focus-visible,
.curation-library__empty > a:hover,
.curation-library__empty > a:focus-visible {
  border-color: var(--desk-blue);
  background: var(--desk-lime);
  color: var(--desk-ink);
}

.curation-new-lessons .bundle-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bundle-card__makers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
  color: var(--desk-muted);
  font-size: 11px;
  font-weight: 850;
}

.bundle-card__makers-label {
  letter-spacing: 0.08em;
}

.bundle-card__maker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-sm);
  background: var(--desk-paper);
  padding: var(--space-0-5) var(--space-2);
  color: var(--desk-ink);
  text-decoration: none;
  text-transform: uppercase;
}

.bundle-card__maker:hover,
.bundle-card__maker:focus-visible {
  border-color: var(--desk-blue);
  background: var(--desk-lime);
  color: var(--desk-ink);
}

@media (max-width: 620px) {
  .curation-new-lessons .curation-section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .curation-new-lessons .bundle-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .curation-app *,
  .curation-app *::before,
  .curation-app *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* topbar view counts */

.curation-topbar__views {
  display: grid;
  gap: 2px;
  justify-items: end;
  justify-self: end;
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.curation-topbar__views b {
  color: var(--desk-ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* narrow screens: let the counter drop to its own line only when it cannot fit */
@media (max-width: 640px) {
  .curation-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }

  .curation-topbar__views {
    margin-left: auto;
    font-size: 11px;
  }
}

.bundle-card .bundle-card__badges > span.bundle-card__count {
  min-height: 0;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--desk-muted);
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Compact lesson-picker layout: choose or search first, then scan ranked lessons. */
@media (max-width: 900px) {
  .curation-shell > main {
    padding-right: clamp(18px, 4vw, 32px);
    padding-left: clamp(18px, 4vw, 32px);
  }

  .curation-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: 36px 0 44px;
  }

  .curation-hero__copy {
    gap: 18px;
    max-width: none;
  }

  .curation-hero h1 {
    font-size: clamp(42px, 9vw, 56px);
  }

  .curation-hero__copy > p {
    max-width: 42ch;
  }

  .curation-search {
    width: 100%;
  }

  .curation-popular ol {
    padding: 0 16px;
  }

  .curation-popular li > a {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 5px 12px;
    min-height: 74px;
  }

  .curation-popular a > b {
    grid-row: 1 / span 2;
  }

  .curation-popular__lesson {
    grid-column: 2;
    grid-row: 1;
  }

  .curation-popular__meta {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    border-left: 0;
    padding-left: 0;
  }

  .curation-popular a > i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .unit-axis {
    padding-top: 48px;
  }

  .unit-axis__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .curation-kicker {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .curation-hero__copy > p {
    font-size: 15px;
  }

  .curation-popular__lesson > small > .curation-popular__unit {
    display: none;
  }
}

@media (max-width: 620px) {
  .curation-kind-filter button {
    min-height: 36px;
  }

  .unit-axis__track {
    display: grid;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .unit-axis__track::before,
  .unit-tab::before,
  .unit-tab::after {
    display: none;
  }

  .unit-tab {
    grid-template-areas: "title count";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 14px 16px;
  }

  .unit-tab > strong {
    font-size: 16px;
    line-height: 1.25;
  }

  .unit-tab > small {
    align-self: center;
    font-size: 12px;
    white-space: nowrap;
  }
}
