/* QA pass fixes (2026-11-23) */

/* Anything with a gold fill always gets dark ink text, wherever it sits */
html body :is(#aaa-qa, [style*="background: var(--gold)"], [style*="background:var(--gold)"], [style*="background: #FFD700"], [style*="background:#FFD700"], .industry-badge, .package-tag, .service-icon, .service-detail-icon, .portfolio-category, .portfolio-tags span, .table-order-btn, .cta-btn, .package-cta) {
  --gold: #FFD700;
  color: #15181F !important;
}
html body :is(#aaa-qa, [style*="background: var(--gold)"], [style*="background:var(--gold)"], .industry-badge) * { color: #15181F !important; }

/* Long links and words wrap instead of pushing the page sideways */
html body :is(p, li, dd, figcaption) { overflow-wrap: break-word; }

/* Blog tables: were near-black navy; now white with a royal blue header row */
html body :is(#aaa-qa, .blog-table, .blog-body table, .post-body table, .post-content table, article table) { background: #FFFFFF !important; border: 2px solid #15181F !important; border-collapse: collapse; }
html body :is(#aaa-qa, .blog-table, .blog-body table, .post-body table, .post-content table, article table) tr { background: transparent !important; }
html body :is(#aaa-qa, .blog-table, .blog-body table, .post-body table, .post-content table, article table) th { background: #1B3A8C !important; color: #FFFFFF !important; border-color: #15181F !important; }
html body :is(#aaa-qa, .blog-table, .blog-body table, .post-body table, .post-content table, article table) td { background: #FFFFFF !important; color: #3B4150 !important; border-color: #E2DED4 !important; }
html body :is(#aaa-qa, .blog-table, .blog-body table, .post-body table, .post-content table, article table) tbody tr:nth-child(even) td { background: #F7F5F0 !important; }
html body :is(#aaa-qa, .blog-table, .blog-body table, .post-body table, .post-content table, article table) td a { color: #1B3A8C !important; }
/* Photo captions on blog posts were pale gray on white */
html body :is(#aaa-qa, .blog-figure, figure) figcaption { color: #6B7180 !important; }
html body .rp-band figcaption:is(#aaa-qa, figcaption) { color: #FFFFFF !important; }

/* Phone layout: nothing wider than the screen */
html body img { max-width: 100%; }
@media (max-width: 768px) {
  html body .services-promise-inner { flex-wrap: wrap; row-gap: 1rem; }
  html body .promise-item { flex: 1 1 45%; padding: 0 0.5rem; }
  html body .promise-divider { display: none; }
  html body .packages-grid { grid-template-columns: 1fr !important; }
  html body .package-card.package-card-featured, html body .package-card.package-card-featured:hover { transform: none !important; }
  html body .pricing-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  html body .service-detail-grid { grid-template-columns: 1fr !important; }
  html body .service-detail-card, html body .package-card, html body [class*="card"] { min-width: 0; max-width: 100%; }
  html body .stat-highlight-card { max-width: 100%; box-sizing: border-box; }
}
