/* ==========================================================================
   SafaArban Ltd — Refined Typography, Layout & QA Polish
   Strictly preserves 100% of SafaArban's original brand color palette.
   ========================================================================== */

html, body {
  overflow-x: clip !important;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Remove distracting AI-template pulsing dots & floating blur orbs only */
div.blur-3xl[class*="float-"],
.float-1,
.float-2 {
  display: none !important;
}
.animate-pulse,
.animate-bounce {
  animation: none !important;
}

/* Crisp human spacing & subtle card polish without altering brand colors */
.rounded-3xl {
  border-radius: 14px !important;
}
footer {
  padding-bottom: 88px !important;
}

/* Mobile-safe estimator modal & launcher */
@media (max-width: 640px) {
  #safa-growth-bar {
    bottom: 132px !important;
    right: 12px !important;
  }
  #safa-calc-form > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Human Editorial Readability & Article Craftsmanship (Brand Colors Untouched) */
h1, h2, h3 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

article p, .prose p {
  line-height: 1.8 !important;
  margin-bottom: 1.15rem;
}

article h2, .prose h2 {
  margin-top: 2.25rem !important;
  margin-bottom: 0.9rem !important;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e2e8f0;
}

article h3, .prose h3 {
  margin-top: 1.5rem !important;
  margin-bottom: 0.6rem !important;
}

article table, .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

article th, .prose th {
  background-color: #f8fafc;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
}

article td, .prose td {
  padding: 11px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

article tr:nth-child(even) td, .prose tr:nth-child(even) td {
  background-color: #fafbfc;
}

/* Tactile, understated human card hover */
.bg-white.shadow-lg,
.bg-white.shadow-xl,
.bg-white.shadow-md {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bg-white.shadow-lg:hover,
.bg-white.shadow-xl:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  #safa-unified-dock { right: 12px !important; bottom: 14px !important; }
  #safa-dock-toggle { padding: 10px 14px !important; font-size: 12px !important; }
  #safa-dock-menu { width: min(280px, calc(100vw - 24px)) !important; }
}
#sa-ai-launcher { display: none !important; }
