/**
 * TSD UI Kit — premium midnight + champagne gold system (Avada-safe)
 * Scope: .tsd-ui — fight theme heading/link resets with !important where needed.
 */

.tsd-ui {
  --tsd-brand: #b45309;
  --tsd-brand-mid: #d97706;
  --tsd-brand-soft: #fffbeb;
  --tsd-brand-line: #fcd34d;
  --tsd-ink: #0f172a;
  --tsd-muted: #64748b;
  --tsd-body: #475569;
  --tsd-line: #e2e8f0;
  --tsd-white: #ffffff;
  --tsd-hero-1: #020617;
  --tsd-hero-2: #0f172a;
  --tsd-hero-3: #1c1917;
  --tsd-radius-sm: 12px;
  --tsd-radius: 14px;
  --tsd-radius-lg: 18px;
  --tsd-radius-xl: 22px;
  --tsd-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --tsd-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
  --tsd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  color: var(--tsd-ink) !important;
  font-family: var(--tsd-font) !important;
  line-height: 1.65 !important;
}

.tsd-ui *,
.tsd-ui *::before,
.tsd-ui *::after {
  box-sizing: border-box !important;
}

.tsd-ui--hero-wrap {
  margin: 0 0 32px 0 !important;
}

.tsd-ui--section {
  margin: 0 0 14px 0 !important;
}

.tsd-ui--lede {
  margin: 0 0 18px 0 !important;
}

.tsd-ui--cards,
.tsd-ui--links,
.tsd-ui--portfolio,
.tsd-ui--faq,
.tsd-ui--cta {
  margin: 0 0 36px 0 !important;
}

/* —— Badge —— */
.tsd-ui-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--tsd-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.25 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  max-width: 100% !important;
}

.tsd-ui-badge i {
  font-size: 11px !important;
  line-height: 1 !important;
  width: 12px !important;
  text-align: center !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.tsd-ui-badge--hero {
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
  margin: 0 0 14px 0 !important;
}

.tsd-ui-badge--hero i {
  color: #fbbf24 !important;
}

.tsd-ui-badge--cta {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fde68a !important;
  margin: 0 0 12px 0 !important;
}

.tsd-ui-badge--cta i {
  color: #fbbf24 !important;
}

/* —— Hero —— */
.tsd-ui-hero {
  position: relative !important;
  overflow: hidden !important;
  background-color: var(--tsd-hero-1) !important;
  background-image: linear-gradient(155deg, #020617 0%, #0f172a 45%, #1c1917 100%) !important;
  border-radius: var(--tsd-radius-xl) !important;
  padding: 26px 24px 20px 24px !important;
  border: 1px solid rgba(251, 191, 36, 0.22) !important;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28) !important;
}

.tsd-ui-hero__orb {
  position: absolute !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

.tsd-ui-hero__orb--a {
  top: -90px !important;
  right: -60px !important;
  width: 280px !important;
  height: 280px !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.26) 0%, transparent 70%) !important;
}

.tsd-ui-hero__orb--b {
  bottom: -80px !important;
  left: -50px !important;
  width: 240px !important;
  height: 240px !important;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.16) 0%, transparent 70%) !important;
}

.tsd-ui-hero__inner {
  position: relative !important;
  z-index: 2 !important;
}

/* Critical: Avada heading CSS makes H1 dark — force white */
.tsd-ui .tsd-ui-hero__title,
.tsd-ui-hero h1.tsd-ui-hero__title,
h1.tsd-ui-hero__title {
  font-family: var(--tsd-font) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.28 !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  text-shadow: none !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
}

.tsd-ui .tsd-ui-hero__lead,
.tsd-ui-hero p.tsd-ui-hero__lead {
  color: #cbd5e1 !important;
  margin: 0 0 18px 0 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  max-width: 720px !important;
  font-family: var(--tsd-font) !important;
}

.tsd-ui-hero__lead strong {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.tsd-ui-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 16px 0 !important;
}

.tsd-ui-metric {
  flex: 1 1 150px !important;
  min-width: 140px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.tsd-ui-metric__label {
  font-family: var(--tsd-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.tsd-ui-metric__value {
  font-family: var(--tsd-font) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  line-height: 1.2 !important;
  margin-top: 4px !important;
}

/*
 * Hero media standard (landscape + square):
 * Full-width frame, fixed taller height, cover+center — edge-to-edge, no letterbox.
 * Landscape: mild top/bottom trim. Square: side trim. Height stays readable (not a short strip).
 */
.tsd-ui-hero__media {
  margin: 10px 0 0 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: #0f172a !important;
  line-height: 0 !important;
  width: 100% !important;
  height: 520px !important;
  max-height: 520px !important;
  position: relative !important;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.10) !important;
}

.tsd-ui-hero__media-link {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  border: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

.tsd-ui-hero__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  border: 0 !important;
}

/* —— Hub hero (light, calm; differentiates from dark page heroes) —— */
.tsd-ui-hero--hub {
  background-color: #fafaf9 !important;
  background-image:
    radial-gradient(ellipse 90% 70% at 92% 8%, rgba(251, 191, 36, 0.16) 0%, transparent 58%),
    linear-gradient(165deg, #fafaf9 0%, #fff7ed 55%, #f8fafc 100%) !important;
  border: 1px solid #e7e5e4 !important;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.06) !important;
  padding: 28px 28px 24px 32px !important;
  overflow: visible !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__orb--a {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%) !important;
  animation: tsd-hub-orb-a 14s ease-in-out infinite alternate !important;
  opacity: 0.85 !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__orb--b {
  background: radial-gradient(circle, rgba(148, 163, 184, 0.18) 0%, transparent 70%) !important;
  animation: tsd-hub-orb-b 16s ease-in-out infinite alternate !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__orb--c {
  top: 55% !important;
  left: 52% !important;
  width: 140px !important;
  height: 140px !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%) !important;
  animation: tsd-hub-orb-c 12s ease-in-out infinite alternate !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr) !important;
  gap: 8px 16px !important;
  align-items: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__copy {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 2px 10px 2px 0 !important;
}

.tsd-ui-badge--hero-light {
  background: #ffffff !important;
  border: 1px solid #e7e5e4 !important;
  color: #78716c !important;
  box-shadow: none !important;
  margin: 0 0 16px 0 !important;
  align-self: flex-start !important;
}

.tsd-ui-badge--hero-light i {
  color: #d97706 !important;
}

.tsd-ui .tsd-ui-hero--hub .tsd-ui-hero__title,
.tsd-ui-hero--hub h1.tsd-ui-hero__title,
.tsd-ui-hero--hub .tsd-ui-hero__title {
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  background: none !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  margin: 0 0 12px 0 !important;
  max-width: 18ch !important;
}

.tsd-ui .tsd-ui-hero--hub .tsd-ui-hero__lead,
.tsd-ui-hero--hub p.tsd-ui-hero__lead {
  color: #57534e !important;
  max-width: 48ch !important;
  margin: 0 0 16px 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__lead strong {
  color: #b45309 !important;
}

/* Slim trust strip - single quiet row */
.tsd-ui-metrics--hub {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 14px 0 0 0 !important;
  padding: 12px 0 0 0 !important;
  border-top: 1px solid #e7e5e4 !important;
  background: transparent !important;
}

.tsd-ui-metrics--hub .tsd-ui-metric {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid #e7e5e4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 18px !important;
  backdrop-filter: none !important;
  transition: none !important;
}

.tsd-ui-metrics--hub .tsd-ui-metric:first-child {
  padding-left: 0 !important;
}

.tsd-ui-metrics--hub .tsd-ui-metric:last-child {
  border-right: 0 !important;
  padding-right: 0 !important;
}

.tsd-ui-metrics--hub .tsd-ui-metric:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.tsd-ui-metrics--hub .tsd-ui-metric__label {
  color: #a8a29e !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.tsd-ui-metrics--hub .tsd-ui-metric__value {
  color: #1c1917 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
}

.tsd-ui-hero__chips {
  margin: 0 0 12px 0 !important;
}

.tsd-ui-hero__chips-label {
  font-family: var(--tsd-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #a8a29e !important;
  margin: 0 0 10px 0 !important;
}

.tsd-ui-hero__chips-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

a.tsd-ui-hero-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #e7e5e4 !important;
  color: #292524 !important;
  text-decoration: none !important;
  font-family: var(--tsd-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
  opacity: 0;
  transform: translateY(6px);
}

a.tsd-ui-hero-chip.tsd-ui-hero-chip--enter {
  animation: tsd-hub-chip-in 0.5s ease forwards !important;
  animation-delay: var(--tsd-chip-delay, 0s) !important;
}

a.tsd-ui-hero-chip i {
  color: #d97706 !important;
  font-size: 12px !important;
  width: 12px !important;
  text-align: center !important;
}

a.tsd-ui-hero-chip:hover,
a.tsd-ui-hero-chip:focus-visible {
  transform: translateY(-2px) !important;
  border-color: #fbbf24 !important;
  background: #fffbeb !important;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.12) !important;
  color: #92400e !important;
  outline: none !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__media {
  margin: -20px -6px -24px 0 !important;
  height: 480px !important;
  min-height: 480px !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  will-change: transform !important;
  overflow: visible !important;
  align-self: center !important;
  position: relative !important;
  width: 100% !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__media-link {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  overflow: visible !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__media img {
  width: auto !important;
  max-width: 118% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  filter: drop-shadow(0 22px 32px rgba(28, 25, 23, 0.2)) !important;
}

.tsd-ui-hero--hub .tsd-ui-hero__media--float {
  animation: tsd-hub-media-float 8s ease-in-out infinite alternate !important;
}

.tsd-ui-hero__shine {
  display: none !important;
}

@keyframes tsd-hub-orb-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-16px, 12px) scale(1.05); }
}
@keyframes tsd-hub-orb-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(14px, -10px) scale(1.06); }
}
@keyframes tsd-hub-orb-c {
  from { transform: translate(0, 0); opacity: 0.55; }
  to { transform: translate(-18px, 14px); opacity: 0.9; }
}
@keyframes tsd-hub-media-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -8px, 0); }
}
@keyframes tsd-hub-shine {
  0%, 40% { left: -40%; opacity: 0; }
  48% { opacity: 0.9; }
  70%, 100% { left: 120%; opacity: 0; }
}
@keyframes tsd-hub-chip-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tsd-ui-hero--hub .tsd-ui-hero__orb--a,
  .tsd-ui-hero--hub .tsd-ui-hero__orb--b,
  .tsd-ui-hero--hub .tsd-ui-hero__orb--c,
  .tsd-ui-hero--hub .tsd-ui-hero__media--float,
  .tsd-ui-hero__shine,
  a.tsd-ui-hero-chip.tsd-ui-hero-chip--enter {
    animation: none !important;
  }
  a.tsd-ui-hero-chip {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Section title —— */
.tsd-ui .tsd-ui-section__title,
.tsd-ui h2.tsd-ui-section__title,
.tsd-ui h3.tsd-ui-section__title {
  font-family: var(--tsd-font) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 1.35 !important;
  word-wrap: break-word !important;
}

.tsd-ui-section__rule {
  width: 40px !important;
  height: 3px !important;
  background-color: #334155 !important;
  background-image: linear-gradient(90deg, #b45309 0%, #f59e0b 100%) !important;
  border-radius: 2px !important;
  margin: 0 !important;
}

.tsd-ui .tsd-ui-lede,
.tsd-ui p.tsd-ui-lede {
  color: #334155 !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  font-family: var(--tsd-font) !important;
}

/* —— Card / portfolio grid —— */
.tsd-ui-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.tsd-ui-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  background: #ffffff !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #cbd5e1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07) !important;
}

.tsd-ui-card__media {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 52% !important;
  overflow: hidden !important;
  background: #0f172a !important;
}

.tsd-ui-card__media img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  display: block !important;
}

.tsd-ui-card__badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 2 !important;
  background-color: rgba(15, 23, 42, 0.55) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
  color: #ffffff !important;
  font-family: var(--tsd-font) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tsd-ui-card__body {
  padding: 16px 16px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.tsd-ui .tsd-ui-card__title,
.tsd-ui-card h3.tsd-ui-card__title {
  font-family: var(--tsd-font) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--tsd-ink) !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 1.35 !important;
}

.tsd-ui .tsd-ui-card__excerpt,
.tsd-ui-card p.tsd-ui-card__excerpt {
  color: var(--tsd-body) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 0 14px 0 !important;
  flex: 1 1 auto !important;
  font-family: var(--tsd-font) !important;
}

/* TSD brand action: low-contrast soft glass (quiet, not loud color) */
.tsd-ui-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  align-self: flex-start !important;
  background-color: #f1f5f9 !important;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.95) 55%, rgba(226, 232, 240, 0.9) 100%) !important;
  color: #475569 !important;
  text-decoration: none !important;
  font-family: var(--tsd-font) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: auto !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tsd-ui-btn:hover,
.tsd-ui-btn:focus {
  color: #334155 !important;
  border-color: rgba(100, 116, 139, 0.55) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
}

/* —— Link grid (CSS grid: reliable 2-col desktop vs Avada flex-on-<a>) —— */
.tsd-ui-link-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
}

/* Avada/wpautop injects <br>/<p> between shortcodes — they steal grid cells */
.tsd-ui-link-grid > br,
.tsd-ui-link-grid > p,
.tsd-ui-card-grid > br,
.tsd-ui-card-grid > p,
.tsd-ui-feature-grid > br,
.tsd-ui-feature-grid > p,
.tsd-ui-pulse__grid > br,
.tsd-ui-pulse__grid > p,
.tsd-ui-faq > br,
.tsd-ui-faq > p,
.tsd-ui-metrics > br,
.tsd-ui-metrics > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.tsd-ui a.tsd-ui-link,
a.tsd-ui-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  text-decoration: none !important;
  color: inherit !important;
  background: #ffffff !important;
  background-image: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 16px !important;
  box-shadow: var(--tsd-shadow-soft) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-sizing: border-box !important;
}

.tsd-ui a.tsd-ui-link:hover,
.tsd-ui a.tsd-ui-link:focus,
a.tsd-ui-link:hover,
a.tsd-ui-link:focus {
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.12) !important;
  transform: translateY(-1px);
  color: inherit !important;
  text-decoration: none !important;
}

.tsd-ui-link__icon {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background-color: #f1f5f9 !important;
  background-image: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.4) !important;
  color: #64748b !important;
}

.tsd-ui-link__icon i {
  color: #64748b !important;
  font-size: 16px !important;
  line-height: 1 !important;
  width: 16px !important;
  text-align: center !important;
  display: inline-block !important;
}

.tsd-ui-link__copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
}

.tsd-ui-link__title {
  display: block !important;
  font-family: var(--tsd-font) !important;
  font-weight: 800 !important;
  color: var(--tsd-ink) !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  margin: 0 0 4px 0 !important;
}

.tsd-ui-link__excerpt {
  display: block !important;
  color: var(--tsd-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 0 10px 0 !important;
}

.tsd-ui-link__cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--tsd-font) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.02em !important;
}

.tsd-ui-link__cta i {
  font-size: 11px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* —— FAQ —— */
.tsd-ui-faq {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.tsd-ui-faq__item {
  background: #ffffff !important;
  border: 1px solid var(--tsd-line) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.tsd-ui-faq__q {
  font-family: var(--tsd-font) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 15px !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.4 !important;
}

.tsd-ui-faq__a {
  margin: 0 !important;
  color: var(--tsd-body) !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  font-family: var(--tsd-font) !important;
}

.tsd-ui-faq__a a {
  color: var(--tsd-brand) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.tsd-ui-faq__a a:hover {
  text-decoration: underline !important;
}

.tsd-ui-faq__a p {
  margin: 0 !important;
}

/* —— CTA —— */
.tsd-ui-cta {
  position: relative !important;
  overflow: hidden !important;
  background-color: #0f172a !important;
  background-image: linear-gradient(135deg, #0f172a 0%, #1c1917 48%, #292524 100%) !important;
  border-radius: var(--tsd-radius-xl) !important;
  padding: 28px 22px 26px 22px !important;
  text-align: center !important;
  border: 1px solid rgba(252, 211, 77, 0.28) !important;
  box-shadow: none !important;
}

.tsd-ui-cta__orb {
  position: absolute !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

.tsd-ui-cta__orb--a {
  top: -70px !important;
  right: -40px !important;
  width: 200px !important;
  height: 200px !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%) !important;
}

.tsd-ui-cta__orb--b {
  bottom: -60px !important;
  left: -30px !important;
  width: 180px !important;
  height: 180px !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%) !important;
}

.tsd-ui-cta__inner {
  position: relative !important;
  z-index: 2 !important;
}

.tsd-ui .tsd-ui-cta__title,
.tsd-ui-cta h3.tsd-ui-cta__title {
  font-family: var(--tsd-font) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 1.3 !important;
}

.tsd-ui .tsd-ui-cta__text,
.tsd-ui-cta p.tsd-ui-cta__text {
  font-size: 15px !important;
  color: #fef3c7 !important;
  margin: 0 auto 20px auto !important;
  max-width: 560px !important;
  line-height: 1.6 !important;
  font-family: var(--tsd-font) !important;
}

.tsd-ui-cta__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.tsd-ui a.tsd-ui-cta__btn,
a.tsd-ui-cta__btn {
  flex: 1 1 200px !important;
  min-width: 200px !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  font-family: var(--tsd-font) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  height: 48px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  margin: 0 !important;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.tsd-ui-cta__btn i {
  font-size: 14px !important;
  line-height: 1 !important;
  width: 14px !important;
  text-align: center !important;
  display: inline-block !important;
}

.tsd-ui a.tsd-ui-cta__btn--primary,
a.tsd-ui-cta__btn--primary {
  background-color: rgba(255, 255, 255, 0.14) !important;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(2, 6, 23, 0.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tsd-ui a.tsd-ui-cta__btn--ghost,
a.tsd-ui-cta__btn--ghost {
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px rgba(2, 6, 23, 0.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tsd-ui a.tsd-ui-cta__btn:hover,
.tsd-ui a.tsd-ui-cta__btn:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* —— Callout —— */
.tsd-ui-callout {
  background: #ffffff !important;
  background-image: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin: 0 0 24px 0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.tsd-ui-callout__title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--tsd-font) !important;
  font-weight: 800 !important;
  color: #334155 !important;
  font-size: 15px !important;
  margin: 0 0 6px 0 !important;
}

.tsd-ui-callout__title i {
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1 !important;
  width: 14px !important;
  text-align: center !important;
  display: inline-block !important;
}

.tsd-ui-callout__body,
.tsd-ui-callout__body p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  font-family: var(--tsd-font) !important;
}

/* —— Feature cards —— */
.tsd-ui-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 24px 0 !important;
}

.tsd-ui-feature {
  background: #ffffff !important;
  background-image: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
  min-width: 0 !important;
}

.tsd-ui-feature__title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--tsd-font) !important;
  font-weight: 800 !important;
  color: #334155 !important;
  margin: 0 0 6px 0 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.tsd-ui-feature__title i {
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1 !important;
  width: 14px !important;
  text-align: center !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.tsd-ui-feature__body,
.tsd-ui-feature__body p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  font-family: var(--tsd-font) !important;
}

/* —— Pulse dashboard —— */
.tsd-ui-pulse {
  background-color: #0f172a !important;
  background-image: linear-gradient(155deg, #020617 0%, #0f172a 55%, #1c1917 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.22) !important;
  border-radius: 22px !important;
  padding: 24px 20px !important;
  margin: 0 0 28px 0 !important;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28) !important;
  box-sizing: border-box !important;
}

.tsd-ui-pulse__head {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 14px !important;
  margin-bottom: 18px !important;
}

.tsd-ui-pulse__brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.tsd-ui-pulse__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fbbf24 !important;
}

.tsd-ui-pulse__icon i {
  color: #fbbf24 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  width: 16px !important;
  text-align: center !important;
  display: inline-block !important;
}

.tsd-ui-pulse__name {
  font-family: var(--tsd-font) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.04em !important;
}

.tsd-ui-pulse__sub {
  font-family: var(--tsd-font) !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
}

.tsd-ui-pulse__status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-family: var(--tsd-font) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #e2e8f0 !important;
  letter-spacing: 0.04em !important;
}

.tsd-ui-pulse__dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #fbbf24 !important;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.55) !important;
}

.tsd-ui-pulse__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.tsd-ui-pulse__stat {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  min-width: 0 !important;
}

.tsd-ui-pulse__stat-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.tsd-ui-pulse__label {
  font-family: var(--tsd-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
}

.tsd-ui-pulse__tag {
  font-family: var(--tsd-font) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
}

.tsd-ui-pulse__value {
  font-family: var(--tsd-font) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.tsd-ui-pulse__hint {
  font-size: 12px !important;
  color: #cbd5e1 !important;
  margin-top: 4px !important;
  font-family: var(--tsd-font) !important;
}

.tsd-ui-pulse__note {
  font-size: 12px !important;
  color: #64748b !important;
  font-style: italic !important;
  margin: 12px 0 0 0 !important;
  text-align: right !important;
  font-family: var(--tsd-font) !important;
}

/* —— Prose lists —— */
.tsd-ui-list {
  margin: 0 0 20px 0 !important;
  padding: 0 0 0 22px !important;
  color: #334155 !important;
  line-height: 1.85 !important;
  font-family: var(--tsd-font) !important;
}

.tsd-ui-list li {
  margin: 0 0 6px 0 !important;
}

.tsd-ui-list strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Body links inside kit pages */
.tsd-ui a.tsd-ui-inline,
.tsd-ui-page a:not([class]) {
  color: #57534e !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(87, 83, 78, 0.25) !important;
}

.tsd-ui a.tsd-ui-inline:hover,
.tsd-ui-page a:not([class]):hover {
  color: #292524 !important;
  border-bottom-color: rgba(41, 37, 36, 0.45) !important;
}

/* —— Mobile (last) —— */
@media (max-width: 767px) {
  .tsd-ui-hero {
    padding: 20px 16px 16px 16px !important;
    border-radius: 18px !important;
  }

  .tsd-ui .tsd-ui-hero__title,
  h1.tsd-ui-hero__title {
    font-size: 22px !important;
  }

  .tsd-ui-hero__media {
    height: 280px !important;
    max-height: 280px !important;
  }

  .tsd-ui-hero--hub {
    padding: 18px 14px 16px 14px !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__media {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    margin: 0 !important;
    order: -1 !important;
    animation: none !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__media-link {
    justify-content: center !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__media img {
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__shine {
    display: none !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__title,
  .tsd-ui-hero--hub h1.tsd-ui-hero__title {
    font-size: 24px !important;
    max-width: none !important;
    line-height: 1.28 !important;
  }

  .tsd-ui-hero--hub .tsd-ui-hero__lead {
    max-width: none !important;
    font-size: 14.5px !important;
    margin-bottom: 16px !important;
  }

  a.tsd-ui-hero-chip {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
  }

  .tsd-ui-metrics--hub {
    flex-wrap: wrap !important;
    row-gap: 12px !important;
  }

  .tsd-ui-metrics--hub .tsd-ui-metric {
    flex: 1 1 40% !important;
    border-right: 0 !important;
    padding: 0 10px 0 0 !important;
  }

  .tsd-ui-metrics--hub .tsd-ui-metric__value {
    font-size: 16px !important;
  }

  .tsd-ui .tsd-ui-section__title {
    font-size: 19px !important;
  }

  .tsd-ui-card-grid,
  .tsd-ui-link-grid,
  .tsd-ui-feature-grid,
  .tsd-ui-pulse__grid {
    grid-template-columns: 1fr !important;
  }

  .tsd-ui a.tsd-ui-link,
  a.tsd-ui-link {
    width: 100% !important;
    min-width: 0 !important;
  }

  .tsd-ui-card__media {
    padding-top: 56% !important;
  }

  .tsd-ui-cta {
    padding: 24px 16px 22px 16px !important;
    border-radius: 18px !important;
  }

  .tsd-ui .tsd-ui-cta__title {
    font-size: 20px !important;
  }

  .tsd-ui a.tsd-ui-cta__btn,
  a.tsd-ui-cta__btn {
    flex: 1 1 100% !important;
  }
}
