:root {
  --ink: #18202f;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --brand: #1c3b7f;
  --brand-dark: #142c61;
  --brand-deep: #0b1835;
  --link: #105389;
  --gold: #b88a3d;
  --blue: #105389;
  --green: #4f7f74;
  --teal: #2f758a;
  --shadow: 0 14px 34px rgba(24, 32, 47, .08);
}

.hero {
  color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, rgba(56, 96, 178, .55), rgba(56, 96, 178, 0) 60%), linear-gradient(120deg, var(--brand-deep), var(--brand) 72%, var(--brand-dark));
}

.hero-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 330px;
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  align-content: center;
}

.crumb {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: -38px auto 72px;
}

.section, .notice, .program, .process, .guide-card, .subnav {
  background: var(--paper);
  border: 1px solid var(--line);
}

.notice {
  margin-top: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.subnav {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--shadow);
}

.subnav a {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe6ef;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.subnav a:not([aria-current="page"]):hover, .subnav a:not([aria-current="page"]):focus-visible {
  transform: translateY(-2px);
  border-color: rgba(28, 59, 127, .45);
  box-shadow: 0 14px 30px rgba(24, 32, 47, .08);
  outline: none;
}

.subnav a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.notice h2, .section-title h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.notice p, .section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.btn {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.section {
  margin-top: 28px;
  padding: 24px;
}

.section-title {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.program {
  padding: 22px;
  min-height: 292px;
  position: relative;
  overflow: hidden;
}

.program::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.program.data::before {
  background: var(--teal);
}

.program h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.program p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.program-meta {
  margin-top: 18px;
}

.metric {
  border: 1px solid #e7ebf2;
  background: #fbfcfe;
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--brand);
  font-size: 20px;
  line-height: 1.3;
}

.metric strong .credits {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li {
  padding-left: 18px;
  position: relative;
  color: #344054;
  font-size: 15px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  background: var(--gold);
}

.metric-course-groups {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.metric-course-group {
  padding-top: 10px;
  border-top: 1px solid #dcefee;
}

.metric-course-group b {
  display: block;
  color: var(--teal);
  font-size: 14px;
}

.metric-course-group small {
  display: block;
  margin-top: 5px;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}

.step {
  min-height: 154px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
}

.step:last-child {
  border-right: 0;
}

.step strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
}

.step span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rule {
  padding: 18px;
  border: 1px solid #e7ebf2;
  background: #fbfcfe;
  min-height: 112px;
}

.rule strong {
  display: block;
  color: var(--brand);
  font-size: 18px;
}

.rule p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.guide-card.teal::before {
  background: var(--teal);
}

.guide-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 22px;
  letter-spacing: 0;
}

.guide-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.link-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.link-list a {
  min-height: 42px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e6ebf3;
  background: #fbfcfe;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-list a::after {
  content: ">";
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 900;
}

.link-list a:hover, .link-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(28, 59, 127, .45);
  box-shadow: 0 14px 30px rgba(24, 32, 47, .08);
  outline: none;
}

.flow-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.flow-node {
  position: relative;
  min-height: 138px;
  padding: 18px;
  border: 1px solid #dfe6ef;
  background: #fff;
}

.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 2;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.flow-node em {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.flow-node strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
}

.flow-node span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.program-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.program-courses-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.program-courses-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.program-courses-card.data::before {
  background: var(--teal);
}

.program-courses-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.course-block {
  margin-top: 18px;
}

.course-block h4 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 16px;
  letter-spacing: 0;
}

.course-block h5 {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.course-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.course-block li {
  padding: 6px 10px;
  border: 1px solid #e6ebf3;
  background: #fbfcfe;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-block li small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .program-grid, .program-courses-grid, .rule-grid, .notice {
    grid-template-columns: 1fr;
  }

  .process, .flow-diagram, .guide-grid {
    grid-template-columns: 1fr;
  }

  .flow-node:not(:last-child)::after {
    display: none;
  }

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

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 620px) {
  .topbar-inner, .hero-inner, main {
    width: min(100% - 28px, 1160px);
  }

  .hero-inner {
    min-height: 300px;
    padding: 40px 0 64px;
  }

  .hero p {
    font-size: 16px;
  }

  .section, .notice {
    padding: 18px;
  }

  .section-title {
    display: block;
  }

  .program-meta, .process, .flow-diagram {
    grid-template-columns: 1fr;
  }

  .step, .step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

}
