/* Shared editorial refinements in the site's existing paper-and-ink system. */

/* Service pages: work areas remain reading rows, with clearer spacing between
   the title of each item and its explanation. */
body main .opening .work-sheet .scope > article {
  border-top-color: #a9bfd7;
}
body main .opening .work-sheet .scope > article h3 {
  text-wrap: balance;
}
body main .opening .work-sheet .scope > article p {
  max-width: 58ch;
}

/* The existing check marks and disclosure signs sit on small inked labels. */
body main .delivery ul > li svg {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 4px;
  margin-top: 0;
  color: #f4fbff;
  background: rgba(218, 237, 250, .12);
  border: 1px solid rgba(230, 244, 252, .48);
  border-radius: 4px;
}
body main .depth .checklist li > svg {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 3px;
  margin-top: 0;
  color: #0b3a95;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #b2c9dd;
  border-radius: 4px;
}
body main .faq.faq > div > details > summary > svg,
body:not(.home-page) main .case-studies .case-detail > summary > svg {
  box-sizing: border-box;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 5px;
  margin-top: 0;
  color: #0b3a95;
  background: rgba(255, 255, 255, .65);
  border: 1px solid #aec6dc;
  border-radius: 4px;
}
body main .faq.faq > div > details[open] > summary > svg,
body:not(.home-page) main .case-studies .case-detail[open] > summary > svg {
  background: #dcecf7;
  border-color: #7da2c8;
}

/* Article pages: a publication slip and a paper frame for the existing
   illustrations distinguish the editorial material from the page canvas. */
body main .reading header .publication {
  display: inline-block;
  max-width: 100%;
  padding: 7px 12px;
  color: #284b79;
  background: rgba(249, 253, 254, .68);
  border: 1px solid #bdcfdf;
  line-height: 1.45;
}
body main .reading figure.editorial-figure {
  box-sizing: border-box;
  padding: clamp(10px, 1.2vw, 16px);
  background: linear-gradient(rgba(255, 255, 255, .54), rgba(241, 249, 252, .68)),
    url('/images/brand/paper-fibre.webp') center / cover no-repeat;
  border: 1px solid #bdcfdf;
  box-shadow: 0 8px 24px rgba(19, 48, 87, .09);
}
body main .reading figure.editorial-figure figcaption {
  margin-top: 12px;
  padding-inline: 2px;
  color: #284b79;
}
body main .reading .article-body :is(ul, ol) > li::marker {
  color: #0b3a95;
  font-weight: 700;
}
body main .reading .article-body :is(h2, h3) {
  text-wrap: balance;
}

/* Comparisons: keep data static and readable, while distinguishing the
   headings from the values in both project and article tables. */
body main :is(.case-page .metrics-scroll, .reading .article-body .table-scroll) table {
  font-variant-numeric: tabular-nums;
}
body main :is(.case-page .metrics-scroll, .reading .article-body .table-scroll) thead th {
  background: rgba(205, 225, 240, .52);
}
body main :is(.case-page .metrics-scroll, .reading .article-body .table-scroll) tbody tr:nth-child(even) {
  background: rgba(229, 241, 248, .54);
}
body main .case-page .results-sheet .period {
  max-width: 70ch;
  line-height: 1.55;
}

/* Follow-up service links have room to breathe even with long translations. */
body main .related.related li > a,
body main .formats li > a {
  gap: 14px;
}
body main .formats li > a > svg {
  flex: none;
}

@media (hover: hover) and (pointer: fine) {
  body main .faq.faq > div > details > summary:hover > svg,
  body:not(.home-page) main .case-studies .case-detail > summary:hover > svg {
    background: #dcecf7;
    border-color: #7da2c8;
  }
}
@media (hover: none) and (pointer: coarse) {
  body main .faq.faq > div > details > summary:is(:active, .motion-touch-active) > svg,
  body:not(.home-page) main .case-studies .case-detail > summary:is(:active, .motion-touch-active) > svg {
    background: #dcecf7;
    border-color: #7da2c8;
  }
}
@media (max-width: 767px) {
  body main .reading figure.editorial-figure {
    padding: 9px;
  }
  body main .reading header .publication {
    padding: 6px 10px;
  }
  body main .faq.faq > div > details > summary > svg,
  body:not(.home-page) main .case-studies .case-detail > summary > svg {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
}
