/* Site design for the inherited RC3 tools (computer, control lab, workload explorer).
   Styling only: tool code and text are unchanged (tool parity test). */
@font-face { font-family: "Saira SemiExpanded"; src: url("/assets/brand/Saira-SemiExpanded-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/brand/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/brand/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/brand/IBMPlexSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* the tools alias their text face "Program" to Arial: point it at the brand face */
@font-face { font-family: Program; src: url("/assets/brand/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Program; src: url("/assets/brand/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Program; src: url("/assets/brand/IBMPlexSans-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

body { font-family: "IBM Plex Sans", Arial, sans-serif; }
h1, h2, h3, h4 { font-family: "Saira SemiExpanded", "IBM Plex Sans", sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
/* no serif italics: one voice, as on the site */
h1 em, h2 em, h3 em, .hero-sub em, em { font-family: inherit !important; font-style: normal; font-weight: inherit !important; }
h1 em, h2 em, h3 em { color: inherit !important; }
.device-controls button > span, .loop-story li > span, .partner-end strong { font-family: "Saira SemiExpanded", sans-serif; font-weight: 700; }

/* header: the site's dark-green bar with the SovereignQ logo */
header.nav, body > header { background: #0B3D33; color: #F4F1E8; border-bottom: 1px solid #F4F1E833; min-height: 72px; height: auto; }
header.nav .brand, body > header .brand { font-size: 0; gap: 0; width: 152px; height: 37px; background: url("/assets/brand/SovereignQ_logo_horizontal_white.svg") no-repeat left center / contain; }
header.nav .brand > *, body > header .brand > * { display: none; }
header.nav nav a, body > header .lab-links a { color: #CFE0D8; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 15px; text-decoration: none; }
header.nav nav a:hover, header.nav nav a[aria-current="page"], body > header .lab-links a:hover { color: #F4F1E8; text-decoration: underline; text-underline-offset: 0.4em; }
header.nav .nav-cta, body > header .badge { color: #F4F1E8; border: 1px solid #F4F1E833; padding: 0.55rem 0.9rem; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 14px; }
/* editable CAD is not offered for download on the public site (PRODUCT.md); the viewer still loads the model */
.download-row a[download] { display: none; }

/* computer walkthrough: the new system render (same orthographic camera as the original, so every pin still lands) */
.machine-object > img { content: url("/assets/renders/system-module-v2.webp"); }
.machine-image-label { color: #F4F1E8; }
.machine-image-label b { color: #CFE0D8; }
.machine-object figcaption { color: #CFE0D8; }
.machine-pin { border-color: #F4F1E8; box-shadow: 0 0 0 8px #F4F1E826; background: #F4F1E81A; }
.machine-pin > i { background: #5FA58C; }
.machine-pin > b { background: #0B3D33; border-color: #F4F1E8; }

/* control lab: warm gold and coral accents mapped to the brand palette (dark page) */
:root:has(.lab-title) .lab-title h1 em { color:#CFE0D8 !important }
:root:has(.lab-title) :is(.eyebrow,.overline) { color:#CFE0D8 !important }
:root:has(.lab-title) .inputs output { color:#CFE0D8 !important }
:root:has(.lab-title) input[type=range] { accent-color:#5FA58C !important }
:root:has(.lab-title) .run { background:#F4F1E8 !important }
:root:has(.lab-title) .secondary { color:#CFE0D8 !important }
:root:has(.lab-title) .verdict { color:#CFE0D8 !important }
:root:has(.lab-title) .verdict.reject { color:#CFE0D8 !important; border-color:#CFE0D8 !important; background:#CFE0D81F !important }
:root:has(.lab-title) .metrics strong { color:#CFE0D8 !important }
:root:has(.lab-title) .command strong { color:#CFE0D8 !important }
:root:has(.lab-title) .lab-scope summary { color:#CFE0D8 !important }
:root:has(.lab-title) .lab-scope .button { color:#CFE0D8 !important; border-color:#CFE0D8 !important }
:root:has(.lab-title) :is(a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible) { outline:3px solid #CFE0D8 !important }
:root:has(.lab-title) .run { color: #0B3D33 !important; }
:root:has(.lab-title) .verdict.reject { background: #F4F1E8 !important; color: #0B3D33 !important; border-color: #F4F1E8 !important; }
/* workload explorer: its gold and coral variables become brand mint and sage */
:root { --gold: #5FA58C; --coral: #4F6A60; }
/* no tracked capitals anywhere in the tools */
.eyebrow, .overline, .badge, .kicker, [class*="label"], small, .status { text-transform: none !important; letter-spacing: 0 !important; }
/* the old cream "inside the core" diagram becomes the current atom-cell render */
img[src$="donor-core-anatomy.svg"] { content: url("/assets/renders/hierarchy-1-cell.webp"); background: #0B3D33; }

/* workload explorer (light page): warm accents to brand green, sage and a green tint; no tracked capitals */
:root:has(.lab-links) .scope { color:#0B3D33 !important }
:root:has(.lab-links) .lab h2 { color:#4F6A60 !important }
:root:has(.lab-links) .controls { background:#DCE7E1 !important }
:root:has(.lab-links) label output { color:#0B3D33 !important }
:root:has(.lab-links) .pending { color:#0B3D33 !important }
:root:has(.lab-links) .status.error { background:#DCE7E1 !important; color:#0B3D33 !important }
:root:has(.lab-links) .shift { background:#DCE7E1 !important }
:root:has(.lab-links) .job.maintenance { background:#DCE7E1 !important; border-color:#4F6A60 !important }
:root:has(.lab-links) .job.monitoring { background:#DCE7E1 !important; border-color:#4F6A60 !important }
:root:has(.lab-links) .job.late { outline:1px dashed #4F6A60 !important }
:root:has(.lab-links) .closed { background:#DCE7E1 !important }
:root:has(.lab-links) .legend .maintenance:before { background:#4F6A60 !important }
:root:has(.lab-links) .explain.error { background:#DCE7E1 !important }
:root:has(.lab-links) .invalid { border:1px dashed #4F6A60 !important; color:#0B3D33 !important }
:root:has(.lab-links) .bridge>.eyebrow { color:#4F6A60 !important }
:root:has(.lab-links) .contract-flow span { color:#4F6A60 !important }
:root:has(.lab-links) .contract-flow .future { border-color:#4F6A60 !important }
:root:has(.lab-links) .contract-flow .future small { color:#4F6A60 !important }
:root:has(.lab-links) * { text-transform: none !important; letter-spacing: normal !important; }
/* control lab chart: brand series colours; the chart keeps left-to-right geometry in Arabic */
svg text { unicode-bidi: plaintext; }
/* "SHIFT 1" is generated by the tool: shown in sentence case without changing its text */
:root:has(.lab-links) .shift h3 { text-transform: lowercase !important; }
:root:has(.lab-links) .shift h3::first-letter { text-transform: uppercase; }
