.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel-2); color: var(--text); }
[role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--transparent); border-radius: var(--radius-sm); background: var(--transparent); color: var(--text-muted); font-weight: var(--weight-medium); }
[role="tab"]:hover { color: var(--link); }
[role="tab"][aria-selected="true"] { border-color: var(--border); background: var(--bg-panel); color: var(--link); box-shadow: var(--shadow-card); }
[role="tabpanel"] { min-width: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-bottom: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border-radius: var(--radius-sm); color: var(--link); }
.toc a:hover { background: var(--accent-tint); color: var(--link); text-decoration: none; }
.toc-sticky { position: sticky; top: 16px; z-index: 10; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); margin-bottom: 12px; box-shadow: var(--shadow-card); }
.faq-item summary { position: relative; padding: 20px 52px 20px 24px; cursor: pointer; font-weight: var(--weight-medium); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 18px; color: var(--accent-dark); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-answer p + p { margin-top: 12px; }
.term-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); min-width: 0; }
.term-card h3 { margin: 10px 0 12px; font-size: 22px; }
.term-card p { color: var(--text-muted); }
.term-alias { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.badge-row, .tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-badge, .tag { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg-panel-2); color: var(--text); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.badge-first, .badge-recommended { background: var(--accent-tint); color: var(--success-text); }
.badge-recommended::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--success); color: var(--text); }
.badge-archived { background: var(--warn-tint); color: var(--warn-text); }
.client-card { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.client-card.is-featured { border-color: var(--accent); }
.client-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-title { min-width: 0; flex: 1; }
.client-title h3 { font-size: 24px; margin-bottom: 6px; }
.client-card p { color: var(--text-muted); margin-bottom: 20px; }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.client-actions .btn { min-width: 0; white-space: normal; }
.client-meta { margin-top: 18px; color: var(--text-muted); font-size: 13px; }
[data-ver]:empty { display: none; }
.post-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.post-card h3 { font-size: 22px; line-height: 1.45; margin: 16px 0 12px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--link); }
.post-card p { color: var(--text-muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; }
.post-card .text-link { align-self: flex-start; margin-top: 20px; }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent-dark); border-radius: var(--radius-sm); background: var(--accent-dark-tint); color: var(--text); }
.callout p + p { margin-top: 10px; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-medium); }
.callout-warn { border-left-color: var(--warn); background: var(--warn-tint); color: var(--warn-text); }
.callout-error { border-left-color: var(--error); background: var(--error-tint); color: var(--error-text); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table :is(th,td), .prose table :is(th,td), .article-body table :is(th,td) { min-width: 7em; padding: 15px 20px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th, .article-body table th { font-weight: var(--weight-medium); background: var(--bg-panel-2); color: var(--text); }
.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; width: 100%; border-collapse: collapse; background: var(--bg-panel); color: var(--text); }
.prose table code, .article-body table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; z-index: 15; right: 24px; bottom: max(24px,env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100% - 36px); min-height: 56px; padding: 12px 20px; border: 1px solid var(--accent-dark); border-radius: var(--radius); background: var(--accent-dark); color: var(--on-accent); box-shadow: var(--shadow-card-hover); font-size: 14px; }
.dl-fab:hover { background: var(--accent-dark-hover); color: var(--on-accent); text-decoration: none; }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab small { display: block; font-size: 12px; }
.article-download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.article-download h2 { font-size: 24px; margin: 0 0 8px; }
.article-download p { color: var(--text-muted); margin: 0; }
.strip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 72px; align-items: center; }
.strip + .strip { margin-top: 120px; }
.strip.reverse .strip-art { order: 2; }
.strip-art { width: 100%; max-width: 480px; height: auto; justify-self: center; }
.strip h3 { margin-bottom: 28px; }
.point { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 18px; align-items: start; }
.point + .point { margin-top: 24px; }
.point-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--accent-dark); color: var(--on-accent); display: grid; place-items: center; }
.point-ico svg { width: 22px; height: 22px; }
.point p { line-height: 1.75; color: var(--text-muted); }
.notes { padding-top: 40px; padding-bottom: 128px; }
.notes-head { text-align: center; margin-bottom: 64px; }
.client-window { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); overflow: clip; }
.window-bar { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-panel-2); color: var(--text-muted); font-size: 13px; }
.window-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--error); color: var(--text); }
.window-dot.warn { background: var(--warn); color: var(--text); }
.window-dot.good { background: var(--success); color: var(--text); }
.window-title { margin-left: 10px; }
.window-body { display: grid; grid-template-columns: 140px minmax(0,1fr); }
.window-sidebar { padding: 20px; border-right: 1px solid var(--border); background: var(--bg-panel-2); color: var(--text-muted); font-size: 14px; }
.window-sidebar ul { list-style: none; padding: 0; margin: 0; }
.window-sidebar li { padding-block: 8px; }
.window-sidebar .selected { color: var(--link); }
.window-body pre { margin: 0; border: 0; border-radius: 0; background: var(--bg-panel); color: var(--text); }
.window-demo { display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 24px; margin-top: 40px; }
.window-note { color: var(--accent-dark); font-size: 16px; }
.window-note svg { width: 150px; height: 100px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 16px; }
.swatch { min-width: 0; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; }
.swatch-sample { display: block; height: 64px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 10px; background: var(--bg-panel); color: var(--text); font-size: 11px; }
.sample-bg { background: var(--bg); color: var(--text); }
.sample-panel { background: var(--bg-panel); color: var(--text); }
.sample-panel2 { background: var(--bg-panel-2); color: var(--text); }
.sample-border { background: var(--border); color: var(--text); }
.sample-accent { background: var(--accent); color: var(--text-hover); }
.sample-teal { background: var(--accent-dark); color: var(--on-accent); }
.sample-text { background: var(--text); color: var(--on-accent); }
.sample-muted { background: var(--text-muted); color: var(--on-accent); }
.sample-success { background: var(--success); color: var(--text-hover); }
.sample-warn { background: var(--warn); color: var(--text-hover); }
.sample-error { background: var(--error); color: var(--on-accent); }
.sample-tint { background: var(--accent-tint); color: var(--text); }
.sample-teal-tint { background: var(--accent-dark-tint); color: var(--text); }
.sample-hover { background: var(--accent-hover); color: var(--on-accent); }
.sample-teal-hover { background: var(--accent-dark-hover); color: var(--on-accent); }
.sample-text-hover { background: var(--text-hover); color: var(--on-accent); }
.sample-line { background: var(--line-soft); color: var(--text); }
.sample-ink { background: var(--ink-soft); color: var(--text); }
.sample-link { background: var(--link); color: var(--on-accent); }
.sample-success-text { background: var(--success-text); color: var(--on-accent); }
.sample-warn-text { background: var(--warn-text); color: var(--on-accent); }
.sample-error-text { background: var(--error-text); color: var(--on-accent); }
.sample-warn-tint { background: var(--warn-tint); color: var(--text); }
.sample-error-tint { background: var(--error-tint); color: var(--text); }
.sample-veil { background: var(--veil); color: var(--text); }
.preview-stack > * + * { margin-top: 24px; }
.preview-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.preview-static-nav { display: block; }
@media (max-width: 1080px) {
  .preview-static-nav .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .preview-static-nav a { padding: 9px; }
}
@media (max-width: 900px) {
  .strip { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .strip.reverse .strip-art { order: 0; }
  .window-demo { grid-template-columns: minmax(0,1fr); }
  .window-note { display: none; }
}
@media (max-width: 640px) {
  .toc { padding: 8px; gap: 4px; }
  .toc a { padding-inline: 10px; font-size: 14px; }
  .client-card, .term-card, .post-card { padding: 22px; }
  .window-body { grid-template-columns: minmax(0,1fr); }
  .window-sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 16px; }
  .window-sidebar ul { display: flex; flex-wrap: wrap; gap: 12px; }
  .strip + .strip { margin-top: 72px; }
  .notes { padding-bottom: 64px; }
  .dl-fab { right: 18px; bottom: max(18px,env(safe-area-inset-bottom)); padding: 10px 16px; }
  body.has-dl-fab .site-footer { padding-bottom: 110px; }
  .preview-static-nav { display: none; }
}
@media print { .dl-fab { display: none; } }