/* Shared polish: loaded on every public page */
h1,h2,h3{text-wrap:balance}
[hidden]{display:none!important}
@media (max-width:600px){
  /* Desktop-sized section spacing is too tall on a phone */
  section[style*="padding: 88px"],section[style*="padding: 96px"],section[style*="padding: 104px"],section[style*="padding: 80px"],section[style*="padding: 120px"]{padding-top:52px!important;padding-bottom:52px!important}
  section[style*="padding: 72px"]{padding-top:44px!important;padding-bottom:44px!important}
  section[style*="max(16px, 4vw) 88px"],section[style*="max(16px, 4vw) 80px"],section[style*="max(16px, 4vw) 96px"],section[style*="max(16px, 4vw) 120px"]{padding-bottom:52px!important}
  section[style*="padding: 120px max"]{padding-top:56px!important}
  /* Comfortable tap targets */
  .dx-chip,.ds-copy,.kc-leg button,.dx-chips button{min-height:40px}
  /* Long words and URLs never push the page wider */
  main p,main li,main td{overflow-wrap:anywhere}
  /* Brand page footnote sat flush against the screen edge */
  .bl-body>.bl-note{padding-left:16px;padding-right:16px}
  /* Footer newsletter: smaller art so the headline gets the width */
  footer picture[style*="flex: 0 0 112px"]{flex-basis:72px!important}
  footer picture[style*="flex: 0 0 112px"] img{width:72px!important;height:72px!important}
  /* Rankings tables: keep the ranked number on screen (drop Industry and FDD year columns) */
  .rk-t{min-width:0!important}
  .rk-t th:nth-child(3),.rk-t td:nth-child(3),.rk-t th:nth-child(5),.rk-t td:nth-child(5),.rk-t th:nth-child(6),.rk-t td:nth-child(6){display:none}
  .rk-t td:last-of-type,.rk-t td.v{text-align:right;white-space:nowrap}
  .rk-t th,.rk-t td{padding-left:10px!important;padding-right:10px!important}
  /* Category pages: the two "fit" boxes stack, and wide brand tables scroll inside their box */
  .lp-facts[style*="1fr 1fr"]{grid-template-columns:1fr!important}
  .rs-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .rs-table th{white-space:nowrap}
}
@media (max-width:360px){
  /* Smallest phones (320px): buttons and the bottom bar shrink instead of spilling off screen */
  a[style*="border-radius: 999px"],button{max-width:100%}
  section a[style*="padding: 16px 30px"]{padding:14px 20px!important;font-size:16px!important}
  .m-cta a{font-size:14px!important}
  .m-cta .go{min-width:0;padding:0 8px}
  .m-cta{box-sizing:border-box;max-width:100vw;overflow:hidden}
  a[style*="white-space:nowrap"],a[style*="white-space: nowrap"]{white-space:normal!important;text-align:center}
  .m-cta{gap:8px!important;padding-left:10px!important;padding-right:10px!important}
}

/* Menu stays at the top of the screen while scrolling (all screen sizes) */
body>header,body>div>header{position:sticky!important;top:0;z-index:70}
@media (min-width:821px){body>header,body>div>header{padding-top:10px!important;padding-bottom:10px!important;box-shadow:0 1px 0 #1F242B,0 10px 30px -18px rgba(0,0,0,.7)}}
