/* CenterOS — shares the Robotics Center instrument-lab design system (copied from dexterity-site;
   keep tokens in sync by hand). CenterOS-specific components are at the end. */

:root {
  --bg: #f4f3ef;
  --surface: #faf9f6;
  --surface-2: #ecebe5;
  --text: #111214;
  --muted: #5f6166;
  --faint: #8a8c90;
  --border: #dcd9d1;
  --border-strong: #bdbab1;
  --accent: #9c3d22;
  --accent-contrast: #ffffff;
  --accent-soft: #efe3dc;
  --warn-soft: #efe3dc;
  --warn-border: #c9a595;
  --grid-line: rgba(17, 18, 20, 0.045);
  --tile: #ebe9e3;
  --tile-edge: #dedbd3;
  --radius: 2px;
  --maxw: 1200px;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Theme: light by default; dark follows the OS unless the toggle pins a theme
   (html[data-theme="light"|"dark"]; no attribute = auto). Keep both dark blocks identical. */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090b;
    --surface: #0f1012;
    --surface-2: #16181b;
    --text: #ecebe6;
    --muted: #a2a39f;
    --faint: #74767a;
    --border: #24262a;
    --border-strong: #3a3d42;
    --accent: #d27a55;
    --accent-contrast: #140b07;
    --accent-soft: #2a1912;
    --warn-soft: #1d1611;
    --warn-border: #5c3f31;
    --grid-line: rgba(236, 235, 230, 0.035);
    --tile: #e6e4de;
    --tile-edge: #cfccc4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090b;
  --surface: #0f1012;
  --surface-2: #16181b;
  --text: #ecebe6;
  --muted: #a2a39f;
  --faint: #74767a;
  --border: #24262a;
  --border-strong: #3a3d42;
  --accent: #d27a55;
  --accent-contrast: #140b07;
  --accent-soft: #2a1912;
  --warn-soft: #1d1611;
  --warn-border: #5c3f31;
  --grid-line: rgba(236, 235, 230, 0.035);
  --tile: #e6e4de;
  --tile-edge: #cfccc4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 6px 10px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Small tracked uppercase label: the lab voice */
.eyebrow, .label, .tag {
  display: block; font-family: var(--mono); font-size: .7rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px;
}
.tag { color: var(--accent); align-self: flex-start; }

/* Header: transparent until scrolled */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled, .site-header:has(.site-nav.open) {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; padding: 10px 0; order: 0; }
.brand picture { display: block; line-height: 0; }
.brand-logo { display: block; width: 150px; height: auto; }
.brand-name { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .3em; color: var(--muted); line-height: 1; }
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand-logo { width: 118px; }
}
.site-nav { order: 1; margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.site-nav a {
  display: block; padding: 6px 8px; position: relative;
  color: var(--muted); text-decoration: none; font-size: .86rem; letter-spacing: .01em;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 1px; background: var(--accent); }
.header-contact {
  order: 2; font-size: .84rem; color: var(--text); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 14px;
  transition: background .2s, color .2s, border-color .2s;
}
.header-contact:hover, .header-contact[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav-toggle {
  order: 3; display: none; font: inherit; font-size: .84rem; color: var(--text);
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 6px 14px; cursor: pointer;
}
@media (max-width: 919px) {
  .js .nav-toggle { display: inline-block; }
  .header-contact { margin-left: auto; }
  .site-nav { order: 4; width: 100%; }
  .js .site-nav { display: none; padding-bottom: 14px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .site-nav a.active::after { display: none; }
}

main { padding-bottom: 96px; counter-reset: sec fig; }

/* Page hero: calm, big type, a ruler along the bottom edge */
.page-hero {
  position: relative; padding: 72px 0 56px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 12px);
  opacity: .8;
  -webkit-mask: linear-gradient(90deg, #000 0 30%, transparent 70%); mask: linear-gradient(90deg, #000 0 30%, transparent 70%);
}
@media (min-width: 720px) { .page-hero { padding: 120px 0 72px; } }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede, .lede { font-size: clamp(1.06rem, 1.7vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.page-hero .status { margin-top: 10px; }

/* Sections: auto-numbered, hairline above the heading */
.section { padding: 88px 0 8px; }
.section + .section { padding-top: 72px; }
.section > h2 { max-width: none; text-wrap: balance; padding-top: 18px; border-top: 1px solid var(--border); margin-bottom: .7em; }
.section > h2::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--accent);
  margin-bottom: 18px;
}
.section > p { max-width: 64ch; color: var(--muted); }

/* Figures */
.figcap, figcaption.figcap {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--muted); line-height: 1.5;
}
.figcap::before { counter-increment: fig; content: "Fig. " counter(fig) " — "; color: var(--text); }

/* Grids */
.grid-2, .grid-3 { display: grid; gap: 0; grid-template-columns: 1fr; margin: 28px 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Cards: cells in a hairline grid */
.card {
  background: transparent; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 26px 30px; display: flex; flex-direction: column; min-width: 0;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--surface); }
:not(.grid-2):not(.grid-3) > .card { border: 1px solid var(--border); }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45em; }
.card p, .card li { color: var(--muted); font-size: .95rem; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card .cta-row { margin-top: auto; padding-top: 10px; margin-bottom: 0; }
.card > .pill { align-self: flex-start; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
  text-decoration: none; font-weight: 500; font-size: .9rem; line-height: 1.25; letter-spacing: .005em;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn::after { content: "→"; font-family: var(--mono); transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn:hover::after { transform: translateX(3px); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { border-color: var(--text); background: transparent; color: var(--text); }

/* Tables: spec sheet */
.table-wrap { overflow-x: auto; margin: 28px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 400; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Methodology note */
.note {
  border-left: 1px solid var(--accent); padding: 4px 0 4px 18px;
  color: var(--muted); font-size: .9rem; margin: 28px 0; max-width: 72ch;
}
.note::before { content: "Note — "; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.note > :last-child { margin-bottom: 0; }

/* Pills and status */
.pill {
  display: inline-block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 9px; margin: 0 4px 10px 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--muted); background: transparent;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 0; background: none; border: 0; color: var(--muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Metric list: label / value rows */
.metric-list { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--border); }
.metric-list li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .94rem; color: var(--muted); }
.metric-list li > strong:first-child { color: var(--text); font-weight: 500; margin-right: 4px; }
.metric-list li:has(> span + span) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.metric-list li:has(> span + span) > :first-child { color: var(--text); }
.metric-list li:has(> span + span) > :last-child { font-family: var(--mono); font-size: .86rem; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; border-top: 1px solid var(--border); }
.steps > li { counter-increment: step; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--border); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--mono); font-size: .76rem; color: var(--accent); }
.steps > li > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin: 24px 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { color: var(--muted); max-width: 68ch; }

/* Icons (concepts, not logos) */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.ico-badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text); margin-bottom: 22px;
  transition: border-color .25s, color .25s;
}
.ico-badge .ico { width: 20px; height: 20px; }
.card:hover .ico-badge { border-color: var(--accent); color: var(--accent); }
.card .ico-badge { align-self: flex-start; }

/* Product cutout plate: white-background photos multiply onto a light plate in both themes */
.ptile {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--tile); aspect-ratio: 1 / 1; padding: 12% 12% 18%; margin: 0; min-width: 0;
}
.ptile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.ptile:hover img { transform: scale(1.035); }
.ptile figcaption, .ptile .cap {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #55585d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 560px) { .ptile figcaption, .ptile .cap { display: none; } }

.intro { padding: 112px 0 40px; display: grid; gap: 28px 64px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.intro h1 { max-width: 13ch; margin: 0; }
.intro .lede { margin-bottom: 0; }
.intro .cta-row { margin: 22px 0 0; }

/* Three-column principle rows */
.principles { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles li { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
@media (min-width: 760px) { .principles li { border-bottom: 0; border-right: 1px solid var(--border); padding-left: 24px; } .principles li:first-child { padding-left: 0; } .principles li:last-child { border-right: 0; } }
.principles .ico { color: var(--accent); margin-bottom: 18px; display: block; }
.principles strong { display: block; color: var(--text); font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }

.sub-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; margin: 64px 0 0; font-size: .92rem; }
.sub-links .label { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 44px; }
.footer-inner strong { color: var(--text); font-weight: 500; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }


/* Header wordmark: swap by resolved theme */
.brand-logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.on-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.on-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo.on-light { display: none; }
:root[data-theme="dark"] .brand-logo.on-dark { display: block; }

/* Theme toggle: Auto -> Light -> Dark */
.theme-toggle {
  order: 2; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; flex: none;
  background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 50%; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .ico { width: 18px; height: 18px; display: none; }
.theme-toggle[data-mode="auto"] .t-auto, .theme-toggle[data-mode="light"] .t-light, .theme-toggle[data-mode="dark"] .t-dark { display: block; }
.header-contact { order: 3; }
.nav-toggle { order: 4; }
@media (max-width: 919px) { .site-nav { order: 5; } .theme-toggle { margin-left: auto; } .header-contact { margin-left: 0; } }

/* Segmented switch (Hands | Gloves) */
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; gap: 2px; margin: 0 0 22px; }
.segmented a { padding: 6px 16px; border-radius: 999px; font-size: .84rem; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current] { background: var(--text); color: var(--bg); }

/* Progressive disclosure: hairline rows with a +/- mark */
.disclose { margin: 48px 0 0; border-top: 1px solid var(--border); }
.disclose details { border-bottom: 1px solid var(--border); }
.disclose summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.005em;
}
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary .meta { margin-left: auto; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.disclose summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-left: auto; color: var(--muted);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.25px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.25px 14px no-repeat;
  transition: transform .3s var(--ease), color .2s;
}
.disclose summary:has(.meta)::after { margin-left: 0; }
.disclose details[open] summary::after { transform: rotate(45deg); color: var(--text); }
.disclose summary:hover::after { color: var(--text); }
.disclose .body { padding: 0 0 36px; color: var(--muted); }
.disclose .body > :first-child { margin-top: 0; }
.disclose .body > :last-child { margin-bottom: 0; }
.disclose .body p { max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) {
  .disclose details[open] .body { animation: disclose-in .45s var(--ease); }
}
@keyframes disclose-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.rows { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--border); }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.rows li strong { font-weight: 500; font-size: 1.08rem; min-width: 12ch; }
.rows li span { color: var(--muted); }
.rows li > a { margin-left: auto; font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.rows li > a::after { content: " →"; font-family: var(--mono); }
.rows li span { flex: 1 1 26ch; min-width: 0; }
.footer-links { max-width: 760px; }

main [id] { scroll-margin-top: 96px; }

.one-line .lede { margin: 22px 0 0; }

.fine { font-size: .82rem; color: var(--faint); margin-top: 18px; }

/* Suite row: links across Robotics Center sites */
.suite-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-top: 14px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: .85rem; }
.suite-row .suite-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.suite-row a { color: var(--muted); text-decoration: none; }
.suite-row a:hover, .suite-row a[aria-current] { color: var(--text); }

/* ---------- CenterOS ---------- */
.intro .text-link { font-size: .9rem; font-weight: 500; align-self: center; text-decoration: none; }
.intro .text-link::after { content: " →"; font-family: var(--mono); }
.intro .text-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.intro-aside { display: grid; gap: 0; }

/* Hardware photo row: vendor photography on a quiet plate, cropped to one frame size */
.hw-row { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0 0; }
@media (min-width: 720px) { .hw-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hw { margin: 0; background: var(--bg); min-width: 0; display: flex; flex-direction: column; }
.hw .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.hw img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.hw:hover img { transform: scale(1.035); }
.hw figcaption { padding: 10px 12px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: .86rem; }
.hw figcaption b { font-weight: 500; }
.hw figcaption span { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); align-self: center; }
.hw-row + .figcap { display: block; margin-top: 12px; }

/* Status chips in the support matrix */
.st { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; border: 1px solid var(--border-strong); }
.st.ctl::before { background: var(--accent); border-color: var(--accent); }
.st.reg::before { background: var(--border-strong); }
.table-wrap td:first-child { color: var(--text); font-weight: 500; }
.table-wrap td { color: var(--muted); }

/* Code: tabs + mono panel */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; border-bottom: 1px solid var(--border); }
.tab {
  font: inherit; font-size: .86rem; color: var(--muted); background: transparent; border: 0;
  padding: 10px 14px; cursor: pointer; position: relative;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px; background: var(--accent); }
.code {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border); border-top: 0;
  padding: 18px 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: var(--text);
}
.code code { font-size: inherit; white-space: pre; }
.code .c { color: var(--faint); }
.code .k { color: var(--accent); }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 18px; background: var(--surface-2); border: 1px solid var(--border); border-top: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.copy { font: inherit; background: transparent; border: 1px solid var(--border-strong); color: var(--text); padding: 3px 10px; border-radius: var(--radius); cursor: pointer; letter-spacing: .1em; }
.copy:hover { border-color: var(--text); }
.code-block { margin: 20px 0 0; }
.code-block .code { border-top: 1px solid var(--border); }
.code-block .code-head + .code { border-top: 0; }
.code-block .code-head { border-top: 1px solid var(--border); }
.tool-list { columns: 1; column-gap: 32px; list-style: none; padding: 0; margin: 12px 0 0; font-family: var(--mono); font-size: .78rem; }
@media (min-width: 720px) { .tool-list { columns: 3; } }
.tool-list li { padding: 3px 0; color: var(--text); break-inside: avoid; }

/* Evidence sample (illustrative) */
.sheet { border: 1px solid var(--border-strong); background: var(--surface); max-width: 880px; margin: 8px 0 0; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.sheet-head strong { font-weight: 500; }
.sheet-head .st { align-self: center; }
.sheet dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 4px 20px 14px; gap: 0 24px; }
@media (min-width: 640px) { .sheet dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sheet dl div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sheet dt { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sheet dd { margin: 3px 0 0; font-family: var(--mono); color: var(--text); }
.sheet ol { margin: 0; padding: 12px 20px 16px 40px; color: var(--muted); font-size: .92rem; }
.sheet-foot { padding: 10px 20px; background: var(--surface-2); border-top: 1px solid var(--border); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Architecture stack */
.stack { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--text); }
.stack li { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .stack li { grid-template-columns: 120px 220px 1fr; align-items: baseline; } }
.stack .lvl { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.stack strong { color: var(--text); font-weight: 500; }

/* Request form */
.form { display: grid; gap: 14px 20px; grid-template-columns: 1fr; max-width: 820px; margin: 4px 0 0; }
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; } }
.form label, .form fieldset { display: grid; gap: 6px; font-size: .84rem; color: var(--text); min-width: 0; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 10px 12px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 1.5px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; margin-bottom: 6px; }
.form .opts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.form .opts label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.form .opts input { width: auto; }
.form button.btn { cursor: pointer; font-family: inherit; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); margin: 0; }

/* Secondary pages (docs / cli / mcp / integrations) */
.doc-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 8px; font-size: .88rem; }
.doc-nav a { color: var(--muted); text-decoration: none; }
.doc-nav a:hover { color: var(--text); }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose h3 { margin-top: 1.6em; }
.table-wrap code { color: var(--text); }
.hw .img.more { display: grid; place-items: center; text-decoration: none; }
.hw .img.more .st { white-space: normal; text-align: center; padding: 0 12px; line-height: 1.6; }
/* "Request access" is wider than Dexterity's "Contact": drop it on phones so the header stays one row */
@media (max-width: 480px) { .header-contact { display: none; } }
