:root {
  color-scheme: light;
  --paper: #eee6d8;
  --paper-soft: #f7f1e6;
  --paper-bright: #fffaf0;
  --ink: #211c19;
  --ink-soft: #59504a;
  --rule: #b9ad9c;
  --rule-dark: #786d64;
  --mit-red: #a31f34;
  --mit-red-dark: #711426;
  --sage: #4c6358;
  --amber: #855d20;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  --text: Candara, "Trebuchet MS", Calibri, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Lucida Console", monospace;
  --shadow: 0 14px 36px rgb(54 36 24 / 10%);
  --page-gutter: clamp(1rem, 3.6vw, 4.5rem);
  --measure: 72rem;
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgb(163 31 52 / 7%), transparent 22rem),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      rgb(56 40 30 / 3%) 25%
    ),
    var(--paper);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

a {
  color: var(--mit-red-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mit-red);
}

:focus-visible {
  outline: 0.2rem solid var(--mit-red);
  outline-offset: 0.2rem;
}

::selection {
  color: var(--paper-bright);
  background: var(--mit-red);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--paper-bright);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(2rem, 6vw, 7rem);
  min-height: 33rem;
  padding: clamp(2.5rem, 6vw, 6rem) var(--page-gutter) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  color: var(--paper-soft);
  background:
    linear-gradient(106deg, rgb(255 255 255 / 3%) 0 52%, transparent 52%),
    var(--ink);
  border-bottom: 0.55rem solid var(--mit-red);
}

.masthead::after {
  position: absolute;
  right: -0.04em;
  bottom: -0.32em;
  content: "37";
  color: rgb(247 241 230 / 4%);
  font-family: var(--display);
  font-size: clamp(18rem, 38vw, 39rem);
  font-variant-numeric: lining-nums;
  line-height: 0.8;
  pointer-events: none;
}

.masthead__rule {
  position: absolute;
  top: 0;
  left: var(--page-gutter);
  width: clamp(4rem, 10vw, 9rem);
  height: 0.7rem;
  background: var(--mit-red);
}

.masthead__identity,
.masthead__statement {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.masthead__kicker,
.masthead__edition,
.eyebrow,
.department-atlas__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.masthead__kicker {
  color: #dfb5bc;
}

.masthead__edition {
  margin-top: 0.45rem;
  color: #bdb1a7;
}

.masthead h1 {
  display: flex;
  flex-direction: column;
  max-width: 8ch;
  margin: clamp(2.7rem, 7vw, 5.5rem) 0 0;
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 11.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.72;
}

.masthead h1 span:last-child {
  margin-left: 0.48em;
  color: #e3d8c7;
  font-style: italic;
}

.masthead__statement {
  align-self: end;
  padding-bottom: 0.7rem;
  border-top: 1px solid rgb(238 230 216 / 28%);
}

.masthead__statement > p:first-child {
  margin: 1.3rem 0 2rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.3;
}

.masthead__disclaimer {
  margin: 0;
  padding-left: 1rem;
  color: #d3c8bc;
  border-left: 0.25rem solid var(--mit-red);
  font-size: 0.83rem;
  line-height: 1.45;
}

.mode-nav {
  position: relative;
  z-index: 10;
  padding: 0 var(--page-gutter);
  color: var(--paper-soft);
  background: var(--ink);
  border-bottom: 1px solid #4f4640;
}

.mode-tabs {
  display: flex;
  max-width: var(--measure);
  margin: 0 auto;
}

.mode-tab {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  min-width: min(15rem, 50%);
  padding: 1.15rem clamp(1rem, 2vw, 1.8rem);
  color: #cfc2b7;
  background: transparent;
  border: 0;
  border-right: 1px solid #4f4640;
  font-family: var(--display);
  font-size: 1.12rem;
  text-align: left;
}

.mode-tab:first-child {
  border-left: 1px solid #4f4640;
}

.mode-tab:hover:not(:disabled) {
  color: white;
  background: rgb(255 255 255 / 4%);
}

.mode-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0.3rem var(--mit-red);
}

.mode-tab:disabled {
  color: #786f69;
  text-decoration: line-through;
}

.mode-tab__number {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

main {
  min-width: 0;
}

.view-panel {
  width: min(100%, 100rem);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) var(--page-gutter) 6rem;
  animation: panel-reveal 320ms ease-out both;
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule-dark);
}

.eyebrow {
  color: var(--mit-red);
}

.section-heading h2,
.region-heading h3,
.timeline-phase__header h3,
.pathway-summary h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-heading h2 {
  max-width: 14ch;
  margin-top: 0.7rem;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.section-heading > p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.catalog-controls,
.path-selectors {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(16rem, 1.25fr);
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.path-selectors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 3.2rem;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  color: var(--ink);
  background-color: var(--paper-bright);
  border: 1px solid var(--rule-dark);
  border-radius: 0;
}

.field input {
  padding-right: 0.85rem;
}

.field input::placeholder {
  color: #7f7369;
}

.department-atlas {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}

.department-atlas__label {
  padding-top: 0.5rem;
  color: var(--ink-soft);
}

.department-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  min-width: 0;
}

.department-index button {
  min-height: 2.25rem;
  padding: 0.35rem 0.62rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.department-index button:hover,
.department-index button[aria-pressed="true"] {
  color: var(--paper-bright);
  background: var(--mit-red-dark);
  border-color: var(--mit-red-dark);
}

.results-register {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 0.28rem solid var(--ink);
}

.results-register p {
  margin: 0;
}

#catalog-results-status {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
}

.results-register__note {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: right;
}

.catalog-course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-bottom: 1px solid var(--rule-dark);
}

.catalog-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  background: rgb(255 250 240 / 48%);
  border-bottom: 1px solid var(--rule);
}

.catalog-card:nth-child(odd) {
  border-right: 1px solid var(--rule);
}

.catalog-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 0.16rem;
  content: "";
  background: var(--mit-red);
}

.catalog-card__head,
.path-card__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.course-number,
.path-card__number {
  margin: 0 0 0.45rem;
  color: var(--mit-red-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.catalog-card h3,
.path-card h5,
.gap-card h4,
.limitation-card h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

.catalog-card h3 {
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}

.primary-link {
  flex: 0 0 auto;
  padding: 0.35rem 0.5rem;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-link:hover {
  color: white;
  background: var(--mit-red);
  border-color: var(--mit-red);
}

.catalog-card__meta {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.18rem 0.45rem;
  color: var(--ink);
  background: #ded4c5;
  border: 1px solid #a89b8a;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge--official {
  color: #fffaf0;
  background: #384e45;
  border-color: #384e45;
}

.badge--curated {
  color: #fffaf0;
  background: #704b17;
  border-color: #704b17;
}

.badge--heuristic {
  color: #fffaf0;
  background: #655a53;
  border-color: #655a53;
}

.badge--external {
  color: #fffaf0;
  background: var(--mit-red-dark);
  border-color: var(--mit-red-dark);
}

.badge--supporting {
  color: #26392f;
  background: #d9e2d7;
  border-color: #829583;
}

.alternative-toggle {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.4rem 0;
  color: var(--mit-red-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 700;
}

.alternative-toggle::before {
  content: "+";
  font-family: var(--mono);
}

.alternative-toggle[aria-expanded="true"]::before {
  content: "−";
}

.alternative-list {
  margin: 0.8rem 0 0;
  padding: 0.8rem 0 0 1.15rem;
  border-top: 1px dotted var(--rule-dark);
}

.alternative-list li + li {
  margin-top: 0.55rem;
}

.alternative-list a {
  overflow-wrap: anywhere;
}

.catalog-empty,
.timeline-empty,
.region-empty,
.loading-copy,
.pathway-unavailable {
  margin: 0;
  padding: 2rem;
  color: var(--ink-soft);
  background: rgb(255 250 240 / 52%);
  border: 1px dashed var(--rule-dark);
  font-family: var(--display);
  font-size: 1.1rem;
}

.catalog-empty {
  grid-column: 1 / -1;
}

.path-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  min-width: 0;
}

.pathway-summary {
  position: sticky;
  top: 1rem;
  min-width: 0;
  padding: 1.35rem;
  color: var(--paper-soft);
  background:
    linear-gradient(150deg, rgb(163 31 52 / 20%), transparent 48%),
    var(--ink);
  border-top: 0.35rem solid var(--mit-red);
  box-shadow: var(--shadow);
}

.summary-header h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.classification {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.28rem 0.5rem;
  color: var(--paper-bright);
  border: 1px solid #aa9f94;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-description {
  margin: 1rem 0 0;
  color: #d8cdc1;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.4;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.3rem -1.35rem 0;
  background: #5b514a;
  border-block: 1px solid #5b514a;
}

.summary-metric {
  min-width: 0;
  padding: 0.85rem 1.1rem;
  background: #2a2421;
}

.summary-metric strong,
.summary-metric span {
  display: block;
}

.summary-metric strong {
  color: white;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.summary-metric span {
  margin-top: 0.35rem;
  color: #c4b9ae;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.summary-section {
  padding-top: 1.2rem;
  border-top: 1px solid #554b45;
}

.summary-section + .summary-section {
  margin-top: 1.2rem;
}

.summary-section h4 {
  margin: 0 0 0.55rem;
  color: #e2d7cc;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-section ul {
  margin: 0;
  padding-left: 1rem;
  color: #cfc4b9;
  font-size: 0.78rem;
}

.summary-section li + li {
  margin-top: 0.5rem;
}

.source-list {
  padding: 0 !important;
  list-style: none;
}

.source-list a {
  display: block;
  color: #f1d5da;
  overflow-wrap: anywhere;
}

.source-list span {
  display: block;
  color: #a99f97;
  font-size: 0.68rem;
}

.reset-progress {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.72rem;
  color: #fff4f6;
  background: transparent;
  border: 1px solid #b87a84;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reset-progress:hover {
  background: var(--mit-red);
  border-color: var(--mit-red);
}

.path-content {
  min-width: 0;
}

.filter-register {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 0.3rem solid var(--ink);
}

.filter-register__description {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.path-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  border: 1px solid var(--rule-dark);
}

.path-filters button {
  min-height: 2.5rem;
  padding: 0.48rem 0.72rem;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border: 0;
  border-right: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.path-filters button:last-child {
  border-right: 0;
}

.path-filters button:hover,
.path-filters button[aria-pressed="true"] {
  color: white;
  background: var(--mit-red-dark);
}

.semester-timeline {
  position: relative;
  min-width: 0;
  padding: 2rem 0 1rem;
}

.semester-timeline::before {
  position: absolute;
  top: 2rem;
  bottom: 1rem;
  left: 1.15rem;
  width: 1px;
  content: "";
  background: var(--rule-dark);
}

.timeline-phase {
  position: relative;
  min-width: 0;
}

.timeline-phase + .timeline-phase {
  margin-top: 3rem;
}

.timeline-phase__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.timeline-phase__marker {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  color: var(--paper-bright);
  background: var(--mit-red-dark);
  border: 0.3rem solid var(--paper);
  border-radius: 50%;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
}

.timeline-phase__header h3 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.timeline-phase__header p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.semester {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0 0 0.85rem 3.3rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  box-shadow: 0 5px 15px rgb(55 38 26 / 5%);
}

.semester__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.semester__toggle:hover {
  background: #ece2d2;
}

.semester__number {
  color: var(--mit-red-dark);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.semester__title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.semester__toggle-icon {
  font-family: var(--mono);
  font-size: 1rem;
}

.semester__panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--rule);
}

.semester__note {
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.75rem;
  color: var(--ink-soft);
  background: #eadfce;
  border-left: 0.2rem solid var(--amber);
  font-size: 0.76rem;
}

.course-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
}

.path-card {
  position: relative;
  min-width: 0;
  padding: 0.95rem;
  background: var(--paper-bright);
  border: 1px solid #cbbfaf;
  border-top: 0.22rem solid var(--ink);
}

.path-card--external {
  border-top-color: var(--mit-red);
}

.path-card--supporting {
  background: #f0f2e9;
  border-top-color: var(--sage);
}

.path-card h5 {
  font-size: 1.08rem;
}

.path-card__institution {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.path-card__link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.path-card__reason {
  margin: 0.8rem 0 0;
  padding-top: 0.75rem;
  color: var(--ink-soft);
  border-top: 1px dotted var(--rule-dark);
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.4;
}

.path-card__reason strong,
.metadata-list dt {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metadata-list {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
  gap: 0.35rem 0.65rem;
  margin: 0.8rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--rule-dark);
  font-size: 0.74rem;
}

.metadata-list dt,
.metadata-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.metadata-list dd {
  color: var(--ink-soft);
}

.completion-control {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.completion-control input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.05rem 0 0;
  accent-color: var(--mit-red);
  flex: 0 0 auto;
}

.supporting-register {
  grid-column: 1 / -1;
  margin: 0.3rem 0 0;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.evidence-region {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 0.3rem solid var(--ink);
}

.evidence-region--limits {
  border-top-color: var(--mit-red-dark);
}

.region-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.region-heading h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gap-card,
.limitation-card {
  min-width: 0;
  padding: 1.1rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
}

.gap-card {
  border-top: 0.25rem solid var(--mit-red);
}

.limitation-card {
  background:
    linear-gradient(135deg, rgb(163 31 52 / 5%), transparent 52%),
    var(--paper-soft);
  border-left: 0.25rem solid var(--mit-red-dark);
}

.gap-card h4,
.limitation-card h4 {
  margin-top: 0.65rem;
  font-size: 1.2rem;
}

.evidence-copy {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.evidence-copy strong {
  color: var(--ink);
}

.source-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--rule-dark);
  font-size: 0.76rem;
}

.source-links a {
  overflow-wrap: anywhere;
}

.app-status {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  max-width: min(30rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0;
  color: var(--paper-bright);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
}

.app-status:not(:empty) {
  padding: 0.75rem 0.9rem;
  border-left: 0.3rem solid var(--mit-red);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--page-gutter);
  color: #ccc0b6;
  background: var(--ink);
  border-top: 0.4rem solid var(--mit-red);
  font-size: 0.78rem;
}

.site-footer p {
  max-width: 45rem;
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.7rem;
}

.site-footer__mark {
  color: white;
  font-family: var(--display);
  font-size: 1.35rem;
}

@media (max-width: 719px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    min-height: 0;
  }

  .masthead h1 {
    font-size: clamp(4.4rem, 22vw, 7rem);
  }

  .masthead__statement {
    max-width: 38rem;
  }

  .mode-tab {
    min-width: 0;
    flex: 1 1 50%;
    padding-inline: 0.75rem;
    font-size: 0.93rem;
  }

  .section-heading,
  .catalog-controls,
  .path-selectors,
  .path-layout,
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    gap: 1.3rem;
  }

  .section-heading h2 {
    font-size: clamp(2.6rem, 15vw, 4.5rem);
  }

  .department-atlas {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .results-register,
  .filter-register,
  .region-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-register {
    display: flex;
  }

  .results-register__note {
    text-align: left;
  }

  .catalog-course-list,
  .course-map,
  .evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-card:nth-child(odd) {
    border-right: 0;
  }

  .pathway-summary {
    position: static;
  }

  .path-filters {
    width: 100%;
  }

  .path-filters button {
    flex: 1 1 50%;
  }

  .path-filters button:nth-child(2) {
    border-right: 0;
  }

  .path-filters button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .semester {
    margin-left: 2.6rem;
  }

  .semester-timeline::before {
    left: 0.75rem;
  }

  .timeline-phase__header {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

  .timeline-phase__marker {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
    font-size: 0.53rem;
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 1rem;
  }

  .masthead {
    padding-top: 3.5rem;
  }

  .masthead::after {
    right: -0.12em;
  }

  .masthead h1 span:last-child {
    margin-left: 0.22em;
  }

  .mode-tab {
    gap: 0.35rem;
    font-size: 0.8rem;
  }

  .mode-tab__number {
    font-size: 0.55rem;
  }

  .catalog-card__head,
  .path-card__top {
    flex-direction: column;
  }

  .primary-link {
    align-self: flex-start;
  }

  .semester {
    margin-left: 1.8rem;
  }

  .semester__toggle {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .semester__number {
    grid-column: 1 / -1;
  }

  .semester__panel {
    padding-inline: 0.7rem;
  }

  .summary-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --paper: white;
    --paper-soft: white;
    --paper-bright: white;
  }

  @page {
    margin: 0.65in;
  }

  body {
    color: black;
    background: white;
    font-size: 10pt;
  }

  .skip-link,
  .mode-nav,
  .catalog-controls,
  .department-atlas,
  .path-selectors,
  .filter-register,
  .completion-control,
  .reset-progress,
  .app-status {
    display: none !important;
  }

  .masthead {
    min-height: 0;
    padding: 0 0 0.3in;
    color: black;
    background: white;
    border-bottom: 3pt solid var(--mit-red);
  }

  .masthead::after,
  .masthead__rule {
    display: none;
  }

  .masthead h1 {
    margin-top: 0.2in;
    font-size: 42pt;
  }

  .masthead h1 span:last-child,
  .masthead__kicker,
  .masthead__edition,
  .masthead__disclaimer,
  .masthead__statement {
    color: black;
  }

  .view-panel {
    width: 100%;
    padding: 0.35in 0;
    animation: none;
  }

  .path-layout {
    display: block;
  }

  .pathway-summary {
    position: static;
    margin-bottom: 0.25in;
    color: black;
    background: white;
    border: 1pt solid black;
    box-shadow: none;
  }

  .summary-description,
  .summary-section ul,
  .source-list span {
    color: black;
  }

  .summary-metrics {
    margin-inline: 0;
    background: white;
  }

  .summary-metric,
  .summary-metric strong,
  .summary-metric span {
    color: black;
    background: white;
  }

  .semester,
  .catalog-card,
  .path-card,
  .gap-card,
  .limitation-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .semester__panel[hidden] {
    display: block !important;
  }

  .semester__toggle-icon {
    display: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--text);
    font-size: 8pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
}
