/* ============================================
   TANDEM MEDICAL MARKETING — SITE-WIDE OVERRIDES
   Appearance → Customize → Additional CSS
   ============================================ */

/* --- Hide bottom-of-post WordPress/Jetpack/Kadence blocks --- */
body.single-post .sharedaddy,
body.single-post .jp-relatedposts,
body.single-post #jp-relatedposts,
body.single-post .sd-sharing,
body.single-post .sd-block,
body.single-post .sd-like,
body.single-post .likes-widget-placeholder,
body.single-post #jetpack-likes-widget,
body.single-post #comments,
body.single-post .comments-area,
body.single-post .comment-respond,
body.single-post .kadence-related-posts,
body.single-post .related-posts-area,
body.single-post .entry-related,
body.single-post .post-navigation,
body.single-post nav.post-navigation {
  display: none !important;
}

/* --- Blog post template: mobile responsive fixes --- */
@media (max-width: 768px) {
  body.single-post div[style*="background:#fff"][style*="padding:48px"] { padding: 20px 12px !important; }
  body.single-post div[style*="background:#0a1628"][style*="padding:44px 40px"] { padding: 28px 20px !important; }
  body.single-post div[style*="background:linear-gradient(145deg,#005bbf"][style*="padding:48px 40px"] { padding: 28px 20px !important; }
  body.single-post div[style*="flex:1"][style*="min-width:280px"] { min-width: 0 !important; flex-basis: 100% !important; }
  body.single-post div[style*="padding:88px 48px 64px"] { padding: 56px 20px 40px !important; }
  body.single-post div[style*="padding:64px 48px"] { padding: 40px 20px !important; }
  body.single-post div[style*="padding:36px 48px"] { padding: 24px 16px !important; }
  body.single-post div[style*="padding:80px 48px"] { padding: 48px 20px !important; }
  body.single-post a[style*="white-space:nowrap"] { white-space: normal !important; width: 100% !important; text-align: center !important; box-sizing: border-box !important; }
  body.single-post { overflow-x: hidden !important; }
  body.single-post h1[style*="clamp(34px"] { font-size: 28px !important; line-height: 1.15 !important; }
  body.single-post h2[style*="font-size:32px"] { font-size: 24px !important; }
  body.single-post .entry-content table { font-size: 12px !important; }
  body.single-post .entry-content table th,
  body.single-post .entry-content table td { padding: 8px 10px !important; }
}

/* --- Service pages: fix Related band 3-col grid (no mobile fallback in source) --- */
@media (max-width: 768px) {
  div[style*="grid-template-columns:auto 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  div[style*="border-top:1px solid #e2eaf8"][style*="padding:64px 48px"] {
    padding: 36px 20px !important;
  }
  
  /* .sp-* template tightening on tablet/mobile */
  .sp-items { gap: 10px !important; }
  .sp-item { padding: 16px 18px !important; }
  .sp-dark-grid { gap: 12px !important; }
  .sp-dark-item { padding: 20px !important; }
  .sp-body-inner { gap: 32px !important; }
}

/* --- Service pages: tighter mobile padding on small screens --- */
@media (max-width: 640px) {
  .sp-hero, .sp-body, .sp-dark, .sp-cta { padding: 48px 20px !important; }
  .sp-hero h1 { font-size: 28px !important; line-height: 1.15 !important; }
  .sp-body h2, .sp-dark h2 { font-size: 24px !important; }
  .sp-cta h2 { font-size: 26px !important; }
}
/* Mobile header brand sizing - Tandem Medical Marketing */
@media (max-width: 768px) {
  .site-branding .site-title,
  .site-branding a.brand .site-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
  }
  /* Optional: reduce logo image on mobile too */
  .site-branding .site-logo img,
  .site-branding .custom-logo {
    max-height: 36px !important;
    width: auto !important;
  }
  /* Tighten the header padding so the smaller brand doesn't feel lost */
  .site-header-row-container-inner .site-branding {
    padding: 4px 0 !important;
  }
}

/* Optional: at very small screens, allow the text to break onto 2 lines neatly */
@media (max-width: 480px) {
  .site-branding .site-title {
    font-size: 15px !important;
    max-width: 180px !important;
  }
}

/* Contrast fixes (WCAG AA 4.5:1) - Nov 17 2026. Overrides low-contrast text colors in page templates. */
[style*="background:#fff"] [style*=";color:#8fa3bd"]{color:#597497!important;}
[style*="background:#f5f8ff"] [style*=";color:#8fa3bd"]{color:#556f91!important;}
body .ms-banner-label{background-color:#b45309;color:#ffffff;}
body [style*="background:linear-gradient(145deg,#060e1f,#0a1e3d)"] a:not([class]){color:#4d9fff;}
body [style*="background:linear-gradient(145deg,#060e1f,#0a1e3d)"] a:not([class]):hover{color:#ffffff;}
body [style*="background:linear-gradient(145deg,#005bbf,#0a3a8a)"] a:not([class]){color:#d2e2f4;}
body [style*="background:linear-gradient(145deg,#005bbf,#0a3a8a)"] a:not([class]):hover{color:#ffffff;}
[style*="background:linear-gradient(135deg,#0a1e3d,#005bbf)"] [style*=";color:#c5d8f0"]{color:#d1e0f3!important;}
body [style*="background: linear-gradient(145deg,#060e1f,#0a1e3d)"] a:not([class]){color:#4d9fff;}
body [style*="background: linear-gradient(145deg,#060e1f,#0a1e3d)"] a:not([class]):hover{color:#ffffff;}
[style*="background: linear-gradient(135deg,#0a1e3d,#005bbf)"] [style*="; color: #c5d8f0"]{color:#d1e0f3!important;}
[style*="background:#f5f8ff"] [style*=";color:#718096"]{color:#616e83!important;}
[style*="background:#0a1628"] [style*=";color:#5a7090"]{color:#7187a7!important;}
[style*="background:#fff"] [style*=";color:#718096"]{color:#657389!important;}
body [style*="background:#0a1628"] a:not([class]){color:#4d9fff;}
body [style*="background:#0a1628"] a:not([class]):hover{color:#ffffff;}
body .uro-sec-dark a:not([class]){color:#4d9fff;}
body .uro-sec-dark a:not([class]):hover{color:#ffffff;}
body .h-link{color:#598aac!important;}
body .h-stat-desc{color:#6b8eb0;}
body .cs-stat-label{color:#6f8eaf;}
body .cb-note{color:#d1e2f4;}
body .nw-note{color:#697281;}
body .cs-hero-stat-sub{color:#6b8eb0;}
body .cs-overview-label{color:#616e83;}
body .cs-table th{color:#616e83;}
body .cs-table .before-col{color:#e21313;}
body .cs-table .after-col{color:#117f3a;}
body .cs-hero-stat-num{color:#117f3a;}
body .cs-hero-stat-label{color:#8aaec8;opacity:1;}
body .sp-proof-label{color:#6491b1;}
body .sp-dark a:not([class]){color:#4d9fff;}
body .sp-dark a:not([class]):hover{color:#ffffff;}
.sp-cta [style*=";color:#2a4060"]{color:#6387bb!important;}
[style*="background:#f5f8ff"] [style*=";color:#64748b"]{color:#606f85!important;}
body .sv-report-section-desc{color:#657389;}
.sv-cta [style*=";color:#2a4060"]{color:#6387bb!important;}
body .sp-channels a:not([class]){color:#4d9fff;}
body .sp-channels a:not([class]):hover{color:#ffffff;}
body .pr-card-price-sub{color:#5c697d;}
body .pr-cta-note{color:#6387bb;}
body .sv-result-label{color:#657389;}
body .sv-step-num{color:#4d87da;}
[style*="background:linear-gradient(145deg,#060e1f,#0a1e3d)"] [style^="color:#005bbf"]{color:#218bff!important;}
body .sv-strip-context{color:#6b8eb0;}
.sv-cta [style*=";color:#718096"]{color:#657389!important;}
body .sv-rate-note{color:#6b8eb0;}
body .sv-what a:not([class]){color:#4d9fff;}
body .sv-what a:not([class]):hover{color:#ffffff;}
body .sv-how-step-num{color:#4d87da;}
.uc-pricing-box [style*=";color:#718096"]{color:#616e83!important;}
body .uc-pricing-box-note{color:#616e83;}
body .uc-cta-note{color:#7187a7;}
.sp-pricing-box [style*=";color:#718096"]{color:#616e83!important;}
body .sp-pricing-box-note{color:#616e83;}
body .sp-cta-note{color:#7187a7;}
body .cf-note{color:#657389;}
body .csi-bar-label{color:#5e83a9;}
body .csi-ms-label{color:#242424;}
body .ag-strip-label{color:#6491b1;}
body .ag-comp-card-tag{color:#697281;}
.ag-cta [style*=";color:#2a4060"]{color:#6387bb!important;}
body .sp-pricing-price-sub{color:#616e83;}
body .cs-overview-value{color:#117f3a;}
body .uc-strip-label{color:#6491b1;}
.uc-cta [style*=";color:#2a4060"]{color:#6387bb!important;}
.bh-cta [style*=";color:#2a4060"]{color:#6387bb!important;}
body .sp-dark-item a:not([class]){color:#4d9fff;}
body .sp-dark-item a:not([class]):hover{color:#ffffff;}
body .cs-back{color:#6491b1;}
body .cs-kpi-label{color:#6491b1;}
body .sv-proof-label{color:#6491b1;}
body .md-strip-label{color:#6491b1;}
.md-cta [style*=";color:#2a4060"]{color:#6387bb!important;}
body .ct-stat-detail{color:#6b8eb0;}
body .ab-cta-sub{color:#ffffff;}
.ab-cta [style*=";color:rgba(255,255,255,0.5)"]{color:#ffffff!important;}
body .cs-funnel-num{background-color:#005bbf;}
body .ab-tool .ab-tool-right-label{color:#8aaec8;}