.af-resource-hero {
  padding-block: clamp(40px, 6vw, 86px) 36px;
}

.af-resource-hero h1 {
  max-width: 920px;
  margin-block: 18px;
}

.af-resource-hero > p {
  max-width: 64ch;
  color: var(--af-muted);
  font-size: clamp(17px, 2.5vw, 21px);
}

.af-resource-section {
  margin-block: 28px 60px;
}

.af-resource-section > h2 {
  margin-bottom: 14px;
}

.af-resource-section > p {
  max-width: 72ch;
  margin-bottom: 18px;
  color: var(--af-muted);
}

.af-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.af-resource-grid > li {
  min-width: 0;
}

.af-resource-grid .af-commercial-card {
  height: 100%;
}

.af-resource-grid .af-commercial-card p {
  margin-top: 9px;
}

.af-resource-grid .af-commercial-card-action {
  display: block;
  margin-top: 16px;
  color: #242424;
}

.af-resource-reading {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: clamp(26px, 5vw, 64px);
  margin-bottom: 64px;
}

.af-resource-contents {
  position: sticky;
  top: var(--af-anchor-offset);
  padding: 18px;
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  background: var(--af-surface);
}

.af-resource-contents ul,
.af-resource-notes {
  display: grid;
  gap: 10px;
  margin-block: 12px 0;
  padding-inline-start: 20px;
}

.af-resource-reading article {
  min-width: 0;
}

.af-resource-reading section {
  margin-bottom: 36px;
}

.af-resource-reading h2,
.af-resource-section h2,
.af-resource-closing h2 {
  font-size: clamp(28px, 4vw, 45px);
}

.af-resource-reading h2 + p,
.af-resource-reading .af-commercial-actions {
  margin-top: 12px;
}

.af-resource-reading p + p {
  margin-top: 12px;
}

.af-resource-table {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  background: var(--af-surface);
}

.af-resource-table table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  text-align: left;
}

.af-resource-table :is(caption, th, td) {
  padding: 12px 14px;
}

.af-resource-table caption {
  text-align: left;
  font-weight: 600;
}

.af-resource-table :is(th, td) {
  border-top: 1px solid var(--af-line);
  vertical-align: top;
}

.af-resource-table th[scope="col"] {
  background: #ececec;
}

.af-resource-table td {
  font-weight: 400;
}

.af-resource-closing {
  margin-bottom: 64px;
  padding: clamp(20px, 4vw, 42px);
  border-radius: var(--af-radius);
  background: #e8e8e8;
}

.af-resource-closing p {
  max-width: 64ch;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .af-resource-reading,
  .af-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-resource-contents {
    position: static;
  }
}
