/* Cash vs Listing — mobile responsive comparison table */
@media (max-width: 781px){
  .compare .is-layout-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    grid-template-areas:"label label" "us listing" !important;
    gap:6px 10px !important;
    padding:12px 4px 4px !important;
    align-items:stretch !important;
  }
  .compare .is-layout-grid > *:nth-child(1){ grid-area:label !important; padding:0 4px 2px !important; }
  .compare .is-layout-grid > *:nth-child(2){ grid-area:us !important; border-radius:10px !important; padding:12px 14px !important; display:flex !important; align-items:center !important; }
  .compare .is-layout-grid > *:nth-child(3){ grid-area:listing !important; border-radius:10px !important; padding:12px 14px !important; display:flex !important; align-items:center !important; background:var(--bg) !important; }
  .compare .is-layout-grid p{ white-space:normal !important; margin:0 !important; line-height:1.3 !important; }
  .compare .is-layout-grid:first-of-type{ grid-template-areas:"us listing" !important; padding:4px 4px 8px !important; }
  .compare .is-layout-grid:first-of-type > *:nth-child(1){ display:none !important; }
  .compare .is-layout-grid:first-of-type > *:nth-child(2){ background:transparent !important; padding:4px 6px !important; }
  .compare .is-layout-grid:first-of-type > *:nth-child(3){ background:transparent !important; padding:4px 6px !important; }
}

/* Footer links — no underline until hover */
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Mobile header — collapse nav to hamburger */
@media (max-width: 781px){
  /* allow the header contents row to wrap so nothing overflows off-screen */
  .wp-block-template-part .wp-block-group.is-nowrap{ flex-wrap:wrap !important; }
  /* title on one line, allowed to shrink */
  .wp-block-site-title{ white-space:nowrap !important; font-size:1.05rem !important; }
  .wp-block-site-title a{ white-space:nowrap !important; }
  /* nav only takes the hamburger width */
  .wp-block-navigation{ flex:0 0 auto !important; width:auto !important; }
  /* hide inline menu list; keep the hamburger toggle (its sibling) */
  .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open){ display:none !important; }
  .wp-block-navigation__responsive-container-open:not(.always-shown){ display:flex !important; }
  /* shrink the Call button (override its preset font size) so it fits */
  .wp-block-template-part .wp-block-buttons .wp-block-button__link.has-custom-font-size{
    font-size:0.8rem !important; padding:9px 12px !important; white-space:nowrap !important;
  }
  /* keep the buttons group from forcing extra width */
  .wp-block-template-part .wp-block-buttons{ flex:0 1 auto !important; }
}
