/* Generated from design/design.css and design/shell.css by scripts/sync-design.mjs. Do not edit by hand. */
/* BioPharma Foundry shared design layer.
   Edit THIS file (and shell.css) only. `node scripts/sync-design.mjs` copies them into every app as assets/design.css,
   and CI fails if a copy has been changed by hand. It loads after the app's own styles.css, so it wins. */

/* Colours and fonts: the same in every app. The --amber names are kept as aliases for older rules. */
:root {
  --bg: #0f1218;
  --surface: #161a22;
  --raised: #1c212b;
  --line: #272d39;
  --line-strong: #3a4252;
  --ink: #f4f4f7;
  --soft: #b4bac6;
  --muted: #8a92a2;
  --accent: #7ea6f5;
  --accent-hi: #bcd0fa;
  --accent-soft: rgba(126, 166, 245, 0.14);
  --danger: #ff8a65;
  --danger-soft: rgba(255, 138, 101, 0.1);
  --proj: rgba(255, 255, 255, 0.035);
  --font-display: "TASA Explorer", myriad-variable, sans-serif;
  --font-body: myriad-variable, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --on-accent: #0a1430;
  --amber: var(--accent);
  --amber-hi: var(--accent-hi);
  --amber-soft: var(--accent-soft);
  --on-amber: var(--on-accent);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --raised: #f1f1f5;
  --line: #e4e4ea;
  --line-strong: #c9c9d3;
  --ink: #111113;
  --soft: #46464c;
  --muted: #6a6a72;
  --accent: #2563eb;
  --accent-hi: #1e40af;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --danger: #b3401a;
  --danger-soft: rgba(179, 64, 26, 0.08);
  --proj: rgba(0, 0, 0, 0.04);
  --on-accent: #ffffff;
  --amber: var(--accent);
  --amber-hi: var(--accent-hi);
  --amber-soft: var(--accent-soft);
  --on-amber: var(--on-accent);
  color-scheme: light;
}

/* Width 95: body text, tables, charts and inputs */
html, body, table, td, input, textarea, select, button, code, .chart text {
  font-stretch: 95%;
  font-variation-settings: "wdth" 95;
}

/* Table text: +1px (12.5px to 13.5px). Tables with their own size (table.ex) are left alone. */
:root table:not(.ex), :root table:not(.ex) td {
  font-size: 13.5px;
}

/* Table headers: JetBrains Mono */
:root th, :root .report th, :root .matrix th, :root .detail th {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-stretch: 100%;
  font-variation-settings: normal;
}

/* Headings: TASA Explorer (Google Fonts), width 100, weight 600, slightly tight letter spacing */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 100%;
  font-variation-settings: normal;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

/* Page shell shared by every app: header, footer, logo, page title band, Method and Help layout.
   Copied (with design.css) into each app by scripts/sync-design.mjs. */
.wrap {
  max-width: 1296px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw);
}
@media (min-width: 1400px) {
  .wrap { padding-left: 48px; padding-right: 48px; }
}
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-mono); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { line-height: 1.1; }
.brand-full { font-family: var(--font-body); font-size: 11px; line-height: 1.25; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--soft); font-size: 15px; font-weight: 500; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }
.page-head { padding-top: clamp(28px, 5vw, 26px); padding-bottom: clamp(20px, 3vw, 12px); display: flex; flex-direction: column; gap: 2px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.page-head h1 { font-size: 34px; line-height: 1.1; }
.lede { color: var(--soft); font-size: 18px; max-width: 62ch; }
.page-head .lede { max-width: none; margin-top: 14px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; color: var(--soft); font-size: 15px; }
.site-footer p { max-width: 60ch; margin: 0; }
.site-footer .ft-copy { margin-top: 14px; color: var(--muted); }
.ft-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 700 12px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.ft-logo svg { width: 26px; height: 26px; }
.ft-a { stroke: var(--ink); }
.ft-b { stroke: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.site-footer nav a { color: var(--soft); }
.site-footer nav a:hover { color: var(--ink); }
.help { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; align-items: start; }
@media (max-width: 860px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) {
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; }
}
.toc a { color: var(--soft); font-size: 14px; padding: 8px 10px; border-radius: 4px; min-height: 40px; display: inline-flex; align-items: center; }
.toc a:hover { color: var(--accent); background: var(--raised); }
.doc { font-family: myriad-variable, sans-serif; display: flex; flex-direction: column; gap: 44px; min-width: 0; max-width: 78ch; }
.doc section { scroll-margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font-size: 28px; line-height: 1.1; }
.doc h3 { font-size: 18px; margin-top: 8px; }
.doc p, .doc li { color: var(--soft); font-size: 18px; line-height: 26px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font-size: 13px; background: var(--raised); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--ink); }
.codeblock { font-family: var(--font-body); font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; overflow-x: auto; white-space: pre; line-height: 1.6; }
.doc table { font-size: 13px; }
.doc td, .doc th { text-align: left; white-space: normal; vertical-align: top; }
.doc .tablewrap { max-height: none; }
details { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
details summary { cursor: pointer; padding: 14px 16px; min-height: 48px; color: var(--ink); font-weight: 500; }
details[open] summary { border-bottom: 1px solid var(--line); }
details p { padding: 14px 16px; }
.doc .words { color: var(--soft); font-size: 14.5px; line-height: 20px; margin-top: -6px; }
.doc .ref { font-size: 14px; }
.doc sup.cite { font-size: 0.72em; line-height: 0; margin-left: 1px; color: var(--muted); }
.doc ol.refs { padding-left: 28px; }
.doc .note { border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; color: var(--soft); }
.themebtn { font: inherit; color: var(--soft); background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; }
.themebtn:hover { color: var(--accent); border-color: var(--accent); }
.doc-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.doc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 92% 50%, transparent 0 54px, color-mix(in srgb, var(--accent) 14%, transparent) 54px 55px); -webkit-mask-image: linear-gradient(to right, transparent 55%, #000 95%); mask-image: linear-gradient(to right, transparent 55%, #000 95%); }
.doc-hero .page-head { padding-top: clamp(32px, 4.5vw, 52px); padding-bottom: clamp(28px, 4vw, 44px); gap: 12px; }
.doc-hero .eyebrow { align-self: flex-start; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 5px 12px; font-size: 11.5px; }
.doc-hero h1 { color: var(--ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
.doc-hero .lede { color: var(--soft); font-size: 18px; margin-top: 0; max-width: none; }
.toc { background: var(--surface); padding: 18px 10px 12px; }
.toc::before { content: "On this page"; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px; }
.toc a { border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
.toc a:hover { border-left-color: var(--accent); }
@media (max-width: 860px) {
  .toc { padding: 12px; }
  .toc::before { display: none; }
  .toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px; }
}
.doc { gap: 0; max-width: none; background: var(--surface); }
.doc section { padding: 36px 0 20px; }
.doc section:first-child { padding-top: 0; }
.doc section:last-child { padding-bottom: 0; }
.doc section h2 { font-size: 24px; }
.doc h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 14px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc .note { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0; padding: 14px 18px; color: var(--ink); }
.codeblock { border-radius: 0; background: var(--raised); }
.doc thead th { background: var(--accent-soft); color: var(--ink); }
.doc .tablewrap { border-radius: 0; overflow-x: auto; }
details, details summary, details[open] summary { border-radius: 0; }
.doc li::marker { color: var(--accent); }
@media (max-width: 600px) {
  .doc section { padding: 28px 0 16px; }
  .doc section h2 { font-size: 22px; }
}
.doc section h2 { margin-bottom: 5px; }
details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; flex: none; width: 22px; height: 22px; background: var(--muted); -webkit-mask: url("chevron.svg") center / contain no-repeat; mask: url("chevron.svg") center / contain no-repeat; transition: transform 0.15s ease; }
details[open] summary::after { transform: rotate(90deg); }
details summary:hover::after { background: var(--accent); }
html.docpage[data-theme="light"] { --bg: #ffffff; }
html[data-theme="light"]:not(.docpage) body { background: linear-gradient(180deg, #f8f9fb 0%, #eff1f5 100%) fixed; }
.doc { padding: 20px 50px 0 0; }
@media (max-width: 860px) {
  .doc { padding-right: 0; }
}
.doc, .toc { background: transparent; }
.codeblock, .doc code { font-stretch: 95%; font-variation-settings: "wdth" 95; font-weight: 400; }
.codeblock, .doc code { font-weight: 400; }
.codeblock, .doc code { font-size: 14px; }
.doc ol.refs { list-style: none; padding-left: 0; }
.site-footer { margin-top: 56px; }
.ft-note { font-size: 13px; color: var(--muted); max-width: 72ch; margin: 0 0 12px; }
.ft-brand:has(.ft-note) { flex: 1 1 520px; max-width: 760px; }
