/* Service catalog and service-page details: the approved light paper system. */
main .catalog .service-index {
  gap: 22px;
  align-items: stretch;
}

main .catalog .service-index > article {
  position: relative;
  min-width: 0;
  padding: clamp(23px, 2.1vw, 32px);
  border: 1px solid #b9cce0;
  background: linear-gradient(rgba(246, 251, 253, .78), rgba(238, 247, 250, .84)),
    url('/images/brand/paper-fibre.webp') center / 720px auto;
  box-shadow: 0 6px 22px rgba(13, 38, 76, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

main .catalog .service-index > article::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 20px;
  background: #0b3a95;
  transform-origin: left center;
  transition: transform .2s ease;
}

main .catalog .service-index > article h2 {
  max-width: 29ch;
  font-size: clamp(23px, 2vw, 28px);
}

main .catalog .service-index > article h2 a {
  color: #0b3a95;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

main .catalog .service-index > article p {
  max-width: 64ch;
  line-height: 1.56;
}

main .catalog .service-index > article .read {
  min-height: 44px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

main .catalog .service-index > article .read svg {
  transition: transform .2s ease;
}

main .catalog .service-index > article:focus-within {
  border-color: #547bb2;
  box-shadow: 0 10px 26px rgba(13, 38, 76, .12);
}

main .catalog .service-index a:focus-visible,
main .related a:focus-visible,
main .faq summary:focus-visible,
main .depth summary:focus-visible,
main .depth .reading-map a:focus-visible {
  outline: 2px solid #0b3a95;
  outline-offset: 4px;
}

/* Inside the first sheet the four work areas stay as editorial rows. */
main .opening .work-sheet .scope > article {
  padding-inline: 8px;
  border-color: #b9cce0;
}

main .opening .work-sheet .scope > article h3 {
  line-height: 1.18;
}

main .opening .work-sheet .scope > article p {
  line-height: 1.55;
}

/* Questions open as individual sheets; answers remain fully visible without JS. */
main .faq.faq > div > details {
  margin-bottom: 10px;
  border: 1px solid #bdcfe0;
  background: rgba(244, 250, 252, .76);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

main .faq.faq > div > details:last-child {
  border-bottom: 1px solid #bdcfe0;
  margin-bottom: 0;
}

main .faq.faq > div > details[open] {
  background: #f7fbfc;
  border-color: #91add0;
  box-shadow: 0 7px 20px rgba(13, 38, 76, .055);
}

main .faq.faq > div > details > summary {
  padding: 20px 22px;
  line-height: 1.32;
}

main .faq.faq > div > details > summary svg {
  color: #0b3a95;
  transition: transform .2s ease;
}

main .faq.faq > div > details > p {
  max-width: 66ch;
  padding: 0 22px 22px;
  line-height: 1.58;
}

/* Navigation and expandable editorial rows respond without moving the text. */
main .depth .editorial-row > summary,
main .depth .reading-map a,
main .related.related a {
  transition: color .18s ease, background-color .18s ease;
}

main .depth .editorial-row > summary svg,
main .related.related a > span {
  transition: transform .2s ease;
}

main .depth .scenario-sheet {
  background: linear-gradient(rgba(248, 252, 253, .84), rgba(241, 248, 251, .9)),
    url('/images/brand/paper-fibre.webp') center / 720px auto;
}

main .depth .scenario-scroll:focus-visible {
  outline: 2px solid #0b3a95;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  main .catalog .service-index > article:hover {
    border-color: #7da0c9;
    box-shadow: 0 12px 28px rgba(13, 38, 76, .12);
    transform: translateY(-3px);
  }

  main .catalog .service-index > article:hover::before,
  main .catalog .service-index > article:focus-within::before {
    transform: scaleX(1.5);
  }

  main .catalog .service-index > article:hover .read svg,
  main .catalog .service-index > article:focus-within .read svg,
  main .related.related a:hover > span {
    transform: translateX(4px);
  }

  main .faq.faq > div > details:hover {
    border-color: #7da0c9;
    background: #f7fbfc;
  }

  main .faq.faq > div > details:not([open]) > summary:hover svg,
  main .depth .editorial-row:not([open]) > summary:hover svg {
    transform: rotate(90deg);
  }

  main .related.related a:hover,
  main .depth .reading-map a:hover {
    color: #0b3a95;
    background-color: rgba(198, 220, 237, .22);
  }
}

@media (max-width: 767px) {
  main .catalog .service-index {
    gap: 14px;
  }

  main .catalog .service-index > article {
    padding: 22px 20px;
  }

  main .catalog .service-index > article::before {
    margin-bottom: 16px;
  }

  main .faq.faq > div > details > summary {
    padding: 17px 16px;
    font-size: 19px;
  }

  main .faq.faq > div > details > p {
    padding: 0 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .catalog .service-index > article,
  main .catalog .service-index > article::before,
  main .catalog .service-index > article .read svg,
  main .faq.faq > div > details,
  main .faq.faq > div > details > summary svg,
  main .depth .editorial-row > summary,
  main .depth .editorial-row > summary svg,
  main .depth .reading-map a,
  main .related.related a,
  main .related.related a > span {
    transition: none;
  }

  main .catalog .service-index > article:hover,
  main .catalog .service-index > article:hover::before,
  main .catalog .service-index > article:focus-within::before,
  main .faq.faq > div > details > summary:hover svg,
  main .depth .editorial-row > summary:hover svg,
  main .related.related a:hover > span {
    transform: none;
  }
}
