.tabs { min-width: 0; }
.tab-list, [role="tablist"] { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tab-list { overflow-x: auto; max-width: 100%; padding: 4px; }
[role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text);
  font-size: var(--text-small);
  transition: transform var(--ease), border-color var(--ease);
}
[role="tab"]:hover { border-color: var(--accent); }
[role="tab"][aria-selected="true"] { border-color: var(--accent); background: var(--tint-orange); color: var(--text); }
[role="tabpanel"] { min-width: 0; margin-top: 20px; }
.feature-tabs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
.outline-tabs {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  gap: 12px;
  padding-block: 12px;
}
.outline-tabs::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 13px; width: 2px; background: var(--teal); }
.outline-tabs [role="tab"] {
  position: relative;
  justify-content: flex-start;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--clear);
  color: var(--text);
  padding-left: 38px;
  font-size: var(--text-base);
}
.outline-tabs [role="tab"]::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: var(--r-round);
  background: var(--peri);
}
.outline-tabs [role="tab"][aria-selected="true"] { transform: translateX(5px); background: var(--clear); color: var(--text); }
.outline-tabs [role="tab"][aria-selected="true"]::before { background: var(--accent); }
.feature-panel { margin-top: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); color: var(--text); }
.feature-demo { padding: 32px; background: var(--tint-orange); color: var(--text); }
.feature-demo--teal { background: var(--tint-teal); color: var(--text); }
.feature-demo--peri { background: var(--tint-peri); color: var(--text); }
.feature-demo pre { margin: 0; border: 0; background: var(--clear); color: var(--text); padding: 0; }
.feature-copy { padding: 32px; }
.feature-copy h3 { margin-top: 0; }
.feature-copy p:last-child { margin-bottom: 0; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  color: var(--text);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-pill); color: var(--text); text-decoration: none; }
.toc a:hover, .toc a[aria-current] { background: var(--tint-orange); color: var(--text); }
.toc--sticky { position: sticky; top: 16px; z-index: 5; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--text); }
.faq-item summary { position: relative; min-height: 56px; padding: 18px 48px 18px 22px; cursor: pointer; list-style: none; font-weight: var(--weight-medium); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 17px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 22px; color: var(--text); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--teal); }
.term-card dt { font-size: var(--title-3); margin-bottom: 12px; font-weight: var(--weight-medium); }
.term-card dd { margin: 0; color: var(--muted); }
.term-card .term-alias { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: var(--text-small); }
.client-card { position: relative; }
.client-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.client-heading h3 { margin: 0; }
.client-version { font-family: var(--font-mono); color: var(--muted); font-size: var(--text-small); }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.client-note { margin-top: 16px; color: var(--muted); font-size: var(--text-small); }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--text-tiny); font-weight: var(--weight-medium); background: var(--panel-2); color: var(--text); overflow-wrap: anywhere; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--post); flex-shrink: 0; }
.badge--primary { background: var(--tint-orange); color: var(--text); }
.badge--primary::before { background: var(--accent); }
.badge--recommended { background: var(--tint-teal); color: var(--text); }
.badge--recommended::before { background: var(--teal); }
.badge--retired { background: var(--panel-2); color: var(--text); }
.badge--retired::before { background: var(--muted); }
.blog-card { display: flex; flex-direction: column; gap: 16px; }
.blog-card h3 { margin: 0; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent-dark); }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: var(--text-small); }
.blog-card p { color: var(--muted); margin: 0; }
.blog-card .read-link { margin-top: auto; align-self: flex-start; }
.callout { margin: 24px 0; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--tint-orange); color: var(--text); }
.callout--note { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.callout p:last-child { margin-bottom: 0; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--text); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--panel); color: var(--text); font-size: var(--text-small); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--panel-2); color: var(--text); font-weight: var(--weight-medium); }
.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;
  background: var(--panel);
  color: var(--text);
}
.article-body table th, .article-body table td { min-width: 7em; padding: 14px 18px; overflow-wrap: normal; word-break: normal; }
.prose table code, .data-table code, .article-body table code { overflow-wrap: anywhere; word-break: normal; }
.download-outro { margin-top: 40px; padding: 28px; border-radius: var(--r-lg); background: var(--panel-2); color: var(--text); }
.download-outro h2 { margin-top: 0; font-size: var(--title-3); }
.download-outro p { max-width: 42em; color: var(--muted); }
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 18px 5px 6px;
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: border-color var(--ease);
}
.dl-fab:hover { border-color: var(--accent); }
.dl-fab-ic { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); color: var(--text); }
.dl-fab-ic svg { width: 16px; height: 16px; }
.river-downloads { display: grid; gap: 12px; }
.river-downloads a { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 80px; padding: 22px 28px; border-radius: var(--r-lg); background: var(--panel); color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.river-downloads a::before { content: ""; width: 30px; height: 3px; border-radius: var(--r-pill); background: var(--teal); flex-shrink: 0; }
.river-downloads a span:first-of-type { margin-right: auto; }
.kernel-family { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 48px; }
.kernel-root { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--panel); color: var(--text); text-align: center; }
.kernel-branches { position: relative; display: grid; gap: 20px; padding-left: 24px; border-left: 2px solid var(--teal); }
.kernel-branches .card { position: relative; }
.kernel-branches .card::before { content: ""; position: absolute; left: -26px; top: 36px; width: 24px; border-top: 2px solid var(--teal); }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatch { margin: 0; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--text); }
.swatch-chip { display: block; height: 54px; border-radius: var(--r-xs); border: 1px solid var(--line); }
.swatch figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: var(--text-tiny); overflow-wrap: anywhere; }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--panel); }
.sw-panel-2 { background: var(--panel-2); }
.sw-line { background: var(--line); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-teal { background: var(--teal); }
.sw-teal-ink { background: var(--teal-ink); }
.sw-peri { background: var(--peri); }
.sw-peri-ink { background: var(--peri-ink); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--muted); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-sky-top { background: var(--sky-top); }
.sw-sky-bottom { background: var(--sky-bottom); }
.sw-cloud { background: var(--cloud); }
.sw-snow { background: var(--snow); }
.sw-ridge { background: var(--ridge); }
.sw-peak-1 { background: var(--peak-1); }
.sw-peak-1-shade { background: var(--peak-1-shade); }
.sw-peak-2 { background: var(--peak-2); }
.sw-peak-2-shade { background: var(--peak-2-shade); }
.sw-hill-1 { background: var(--hill-1); }
.sw-hill-2 { background: var(--hill-2); }
.sw-hill-3 { background: var(--hill-3); }
.sw-bush-back { background: var(--bush-back); }
.sw-bush-front { background: var(--bush-front); }
.sw-river { background: var(--river); }
.sw-ripple { background: var(--ripple); }
.sw-rock { background: var(--rock); }
.sw-post { background: var(--post); }
.sw-tint-orange { background: var(--tint-orange); }
.sw-tint-teal { background: var(--tint-teal); }
.sw-tint-peri { background: var(--tint-peri); }
.sw-clear { background: var(--clear); }
.button-demo { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.type-sample { padding-block: 20px; border-bottom: 1px solid var(--line); }
.type-sample h1, .type-sample h2, .type-sample h3 { margin-top: 0; }
.preview-menu { display: none; }
.preview-menu summary { list-style: none; cursor: pointer; }
.preview-menu summary::-webkit-details-marker { display: none; }
.preview-menu nav { position: absolute; inset: 100% 0 auto; padding: 16px var(--gutter); background: var(--panel); color: var(--text); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--head-h)); overflow-y: auto; z-index: 33; }
.preview-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--text); text-decoration: none; }
.preview-language summary { list-style: none; cursor: pointer; }
.preview-language summary::-webkit-details-marker { display: none; }
@media (max-width: 1280px) { .preview-menu { display: block; } }
@media (max-width: 768px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .outline-tabs { flex-direction: row; overflow-x: auto; max-width: 100%; padding: 4px; gap: 8px; }
  .outline-tabs::before { display: none; }
  .outline-tabs [role="tab"] { border: 1px solid var(--line); border-radius: var(--r-pill); padding-left: 32px; background: var(--panel); color: var(--text); }
  .outline-tabs [role="tab"]::before { left: 12px; width: 8px; height: 8px; }
  .outline-tabs [role="tab"][aria-selected="true"] { transform: none; background: var(--tint-orange); color: var(--text); border-color: var(--accent); }
  .feature-copy, .feature-demo { padding: 24px; }
  .kernel-family { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dl-fab { right: 16px; bottom: 16px; }
  .toc--sticky { position: static; }
  .river-downloads a { padding: 20px; }
}