/* ============================================
   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;
  }
}