/*
 * Oncotics v4 shell for the Precision Oncology Workspace.
 * 1) Site header and footer strip (scoped to .o-header / .o-wsfoot).
 * 2) A visual re-theme through the Workspace's documented --ow-* custom properties.
 * Styling only: no Workspace markup, script or behaviour is changed. © 2026 Oncotics™.
 */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

html, body { background: #F6F5F1; }
html[data-theme="dark"], html[data-theme="dark"] body { background: #0B1322; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]), html:not([data-theme="light"]) body { background: #0B1322; } }

/* ---------------------------------------------------------------- Workspace re-theme (v5): dark "Deep tide" */
html[data-theme="dark"] body .oncotics-workspace.oncotics-workspace:not([data-theme="light"]),
html body .oncotics-workspace.oncotics-workspace[data-theme="dark"] {
  --ow-navy: #0B1424; --ow-navy-2: #172645;
  --ow-teal: #3DDCC4; --ow-teal-ink: #6EEAD6; --ow-teal-soft: rgba(61,220,196,.12);
  --ow-bg: #0B1322; --ow-surface: #13203A; --ow-surface-2: #172645; --ow-surface-3: #1D2D4D;
  --ow-border: rgba(236,239,244,.10); --ow-border-strong: rgba(236,239,244,.18);
  --ow-text: #ECEFF4; --ow-muted: #A7AEBA; --ow-subtle: #8D95A3; --ow-focus: #6EEAD6;
  --ow-shadow: none; --ow-shadow-lg: 0 30px 80px -30px rgba(0,0,0,.85);
  --ow-radius: 12px; --ow-radius-sm: 6px;
  --ow-gene: #A5B4FC; --ow-gene-bg: rgba(129,140,248,.16); --ow-variant: #7DD3FC; --ow-variant-bg: rgba(56,189,248,.14);
  --ow-protein: #C4B5FD; --ow-protein-bg: rgba(167,139,250,.16); --ow-good: #6EE7B7; --ow-good-bg: rgba(52,211,153,.14);
  --ow-warn: #FCD34D; --ow-warn-bg: rgba(251,191,36,.14); --ow-bad: #FF9B8F; --ow-bad-bg: rgba(255,107,74,.15);
  --ow-neutral: #CBD5E1; --ow-neutral-bg: rgba(148,163,184,.16); --ow-lit: #FFB39F; --ow-lit-bg: rgba(255,107,74,.13);
  --ow-device: #D8B4FE; --ow-device-bg: rgba(192,132,252,.16); --ow-cyan: #67E8F9; --ow-cyan-bg: rgba(34,211,238,.14);
  --ow-font: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ow-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .oncotics-workspace.oncotics-workspace:not([data-theme="light"]) {
  --ow-navy: #0B1424; --ow-navy-2: #172645;
  --ow-teal: #3DDCC4; --ow-teal-ink: #6EEAD6; --ow-teal-soft: rgba(61,220,196,.12);
  --ow-bg: #0B1322; --ow-surface: #13203A; --ow-surface-2: #172645; --ow-surface-3: #1D2D4D;
  --ow-border: rgba(236,239,244,.10); --ow-border-strong: rgba(236,239,244,.18);
  --ow-text: #ECEFF4; --ow-muted: #A7AEBA; --ow-subtle: #8D95A3; --ow-focus: #6EEAD6;
  --ow-shadow: none; --ow-shadow-lg: 0 30px 80px -30px rgba(0,0,0,.85);
  --ow-radius: 12px; --ow-radius-sm: 6px;
  --ow-gene: #A5B4FC; --ow-gene-bg: rgba(129,140,248,.16); --ow-variant: #7DD3FC; --ow-variant-bg: rgba(56,189,248,.14);
  --ow-protein: #C4B5FD; --ow-protein-bg: rgba(167,139,250,.16); --ow-good: #6EE7B7; --ow-good-bg: rgba(52,211,153,.14);
  --ow-warn: #FCD34D; --ow-warn-bg: rgba(251,191,36,.14); --ow-bad: #FF9B8F; --ow-bad-bg: rgba(255,107,74,.15);
  --ow-neutral: #CBD5E1; --ow-neutral-bg: rgba(148,163,184,.16); --ow-lit: #FFB39F; --ow-lit-bg: rgba(255,107,74,.13);
  --ow-device: #D8B4FE; --ow-device-bg: rgba(192,132,252,.16); --ow-cyan: #67E8F9; --ow-cyan-bg: rgba(34,211,238,.14);
  --ow-font: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ow-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
  }
}
/* Light "Porcelain" is the base */
html body .oncotics-workspace.oncotics-workspace {
  --ow-navy: #0B1424; --ow-navy-2: #13203A;
  --ow-teal: #12B5A0; --ow-teal-ink: #0A7566; --ow-teal-soft: rgba(18,181,160,.11);
  --ow-bg: #F6F5F1; --ow-surface: #FFFFFF; --ow-surface-2: #F1EFE9; --ow-surface-3: #E6E3DB;
  --ow-border: rgba(11,14,19,.12); --ow-border-strong: rgba(11,14,19,.22);
  --ow-text: #0E1726; --ow-muted: #4A505B; --ow-subtle: #59606C; --ow-focus: #0A7566;
  --ow-shadow: 0 1px 2px rgba(11,14,19,.05); --ow-shadow-lg: 0 24px 60px -24px rgba(11,14,19,.35);
  --ow-gene: #4338CA; --ow-gene-bg: rgba(79,70,229,.10); --ow-variant: #0369A1; --ow-variant-bg: rgba(2,132,199,.10);
  --ow-protein: #6D28D9; --ow-protein-bg: rgba(124,58,237,.10); --ow-good: #047857; --ow-good-bg: rgba(5,150,105,.11);
  --ow-warn: #92400E; --ow-warn-bg: rgba(245,158,11,.16); --ow-bad: #BE123C; --ow-bad-bg: rgba(225,29,72,.10);
  --ow-neutral: #334155; --ow-neutral-bg: rgba(100,116,139,.13); --ow-lit: #9A3412; --ow-lit-bg: rgba(234,88,12,.11);
  --ow-device: #7E22CE; --ow-device-bg: rgba(147,51,234,.10); --ow-cyan: #0E7490; --ow-cyan-bg: rgba(6,182,212,.12);
  color-scheme: light;
  --ow-font: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ow-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Contrast: bright mint buttons take dark text whenever the dark palette is active */
html[data-theme="dark"] body .oncotics-workspace:not([data-theme="light"]) .ow-btn-primary, html[data-theme="dark"] body .oncotics-workspace:not([data-theme="light"]) .ow-tab[aria-selected="true"] .ow-count,
html body .oncotics-workspace[data-theme="dark"] .ow-btn-primary, html body .oncotics-workspace[data-theme="dark"] .ow-tab[aria-selected="true"] .ow-count { color: #062019; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body .oncotics-workspace:not([data-theme="light"]) .ow-btn-primary, html:not([data-theme="light"]) body .oncotics-workspace:not([data-theme="light"]) .ow-tab[aria-selected="true"] .ow-count { color: #062019; } }
html body .oncotics-workspace .ow-btn-primary:hover, html body .oncotics-workspace .ow-search .ow-btn-primary:hover { color: #fff; }
/* Header band of the Workspace (deep navy in both themes) */
html body .oncotics-workspace .ow-header { background: radial-gradient(900px 400px at 85% 0%, rgba(61,220,196,.16), transparent 60%), #0B1424; border-bottom: 1px solid rgba(236,239,244,.08); }
html body .oncotics-workspace h1, html body .oncotics-workspace h2 { letter-spacing: -.02em; }

/* ---------------------------------------------------------------- site header */
.o-header, .o-wsfoot { --o-night: #0B1424; --o-ink: #ECEFF4; --o-muted: #8D95A3; --o-teal: #3DDCC4; --o-line: rgba(236,239,244,.10); font-family: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif; box-sizing: border-box; }
.o-header *, .o-wsfoot * { box-sizing: border-box; }
.o-header { position: relative; z-index: 60; background: var(--o-night); color: var(--o-ink); border-bottom: 1px solid var(--o-line); }
.o-header .o-in { max-width: 1560px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; gap: 20px; }
.o-header a:focus-visible, .o-header button:focus-visible, .o-wsfoot a:focus-visible { outline: 2px solid #5FF0D3; outline-offset: 2px; border-radius: 4px; }
.o-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #ECEFF4; font: 500 1.16rem/1 "Geist", system-ui, sans-serif; letter-spacing: -.03em; flex: none; }
.o-brand svg { width: 28px; height: 28px; flex: none; }
.o-nav { margin: 0 auto; display: flex; align-items: center; }
.o-nav a { position: relative; padding: 10px 13px; text-decoration: none; font: 500 .7rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--o-muted); white-space: nowrap; }
.o-nav a:hover, .o-nav a[aria-current="page"] { color: #ECEFF4; }
.o-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px; background: var(--o-teal); }
.o-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.o-header .btn { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 5px 0 14px; border-radius: 6px; border: 1px solid transparent; font: 500 .7rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.o-header .btn .arr { width: 28px; height: 28px; border-radius: 4px; display: inline-grid; place-items: center; background: rgba(0,0,0,.16); }
.o-header .btn .arr svg { width: 15px; height: 15px; transform: rotate(-45deg); }
.o-header .btn-line { border-color: var(--o-line); color: #ECEFF4; padding: 0 14px; }
.o-header .btn-line:hover { border-color: #ECEFF4; }
.o-header .btn-ink { background: var(--o-teal); color: #04110E; }
.o-header .btn-ink[href="/precision-oncology-workspace/"] { display: none; }
.o-menu { display: none; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--o-line); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.o-menu svg { width: 22px; height: 22px; }
.o-menu-close, .o-mobile-cta { display: none !important; }
@media (max-width: 1040px) {
  .o-menu { display: inline-flex; }
  .o-actions { margin-left: auto; }
  .o-actions .btn { display: none; }
  .o-nav { position: fixed; inset: 0; margin: 0; z-index: 150; padding: 90px 20px 40px; background: #040507; flex-direction: column; align-items: stretch; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; overflow-y: auto; }
  .o-nav a { font: 300 2rem/1.1 "Geist", system-ui, sans-serif; letter-spacing: -.03em; text-transform: none; color: #fff; padding: 16px 0; border-bottom: 1px solid var(--o-line); }
  .o-nav a[aria-current="page"] { color: var(--o-teal); }
  .o-nav a[aria-current="page"]::after { display: none; }
  .o-header.is-open .o-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .o-header.is-open .o-menu { position: relative; z-index: 160; background: #fff; color: #07090D; }
  .o-header.is-open .o-menu-open { display: none; }
  .o-header.is-open .o-menu-close { display: block !important; }
}
.o-wsfoot { background: #070D19; color: var(--o-muted); font-size: 14px; line-height: 1.6; padding: 22px 16px 96px; border-top: 1px solid var(--o-line); }
.o-wsfoot .o-in { max-width: 1560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.o-wsfoot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.o-wsfoot a { color: #C3C9D3; text-decoration: none; font: 500 .7rem/1.6 "Geist Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.o-wsfoot a:hover { color: #5FF0D3; }
@media print { .o-header, .o-wsfoot { display: none; } }
/* The Workspace's own skip link sits just above it; keep it off-screen until focused under the taller header */
html body .oncotics-workspace .ow-skip:not(:focus) { top: -200px; }
.o-header .o-theme { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--o-line); background: transparent; color: #E9EEF6; cursor: pointer; display: inline-grid; place-items: center; }
.o-header .o-theme svg { width: 17px; height: 17px; }
.o-header .o-theme .i-sun { display: none; }
html[data-theme="dark"] .o-header .o-theme .i-sun { display: block; } html[data-theme="dark"] .o-header .o-theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .o-header .o-theme .i-sun { display: block; } html:not([data-theme="light"]) .o-header .o-theme .i-moon { display: none; } }
/* Belt and braces: Geist on every Workspace element in both themes (styling only) */
html body .oncotics-workspace.oncotics-workspace, html body .oncotics-workspace.oncotics-workspace button, html body .oncotics-workspace.oncotics-workspace input, html body .oncotics-workspace.oncotics-workspace select, html body .oncotics-workspace.oncotics-workspace textarea { font-family: var(--ow-font); }
/* Globe: hide the Cesium ion badge (no ion services are used); keep a plain text credit */
html body .oncotics-workspace .cesium-credit-logoContainer { display: none !important; }
