/* Fido theme loader for every served board. Owner: Dot (package), Fido (propagation). Fundamentals 9.3, 9.4, 9.5.
   Applied 2026-10-26 after the owner-approved design package (DOT-DESIGN-ADOPTION-20261026) landed on the M1 with verified hashes.
   Sources (canonical home ~/atma-work/fido-design/current/): fido-tokens.css v0.2.0 (sha 6cae4591...), status-legend.v1.json
   (2026-10-23.1, sha 3fa6092a...), fido-logo-mark.svg (sha 7271a5d5...). Boards keep their own layout; this file supplies tokens,
   status colors and the signature gradient so the look is the design system's, not the page's. */
@import url("fido-tokens.css");

:root {
  /* board page variables mapped onto design-system tokens */
  --canvas: var(--fido-surface-canvas);
  --panel: var(--fido-surface-panel);
  --soft: var(--fido-surface-raised);
  --text: var(--fido-text-primary);
  --muted: var(--fido-text-secondary);
  --quiet: var(--fido-text-muted);
  --line: var(--fido-line-subtle);
  --line-strong: var(--fido-line-strong);
  --overlay: var(--fido-surface-raised);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* status legend v1 (2026-10-23.1): the one status vocabulary */
  --status-green: #15803D;  --status-yellow: #A16207;  --status-orange: #C2410C;
  --status-red: #B91C1C;    --status-blue: #1D4ED8;    --status-grey: #6B7280;
  --green: var(--status-green); --amber: var(--status-yellow); --red: var(--status-red); --blue: var(--status-blue);
  --green-t: rgba(21,128,61,.12); --amber-t: rgba(161,98,7,.12); --red-t: rgba(185,28,28,.12); --blue-t: rgba(29,78,216,.12);
  /* shapes: rectangles with one small radius; status chips are the one pill */
  --r-md: 10px; --r-pill: 999px;
}
body { background: var(--canvas); color: var(--text); font-family: var(--font); font-variant-numeric: tabular-nums; }
/* shared nav picks up the tokens */
#fido-nav { background: color-mix(in srgb, var(--fido-surface-panel) 92%, transparent) !important; border-bottom-color: var(--fido-line-subtle) !important; }
#fido-nav .brand, #fido-nav a { color: var(--fido-text-primary) !important; }
#fido-nav a { background: var(--fido-surface-panel) !important; border-color: var(--fido-line-subtle) !important; }
#fido-nav a.here { background: var(--fido-action-primary) !important; color: var(--fido-text-inverse) !important; border-color: var(--fido-action-primary) !important; }
/* progress bars and headline accents carry the signal gradient (brand channel), never status meaning */
.bar i { background: var(--fido-gradient-signal); }
/* phone layout: tables stack into cards; the shared nav scrolls horizontally instead of wrapping (owner reads on phone and iPad) */
@media (max-width: 640px) {
  #fido-nav { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table thead { display: none; }
  table, table tbody, table tr, table td { display: block; width: 100%; box-sizing: border-box; }
  table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table td { padding: 2px 0 !important; border: 0 !important; }
  table td:empty { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr) !important; } main, header.top, .top { max-width: 100vw; overflow-x: hidden; }
}
