.hero {
  position: relative;
  overflow-x: clip;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 20px var(--gutter) 64px;
}
.hero__copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  text-align: center;
}
.hero__copy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: min(920px, 100vw);
  height: 340px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--border) 1px, var(--clear) 1px), linear-gradient(to bottom, var(--border) 1px, var(--clear) 1px);
  background-size: 40px 40px;
  background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, var(--text) 18%, var(--clear) 100%);
  mask-image: radial-gradient(closest-side, var(--text) 18%, var(--clear) 100%);
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 3px 11px; border: 1px solid var(--bg-panel-2); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 18px; max-width: 100%; overflow-wrap: anywhere; }
.hero__title { margin: 0 0 14px; font-size: var(--text-h1); line-height: var(--leading-display); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); }
.hero__title .line { display: block; }
.hero__title .hl { font-style: normal; color: var(--accent-2); }
.hero__lead { max-width: 680px; margin: 0 0 24px; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.hero__lead strong { color: var(--text); font-weight: var(--weight-strong); }
.hero__lead code { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-bottom: 18px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 0 34px; padding: 0; list-style: none; }
.platforms li { margin: 0; }
.platforms a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 11px; border-radius: var(--radius-pill); color: var(--text-muted); font-size: 13.5px; font-weight: var(--weight-medium); text-decoration: none; }
.platforms a:hover { color: var(--text); background: var(--bg-panel); }
.platforms svg { width: 15px; height: 15px; flex-shrink: 0; }
.platforms .tux { width: 13px; }
.stage { position: relative; width: min(1080px, 100%); min-width: 0; margin: 0; }
.term { position: relative; padding: 0 12px 40px; border: 1px solid var(--bg-panel-2); border-radius: var(--radius-xl); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-device); }
.term__chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 45px; margin: 0 -12px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 8px; }
.dots i { display: block; width: 11px; height: 11px; border-radius: var(--radius-round); background: var(--neutral-300); flex-shrink: 0; }
.term__title { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.01em; }
.panes { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-rows: auto auto; gap: 1px; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--border); color: var(--text); overflow: hidden; text-align: left; }
.pane { min-width: 0; background: var(--bg); color: var(--text); }
.pane--edit { grid-row: 1 / span 2; }
.pane__head { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 16px; border-bottom: 1px solid var(--bg-panel-2); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.pane__idx { display: grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: var(--radius-index); background: var(--bg-panel-2); color: var(--text-muted); font-size: 10px; font-weight: var(--weight-strong); }
.pane--edit .pane__idx { background: var(--accent); color: var(--on-accent); }
.pane__name { color: var(--text); font-weight: var(--weight-medium); }
.pane__path { margin-left: auto; overflow-wrap: anywhere; }
.code { margin: 0; border: 0; border-radius: 0; padding: 10px 16px 24px; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; }
.row { white-space: pre; }
.code--wrap .row { white-space: pre-wrap; overflow-wrap: anywhere; }
.row--focus { margin: 0 -16px; padding: 0 16px; background: var(--accent-tint); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.n { display: inline-block; width: 2ch; margin-right: 16px; text-align: right; color: var(--text-muted); }
.k { color: var(--accent); }
.c, .m { color: var(--text-muted); }
.ok { color: var(--success); }
.b { font-weight: var(--weight-strong); }
.cmd { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 13px 18px 13px 13px; border: 1px solid var(--bg-panel-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); font-family: var(--font-mono); font-size: 13px; line-height: 20px; white-space: nowrap; text-align: left; }
.cmd code { font-family: inherit; font-size: inherit; }
.cmd--left { left: -28px; bottom: -26px; }
.cmd--right { right: -22px; bottom: -12px; transform: rotate(2deg); }
.cmd__tag { flex-shrink: 0; padding: 3px 8px; border-radius: var(--radius-xs); background: var(--bg-panel-2); color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; line-height: 16px; }
.cmd__tag--alt { background: var(--accent-2); color: var(--on-accent); }
.annot { display: none; position: absolute; left: -150px; top: 0; width: 180px; height: 160px; z-index: 3; pointer-events: none; }
.annot__note { position: absolute; left: 0; top: 8px; color: var(--text); font-size: 15px; font-weight: var(--weight-strong); letter-spacing: .04em; transform: rotate(-6deg); white-space: nowrap; }
.annot__svg { position: absolute; left: 18px; top: 44px; width: 158px; height: 110px; overflow: visible; }
.annot__svg path { fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts { background: var(--bg-panel); color: var(--text); }
.facts ul { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1080px; margin: 0 auto; padding: 20px var(--gutter); list-style: none; font-family: var(--font-mono); font-size: 13px; gap: 10px 0; }
.facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 24px; }
.facts li + li { border-left: 1px solid var(--border); }
.facts .fk { color: var(--text-muted); }
.facts .dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--success); }
.tabs { min-width: 0; }
.tab-rail { display: flex; justify-content: center; margin-bottom: 48px; min-width: 0; max-width: 100%; }
.tab-list, [role="tablist"].tab-list {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel-2);
  color: var(--text);
}
.tab-list [role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--clear);
  color: var(--text);
  font-weight: var(--weight-strong);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.tab-list [role="tab"]:hover { background: var(--bg); color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--text); color: var(--on-accent); }
.tab-list [role="tab"]:focus-visible { outline-offset: -3px; }
.tab-panel { min-width: 0; }
.feature-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.feature-detail > * { min-width: 0; }
.feature-detail p { max-width: 620px; color: var(--text-muted); }
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip, .badge { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg-panel-2); color: var(--text-muted); font-size: var(--text-xs); line-height: 1.6; font-weight: var(--weight-medium); white-space: normal; overflow-wrap: anywhere; }
.chip { font-family: var(--font-mono); }
.badge--primary { background: var(--accent); color: var(--on-accent); }
.badge--recommended { background: var(--accent-tint); color: var(--accent-dark); }
.badge--archived { background: var(--bg-panel-2); color: var(--text-muted); border: 1px dashed var(--text-muted); }
.badge--success { background: var(--bg); color: var(--success); border: 1px solid var(--success); }
.badge--warn { background: var(--bg); color: var(--warn); border: 1px solid var(--warn); }
.badge--error { background: var(--bg); color: var(--error); border: 1px solid var(--error); }
.feature-figure { position: relative; isolation: isolate; min-width: 0; padding: 30px 16px; }
.feature-figure::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--accent); clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); }
.feature-figure__card { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-device); }
.feature-figure__card pre { margin: 0; padding: 12px 0; border: 0; background: var(--bg); color: var(--text); }
.feature-arrow { display: block; margin-left: auto; width: 120px; height: 55px; color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border-radius: var(--radius-pill); color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--accent-tint); color: var(--accent); }
.toc--sticky { position: sticky; top: 16px; z-index: 5; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); padding: 0 24px; margin-bottom: 12px; }
.faq-item summary { position: relative; padding: 22px 32px 22px 0; cursor: pointer; list-style: none; font-weight: var(--weight-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; color: var(--accent); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding-bottom: 22px; color: var(--text-muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 0; border-radius: var(--radius-lg); background: var(--bg-panel); color: var(--text); }
.term-card dt { font-size: var(--text-h3); font-weight: var(--weight-brand); margin: 0 0 12px; }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-card__field { display: block; margin-top: 18px; color: var(--text); font-family: var(--font-mono); font-size: var(--text-sm); }
.client-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.client-card--first { border-color: var(--accent); }
.client-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.client-card__head h3 { margin: 0; }
.client-card__body { flex: 1; }
.client-card__meta { margin-block: 16px; color: var(--text-muted); font-size: var(--text-sm); }
.client-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
[data-rev]:empty { display: none; }
.post-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--text-muted); font-size: var(--text-xs); }
.post-card h3 { font-size: var(--text-h3); }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-muted); }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.callout { padding: 22px 24px; margin: 24px 0; border: 0; border-inline-start: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-inline-start-color: var(--warn); }
.callout--error { border-inline-start-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--radius-md); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--bg); color: var(--text); font-size: var(--text-sm); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-strong); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  overscroll-behavior-inline: contain;
  background: var(--bg);
  color: var(--text);
}
.prose table code, .article-body table code { overflow-wrap: anywhere; }
.article-download { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; margin-block: 48px; border-radius: var(--radius-xl); background: var(--bg-panel); color: var(--text); }
.article-download h2 { margin: 0 0 12px; font-size: var(--text-h3); }
.article-download p { margin: 0; color: var(--text-muted); }
.dl-fab { position: fixed; z-index: 15; right: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: calc(100% - var(--gutter) * 2); min-height: 52px; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); font-weight: var(--weight-strong); font-size: var(--text-sm); text-decoration: none; }
.dl-fab svg { width: 19px; height: 19px; flex-shrink: 0; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.has-dl-fab { padding-bottom: 88px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--text); }
.swatch__paint { height: 64px; border: 1px solid var(--border); border-radius: var(--radius-xs); margin-bottom: 10px; }
.swatch code { display: block; color: var(--text); font-size: var(--text-xs); }
.swatch--bg .swatch__paint { background: var(--bg); }
.swatch--panel .swatch__paint { background: var(--bg-panel); }
.swatch--panel2 .swatch__paint { background: var(--bg-panel-2); }
.swatch--border .swatch__paint { background: var(--border); }
.swatch--neutral .swatch__paint { background: var(--neutral-300); }
.swatch--accent .swatch__paint { background: var(--accent); }
.swatch--dark .swatch__paint { background: var(--accent-dark); }
.swatch--purple .swatch__paint { background: var(--accent-2); }
.swatch--tint .swatch__paint { background: var(--accent-tint); }
.swatch--text .swatch__paint { background: var(--text); }
.swatch--muted .swatch__paint { background: var(--text-muted); }
.swatch--faint .swatch__paint { background: var(--text-faint); }
.swatch--success .swatch__paint { background: var(--success); }
.swatch--warn .swatch__paint { background: var(--warn); }
.swatch--error .swatch__paint { background: var(--error); }
.swatch--on .swatch__paint { background: var(--on-accent); }
.swatch--veil .swatch__paint { background: var(--veil); }
.swatch--clear .swatch__paint { background: var(--clear); }
.type-sample { margin-bottom: 24px; }
.type-sample--display { font-size: var(--text-h1); line-height: var(--leading-display); font-family: var(--font-display); font-weight: var(--weight-display); }
.preview-label { margin: 0 0 20px; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
@media (min-width: 1420px) { .annot { display: block; } }
@media (max-width: 1180px) { .cmd--left { left: -12px; } .cmd--right { right: -10px; } }
@media (max-width: 1024px) {
  .cmd { font-size: 12px; }
  .cmd--left { left: 16px; }
  .cmd--right { right: 16px; bottom: -48px; }
  .hero { padding-bottom: 90px; }
  .feature-detail { gap: 28px; }
}
@media (max-width: 960px) { .hero { min-height: auto; padding-top: 40px; } }
@media (max-width: 800px) {
  .feature-detail { grid-template-columns: minmax(0, 1fr); }
  .feature-figure { max-width: 600px; width: 100%; margin-inline: auto; }
  .tab-rail { justify-content: flex-start; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero__cta { flex-direction: column; gap: 14px; }
  .term { padding-bottom: 12px; border-radius: var(--radius-lg); }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane--edit { grid-row: auto; }
  .code .row { white-space: pre-wrap; overflow-wrap: anywhere; }
  .stage { display: grid; gap: 12px; }
  .cmd, .cmd--left, .cmd--right { position: static; transform: none; white-space: normal; }
  .cmd code { min-width: 0; overflow-wrap: anywhere; }
  .hero { padding-bottom: 48px; }
  .facts li + li { border-left: 0; }
  .facts li { padding-inline: 12px; }
  .article-download { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero__title { font-size: 28px; }
  .hero__lead { font-size: 15.5px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-sample--display { font-size: 28px; }
  .client-card, .term-card, .post-card { padding: 22px; }
  .feature-figure__card { padding: 18px; }
  .pane__head { flex-wrap: wrap; }
  .pane__path { margin-left: 0; }
  .annot { display: none; }
  .cmd--right { transform: none; }
}