/* OpenBGA Environmental LIMS public site, in the application's Evergreen language: the same palette, Overpass
   type, tonal surfaces without borders, rounded shapes and the roots, soil and water scene. Light
   follows the app's morning palette, dark its forest night. */

/* Overpass (OFL-1.1, assets/overpass-OFL.txt), the app's file and its corrected metrics: the
   overrides keep the total line height of the font's own metrics and centre capitals in buttons
   and pills (see static/css/app.css). The middle dot is left out so the system font spaces it. */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 104%;
  descent-override: 22.6%;
  line-gap-override: 0%;
  src: url("overpass-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --shell: light-dark(#e6ebe1, #0f1c14);          /* the app's top bar and sidebar */
  --shell-chip: light-dark(#d9e1d4, #1a2c20);
  --paper: light-dark(#f2f3ee, #141f18);          /* page ground */
  --surface: light-dark(#fcfcf9, #1a271e);        /* panels */
  --surface-2: light-dark(#f3f2ec, #1f2d24);      /* wells, table head, quiet buttons */
  --surface-hover: light-dark(#ecebe3, #26362b);
  --ink: light-dark(#212720, #dce5dc);
  --strong: light-dark(#171c16, #ecf1eb);
  --muted: light-dark(#585f55, #a3b1a4);
  --action: light-dark(#2f6e3e, #86c993);         /* primary button, focus */
  --action-hover: light-dark(#255833, #a4d8ad);
  --on-action: light-dark(#f8fbf6, #0f2214);
  --link: light-dark(#2c6639, #93d09f);
  --link-hover: light-dark(#1e4a28, #bce4c2);
  --selection: light-dark(#d6eadb, #2b5235);
  --forest: light-dark(#1b3326, #0c1711);         /* the "Try it" band */
  --forest-2: light-dark(#24402e, #18291e);
  --on-forest: light-dark(#eef3ec, #e6efe6);
  --on-forest-muted: light-dark(#b5c8b8, #a8bba9);
  --forest-link: light-dark(#b6e0bd, #a4d8ad);
  --line-intake: light-dark(#bf5a37, #e59272);
  --line-bench: light-dark(#a37a14, #d9b04f);
  --line-release: light-dark(#6e8a1e, #a9c35a);
  --line-lab: light-dark(#2a8892, #62bcc5);
  --line-pending: light-dark(#d1d0c6, #36463b);
  --bark: light-dark(#8a7058, #9d876d);
  --soil: light-dark(#efe9dd, #201d16);
  --station: light-dark(#fcfcf9, #1a271e);
  --shadow: 0 1px 2px light-dark(rgb(28 34 24 / 6%), rgb(0 0 0 / 30%)), 0 18px 48px -24px light-dark(rgb(28 34 24 / 28%), rgb(0 0 0 / 60%));
  --shadow-soft: 0 1px 2px light-dark(rgb(28 34 24 / 5%), rgb(0 0 0 / 25%)), 0 4px 14px light-dark(rgb(28 34 24 / 5%), transparent);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --line-width: 4px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: var(--font);
  font-feature-settings: "kern" 1;
  word-spacing: .04em;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: light-dark(#b9beb2, #3e4e43) transparent;
}

/* The theme menu (assets/site.js) pins a choice on <html data-theme>; without it, or without
   JavaScript, the page follows the system setting. Every colour token switches with color-scheme. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }


* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--selection); color: var(--ink); }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--strong); text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
p { max-width: 66ch; }
p + p { margin-top: 1rem; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }
section[id], li[id] { scroll-margin-top: 1.5rem; }

svg[hidden] { display: none; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }

.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 2; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.wrap, .site-header-inner, .site-footer { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }

/* Header: the app's sage shell as one rounded bar */
.site-header { padding-top: 1rem; }
.site-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: .625rem .75rem .625rem 1rem; border-radius: var(--radius-lg); background: var(--shell); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { flex: none; border-radius: 9px; }
.wordmark { display: grid; gap: .0625rem; line-height: 1.15; }
.wordmark-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.wordmark-parent { color: var(--muted); font-size: .75rem; font-weight: 500; }
nav.site-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav.site-nav a { padding: .5rem .875rem; border-radius: var(--radius-pill); color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
nav.site-nav a:hover { background: var(--shell-chip); color: var(--strong); }
nav.site-nav { margin-left: auto; }

/* Theme menu: Light, Dark or System (assets/site.js). Hidden until the head script has run. */
:root:not([data-theme]) .theme-menu { display: none; }
.theme-menu { position: relative; flex: none; }
.theme-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .5rem .875rem; border: 0; border-radius: var(--radius-pill); background: var(--shell-chip); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.theme-button:hover, .theme-button[aria-expanded="true"] { background: var(--surface); color: var(--strong); }
.theme-options { position: absolute; z-index: 20; top: calc(100% + .5rem); right: 0; display: grid; gap: .125rem; min-width: 11rem; padding: .375rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.theme-options[hidden] { display: none; }
.theme-options button { display: flex; align-items: center; gap: .625rem; width: 100%; padding: .5rem .75rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; text-align: left; cursor: pointer; }
.theme-options button:hover { background: var(--surface-2); }
.theme-options button[aria-pressed="true"] { color: var(--strong); }
.theme-check { margin-left: auto; color: var(--action); visibility: hidden; }
.theme-options button[aria-pressed="true"] .theme-check { visibility: visible; }

/* Buttons */
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.375rem; border-radius: var(--radius-sm); background: var(--action); color: var(--on-action); font-size: .9688rem; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgb(28 34 24 / 12%); }
.button:hover { background: var(--action-hover); color: var(--on-action); text-decoration: none; }
.button-quiet { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.button-quiet:hover { background: var(--surface-hover); color: var(--strong); }
.button .icon { font-size: 1.125rem; }

/* Hero: words on the left, the sign-in scene on the right in a rounded sheet */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero-description > h1 + p, .hero-description > p:first-child { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.hero-description > p + p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.project-status { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem !important; padding: .25rem .75rem; border-radius: var(--radius-pill); background: var(--shell-chip); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.scene { position: relative; overflow: hidden; aspect-ratio: 11 / 10; border-radius: var(--radius-xl); background: light-dark(#e3ebe2, #0a1611); box-shadow: var(--shadow); }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* App window: screenshots shown inside the app's own shell, a sage bar with the mark */
.shot { margin: 0; }
/* App frame: the screenshot (which already shows the app's shell) sits in a sage bezel, rounded like
   the app's own sheet, so it reads as the product rather than a flat picture. */
.window { padding: .5rem; border-radius: var(--radius-lg); background: var(--shell); box-shadow: var(--shadow); }
.window img.screen { display: block; width: 100%; border-radius: 13px; background: var(--paper); }
.shot figcaption { margin-top: .875rem; padding-inline: .25rem; color: var(--muted); font-size: .8125rem; }
.hero-shot { margin-top: clamp(2.5rem, 5vw, 4rem); }
.shot-paper { justify-self: center; max-width: 440px; }
.shot-paper .paper { display: block; border-radius: 6px; background: #fff; box-shadow: var(--shadow); }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem 4rem; margin-bottom: 2.75rem; }
.section-intro > p { color: var(--muted); font-size: 1.0625rem; }
.eyebrow { margin-bottom: .75rem; color: var(--action); font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.band { background: var(--surface-2); }
.band-shell { background: var(--shell); }

/* Workflow as the app's line diagram: four stations on one line */
.workflow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow::before { content: ""; position: absolute; top: .75rem; left: .75rem; right: calc(25% - 1.5rem); height: var(--line-width); border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--line-intake) 0 25%, var(--line-bench) 25% 50%, var(--line-release) 50% 75%, var(--line-lab) 75%); }
.workflow li { position: relative; counter-increment: workflow; padding-top: 2.75rem; }
.workflow li::before { content: ""; position: absolute; top: 0; left: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--station); box-shadow: inset 0 0 0 4px var(--station-colour, var(--line-intake)); }
.workflow li:nth-child(1) { --station-colour: var(--line-intake); }
.workflow li:nth-child(2) { --station-colour: var(--line-bench); }
.workflow li:nth-child(3) { --station-colour: var(--line-release); }
.workflow li:nth-child(4) { --station-colour: var(--line-lab); }
.workflow h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.workflow h3::before { content: counter(workflow, decimal-leading-zero); color: var(--muted); font-size: .8125rem; font-weight: 700; font-feature-settings: "tnum" 1; }
.workflow p { margin-top: .5rem; color: var(--muted); font-size: .9688rem; }

/* Principles: tonal tiles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.principles > div { padding: 1.5rem 1.625rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.principles dt { display: flex; align-items: center; gap: .625rem; color: var(--strong); font-size: 1.0625rem; font-weight: 800; }
.principles dt .icon { color: var(--action); font-size: 1.25rem; }
.principles dd { margin-top: .5rem; color: var(--muted); font-size: .9688rem; }

/* Features */
.feature { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.feature-text h3 + p { margin-top: 1rem; color: var(--muted); font-size: 1.0313rem; }

/* Records table: rows on tonal strips, no rules */
table { width: 100%; border-collapse: separate; border-spacing: 0 .375rem; text-align: left; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
th, td { padding: 1rem 1.25rem; vertical-align: top; }
thead th { padding-block: .5rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
tbody th, tbody td { background: var(--surface); }
tbody th { width: 28%; color: var(--strong); font-weight: 700; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
tbody td { color: var(--muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Try it: a forest sheet */
.start .wrap > .start-inner { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-xl); background: var(--forest); color: var(--on-forest); }
.start h2 { margin-bottom: 1.25rem; color: var(--on-forest); }
.start p { color: var(--on-forest-muted); }
.start a { color: var(--forest-link); }
.start a:hover { color: var(--on-forest); }
.start :focus-visible { outline-color: var(--forest-link); }
.next-steps { display: grid; gap: .25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.next-steps a { display: inline-flex; align-items: center; gap: .5rem; padding-block: .375rem; font-weight: 700; text-decoration: none; }
.next-steps a:hover { text-decoration: underline; }
.terminal { min-width: 0; }
.commands { padding: 1.25rem 1.5rem; overflow-x: auto; border-radius: var(--radius); background: var(--forest-2); }
.commands-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; color: var(--on-forest-muted); font-family: var(--font); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.commands pre { margin: 0; color: var(--on-forest); font-size: .875rem; line-height: 1.75; }
.terminal .comment { color: var(--on-forest-muted); }
.terminal p { margin-top: 1rem; font-size: .9375rem; }
.terminal p code { color: var(--on-forest); font-size: .875em; overflow-wrap: anywhere; }

/* Project */
.project { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.project h2 { margin-bottom: 1.5rem; }
.project > div > p { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem !important; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); font-weight: 700; text-decoration: none; }
.text-link:hover { background: var(--surface-hover); color: var(--strong); text-decoration: none; }
.support { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--shell); }
.support p { color: var(--ink); font-size: 1.0625rem; }
.support a { font-weight: 700; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--shell); color: var(--muted); font-size: .875rem; }
.site-footer > span:first-child { color: var(--ink); font-weight: 700; margin-right: auto; }

/* ---------------------------------------------------------------- Roadmap */
/* A status is always named in text; its icon and colour only repeat it. */
.status { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .875rem; padding: .25rem .75rem .25rem .5rem; border-radius: var(--radius-pill); background: var(--status-bg, var(--surface-2)); color: var(--status-ink, var(--ink)); font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.status .icon { color: var(--status-colour); font-size: 1rem; }
.status-built { --status-colour: var(--line-release); }
.status-next { --status-colour: var(--line-intake); }
.status-later { --status-colour: var(--line-bench); }
.status-exploring { --status-colour: var(--line-lab); }

/* Roadmap at a glance: the roots-to-sky tree. The SVG (aria-hidden) draws the tree; every area is a real
   link with a short label and its one-line description as a tooltip, placed at viewBox coordinates
   (--x, --y): roots (Built), trunk (Next), branches (Later) and buds in the sky (Exploring). Below 1100px it becomes a simple vertical line. */
.route { position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.route-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.route ul { margin: 0; padding: 0; list-style: none; }
.route-art .canopy { opacity: .1; }
.route-art .canopy circle { fill: var(--line-release); }
.route-art .soil { fill: var(--soil); }
.route-art .roots path { fill: none; stroke: var(--line-release); stroke-linecap: round; }
.route-art .branches path { fill: none; stroke: var(--bark); stroke-width: 6; stroke-linecap: round; }
.route-art .trunk { fill: var(--bark); }
.route-art .twigs path { fill: none; stroke: var(--line-intake); stroke-width: 4; stroke-linecap: round; }
.route-art .tendrils path { fill: none; stroke: var(--line-lab); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .5 9; }

.route .node, .route .zone { position: absolute; z-index: 1; left: calc(var(--x) / var(--vw) * 100%); top: calc(var(--y) / var(--vh) * 100%); }
.route .zone { margin: 0; transform: translate(var(--align, 0%), -50%); }
.node { display: flex; flex-direction: column; align-items: center; gap: .375rem; width: 8.75rem; transform: translate(-50%, -1.375rem); color: var(--ink); font-size: .875rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; }
.node:hover { color: var(--strong); }
.node-icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--station); box-shadow: inset 0 0 0 3px var(--status-colour); color: var(--status-colour); font-size: 1.125rem; }
.node-label { padding: 0 .3125rem; border-radius: 6px; background: var(--surface); }
.group-next .node-icon { box-shadow: inset 0 0 0 4px var(--status-colour), 0 0 0 4px var(--station); color: var(--strong); }
/* Built: solid, done. Roots sit on the soil, so their labels take the soil's tone. */
.group-built .node-icon { background: var(--status-colour); color: var(--on-action); box-shadow: 0 0 0 4px var(--soil); }
.group-built .node-label { background: var(--soil); }
.group-built .node:hover .node-icon, .group-built .node:focus-visible .node-icon { background: var(--action-hover); color: var(--on-action); }
.group-exploring .node-icon { background: transparent; box-shadow: none; border: 2px dashed var(--status-colour); opacity: .85; }
.group-exploring .node-label { color: var(--muted); }
.node:hover .node-icon, .node:focus-visible .node-icon { background: var(--status-colour); color: var(--station); opacity: 1; }
.node:focus-visible { outline: none; }
.node:focus-visible .node-icon { outline: 2px solid var(--action); outline-offset: 3px; }
@media (min-width: 1101px) {
  .route #n-stable-release, .route #n-instrument-data, .route #n-client-delivery { flex-direction: row-reverse; width: auto; transform: translate(calc(-100% + 1.375rem), -50%); text-align: right; }
  .route #n-invoicing, .route #n-deliverables, .route #n-microbiology { flex-direction: row; width: auto; transform: translate(-1.375rem, -50%); text-align: left; }
}
.route .node-label { white-space: nowrap; }


.tip { position: absolute; z-index: 5; bottom: calc(100% + .5rem); left: 50%; width: max-content; max-width: 17rem; padding: .5rem .75rem; border-radius: 10px; background: var(--strong); color: var(--paper); font-size: .8125rem; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; transform: translateX(-50%); visibility: hidden; opacity: 0; pointer-events: none; }
/* Buds sit at the top edge, so their tooltips open downward. */
.group-exploring .tip { top: calc(100% + .5rem); bottom: auto; }
.node:hover .tip, .node:focus-visible .tip { visibility: visible; opacity: 1; }
.node:hover, .node:focus-visible { z-index: 4; }
/* With site.js, one tooltip layer above the whole graphic replaces the inline tips (which stay as
   each link's description for assistive technology). It points at the node and never covers it. */
.has-tip-layer .tip { display: none; }
.route-tip { position: absolute; z-index: 30; top: 0; left: 0; width: max-content; max-width: 17rem; padding: .5rem .75rem; border-radius: 10px; background: var(--strong); color: var(--paper); font-size: .8125rem; font-weight: 500; line-height: 1.4; box-shadow: var(--shadow); }
.route-tip[hidden] { display: none; }
.route-tip-arrow { position: absolute; width: .75rem; height: .75rem; margin-left: -.375rem; background: inherit; transform: rotate(45deg); }
.route-tip[data-side="top"] .route-tip-arrow { bottom: -.3125rem; }
.route-tip[data-side="bottom"] .route-tip-arrow { top: -.3125rem; }

.route { aspect-ratio: 1200 / 790; --vw: 1200; --vh: 790; }
.route #n-built-custody { --x: 170.0; --y: 590; }
.route #n-built-methods { --x: 277.5; --y: 684; }
.route #n-built-bench { --x: 385.0; --y: 590; }
.route #n-built-qc { --x: 492.5; --y: 684; }
.route #n-built-reports { --x: 600.0; --y: 590; }
.route #n-built-portal { --x: 707.5; --y: 684; }
.route #n-built-sales { --x: 815.0; --y: 590; }
.route #n-built-records { --x: 922.5; --y: 684; }
.route #n-built-platform { --x: 1030.0; --y: 590; }
.route #z-built { --x: 40; --y: 520; }
.route #n-stable-release { --x: 470; --y: 440; }
.route #n-instrument-data { --x: 470; --y: 370; }
.route #n-invoicing { --x: 730; --y: 370; }
.route #n-client-delivery { --x: 470; --y: 300; }
.route #n-deliverables { --x: 730; --y: 300; }
.route #z-next { --x: 40; --y: 370; }
.route #n-quality-system { --x: 170; --y: 240; }
.route #n-management-view { --x: 305; --y: 185; }
.route #n-drinking-water { --x: 445; --y: 150; }
.route #n-microbiology { --x: 600; --y: 128; }
.route #n-sampling { --x: 755; --y: 150; }
.route #n-organics { --x: 895; --y: 185; }
.route #n-platform { --x: 1030; --y: 240; }
.route #z-later { --x: 40; --y: 168; }
.route #n-explore-formats { --x: 330; --y: 50; }
.route #n-explore-assisted { --x: 465; --y: 50; }
.route #n-explore-mcp { --x: 600; --y: 50; }
.route #n-explore-multi-site { --x: 735; --y: 50; }
.route #n-explore-disciplines { --x: 870; --y: 50; }
.route #z-exploring { --x: 40; --y: 50; }

/* Arriving from the graphic: the card the node points to is marked in its stage colour while it is
   the page's target, with a short pulse on arrival, and offers a way back to the same node. */
#built { --target: var(--line-release); }
#next { --target: var(--line-intake); }
#later { --target: var(--line-bench); }
#exploring { --target: var(--line-lab); }
.buckets > li, #built tbody tr, #exploring .principles > div { scroll-margin-top: 2.5rem; }
.route .node { scroll-margin-top: 40vh; }
.buckets > li:target, #exploring .principles > div:target { background: color-mix(in srgb, var(--target) 7%, var(--surface)); box-shadow: 0 0 0 3px var(--target), var(--shadow-soft); }
/* A table row has no box of its own: each cell draws its part of the ring, one shadow per edge. */
#built tbody tr:target > * { background: color-mix(in srgb, var(--target) 9%, var(--surface)); box-shadow: inset 0 3px 0 var(--target), inset 0 -3px 0 var(--target); }
#built tbody tr:target > th { box-shadow: inset 3px 0 0 var(--target), inset 0 3px 0 var(--target), inset 0 -3px 0 var(--target); }
#built tbody tr:target > td { box-shadow: inset -3px 0 0 var(--target), inset 0 3px 0 var(--target), inset 0 -3px 0 var(--target); }
.back-to-map { display: none; }
:target .back-to-map { display: flex; align-items: center; gap: .375rem; width: fit-content; margin-top: .875rem; font-size: .875rem; font-weight: 650; }
[tabindex="-1"]:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .buckets > li:target, #exploring .principles > div:target { animation: target-glow 1.5s ease-out, target-tint 1.5s ease-out; }
  #built tbody tr:target > * { animation: target-tint 1.5s ease-out; }
  @keyframes target-glow { from { box-shadow: 0 0 0 10px color-mix(in srgb, var(--target) 30%, transparent), var(--shadow-soft); } }
  @keyframes target-tint { from { background-color: color-mix(in srgb, var(--target) 26%, var(--surface)); } }
  .node-icon { transition: background-color .16s ease-out, color .16s ease-out, transform .16s ease-out; }
  .node:hover .node-icon { transform: scale(1.06); }
  .tip { transition: opacity .12s ease-out .08s, visibility 0s linear .08s; }
  .group-exploring .node-icon { animation: route-bud 4s ease-in-out infinite alternate; }
  @keyframes route-bud { to { transform: translateY(-3px); } }
}

@media (max-width: 1100px) {
  .route { aspect-ratio: auto; display: grid; gap: 1.5rem; padding: 1.5rem 1.25rem 1.75rem; }
  .route-art { display: none; }
  .route .node, .route .zone { position: relative; left: auto; top: auto; transform: none; }
  .route-group { position: relative; }
  /* The line runs through the centres of the stations (2.25rem wide). */
  .route-group::before { content: ""; position: absolute; top: -1.5rem; bottom: 1.125rem; left: calc(1.125rem - var(--line-width) / 2); width: var(--line-width); background: var(--status-colour); }
  .group-exploring::before { width: 0; background: none; border-left: var(--line-width) dotted var(--status-colour); }
  .group-exploring .node-icon { background: var(--station); opacity: 1; }
  .group-built::before { top: 1rem; }
  .group-built .node-icon { box-shadow: 0 0 0 4px var(--surface); }
  .route .group-built .node-label { background: none; }
  .route .zone { position: relative; z-index: 1; }
  .route .zone { display: inline-flex; margin: 0 0 .75rem; }
  .route ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .625rem 1rem; }
  .route .node { flex-direction: row; width: auto; gap: .625rem; text-align: left; }
  .node-icon { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
  .node-label { padding: 0; background: none; white-space: normal !important; }
  .tip, .route-tip { display: none !important; }
}

.buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: bucket; }
.buckets > li { padding: 1.5rem 1.625rem 1.625rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
ol.buckets > li { counter-increment: bucket; }
ol.buckets > li h3::before { content: counter(bucket); display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: .625rem; border-radius: 50%; background: var(--line-intake); color: var(--station); font-size: .875rem; font-weight: 800; vertical-align: .1em; }
.buckets h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.buckets h3 + p { margin-top: .625rem; color: var(--ink); font-size: .9688rem; }
.buckets ul { margin: .875rem 0 0; padding-left: 1.125rem; color: var(--muted); font-size: .9375rem; }
.buckets ul li + li { margin-top: .375rem; }
.buckets ul li::marker { color: var(--status-colour, var(--action)); }
#next .buckets { --status-colour: var(--line-intake); }
#later .buckets { --status-colour: var(--line-bench); }
.closing { margin-bottom: 0; align-items: start; }
.hero-roadmap .hero-inner { align-items: end; }
.hero-roadmap .hero-description > p:first-child { margin-top: 0; }
.closing p { color: var(--muted); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .scene { aspect-ratio: 4 / 3; }
  .workflow { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .workflow::before { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 1rem; }
  .principles { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even), .start .wrap > .start-inner { grid-template-columns: 1fr; gap: 2rem; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .project { grid-template-columns: 1fr; gap: 2rem; }
  .buckets { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap, .site-header-inner, .site-footer { width: calc(100% - 2rem); }
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .site-header-inner { position: relative; }
  nav.site-nav { margin-left: 0; }
  .theme-menu { position: absolute; top: .625rem; right: .75rem; }
  .theme-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .theme-button { padding: .5rem .75rem; }
  nav.site-nav a { padding: .375rem .625rem; font-size: .875rem; }
  .workflow { grid-template-columns: 1fr; }
  th, td { padding: .875rem .75rem; font-size: .9063rem; }
  tbody th { width: 36%; }
  .commands { padding: 1rem; }
  .commands pre { font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } a, .button, .text-link, nav.site-nav a, .theme-button, .theme-options button { transition: background-color .14s ease-out, color .14s ease-out; } }

@media print {
  :root, :root[data-theme] { color-scheme: light; }
  .skip-link, nav.site-nav, .theme-menu, .actions { display: none; }
  .band, .band-shell, .start .wrap > .start-inner, .site-header-inner, .site-footer, .support { background: none; color: #000; }
  .start p, .start a, .start h2, .commands pre, .terminal .comment, .terminal p code { color: #000; }
  .commands { background: none; }
  .commands pre { white-space: pre-wrap; }
  .window, .scene, .route, .principles > div, .buckets > li, .shot-paper .paper { box-shadow: none; }
  .feature, .principles > div, .workflow li, .buckets > li, tr, .route-group { break-inside: avoid; }
}
