/* SMARt fleet theme - single source: SMARtStart/fleet-theme/fleet.css
   Synced into every app as src/fleet/fleet.css by fleet-theme/sync.mjs.
   Do not edit the copies; edit this file and run `node fleet-theme/sync.mjs`.

   Owns: typeface, base text rhythm, headings, light/dark toggle, suite footer.
   Load it AFTER the app's own stylesheet so it wins. */

:root {
  --fleet-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fleet-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --fleet-text: #e6edf7;
  --fleet-muted: #a6b6cd;
  --fleet-accent: #3b82f6;
  --fleet-link: #8cb8ff;
  --fleet-border: #24354f;
  --fleet-panel: #182642;
}
:root[data-theme="light"] {
  --fleet-text: #101828;
  --fleet-muted: #5b6472;
  --fleet-accent: #2563eb;
  --fleet-link: #2563eb;
  --fleet-border: #d7dde8;
  --fleet-panel: #eef1f8;
}

/* ---- fleet design tokens (opt-in page theme) ------------------------------
   Promoted from SMARtCARE-Plus's own index.css (the reference look-and-feel
   confirmed 2026-10-25) -- a richer token set than --fleet-text/-muted/-panel
   above, for apps that want Care+'s card/badge/stat-block system on the page
   body, not just the shared nav. All --fleet-page-* to avoid colliding with
   any app's own --bg/--text/--accent (Care+ already defines those itself).
   Each app sets ONLY --fleet-page-accent[-dim] + --fleet-page-gradient
   inline (e.g. on <body> or a wrapper div) to its own brand color; the red/
   green SEVERITY colors some apps use for S/M/A/Rt state meaning are NOT
   part of this token set and stay hardcoded where they encode that meaning. */
:root {
  --fleet-page-bg:          #0a0d12;
  --fleet-page-bg-raised:   #10151d;
  --fleet-page-bg-card:     #11161f;
  --fleet-page-border:      #212a36;
  --fleet-page-border-soft: #1a222c;
  --fleet-page-text:        #e7edf5;
  --fleet-page-text-dim:    #93a1b4;
  --fleet-page-text-faint:  #5c6a7e;
  --fleet-page-accent:      #5ec65a;
  --fleet-page-accent-dim:  #3a8f37;
  --fleet-page-gold:        #e8b84b;
  --fleet-page-danger:      #e8513f;
  --fleet-page-amber:       #f0a23a;
  --fleet-page-blue:        #4a9fd4;
  --fleet-page-radius:      14px;
  --fleet-page-gradient: linear-gradient(90deg, var(--fleet-page-accent) 0%, var(--fleet-page-gold) 50%, var(--fleet-page-danger) 100%);
}
:root[data-theme="light"] {
  --fleet-page-bg:          #f6f8fb;
  --fleet-page-bg-raised:   #ffffff;
  --fleet-page-bg-card:     #ffffff;
  --fleet-page-border:      #dde3ec;
  --fleet-page-border-soft: #e8ecf2;
  --fleet-page-text:        #0f172a;
  --fleet-page-text-dim:    #475467;
  --fleet-page-text-faint:  #8a93a3;
  --fleet-page-gold:        #b8860b;
  --fleet-page-danger:      #c2410c;
  --fleet-page-amber:       #b8860b;
  --fleet-page-blue:        #2563eb;
}

.fleet-page-gradient-text {
  background: var(--fleet-page-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fleet-page-gradient-bg { background: var(--fleet-page-gradient); }
.fleet-card {
  background: var(--fleet-page-bg-card); border: 1px solid var(--fleet-page-border);
  border-radius: var(--fleet-page-radius); padding: 1.5rem;
}
.fleet-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 99px; border: 1px solid;
}
.fleet-stat-block { display: flex; flex-direction: column; gap: 4px; }
.fleet-stat-block .value { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.fleet-stat-block .label { font-size: .75rem; color: var(--fleet-page-text-faint); text-transform: uppercase; letter-spacing: .1em; }

/* Suppresses the browser's own password reveal/clear icon (Edge only;
   absent in Chrome/Firefox, and even in Edge it appears and disappears
   depending on autocomplete and focus state - reported fleet-wide as "the
   eye icon keeps disappearing"). Apps that render their own, consistent
   show/hide toggle no longer fight an inconsistent native one underneath it. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

/* ---- typeface + base text ------------------------------------------------ */
html, body, button, input, select, textarea {
  font-family: var(--fleet-font);
}

/* Fleet-wide content-link default: without this, any <a> an app doesn't style
   itself falls back to the browser's hardcoded navy (#0000EE) / visited purple,
   which is unreadable on a dark --fleet-page-bg and never repaints on the
   light/dark toggle. Low specificity (bare `a`) on purpose -- an app's own
   nav/button/card link rules, and fleet.css's own .report-footer/.suite-*
   rules above, all win over this without !important. */
a { color: var(--fleet-link); }
a:visited { color: var(--fleet-link); }
a:hover, a:focus-visible { filter: brightness(1.15); }
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
code, kbd, pre, samp, .font-mono {
  font-family: var(--fleet-mono);
}
/* Page headings read the same in every app: same face, weight and tracking.
   Sizes stay with each app's layout. */
h1, h2, h3, h4 {
  font-family: var(--fleet-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3, h4 { font-weight: 600; }

/* ---- full-width header bar -------------------------------------------------
   For the apps whose main content is a centered, max-width report/tool column
   (SMARtCheck, SMARtMatch, SMARtCapture, SMARtStart) rather than a full-width
   top nav (SMARtPolicy, AIDC, BREACH, CARE, FRAUD, Gov, Trader): without this,
   the product-name heading sat inside that centered column, so it landed
   ~200px+ in from the left edge at wide viewports while the full-width footer
   below it started at the true edge - looked inconsistent app to app. This
   puts the brand in its own edge-to-edge bar, at the SAME left inset as the
   nav-bar apps' brand (~32px), so every app's header reads from the same
   starting point regardless of which body layout it uses. Markup:
     <header className="app-header-bar"><div className="app-header-inner">
       <h1 className="brand">...</h1>
     </div></header>
   as a sibling BEFORE .page (same level ReportFooter sits after it). */
.app-header-bar {
  border-bottom: 1px solid var(--fleet-border);
}
.app-header-inner {
  /* edge-to-edge like SMARtRA's top bar: logo and motto start at the true left edge, never inside the centred content column */
  max-width: none;
  margin: 0;
  padding: 14px 24px;
}
.app-header-inner .brand { margin: 0; }

/* ---- light / dark toggle ------------------------------------------------- */
.theme-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 1000;
  width: 36px; height: 36px; border-radius: 50%; padding: 0; margin: 0;
  background: var(--fleet-panel); border: 1px solid var(--fleet-border); color: var(--fleet-text);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--fleet-accent); }
/* Motto line(s) placed under the product logo inside the app's own header panel
   (data-smart-motto); scrolls with the header so it never overlays page content.
   Generic fleet line = text colour; product-specific line = data-motto-tone="product". */
.brand-motto-row { text-align: left; padding: 2px 0 6px; }
.brand-motto { display: block; font-family: var(--fleet-font); font-size: 10.5px; line-height: 1.35; color: var(--fleet-text); }
.brand-motto[data-motto-tone="product"] { color: var(--fleet-accent); }

/* ---- suite footer -------------------------------------------------------- */
.report-footer {
  margin-top: 32px; padding: 16px 34px;
  border-top: 1px solid var(--fleet-border);
  font-family: var(--fleet-font);
  font-size: 11.5px; line-height: 1.6; text-align: center;
  color: var(--fleet-muted);
}
.report-footer a { color: var(--fleet-link); text-decoration: none; }
.report-footer a:hover { text-decoration: underline; }
/* head: [spacer] [mark - dnrs.ai - SMARt framework suite] [Contact us] */
.suite-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.suite-title { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 11.5px; }
.suite-brand { font-weight: 600; color: var(--fleet-text) !important; }
.suite-label { color: var(--fleet-muted); }
.suite-logo { height: 22px; width: auto; border-radius: 4px; flex: none; margin-right: 2px; }
.suite-contact-link { justify-self: end; color: var(--fleet-muted) !important; white-space: nowrap; }
.suite-contact-link:hover { color: var(--fleet-link) !important; }

/* two sides: Buy SMARt Products | Live SMARt Demonstrators */
.suite-cols { display: flex; justify-content: center; align-items: stretch; gap: 22px; margin: 0 auto 14px; }
.suite-col { display: flex; flex-direction: column; align-items: flex-start; }
.suite-col-title { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--fleet-text); margin: 0 0 8px; }
.suite-col-title span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fleet-muted); margin-left: 4px; }
.suite-divider { width: 1px; background: var(--fleet-border); flex: none; }
.suite-grid.suite-grid-products { grid-template-columns: repeat(4, 140px); }
.suite-grid.suite-grid-demos { grid-template-columns: repeat(4, 140px); }
/* a demo reads as secondary to a product */
.suite-col-demos a.suite-cell { color: var(--fleet-muted); }
.suite-col-demos a.suite-cell:hover { color: var(--fleet-link); }

/* 6 per row, fixed-width cells so columns line up; centred as a block */
.suite-grid {
  display: grid; grid-template-columns: repeat(6, 140px); justify-content: start;
  gap: 8px 12px; margin: 0;
}
.suite-cell { display: inline-flex; align-items: center; gap: 7px; justify-content: flex-start; min-width: 0; font-size: 11.5px; white-space: nowrap; }
.suite-cell span { overflow: hidden; text-overflow: ellipsis; }
.suite-icon { height: 20px; width: 20px; border-radius: 5px; flex: none; }
/* product links read like dnrs.ai (full-contrast text); the current product is the accent */
.report-footer a.suite-cell { color: var(--fleet-text); }
.report-footer a.suite-cell:hover { color: var(--fleet-link); }
.suite-current { color: var(--fleet-link); font-weight: 700; }
.suite-contact { color: var(--fleet-muted); }
.suite-trademark-notice { color: var(--fleet-muted); font-size: 10px; margin-top: 4px; opacity: .8; }
@media (max-width: 1290px) {
  .suite-cols { flex-direction: column; align-items: center; gap: 14px; }
  .suite-divider { width: 70%; height: 1px; }
  .suite-col { align-items: center; }
  .suite-grid.suite-grid-products, .suite-grid.suite-grid-demos { grid-template-columns: repeat(3, 140px); justify-content: center; }
}
@media (max-width: 520px) {
  .suite-grid, .suite-grid.suite-grid-products, .suite-grid.suite-grid-demos { grid-template-columns: repeat(2, 140px); }
  .suite-head { grid-template-columns: 1fr; justify-items: center; }
  .suite-head-spacer { display: none; }
  .suite-contact-link { justify-self: center; }
}

/* Previously switched to position:absolute below 600px ("scrolls away with
   the page instead of floating over inputs"). Removed 2026-10-26: confirmed
   real case on AppNav apps (smartaidc.dnrs.live) -- position:absolute's
   containing block isn't guaranteed to land at the true viewport corner
   (measured directly: landed 43px off from where right:10px should put it,
   square on top of the nav's hamburger button). All of fleet-nav's narrow-
   width clearance math (above) assumes position:fixed; keep it fixed at
   every width instead of reintroducing an unpredictable collision. If a
   phone-width input-covering complaint comes back, scope a fix to that
   specific page instead of this shared toggle. */

/* ---- shared top nav (AppNav.jsx) ------------------------------------------
   One sticky, blurred, centered-link nav bar for every app with a top-level
   route list (BREACH, FRAUD, AIDC, Policy, CARE+, Trader, ...), replacing each
   app's own hand-rolled header markup/colors -- same font, spacing and "by
   DNRS" mark everywhere. --fleet-nav-accent is set inline per app (its own
   brand color) and falls back to --fleet-accent when unset. */
.fleet-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--fleet-panel);
  border-bottom: 1px solid var(--fleet-border);
  backdrop-filter: blur(12px);
}
.fleet-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  min-height: 56px; display: flex; align-items: center; gap: 20px;
}
/* icons in their own column; name/governed-badge/motto stack to their right,
   all left-aligned with EACH OTHER, not with the icon column. */
.fleet-nav-brand-group { display: flex; align-items: center; gap: 8px; flex: none; }
.fleet-nav-brand-icons { display: flex; align-items: center; gap: 6px; flex: none; }
.fleet-nav-brand-icons img { height: 22px; width: auto; }
.fleet-nav-brand-icon { height: 24px !important; width: 24px !important; border-radius: 6px; }
.fleet-nav-brand-col { display: flex; flex-direction: column; gap: 1px; flex: none; }
.fleet-nav-brand {
  text-decoration: none; color: var(--fleet-text); font-weight: 700; font-size: 15px; line-height: 1.2;
}
.fleet-nav-subtitle { font-weight: 500; font-size: 12px; color: var(--fleet-muted); white-space: nowrap; }
.fleet-nav-governed {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--fleet-muted); white-space: nowrap;
}
.fleet-nav-governed-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 5px #22c55e; flex: none;
}
.fleet-nav-brand-col .brand-motto-row { padding: 0; }
.fleet-nav-brand-col .brand-motto { font-size: 9.5px; }
.fleet-nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
  justify-content: center; overflow-x: auto;
}
.fleet-nav-link {
  padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--fleet-muted); text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s;
}
.fleet-nav-link:hover { color: var(--fleet-text); background: rgba(255,255,255,0.06); }
.fleet-nav-link.active { color: var(--fleet-text); background: rgba(255,255,255,0.1); }
.fleet-nav-cta {
  padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: #fff; background: var(--fleet-nav-accent, var(--fleet-accent));
  text-decoration: none; flex: none; white-space: nowrap;
}
.fleet-nav-cta:hover { filter: brightness(1.12); }
.fleet-nav-dnrs {
  display: flex; align-items: center; gap: 6px; flex: none;
  opacity: .7; text-decoration: none; color: var(--fleet-muted); font-size: 11px;
}
.fleet-nav-dnrs:hover { opacity: 1; }
.fleet-nav-dnrs img { height: 18px; width: 18px; border-radius: 4px; }
/* Below ~1328px the nav is no longer centered inside its own 1280px max-width,
   so "by DNRS" reaches the real screen edge -- the same corner the
   independently-fixed .theme-toggle occupies. Reserve its footprint
   (36px wide, 18px off the edge, +10px breathing room) so they never overlap. */
@media (max-width: 1328px) { .fleet-nav-inner { padding-right: 64px; } }
/* Hamburger menu button -- hidden on wide screens where .fleet-nav-links shows
   inline, shown only below the collapse breakpoint. Design follows dnrs.ai's
   own header: inline links on wide, a real menu (not a vanished or silently
   horizontal-scrolling link row -- both confirmed real bugs) on narrow. */
.fleet-nav-burger {
  display: none; flex: none; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--fleet-border); background: var(--fleet-panel); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
}
.fleet-nav-burger span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--fleet-text); }
.fleet-nav-burger:hover { border-color: var(--fleet-accent); }
.fleet-nav-menu-panel {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 16px 12px; background: var(--fleet-panel); border-bottom: 1px solid var(--fleet-border);
}
.fleet-nav-menu-panel .fleet-nav-link { width: 100%; }
/* 1180px, not 760px: brand text + 5 links + CTA + dnrs mark don't actually
   fit inline until ~1150px (measured directly: still a squeezed scrollbar at
   1040px, clean at 1150px -- confirmed real case, caught twice: first at
   ~900px, still reproduced at 1040px after an initial too-small bump to
   1000px). Collapse to the hamburger before that squeeze zone, not after. */
@media (max-width: 1180px) {
  .fleet-nav-links { display: none; }
  .fleet-nav-burger { display: flex; }
}
/* Phones: no amount of right-padding reservation fixes this on its own --
   .fleet-nav-brand-group's children (product name, "Governed by..." badge,
   motto) are all white-space:nowrap and never shrink, so the brand block
   alone can be wider than the whole viewport, pushing CTA+burger+dnrs past
   the reserved padding and under the fixed toggle regardless of how much
   padding is reserved (confirmed real case, measured directly at 520px: the
   toggle sits ON TOP of "Get in Touch"'s own text). The actual fix is
   shrinking the brand block's content, not reserving more space for what's
   past it. */
@media (max-width: 600px) {
  .fleet-nav-inner { padding-left: 16px; padding-right: 58px; gap: 8px; }
  .fleet-nav-dnrs span { display: none; }
  .fleet-nav-governed, .fleet-nav-brand-col .brand-motto-row, .fleet-nav-subtitle { display: none; }
  .fleet-nav-cta { padding: 7px 10px; font-size: 12.5px; }
  /* Fixed-length product names (SMARtCARE+, SMARtFRAUD) fit; a longer one
     (SMARtBREACH, or AIDC's now-hidden "(AI Data Center)" subtitle before
     this fix) pushed the hamburger button off the right edge entirely --
     confirmed real case, visually clipped/unreachable, not just visually
     tight. Truncate instead of trusting every product name to be short
     enough, so this can't recur for a future product's name length. */
  .fleet-nav-brand { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
  /* The real structural bug, found by measuring actual rects (not just
     widening padding again): every flex child here is flex:none, so once
     their combined min-content width exceeds the available row width, they
     overflow PAST any amount of reserved padding rather than respecting it
     -- confirmed directly (padding-right:58px computed and applied, but the
     burger still rendered 40+px past where that padding should have stopped
     it). Padding-tuning could never fix this. The actual fix: let the brand
     block -- and only the brand block -- shrink, with min-width:0 (flex
     items default to min-width:auto, which silently blocks shrinking below
     content size even with flex-shrink:1 -- the classic flexbox gotcha).
     CTA/dnrs/burger stay flex:none; they must never shrink or truncate. */
  .fleet-nav-brand-group { flex: 1 1 auto; min-width: 0; }
  .fleet-nav-brand-col { min-width: 0; }
}
/* True phone width (375px): measured 13px of real horizontal overflow even
   after the fixes above (confirmed via document.body.scrollWidth) -- trim a
   bit more from gaps and brand icon spacing. */
@media (max-width: 400px) {
  .fleet-nav-inner { gap: 6px; }
  .fleet-nav-brand-icons { gap: 4px; }
  .fleet-nav-brand { max-width: 100px; }
  .fleet-nav-brand-group { gap: 6px; }
}

/* ---- file-type chips (upload rows) ---------------------------------------- */
.ftypes { display: inline-flex; gap: 6px; align-items: center; }
.ftype { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 7px 2px 5px; border-radius: 999px; border: 1px solid var(--fleet-border); color: var(--fleet-muted); }
.ftype svg { width: 13px; height: 13px; }
.ft-pdf svg { color: #e5484d; } .ft-docx svg { color: #3b82f6; } .ft-txt svg { color: #8b95a7; }

/* simple footer variant (product sites) */
[data-variant="simple"] .suite-head { margin-bottom: 4px; }
[data-variant="simple"] .suite-contact-link { display: none; }
[data-variant="simple"] .suite-head { grid-template-columns: 1fr; justify-items: center; }
[data-variant="simple"] .suite-head-spacer { display: none; }
.suite-more { text-align: center; font-size: 11.5px; margin: 2px 0 6px; }
.suite-more a { color: var(--fleet-link); }
