/* 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;
}

/* 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);
}
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; }
}

/* phones: the toggle scrolls away with the page instead of floating over inputs */
@media (max-width: 600px) { .theme-toggle { position: absolute; top: 10px; right: 10px; } }

/* ---- 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; }
