/* --- Compact header on all screens --- */
.site-header,
.site-branding {
  padding-top: 6px !important;
  padding-bottom: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-logo { margin: 0 !important; }

/* Make sure the image itself can scale */
.site-logo img,
.custom-logo,
.site-branding img {
  height: auto !important;
  max-width: 100% !important;
  width: auto !important; /* prevents fixed widths from breaking mobile */
}

/* If your theme injected width/height attributes, override them */
img.custom-logo[width]  { width: auto !important; }
img.custom-logo[height] { height: auto !important; }

/* --- Responsive sizing --- */
/* Desktop/tablet default */
@media (min-width: 781px) {
  .site-logo img,
  .custom-logo {
    max-width: 400px !important;
  }
}

/* Phones: reduce logo and tighten vertical space */
@media (max-width: 780px) {
  .site-header,
  .site-branding { 
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .site-logo img,
  .custom-logo {
    width: 60vw !important;
    max-width: 360px !important;
  }
  .site-description { 
    font-size: .9rem !important; 
    line-height: 1.2 !important; 
    margin: 2px 0 0 !important;
  }
  /* .site-description { display:none !important; } */
}

/* Pull the blue nav bar closer to the logo */
.site-header + .site-navigation,
.site-navigation { 
  margin-top: 0 !important;
}

/* Grow logo on desktop */
@media (min-width: 781px) {
  .custom-logo,
  .custom-logo-link img,
  .site-logo img,
  .site-branding img,
  .header-logo img,
  .logo img {
    width: 500px !important;
    max-width: 850px !important;
    height: auto !important;
    max-height: none !important;
  }
  .site-branding,
  .site-logo,
  .custom-logo-link {
    max-width: none !important;
  }

  /* (DESKTOP) You had the sidebar social color here; that makes it desktop-only.
     Leaving it, but mobile fix comes later. */
  #secondary .wp-block-social-links li * {
    color: #00a3cf !important;
    fill: #00a3cf !important;
  }

  /* Pagination (desktop too) */
  .paging-navs .page-numbers {
    background: transparent !important;
    border: none !important;
    color: #003366 !important;
    display: inline-block !important;
    padding: 6px 10px !important;
  }
  .paging-navs .page-numbers.current {
    background: transparent !important;
    color: #000 !important;
    font-weight: bold !important;
  }
} /* <-- CLOSES the desktop @media properly */

/* Smooth scroll (correct spelling) */
html { scroll-behavior: smooth; }

/* Force white text on WP block buttons everywhere */
.entry-content a.wp-block-button__link,
.entry-content .wp-block-button a.wp-block-button__link,
.entry-content a.wp-element-button,
.entry-content .wp-block-button .wp-element-button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* iOS Safari edge case */
} /* <-- You were missing this closing brace */

/* Force featured image to scale without cropping */
.post-list-has-thumbnail .featured-thumbnail .thumbnail-img {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  height: auto !important;
  min-height: auto !important;
}

/* ===== MOBILE SIDEBAR SOCIAL ICONS: MAKE VISIBLE ===== */
@media (max-width: 782px) {
  /* Ensure sidebar renders */
  #secondary, .sidebar, .widget-area {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: static !important;
  }

  /* Force the Social Icons in SIDEBAR to paint in blue on mobile */
  #secondary .wp-block-social-links,
  #secondary .wp-block-social-links * {
    color: #47A0C9 !important;
    -webkit-text-fill-color: #47A0C9 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    filter: none !important;
  }
}
