/* Homepage download-card integration. Shared shell/contact styles live in
   theme-components.css; existing widget styles continue to own layout. */
/* Compatibility aliases are local to the shared download card, never :root. */
.tb-theme-home .win-download-card {
  --accent: var(--tb-action-bg);
  --accent-strong: var(--tb-action-hover);
  --accent-soft: var(--tb-selection-bg);
  --bg-soft: var(--tb-canvas);
  --surface: var(--tb-surface);
  --line: var(--tb-border-subtle);
  --line-strong: var(--tb-border-control);
  --text: var(--tb-text);
  --muted: var(--tb-text-muted);
  --muted-2: var(--tb-text-muted);
}
.tb-theme-home :is(.win-hero-main, .win-hero-side, .win-section-card, .win-feature-card) {
  box-shadow: var(--tb-shadow-card);
}
.tb-theme-home :is(.win-hero-title, .win-hero-title2, .win-feature-title) { color: var(--tb-heading); }
.tb-theme-home .win-feature-card.is-focus {
  border-color: var(--tb-selection-indicator);
  box-shadow: var(--tb-shadow-raised);
}
.tb-theme-home .win-btn-primary,
.tb-theme-home .win-download-btn { color: var(--tb-on-brand); }
.tb-theme-home .win-btn-primary:active,
.tb-theme-home .win-download-btn:not(.done):active {
  background: var(--tb-action-pressed);
  border-color: var(--tb-action-pressed);
}
.tb-theme-home .win-btn-secondary { color: var(--tb-brand); }
.tb-theme-home .win-btn-secondary:hover {
  color: var(--tb-brand-hover);
  background: var(--tb-selection-bg);
  border-color: var(--tb-brand-hover);
}
.tb-theme-home .win-btn-secondary:active { color: var(--tb-brand-deep); }
.tb-theme-home .win-btn-soft { border-color: var(--tb-border-control); }
.tb-theme-home .win-download-btn.done {
  color: var(--tb-on-brand);
  background: var(--tb-success);
}
.tb-theme-home .win-download-spinner {
  border-color: currentColor;
  border-right-color: transparent;
}
.tb-theme-home .win-download-btn::after {
  background: linear-gradient(90deg, transparent, var(--tb-brand-hover), transparent);
}
.tb-theme-home .win-feature-belt::before {
  background: linear-gradient(180deg, var(--tb-surface) 8%, transparent);
}
.tb-theme-home .win-feature-belt::after {
  background: linear-gradient(0deg, var(--tb-surface) 8%, transparent);
}
.tb-theme-home .win-feature-index-btn {
  background: var(--tb-border-control);
  border-color: var(--tb-border-control);
}
.tb-theme-home .win-feature-index-btn:hover { background: var(--tb-canvas); }
.tb-theme-home .win-feature-index-btn.is-active {
  background: var(--tb-surface);
  border-color: var(--tb-selection-indicator);
  box-shadow: var(--tb-shadow-card);
}
.tb-theme-home .win-meta-item { background: var(--tb-surface-soft); }
.tb-theme-home .win-status-ready { color: var(--tb-success-text); background: var(--tb-success-bg); }
.tb-theme-home .win-status-warn { color: var(--tb-warning-text); background: var(--tb-warning-bg); }
.tb-theme-home .win-status-lock { color: var(--tb-danger); background: var(--tb-danger-bg); }
.tb-theme-home .win-download-card :is(a, button):focus-visible {
  outline: 2px solid var(--tb-focus);
  outline-offset: 3px;
}
