/* article-tap.css: shared tap targets for .staffing article pages.
   Scope: Sources links and p.related rows only. Mid-sentence links and
   footnote marks are left as they are (WCAG 2.2 SC 2.5.8 inline
   exception). Revert = delete this file and its <link> tags. */

/* Sources links: one atomic box per link, at least 44px tall. */
.staffing .article-col > .sources > li > a,
.staffing .ecm-sources > li > a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  max-width:100%;
  box-sizing:border-box;
  vertical-align:middle;
}
.staffing .article-col > .sources > li + li,
.staffing .ecm-sources > li + li{margin-top:.75rem}

/* Related rows: each link at least 44px tall; middots stay outside.
   The small vertical margin keeps tap boxes on adjacent lines apart
   when one link wraps to two lines. */
.staffing .article-col > p.related a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  max-width:100%;
  box-sizing:border-box;
  vertical-align:middle;
  margin-block:.125rem;
}

/* Related-row items: a link and the middot after it stay together, so no
   line starts with a middot. The middot stays outside the link's box. */
.staffing .article-col > p.related .rel-item{
  display:inline-flex;
  align-items:last baseline;
  column-gap:.3em;
  max-width:100%;
  vertical-align:middle;
}

/* Narrow screens: the related links stack one per row, so the
   separators are hidden there (they stay in the HTML). */
@media (max-width:40rem){
  .staffing .article-col > p.related{display:flex;flex-direction:column;align-items:flex-start}
  .staffing .article-col > p.related .sep{display:none}
}

/* Sources title links: the title and its trailing comma or full
   stop share one inline wrapper (one flex item), so they cannot separate.
   The underline is drawn on the <em> only, so that punctuation is upright and
   not underlined. */
.staffing .article-col > .sources > li > a:has(> .src-t){text-decoration:none}
.staffing .article-col > .sources > li > a > .src-t > em{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.32em}
