/* Welcome page: Recent Updates in one place, the right-hand panel (all four
 * handbooks; Bryan approved 15 November 2026, 10:50 AM PT: "rather have them
 * on the right panel... so that it's immediately visible... putting both is
 * almost like repetition").
 *
 * On screens 992px and wider, once styles/recent-updates-ticker-v7.js has
 * drawn the "Recent updates" panel in the right margin, the in-page "Recent
 * highlights" list, the rule above it and its table-of-contents link are
 * hidden, so a reader sees the list once, at first glance. Below 992px there
 * is no right margin: the panel is absent and the in-page list shows below
 * the amber disclaimer. If the panel never draws (script or data failure),
 * the in-page list stays. Browsers without :has() keep both, never neither.
 *
 * Section ids: Physician, Biosecurity and Life Sciences use
 * #sec-recent-updates; Public Health uses #sec-home-recent-updates. Both are
 * listed so one file serves all four books; tests/test_home_trust.py checks
 * that the id in this book's index.qmd is covered.
 *
 * Replaces home-trust-v1.css (removed 15 November 2026), whose rule named
 * only #sec-recent-updates and so never hid the Public Health list. Published
 * stylesheets are cached as immutable; change this file only as a new
 * version.
 */

@media (min-width: 992px) {
  body:has(#quarto-margin-sidebar .ru-latest) #sec-recent-updates,
  body:has(#quarto-margin-sidebar .ru-latest) hr:has(+ #sec-recent-updates),
  body:has(#quarto-margin-sidebar .ru-latest) #TOC li:has(> #toc-sec-recent-updates),
  body:has(#quarto-margin-sidebar .ru-latest) #sec-home-recent-updates,
  body:has(#quarto-margin-sidebar .ru-latest) hr:has(+ #sec-home-recent-updates),
  body:has(#quarto-margin-sidebar .ru-latest) #TOC li:has(> #toc-sec-home-recent-updates) {
    display: none;
  }
}
