/* Page-scoped layout for the selection guide and company profile. */
.guide-hub {
  color: #142d43;
  font-size: 16px;
  line-height: 1.8;
}

.guide-hub [id] {
  scroll-margin-top: 96px;
}

.about-profile .primary-hero__copy > p a {
  color: #efd1a1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-hub .page-header > .container > p:last-child {
  max-width: 760px;
  margin: 18px auto 0;
  color: #e1eaed;
}

.guide-hub .guide-hub__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 12px;
}

.guide-hub__nav a {
  padding: 10px 18px;
  border: 1px solid #c7ccc7;
  border-radius: 999px;
  color: #16577d;
  background: #fffdf8;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.guide-hub__section {
  padding-top: 52px;
  padding-bottom: 56px;
}

.guide-hub__section--border {
  border-top: 1px solid #d8d0bf;
}

.guide-hub__heading {
  max-width: 870px;
  margin-bottom: 28px;
}

body.site-shell .guide-hub h2 {
  margin: 6px 0 14px;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.4;
  text-wrap: pretty;
}

body.site-shell .guide-hub h3 {
  margin: 8px 0 12px;
  color: #142d43;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
}

body.site-shell .guide-hub p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
}

.guide-hub__heading p,
.guide-hub__card p,
.guide-hub__route p {
  color: #51676e;
}

.guide-hub__eyebrow {
  color: #756039;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.guide-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-hub__card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #d8d0bf;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  background: #fffdf8;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.guide-hub a.guide-hub__card:hover,
.guide-hub a.guide-hub__card:focus-visible {
  border-color: #16577d;
  box-shadow: 0 8px 24px rgba(16, 42, 61, 0.08);
}

.guide-hub__card-link {
  margin-top: auto;
  padding-top: 16px;
  color: #16577d;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.guide-hub__routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 48px;
}

.guide-hub__route {
  padding: 32px;
  border-radius: 14px;
  background: #e7ebe5;
}

.guide-hub__button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  background: #16577d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.guide-hub__button:hover,
.guide-hub__button:focus-visible {
  color: #fff;
  background: #102a3d;
}

.guide-hub__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 60px;
  border-top: 1px solid #d8d0bf;
}

.guide-hub__contact > div {
  max-width: 760px;
}

.guide-hub__contact > .guide-hub__button {
  flex-shrink: 0;
}

.guide-hub__credential {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 36px;
  padding: 30px;
  border: 1px solid #d8d0bf;
  border-radius: 14px;
  background: #fffdf8;
}

.guide-hub__credential figure {
  margin: 0;
}

.guide-hub__credential h3 {
  text-wrap: balance;
}

.guide-hub__credential img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.guide-hub__credential figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.guide-hub__facts {
  margin: 18px 0 0;
}

.guide-hub__facts > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #e2e0d7;
}

body.site-shell .guide-hub__facts dt,
body.site-shell .guide-hub__facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.guide-hub__facts dt {
  color: #51676e;
}

@media (max-width: 1000px) {
  .guide-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-hub__contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .guide-hub__credential {
    grid-template-columns: 1fr;
  }

  .guide-hub__credential figure {
    max-width: 580px;
  }
}

@media (max-width: 600px) {
  .guide-hub__section {
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .guide-hub__grid,
  .guide-hub__routes {
    grid-template-columns: 1fr;
  }

  .guide-hub__card,
  .guide-hub__route,
  .guide-hub__credential {
    padding: 22px;
  }

  .guide-hub__nav a {
    padding: 9px 13px;
  }

  .guide-hub__facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .guide-hub__contact {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}
