.identity-directory-page,
.identity-country-page {
  overflow-x: clip;
  background: #fff;
}

:is(.identity-directory-page, .identity-country-page) .header-shell {
  width: min(1760px, calc(100% - 64px));
}

.identity-directory-page .formation-hero {
  background: #eaf1f6;
}
.identity-directory-page .formation-hero-copy > p {
  max-width: 690px;
}
.identity-directory-page .gb-country-card-body {
  min-height: 270px;
}
.identity-directory-page .gb-country-meta dd {
  line-height: 1.55;
}

.identity-route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
}

.identity-route-tags span {
  padding: 6px 9px;
  border: 1px solid #d4e0e8;
  background: #f7fafc;
  color: #49657d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.identity-country-page .country-formation-hero,
.identity-country-page .country-formation-hero .shell {
  min-height: 560px;
}
.identity-country-page .country-formation-hero-copy {
  width: min(760px, 64%);
}
.identity-country-page .country-formation-hero h1 {
  max-width: 760px;
}
.identity-country-page .country-formation-facts strong {
  font-size: 20px;
}
.identity-country-page .country-guide-reading {
  padding-top: 68px;
}
.identity-country-page .country-guide-reading-grid {
  width: min(1218px, calc(100% - 96px));
  max-width: none;
  grid-template-columns: 286px minmax(0, 880px);
  gap: 52px;
}
.identity-country-page .country-guide-article > .country-formation-section {
  padding: 58px 56px;
}
.identity-country-page .country-guide-article .country-formation-copy,
.identity-country-page .country-guide-article .country-formation-heading {
  max-width: none;
}
.identity-country-page .country-guide-article .country-formation-heading h2,
.identity-country-page .country-guide-article .country-formation-copy h2 {
  max-width: 790px;
}
.identity-country-page .country-guide-article .country-formation-copy > p,
.identity-country-page .country-guide-article .country-formation-heading > p {
  max-width: 790px;
}

.identity-longform-copy {
  color: #405c74;
  font-size: 16px;
  line-height: 1.88;
}

.identity-longform-copy > p {
  max-width: none !important;
  margin: 0 0 21px;
}

.identity-longform-copy > h3 {
  margin: 48px 0 16px;
  padding-top: 28px;
  border-top: 1px solid #d6e0e7;
  color: #06264d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.24;
}

.identity-longform-copy > h3:first-of-type {
  margin-top: 36px;
}

.identity-country-intro {
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #d8e2e9;
}

.identity-country-intro:last-child {
  margin-bottom: 0;
}

.identity-route-directory {
  display: grid;
  border-top: 1px solid #c9d7e1;
}

.identity-route-directory article {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  padding: 27px 28px;
  border-bottom: 1px solid #d8e2e9;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .identity-route-directory article:hover {
    background: #f3f7fa;
    box-shadow: inset 3px 0 0 #c4933f;
  }
}

.identity-route-directory small,
.identity-evidence-grid small {
  display: block;
  margin-bottom: 8px;
  color: #a97622;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.identity-route-directory h3 {
  margin: 0;
  color: #06264d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}

.identity-route-directory p {
  margin: 0;
  color: #536b80;
  font-size: 15px;
  line-height: 1.78;
}

.identity-route-directory p + p {
  margin-top: 10px;
}

.identity-route-directory b {
  color: #36536d;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.identity-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.identity-evidence-grid article {
  padding: 30px;
  border-top: 2px solid #c4933f;
  background: #f5f8fa;
}

.identity-evidence-grid h3 {
  margin: 0 0 14px;
  color: #06264d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}

.identity-evidence-grid p,
.identity-evidence-grid ul {
  color: #536b80;
  font-size: 14px;
  line-height: 1.75;
}

.identity-evidence-grid p {
  margin: 0;
}
.identity-evidence-grid ul {
  margin: 0;
  padding-left: 18px;
}
.identity-evidence-grid li + li {
  margin-top: 7px;
}

.identity-country-note {
  margin-top: 28px;
  padding: 23px 26px;
  border-left: 3px solid #c4933f;
  background: #edf3f7;
  color: #536b80;
  font-size: 14px;
  line-height: 1.75;
}

.identity-country-note strong {
  display: block;
  margin-bottom: 7px;
  color: #06264d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.identity-country-page .country-formation-process article {
  padding-left: 45px;
}
.identity-country-page .country-formation-faq {
  max-width: none;
}
.identity-country-page .country-formation-faq p {
  max-width: 790px;
}

/* Identity directory supporting resources */
.identity-directory-page .content-section .section-intro-grid {
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.76fr);
  gap: clamp(54px, 7vw, 110px);
  align-items: end;
}

.identity-directory-page .content-section .section-intro-grid > p {
  display: block;
  max-width: 560px;
  margin: 0 0 7px;
  color: #536b80;
  font-size: 15px;
  line-height: 1.8;
}

.identity-directory-page .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.identity-directory-page .related-grid > a {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid #c9d6df;
  border-top: 3px solid #c4933f;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 40, 74, 0.055);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.identity-directory-page .related-grid > a:hover {
  border-color: #aebfcd;
  box-shadow: 0 20px 42px rgba(6, 40, 74, 0.1);
  transform: translateY(-5px);
}

.identity-directory-page .related-grid span {
  color: #a97622;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-directory-page .related-grid h3 {
  margin: 38px 0 14px;
  color: #06264d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
}

.identity-directory-page .related-grid p {
  margin: auto 0 0;
  color: #536b80;
  font-size: 14px;
  line-height: 1.72;
}

@media (max-width: 1060px) {
  :is(.identity-directory-page, .identity-country-page) .header-shell {
    width: calc(100% - 36px);
  }
  .identity-country-page .country-guide-reading-grid {
    width: min(900px, calc(100% - 64px));
    grid-template-columns: 1fr;
  }
  .identity-country-page .country-guide-sidebar {
    position: static;
    max-height: none;
  }
  .identity-country-page .country-guide-toc {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .identity-directory-page .content-section .section-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .identity-directory-page .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .identity-country-page .country-guide-reading-grid {
    width: calc(100% - 32px);
  }
  .identity-country-page .country-formation-hero-copy {
    width: 100%;
  }
  .identity-country-page .country-guide-article > .country-formation-section {
    padding: 42px 24px;
  }
  .identity-route-directory article {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 18px;
  }
  .identity-evidence-grid {
    grid-template-columns: 1fr;
  }
  .identity-country-page .country-guide-toc {
    grid-template-columns: 1fr 1fr;
  }
  .identity-directory-page .related-grid {
    grid-template-columns: 1fr;
  }
  .identity-directory-page .related-grid > a {
    min-height: 200px;
  }
}

@media (max-width: 520px) {
  .identity-country-page .country-guide-toc {
    grid-template-columns: 1fr;
  }
}
