/* Trinetra public site · website components (design system 2.0)
 *
 * Loaded after /assets/site.css on /products/, /company/, /research/, /safety/ and /docs.html.
 * Reads tokens only (/assets/ds/tokens.css), so every page follows the default black
 * appearance and the optional day appearance alike. Sentence case, Anek only, no tracked
 * capitals, hairlines and space instead of boxes. Section rhythm and headline scale follow
 * the landing: one idea per screen.
 */

:root {
  --gap-section: clamp(96px, 14vw, 200px);
  --gap-head: clamp(36px, 5vw, 64px);
  --t-h1: clamp(2.75rem, 1.3rem + 5vw, 5.75rem);
  --t-h2: clamp(2rem, 1.1rem + 3vw, 3.75rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --t-body: 1.0625rem;
}

/* ── base ────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: var(--z-toast);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 16px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }

/* ── type helpers ────────────────────────────────────────────── */

.dim { color: var(--ink-2); }
.mini { font-size: var(--t-14); font-weight: 550; color: var(--ink-3); line-height: 1.4; }
.src { font-size: var(--t-14); color: var(--ink-3); line-height: 1.55; }
.src a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.src a:hover { color: var(--ink); text-decoration-color: currentColor; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* A "read more" link: accent text and a drawn chevron. Inside a whole-row link (a.adv) the
   label is a span, styled the same so it still reads as the link it is. */
a.more, .adv .more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 550;
  color: var(--accent-ink);
  text-decoration: none;
  white-space: nowrap;
}
a.more::after, .adv .more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--d-1) var(--ease);
}
a.more:hover, a.adv:hover .more { color: var(--ink); text-decoration: none; }
a.more:hover::after, a.adv:hover .more::after { transform: translateX(2px) rotate(45deg); }

/* External links carry the glyph set's arrow-out mark, drawn as a mask in the link colour. */
a.ext::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.24em;
  vertical-align: -0.02em;
  background: currentColor;
  opacity: 0.65;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-8.5 8.5'/%3E%3Cpath d='M18 14v5.5H4.5V6H10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-8.5 8.5'/%3E%3Cpath d='M18 14v5.5H4.5V6H10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Links inside running text stay underlined so they read as links. */
.prose a, .lead a, .body a, .rows p a, .cols p a, .fig .d a, .verbatim a, .practice a, dl.kv dd a, .sources a, .notice a, .callout a {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
.prose a:hover, .lead a:hover, .body a:hover, .rows p a:hover, .cols p a:hover, .fig .d a:hover, .verbatim a:hover, .practice a:hover, dl.kv dd a:hover, .sources a:hover, .notice a:hover, .callout a:hover {
  text-decoration-color: currentColor;
}
/* Buttons and "read more" links are not running text, wherever they sit. */
.prose a.btn, .lead a.btn, .body a.btn, .body a.more, dl.kv dd a.more, .prose a.more { text-decoration: none; }

/* glyph slots, filled from TG by site-ext.js; data-size sets the drawn size */
.gl { display: inline-flex; flex: none; color: var(--accent); min-width: 18px; min-height: 18px; }
.gl svg { display: block; }

/* status chips: live and pilot come from site.css; work in build is a small dashed chip */
.chip.build, .chip.building, .chip.plan, .chip.soon { --chip: var(--ink-2); background: transparent; border: 1px dashed var(--line-strong); height: 22px; }
.chip.data { --chip: var(--ink-2); background: transparent; border: 1px solid var(--line); height: 22px; }
.chip + .chip { margin-left: 0; }
.js-chip { display: inline-flex; align-items: center; }
.js-chip .chip { margin-right: 0; }

.callout p + p { margin-top: 8px; }
.callout.info { background: var(--accent-wash); border-color: color-mix(in oklch, var(--accent) 30%, transparent); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 8px 0 44px; }

/* ── page heads ──────────────────────────────────────────────── */

.page-head { margin-bottom: 0; }
.page-head h1, .article-head h1, .viewer .vhead h1 { color: var(--ink); text-wrap: balance; }
.page-head h1 {
  font-size: var(--t-h1);
  line-height: 0.98;
  letter-spacing: -0.042em;
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  max-width: 13ch;
}
.page-head .lead { margin-top: 28px; max-width: 50ch; }
.page-head .lead + .lead { margin-top: 14px; }
.page-head .actions { margin-top: 36px; }
.page-head .src { margin-top: 20px; max-width: 70ch; }
.page-head.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); align-items: end; }
.page-head.split h1 { max-width: 12ch; }
@media (max-width: 980px) { .page-head.split { grid-template-columns: 1fr; } }

/* fact list beside a page head: hairlines, no box */
.factcard { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.factcard .mini { margin-bottom: 6px; }
.factcard dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.factcard dt, .factcard dd { padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.factcard dt { font-size: var(--t-14); font-weight: 550; color: var(--ink-3); padding-top: 13px; }
.factcard dd { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .factcard { max-width: 520px; } }

/* company and section sub-navigation: a quiet row of pills, scrolling sideways on phones */
nav.secnav {
  display: flex;
  gap: 2px;
  margin: 0 0 clamp(48px, 7vw, 96px);
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
nav.secnav::-webkit-scrollbar { display: none; }
nav.secnav a {
  flex: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
nav.secnav a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
nav.secnav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { nav.secnav { width: auto; } }

/* ── sections ────────────────────────────────────────────────── */

.block { margin-top: var(--gap-section); }
.block.tight { margin-top: clamp(64px, 9vw, 120px); }
.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 48px;
  margin-bottom: var(--gap-head);
}
.block-head .num { display: none; }
.block-head h2 {
  flex: 1 1 560px;
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  max-width: 18ch;
  color: var(--ink);
}
.block-head h2 .dim {
  display: block;
  margin-top: 22px;
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  font-variation-settings: normal;
  color: var(--ink-2);
  max-width: 52ch;
}
.block-head .more { flex: none; margin-bottom: 8px; }
.block-body { max-width: none; }
.block-body.narrow { max-width: var(--measure); }
.block-body > p, .block-body .narrow > p { font-size: var(--t-body); line-height: 1.65; color: var(--ink-2); max-width: var(--measure); }
.block-body > p + p { margin-top: 1em; }
.block > .callout:last-child { margin-bottom: 0; }

/* label and body rows (site.css section.row), given the same calm scale */
section.row { grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 16px 48px; padding: clamp(40px, 5.5vw, 72px) 0; border-top: 1px solid var(--line); }
section.row > .label { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; text-transform: none; color: var(--ink); }
section.row > .label::first-letter { text-transform: none; }
section.row .body { color: var(--ink-2); font-size: var(--t-body); line-height: 1.65; }
section.row .body > p.big, section.row .body > .lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
section.row .body strong { color: var(--ink); }
@media (max-width: 760px) { section.row { grid-template-columns: minmax(0, 1fr); } }

/* hairline rows: a title and its text, side by side on wide screens */
.rows { border-top: 1px solid var(--line); }
.rows > .r { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 48px; padding: clamp(26px, 3.2vw, 40px) 0; border-bottom: 1px solid var(--line); }
.rows > .r > h3, .rows > .r > .h { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
.rows > .r > h3 .gl, .rows > .r > .h .gl { vertical-align: -4px; margin-right: 10px; }
.rows > .r p { font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.rows > .r p + p { margin-top: 10px; }
.rows > .r .src { margin-top: 10px; }
.rows > .r .more { margin-top: 14px; }
@media (max-width: 760px) { .rows > .r { grid-template-columns: 1fr; } }

/* prose in columns */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 12px; color: var(--ink); }
.cols p { font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.cols p + p { margin-top: 10px; }
.cols p.src { font-size: var(--t-14); }
@media (max-width: 860px) { .cols, .cols.two { grid-template-columns: 1fr; } }

/* figures with a source: big tabular numbers on hairlines */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); }
.fig { padding: 26px 0 34px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fig .tag { font-size: var(--t-14); font-weight: 550; color: var(--ink-3); }
.fig .v { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); margin: 4px 0 6px; }
.fig .v small { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.fig .d { font-size: 16px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.fig .src { margin-top: 6px; }
@media (max-width: 900px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .figs { grid-template-columns: 1fr; } }

/* numbered red lines (doctrine summary) */
ol.lines { list-style: none; counter-reset: line; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); margin: 0; padding: 0; }
ol.lines li { counter-increment: line; position: relative; padding: 22px 0 24px 48px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
ol.lines li::before { content: counter(line); position: absolute; left: 0; top: 19px; width: auto; height: auto; border-radius: 0; background: none; opacity: 1; font-size: 1.5rem; font-weight: 560; letter-spacing: -0.03em; line-height: 1.2; color: var(--accent); font-variant-numeric: tabular-nums; }
ol.lines li strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; margin-bottom: 4px; }
ol.lines li.tail { counter-increment: none; padding-left: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
ol.lines li.tail::before { content: none; }
ol.lines.plain { grid-template-columns: 1fr; }
@media (max-width: 760px) { ol.lines { grid-template-columns: 1fr; } }

/* "what we do not build" */
.never ul { list-style: none; margin: 0; padding: 0; }
.never li { position: relative; padding: 13px 0 13px 32px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.never li::before {
  content: ""; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 12px;
  background: var(--danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── products page ───────────────────────────────────────────── */

/* how it fits: four steps in a line */
.flow4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); counter-reset: step; }
.flow4 > div { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.flow4 > div::after {
  content: ""; position: absolute; top: -5px; right: calc(-1 * clamp(24px, 3vw, 48px) / 2 - 4px);
  width: 8px; height: 8px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg);
}
.flow4 > div:last-child::after { content: none; }
.flow4 h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 10px; }
.flow4 p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.flow4 p .gl { width: 18px; height: 18px; vertical-align: -3px; }
@media (max-width: 900px) {
  .flow4 { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .flow4 > div::after { content: none; }
}
@media (max-width: 520px) { .flow4 { grid-template-columns: 1fr; } }

.family { margin-top: clamp(80px, 11vw, 160px); scroll-margin-top: 84px; }
.family-head { margin-bottom: clamp(28px, 4vw, 48px); }
#suite > .family:first-child { margin-top: clamp(48px, 6vw, 80px); }
.block-head + nav.secnav.jump { margin-bottom: 0; }
.family-head h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.038em; font-weight: 560; font-variation-settings: "wdth" 104; color: var(--ink); max-width: 18ch; }
.family-head p { margin-top: 18px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.prods { border-top: 1px solid var(--line); }
/* One row per product. The name is a stretched link, so the whole row opens the product page,
   while the extra links in .also stay clickable above it. */
.prod {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(150px, 230px) minmax(0, 1fr) auto;
  gap: 6px 32px;
  align-items: baseline;
  padding: clamp(24px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background var(--d-2) var(--ease);
}
.prod .gl { align-self: start; margin-top: 2px; }
.prod a.nm { font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); text-decoration: none; }
.prod a.nm::after { content: ""; position: absolute; inset: 0; }
.prod a.nm:focus-visible { outline: none; }
.prod:has(a.nm:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.prod:hover a.nm { color: var(--accent-ink); }
.prod .dv { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.prod .dv [lang] { font-family: var(--font-script); font-size: 16px; }
.prod .pr { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.prod .st { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.prod .also { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 6px; }
.prod .also a { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .prod { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .prod .pr { grid-column: 2 / -1; margin-top: 4px; }
  .prod .st { grid-column: 3; grid-row: 1; align-self: start; }
  .prod .also { grid-column: 2 / -1; }
}
@media (max-width: 420px) {
  .prod .st { flex-direction: column; align-items: flex-end; }
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 15px; color: var(--ink-2); }
.legend .chip { margin-right: 8px; }

/* ── article lists (research index) ──────────────────────────── */

.notes { border-top: 1px solid var(--line); }
.note-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 150px; gap: 8px 40px; padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.note-row:hover { text-decoration: none; }
a.note-row:hover .t { color: var(--accent-ink); }
.note-row .when { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 5px; }
.note-row .t { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; }
.note-row .s { font-size: var(--t-body); color: var(--ink-2); line-height: 1.55; max-width: 64ch; }
.note-row .meta { font-size: 15px; color: var(--ink-3); text-align: right; padding-top: 5px; white-space: nowrap; }
@media (max-width: 860px) {
  .note-row { grid-template-columns: 1fr; gap: 4px; }
  .note-row .meta { text-align: left; }
}

a.feature { display: block; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line-strong); padding-top: 28px; max-width: 900px; }
a.feature:hover { text-decoration: none; }
a.feature:hover .ft { color: var(--accent-ink); }
a.feature .mini { color: var(--ink-3); font-size: 15px; }
a.feature .ft { font-size: var(--t-h2); font-weight: 560; letter-spacing: -0.038em; line-height: 1.02; margin: 14px 0 18px; max-width: 18ch; font-variation-settings: "wdth" 104; }
a.feature p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 54ch; margin-bottom: 22px; }

/* ── live rows ───────────────────────────────────────────────── */

.live-rows { border-top: 1px solid var(--line); }
.live-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 260px; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 16px; }
.live-row .m { font-weight: 600; }
.live-row .m a { color: var(--ink); text-decoration: none; }
.live-row .s { color: var(--ink-2); }
.live-row .t { color: var(--ink-3); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.live-row .dot { margin-right: 8px; vertical-align: 1px; }
.dot.old { background: var(--ink-3); }
@media (max-width: 760px) { .live-row { grid-template-columns: 1fr; gap: 2px; } .live-row .t { text-align: left; } }

/* ── status lines (safety, landing) ──────────────────────────── */

.status-line, .js-status.status {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
.js-status .when { display: block; margin-top: 4px; font-size: var(--t-14); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lvdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; background: var(--ink-3); }
.lvdot.normal { background: var(--ok); }
.lvdot.watch { background: var(--watch); }
.lvdot.warning { background: var(--warn); }
.lvdot.danger { background: var(--danger); }

/* the old landing's card grid, kept until the new landing replaces it */
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards.c4 { grid-template-columns: 1fr; } }
.live-cards .card .d { flex: 1; }
.live-cards .card .status { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.live-cards .card .status .when { display: block; margin-top: 4px; font-size: var(--t-13); color: var(--ink-3); }
.home-hero { padding-bottom: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: end; }
.home-hero h1 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.042em; font-weight: 560; max-width: 13ch; margin-bottom: 24px; }
.home-hero .cursor { display: none; }
.frontiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: var(--gap-head); }
.frontier { padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.frontier svg { width: 100%; height: 34px; overflow: visible; }
.frontier .k { font-size: 15px; font-weight: 600; color: var(--ink); }
.frontier .v { font-size: 2.25rem; font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
.frontier .v small { font-size: 1rem; color: var(--ink-3); margin-left: 4px; }
.frontier .d { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.frontier .p { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.g-line { fill: none; stroke: var(--ink-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.g-strong { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.g-dash { fill: none; stroke: var(--watch); stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.g-warn { fill: none; stroke: var(--danger); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.g-fill { fill: var(--accent); }
.g-dimfill { fill: var(--surface-3); stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sindex { columns: 3 300px; column-gap: 48px; }
.sindex .sgroup { break-inside: avoid; margin: 0 0 32px; }
.sindex .glabel { font-size: 16px; font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.pitem { display: block; padding: 13px 0 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pitem .top { display: flex; align-items: center; gap: 10px; }
.pitem .pname { font-weight: 600; font-size: 17px; }
.pitem .deva { color: var(--ink-3); font-size: 15px; font-family: var(--font-script); }
.pitem .js-chip { margin-left: auto; }
.pitem .ptag { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 3px; }
@media (max-width: 980px) { .home-hero { grid-template-columns: 1fr; } .frontiers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 560px) { .frontiers { grid-template-columns: 1fr; } }

/* ── notices and emergencies ─────────────────────────────────── */

.notice { border-left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; max-width: 92ch; }
.notice strong { color: var(--ink); font-weight: 600; }
.page-head + .emergency, .page-head + .notice { margin-top: clamp(36px, 5vw, 56px); }
.emergency {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px clamp(20px, 3vw, 36px);
  align-items: center;
  background: var(--danger-wash);
  border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px);
}
.emergency .num { font-size: clamp(3rem, 2.4rem + 2vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; color: var(--danger); font-variant-numeric: tabular-nums; }
.emergency .num a { color: inherit; text-decoration: none; }
.emergency .txt { font-size: 17px; line-height: 1.55; color: var(--ink); }
.emergency .txt strong { font-weight: 600; }
.emergency .numbers { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.emergency .numbers a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.emergency .src { margin-top: 8px; }
@media (max-width: 560px) { .emergency { grid-template-columns: 1fr; } }

/* ── key/value lists ─────────────────────────────────────────── */

dl.kv { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 0 40px; border-top: 1px solid var(--line); font-size: var(--t-body); }
dl.kv dt, dl.kv dd { padding: 18px 0; border-bottom: 1px solid var(--line); }
dl.kv dt { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; }
dl.kv dd { line-height: 1.6; color: var(--ink-2); }
@media (max-width: 640px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: 0; padding-bottom: 0; } dl.kv dd { padding-top: 6px; } }

/* ── careers ─────────────────────────────────────────────────── */

.roles { border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); }
.role summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 160px 32px;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 2.6vw, 30px) 0;
}
.role summary::-webkit-details-marker { display: none; }
.role summary .t { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.role summary .w { font-size: 15.5px; color: var(--ink-3); }
.role summary .x { justify-self: end; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform var(--d-2) var(--ease), border-color var(--d-2) var(--ease); }
.role summary .x::before, .role summary .x::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 1.5px; background: var(--ink-2); border-radius: 2px; }
.role summary .x::after { transform: rotate(90deg); }
.role[open] summary .x { transform: rotate(45deg); border-color: var(--ink-3); }
.role summary:hover .t { color: var(--accent-ink); }
.role .rbody { padding: 4px 0 clamp(28px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.role .rbody .full { grid-column: 1 / -1; max-width: 76ch; }
.role .rbody h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.role .rbody .apply { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
@media (max-width: 760px) {
  .role summary { grid-template-columns: minmax(0, 1fr) 32px; gap: 4px 12px; }
  .role summary .w { grid-column: 1; }
  .role summary .x { grid-column: 2; grid-row: 1; }
  .role .rbody { grid-template-columns: 1fr; }
}

/* ── milestones ──────────────────────────────────────────────── */

.milestones { position: relative; margin-left: 6px; border-left: 1px solid var(--line-strong); }
.ms { position: relative; padding: 0 0 clamp(26px, 3vw, 38px) 32px; }
.ms:last-child { padding-bottom: 4px; }
.ms::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-3); }
.ms.done::before { background: var(--ok); border-color: var(--ok); }
.ms.now::before { background: var(--watch); border-color: var(--watch); }
.ms .when { font-size: 16px; font-weight: 600; color: var(--ink); }
.ms .what { font-size: var(--t-body); line-height: 1.6; margin-top: 4px; color: var(--ink-2); max-width: 70ch; }

/* ── long-form heads ─────────────────────────────────────────── */

.article-head { max-width: 900px; }
.article-head h1 {
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  max-width: 17ch;
}
.article-head .dek { margin-top: 26px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
.byline span:first-child { color: var(--ink-2); }
/* Breadcrumb trail: "Research / Analysis". The separator is decorative; screen readers hear the two words. */
.crumb .sep { color: var(--ink-3); font-weight: 400; }

/* ── long-form article ───────────────────────────────────────── */

.article { max-width: none; }
.article-grid { display: grid; grid-template-columns: minmax(0, 700px) 220px; gap: 72px; align-items: start; justify-content: space-between; margin-top: clamp(56px, 8vw, 104px); }
.article-main { min-width: 0; }
.prose { font-size: var(--t-body); line-height: 1.7; max-width: var(--measure); color: var(--ink-2); }
.prose p { margin: 0 0 1.05em; }
.prose p + p { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); margin: 2.4em 0 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 1.7em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding: 3px 0 3px 24px; }
.prose li + li { margin-top: 0.3em; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 0.88em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; padding-left: 30px; }
.prose ol li::before { content: counter(n) "."; position: absolute; left: 2px; top: 3px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose em { font-style: italic; }
.prose blockquote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 1.2em; color: var(--ink-2); }
.prose .table-wrap { margin: 8px 0 1.6em; }
.prose table.spec { font-size: 15.5px; }
.prose table.spec td { color: var(--ink-2); }
.prose table.spec td:first-child { color: var(--ink); }
.prose figure { margin: 16px 0 1.8em; }
.prose figure figcaption, .figcap { margin-top: 14px; font-size: var(--t-14); color: var(--ink-3); line-height: 1.55; }
.prose .src { margin: -0.4em 0 1.4em; }
.prose p, .prose li, .prose blockquote { overflow-wrap: anywhere; }
.keypoints { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 22px 0 18px; margin: 0 0 clamp(40px, 5vw, 64px); }
.keypoints .mini { margin-bottom: 10px; color: var(--ink); font-size: 16px; font-weight: 600; }
.keypoints ul { list-style: none; margin: 0; padding: 0; }
.keypoints li { position: relative; padding: 7px 0 7px 26px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.keypoints li::before { content: ""; position: absolute; left: 4px; top: 1.02em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sources { margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 14px; }
.sources ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.sources li { counter-increment: s; position: relative; padding: 7px 0 7px 36px; font-size: 15px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.sources li::before { content: counter(s); position: absolute; left: 0; top: 7px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.article-side { position: sticky; top: 84px; font-size: 15px; display: flex; flex-direction: column; gap: 30px; }
.article-side .mini { margin-bottom: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.article-side ol, .article-side ul { list-style: none; margin: 0; padding: 0; }
.article-side li { padding: 7px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.article-side a { color: var(--ink-2); text-decoration: none; }
.article-side a:hover, .article-side a[aria-current="true"] { color: var(--ink); text-decoration: none; }
.article-side .toc a[aria-current="true"] { color: var(--accent-ink); font-weight: 600; }
.article-foot { margin-top: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.article-foot .src { max-width: 70ch; }
@media (max-width: 1080px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-side { display: none; }
}

/* inline bar figure */
.hbars { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 6px; }
.hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 16px; align-items: center; font-size: 15px; }
.hbar .l { color: var(--ink-2); }
.hbar .track { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); position: relative; overflow: hidden; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--viz-1); border-radius: var(--r-pill); }
.hbar .fill.gold { background: var(--viz-4); }
.hbar .fill.green { background: var(--viz-3); }
.hbar .fill.red { background: var(--viz-5); }
.hbar .fill.dimfill { background: var(--line-strong); }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 550; }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr 64px; row-gap: 6px; } .hbar .track { grid-column: 1 / -1; grid-row: 2; } }

/* static SVG column charts */
svg.colchart { min-width: 600px; }
.colchart .ch-grid { stroke: var(--line); stroke-width: 1; }
.colchart .ch-lab { fill: var(--ink-3); font-family: var(--font-ui); font-size: 12px; }
.colchart .ch-bar { fill: var(--viz-1); }
.colchart .ch-bar.alt { fill: var(--viz-4); }
.colchart .ch-bar.fc { opacity: 0.55; }
.colchart .ch-ref { stroke: var(--danger); stroke-width: 1.2; stroke-dasharray: 4 4; }
.colchart .ch-reflab { fill: var(--danger); font-family: var(--font-ui); font-size: 12px; font-weight: 600; }

/* heat categories in research tables keep their own names; the dot carries the colour */
.lvl-tag { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 15px; color: var(--ink); }
.lvl-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tagc, var(--ink-3)); box-sizing: border-box; }
.lvl-tag.black::before { background: var(--bg); border: 1.5px solid var(--ink); }
.lvl-tag.red { --tagc: var(--danger); }
.lvl-tag.yellow { --tagc: var(--watch); }
.lvl-tag.green { --tagc: var(--ok); }
.lvl-tag.white::before { background: var(--ink); }

/* diagrams drawn in SVG */
figure.diagram { margin: 0; background: transparent; border: 0; padding: 0; border-radius: 0; }
figure.diagram svg { display: block; width: 100%; height: auto; min-width: 640px; }
figure.diagram.fluid svg { min-width: 0; }
.dg-box { fill: var(--surface); stroke: var(--line-strong); }
.dg-box.hot { stroke: var(--accent); }
.dg-text { fill: var(--ink); font-family: var(--font-ui); font-size: 14px; font-weight: 600; }
.dg-sub { fill: var(--ink-3); font-family: var(--font-ui); font-size: 12.5px; }
.dg-lab { fill: var(--ink-3); font-family: var(--font-ui); font-size: 13px; font-weight: 550; }
.dg-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.3; }
.dg-edge.on { stroke: var(--accent); }
.dg-arrow { fill: var(--ink-3); }
.diagram-box { overflow-x: auto; padding: 4px 0; }
.diagram-box svg.flow { display: block; width: 100%; min-width: 560px; height: auto; }

/* ── doctrine ────────────────────────────────────────────────── */

.dlines { border-top: 1px solid var(--line); }
.dline { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 40px; padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.dline .dnum { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); font-weight: 560; letter-spacing: -0.04em; line-height: 0.95; color: var(--accent); font-variant-numeric: tabular-nums; }
.dline.c .dnum { color: var(--ink-3); }
.dline h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.dline .verbatim { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.dline .practice { margin-top: 20px; max-width: 70ch; }
.dline .practice .mini { margin-bottom: 4px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dline .practice ul { list-style: none; margin: 0; padding: 0; }
.dline .practice li { position: relative; padding: 5px 0 5px 20px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.dline .practice li::before { content: ""; position: absolute; left: 4px; top: 0.92em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.dline .practice code { font-size: 0.86em; }
@media (max-width: 760px) {
  .dline { grid-template-columns: 1fr; }
  .dline .dnum { font-size: 2rem; }
}
.source-note { font-size: var(--t-14); color: var(--ink-3); margin-top: 18px; max-width: 80ch; }

/* ── tables ──────────────────────────────────────────────────── */

table.spec code { white-space: nowrap; }
table.spec.first-nowrap td:first-child, table.spec.first-nowrap th:first-child { white-space: nowrap; }
table.spec td { color: var(--ink-2); }
table.spec td:first-child, table.spec td strong { color: var(--ink); }
/* product names and their meanings: two columns of hairline rows (company page) */
.body ul.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 18px 0 0; border-top: 1px solid var(--line); }
.body ul.names li { display: flex; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.body ul.names li::before { content: none; }
ul.names .pn { flex: 0 0 6.2em; font-weight: 600; color: var(--ink); }
ul.names .deva { font-family: var(--font-script); font-size: 17px; line-height: 1.2; color: var(--ink); }
ul.names .gloss { margin-left: auto; text-align: right; font-size: 15px; color: var(--ink-3); }
@media (max-width: 640px) { .body ul.names { grid-template-columns: minmax(0, 1fr); } }

/* Wide tables scroll sideways on phones; soft edges show there is more to the side. */
@media (max-width: 720px) {
  .table-wrap > table.spec:has(th:nth-child(4)) { min-width: 600px; }
  .table-wrap > table.spec:has(th:nth-child(5)) { min-width: 700px; }
  .table-wrap {
    background:
      linear-gradient(to right, var(--bg) 30%, transparent),
      linear-gradient(to right, transparent, var(--bg) 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, color-mix(in oklch, var(--ink) 16%, transparent), transparent),
      radial-gradient(farthest-side at 100% 50%, color-mix(in oklch, var(--ink) 16%, transparent), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

/* Tables marked .stack become labelled rows on phones, once site-ext.js has copied each
   column heading into its cells (data-labelled) and set explicit table roles. Without the
   script they keep the sideways scroll above. */
@media (max-width: 600px) {
  .table-wrap > table.spec.stack[data-labelled]:has(th) { min-width: 0; }
  table.spec.stack[data-labelled] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.spec.stack[data-labelled], table.spec.stack[data-labelled] tbody, table.spec.stack[data-labelled] tr { display: block; width: 100%; }
  table.spec.stack[data-labelled] tr { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
  table.spec.stack[data-labelled] tbody tr:first-child { border-top: 1px solid var(--line); }
  table.spec.stack[data-labelled] td { display: block; position: relative; padding: 3px 0 3px 112px; border: 0; text-align: left; white-space: normal; font-size: 15.5px; }
  table.spec.stack[data-labelled] td::before { content: attr(data-label); position: absolute; left: 0; top: 4px; width: 100px; font-size: var(--t-14); font-weight: 550; line-height: 1.4; color: var(--ink-3); }
  table.spec.stack[data-labelled] td:first-child { padding: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
  table.spec.stack[data-labelled] td:first-child::before { content: none; }
}

/* ── press kit ───────────────────────────────────────────────── */

.boiler { border-top: 1px solid var(--line-strong); padding: 22px 0 28px; max-width: 78ch; }
.boiler + .boiler { border-top-color: var(--line); }
.boiler .mini { margin-bottom: 12px; }
.boiler p { font-size: 18px; line-height: 1.6; color: var(--ink); }
button.copy {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
button.copy:hover { background: var(--surface-2); }
button.copy[data-done] { border-color: var(--ok); color: var(--ok); }
.brandgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.asset { margin: 0; min-width: 0; }
.asset.wide { grid-column: span 2; }
.asset.full { grid-column: 1 / -1; }
.asset .plate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); height: 176px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.asset .plate.light { background: var(--ink); border-color: var(--ink); }
.asset .plate.pic { height: auto; padding: 0; overflow: hidden; }
.asset .plate img { max-width: 100%; max-height: 100%; height: auto; display: block; }
.asset .plate.pic img { width: 100%; max-height: none; }
.asset figcaption { margin-top: 12px; font-size: var(--t-14); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.asset figcaption a { color: var(--accent-ink); font-weight: 550; }
@media (max-width: 860px) { .brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .asset.wide { grid-column: 1 / -1; } }
ul.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
ul.swatches li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
ul.swatches .sw { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: block; }
ul.swatches code { font-size: 13px; color: var(--ink-3); background: none; padding: 0; }
@media (max-width: 640px) { ul.swatches { grid-template-columns: 1fr; } }
.typespec { display: grid; gap: 18px; }
.typespec .ts1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variation-settings: "wdth" 104; }
.typespec .ts2 { font-family: var(--font-script); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); color: var(--ink); line-height: 1.3; }
.typespec .ts3 { font-size: 17px; color: var(--ink-2); max-width: 60ch; }

/* ── contact desks: hairline rows ────────────────────────────── */

.desks { border-top: 1px solid var(--line); }
.desk {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 220px;
  grid-template-areas: "k addr sla" "k p sla";
  gap: 6px 40px;
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.desk .k { grid-area: k; font-size: 16px; font-weight: 600; color: var(--ink); padding-top: 4px; }
.desk .addr { grid-area: addr; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 560; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.desk p { grid-area: p; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.desk .sla { grid-area: sla; font-size: 15px; color: var(--ink-3); padding-top: 6px; text-align: right; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; grid-template-areas: "k" "addr" "p" "sla"; gap: 6px; }
  .desk .sla { text-align: left; padding-top: 2px; }
}

/* ── safety hub ──────────────────────────────────────────────── */

.advs { border-top: 1px solid var(--line); }
a.adv {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "k status" "t status" "p status" "more status";
  gap: 8px clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
a.adv:hover { text-decoration: none; }
a.adv:hover .t { color: var(--accent-ink); }
.adv .k { grid-area: k; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 550; color: var(--ink-3); }
.adv .k .pn { color: var(--ink-2); }
.adv .t { grid-area: t; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.05; max-width: 16ch; }
.adv p { grid-area: p; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin-top: 8px; }
.adv .more { grid-area: more; margin-top: 14px; }
.adv .status { grid-area: status; align-self: center; border-left: 1px solid var(--line-strong); padding: 6px 0 6px clamp(18px, 2.4vw, 32px); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.45; color: var(--ink); }
.adv .status .when { font-size: var(--t-14); }
.adv .status .chip { margin-left: 6px; }
@media (max-width: 860px) {
  a.adv { grid-template-columns: 1fr; grid-template-areas: "k" "t" "p" "status" "more"; }
  .adv .status { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin-top: 10px; }
}
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.levels .lv { padding-top: 22px; border-top: 1px solid var(--line); }
.levels .lv .lvl { margin-bottom: 12px; }
.levels p { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }
.companion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 48px; align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.companion .mini { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 15px; }
.companion h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-top: 8px; }
.companion p { font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); margin-top: 8px; max-width: 66ch; }
.companion p strong { color: var(--ink); font-weight: 600; }
.companion .actions { margin-top: 0; }
@media (max-width: 860px) { .companion { grid-template-columns: 1fr; } }

/* ── documentation (docs.html) ───────────────────────────────── */

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.docs-rail { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
.docs-toc summary { display: none; }
.docs-toc nav { display: flex; flex-direction: column; }
.docs-toc nav a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.4; }
.docs-toc nav a:hover { color: var(--ink); text-decoration: none; }
.docs-toc nav a[aria-current="true"] { color: var(--ink); border-left: 2px solid var(--accent); padding-left: 13px; font-weight: 600; }
.docs-toc .mini { margin: 26px 0 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.docs-toc .mini:first-child { margin-top: 0; }
.docs-main { min-width: 0; }
.docs-sec { padding-top: clamp(44px, 6vw, 72px); margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); max-width: 900px; scroll-margin-top: 76px; }
.docs-sec h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); margin-bottom: 18px; }
.docs-sec h3 { font-size: 1.1875rem; font-weight: 600; color: var(--ink); margin: 34px 0 12px; }
.docs-sec > p { font-size: var(--t-body); line-height: 1.65; max-width: 72ch; margin-bottom: 14px; color: var(--ink-2); }
.docs-sec > ul.dots { color: var(--ink-2); }
.docs-sec pre { margin: 10px 0 20px; max-width: 100%; }
.docs-sec ul + p, .docs-sec ol + p { margin-top: 18px; }
.docs-sec > p.src { font-size: var(--t-14); }
table.docs-list td:last-child { white-space: nowrap; }
.viewer { max-width: 900px; }
.viewer .vhead { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.viewer .vhead h1 { font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1.02; margin: 10px 0 14px; }
.viewer .vhead .src { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.viewer .prose { max-width: 76ch; }
.viewer .prose h2 { font-size: 1.625rem; }
.viewer .prose pre code { background: none; padding: 0; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-rail { position: static; max-height: none; overflow: visible; margin-bottom: 40px; }
  .docs-toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .docs-toc summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--ink); list-style: none; }
  .docs-toc summary::-webkit-details-marker { display: none; }
  .docs-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform var(--d-2) var(--ease); }
  .docs-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .docs-toc nav { padding-bottom: 16px; }
}

/* ── responsive buttons ──────────────────────────────────────── */

@media (max-width: 520px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ── print ───────────────────────────────────────────────────── */

@media print {
  .masthead, .colophon, .skip, .actions, nav.secnav, .article-side { display: none !important; }
  html, body { background: #fff; color: #111; }
}
