/* Phone top bar (2026-11-30, careai/carenine-comms-mobile-topbar-20261130): two rows of three links fixed under the 48px phone
   header, on every page. Below 768px only; from 768px nothing changes. Static HTML and CSS, no script.
   Height: 1px line + 40px row + 1px line + 40px row + 1px line = --tb-h. z-index 19 keeps it under the header (20), so the
   drawer menu inside the header covers it; dialogs open in the top layer. */
.m-topbar { display: none; }

@media (max-width: 767px) {
  :root { --tb-h: 83px; }
  .m-topbar { display: block; position: fixed; z-index: 19; top: 48px; left: 0; right: 0; background: #2a2a2a; transition: visibility 0s; }
  .m-topbar ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px 0; list-style: none; }
  .m-topbar a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding-left: .1em; background: #000; color: #fff;
    font-family: 'Plus Jakarta Sans', 'Pretendard', 'Apple SD Gothic Neo', sans-serif; font-weight: 500; font-size: min(12px, 3.75vw); line-height: 1; letter-spacing: .1em;
    text-transform: uppercase; white-space: nowrap; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  .m-topbar a:active, .m-topbar a:focus-visible, .m-topbar a[aria-current="page"] { color: var(--accent); }
  .m-topbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
  /* out of reach (focus, screen reader) while the drawer covers it; hidden only after the drawer's .3s fade-in */
  .hd:has(.nav.open) + .m-topbar { visibility: hidden; transition-delay: .3s; }

  /* room for the bar: the page starts as far below the bar as it did below the header, and anchors stop below the bar */
  main { padding-top: var(--tb-h); }
  html { scroll-padding-top: var(--tb-h); }
  /* main banner: 26px less empty space above the slogan, so FOUND·READ·CHOSEN stays in the first screen */
  body.home.up main > .hero { padding-top: 84px; }
}
@media (max-width: 767px) and (hover: hover) { .m-topbar a:hover { color: var(--accent); } }
