/* Global visibility and contrast safeguards */

/* Ensure table-driven info cards remain legible on light surfaces */
.stats-section .stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 57, 124, 0.14);
  box-shadow: 0 16px 34px rgba(8, 27, 54, 0.14);
  color: var(--text-dark);
}

.stats-section .stat-card h3 {
  color: #123a74;
}

.stats-section .stats-table {
  color: #1a2f4b;
}

.stats-section .stats-table td,
.stats-section .stats-table th {
  color: #1a2f4b;
  border-bottom: 1px solid #dfe7f2;
}

.stats-section .stats-table th {
  background: #ecf3ff;
  color: #123a74;
  font-weight: 700;
}

.stats-section .stats-table td:last-child {
  color: #0f4ea5;
  font-weight: 700;
}

.stats-section .stats-table tbody tr:hover td {
  background: #f5f9ff;
}

/* Ensure CEO letter content remains readable on light cards */
.ceo-letter-section .ceo-letter-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 57, 124, 0.14);
  box-shadow: 0 16px 34px rgba(8, 27, 54, 0.14);
}

.ceo-letter-section .ceo-letter-content p {
  color: #1f3554 !important;
}

.ceo-letter-section .ceo-letter-signature {
  color: #0f4ea5 !important;
}

/* Company profile section headings are on dark backgrounds */
.company-section-head span {
  color: #5ea8ff !important;
}

.company-section-head h1,
.company-section-head h2 {
  color: #f1f7ff !important;
}

.company-section-head p {
  color: rgba(232, 241, 255, 0.9) !important;
}

/* Company profile cards use light surfaces and need dark text */
.company-intro .company-intro-card-featured h3,
.company-divisions .company-division-content h3,
.company-downloads .company-download-card h3,
.company-certs .company-cert-card h3,
.company-projects .company-project-card h3,
.company-docs .company-doc-card h3 {
  color: #102c4d !important;
}

.company-intro .company-intro-card-featured li,
.company-intro .company-intro-card-featured li span,
.company-divisions .company-division-content p,
.company-divisions .company-division-content li,
.company-divisions .company-division-content li span,
.company-downloads .company-download-card p,
.company-downloads .company-download-note,
.company-certs .company-cert-card p,
.company-projects .company-project-card p,
.company-docs .company-doc-card p,
.company-stat-label,
.company-partner-pill,
.company-logo-pill {
  color: #2a4768 !important;
}

.company-intro-card,
.company-division-card,
.company-stat-card,
.company-cert-card,
.company-project-card,
.company-doc-card,
.company-download-card,
.company-video-card {
  background: linear-gradient(145deg, #ffffff, #f8fbff) !important;
  border-color: rgba(15, 57, 124, 0.14) !important;
  box-shadow: 0 16px 34px rgba(8, 27, 54, 0.14) !important;
}

/* Compact in-content page headers after removing internal hero banners */
.inner-page-first-section {
  padding-top: clamp(40px, 7vw, 80px);
}

.inner-page-compact-head {
  margin-bottom: clamp(20px, 4vw, 36px);
  max-width: 920px;
}

.inner-page-compact-head .inner-page-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5ea8ff;
  font-weight: 700;
}

.inner-page-compact-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  line-height: 1.2;
  color: #f1f7ff;
}

.inner-page-compact-head p {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.7;
  color: rgba(232, 241, 255, 0.9);
}

@media (max-width: 767px) {
  .inner-page-first-section {
    padding-top: clamp(24px, 8vw, 40px);
  }
}
