:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #5e6964;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --soft: #eff4f0;
  --line: #d8e0db;
  --forest: #174338;
  --moss: #4d6f3f;
  --brick: #a64f39;
  --blue: #28536b;
  --gold: #b7832f;
  --shadow: 0 18px 50px rgba(23, 33, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brick);
}

.masthead {
  min-height: 76vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px clamp(20px, 5vw, 72px) 58px;
  color: white;
  background:
    linear-gradient(90deg, rgba(18, 43, 36, 0.94), rgba(18, 43, 36, 0.72) 58%, rgba(18, 43, 36, 0.44)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.92rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nav a:hover {
  color: white;
  text-decoration: underline;
}

.masthead__inner {
  align-self: center;
  width: min(1040px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.masthead .eyebrow {
  color: #f0bb84;
}

h1,
h2,
h3,
p,
li,
td,
th {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(2.35rem, 5.4vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 950px;
  font-size: clamp(1.62rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.25;
}

.lede {
  max-width: 860px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 2vw, 1.28rem);
}

.section {
  padding: 74px clamp(20px, 5vw, 72px);
}

.section--tint {
  background: var(--soft);
}

.section__header {
  max-width: 970px;
  margin-bottom: 28px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.priority {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.priority--hot {
  border-color: rgba(166, 79, 57, 0.45);
}

.priority p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-weight: 850;
}

.status {
  color: var(--brick) !important;
  font-size: 0.92rem;
  font-weight: 750;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.cards article,
.eligibility-grid article,
.notes p {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cards p,
.eligibility-grid p,
.notes p,
.section--split p {
  margin: 0;
  color: var(--muted);
}

.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--forest);
  color: white;
  font-size: 0.81rem;
}

td {
  font-size: 0.91rem;
}

td:first-child,
th:first-child {
  width: 64px;
  text-align: center;
}

td:nth-child(3),
th:nth-child(3),
td:nth-child(4),
th:nth-child(4) {
  width: 150px;
}

td:nth-child(5),
th:nth-child(5) {
  width: 190px;
}

tbody tr:nth-child(even) {
  background: #f8faf8;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  position: relative;
  min-height: 86px;
  padding: 18px 18px 18px 60px;
  border-left: 4px solid var(--moss);
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: white;
  font-size: 0.82rem;
  font-weight: 850;
}

.notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  max-width: 1180px;
}

.source-list a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--forest);
  color: rgba(255, 255, 255, 0.78);
}

.footer p {
  margin: 0;
}

@media (max-width: 1060px) {
  .priority-grid,
  .cards,
  .eligibility-grid,
  .notes,
  .source-list,
  .section--split {
    grid-template-columns: 1fr;
  }

  .cards article,
  .notes p,
  .priority {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .masthead {
    min-height: 88vh;
    padding-top: 18px;
  }

  .nav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .priority {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px;
  }
}
