@charset "UTF-8";

/* Subject landing pages: retain the portal shell and give learning modules priority. */
.subject-page .subject-main {
  padding-top: calc(var(--header) + 30px);
  padding-bottom: 72px;
}

.subject-page .subject-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #a4b2c5;
  font-size: 12px;
  line-height: 1.7;
}

.subject-page .subject-breadcrumb li + li::before {
  content: ">";
  margin-right: 12px;
  color: #8ea2bb;
}

.subject-page .subject-breadcrumb a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.subject-page .subject-hero {
  padding-block: 34px 36px;
  max-width: 940px;
}

.subject-page .subject-hero .eyebrow {
  margin-bottom: 15px;
  font-size: 10px;
}

.subject-page .subject-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.2vw, 59px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2px;
  text-wrap: balance;
}

.subject-page .subject-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: #afbed0;
  font-size: 15px;
  line-height: 1.8;
}

.subject-page .subject-modules {
  scroll-margin-top: calc(var(--header) + 20px);
}

.subject-page .subject-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  padding-bottom: 17px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.subject-page .subject-section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 450;
  letter-spacing: -.4px;
}

.subject-page .subject-section-heading p {
  margin: 0;
  color: #a4b2c5;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.subject-page .subject-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.subject-page .subject-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid #30475e;
  border-radius: 7px;
  overflow: hidden;
}

.subject-page .subject-card-ready {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  min-height: 382px;
  border-color: #44697e;
}

.subject-page .subject-card-art {
  position: absolute;
  inset: 0 0 0 29%;
  z-index: -1;
}

.subject-page .subject-card-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #101e30 0%, #101e30ef 15%, #101e308c 38%, #101e3010 80%), linear-gradient(0deg, #0b182dcc, transparent 32%);
}

.subject-page .subject-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 55%;
}

.subject-page .subject-art-caption {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 1;
  color: #c4d3e1;
  font-size: 10px;
}

.subject-page .subject-card-content {
  width: 55%;
  padding: 31px 36px 34px;
}

.subject-page .subject-module-number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 17px;
  color: #a8c1d8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

.subject-page .subject-status {
  width: fit-content;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.subject-page .subject-status-ready {
  padding: 5px 9px;
  border: 1px solid #759eac;
  border-radius: 20px;
  background: #153044;
  color: #bcf0ef;
}

.subject-page .subject-card h3 {
  margin-bottom: 16px;
  font-size: 25px;
  font-weight: 450;
  line-height: 1.16;
  letter-spacing: -.55px;
  text-wrap: balance;
}

.subject-page .subject-card-ready h3 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -1.2px;
}

.subject-page .subject-card-description {
  color: #b2c2d4;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.subject-page .subject-demo {
  margin-bottom: 18px;
  color: #e0eaf2;
  font-size: 13px;
  line-height: 1.7;
}

.subject-page .subject-demo > span {
  display: block;
  margin-bottom: 4px;
  color: #a6c0d6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.subject-page .subject-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.subject-page .subject-levels li {
  padding: 5px 11px;
  border: 1px solid #456078;
  border-radius: 4px;
  background: #0a1a2bc9;
  color: #c2d6e8;
  font-size: 11px;
  line-height: 1.5;
}

.subject-page .subject-levels abbr {
  text-decoration: none;
}

.subject-page .subject-open {
  gap: 24px;
  text-align: center;
}

.subject-page .subject-card-planned {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 26px 22px;
  border-color: #2c4055;
  background: #0d1b2d;
}

.subject-page .subject-card-planned .subject-module-number {
  color: #9aacc1;
  margin-bottom: 21px;
}

.subject-page .subject-card-planned .subject-card-description {
  margin-bottom: 25px;
  font-size: 13px;
}

.subject-page .subject-status-planned {
  width: 100%;
  margin: auto 0 0;
  padding-top: 16px;
  color: #c7bba8;
  border-top: 1px solid #304157;
}

.subject-page .subject-back {
  margin-top: 28px;
  min-height: 44px;
}

@media (max-width: 1000px) {
  .subject-page .subject-card-content {
    width: 65%;
    padding-inline: 28px;
  }

  .subject-page .subject-card-art {
    left: 15%;
  }

  .subject-page .subject-card-art::after {
    background: linear-gradient(90deg, #101e30 0%, #101e30ed 35%, #101e3060 75%), linear-gradient(0deg, #0b182dcc, transparent 32%);
  }

  .subject-page .subject-module-grid {
    gap: 16px;
  }

  .subject-page .subject-card-planned {
    padding: 24px 20px 20px;
  }

  .subject-page .subject-card-planned h3 {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .subject-page .subject-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .subject-page .subject-module-grid {
    grid-template-columns: 1fr;
  }

  .subject-page .subject-card-content {
    width: 74%;
  }

  .subject-page .subject-card-planned {
    padding: 25px;
  }

  .subject-page .subject-card-planned .subject-module-number {
    margin-bottom: 13px;
  }

  .subject-page .subject-card-planned .subject-card-description {
    margin-bottom: 19px;
  }
}

@media (max-width: 640px) {
  .subject-page .subject-main {
    padding-top: calc(var(--header) + 22px);
    padding-bottom: 46px;
  }

  .subject-page .site-header.has-designer .reach-home {
    display: inline-flex !important;
    min-width: 30px;
    min-height: 38px;
    justify-content: center;
  }

  .subject-page .subject-breadcrumb ol {
    font-size: 10px;
    gap: 4px 8px;
  }

  .subject-page .subject-breadcrumb li + li::before {
    margin-right: 8px;
  }

  .subject-page .subject-hero {
    padding-block: 29px 30px;
  }

  .subject-page .subject-hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .subject-page .subject-hero h1 {
    font-size: clamp(30px, 7.8vw, 46px);
    letter-spacing: -1.2px;
  }

  .subject-page .subject-intro {
    font-size: 13px;
  }

  .subject-page .subject-section-heading h2 {
    font-size: 21px;
  }

  .subject-page .subject-section-heading p {
    font-size: 11px;
  }

  .subject-page .subject-card-ready {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .subject-page .subject-card-art {
    position: relative;
    inset: auto;
    z-index: 0;
    height: 190px;
    order: 0;
  }

  .subject-page .subject-card-art img {
    object-position: 72% 65%;
  }

  .subject-page .subject-card-art::after {
    background: linear-gradient(0deg, #101e30, #101e3020 60%);
  }

  .subject-page .subject-art-caption {
    right: 18px;
    bottom: 14px;
    font-size: 9px;
  }

  .subject-page .subject-card-content {
    position: relative;
    order: 1;
    width: 100%;
    padding: 8px 24px 27px;
  }

  .subject-page .subject-module-number {
    gap: 9px 14px;
    font-size: 9px;
  }

  .subject-page .subject-status {
    font-size: 10px;
  }

  .subject-page .subject-card-ready h3 {
    font-size: 31px;
    letter-spacing: -.8px;
  }

  .subject-page .subject-card-description {
    font-size: 13px;
  }

  .subject-page .subject-open {
    width: 100%;
    gap: 15px;
    padding-inline: 13px;
  }

  .subject-page .subject-back {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subject-page .button:hover {
    transform: none;
  }
}

/* Available lesson previews retain the subject shell without claiming release readiness. */
.subject-page .subject-card-preview { display:flex; flex-direction:column; align-items:flex-start; padding:26px; background:linear-gradient(145deg,#132940,#0d1b2d); border-color:#416985; }
.subject-page .subject-preview-features { color:#97cbdc; font-size:12px; line-height:1.7; margin:0 0 20px; }
.subject-page .subject-status-preview { margin:auto 0 18px; padding-top:14px; color:#acd6e8; border-top:1px solid #3c536a; width:100%; }
.subject-page .subject-card-preview .subject-open { width:100%; padding-inline:12px; gap:12px; font-size:12px; min-height:44px; }
@media(max-width:1000px) and (min-width:761px) { .subject-page .subject-card-preview { padding:22px 18px; } }
