/* ============================================================================================
   LOOK-1 · shared design tokens, fonts and parts (PIECE A)
   Source: main/plan/design-ref/employee-journey.html (sha f0a5f9d9ca5d…) — every value below was read
   from that file's CSS/JS; the "l.N" comments are line numbers in it. Use this file on EVERY page
   (link it AFTER the page's own stylesheet so :root wins). Light + dark: follows prefers-color-scheme,
   overridable with data-theme="light" / data-theme="dark" on <html>.
   Fonts are self-hosted only (no Google Fonts, no outside request, CSP unchanged): the woff2 files live
   in web/fonts/ (Manrope and Baloo 2 were already there; Alexandria is new in LOOK-1).
   ============================================================================================ */

/* ---- 1. tokens, exactly as the design file (l.11-18) -------------------------------------------------- */
:root {
  color-scheme: light;
  --burg: #8B1538; --burg-d: #6F0F2B; --green: #113507; --dark: #1C231B; --gold: #8F6C32; --off: #F6F7F2;
  --canvas: #EFEFE7; --panel: #F6F7F2; --ink: #000000; --muted: #000000; --line: #DCDDD3; --tint: #F1E3E7;
  --accent-ink: #8B1538;
  --latin: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Alexandria', 'Manrope', system-ui, sans-serif;
  --wordmark: 'Baloo 2', var(--latin);
  /* shapes: square corners, radius 2px everywhere in the design; the file's own exceptions are listed in
     parts.json (e.g. the toggle is a 2px bar, the presenter phone frame is not part of nawtt) */
  --look1-radius: 2px;
  --look1-focus: 2px;
  /* spacing literals observed in the file (no invented scale): 2 3 4 6 8 10 12 14 16 18 22 24 28 px */
  --look1-space-2: 2px; --look1-space-3: 3px; --look1-space-4: 4px; --look1-space-6: 6px;
  --look1-space-8: 8px; --look1-space-10: 10px; --look1-space-12: 12px; --look1-space-14: 14px;
  --look1-space-16: 16px; --look1-space-18: 18px; --look1-space-22: 22px; --look1-space-24: 24px;
  --look1-space-28: 28px;
}
/* dark follows the OS (l.17) and can be forced (l.18) */



/* ---- 2. self-hosted fonts (l.9 = the design's Google link that we replace with these local files) ---- */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-var.woff2') format('woff2-variations');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/fonts/baloo2-latin-var.woff2') format('woff2-variations');
  font-weight: 800; font-style: normal; font-display: swap;
}
/* Alexandria 400-700: the two woff2 subsets + the exact unicode ranges from the delivered alexandria.css */
@font-face {
  font-family: 'Alexandria';
  src: url('/fonts/alexandria-arabic-var.woff2') format('woff2'); /* weight 400-700 Arabic range */
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7,
    U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32,
    U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52,
    U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72,
    U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9,
    U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Alexandria';
  src: url('/fonts/alexandria-latin-var.woff2') format('woff2'); /* weight 400-700 Latin range */
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- 3. base (l.21-24) ------------------------------------------------------------------------------- */
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--latin);
  -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
[lang="ar"], .ar, [dir="rtl"] { font-family: var(--arabic); }
/* Arabic on the APP pages: app.css has `[dir='rtl'] body { font-family: 'Segoe UI', 'Noto Naskh Arabic', … }`
   (app.css l.1647) whose specificity (0,1,1) beats the plain [lang="ar"]/[dir="rtl"] selector above. These
   stronger selectors make the app pages use Alexandria too (html[lang=ar][dir=rtl] is what app.js sets).
   Figures/amounts/code stay Latin, as in the design (.num, .amount, code -> --latin, design l.126). */
html[dir='rtl'] body, html[lang='ar'] body,
html[dir='rtl'] .ar, html[lang='ar'] .ar,
html[dir='rtl'] [lang='ar'], html[lang='ar'] [lang='ar'] { font-family: var(--arabic); }
html[dir='rtl'] :is(.num, .amount, .amount-cell, code, kbd, samp, .sb),
html[lang='ar'] :is(.num, .amount, .amount-cell, code, kbd, samp, .sb) { font-family: var(--latin); }
:focus-visible { outline: var(--look1-focus) solid var(--gold); outline-offset: 2px; } /* l.23 */
h1, h2, h3, .h1, .h2 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; } /* l.58 + wordmark l.190 */

/* ---- 4. parts (all values from the design file; the README maps each one to its line) ----------------- */
.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); }                                                          /* l.33 */
.look1-card, .card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--look1-radius); }                                          /* l.41/65/92/167 */
.pb { border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; cursor: pointer;
  font-weight: 700; font-size: 0.86rem; border-radius: var(--look1-radius); }    /* l.41 */
.pb:hover { border-color: var(--ink); }                                          /* l.42 */
.pb.pri, .btn--primary { background: var(--burg); border-color: var(--burg); color: #fff; }  /* l.43 */
.pb.green, .btn--green { background: var(--green); border-color: var(--green); color: #fff; } /* l.44 */
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--panel);
  border-radius: var(--look1-radius); }                                          /* l.45 */
.seg button { border: 0; background: none; padding: 8px 13px; cursor: pointer; font-weight: 700;
  font-size: 0.86rem; }                                                          /* l.46 */
.seg button.on { background: var(--dark); color: #F6F7F2; }                      /* l.47 */
.tabs { display: flex; border-bottom: 1px solid var(--line); }                   /* l.51 */
.tabs button { flex: 1; border: 0; background: none; padding: 14px 8px 12px; cursor: pointer;
  font-weight: 700; font-size: 0.86rem; color: var(--muted); border-bottom: 2px solid transparent;
  position: relative; }                                                          /* l.52 */
.tabs button.on { color: var(--ink); border-bottom-color: var(--burg); }          /* l.53 */
.tog { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0;
  font-size: 0.9rem; cursor: pointer; }                                          /* l.64 */
.tog input { width: 38px; height: 20px; appearance: none; -webkit-appearance: none; background: var(--line);
  position: relative; cursor: pointer; flex: none; border-radius: var(--look1-radius); } /* l.65 */
.tog input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px;
  height: 14px; background: #fff; transition: inset-inline-start 0.15s; }        /* l.66 */
.tog input:checked { background: var(--burg); }                                  /* l.69 */
.tog input:checked::after { inset-inline-start: 21px; }                          /* l.70 */

/* ---- 5. wordmark + core mark (l.31, l.184-185, l.190-191; markup from look1-mark.js) ------------------ */
.logo { display: inline-flex; align-items: flex-start; gap: 2px; font-family: var(--wordmark);
  font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--accent-ink); direction: ltr; } /* l.31 */
.logo .mk { width: 11px; height: 11px; margin-top: 5px; }                        /* l.32 */
.wm { display: inline-flex; align-items: flex-start; gap: 3px; font-family: var(--wordmark); font-weight: 800;
  line-height: 1; direction: ltr; }                                              /* l.190 */
.wm .mk { display: inline-block; }                                               /* l.191 */
.core { position: absolute; pointer-events: none; }                              /* l.184 */
.core svg, .mk svg { display: block; width: 100%; height: 100%; }                /* l.185 */
.ic { width: 24px; height: 24px; display: inline-block; vertical-align: middle; } /* icon() l.713 */

/* ---- 6. bridge for the pages' current token names (so existing CSS picks up the new look at once) ----- */
:root {
  --nawtt-burgundy: var(--burg); --nawtt-burgundy-deep: var(--burg-d); --nawtt-burgundy-soft: var(--tint);
  --nawtt-offwhite: var(--off); --nawtt-surface: var(--panel); --nawtt-green: var(--green);
  --nawtt-green-deep: var(--green); --nawtt-gold: var(--gold); --nawtt-ink: var(--ink);
  --nawtt-muted: var(--muted); --nawtt-line: var(--line); --nawtt-font: var(--latin);
  --nawtt-font-wordmark: var(--wordmark); --nawtt-radius-control: var(--look1-radius);
  --nawtt-radius-module: var(--look1-radius);
}
/* motion stays MOTION-ALL (accepted); the new parts are styled, not re-animated */
@media (prefers-reduced-motion: reduce) {
  .tog input::after { transition: none; }
}


/* ============================================================================================
   LOOK-1 A2 fix — global safety rules (added after the FIX review):
   * the icon sprite must never take part in layout (a CSP without 'unsafe-inline' drops the old
     inline style="display:none", and app.css `img,svg{display:block}` then rendered it 300x150 at the
     top of every page = the ~150 px blank band above the header);
   * a wordmark is ONE line and its core mark is never bigger than 11 px (the design: .logo .mk 11x11;
     on dark bars .emp-bar .logo 7x7) - page heroes may style their own decoration separately;
   * tab labels are one line (ellipsis) - never letter-by-letter wrapping.
   ============================================================================================ */
#look1-icons, svg#look1-icons, .look1-sprite { display: none !important; }
.logo, .wm { white-space: nowrap; }
.logo .mk, .wm .mk { inline-size: 11px; block-size: 11px; flex: none; }
.logo .mk svg, .wm .mk svg { inline-size: 100%; block-size: 100%; display: block; }
/* a bare .mk (mark helper output outside a wordmark) is capped too - heroes opt into their own size via .core */
.mk:not(.core):not(.hero__core) { inline-size: 11px; block-size: 11px; }
.tab__label { display: inline-block; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }


/* Exact design cap: the core mark in a wordmark is never larger than 11x11 (reviewer: password page measured 12px;
   a page-level `.login-card .wm .mk { width:12px }` rule outranks the plain `.mk` cap - this makes it exact). The
   employee hero's decorative core uses `.emp-hero__core`/`.core`, which is NOT a wordmark mark and is unaffected. */
.logo .mk, .wm .mk, .topbar .brand .wm .mk, .login-card .wm .mk, .card-brand .mk {
  inline-size: 11px !important; block-size: 11px !important; width: 11px !important; height: 11px !important; }
.logo .mk > svg, .wm .mk > svg, .mk > svg, svg.mk {
  inline-size: 11px !important; block-size: 11px !important; width: 100% !important; height: 100% !important; }
.mk > svg { max-inline-size: 100% !important; max-block-size: 100% !important; }


/* ---- fix pass 5: legacy soft tokens in the DARK theme (global, every page) -------------------------------
   app.css hardcodes three legacy "-soft" backgrounds in its light :root (burgundy/green/neutral); the bridge
   below already maps burgundy-soft to --tint, but green-soft/neutral-soft kept their LIGHT values in dark mode,
   so chips/disabled controls using them had light backgrounds with dark-theme text (e.g. the officer auto-bar
   switch: white-on-white, ~1:1 contrast). Map both for dark (same values patch-c used page-side on officer/
   operator), via color-mix over --panel/--ink/--green so it stays in the design's dark palette. Light unchanged. */




/* ---- fix pass 7: GREEN TEXT tokens in the DARK theme (employee "Available now" KPI etc.) ----------------
   The bridge maps --nawtt-green / --nawtt-green-deep to the palette --green (#113507), which is a LIGHT-theme
   ink; on dark surfaces (employee #glance value .glance__item--ok, summary values, recon-balanced, success
   alerts, done marks) it is dark-green on dark panel (~1.1:1, invisible). Map the two TEXT tokens to brighter
   greens for dark (keeps the palette --green itself untouched, so light stays exactly as it is and filled
   elements that use --green directly, e.g. .pb.green/.btn--green, keep their dark fill + white text).
   Filled chips that USE --nawtt-green as a background (.chip--settled) are re-pinned to the palette green so
   their off-white text keeps its contrast. */




/* Same class of dark-theme defect on the WARN glance value (officer "advance requests waiting" count):
   --nawtt-burgundy-deep is a light-theme ink (#6F0F2B); on the dark tint surface it is ~1.35:1. Fix only that
   text (the broader burgundy text tokens on dark are a design decision outside this pass). */




/* ---- fix pass 8: legacy BURGUNDY / DANGER / WARNING ink in the DARK theme (all pages) -------------------
   The bridge maps --nawtt-burgundy(#8a1538) / --nawtt-burgundy-deep(#6d1030) / --nawtt-danger(#b3261e) /
   --nawtt-warning(#8a6d3b) to the LIGHT-theme inks, so outlined buttons, danger buttons, pending chips and
   links were dark-red/dark-amber text on the dark --panel (~1.4-1.7:1). Map the TEXT tokens for dark to the
   design's dark accent / brightened mixes (all >=4.5:1 on --panel and on --tint), and re-pin the few FILLED
   elements that use the same variables as a background to the palette burgundy so their off-white text keeps
   its contrast. Light theme untouched (dark-only rules). */







/* two elements keep a LIGHT fill even in dark theme, so their text must stay the dark burgundy (not the accent ink) */




/* investor page's <details> summary uses `.inv details.explain summary` (0,2,2) in pages/investor CSS, which outranks a
   bare `summary` dark rule; match its specificity so the disclosure text is the dark accent ink (>=4.5:1), light unchanged. */



/* investor error line `.inv .state.bad{color: var(--ink, #000)}` (light-theme ink) on the dark canvas -> dark danger ink */



/* BRAND RULE (owner 2026-11-12): the logo is the same file and size on every page = the index page header:
   34px tall, 28px on phones. Never scale it by font size. */
img.brand-logo { display: inline-block; height: 34px; width: auto; max-width: none; vertical-align: middle; }
.wm:has(> img.brand-logo), .wordmark:has(> img.brand-logo) { display: inline-flex; align-items: center; font-size: 0; line-height: 1; gap: 0; }
@media (max-width: 560px) { img.brand-logo { height: 28px; } }

/* OWNER 2026-11-12: NO animation or motion on the portal pages until further notice - tables, buttons and forms are static.
   Remove this block only on the owner's word. (Videos still play: they are media, not page motion.) */
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html { scroll-behavior: auto !important; }

/* OWNER 2026-11-12: static table rows; only the first-cell link opens a record */
tr.row-open, tr.view-row { cursor: default !important; }
button.cell-open { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: var(--burg, #8B1538); text-align: start; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
button.cell-open:hover { color: var(--burg-d, #6F0F2B); }
button.cell-open > strong { color: inherit; }

/* OWNER 2026-11-12: nothing moves on hover, press or focus either - no lift, grow, shrink, slide or tilt (portal + sign-in pages) */
.btn:hover, .btn:active, .btn:focus, .btn:hover svg, .mo-btn:hover, .mo-btn:active, .mo-hover:hover, .mo-hover:active,
.kpi:hover, .kpi:hover .kpi__icon, .list-row:hover, .card:hover, .card:active, .cards > .card:hover, .cards > .card:active,
.for > *:hover, .for > *:active, .audience > *:hover, .audience > *:active, .site-nav a:hover, .site-nav a:active, .signin:hover, .signin:active,
button:hover, button:active, a:hover, a:active, tr:hover, td:hover, [role=tab]:hover, [role=tab]:active { transform: none !important; translate: none !important; scale: none !important; rotate: none !important; }
.kpi:hover, .list-row:hover { box-shadow: var(--nawtt-shadow) !important; }
