/* Closing "Related" block on the service pages (section#related with groups "Related services" / "Matching package" / "Case studies").
   Restyles the existing markup as link cards, same look as css/related-links.css (package pages); hrefs, text, order and the <a> elements are untouched.
   scripts/postbuild.mjs adds the .rl-svc class and this stylesheet only to pages that have that exact block (light A2 pages and the older pages with a light grey section). */
section#related.rl-svc { padding: 2rem 0 2.5rem; border-top: 0; }
section#related.rl-svc > div { max-width: 80rem; margin: 0 auto; padding: 0 1rem; box-sizing: border-box; }
section#related.rl-svc.sp-related > div { max-width: 1120px; }
section#related.rl-svc > div > h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 800; margin: 0 0 1rem; color: #0b1430; }
section#related.rl-svc > div > div { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
section#related.rl-svc > div > div > div { min-width: 0; }
section#related.rl-svc h3 { font-size: .8125rem; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #475467; margin: 0 0 .625rem; }
section#related.rl-svc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .625rem; }
section#related.rl-svc li { margin: 0; padding: 0; }
section#related.rl-svc li > a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .75rem 1.25rem; box-sizing: border-box; width: 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-svc li > 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-svc li > a:hover { border-color: #1558d6; color: #0f46ad; box-shadow: 0 1px 3px rgba(11,20,48,.12); }
section#related.rl-svc li > a:hover::after { transform: translateX(3px); }
section#related.rl-svc li > a:focus-visible { outline: 3px solid #1558d6; outline-offset: 2px; }
@media (min-width: 640px) { section#related.rl-svc > div { padding: 0 1.5rem; } }
@media (min-width: 768px) {
  section#related.rl-svc > div > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
  section#related.rl-svc > div > div:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { section#related.rl-svc > div { padding: 0 2rem; } }
@media (prefers-reduced-motion: reduce) { section#related.rl-svc li > a, section#related.rl-svc li > a::after { transition: none; } }
