/* The overview and both parts of the timetable share one continuous surface. */
.curriculum-flow { background: var(--bg, var(--paper)); }
.natural-layout .curriculum-flow { background: transparent; }
.curriculum-flow :is(.journey, .semester) {
  background: transparent;
  border: 0;
  padding-block: 0 clamp(2.25rem, 5vw, 4.25rem);
}
.curriculum-flow .journey .section-heading,
.curriculum-flow .semester .program-heading {
  padding-top: clamp(1.5rem, 3.6vw, 2.875rem);
  border-top: 1px solid var(--line);
}
.curriculum-flow .journey .section-heading {
  align-items: flex-start;
  margin-bottom: clamp(1.25rem, 2.8vw, 2.125rem);
}
.program-shell {
  width: min(calc(100% - 6rem), 1160px);
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3.6vw, 2.875rem);
}
.natural-layout .program-shell {
  width: min(calc(100% - var(--gutter) * 2), 1424px);
}
.program-essentials,
.program-phases,
.program-timetable ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.program-essentials {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 2.2rem;
}
.program-essentials li {
  display: flex;
  gap: .25rem .7rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.program-essentials strong {
  font-size: clamp(1.0625rem, 1.65vw, 1.375rem);
  font-weight: 650;
}
.program-essentials span,
.program-intro p,
.program-phases p {
  color: var(--secondary, var(--muted));
}
.program-essentials span { font-size: .875rem; }
.program-intro {
  margin-bottom: clamp(1rem, 2.4vw, 1.75rem);
}
.program-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
}
.program-period {
  color: var(--secondary, var(--muted));
  font-size: clamp(.9375rem, 1.4vw, 1.125rem);
  font-weight: 600;
  white-space: nowrap;
}
.program-intro h2 {
  font-size: clamp(1.875rem, 3.85vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.curriculum-flow .program-heading > h3 {
  margin: 0;
  font-size: clamp(1.375rem, 3.15vw, 2.125rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.03em;
  text-wrap: wrap;
}
.program-intro p { margin-top: .5rem; font-size: 1rem; }
.program-intro h2 span { white-space: nowrap; }
.program-phases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.program-phases li {
  padding: clamp(1rem, 2.7vw, 1.75rem);
  background: var(--bg, var(--paper));
}
.natural-layout .program-phases li { background: var(--paper); }
.program-phases a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .9375rem;
}
.program-phases h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 650;
}
.program-phases p { margin-top: .4rem; font-size: 1rem; }
.program-timetable {
  --week-cols: minmax(10rem, .65fr) minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.timetable-head,
.program-week {
  display: grid;
  grid-template-columns: var(--week-cols);
}
.timetable-head {
  align-items: center;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 650;
}
.timetable-head > span,
.program-week > div { padding: .9rem clamp(.9rem, 2vw, 1.5rem); }
.timetable-head > span + span,
.program-week > div + div { border-left: 1px solid var(--line); }
.timetable-head small {
  display: inline-block;
  padding-left: .45rem;
  font-size: .875rem;
  font-weight: 400;
  color: var(--secondary, var(--muted));
}
.program-week {
  border-top: 1px solid var(--line);
  min-height: 5.5rem;
}
.week-focus h3 {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.4;
}
.week-focus span {
  font-size: .875rem;
  color: var(--secondary, var(--muted));
}
.week-session {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.program-week p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.week-session-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.natural-layout .program-timetable .timetable-head { background: rgb(255 254 242 / .72); }
.natural-layout .program-timetable .program-week { background: rgb(255 254 242 / .32); }
.semester .semester-body {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: .75rem 2rem;
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
  padding-top: 0;
  border-top: 0;
}
.semester .semester-body strong { display: block; font-size: 1.125rem; }
.semester .semester-body p { font-size: 1rem; line-height: 1.65; }
.semester .semester-body .fine { margin-top: .7rem; font-size: .875rem; }
@media (max-width: 760px) {
  .program-shell { width: calc(100% - 2.5rem); }
  .program-timetable { --week-cols: repeat(2, minmax(0, 1fr)); }
  .program-timetable .timetable-head { display: none; }
  .week-focus {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .15rem .6rem;
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .week-session {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .program-week > div:nth-child(2) { border-left: 0; }
  .week-session-label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    font-weight: 600;
    font-size: .875rem;
    color: var(--secondary, var(--muted));
    margin-bottom: .4rem;
  }
  .semester .semester-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .program-phases { grid-template-columns: 1fr; }
  .timetable-head > span,
  .program-week > div { padding-inline: .75rem; }
}

.program-highlights {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding-top: clamp(.75rem, 1.8vw, 1.25rem);
}
#support li strong {
  font-weight: 700;
  color: inherit;
}
.semester-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}
.semester-cards li {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.625rem);
  border: 1px solid var(--line);
  background: var(--bg, var(--paper));
}
.semester-cards h3 {
  min-block-size: 2.8em;
  min-block-size: 2lh;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.semester-cards p {
  margin-top: .6rem;
  color: var(--secondary, var(--muted));
  font-size: 1rem;
  line-height: 1.7;
}
.natural-layout .semester-cards li { background: rgb(255 254 242 / .72); }
@media (max-width: 960px) {
  .semester-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .semester-cards { grid-template-columns: 1fr; }
}

/* The sections after the curriculum begin on visibly different full-width surfaces. */
.project-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.recruitment-band {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.natural-layout .landscape-meadow > .projects {
  background: rgb(220 233 216 / .91);
  border-top-color: rgb(64 74 60 / .28);
}
.natural-layout .landscape-winter {
  border-top: 1px solid rgb(64 74 60 / .28);
}
.natural-layout .landscape-winter > .join { border-top: 0; }

.people-panel .company-summary {
  max-width: 100%;
  margin-block: 1rem 0;
  text-wrap: balance;
}

.people-panel .company-intro h3 {
  font-size: clamp(1.3125rem, 1.8vw, 1.875rem);
  font-weight: 500;
  line-height: 1.28;
}
.people-panel .company-intro h3 strong { font-weight: 600; }
.people-panel .company-intro .company-summary {
  color: var(--secondary, var(--muted));
  font-size: 1rem;
  line-height: 1.7;
}
