.tab-shell {
  min-width: 0;
}
.tab-list {
  display: flex;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 5px;
  overflow-x: auto;
  color: var(--color-text);
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  scrollbar-width: thin;
}
.tab-list [role="tab"] {
  min-width: max-content;
  min-height: 42px;
  padding: 8px 18px;
  color: var(--color-muted);
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.tab-list [role="tab"]:hover {
  color: var(--color-text);
}
.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  color: var(--color-on-accent);
  background: var(--color-accent);
  box-shadow: var(--shadow-soft);
}
[role="tabpanel"][hidden] {
  display: none;
}
.toc-tabs {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 38px;
  padding: 8px;
  overflow-x: auto;
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overscroll-behavior-inline: contain;
}
.toc-tabs a {
  min-width: max-content;
  padding: 8px 13px;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.toc-tabs a:hover {
  color: var(--color-text);
  background: var(--color-panel-soft);
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 54px 16px 20px;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  position: absolute;
  right: 20px;
  content: "+";
  color: var(--color-accent-dark);
  font-size: 22px;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 20px 20px;
  color: var(--color-muted);
}
.faq-answer > :last-child {
  margin-bottom: 0;
}
.term-grid,
.download-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.term-card {
  min-width: 0;
  padding: 22px;
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.term-card dt {
  margin-bottom: 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
}
.term-card dd {
  margin: 0;
}
.download-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.download-card.is-featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
}
.download-card.is-archived {
  background: var(--color-panel-soft);
}
.download-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 15px;
}
.download-card-head img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}
.download-card-title {
  min-width: 0;
  flex: 1;
}
.download-card-title h3 {
  margin-bottom: 5px;
}
.download-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.client-badge {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  overflow: hidden;
  color: var(--color-muted);
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 750;
}
.client-badge--top,
.client-badge--recommended {
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}
.client-badge--retired {
  color: var(--color-error);
  background: var(--color-panel);
  border-color: var(--color-error);
}
.download-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
[data-version]:empty {
  display: none;
}
.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 13px;
  color: var(--color-muted);
  font-size: 12.5px;
}
.post-card h3 {
  margin-bottom: 11px;
  font-size: 20px;
}
.post-card p {
  margin-bottom: 18px;
}
.post-card-link {
  margin-top: auto;
  color: var(--color-accent-dark);
  font-weight: 750;
}
.callout {
  position: relative;
  margin-block: 24px;
  padding: 18px 20px 18px 24px;
  color: var(--color-text);
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.callout::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 4px;
  content: "";
  background: var(--color-accent);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}
.callout strong {
  display: block;
  margin-bottom: 4px;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout--warning::before {
  background: var(--color-warning);
}
.callout--error::before {
  background: var(--color-error);
}
.dl-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 35;
  max-width: min(320px, calc(100vw - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 12px;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-button);
}
.dl-fab:hover {
  color: var(--color-on-accent);
  background: var(--color-accent-dark);
}
.dl-fab-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--color-accent-dark);
  background: var(--color-panel);
  border-radius: var(--radius-md);
}
.dl-fab-icon svg {
  width: 19px;
  height: 19px;
}
.dl-fab-copy {
  min-width: 0;
  line-height: 1.3;
}
.dl-fab-copy strong,
.dl-fab-copy span {
  display: block;
  color: var(--color-on-accent);
}
.dl-fab-copy span {
  margin-top: 3px;
  font-size: 11.5px;
}
.article-download {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  padding: 24px;
  color: var(--color-text);
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.prose {
  min-width: 0;
}
.prose > * {
  max-width: 100%;
}
.prose > .data-table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose h2 {
  margin-top: 2em;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose a:not([class*="btn"]):not([class*="button"]) {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose li + li {
  margin-top: .45em;
}
.demo-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  background: var(--color-panel-soft);
  border-radius: var(--radius-md);
}
.demo-icon svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 720px) {
  .term-grid,
  .download-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .toc-tabs {
    top: 8px;
  }
  .article-download {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .dl-fab {
    right: 16px;
    bottom: 16px;
  }
}