/* ai_reports_site.css : the heliajamshidi.me look for public AI report pages.
   Source of truth for the public copy only. build_ai_reports.py copies it to
   public/ai-reports/company-analysis/assets/site.css and points the page at it instead of helia.css.
   The local reports (~/Sites/reports/helia.css) are not touched.
   Mirrors frontend/src/App.css and src/pages/AIReports.css: white page, #242424 ink, system-ui
   sans, accents #9e2a2b / #b5838d / #312244. Light only, like the website: no dark-mode block.
   Defines every variable helia.css defines, so page-specific CSS and inline SVG that use
   var(--paper), var(--ink-2), var(--acc) ... keep working. */
:root{
  --paper:#ffffff; --paper-2:#f6f4f4; --ink:#242424; --ink-2:#4a4a4a; --ink-3:#6b6b6b;
  --line:#dcd6d7; --acc:#9e2a2b; --acc-soft:#f4e6e8; --mark:#ffe58a;
  --ok:#2C7A4B; --mid:#A0670F; --no:#B23A2E;
  --site-mauve:#b5838d; --site-plum:#312244;
  --display:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --body:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color-scheme:light;
}
*{box-sizing:border-box}
html{color-scheme:light;background:#fff}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.5}
.wrap{max-width:1000px;margin:0 auto;padding-inline:24px;padding-block:40px 96px}
.col{max-width:70ch}
h1,h2,h3,h4{font-family:var(--display);margin:0;color:var(--ink);text-wrap:balance}
h1{font-size:clamp(30px,5vw,44px);line-height:1.1;font-weight:700;margin-bottom:12px}
/* section heading as on /ai-reports: bold, rule underneath */
h2{font-size:24px;font-weight:700;margin-top:56px;margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid var(--ink)}
h3{font-size:19px;font-weight:700;margin-top:28px;margin-bottom:6px}
p{margin:0 0 14px}
/* links: site ink, mauve underline so they stay findable in prose, site red on hover */
a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--site-mauve);text-underline-offset:2px}
a:hover{color:var(--acc);text-decoration-color:var(--acc)}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin-bottom:14px}
.dek{font-size:19px;color:#555;line-height:1.45}
code,.k{font-family:var(--mono);font-size:.85em;background:var(--paper-2);padding:1px 5px;border-radius:3px}
pre{background:var(--paper-2);padding:12px 14px;overflow-x:auto;border-radius:3px;font-family:var(--mono);font-size:13.5px;line-height:1.5}
pre code{background:none;padding:0}
table{border-collapse:collapse;width:100%;font-size:15px}
th{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:var(--ink-3);text-align:left;padding:8px 10px;border-bottom:2px solid var(--ink)}
td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.tablewrap{overflow-x:auto}
.conf{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase}
.conf.hi{color:var(--ok)}.conf.md{color:var(--mid)}.conf.lo{color:var(--no)}
/* highlights (helia.js): select text, then h */
mark.hl{background:var(--mark);color:inherit;padding:0 1px;cursor:pointer}
mark.hl.hl-on{outline:1px solid var(--ink-3);outline-offset:1px}
.hl-ui{position:fixed;z-index:2147483000;display:none;font-family:var(--mono);font-size:11px;letter-spacing:.02em;line-height:1;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:3px;padding:5px 8px;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.hl-ui.hl-btn{background:var(--mark)}
.hl-ui:hover{border-color:var(--ink-3)}
@media print{.hl-ui,.hl-help{display:none!important}}
.hl-help{position:fixed;right:12px;bottom:12px;font-family:var(--mono);font-size:11px;color:var(--ink-3);background:var(--paper-2);padding:4px 8px;border-radius:3px;opacity:.8}
pre.mermaid{background:none;padding:0;overflow:visible}

/* ---- site touches on the value map's own components. The page's inline <style> loads after
   this file, so these use an extra `html` in the selector to win on specificity. ---- */
/* active tab / filter: the site's red, as the active sidebar item */
html .toolbar button.active{background:var(--acc);border-color:var(--acc);color:#fff}
html .toolbar button{border-radius:5px}
html .f{border-radius:5px}
html .f.on{background:var(--acc-soft);border-color:var(--acc);color:var(--ink)}
/* chips, table swatches, TOC and count links are not prose: no underline */
html a.chip,html .toc-pane a,html .cnt,html .stack a,html .scatter a,html table.cos .su a{text-decoration:none}
html .toc-pane a:hover,html .cnt:hover{color:var(--acc)}
html .toc-pane .t-tab.on{color:var(--ink);border-bottom-color:var(--acc)}
html #q{background:#fff}
/* back link (build_ai_reports.py BACKLINK): as the site's links, bold */
html .air-back{font-family:var(--body);font-size:15px;letter-spacing:0;padding-top:14px}
html .air-back a{color:var(--ink);font-weight:700;text-decoration:none}
html .air-back a:hover{color:var(--acc);text-decoration:underline}
