/* October 2026 touch-device audit. Preserve content and desktop art direction. */
/* Opening the compact menu locks body scrolling. Reserve the desktop gutter
   so its disappearance does not shift the page sideways on tablet/laptop widths. */
html{scrollbar-gutter:stable}
/* No dictionary hyphenation or arbitrary mid-word breaks, in any locale.
   Keep this explicit: older page-specific styles enabled both behaviours. */
body[data-premium="7"] :is(main,header,footer) *{
  -webkit-hyphens:none!important;
  hyphens:none!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body[data-premium="7"] :is(h1,h2,h3,h4,h5,h6){min-width:0}
body[data-premium="7"] :is(.ad-service-cover,.ad-related-grid,.ad-method-cover,.ad-method)>*{min-width:0}
@media(max-width:550px){
  /* A thumbnail must not leave the adjacent title only a few letters wide. */
  body[data-premium="7"] .ad-journal-story:not(:first-child){grid-template-columns:minmax(0,1fr)}
  body[data-premium="7"] .ad-journal-story:not(:first-child) img{width:100%;height:200px}
}
@media(max-width:389px){
  body[data-premium="7"] .v7-footer-grid{grid-template-columns:minmax(0,1fr)}
  body[data-premium="7"] .site-footer-languages{grid-column:1}
  body[data-premium="7"] .v7-slide-title{left:16px;right:16px}
}
@media(max-width:319px){
  body[data-premium="7"] .ad-discipline-copy{padding-inline:12px}
  body[data-premium="7"] .ad-method-cover>div{padding-inline:16px}
  body[data-premium="7"] .nag-service-grid li{padding-left:8px}
}
@media(max-width:1199px){
  /* Expanded submenus scroll inside the navigation, including short landscape
     viewports. Dynamic height follows the browser's expanding address bar. */
  body[data-premium="7"] .v7-navigation{
    overscroll-behavior-y:contain;
    scroll-padding-block:14px;
    padding-bottom:max(29px,env(safe-area-inset-bottom));
  }
}
@media(min-width:1000px) and (max-width:1199px){
  body[data-has-nag] .v7-navigation{max-height:calc(100dvh - 106px)}
  body[data-has-nag] .v7-menu-button{min-height:44px}
  body[data-has-nag].menu-open .v7-menu-button i{background:transparent}
  body[data-has-nag].menu-open .v7-menu-button i::before{top:0;transform:rotate(45deg)}
  body[data-has-nag].menu-open .v7-menu-button i::after{top:0;transform:rotate(-45deg)}
}
@media(min-width:701px) and (max-width:999px){
  body[data-premium="7"] .v7-navigation{max-height:calc(100dvh - 86px)}
}
@media(max-width:700px){
  body[data-premium="7"] .v7-navigation{max-height:calc(100dvh - 82px)}
}
@media(max-width:999px), (pointer:coarse){
  /* Keep form text and hit areas comfortable in portrait AND landscape.
     The old 16px rule stopped at 550px, reverting phones in landscape to 13px. */
  body[data-premium="7"] .site-form-field input:not([type=checkbox]),
  body[data-premium="7"] .site-form-field select,
  body[data-premium="7"] .site-form-field textarea{font-size:16px;min-height:48px}
  body[data-premium="7"] .site-form-field>label{font-size:12px}
  body[data-premium="7"] .site-form-consent label{font-size:12px;min-height:44px}
  body[data-premium="7"] .site-form-consent input{width:20px;height:20px}
  body[data-premium="7"] .v7-carousel-controls>button{width:44px;height:44px;flex:0 0 44px}
  body[data-premium="7"] .v7-service-photo>a{width:44px;height:44px}
  body[data-premium="7"] .v7-insight-card>a,
  body[data-premium="7"] a.ad-link{min-height:44px;font-size:12px}
  body[data-premium="7"] .v7-button{font-size:12px;min-height:48px;max-width:100%;white-space:normal;text-align:center}
  body[data-premium="7"] .site-language summary{min-height:44px}
}
@media(max-width:700px){
  /* Small footer links were 9–10px. Increase the text and the actual tappable
     row, not invisible overlapping hit boxes. */
  body[data-premium="7"] .v7-footer-column>a,
  body[data-premium="7"] .site-footer-languages>a{display:flex;align-items:center;min-height:32px;font-size:12px;line-height:1.6;overflow-wrap:break-word}
  body[data-premium="7"] .v7-footer-column h3{font-size:12px}
}
