/* ==========================================================================
   report-green.css: the report in the chat's green (T7, 7 November 2026)
   ==========================================================================
   The owner, beside the chat's card: "our report right? can be in this sleek green format, i mean the screen is looking
   way cooler than our reports, this way it can be shared as well". On a screen the report page (Open the full report,
   a Share link) takes the look of the chat's card on the chat's reading green: the same ground (the field's picture
   under the reading green's veil, LabChat.tsx .pr-chat-hero.read), the card's surface and its thin lines
   (LabCircuitCard.tsx CARD_COLOURS), DM Sans for every word, the card's own drawings at the top of the results
   (card_figures.chart, the card's surface and fan, surface_fan.js) and its table. The serif title and the white sheet
   go.

   Loaded with media="screen": Download PDF (window.print) prints the light sheet as before (research-reading.css,
   report-page.css), its figures and captions in the sheet's colours. The report's own figures stay on the page: on the
   green their sheet colours are read as the card's (the attribute selectors below; a figure's attribute colour gives
   way to a stylesheet), and a caption that names a colour says the screen's colour here and the sheet's in print
   (report_routes.on_green).
   ========================================================================== */

/* the page's own ground, under the whole window whatever the site's scale (a desktop draws pages at 80%) */
body:has(.report-desk) {
    background: linear-gradient(rgba(6, 22, 15, .56), rgba(6, 22, 15, .56)),
                #1e3a2f url(/static/landing/img/hero-field-2026-10-07.jpg) 44% center / cover no-repeat fixed;
}
.report-embed.report-desk { background: transparent; }

/* the card's colours, on the page as the card reads them (theme.css's names; card_figures.chart, and surface_fan.js,
   which reads them off the page's root); this file is the report page's alone */
:root {
    --qc-bg: rgba(8, 20, 15, .92);
    --qc-ink: #ffffff;
    --qc-ink-2: rgba(255, 255, 255, .82);
    --qc-ink-3: rgba(255, 255, 255, .62);
    --qc-line: rgba(255, 255, 255, .14);
    --qc-line-2: rgba(255, 255, 255, .22);
    --qc-line-3: rgba(255, 255, 255, .34);
    --qc-raise: rgba(255, 255, 255, .055);
    --qc-rule: #5cc895;
    --qc-hold: rgba(255, 255, 255, .55);
    --qc-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --qc-radius: 10px;
    --qc-tl-train: rgba(255, 255, 255, .38);
    --qc-tl-test: #5cc895;
}

/* the sheet becomes the card: its surface, a hairline edge, DM Sans, the card's inks */
.research-paper.report-paper {
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, .82);
    --faint: rgba(255, 255, 255, .62);
    --rule: rgba(255, 255, 255, .14);
    --accent: #5cc895;
    --paper: rgba(8, 20, 15, .64);
    --panel: rgba(255, 255, 255, .055);
    --ql-display: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ql-figures: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--paper);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.report-embed .research-paper.report-paper { border-radius: 0; border-width: 0; }
/* IN THE REPORT'S WINDOW (T7, 7 November 2026; the manager in real Chrome: a cream strip and cream margins round the green
   page, and a dark box inside the green): the window paints the chat's green itself (base.html .report-green), so the
   page lets it through, one ground from edge to edge under the window's title: no ground of its own, no sheet's box */
html.in-report-window, html.in-report-window body { background: transparent; }
html.in-report-window body::before { display: none; }
.report-embed .research-paper.report-paper {
    background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* the list of sections, a row on that ground like the rest (a band held at the top was a dark box in the green) */
.report-embed .research-paper.report-paper .report-toc { position: static; background: transparent; }
.research-paper.report-paper h1 {
    font-family: var(--ql-display); font-weight: 300; letter-spacing: -.02em; line-height: 1.12; color: #ffffff;
    font-size: clamp(28px, 3.6vw, 40px);
}
.research-paper.report-paper h2 {
    font-family: var(--ql-display); font-weight: 400; font-size: 21px; letter-spacing: -.005em; color: #ffffff;
    border-bottom: 1px solid var(--rule);
}
.research-paper.report-paper h3 { color: #ffffff; }
.research-paper.report-paper .eyebrow { color: var(--faint); }
.research-paper.report-paper .byline,
.research-paper.report-paper .report-changed { color: var(--muted); }
.research-paper.report-paper .report-question { color: var(--muted); }
.research-paper.report-paper .abstract { color: var(--muted); border-color: var(--rule); }
.research-paper.report-paper .abstract .lbl { color: var(--faint); }
.research-paper.report-paper .abstract .report-lead { color: #ffffff; font-weight: 300; }
.research-paper.report-paper a { color: #ffffff; }
.research-paper.report-paper .good { color: #5cc895; }
.research-paper.report-paper .bad { color: #f08c7c; }
.research-paper.report-paper .warn { color: #e3b341; }

/* the figures in a row of tiles, as the card's (surface_fan.css .sf-tile) */
.research-paper.report-paper .headline { gap: 8px; }
.research-paper.report-paper .stat {
    background: var(--panel); border: 0; border-radius: 10px; padding: 10px 12px; min-width: 150px;
}
.research-paper.report-paper .stat:first-child { padding-left: 12px; }
.research-paper.report-paper .stat .k { color: var(--faint); }
.research-paper.report-paper .stat .v { color: #ffffff; font-weight: 400; font-family: var(--ql-figures); }
.research-paper.report-paper .stat .s { color: var(--faint); }

/* the bar above the sheet and every button: the card's own (a hairline, the white of the chat's send button) */
.report-desk .report-btn {
    color: #ffffff; background: rgba(8, 20, 15, .64); border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px;
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}
.report-desk .report-btn.primary { background: #ffffff; border-color: #ffffff; color: #06160f; }
.report-desk .report-btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.report-desk .report-kept, .report-desk .report-kept a { color: rgba(255, 255, 255, .82); }
/* THE SHARE ROW UNDER THE BAR (T7, 8 November 2026; a layer the report opens: Share makes the result's page and opens
   the row): the card's inks on the green, in the window and on the report's own page, where report-page.css gave it the
   sheet's dark ink and a cream one */
.report-desk:not(.report-embed) .report-share, .report-desk:not(.report-embed) .report-share-note,
.report-embed .report-share, .report-embed .report-share-note {
    --ink: #ffffff; --muted: rgba(255, 255, 255, .82); --faint: rgba(255, 255, 255, .62); --rule: rgba(255, 255, 255, .34);
}
.report-embed .report-share-line { opacity: 1; }
.report-desk:not(.report-embed) .report-bar .report-btn:focus-visible { outline-color: #ffffff; }
.research-paper.report-paper .report-toc a { color: var(--muted); border-color: var(--rule); border-radius: 999px; }
.research-paper.report-paper .report-toc a:hover { border-color: rgba(255, 255, 255, .62); }
.research-paper.report-paper .report-dive { border-color: var(--rule); background: var(--panel); border-radius: 12px; }
.research-paper.report-paper .report-dive .txt b { font-family: var(--ql-display); font-weight: 400; color: #ffffff; }

/* the setup list and every table: the card's table (result.css .figtable), thin lines, the values the only bold thing */
.research-paper.report-paper .report-setup { border-color: var(--rule); }
.research-paper.report-paper .report-setup dt { color: var(--faint); }
.research-paper.report-paper .report-setup dd { color: #ffffff; }
.research-paper.report-paper table { color: var(--muted); }
.research-paper.report-paper th { color: var(--faint); font-family: var(--ql-sans); font-weight: 500; }
.research-paper.report-paper th, .research-paper.report-paper td { border-color: var(--rule); }
.research-paper.report-paper thead th { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.research-paper.report-paper table { border-top: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .22); }
.research-paper.report-paper td.num { font-family: var(--ql-sans); font-size: inherit; color: #ffffff; font-weight: 600;
    font-variant-numeric: tabular-nums; }
.research-paper.report-paper .tbl-cap, .research-paper.report-paper figcaption { color: var(--faint); }
.research-paper.report-paper .tbl-cap b, .research-paper.report-paper figcaption b { color: rgba(255, 255, 255, .82); }
.research-paper.report-paper .foot { color: var(--faint); border-color: var(--rule); }
.research-paper.report-paper .report-funnel .fb { background: #5cc895; }

/* THE REPORT'S OWN FIGURES ON THE GREEN: each sheet colour (report_figures.py's palette) read as the card's, every line
   thin at any size. In print the sheet's colours stand (this file is the screen's). */
.research-paper.report-paper .fig-svg text { font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
.research-paper.report-paper .fig-svg [fill="#1a1a17"] { fill: rgba(255, 255, 255, .86); }
.research-paper.report-paper .fig-svg [stroke="#1a1a17"] { stroke: rgba(255, 255, 255, .86); }
.research-paper.report-paper .fig-svg [fill="#767162"] { fill: rgba(255, 255, 255, .62); }
.research-paper.report-paper .fig-svg [stroke="#767162"] { stroke: rgba(255, 255, 255, .62); }
.research-paper.report-paper .fig-svg [stroke="#d8d2c4"] { stroke: rgba(255, 255, 255, .14); }
.research-paper.report-paper .fig-svg [fill="#d8d2c4"] { fill: rgba(255, 255, 255, .14); }
.research-paper.report-paper .fig-svg [stroke="#e4dfd3"] { stroke: rgba(255, 255, 255, .09); }
.research-paper.report-paper .fig-svg [fill="#e4dfd3"] { fill: rgba(255, 255, 255, .09); }
.research-paper.report-paper .fig-svg [stroke="#1f6f4a"] { stroke: #5cc895; }
.research-paper.report-paper .fig-svg [fill="#1f6f4a"] { fill: #5cc895; }
.research-paper.report-paper .fig-svg [stroke="#8f897c"] { stroke: rgba(255, 255, 255, .55); }
.research-paper.report-paper .fig-svg [fill="#8f897c"] { fill: rgba(255, 255, 255, .55); }
.research-paper.report-paper .fig-svg [stroke="#c9c3b5"] { stroke: rgba(255, 255, 255, .3); }
.research-paper.report-paper .fig-svg [fill="#c9c3b5"] { fill: rgba(255, 255, 255, .3); }
.research-paper.report-paper .fig-svg [stroke="#b8b2a2"] { stroke: rgba(255, 255, 255, .34); }
.research-paper.report-paper .fig-svg [fill="#ddd8cc"] { fill: rgba(255, 255, 255, .1); }
.research-paper.report-paper .fig-svg [fill="#aaa498"] { fill: rgba(255, 255, 255, .22); }
.research-paper.report-paper .fig-svg [fill="#57534a"] { fill: rgba(255, 255, 255, .38); }
.research-paper.report-paper .fig-svg [fill="#ffffff"], .research-paper.report-paper .fig-svg [fill="#fff"],
.research-paper.report-paper .fig-svg [fill="#fbfaf6"] { fill: transparent; }
.research-paper.report-paper .fig-svg path[fill="none"],
.research-paper.report-paper .fig-svg line { vector-effect: non-scaling-stroke; }
.research-paper.report-paper .fig-svg path[fill="none"] { stroke-width: 1.5px; }
.research-paper.report-paper .fig-tip { background: rgba(8, 20, 15, .92); color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .22); }

/* THE CARD'S OWN DRAWINGS at the top of the results (report_routes.card_view): its chart, drawn for a computer and
   for a phone, the lines named, its table, its surface and its fan */
.report-card-view { margin: 4px 0 18px; }
.report-card-view .rc-compared { margin: 0 0 10px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.report-card-view .rc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 6px; font-size: 12.5px;
    color: rgba(255, 255, 255, .82); }
.report-card-view .rc-legend i { display: inline-block; width: 16px; margin-right: 6px; vertical-align: middle;
    border-top: 2px solid var(--qc-rule); }
.report-card-view .rc-legend .rc-hold i { border-top-color: var(--qc-hold); }
.report-card-view .rc-chart { margin: 0 0 12px; }
.report-card-view .rc-chart svg { display: block; width: 100%; height: auto; }
.report-card-view .rc-chart .rc-narrow { display: none; }
@media (max-width: 600px) {
    .report-card-view .rc-chart .rc-wide { display: none; }
    .report-card-view .rc-chart .rc-narrow { display: block; }
}
.report-card-view table.rc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 0;
    border-top: 0; border-bottom: 0; }
.report-card-view table.rc-table th { text-transform: none; letter-spacing: 0; font-family: var(--qc-sans); }
/* the card's table stays a table at every width, as on the card (the sheet scrolls its wide tables as blocks below
   924px; this one has three columns) */
.research-paper.report-paper .report-card-view table.rc-table { display: table; }
.report-card-view table.rc-table th, .report-card-view table.rc-table td {
    padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: right; white-space: nowrap; }
.report-card-view table.rc-table thead th { color: rgba(255, 255, 255, .62); font-weight: 500; font-size: 12px;
    border-bottom-color: rgba(255, 255, 255, .22); }
.report-card-view table.rc-table tbody th { text-align: left; color: rgba(255, 255, 255, .82); font-weight: 400;
    white-space: normal; }
.report-card-view table.rc-table td { color: #ffffff; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-card-view table.rc-table td.hold { color: rgba(255, 255, 255, .62); font-weight: 400; }
.report-card-view table.rc-table thead th.rule { color: #5cc895; }
.report-card-view .rc-pictures { min-height: 1px; }
.report-card-view .sf-sec { color: rgba(255, 255, 255, .82); }

/* the screen shows the card's chart where the sheet's growth and drawdown figures print; the words follow the screen */
.print-only { display: none !important; }

/* A PHONE: the green to the edges, the card's surface edge to edge, the figures at the column's width */
@media (max-width: 600px) {
    .report-desk:not(.report-embed) { padding: 14px 0 48px; }
    .research-paper.report-paper { padding: 22px 16px 28px; border-radius: 0; border-width: 1px 0; }
    .research-paper.report-paper h1 { font-size: 28px; }
    .research-paper.report-paper .abstract { font-size: 17px; }
    .research-paper.report-paper .abstract .report-lead { font-size: 19px; }
    .research-paper.report-paper .stat { min-width: 0; flex: 1 1 calc(50% - 8px); }
    .research-paper.report-paper .stat .v { font-size: 24px; }
    .report-desk .report-bar { padding-inline: 16px; }
}
