:root {
  --bg: #FAF7F2;
  --bg-band: #F3EDE4;
  --surface: #FFFFFF;
  --ink: #1C1A17;
  --ink-2: #45413B;
  --muted: #6B665F;
  --rule: #E5DDD2;
  --rule-strong: #D6CCBE;
  --accent: #E8590C;
  --accent-btn: #CC4B0A;
  --accent-btn-hover: #B4420A;
  --accent-ink: #B8440B;
  --accent-soft: #FCEBDD;
  --accent-tint: #FFF6EF;
  --shot-dark: #16171B;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", STSong, serif;
  --serif-num: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", STSong, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 12px 32px -12px rgba(60, 40, 20, .18);
  color-scheme: light;
}

html[data-lang="en"] body [lang="zh-CN"],
html:not([data-lang="en"]) body [lang="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-btn); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 8px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  background: var(--accent-btn); color: #fff; border: 1px solid var(--accent-btn);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-line:hover { background: var(--accent-tint); border-color: var(--ink-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more .ico { width: 16px; height: 16px; stroke-width: 2; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(250, 247, 242, .82); backdrop-filter: blur(10px); } }
.top .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; margin: -4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-group > button {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px;
  border: 0; background: none; border-radius: 6px; cursor: pointer;
  font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none;
}
.nav > a:hover, .nav-group > button:hover, .nav-group.open > button { color: var(--ink); background: var(--bg-band); }
.nav a[aria-current="page"], .nav-group.current > button { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-group { position: relative; }
.nav-group > button .ico { width: 14px; height: 14px; stroke-width: 2; }
.menu {
  position: absolute; top: calc(100% + 6px); left: -12px; width: 340px; padding: 8px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-group:hover .menu, .nav-group.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: 12px; padding: 12px; border-radius: 8px; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--accent-tint); }
.menu .ico { color: var(--accent); margin-top: 2px; }
.menu b { display: block; font-size: 15px; color: var(--ink); }
.menu small { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); }
.lang-switch a { padding: 6px 6px; text-decoration: none; color: var(--muted); border-radius: 4px; }
.lang-switch a:hover { color: var(--ink); }
html:not([data-lang="en"]) .lang-switch a[data-set-lang="zh"],
html[data-lang="en"] .lang-switch a[data-set-lang="en"] { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav, .top-actions .btn { display: none; }
  .top-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .mobile-nav[data-open] { display: block; border-top: 1px solid var(--rule); background: var(--bg); max-height: calc(100vh - 72px); overflow-y: auto; }
  .mobile-nav .wrap { display: block; height: auto; padding-top: 8px; padding-bottom: 20px; }
  .mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 16px; color: var(--ink); }
  .mobile-nav a.sub { padding-left: 16px; color: var(--ink-2); font-size: 15px; }
  .mobile-nav .btn { display: flex; margin-top: 16px; border: 0; color: #fff; }
}

/* hero (home) */
.hero { padding: 48px 0 36px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 16px/1.4 var(--serif); color: var(--ink); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.hero h1, .page-hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.2; }
.hero h1 .hl, .page-hero h1 .hl { color: var(--accent); }
.hero h1 .line { display: block; }
@media (min-width: 761px) { .hero h1 .line { white-space: nowrap; } }
.lead { font-size: 19px; line-height: 1.75; color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.window {
  border-radius: 14px; overflow: hidden; background: var(--shot-dark);
  box-shadow: 0 2px 4px rgba(30, 20, 10, .08), 0 30px 60px -24px rgba(30, 20, 10, .45);
  border: 1px solid rgba(0, 0, 0, .12);
}
.window.light { background: var(--surface); border-color: var(--rule); }
.shot-cap { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }

/* capability strip */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip li { display: flex; gap: 16px; padding: 28px 24px; align-items: flex-start; }
.strip li + li { border-left: 1px solid var(--rule); }
.strip li:first-child { padding-left: 0; }
.strip .ico { width: 36px; height: 36px; color: var(--ink); stroke-width: 1.3; }
.strip b { display: block; font: 700 18px/1.4 var(--serif); }
.strip span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* numbered sections */
.sec { padding: 52px 0; border-top: 1px solid var(--rule); }
.sec.flush { border-top: 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 12px; }
.sec-head .n { font: 600 28px/1 var(--serif-num); color: var(--accent); letter-spacing: .02em; }
.sec-head h2 { font: 700 clamp(26px, 2.8vw, 34px)/1.3 var(--serif); letter-spacing: -.005em; }
.sec-lead { font-size: 17px; color: var(--ink-2); max-width: 46em; margin: 0 0 28px; }
.sec-head + .sec-body { margin-top: 32px; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { display: flex; flex-direction: column; padding: 0 32px; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar + .pillar { border-left: 1px solid var(--rule); }
.pillar h3 { font: 700 22px/1.35 var(--serif); }
.pillar p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.pillar .frame { margin: 22px 0 20px; flex: 1; display: flex; align-items: center; }
.pillar .frame > * { width: 100%; }
.thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--surface); box-shadow: var(--shadow); }
.thumb.dark { background: var(--shot-dark); border-color: rgba(0, 0, 0, .15); }
.thumb img { width: 100%; }

/* flow diagram */
.flow { display: grid; grid-template-columns: minmax(0, 1.1fr) 72px minmax(0, 1fr) 72px minmax(0, 1.2fr); align-items: center; }
.flow.compact { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); }
.node {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 64px; padding: 14px 20px; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 10px; font: 600 17px/1.35 var(--sans); text-align: center;
}
.node .ico { width: 30px; height: 30px; stroke-width: 1.4; }
.node small { display: block; font: 400 13px/1.5 var(--sans); color: var(--muted); }
.node.hub { flex-direction: column; gap: 10px; min-height: 120px; border-color: var(--ink); box-shadow: var(--shadow); font-family: var(--serif); font-size: 20px; }
.node.hub img { width: 48px; height: 48px; margin: -4px; }
.sources { display: grid; gap: 18px; }
.people { flex-direction: column; gap: 12px; min-height: 140px; font-family: var(--serif); font-size: 19px; }
.people .row { display: flex; gap: 22px; color: var(--ink); }
.people .row .ico { width: 40px; height: 40px; stroke-width: 1.2; }
.wire { width: 100%; height: 100%; min-height: 80px; color: var(--ink-2); }
.wire path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.arrow { position: relative; height: 2px; background: var(--ink-2); margin: 0 6px; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink-2); border-right: 0; }
.flow-cap { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.flow-small .node { min-height: 56px; padding: 10px 12px; font-size: 14px; flex-direction: column; gap: 6px; }
.flow-small .node .ico { width: 24px; height: 24px; }
.flow-small .node.hub img { width: 34px; height: 34px; }
.flow-small .node.hub { min-height: 56px; font: 600 14px/1.35 var(--sans); }
.flow-small .sources { gap: 10px; }
.flow-small .wire { min-height: 60px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.tile { display: flex; align-items: center; gap: 20px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.tile .ico { width: 36px; height: 36px; stroke-width: 1.3; color: var(--ink); }
.tile b { display: block; font: 700 19px/1.4 var(--serif); }
.tile span { display: block; color: var(--muted); font-size: 14px; }

/* boundary */
.boundary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.shield-art { max-width: 420px; margin: 0 auto; color: var(--accent); }
.checklist { list-style: none; }
.checklist li { display: flex; gap: 20px; padding: 20px 0; align-items: flex-start; }
.checklist li + li { border-top: 1px solid var(--rule); }
.checklist .ico { width: 30px; height: 30px; stroke-width: 1.3; margin-top: 2px; }
.checklist b { display: block; font: 700 19px/1.4 var(--serif); }
.checklist span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* deployment cards */
.shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shape { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 28px 28px 32px; }
.shape h3 { display: flex; align-items: center; gap: 12px; font: 700 22px/1.3 var(--serif); }
.shape h3::before { content: ""; width: 3px; height: 22px; background: var(--accent); }
.shape > p { color: var(--muted); font-size: 15px; margin: 6px 0 24px 15px; }
.shape .fits { margin: 22px 0 0 15px; font-size: 15px; color: var(--ink-2); }
.minirow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.minirow .node { flex-direction: column; gap: 4px; min-height: 0; min-width: 92px; padding: 10px 12px; font-size: 13px; font-weight: 500; }
.minirow .node .ico { width: 24px; height: 24px; }
.minirow .node img { width: 28px; height: 28px; margin: -2px; }
.minirow .op { color: var(--ink-2); font-size: 20px; line-height: 1; }
.minirow .op.to { width: 28px; height: 2px; background: var(--ink-2); position: relative; }
.minirow .op.to::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink-2); border-right: 0; }

/* CTA band */
.band { margin: 24px auto 0; max-width: calc(var(--wrap) + 48px); padding: 0 24px; }
.band-inner { background: var(--accent-soft); border-radius: 18px; padding: 48px 32px; text-align: center; }
.band h2 { font: 700 clamp(26px, 3vw, 36px)/1.3 var(--serif); }
.band p { color: var(--ink-2); margin-top: 10px; }
.band .cta-row { justify-content: center; align-items: center; margin-top: 28px; }

/* footer */
.foot { margin-top: 56px; border-top: 1px solid var(--rule); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 22em; }
.foot h2 { font: 700 15px/1.4 var(--sans); margin-bottom: 12px; }
.foot ul { list-style: none; }
.foot li { margin: 6px 0; }
.foot li a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }

/* inner pages */
.page-hero { padding: 64px 0 48px; }
.page-hero .wrap.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.22; text-wrap: balance; }
.page-hero h1 > span { display: block; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

.cols { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols > li, .cols > div { padding: 4px 28px 24px; }
.cols > :nth-child(n) { border-left: 1px solid var(--rule); }
.cols.three > :nth-child(3n + 1), .cols:not(.two):not(.four) > :nth-child(3n + 1), .cols.two > :nth-child(2n + 1), .cols.four > :nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.cols .ico { width: 30px; height: 30px; stroke-width: 1.3; color: var(--accent); margin-bottom: 14px; }
.cols h3 { font: 700 19px/1.4 var(--serif); }
.cols p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature.rev > :first-child { order: 2; }
.feature h3 { font: 700 24px/1.35 var(--serif); }
.feature p { color: var(--ink-2); margin-top: 12px; }
.bullets { list-style: none; margin-top: 18px; }
.bullets li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15px; }
.bullets li:last-child { border-bottom: 1px solid var(--rule); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.bullets b { color: var(--ink); }
.feature + .feature { margin-top: 72px; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .thumb { aspect-ratio: 840 / 900; }
.steps .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.steps h3 { display: flex; align-items: baseline; gap: 10px; font: 700 19px/1.4 var(--serif); margin-top: 18px; }
.steps h3::before { content: counter(step, decimal-leading-zero); font: 600 18px/1 var(--serif-num); color: var(--accent); }
.steps p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
table.grid th, table.grid td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.grid tr:last-child > * { border-bottom: 0; }
table.grid thead th { font: 700 16px/1.4 var(--serif); background: var(--accent-tint); }
table.grid tbody th { font-weight: 600; color: var(--ink); width: 30%; }
table.grid td { color: var(--ink-2); }

.note { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-tint); color: var(--ink-2); font-size: 15px; border-radius: 0 8px 8px 0; }

/* plugins */
.plugin-group + .plugin-group { margin-top: 48px; }
.plugin-group h3 { font: 700 22px/1.35 var(--serif); margin-bottom: 18px; }
.plugins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.plugins li { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; }
.plugins .pname { font: 600 16px/1.4 var(--mono); }
.plugins p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.plugins .pmeta { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* download */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dl-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.dl-card h3 { font: 700 26px/1.2 var(--serif); }
.dl-card .req { color: var(--muted); font-size: 15px; margin-top: 4px; }
.dl-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.dl-card dt { color: var(--muted); }
.dl-card dd { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.todo { outline: 1.5px dashed var(--accent); outline-offset: 2px; border-radius: 3px; }
.os-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.os-help > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 26px 28px; }
.os-help h3 { font: 700 20px/1.4 var(--serif); margin-bottom: 12px; }
.os-help ol { padding-left: 1.3em; color: var(--ink-2); font-size: 15px; }
.os-help li { margin: 8px 0; }
.os-help .aside { margin-top: 14px; color: var(--muted); font-size: 14px; }
pre { margin: 10px 0 0; padding: 12px 14px; background: #24211D; color: #F5EFE6; border-radius: 8px; overflow-x: auto; font: 13px/1.6 var(--mono); }
code { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--bg-band); padding: 1px 5px; border-radius: 4px; }

/* docs hub and doc pages */
.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.doc-cards a { display: flex; flex-direction: column; height: 100%; padding: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; transition: border-color .15s ease; }
.doc-cards a:hover { border-color: var(--ink-2); }
.doc-cards .ico { width: 32px; height: 32px; color: var(--accent); stroke-width: 1.3; }
.doc-cards b { display: block; font: 700 21px/1.35 var(--serif); margin-top: 18px; }
.doc-cards span { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; flex: 1; }
.doc-cards .more { margin-top: 20px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 8px; }
.doc-toc { position: sticky; top: 96px; font-size: 14px; border-left: 1px solid var(--rule); padding-left: 18px; }
.doc-toc b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.doc-toc ol { list-style: none; }
.doc-toc li { margin: 7px 0; }
.doc-toc a { color: var(--ink-2); text-decoration: none; }
.doc-toc a:hover { color: var(--accent-ink); }
.doc { max-width: 760px; }
.doc > section { padding: 8px 0 40px; }
.doc > section + section { border-top: 1px solid var(--rule); padding-top: 40px; }
.doc h2 { font: 700 28px/1.35 var(--serif); margin-bottom: 16px; }
.doc h3 { font: 700 20px/1.4 var(--serif); margin: 28px 0 10px; }
.doc h4 { font: 600 16px/1.5 var(--sans); margin: 20px 0 8px; }
.doc p { color: var(--ink-2); margin: 12px 0; }
.doc ul, .doc ol { padding-left: 1.4em; color: var(--ink-2); margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc figure { margin: 22px 0; }
.doc figure img { border-radius: 10px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.doc figure.narrow img { max-width: min(420px, 100%); }
.doc .table-wrap { margin: 18px 0; }
.doc table.grid { font-size: 14px; }
.doc table.grid thead th { font: 600 14px/1.4 var(--sans); }
.doc table.grid tbody th { width: auto; }
.doc .note { margin: 18px 0; }
.doc .note.warn { border-left-color: #B42318; background: #FEF3F2; }
.doc kbd { font: 12px/1 var(--mono); padding: 2px 6px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }

/* responsive */
@media (max-width: 960px) {
  .hero .wrap, .page-hero .wrap.split, .boundary, .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.rev > :first-child { order: 0; }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 28px 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--rule); }
  .tiles, .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shapes, .dl, .os-help, .plugins { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .cols, .cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols > :nth-child(n) { border-left: 0; padding: 18px 20px 18px 0; border-top: 1px solid var(--rule); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-toc { position: static; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .top .wrap { height: 64px; gap: 12px; }
  .brand { font-size: 20px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding: 32px 0 24px; }
  .lead { font-size: 17px; }
  .sec { padding: 48px 0; }
  .sec-head { gap: 12px; }
  .sec-head .n { font-size: 22px; }
  .strip li, .strip li:first-child { padding: 18px 12px 18px 0; }
  .strip li + li { border-left: 0; }
  .strip li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
  .strip li { flex-direction: column; gap: 8px; }
  .strip .ico { width: 28px; height: 28px; }
  .strip b { font-size: 16px; }
  .flow, .flow.compact { grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 0; }
  .flow .wire { display: none; }
  .flow .vlink { display: block; }
  .flow .arrow { width: 2px; height: 32px; margin: 6px auto; }
  .flow .arrow::after { right: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 9px solid var(--ink-2); border-bottom: 0; }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .node { font-size: 15px; padding: 12px; }
  .tiles, .doc-cards, .cols, .cols.two, .cols.four { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 18px 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .shape { padding: 22px 18px 24px; }
  .minirow { gap: 6px; }
  .minirow .node { min-width: 0; padding: 8px; font-size: 12px; }
  .minirow .op.to { width: 14px; }
  .band { padding: 0 16px; }
  .band-inner { padding: 36px 18px; }
  .band .btn { width: 100%; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .page-hero { padding: 40px 0 32px; }
  table.grid th, table.grid td { padding: 12px; }
}
.vlink { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.art { width: 100%; height: auto; }
.after { margin-top: 28px; }
.art-mark { position: relative; }
.art-mark .mark { position: absolute; left: 50%; top: 46%; width: 15%; height: auto; transform: translate(-50%, -50%); }
.spec { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px 28px; box-shadow: var(--shadow); }
.spec-head { font: 700 17px/1.4 var(--serif); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.spec ol, .spec ul, ol.spec { list-style: none; counter-reset: c; }
.spec li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 15px; }
.spec li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec ol li::before, ol.spec > li::before { counter-increment: c; content: counter(c, decimal-leading-zero); font: 600 14px/1.6 var(--serif-num); color: var(--accent); }
.spec ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--accent); }
.path { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: s; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--rule-strong); }
.path li { counter-increment: s; position: relative; padding-right: 16px; }
.path .dot { position: relative; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule-strong); color: var(--ink); }
.path li.hot .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-tint); }
.path .dot .ico { width: 24px; height: 24px; }
.path b { display: flex; gap: 8px; align-items: baseline; margin-top: 18px; font: 700 17px/1.35 var(--serif); }
.path b::before { content: counter(s, decimal-leading-zero); font: 600 14px/1 var(--serif-num); color: var(--accent); }
.path p { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 960px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .path li { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 18px; padding: 0 0 22px; }
  .path .dot { grid-row: span 2; }
  .path b { margin-top: 6px; }
}
details.qa { border-top: 1px solid var(--rule); }
details.qa:last-of-type { border-bottom: 1px solid var(--rule); }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 700 18px/1.45 var(--serif); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; flex: none; font: 400 24px/1 var(--sans); color: var(--accent); }
details.qa[open] summary::after { content: "−"; }
details.qa .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
details.qa .ans p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h3 { font: 700 15px/1.4 var(--sans); color: var(--muted); margin-bottom: 4px; }
.deploy-steps li { padding: 18px 0; font-size: 15px; }
.deploy-steps li::before { font-size: 20px !important; min-width: 34px; }
.deploy-steps b { display: block; font: 700 19px/1.4 var(--serif); color: var(--ink); }
.deploy-steps span { display: block; margin-top: 4px; }
.deploy-steps a { color: var(--accent-ink); }
.dl-card h2 { font: 700 26px/1.2 var(--serif); }
.steps-text h3 { margin-top: 0; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.contact-card h3 { font: 700 22px/1.35 var(--serif); }
.contact-card .mailto { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 600 20px/1.3 var(--sans); color: var(--accent-ink); text-decoration: none; word-break: break-all; }
.contact-card .mailto .ico { width: 26px; height: 26px; }
@media (max-width: 760px) { .contact-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 24px; } }
