/* Layout concept: a product datasheet. Title blocks, reference codes and ruled spec tables
   frame every page; one ochre "label tag" accent marks what needs a decision. */
:root {
  --paper: #f4f6f7;
  --sheet: #ffffff;
  --ink: #17212b;
  --ink-2: #44515d;
  --ink-3: #6b7783;
  --rule: #d5dbe0;
  --rule-2: #e7ebee;
  --accent: #a8640f;        /* ochre label tag */
  --accent-ink: #8a520b;
  --accent-wash: #f6ead9;
  --plm: #a8640f;
  --dam: #2c56b0;
  --pxm: #3f7a4a;
  --plm-wash: #f6ead9;
  --dam-wash: #e3eaf8;
  --pxm-wash: #e3f0e5;
  --focus: #2c56b0;
  --foot-bg: #17212b;
  --foot-fg: #f4f6f7;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 1180px;
  --measure: 68ch;
  --r: 3px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f151b; --sheet: #151d25; --ink: #e6ebef; --ink-2: #b4bec7; --ink-3: #8a96a1;
    --rule: #2b3640; --rule-2: #212b34; --accent: #e0a24f; --accent-ink: #f0b766; --accent-wash: #2d2416;
    --plm: #e0a24f; --dam: #7fa2ec; --pxm: #82c08e; --plm-wash: #2d2416; --dam-wash: #18233a; --pxm-wash: #17291b;
    --focus: #7fa2ec; --foot-bg: #0a0f14; --foot-fg: #e6ebef; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f151b; --sheet: #151d25; --ink: #e6ebef; --ink-2: #b4bec7; --ink-3: #8a96a1;
  --rule: #2b3640; --rule-2: #212b34; --accent: #e0a24f; --accent-ink: #f0b766; --accent-wash: #2d2416;
  --plm: #e0a24f; --dam: #7fa2ec; --pxm: #82c08e; --plm-wash: #2d2416; --dam-wash: #18233a; --pxm-wash: #17291b;
  --focus: #7fa2ec; --foot-bg: #0a0f14; --foot-fg: #e6ebef; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-ui);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sheet); }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: 1.45rem; font-weight: 700; font-stretch: 108%; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--w); margin: 0 auto; }
.mono { font-family: var(--f-mono); }
.small { font-size: .82rem; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 50; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--sheet); border-bottom: 1px solid var(--rule);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top-in { max-width: var(--w); margin: 0 auto; display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 7px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand .tag { font-family: var(--f-mono); font-weight: 600; font-size: .78rem; letter-spacing: .02em; background: var(--ink); color: var(--sheet); padding: 2px 6px; border-radius: 2px; transform: translateY(-2px); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-right: auto; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); padding: 6px 10px; border-radius: var(--r); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--rule-2); }
.search { position: relative; }
.search input { font: inherit; font-size: .9rem; width: 230px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.search-res { position: absolute; right: 0; top: calc(100% + 6px); width: min(420px, calc(100vw - 32px)); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 12px 30px rgba(10,20,30,.14); max-height: 60vh; overflow: auto; z-index: 30; }
.search-res a { display: block; padding: 9px 12px; text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.search-res a:hover, .search-res a.on { background: var(--rule-2); }
.search-res .k { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.nav-toggle { display: none; font: inherit; font-size: .88rem; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); border-radius: var(--r); padding: 6px 10px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav { order: 5; width: 100%; display: none; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .search { order: 4; width: 100%; padding-bottom: 10px; }
  .search input { width: 100%; }
  .top-in { gap: 10px; padding-block: 8px; }
}

/* Breadcrumb and page title block */
.crumbs { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); padding-block: 22px 0; display: flex; flex-wrap: wrap; gap: 6px; text-transform: uppercase; letter-spacing: .05em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--rule); }
.titleblock { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-block: 18px 26px; border-bottom: 2px solid var(--ink); }
.titleblock > div { min-width: 0; }
.titleblock .lede { font-family: var(--f-body); font-size: 1.16rem; line-height: 1.55; color: var(--ink-2); margin-top: 14px; max-width: var(--measure); }
.refcode { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule); padding: 8px 10px; display: grid; gap: 2px; text-align: right; background: var(--sheet); white-space: nowrap; }
.refcode b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .titleblock { grid-template-columns: 1fr; } .refcode { text-align: left; justify-self: start; } }
.eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; display: block; }

/* Category chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; }
.chip.PLM { color: var(--plm); background: var(--plm-wash); }
.chip.DAM { color: var(--dam); background: var(--dam-wash); }
.chip.PXM { color: var(--pxm); background: var(--pxm-wash); }
.chip.neutral { color: var(--ink-2); background: transparent; border-color: var(--rule); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sections */
main { padding-bottom: 72px; }
.section { padding-block: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 20px; }
.section-head .mono { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.section-head a.mono { text-decoration: none; color: var(--accent-ink); }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding-block: 48px 40px; border-bottom: 2px solid var(--ink); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.7rem); }
.hero .lede { font-family: var(--f-body); font-size: 1.2rem; color: var(--ink-2); margin-top: 18px; max-width: 54ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--f-ui); text-decoration: none; padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: var(--sheet); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { filter: brightness(1.1); }
.stat-line { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.stat-line b { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); letter-spacing: -0.02em; font-stretch: 112%; text-transform: none; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; } }

/* Stack diagram */
.stack { background: var(--sheet); border: 1px solid var(--rule); padding: 18px; font-family: var(--f-mono); font-size: .76rem; }
.stack-cap { display: flex; justify-content: space-between; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.stack-row { display: grid; grid-template-columns: 74px 1fr; border-top: 1px solid var(--rule-2); }
.stack-row:last-child { border-bottom: 1px solid var(--rule-2); }
.stack-row > span:first-child { padding: 10px 0; font-weight: 600; }
.stack-row > span:last-child { padding: 10px 0; color: var(--ink-2); font-family: var(--f-ui); font-size: .86rem; }
.stack-row.PLM > span:first-child { color: var(--plm); }
.stack-row.PXM > span:first-child { color: var(--pxm); }
.stack-row.DAM > span:first-child { color: var(--dam); }
.stack-row.ERP > span:first-child, .stack-row.DPP > span:first-child { color: var(--ink-2); }
.stack-flow { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; color: var(--ink-3); }
.stack-flow i { font-style: normal; color: var(--accent); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.timeline li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px; background: var(--sheet); display: grid; gap: 6px; align-content: start; }
.timeline .d { font-family: var(--f-mono); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .d.past { color: var(--ink-3); }
.timeline .d.next { color: var(--accent-ink); }
.timeline .t { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.timeline .s { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.timeline .st { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline .st.live { color: var(--pxm); }
.timeline .st.soon { color: var(--accent-ink); }
.timeline .st.later { color: var(--ink-3); }
.timeline a { text-decoration: none; }
.timeline a:hover .t { text-decoration: underline; text-decoration-color: var(--accent); }

/* Category cards (three only, a real triad) */
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--sheet); }
.triad a { text-decoration: none; padding: 22px; border-right: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.triad a:last-child { border-right: 0; }
.triad a:hover { background: var(--rule-2); }
.triad .n { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); }
.triad p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 760px) { .triad { grid-template-columns: 1fr; } .triad a { border-right: 0; border-bottom: 1px solid var(--rule); } .triad a:last-child { border-bottom: 0; } }

/* Spec table (vendor lists) */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--sheet); }
table.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.spec th { text-align: left; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--paper); }
table.spec td { padding: 11px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td.name a { font-weight: 700; text-decoration: none; }
table.spec td.name a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
table.spec td.name .sub { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 400; margin-top: 2px; max-width: 46ch; }
table.spec .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .82rem; white-space: nowrap; }
table.spec tr[hidden] { display: none; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-bottom: 0; background: var(--sheet); }
.filters label { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: grid; gap: 4px; }
.filters select, .filters input { font: inherit; font-family: var(--f-ui); font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 6px 8px; min-width: 150px; }
.filters .count { margin-left: auto; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }

/* Vendor profile */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 30px; }
.profile aside { display: grid; gap: 18px; align-content: start; }
@media (max-width: 920px) { .profile { grid-template-columns: 1fr; } }
.datasheet { background: var(--sheet); border: 1px solid var(--ink); font-size: .88rem; }
.datasheet h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 9px 12px; background: var(--ink); color: var(--sheet); }
.datasheet dl { margin: 0; display: grid; grid-template-columns: 112px 1fr; }
.datasheet dt, .datasheet dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--rule-2); }
.datasheet dt { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding-top: 11px; }
.datasheet dd { min-width: 0; overflow-wrap: anywhere; }
.datasheet dl > :nth-last-child(-n+2) { border-bottom: 0; }
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.coverage span { padding: 10px 6px; text-align: center; font-family: var(--f-mono); font-size: .72rem; font-weight: 600; border-right: 1px solid var(--rule); color: var(--ink-3); }
.coverage span:last-child { border-right: 0; }
.coverage span.on.PLM { color: var(--plm); background: var(--plm-wash); }
.coverage span.on.DAM { color: var(--dam); background: var(--dam-wash); }
.coverage span.on.PXM { color: var(--pxm); background: var(--pxm-wash); }
.coverage span:not(.on) { text-decoration: line-through; text-decoration-color: var(--rule); }
.prose { font-family: var(--f-body); font-size: 1.08rem; line-height: 1.68; max-width: var(--measure); display: grid; gap: 1.05em; }
.prose h2 { font-size: 1.4rem; margin-top: .9em; }
.prose h3 { font-size: 1.12rem; margin-top: .5em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration-color: var(--accent); }
.prose strong { font-weight: 650; }
.prose table { border-collapse: collapse; font-family: var(--f-ui); font-size: .9rem; width: 100%; background: var(--sheet); }
.prose th { text-align: left; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border-bottom: 2px solid var(--ink); padding: 8px 10px; }
.prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; vertical-align: top; }
.prose .tablewrap { border: 0; }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.answer { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 16px 18px; font-family: var(--f-body); font-size: 1.08rem; line-height: 1.6; max-width: var(--measure); }
.answer .k { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); background: var(--sheet); max-width: calc(var(--measure) + 120px); }
.split > div { padding: 16px 18px; min-width: 0; }
.split > div + div { border-left: 1px solid var(--rule); }
.split h3 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.split ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: .95rem; }
.split .plus h3 { color: var(--pxm); }
.split .minus h3 { color: var(--accent-ink); }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } .split > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.caps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.caps li { font-size: .86rem; border: 1px solid var(--rule); background: var(--sheet); padding: 4px 9px; border-radius: 2px; }
.notice { font-size: .88rem; color: var(--ink-2); border: 1px dashed var(--rule); padding: 12px 14px; background: var(--sheet); }
.notice.merged { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: calc(var(--measure) + 120px); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; font-family: var(--f-body); color: var(--ink-2); line-height: 1.6; max-width: var(--measure); }

/* Article layout */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; padding-top: 30px; }
.article aside { display: grid; gap: 18px; align-content: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .article aside { position: static; } }
.takeaways { border: 1px solid var(--rule); background: var(--sheet); padding: 16px 18px; max-width: var(--measure); }
.takeaways h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-3); font-weight: 600; }
.takeaways ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .96rem; }
.takeaways li::marker { font-family: var(--f-mono); color: var(--accent); }
.toc { font-size: .88rem; border-top: 2px solid var(--ink); padding-top: 12px; }
.toc h2, .sidebox h2 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.sidebox { border-top: 1px solid var(--rule); padding-top: 12px; font-size: .88rem; }
.sidebox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sidebox a { text-decoration: none; color: var(--ink-2); }
.sidebox a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.sidebox .ext::after { content: " \2197"; color: var(--ink-3); }
.meta-line { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 16px; }
.sources { font-size: .86rem; color: var(--ink-2); max-width: var(--measure); }
.sources ol { padding-left: 1.2em; margin: 8px 0 0; display: grid; gap: 4px; overflow-wrap: anywhere; }

/* KB index */
.kb-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: 26px; border-bottom: 1px solid var(--rule); }
.kb-group:last-child { border-bottom: 0; }
.kb-group header h2 { font-size: 1.25rem; }
.kb-group header p { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.kb-group header .mono { font-size: .72rem; color: var(--ink-3); display: block; margin-bottom: 6px; letter-spacing: .06em; }
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.kb-list li { border-top: 1px solid var(--rule-2); padding-block: 12px; }
.kb-list a { text-decoration: none; display: grid; gap: 4px; }
.kb-list a b { font-weight: 650; font-size: .98rem; line-height: 1.35; }
.kb-list a:hover b { text-decoration: underline; text-decoration-color: var(--accent); }
.kb-list .code { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .05em; }
.kb-list span.d { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 820px) { .kb-group { grid-template-columns: 1fr; gap: 10px; } .kb-list { grid-template-columns: 1fr; } }

/* Compare tool */
.cmp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cmp-pick select { font: inherit; width: 100%; padding: 9px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); color: var(--ink); }
@media (max-width: 700px) { .cmp-pick { grid-template-columns: 1fr; } }
table.cmp { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: .9rem; min-width: 640px; table-layout: fixed; }
table.cmp th, table.cmp td { border: 1px solid var(--rule); padding: 10px 12px; vertical-align: top; text-align: left; }
table.cmp th[scope="row"] { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); width: 150px; background: var(--paper); font-weight: 600; }
table.cmp thead th { font-family: var(--f-display); font-size: 1.05rem; }
table.cmp ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }

/* Glossary */
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.gloss > div { border-top: 1px solid var(--rule); padding-block: 14px; min-width: 0; }
.gloss dt { font-family: var(--f-display); font-weight: 700; }
.gloss dt .mono { font-weight: 500; font-size: .74rem; color: var(--ink-3); margin-left: 6px; }
.gloss dd { margin: 4px 0 0; font-family: var(--f-body); color: var(--ink-2); line-height: 1.55; }
@media (max-width: 760px) { .gloss { grid-template-columns: 1fr; } }

/* Resource strip */
.resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--sheet); }
.resources a { padding: 16px 18px; text-decoration: none; border-right: 1px solid var(--rule); display: grid; gap: 6px; }
.resources a:last-child { border-right: 0; }
.resources a:hover { background: var(--rule-2); }
.resources b { font-size: .98rem; }
.resources b::after { content: " \2197"; color: var(--ink-3); font-weight: 400; }
.resources span { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 760px) { .resources { grid-template-columns: 1fr; } .resources a { border-right: 0; border-bottom: 1px solid var(--rule); } .resources a:last-child { border-bottom: 0; } }

/* Footer */
.foot {
  background: var(--foot-bg); color: var(--foot-fg);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 44px 36px;
}
.foot-in { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot h2 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--foot-fg); opacity: .6; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.foot a { text-decoration: none; color: var(--foot-fg); opacity: .85; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot .brand-word { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.3rem; margin-bottom: 8px; }
.foot p { font-size: .88rem; opacity: .8; max-width: 38ch; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(127,140,152,.35); padding-top: 18px; font-family: var(--f-mono); font-size: .72rem; opacity: .65; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.timeline a { display: grid; gap: 6px; }
.triad .chip { justify-self: start; }

/* Analytics consent banner */
.consent { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; background: var(--sheet); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 12px 30px rgba(10,20,30,.18); padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.consent p { flex: 1 1 280px; min-width: 0; }
.consent a { text-decoration-color: var(--accent); }
.consent-btns { display: flex; gap: 8px; }
.consent .btn { padding: 8px 12px; font-size: .86rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--foot-fg); opacity: .85; cursor: pointer; text-align: left; }
.linkish:hover { opacity: 1; text-decoration: underline; }
[hidden] { display: none !important; }
