/* 2026-10-24 home and classroom refinement */

.ui-v1-home-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.ui-v1-home-hero > .wrap {
  position: relative;
  z-index: 1;
}

.code-field-stage {
  position: absolute;
  inset-block: 0;
  inset-inline-end: -8vw;
  z-index: 0;
  width: min(46vw, 620px);
  pointer-events: none;
}

.code-field-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-impact {
  margin-top: var(--s8);
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: balance;
}

.tiles > *,
.bento > *,
.platform-map > *,
.classroom-quick > *,
.course-choice > * {
  min-width: 0;
}

.role-map {
  margin-top: var(--s32);
  border-top: 1px solid var(--hair);
}

[data-home-daylist] li {
  padding: 0;
}

.daylist-link {
  display: flex;
  align-items: center;
  gap: var(--s8);
  width: 100%;
  padding: var(--s8) 0;
  color: inherit;
}

.daylist-link:hover .daylist-label {
  color: var(--deep);
}

.role-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 136px;
  gap: var(--s16);
  align-items: center;
  padding: var(--s16) 0;
  border-bottom: 1px solid var(--hair);
}

.role-row:last-child {
  border-bottom: 0;
}

.role-code {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--brand-1);
  border-radius: 14px;
  background: var(--brand-0);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.role-row h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.role-row p {
  margin: var(--s4) 0 0;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.55;
}

.role-output {
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s48);
  border-top: 1px solid var(--line);
}

.market-fact {
  min-height: 150px;
  padding: var(--s32) var(--s24) var(--s24);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.market-fact + .market-fact {
  border-left: 1px solid var(--line);
}

.market-fact b {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.market-fact strong {
  display: block;
  margin-top: calc(var(--s8) + var(--s4));
  font-size: 17px;
  font-weight: 600;
}

.market-fact span {
  display: block;
  margin-top: var(--s8);
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.5;
}

.market-note {
  max-width: 58em;
  margin-top: var(--s24);
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.socials {
  display: flex;
  align-items: center;
  gap: var(--s16);
  margin-top: var(--s32);
  color: var(--label-2);
}

.socials > span {
  display: none;
}

.socials svg {
  width: 18px;
  height: 18px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s32);
  margin-top: var(--s64);
}

.journey-stage {
  padding-top: var(--s24);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  text-align: center;
  font-size: 15px;
}

.journey-label {
  display: block;
  color: var(--brand-1);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.journey-copy {
  display: grid;
  gap: var(--s4);
  max-width: 13em;
  margin: var(--s24) auto 0;
  text-wrap: balance;
}

.journey-copy:lang(zh) {
  text-wrap: balance;
}

.journey-copy span:first-child {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.journey-copy span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.platform-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--s48);
  border-top: 1px solid var(--line);
}

.platform-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s16);
  padding: var(--s24);
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-size: 15px;
  text-decoration: none;
}

.platform-step:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.platform-step > b {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.platform-step h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.platform-step p {
  margin: var(--s8) 0 0;
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.55;
}

.lesson-formats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s8) var(--s16);
  margin-top: var(--s24);
  padding: var(--s16) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lesson-formats > span {
  color: var(--label-2);
  font-size: 13px;
}

.lesson-formats > b {
  font-size: 13px;
  font-weight: 500;
}

.lesson-formats .feature-impact {
  flex-basis: 100%;
  margin-top: 0;
}

.knowledge-hero .actions + .actions {
  gap: var(--s16);
}

.knowledge-hero .actions + .actions .link {
  color: var(--label-2);
}

.knowledge-hero .actions + .actions .link:hover {
  color: var(--deep);
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: var(--s64);
  align-items: start;
  margin-top: var(--s32);
}

.course-progress {
  position: sticky;
  top: calc(var(--nav-h) + var(--s24));
  min-height: 520px;
}

.course-hero-head {
  padding: var(--s24) var(--s32);
  border-bottom: 1px solid var(--hair);
}

.course-hero-head [data-home-progress-summary] {
  margin-left: auto;
}

.course-hero-list {
  padding: var(--s16) var(--s32) var(--s24);
  border-right: 1px solid var(--hair);
}

.course-hero-today {
  padding: var(--s24) var(--s32);
}

.course-progress .daylist li {
  min-height: 40px;
}

.course-hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
}

.learning-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s8);
  margin: var(--s24) 0 0;
}

.learning-snapshot > div {
  min-width: 0;
  padding: var(--s12) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.learning-snapshot dt {
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.38;
}

.learning-snapshot dd {
  margin: var(--s4) 0 0;
  color: var(--label);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.learning-next {
  margin-top: var(--s12);
  text-wrap: pretty;
}

.course-progress .course-progress-foot {
  margin-top: var(--s24);
  padding: var(--s16) var(--s16) var(--s12);
  border-top: 1px solid var(--hair);
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: balance;
}

.course-track > .course-phase + .course-phase {
  margin-top: var(--s24);
}

.course-phase {
  display: block;
  padding: var(--s24) 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-size: 15px;
}

.course-phase:hover h3 {
  color: var(--brand);
}

.course-phase-head {
  display: flex;
  align-items: baseline;
  gap: var(--s16);
}

.course-phase-day {
  flex: 0 0 104px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.course-phase h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  text-wrap: balance;
  transition: color 150ms ease;
}

.course-phase p {
  max-width: 42em;
  margin: var(--s8) 0 0 120px;
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: balance;
}

.course-phase .phase-result {
  display: block;
  margin: var(--s8) 0 0 120px;
  color: var(--label);
  font-size: 13px;
  font-weight: 500;
  text-wrap: balance;
}

.course-phase .pill {
  font-size: 13px;
}

.carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s24);
}

.carousel-controls {
  display: flex;
  gap: var(--s8);
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--card);
  color: var(--label);
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
}

.term-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 32%);
  gap: var(--s16);
  margin-top: var(--s24);
  padding-bottom: var(--s16);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.term-card {
  min-height: 190px;
  padding: var(--s24);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--card);
  scroll-snap-align: start;
}

.term-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.term-card p {
  margin: var(--s16) 0 0;
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.term-card small {
  display: block;
  margin-top: var(--s16);
  color: var(--label-2);
  font-size: 13px;
}

.daylist-label {
  min-width: 0;
  flex: 1;
  text-wrap: pretty;
  transition: color .15s ease;
}

[data-home-today] li {
  text-wrap: pretty;
}

.about-hero {
  position: relative;
  overflow: clip;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset-block-start: -30%;
  inset-inline-end: -8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 107, 237, 0.13), transparent 68%);
  pointer-events: none;
}

.about-hero > .wrap {
  position: relative;
  z-index: 1;
}

.about-directory {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8) var(--s24);
  margin-top: var(--s32);
}

.about-directory a {
  color: var(--label-2);
  font-size: 13px;
  text-decoration: none;
}

.about-directory a:hover {
  color: var(--brand);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s64);
  align-items: start;
}

.about-section + .about-section {
  margin-top: var(--s80);
  padding-top: var(--s64);
  border-top: 1px solid var(--line);
}

.about-section h2 {
  margin: var(--s8) 0 0;
  max-width: 12em;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.16;
  text-wrap: balance;
}

.about-section .about-lead {
  max-width: 34em;
  margin: var(--s16) 0 0;
  color: var(--label-2);
  font-size: 17px;
  line-height: 1.6;
}

.about-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.about-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s16);
  padding: var(--s24) 0;
  border-bottom: 1px solid var(--line);
}

.about-item > b {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.about-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.about-item p {
  margin: var(--s8) 0 0;
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.6;
}

.role-architecture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s16);
}

.role-architecture article {
  min-height: 220px;
  padding: var(--s24);
  border-top: 1px solid var(--line);
}

.role-architecture b {
  display: block;
  color: var(--brand);
  font-size: 22px;
  font-weight: 600;
}

.role-architecture span {
  display: block;
  margin-top: var(--s8);
  font-size: 13px;
  color: var(--label-2);
}

.role-architecture p {
  margin: var(--s24) 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.role-architecture article:last-child {
  grid-column: 1 / -1;
}

.about-next {
  display: flex;
  justify-content: center;
  margin-top: var(--s48);
}

@media (max-width: 900px) {
  .code-field-stage {
    position: relative;
    inset: auto;
    width: min(100%, 460px);
    height: 260px;
    margin: var(--s24) auto 0;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-fact:nth-child(odd) {
    border-left: 0;
  }

  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s48) var(--s24);
  }

  .learning-layout,
  .about-section {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }

  .course-progress {
    position: relative;
    top: auto;
    min-height: 0;
    padding: var(--s24);
  }

  .course-progress > .h3 {
    max-width: 100%;
    line-height: 1.18;
  }

  .learning-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s8) var(--s16);
  }

  .learning-snapshot > div {
    padding: var(--s12) 0;
  }

  .learning-snapshot > div:first-child {
    grid-column: 1 / -1;
  }

  .learning-snapshot dd {
    white-space: nowrap;
  }

  .learning-next {
    margin-top: var(--s16);
    padding: var(--s16) var(--s16) var(--s12);
    border-top: 1px solid var(--hair);
    line-height: 1.4;
    text-wrap: pretty;
  }

  .course-progress .course-progress-foot {
    display: none;
  }

  .course-progress .daylist li {
    align-items: flex-start;
    min-height: 44px;
    line-height: 1.45;
  }

  .course-progress .daylist .chip {
    margin-top: 1px;
  }

  .role-architecture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-architecture article:last-child {
    grid-column: 1 / -1;
  }
}

@media  (max-width: 900px) {
  [data-home-daylist] {
    padding-left: var(--s16);
    padding-right: var(--s16);
  }

  [data-home-daylist] li {
    gap: var(--s4);
  }

  .daylist-link {
    gap: var(--s4);
  }

  .role-row p,
  .role-output,
  .market-fact span,
  .market-note,
  .classroom-quick span,
  .course-choice small,
  .course-progress .course-progress-foot,
  .course-phase-day,
  .term-card small,
  .about-directory a {
    font-size: 13px;
  }

  .course-hero-grid {
    grid-template-columns: 1fr;
  }

  .course-hero-grid > .daylist {
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .course-hero-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s4) var(--s16);
    padding: var(--s24) var(--s16);
  }

  .course-hero-head h2 {
    white-space: nowrap;
  }

  .course-hero-head [data-home-progress-summary] {
    grid-column: 1 / -1;
    margin-left: 0;
    line-height: 1.38;
  }

  .course-hero-list {
    padding: var(--s8) var(--s16) var(--s16);
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .course-hero-today {
    padding: var(--s24) var(--s16);
  }

  .tile,
  .cell {
    width: 100%;
  }

  .tile .btn {
    max-width: 100%;
  }

  .role-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }

  .role-output {
    grid-column: 2;
    text-align: left;
  }

  .market-grid,
  .platform-map {
    grid-template-columns: 1fr;
  }

  .market-fact,
  .market-fact + .market-fact {
    min-height: 0;
    border-left: 0;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }

  .journey-label {
    font-size: 34px;
  }

  .platform-step:nth-child(odd) {
    border-right: 0;
  }

  .course-phase-head {
    display: grid;
    gap: var(--s4);
  }

  .course-phase h3,
  .platform-step h3,
  .term-card h3,
  .about-item h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  .course-phase-day {
    flex-basis: auto;
  }

  .course-phase p,
  .course-phase .phase-result {
    margin-left: 0;
  }

  .term-strip {
    grid-auto-columns: 78%;
  }

  .role-architecture {
    grid-template-columns: 1fr;
  }

  .role-architecture article:last-child {
    grid-column: auto;
  }

  .about-section h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .about-next {
    justify-content: stretch;
  }

  .about-next .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-phase h3 {
    transition: none;
  }
}

/* 2026-10-29 home hierarchy and product-story refinement */

.home-page .course-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s24);
}

.home-page .course-hero-title {
  color: var(--label);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.006em;
  white-space: nowrap;
}

.course-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s8);
  max-width: 520px;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.38;
}

.course-hero-meta span {
  padding: 4px var(--s8);
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--page);
  white-space: nowrap;
}

.home-page .course-hero-today {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(132px, 1fr);
  gap: var(--s8);
  margin-top: var(--s16);
}

.home-today-grid li {
  min-width: 0;
}

.home-today-grid a {
  display: grid;
  grid-template-rows: minmax(42px, auto) minmax(0, 1fr);
  align-content: start;
  gap: var(--s8);
  height: 100%;
  min-height: 96px;
  padding: var(--s12);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--page);
  color: var(--label);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.home-today-grid a:hover {
  border-color: var(--brand-1);
  background: var(--brand-0);
  transform: translateY(-2px);
}

.home-today-grid a:hover strong {
  color: var(--deep);
}

.home-today-grid strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  text-wrap: pretty;
}

.home-today-grid span {
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.5;
}

.home-page .course-hero-today .u-action-block {
  margin-top: auto;
}

.bento[data-home-feature-grid] {
  align-items: stretch;
}

.bento[data-home-feature-grid] > .cell {
  box-shadow: 0 32px 64px -48px rgba(29, 29, 31, .28);
}

.home-feature-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s8) var(--s12);
}

.home-feature-kicker strong {
  color: var(--label);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18;
}

.home-feature-kicker span {
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.38;
}

.home-page .role-row {
  grid-template-columns: 52px minmax(0, 1fr) 136px;
}

.home-room-advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s24);
  margin-top: var(--s32);
  border-top: 1px solid var(--hair);
}

.home-room-advantages li {
  display: grid;
  gap: var(--s4);
  padding: var(--s16) 0;
  border-bottom: 1px solid var(--hair);
}

.home-room-advantages strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.47;
}

.home-room-advantages span {
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.47;
}

.home-model-ranking {
  display: grid;
  border-top: 1px solid var(--hair);
}

.home-model-ranking li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s8);
  min-height: 44px;
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--hair);
}

.home-model-ranking li:last-child {
  border-bottom: 0;
}

.home-model-ranking b {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-model-ranking > li > span {
  color: var(--label);
  font-size: 13px;
  line-height: 1.38;
}

.home-model-ranking .chip {
  margin-left: 0;
}

.home-page .market-fact,
.home-page .market-fact + .market-fact {
  border-left: 0;
}

.home-page .market-fact b {
  min-height: 42px;
}

.home-page .foot-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.home-page .foot-cols > div {
  min-width: 0;
}

.home-page .foot-cols a {
  text-align: center;
}

.home-page .foot-base {
  justify-content: center;
}

.home-page .foot-base .copy {
  margin-left: 0;
}

@media (max-width: 900px) {
  .home-page .course-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s12);
  }

  .home-page .course-hero-title {
    font-size: 34px;
  }

  .course-hero-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .home-room-advantages {
    grid-template-columns: 1fr;
  }

  .home-page .role-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .home-today-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-page .course-hero-title {
    font-size: 34px;
  }

  .home-model-ranking li {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .home-today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Home course and studyroom hierarchy pass */

.home-page .course-hero-head {
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.course-hero-meta {
  justify-content: flex-start;
  max-width: none;
  gap: var(--s16);
  margin-left: var(--s16);
}

.course-hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s4);
  padding: 0;
  border: 0;
  background: transparent;
}

.course-hero-meta b {
  color: var(--label);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-page .course-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
}

.course-hero-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--s16) var(--s32) var(--s24);
  border-right: 1px solid var(--hair);
}

.course-hero-left > .h4,
.course-hero-today > .h4 {
  margin: 0 0 var(--s8);
}

.home-page .course-hero-today {
  padding: var(--s16) var(--s32) var(--s24);
}

.course-hero-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
  border-right: 0;
}

.course-hero-list li {
  flex: 1;
}

.course-hero-list li,
.home-today-grid li,
.home-today-grid a {
  min-height: 48px;
}

.home-today-grid {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 0;
  margin-top: var(--s8);
}

.home-today-grid li {
  border-bottom: 1px solid var(--hair);
}

.home-today-grid li:last-child {
  border-bottom: 0;
}

.home-today-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  grid-template-rows: auto;
  gap: var(--s16);
  align-items: center;
  min-height: 48px;
  height: auto;
  padding: var(--s8) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-today-grid a:hover {
  background: transparent;
  transform: none;
}

.home-today-grid strong {
  font-size: 15px;
  line-height: 1.3;
}

.home-today-grid span {
  max-width: 20em;
  text-align: right;
  font-size: 13px;
  line-height: 1.38;
}

.home-page .course-hero-today .u-action-block {
  width: fit-content;
  min-height: 36px;
  margin-top: var(--s16);
}

.home-study-card {
  align-self: stretch;
}

.home-study-body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: var(--s32);
  margin-top: var(--s24);
}

.home-study-side {
  padding-left: var(--s32);
  border-left: 1px solid var(--hair);
}

.home-study-side .home-room-advantages {
  grid-template-columns: 1fr;
}

.home-study-side .actions {
  margin-top: var(--s24);
}

@media (max-width: 900px) {
  .home-page .course-hero-grid,
  .home-study-body {
    grid-template-columns: 1fr;
  }

  .course-hero-left {
    display: block;
  }

  .home-page .course-hero-list {
    display: block;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .home-page .course-hero-list li {
    flex: none;
  }

  .home-study-side {
    padding-top: var(--s24);
    padding-left: 0;
    border-top: 1px solid var(--hair);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .course-hero-meta {
    margin-left: 0;
    gap: var(--s8) var(--s12);
  }

  .home-today-grid a {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: var(--s12) 0;
  }

  .home-today-grid span {
    max-width: none;
    text-align: left;
  }
}

/* Hero card: exact center split, asymmetric content rhythm */

.home-page .course-hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-today-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s8);
}

.home-today-grid li {
  border-bottom: 0;
}

.home-today-grid li:first-child,
.home-today-grid li:nth-child(n+4) {
  grid-column: 1 / -1;
}

.home-today-grid a {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  align-content: start;
  min-height: 0;
  padding: var(--s12);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--card);
}

.home-today-grid li:first-child a {
  min-height: 126px;
  padding: var(--s24);
  border-color: var(--brand-1);
  background: var(--brand-0);
}

.home-today-grid li:first-child .pill {
  justify-self: start;
  margin-bottom: var(--s8);
  color: var(--deep);
}

.home-today-grid li:first-child strong {
  max-width: 12em;
  font-size: 22px;
  line-height: 1.2;
}

.home-today-grid li:nth-child(2) a,
.home-today-grid li:nth-child(3) a {
  min-height: 92px;
}

.home-today-grid li:nth-child(n+4) a {
  display: grid;
  grid-template-columns: minmax(140px, .72fr) minmax(0, 1.28fr);
  gap: var(--s16);
  align-items: center;
  min-height: 48px;
  padding: var(--s8) 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
}

.home-today-grid li:last-child a {
  border-bottom: 0;
}

.home-today-grid span {
  max-width: none;
  text-align: left;
}

.home-today-grid li:first-child span,
.home-today-grid li:nth-child(2) span,
.home-today-grid li:nth-child(3) span {
  margin-top: var(--s8);
}

.home-page .course-hero-today .u-action-block {
  margin-top: var(--s24);
}

@media (max-width: 600px) {
  .home-today-grid {
    grid-template-columns: 1fr;
  }

  .home-today-grid li,
  .home-today-grid li:first-child,
  .home-today-grid li:nth-child(n+4) {
    grid-column: 1;
  }

  .home-today-grid li:nth-child(n+4) a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-page .course-hero-grid,
  .home-study-body {
    grid-template-columns: 1fr;
  }

  .course-hero-left,
  .home-page .course-hero-list {
    display: block;
  }

  .home-page .course-hero-list {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .home-page .course-hero-list li {
    flex: none;
  }
}

/* Ordered task hierarchy: one primary task, five peer rows */

.home-today-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.home-today-grid li {
  grid-column: 1;
}

.home-today-primary {
  border: 0;
}

.home-today-primary-inner {
  display: grid;
  justify-items: start;
  gap: var(--s8);
  padding: var(--s24);
  border: 1px solid var(--brand-1);
  border-radius: var(--r-md);
  background: var(--brand-0);
}

.home-today-grid .home-today-primary-copy {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-today-primary-copy strong {
  display: block;
  max-width: 14em;
  font-size: 22px;
  line-height: 1.2;
}

.home-today-primary-copy span {
  display: block;
  margin-top: var(--s8);
  text-align: left;
  font-size: 13px;
  line-height: 1.38;
}

.home-today-grid .home-today-primary-inner > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  margin-top: var(--s8);
  padding: 0 var(--s16);
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
}

.home-today-grid li:not(.home-today-primary) > a {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: var(--s16);
  align-items: center;
  min-height: 48px;
  padding: var(--s8) 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
}

.home-today-grid li:last-child > a {
  border-bottom: 0;
}

.home-today-grid li:not(.home-today-primary) > a strong {
  font-size: 15px;
  line-height: 1.4;
}

.home-today-grid li:not(.home-today-primary) > a span {
  text-align: right;
  font-size: 13px;
  line-height: 1.38;
}

@media (max-width: 600px) {
  .home-today-grid li:not(.home-today-primary) > a {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .home-today-grid li:not(.home-today-primary) > a span {
    text-align: left;
  }
}

/* Today lead reads as typography, not as another card */

.home-today-primary-inner {
  display: block;
  padding: 0 0 var(--s16);
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
}

.home-today-primary-inner > .eyebrow {
  margin: 0;
}

.home-today-primary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s16);
  align-items: end;
  margin-top: var(--s8);
}

.home-today-primary-head > .btn {
  margin: 0;
}

@media (max-width: 600px) {
  .home-today-primary-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-today-primary-head > .btn {
    margin-top: var(--s8);
  }
}

/* Final homepage task-list hierarchy */
/* Left column owns the course entry; right column lists only supporting tools. */

body.home-page .course-hero-today {
  min-height: 0;
}

body.home-page .course-hero-today > .home-today-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--s24);
}

body.home-page .course-hero-list,
body.home-page .course-hero-today > .home-today-grid {
  margin-top: 0;
}

body.home-page .home-today-grid > li {
  display: block;
  min-width: 0;
  min-height: 0;
  border: 0;
}

body.home-page .home-today-grid > li > a {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: var(--s16);
  align-items: center;
  min-height: 0;
  padding: var(--s8) 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
  transform: none;
}

body.home-page .home-today-grid > li:last-child > a {
  border-bottom: 0;
}

body.home-page .home-today-grid > li > a:hover {
  background: transparent;
  transform: none;
}

body.home-page .home-today-grid > li > a > strong {
  color: var(--label);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body.home-page .home-today-grid > li > a > span {
  color: var(--label-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
  text-align: right;
  text-wrap: pretty;
}

body.home-page .home-today-grid > li > a:hover > strong {
  color: var(--deep);
}

@media (max-width: 900px) {
  body.home-page .course-hero-today > .home-today-grid {
    flex: none;
    grid-template-rows: auto;
  }
}

@media (max-width: 600px) {
  body.home-page .home-today-grid > li > a {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }

  body.home-page .home-today-grid > li > a > span {
    text-align: left;
  }
}

/* Homepage structure pass. Typography comes only from the authoritative scale above. */

body.home-page .cell.c-4 {
  display: flex;
  flex-direction: column;
}

body.home-page a.searchbar {
  color: var(--label-2);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

body.home-page a.searchbar:hover {
  border-color: var(--brand-1);
  background: var(--brand-0);
}

body.home-page a.searchbar:focus-visible,
body.home-page .home-library-row > a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

body.home-page .home-library-index {
  display: grid;
  gap: var(--s12);
  margin-top: var(--s24);
}

body.home-page .home-library-row {
  display: grid;
  grid-template-columns: 56px repeat(3, minmax(0, 1fr));
  gap: var(--s16);
  align-items: baseline;
  min-height: 32px;
  padding-bottom: var(--s12);
  border-bottom: 1px solid var(--hair);
}

body.home-page .home-library-row:last-child {
  border-bottom: 0;
}

body.home-page .home-library-row > span {
  color: var(--label-3);
}

body.home-page .home-library-row > a {
  position: relative;
  width: fit-content;
  color: var(--label);
  text-decoration: none;
  transition: color .18s ease;
}

body.home-page .home-library-row > a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(.7);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

body.home-page .home-library-row > a:hover {
  color: var(--deep);
}

body.home-page .home-library-row > a:hover::after,
body.home-page .home-library-row > a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

body.home-page .cell.c-4 > .actions {
  margin-top: auto;
  padding-top: var(--s24);
}

body.home-page .u-feature-frame,
body.home-page .cell,
body.home-page .tile {
  border-color: var(--hair);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 64px -48px rgba(29, 29, 31, .28);
}

body.home-page .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -32px rgba(29, 29, 31, .24);
}

body.home-page .tile:focus-within {
  box-shadow: 0 36px 72px -44px rgba(29, 29, 31, .32);
}

body.home-page .tile:active {
  transform: translateY(-1px) scale(.995);
}

body.home-page .home-today-grid > li > a {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

body.home-page .home-today-grid > li > a:hover {
  background: var(--brand-0);
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .tile,
  body.home-page .home-today-grid > li > a {
    transition: none;
  }

  body.home-page .tile:hover,
  body.home-page .tile:active {
    transform: none;
  }
}

@media (max-width: 600px) {
  body.home-page .home-library-row {
    grid-template-columns: 48px repeat(3, minmax(0, 1fr));
    gap: var(--s8);
  }
}

/* Career artwork uses the same displayed box as the other product pages. */
.ui-v1-home-hero .page-ip-character.home-surveyor {
  top: 62px;
  width: 270px;
  height: 360px;
  transform: none;
}

