/* --- Presentation mode (dashboard/js/05-present.js) --- */
/* Shows the report's own live view at 150% with the persistent chrome tucked
   off-canvas -- no synthetic slide deck. .app-shell is the positioning context
   so the peeked panels scale and clip correctly under its `zoom`. */
[data-present="1"] .app-shell{position:relative;zoom:1.5}
[data-present="1"] .report-loading{display:none !important}
/* Off-canvas rail/side leaves a sliver of their dark header-bg showing behind
   the report's rounded top-left corner; repaint it to match the page. */
[data-present="1"] .rmain{background:var(--bg-page)}

[data-present="1"] .rail{position:absolute;left:0;top:0;height:100%;z-index:400;transform:translateX(-100%);transition:transform .18s ease}
[data-present="1"] .rside{position:absolute;left:66px;top:0;height:100%;z-index:400;transform:translateX(-316px);transition:transform .18s ease}
[data-present="1"][data-peek="1"] .rail,[data-present="1"][data-peek="1"] .rside{transform:none;box-shadow:6px 0 24px rgba(0,0,0,0.35)}

/* Fixed physical hot zone (unaffected by the zoom above) that peeks the chrome
   back in; the gradient sliver is the only visible hint it's there. */
.present-hotzone{position:fixed;left:0;top:0;width:14px;height:100%;z-index:401;background:linear-gradient(90deg,rgba(255,255,255,0.14),transparent)}

/* Presentation-mode contrast: independent of the user's own data-contrast
   preference (untouched for normal viewing), driven only by light/dark, and
   pushed further than today's data-contrast="high" values -- conference-room
   feedback was that even high contrast at 150% still reads too light on a
   projector. Specificity note: [data-present="1"] alone ties
   [data-theme="dark"] (both 0,1,0 -- one attribute selector each) and wins
   purely because this file loads after 00-tokens.css, so it must carry ONLY
   light values; the dark override below is what actually applies for a
   dark-mode presenter. */
[data-present="1"]{
  --text-primary:#000;--text-secondary:#141414;--text-tertiary:#262626;
  --border-t:rgba(0,0,0,0.75);--border-s:rgba(0,0,0,0.9);
  --green:#0B5C2E;--amber:#7A4100;--red:#8C0000;
}
[data-present="1"][data-theme="dark"]{
  --text-primary:#FFF;--text-secondary:#F7F8FC;--text-tertiary:#E8EAF2;
  --border-t:rgba(255,255,255,0.75);--border-s:rgba(255,255,255,0.9);
  --green:#3DDB8F;--amber:#FFCB40;--red:#FF6B6B;
}
/* [data-theme="system"] takes its DARK values from 00-tokens.css's base rule
   (grouped with [data-theme="dark"] there), so it needs the same
   OS-conditional split as that file's own high-contrast system rules to
   apply the dark presentation values only when the OS itself is dark. */
@media(prefers-color-scheme:dark){
  [data-present="1"][data-theme="system"]{
    --text-primary:#FFF;--text-secondary:#F7F8FC;--text-tertiary:#E8EAF2;
    --border-t:rgba(255,255,255,0.75);--border-s:rgba(255,255,255,0.9);
    --green:#3DDB8F;--amber:#FFCB40;--red:#FF6B6B;
  }
}
/* Distance legibility is the actual fix, not just color: thin small type
   reads fine on a laptop and disappears on a projector. Chart labels are raw
   SVG text with a font-size attribute but no font-weight, so this floor only
   ever adds weight and never fights the few labels that already set their
   own (e.g. the RMO grid's "NOW" marker and bold value callouts). */
[data-present="1"] .section-sub,
[data-present="1"] table.dt th,
[data-present="1"] table.dt td{font-weight:600}
[data-present="1"] svg text:not([font-weight]){font-weight:600}

@media print{
  .rail, .report-loading, #atlasToast, .af-overlay, .as-overlay{display:none !important}
  .rside{display:none !important}
  .rmain, .rmain-body{overflow:visible !important;height:auto !important}
  .card{break-inside:avoid}
  body, .app-shell{background:#fff !important}
}
