.site-header { background: rgba(255, 255, 255, .96); }

.institution-lockup { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.institution-lockup img { display: block; width: 122px; height: auto; }
.institution-lockup i { width: 1px; height: 29px; background: #d2d2d2; }
.institution-lockup b { color: #191919; font: 800 13px/1 Arial, sans-serif; letter-spacing: -.02em; }
.institution-lockup small { margin-top: 4px; color: #5f6368; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 420px) {
  .institution-lockup { gap: 7px; }
  .institution-lockup img { width: 112px; }
  .institution-lockup b { font-size: 12px; }
}

.hero {
  background: radial-gradient(circle at 82% 35%, rgba(233, 28, 36, .08), transparent 28%), #fff;
}

.assessment-section,
.faq-section { background: #f2f2f2; }

.closing { background: #fff; }

.development-head {
  max-width: 850px;
  margin: 58px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.hero .course-title {
  max-width: 900px;
  font-size: clamp(28px, 4.1vw, 60px);
  line-height: .96;
  letter-spacing: -2.5px;
}

.hero .course-title > span,
.hero .course-title em {
  display: block;
  white-space: nowrap;
}

.hero .course-title em {
  color: var(--red);
  font-weight: 500;
}

.hero .hero-promise {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink);
  font: 600 clamp(25px, 2.5vw, 35px)/1.15 Georgia, serif;
}

.development-head h3 {
  margin: 0 0 8px;
  font: 600 clamp(25px, 3vw, 36px)/1.15 Georgia, serif;
}

.development-head > p:last-child {
  margin: 0;
  color: var(--muted);
}

.independence {
  align-items: stretch;
  margin-top: 24px;
}

.independence div {
  padding: 17px 13px;
  background: rgba(255, 255, 255, .45);
}

.independence b {
  margin: 7px 0;
  font: 600 19px/1.25 Georgia, serif;
}

.independence p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Class details open below the complete card row, preserving the three-card grid. */
.cycle-class-grid .class-card.open {
  grid-column: auto;
  border-color: var(--cycle);
  box-shadow: 0 12px 30px rgba(47, 27, 33, .12);
}

.cycle-class-grid .class-card > button { height: 100%; }

.class-inline-modal {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--cycle);
  background: white;
  box-shadow: var(--shadow);
}

.class-inline-modal > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.class-inline-modal > header small {
  color: var(--cycle);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.class-inline-modal h4 {
  margin: 5px 0 0;
  font: 600 27px/1.15 Georgia, serif;
}

.class-inline-modal > header button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--cycle);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.class-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.class-modal-grid section {
  min-width: 0;
  padding: 22px 24px 25px;
  border-right: 1px solid var(--line);
}

.class-modal-grid section:last-child { border-right: 0; }

.class-modal-grid small {
  color: var(--cycle);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.class-modal-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 700px) {
  .class-modal-grid { grid-template-columns: 1fr; }
  .class-modal-grid section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .class-modal-grid section:last-child { border-bottom: 0; }
}

/* Keep the assessment explanation card stable while fitting longer requirements. */
.assessment-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  padding: 24px;
  overflow: hidden;
}

.assessment-detail small {
  display: block;
  line-height: 1.3;
}

.assessment-detail p {
  margin-top: 5px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.42;
}

/* A concrete, course-specific reconstruction standard. */
.evidence-copy p {
  max-width: 690px;
  margin: 0 0 13px;
  color: #d3c8cb;
}

.evidence-copy p:last-child {
  margin-bottom: 0;
  color: #e2a45c;
  font-weight: 750;
}

.ladder div {
  grid-template-columns: 56px 1fr;
  align-items: stretch;
}

.ladder span {
  display: grid;
  place-items: center;
  padding: 17px 10px;
}

.ladder b {
  display: block;
  padding: 13px 16px;
  font-size: 14px;
}

.ladder small {
  display: block;
  margin-top: 4px;
  color: #cfc4c8;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
}

.evidence-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 4px;
  padding: 23px 0 0;
  border-top: 1px solid #5d4850;
}

.evidence-summary b {
  color: #e2a45c;
  font: 600 20px/1.25 Georgia, serif;
}

.evidence-summary span {
  color: white;
  font-size: 15px;
}

.faq article > p a {
  color: var(--red);
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 1050px) {
  .evidence-summary { grid-column: auto; }
}

@media (min-width: 701px) and (max-width: 1250px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr);
    gap: clamp(24px, 4vw, 48px);
    padding-left: clamp(24px, 5vw, 64px);
    padding-right: clamp(24px, 5vw, 64px);
  }
  .hero-copy { min-width: 0; }
  .hero .course-title { font-size: clamp(27px, 3.5vw, 44px); }
  .hero .hero-promise { max-width: 520px; font-size: clamp(22px, 2.5vw, 30px); }
  .hero .hero-lead { max-width: 560px; font-size: 17px; }
  .hero .hero-proof { justify-self: end; width: min(310px, 100%); padding: 25px; }
}

@media (max-width: 600px) {
  .evidence-summary { grid-template-columns: 1fr; gap: 8px; }
  .cycle-interface,
  .cycle-tabs,
  .cycle-panel,
  .cycle-panel > * { min-width: 0; width: 100%; }
  .cycle-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-tabs button { min-width: 0; padding: 11px 7px; overflow-wrap: anywhere; }
  .cycle-question h3,
  .cycle-study h4 { overflow-wrap: anywhere; }
  .semester-cycle-row > header { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { min-width: 0; width: 100%; }
  .hero .hero-proof { justify-self: start; width: min(340px, 100%); }
  .hero .course-title {
    font-size: clamp(21px, 7vw, 28px);
    letter-spacing: -1.2px;
  }
  .hero .hero-promise { font-size: 25px; }
}
