/* GBN device fixes 2026-10-27 (phone + tablet): no sideways scroll, even rows, clean line breaks */
h1,h2,h3,h4{text-wrap:balance}
p,li,dd{text-wrap:pretty}
.media-frame{max-width:100%;min-width:0}
@media (max-width:599px){
  .contact-mini{flex-direction:column;align-items:flex-start;flex-wrap:nowrap}
  dl.facts:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .radio-row{flex-wrap:nowrap;gap:8px}
  .radio-row > *{flex:1 1 0;min-width:0;justify-content:center;padding-inline:10px}
  .chips{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;justify-content:flex-start;padding-bottom:4px}
  .chips::-webkit-scrollbar{display:none}
  .chips > *{flex:0 0 auto}
  .lb-nav{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  .lb-nav > *{width:100%;justify-content:space-between}
}
@media (min-width:600px) and (max-width:1023px){
  .grid.g3:has(> :nth-child(3):last-child):not(:has(.price)),
  dl.office:has(> :nth-child(3):last-child),
  .grid.g2.office-items:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .grid.g3:has(> :nth-child(3):last-child):has(.price){grid-template-columns:minmax(0,1fr)!important}
  .grid.g5{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid.g3.c5:has(> :nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid.g5 > :last-child:nth-child(odd),
  .grid.g3.c5 > :last-child:nth-child(odd){grid-column:1 / -1;justify-self:center;width:calc(50% - 10px)}
}
