.resource-hub {
  --resource-ink: #182a35;
  --resource-muted: #53646d;
  --resource-accent: #e76f2e;
  --resource-sand: #f5f0e8;
  --resource-border: #d9e0e3;
  color: var(--resource-ink);
  overflow: clip;
}

.resource-hub .container {
  width: min(100% - 32px, 1180px);
}

.resource-hub__hero {
  position: relative;
  min-height: clamp(560px, 70vh, 760px);
  display: grid;
  align-items: end;
  isolation: isolate;
  background: #17303f;
  color: #fff;
}

.resource-hub__hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 27, 38, 0.9) 0%, rgba(9, 27, 38, 0.7) 48%, rgba(9, 27, 38, 0.25) 100%);
}

.resource-hub__hero-media,
.resource-hub__hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.resource-hub__hero-image {
  object-fit: cover;
}

.resource-hub__hero-inner {
  padding-block: clamp(120px, 16vw, 190px) clamp(56px, 8vw, 92px);
}

.resource-hub__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
  font-size: 0.9rem;
}

.resource-hub__breadcrumb li + li::before {
  margin-right: 8px;
  content: "/";
  opacity: 0.65;
}

.resource-hub__breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-hub__hero-copy {
  max-width: 760px;
}

.resource-hub__eyebrow,
.resource-hub__chapter-kicker {
  margin: 0 0 12px;
  color: var(--resource-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.resource-hub__hero h1 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.resource-hub__intro {
  max-width: 68ch;
  margin-block: 24px 30px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.resource-hub__intro > :last-child {
  margin-bottom: 0;
}

.resource-hub__topics {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 6vw, 76px);
  margin-top: 0;
  background: #fff;
}

.resource-hub__topics-heading {
  margin: 0 0 clamp(24px, 3vw, 36px);
  color: var(--resource-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.resource-hub__topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resource-hub__topic-grid a {
  display: flex;
  min-height: 190px;
  height: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--resource-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 38, 51, 0.11);
  color: var(--resource-ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.resource-hub__topic-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(15, 38, 51, 0.17);
}

.resource-hub__topic-grid a:focus-visible {
  outline: 3px solid var(--resource-accent);
  outline-offset: 3px;
}

.resource-hub__topic-number {
  color: var(--resource-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.resource-hub__topic-grid strong {
  font-size: 1rem;
  line-height: 1.3;
}

.resource-hub__topic-grid a > span:last-child:not(.resource-hub__topic-number) {
  color: var(--resource-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.resource-hub__chapter {
  padding-block: clamp(72px, 9vw, 120px);
  scroll-margin-top: 32px;
}

.resource-hub__chapter:nth-child(even) {
  background: var(--resource-sand);
}

.resource-hub__chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.resource-hub__chapter-grid--reverse .resource-hub__chapter-copy {
  order: 2;
}

.resource-hub__chapter-grid--reverse .resource-hub__chapter-media {
  order: 1;
}

.resource-hub__chapter h2 {
  max-width: 22ch;
  margin: 0 0 24px;
  color: var(--resource-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.resource-hub__prose {
  color: var(--resource-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.resource-hub__prose p:last-child {
  margin-bottom: 0;
}

.resource-hub__chapter-media {
  position: sticky;
  top: 28px;
  min-height: 440px;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.resource-hub__chapter-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-hub__aid {
  margin-top: 32px;
  padding: 24px;
  border-left: 4px solid var(--resource-accent);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 38, 51, 0.08);
}

.resource-hub__aid h3 {
  margin: 0 0 16px;
  color: var(--resource-ink);
  font-size: 1.2rem;
}

.resource-hub__aid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resource-hub__aid li {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: 14px;
}

.resource-hub__aid li span {
  color: var(--resource-muted);
}

.resource-hub__table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.resource-hub__aid table {
  width: 100%;
  border-collapse: collapse;
}

.resource-hub__aid th,
.resource-hub__aid td {
  padding: 12px;
  border: 1px solid var(--resource-border);
  text-align: left;
  vertical-align: top;
}

.resource-hub__aid thead th {
  background: var(--resource-ink);
  color: #fff;
}

.resource-hub__faqs {
  max-width: 940px;
  margin: clamp(54px, 7vw, 84px) auto 0;
}

.resource-hub__faqs > h3 {
  margin-bottom: 22px;
  color: var(--resource-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.resource-hub__cta {
  padding-block: clamp(54px, 7vw, 78px);
  background: var(--resource-ink);
  color: #fff;
}

.resource-hub__cta--closing {
  background: #10232e;
}

.resource-hub__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.resource-hub__cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.resource-hub__cta p {
  max-width: 62ch;
  margin: 0;
}

.resource-hub__cta .btn {
  flex: 0 0 auto;
}

.resource-hub__related {
  padding-block: 64px;
  background: var(--resource-sand);
}

.resource-hub__related h2 {
  margin: 0 0 20px;
  color: var(--resource-ink);
}

.resource-hub__related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resource-hub__related a {
  color: var(--resource-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--resource-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.section-faq-1 .faq-section-resource-link {
  margin-top: 22px;
}

@media (max-width: 991.98px) {
  .resource-hub__topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-hub__topic-grid li:last-child {
    grid-column: 1 / -1;
  }

  .resource-hub__chapter-grid {
    grid-template-columns: 1fr;
  }

  .resource-hub__chapter-grid--reverse .resource-hub__chapter-copy,
  .resource-hub__chapter-grid--reverse .resource-hub__chapter-media {
    order: initial;
  }

  .resource-hub__chapter-media {
    position: relative;
    top: auto;
    min-height: min(68vw, 520px);
  }
}

@media (max-width: 575.98px) {
  .resource-hub .container {
    width: min(100% - 24px, 1180px);
  }

  .resource-hub__hero {
    min-height: 620px;
  }

  .resource-hub__hero::after {
    background: linear-gradient(0deg, rgba(9, 27, 38, 0.94) 0%, rgba(9, 27, 38, 0.56) 76%, rgba(9, 27, 38, 0.32) 100%);
  }

  .resource-hub__hero-inner {
    padding-block: 128px 62px;
  }

  .resource-hub__topic-grid {
    grid-template-columns: 1fr;
  }

  .resource-hub__topics {
    padding-block: 40px 56px;
  }

  .resource-hub__topics-heading {
    margin-bottom: 24px;
  }

  .resource-hub__topic-grid li:last-child {
    grid-column: auto;
  }

  .resource-hub__topic-grid a {
    min-height: 0;
    padding: 20px;
  }

  .resource-hub__chapter {
    padding-block: 64px;
  }

  .resource-hub__chapter-media {
    min-height: 300px;
  }

  .resource-hub__aid {
    padding: 18px;
  }

  .resource-hub__aid li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resource-hub__cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-hub__topic-grid a {
    scroll-behavior: auto;
    transition: none;
  }
}
