/* Shared device rules: readable controls, flexible tracks and consistent gutters. */
:root{--site-gutter:clamp(18px,3.3vw,48px)}
img,video,iframe{max-width:100%}
main,main>.v,.header-inner,.detail-main-column{min-width:0}
form>div,.contact-main-grid>*,.about-split>*,.about-intro-grid>*,.sv-hero-grid>*,.service-scope-grid>*,.blog-grid>*{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
input[type="date"]{min-inline-size:0}
h1,h2,h3,p,dd{overflow-wrap:break-word}
button,a,input,select,textarea{-webkit-tap-highlight-color:#f9d50626}
button{touch-action:manipulation}
/* Dynamic content should not impose intrinsic minimum widths on grid tracks. */
.sv-hero-grid,.about-intro-grid,.about-split,.contact-main-grid,.blog-featured{grid-auto-columns:minmax(0,1fr)}
@media(max-width:1050px){
  .page-rail{width:100%;box-sizing:border-box}
  .rail-posts>a{min-width:0}
  .rail-posts strong{overflow-wrap:anywhere}
}
@media(max-width:900px){
  .site-header .menu-toggle,.site-header .theme-toggle{min-height:44px;min-width:44px}
  .site-header .header-book{min-height:44px;display:flex;align-items:center;justify-content:center}
  .site-header nav#nav{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:calc(100dvh - var(--header-height) - 24px - env(safe-area-inset-bottom,0px));padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
  .site-header nav#nav a{min-height:44px;display:flex;align-items:center}
  .site-header .services-dropdown-toggle{min-width:44px;min-height:44px}
  .site-header nav#nav .services-dropdown a{min-height:44px;line-height:1.7}
}
@media(max-width:760px){
  .in{padding-left:var(--site-gutter);padding-right:var(--site-gutter)}
  #bf{padding:22px 18px;gap:20px;grid-template-columns:minmax(0,1fr)}
  #bf label,#contact-form label{font-size:14px}
  #bf input,#bf select,#bf textarea,#contact-form input,#contact-form select,#contact-form textarea,.dock-field input,.dock-field select{font-size:16px;min-height:48px;line-height:1.5}
  #bf .btn,#contact-form .btn,.dock-action .btn{min-height:48px;width:100%;white-space:normal;line-height:1.7}
  #bf textarea,#contact-form textarea{min-height:140px}
  .quick-book .plate-entry input{min-width:0;font-size:30px}
  .quick-book .plate-entry .btn{min-width:52px;min-height:52px}
  .btn{min-height:46px;white-space:normal;line-height:1.6}
  .hero-actions .btn{display:inline-flex;align-items:center;justify-content:center}
  .brands-motion-toggle,.video-toggle{min-height:44px}
  .hero-media-bar{align-items:center;gap:12px}
  .hero-media-bar>a{max-width:52%;line-height:1.8}
  .about-actions,.blog-article-next>div{gap:18px;flex-wrap:wrap}
  .about-final-actions .btn,.single-service-cta .btn{max-width:100%}
  .contact-map-frame iframe{height:320px}
  .faq-list summary,.sv-disclosure>summary,.service-expand>summary{min-height:48px}
  .rail-services a,.rail-all-posts,.blog-back-link{min-height:44px}
  .footer-column{gap:7px}
  .footer-column>a{display:flex;align-items:center;min-height:36px}
  .footer-bottom a{min-height:36px;display:flex;align-items:center}
}
@media(max-width:380px){
  .site-header{padding-left:12px;padding-right:12px}
  .site-header .header-inner{gap:7px}
  .site-header .brand{font-size:18px;gap:7px}
  .site-header .brand img{width:34px;height:34px}
  .site-header .brand small{font-size:8px;letter-spacing:.1em}
  .site-header .header-book{font-size:0;padding:10px;min-width:44px}
  .site-header .header-book:before{content:'Book';font-size:12px}
  .site-header .header-book span{display:none}
  .hero .hero-content{padding-left:18px;padding-right:18px}
  .hero h1{font-size:clamp(44px,12.5vw,48px)}
  .hero-actions{gap:16px}
  .hero-actions .btn{width:100%}
  .hero-actions .text-link{min-height:40px}
  .dock-intro h2{font-size:25px}
  .booking-dock{gap:18px 10px;padding:20px 14px}
  .dock-field label{font-size:10px;letter-spacing:.08em}
  .dock-field:has(input[type="date"]),.dock-field:has(input[name="plate"]){grid-column:1/-1}
  .contact-primary-phone,.console-phone{font-size:28px}
  .contact-console{padding:26px 20px}
  .visit-details{grid-template-columns:1fr;gap:20px}
  .about-facts>div{grid-template-columns:85px 1fr;gap:12px}
  .about-page h1{font-size:42px}
  .about-page .about-intro-grid h2{font-size:35px}
  .sv-hero h1{font-size:36px}
  .sv-experience h2{font-size:29px}
  .sv-experience .sv-hero-actions .sv-book{width:100%}
  .sv-hero-actions{gap:16px}
  .sv-gallery,.sv-style-studio .sv-gallery,.sv-style-technical .sv-gallery{grid-template-columns:1fr}
  .sv-gallery img,.sv-style-studio .sv-gallery img,.sv-style-technical .sv-gallery img{height:190px}
  .sv-style-atelier .sv-gallery-detail{margin-bottom:0}
}
@media(max-height:500px) and (orientation:landscape){
  :root{--header-height:68px}
  .site-header .brand img{width:35px;height:35px}
  .hero .hero-content{padding-top:calc(var(--header-height) + 30px);padding-bottom:95px}
  .hero h1{font-size:clamp(48px,8vw,76px)}
  .hero .eyebrow{margin-bottom:20px}
  .hero-bottom{margin-top:35px}
  .inner-hero{min-height:310px}
}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@supports(padding:max(0px)){
  @media(max-width:900px){.site-header{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}}
}
@media(hover:none){
  .service-card:hover,.btn:hover{transform:none}
  .home-services .service-card.pointer-active{rotate:none;translate:none}
}

/* Tablets and landscape phones need the same readable native controls. */
@media(max-width:900px){
  #bf input,#bf select,#bf textarea,#contact-form input,#contact-form select,#contact-form textarea,.dock-field input,.dock-field select{font-size:16px;min-height:48px;line-height:1.5}
}
