/* Row & Ledger subpage normalization.
   Legacy and modern guide templates share one mobile-safe layout contract. */

html,body{max-width:100%;overflow-x:hidden!important;}
body *{min-width:0;}
main,.page,.category-page,.find-page{max-width:100%;}
img,svg,video{max-width:100%;height:auto;}
.table,.table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
table{max-width:none;}
a,.btn,.primary,p,li,td,th{overflow-wrap:anywhere;word-break:normal;}
.footer-links{flex-wrap:wrap!important;}

/* Canonical hero for modern Row-format guides. */
.rl-guide-hero{
  position:relative!important;
  width:100%!important;
  min-height:320px!important;
  height:320px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #f0f0f0!important;
  margin:0 0 44px!important;
}
.rl-guide-hero img{
  position:static!important;
  width:auto!important;
  height:auto!important;
  max-width:82%!important;
  max-height:276px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:drop-shadow(0 14px 17px rgba(0,0,0,.055))!important;
}
.rl-guide-hero.rl-guide-cover img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  filter:none!important;
}

/* Modern guide hero image */
.hero-product-media.rl-guide-product-media{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
  min-height:280px!important;
  width:100%!important;
}
.hero-product-media.rl-guide-product-media img{
  position:static!important;
  width:auto!important;
  height:auto!important;
  max-width:82%!important;
  max-height:245px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.hero-product-media.rl-guide-cover img{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;filter:none!important;
}

/* Legacy two-column top-pick cards */
.pick .grid{
  grid-template-columns:minmax(220px,34%) minmax(0,1fr)!important;
  gap:28px!important;
  align-items:center!important;
  width:100%!important;
}
.pick .rl-legacy-product-media{
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #f0f0f0!important;
  margin:0!important;
}
.pick .rl-legacy-product-media img{
  position:static!important;
  width:auto!important;
  height:auto!important;
  max-width:92%!important;
  max-height:92%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:drop-shadow(0 12px 15px rgba(0,0,0,.055))!important;
}
.pick .rl-legacy-product-media.rl-guide-cover img{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;filter:none!important;
}

/* Legacy guides with no image slot receive a standalone normal-flow stage. */
.pick>.rl-product-stage,.top-pick>.rl-product-stage{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-height:300px!important;
  height:300px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #f0f0f0!important;
  margin:18px 0 26px!important;
  clear:both!important;
}
.pick>.rl-product-stage img,.top-pick>.rl-product-stage img{
  position:static!important;
  width:auto!important;
  height:auto!important;
  max-width:78%!important;
  max-height:88%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:drop-shadow(0 14px 17px rgba(0,0,0,.055))!important;
}
.rl-product-stage.rl-guide-cover img{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;filter:none!important;
}

/* Exact-product tuning on guide pages. */
body[data-rl-guide="/guides/best-noise-cancelling-headphones-travelers"] .hero-product-media img{max-width:74%!important;max-height:220px!important;filter:none!important;}
body[data-rl-guide="/guides/best-premium-office-chairs"] .rl-product-stage img{max-width:66%!important;max-height:92%!important;filter:none!important;}
body[data-rl-guide="/guides/best-portable-monitors-consultants"] .rl-legacy-product-media img{max-width:100%!important;max-height:100%!important;object-fit:contain!important;}
body[data-rl-guide="/guides/best-laptop-stands-travel"] .rl-legacy-product-media img{max-width:96%!important;max-height:96%!important;filter:none!important;}
body[data-rl-guide="/guides/best-thunderbolt-docks-professional-work"] .rl-legacy-product-media img{max-width:88%!important;max-height:92%!important;filter:none!important;}
body[data-rl-guide="/guides/best-chefs-knives-home-cooks"] .rl-guide-hero img{max-width:92%!important;max-height:72%!important;}
body[data-rl-guide="/guides/best-packing-cubes-carry-on-travel"] .rl-guide-hero img{max-width:72%!important;max-height:88%!important;}
body[data-rl-guide="/guides/best-cashmere-sweaters-men"] .rl-guide-hero img{max-width:62%!important;max-height:92%!important;filter:none!important;}
body[data-rl-guide="/guides/best-compression-recovery-boots"] .rl-guide-hero img{max-width:88%!important;max-height:92%!important;filter:none!important;}
body[data-rl-guide="/guides/best-travel-backpacks-work-trips"] .rl-guide-hero img{max-width:62%!important;max-height:92%!important;filter:none!important;}

@media(max-width:820px){
  body{width:100%!important;}
  .shell,.c{width:100%!important;padding-left:18px!important;padding-right:18px!important;}
  .read,.w{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;}
  .page,.category-page,.find-page{width:100%!important;padding-left:0!important;padding-right:0!important;}
  .rl-guide-hero{height:250px!important;min-height:250px!important;margin-bottom:34px!important;}
  .rl-guide-hero img{max-width:86%!important;max-height:220px!important;}
  .hero-product{grid-template-columns:1fr!important;gap:22px!important;width:100%!important;}
  .hero-product>*{width:100%!important;max-width:100%!important;}
  .pick .grid{grid-template-columns:1fr!important;gap:20px!important;width:100%!important;}
  .pick .grid>*{width:100%!important;max-width:100%!important;}
  .pick .rl-legacy-product-media{width:100%!important;max-width:100%!important;min-height:220px!important;aspect-ratio:4/3!important;}
  .pick>.rl-product-stage,.top-pick>.rl-product-stage{width:100%!important;height:250px!important;min-height:250px!important;margin-left:0!important;margin-right:0!important;}
  .hero-product-media.rl-guide-product-media{width:100%!important;min-height:230px!important;}
  .hero-product-media.rl-guide-product-media img{max-width:82%!important;max-height:200px!important;}
  body[data-rl-guide="/guides/best-noise-cancelling-headphones-travelers"] .hero-product-media img{max-width:70%!important;max-height:190px!important;}
  .comparison,.table table{min-width:620px!important;}
  .category-list{grid-template-columns:1fr!important;}
  .aud{grid-template-columns:1fr!important;}
  .footer-links{gap:12px 18px!important;}
}

@media(max-width:430px){
  .shell,.c{padding-left:16px!important;padding-right:16px!important;}
  .site-header-inner{grid-template-columns:44px minmax(0,1fr) 88px!important;height:62px!important;}
  .site-header .brand{font-size:16px!important;letter-spacing:.09em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important;}
  .site-header .head-left,.site-header .head-right{min-width:0!important;}
  .site-header .head-right{gap:0!important;}
  .drawer,.search-panel,.account-panel{top:62px!important;left:16px!important;right:16px!important;width:auto!important;max-width:calc(100vw - 32px)!important;}
  .page h1,.category-page h1,.find-hero h1{font-size:clamp(36px,11vw,48px)!important;line-height:1.02!important;}
  .dek,.find-dek,.category-intro{font-size:15px!important;max-width:100%!important;}
  .hero-product,.pick,.top-pick{width:100%!important;max-width:100%!important;overflow:visible!important;}
  .rl-guide-hero{height:225px!important;min-height:225px!important;}
  .rl-guide-hero img{max-width:88%!important;max-height:196px!important;}
  .hero-product-media.rl-guide-product-media{min-height:210px!important;}
  .pick>.rl-product-stage,.top-pick>.rl-product-stage{height:230px!important;min-height:230px!important;}
  .table,.table-wrap{width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important;}
  .primary,.btn,.find-cta{max-width:100%!important;white-space:normal!important;text-align:center!important;}
  .footer-links{display:flex!important;flex-wrap:wrap!important;}
}
