/* Closing "Matching service page" / "Related services" link list on the package pages (section#related with a plain <ul>).
   Restyles the existing markup as link cards; hrefs, text, order and the <a> elements are untouched (scripts/postbuild.mjs adds this
   stylesheet only to pages that have that exact block, so it is in the first paint). Light tokens as css/service-page.css; button radius like "See All Case Study". */
section#related.rl-related { padding: 2rem 0 2.5rem; }
/* grey section above: its own bottom padding already gives the space, so close the double gap */
#case-studies.bg-gray-50 + section#related.rl-related { padding-top: 0; margin-top: -2.75rem; }
section#related.rl-related > div > h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 1rem; color: #0b1430; }
section#related.rl-related > div > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .75rem; }
section#related.rl-related > div > ul > li { margin: 0; }
section#related.rl-related > div > ul a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .75rem 1.25rem; box-sizing: border-box; height: 100%;
  background: #fff; border: 1px solid #e1e7f0; border-radius: .5rem; color: #0b1430; font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease; }
section#related.rl-related > div > ul a::after { content: "\2192"; flex: none; color: #1558d6; font-weight: 700; font-size: 1.25rem; line-height: 1; transition: transform .15s ease; }
section#related.rl-related > div > ul a:hover { border-color: #1558d6; color: #0f46ad; box-shadow: 0 1px 3px rgba(11,20,48,.12); }
section#related.rl-related > div > ul a:hover::after { transform: translateX(3px); }
section#related.rl-related > div > ul a:focus-visible { outline: 3px solid #1558d6; outline-offset: 2px; }
@media (min-width: 768px) {
  section#related.rl-related > div > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { section#related.rl-related > div > ul a, section#related.rl-related > div > ul a::after { transition: none; } }
