/* PROBE host fixes for the shared ts-chrome header and footer (public/ts-chrome/, copied, never edited).
   These change how PROBE's pages host the chrome, not how the chrome looks.
   Loaded after /ts-chrome/ts-chrome.css on every public page, including the static 404. */

/* The package pulls the bar up and the footer down by 1.5rem to cancel a host body padding.
   PROBE's body has no padding, so that would push the top of the bar off the screen. */
.ts .ts-chrome-bar { margin-top: 0; }
.ts .ts-chrome-foot { margin-bottom: 0; }

/* At 720px and below the package hides the wordmark with display:none, which leaves the
   header and footer brand links with only an aria-hidden logo and no accessible name.
   Hide it visually instead, so the links still read "TrulySovereign". Nothing on screen changes. */
@media (max-width: 720px) {
  .ts-chrome-brand .ts-chrome-wordmark {
    display: inline; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

/* Footer note meta line with the build id (ADR 0057). The link is underlined, not colour-only
   (axe link-in-text-block), and set in the mono font so "BUILD " plus 7 characters is a fixed size. */
.ts-chrome-foot__note .probe-foot__meta { font-family: var(--ts-font-mono); font-size: 12px; letter-spacing: .06em; }
.ts-chrome-foot__note .probe-foot__meta a.ts-foot__build { font-family: var(--ts-font-mono); text-decoration: underline; text-underline-offset: 2px; }

/* The package hides an empty subnav with .ts-chrome-sub:not(:has(a)), but the later
   rule .ts-chrome-bar nav.ts-chrome-sub { display: block } wins on specificity, so an
   empty subnav still occupies 37px and the bar becomes 101px. Hide it here so the bar
   stays 64px. The Dashboard rail remains the in-tool nav. */
.ts-chrome-bar nav.ts-chrome-sub:not(:has(a)) { display: none; }
