/* inbox--specific overrides layered on top of the shared, byte-identical
   fsi.css (see CLAUDE.md's Design System section). Never put an override
   here that FSI-welcome-landing-'s copy of fsi.css would also need — that
   belongs in the shared file itself, kept in sync between the two repos. */

/* .fsi-navbar__brand's baseline in the shared fsi.css is plain (no display
   font) — every other suite app that uses this BEM navbar class layers its
   own override to apply Bebas Neue (see EXPENSES's app/theme/static/fsi.css
   for the reference rule this mirrors). inbox- never had one, so its brand
   text silently rendered in the body font while the rest of the realigned
   suite used the display face. Fixed 2026-08-19. */
.fsi-navbar__brand {
  color: var(--link);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

/* This app is Bootstrap-layered and had NO override of Bootstrap's stock
   .container max-width (540/720/960/1140/1320px per breakpoint) -- so its
   pages sat in the middle two-thirds of a wide monitor same as EXPENSES
   did before its own v1.6.0 fix. --container-max (fleet-ui-kit v1.6.0) is
   already in the shared fsi.css; this just applies it to the class this
   app actually uses. fsi.css loads before this file, so this bare rule
   wins the cascade without extra specificity or !important. No @media
   needed -- clamp() already covers the full range. .container-fluid
   (comms/_layout.html, inbox/_layout.html) is untouched; it's meant to be
   full-width. This is inbox--specific (Bootstrap .container is not a
   concept FSI-welcome-landing's copy of fsi.css needs), so it belongs
   here, not in the shared file. */
.container {
  max-width: var(--container-max);
}

/* Help articles with headed sections and copy-paste commands (the Titan
   order ledger runbook, 2026-10-08). The shared fsi.css has no rule for a
   command block, and none of the other suite apps needs one, so it lives
   here. pre-wrap + overflow-wrap keep long gcloud lines inside the column
   at phone width instead of scrolling the page sideways. */
.fsi-help__article .fsi-help__section { margin-top: 1.75rem; }
.fsi-help__commands {
  margin: .5rem 0 0;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--bg);
  color: var(--text);
  font-size: .8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Fleet UI Kit v1.2.0 status/radius token names, as ALIASES onto this app's
   own ok/warn/bad/info set so new kit-style components resolve. var() is
   resolved at use time, so the dark values in fsi.css (:root[data-theme=dark]
   and the OS-preference block) flow through with no dark restatement. No
   component reads these yet. */
:root {
  --success-tint: var(--ok-bg);     --success-border: var(--ok-bd);     --success-label: var(--ok-fg);
  --warning-tint: var(--warn-bg);   --warning-border: var(--warn-bd);   --warning-label: var(--warn-fg);
  --danger-tint:  var(--bad-bg);    --danger-border:  var(--bad-bd);    --danger-label:  var(--bad-fg);
  --info-tint:    var(--info-bg);   --info-border:    var(--info-bd);    --info-label:    var(--info-fg);
  --radius-full: var(--radius-pill);
}


/* ---- Sections (INBOX_SECTIONS_ENABLED) -----------------------------------
   Navbar switcher. Tokens only. Active state = accent bottom border + weight
   + aria-current, so it never rests on colour alone; link colour on
   --accent-subtle is >= 4.5:1 in both themes (see tests/test_sections_ui.py). */
.fsi-sections { display: flex; gap: var(--space-1); }
.fsi-sections__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}
.fsi-sections__link:hover { background: var(--surface-alt); color: var(--text); }
.fsi-sections__link.is-active {
  background: var(--accent-subtle);
  border-bottom-color: var(--accent);
  color: var(--link);
  font-weight: 600;
}
.fsi-sections__link:focus-visible,
.fsi-sections__toggle:focus-visible,
.fsi-navbar .dropdown-item:focus-visible,
.comms-rail__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Collapsed navbar (below lg): stack the switcher full width. */
@media (max-width: 991.98px) {
  .fsi-sections { flex-direction: column; align-items: stretch; }
}
