/* Shared related-navigation component — loaded last on every content page. */
.related {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 8vw, 124px) clamp(22px, 7vw, 116px);
  background: #071820;
  color: #f7fafb;
}

.related::before {
  position: absolute;
  bottom: -0.2em;
  left: -0.04em;
  z-index: -1;
  color: rgba(255,255,255,.025);
  font: 800 clamp(160px, 26vw, 390px)/.72 Arial, sans-serif;
  letter-spacing: -.08em;
  content: "NEXT";
  pointer-events: none;
}

.related > p,
.related > div {
  width: min(100%, 1480px);
  margin-inline: auto;
}

.related > p {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: clamp(30px, 4vw, 50px);
  color: #62b5cf;
  font: 800 11px/1.3 Arial, sans-serif;
  letter-spacing: .1em;
}

.related > p::before { content: "NEXT / EXPLORE"; }
.related > p::after { height: 1px; background: rgba(151,190,202,.35); content: ""; }

.related > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 0;
  border-top: 1px solid rgba(174,203,212,.3);
  border-right: 1px solid rgba(174,203,212,.3);
}

.related a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(230px, 20vw, 300px);
  padding: clamp(28px, 3vw, 42px);
  padding-bottom: clamp(96px, 8vw, 116px);
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(174,203,212,.3);
  border-left: 1px solid rgba(174,203,212,.3);
  background: transparent;
  color: #f7fafb;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.related a::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 4px;
  background: #62b5cf;
  content: "";
  transition: width 220ms ease;
}

.related a span {
  display: block;
  color: #62b5cf;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .04em;
}

.related a strong {
  display: block;
  max-width: 18ch;
  margin-top: clamp(42px, 5vw, 72px);
  color: inherit;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 750;
  line-height: 1.55;
  text-wrap: balance;
}

.related a i {
  position: absolute;
  bottom: clamp(24px, 2.6vw, 36px);
  right: auto;
  left: auto;
  inset-inline-end: clamp(24px, 2.6vw, 36px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(174,203,212,.42);
  color: #62b5cf;
  font-style: normal;
  font-size: 20px;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.related a:hover,
.related a:focus-visible {
  border-color: #dce8eb;
  background: #dce8eb;
  color: #102129;
}
.related a:hover::before,
.related a:focus-visible::before { width: 100%; }
.related a:hover i,
.related a:focus-visible i { border-color: #102129; background: #102129; color: #fff; }
.related a:focus-visible { outline: 3px solid #62b5cf; outline-offset: -3px; }

@media (max-width: 760px) {
  .related { padding: 66px 20px 74px; }
  .related > p { grid-template-columns: auto 1fr; }
  .related > p::after { display: none; }
  .related > div { grid-template-columns: 1fr; }
  .related a { min-height: 190px; padding: 26px 24px; }
  .related a { padding-bottom: 88px; }
  .related a strong { max-width: 22ch; margin-top: 34px; font-size: 23px; }
  .related a i { right: auto; bottom: 22px; left: auto; inset-inline-end: 22px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .related a,
  .related a::before,
  .related a i { transition: none; }
}

/* Component authority: keep the shared appearance above page-level legacy rules. */
body .related.related {
  padding: clamp(76px, 8vw, 124px) clamp(22px, 7vw, 116px);
  background: #071820;
  color: #f7fafb;
}
body .related.related > p { color: #62b5cf; }
body .related.related > div {
  gap: 0;
  border: 0;
  border-top: 1px solid rgba(174,203,212,.3);
  border-right: 1px solid rgba(174,203,212,.3);
}
body .related.related a {
  min-height: clamp(230px, 20vw, 300px);
  border: 0;
  border-bottom: 1px solid rgba(174,203,212,.3);
  border-left: 1px solid rgba(174,203,212,.3);
  background: transparent;
  color: #f7fafb;
  transform: none;
}
body .related.related a:hover,
body .related.related a:focus-visible {
  border-color: #dce8eb;
  background: #dce8eb;
  color: #102129;
  transform: none;
}

@media (max-width: 760px) {
  body .related.related { padding: 66px 20px 74px; }
  body .related.related a { min-height: 190px; }
}
