/* Mobile usability fixes. Loaded after component/theme styles. */
@media(max-width:1180px) {
  body.mobile-menu-open { overflow:hidden; }
  .mobile-menu-open .site-header { background:var(--ink); }
  .mobile-nav {
    max-height:calc(var(--mobile-viewport-height,100dvh) - var(--site-header-height,68px));
    overflow-y:auto; overscroll-behavior:contain;
    padding-bottom:max(24px,env(safe-area-inset-bottom));
  }
  .mobile-menu-open .dock-shell { visibility:hidden; pointer-events:none; }
  .mobile-nav a,.mnav-drop summary { min-height:48px; }
  .mobile-nav .mnav-list a { font-size:16px; }
  .mobile-nav a[aria-current=page] { color:#e8b58c; }
  .header-theme-toggle,.menu-toggle { width:44px; height:44px; flex:none; }
}
/* Native touch pickers retain browser validation and the platform's full option list. */
@media(pointer:coarse) {
  .hero-search-fields select,.gx-field select,.dock-fields select {
    display:block; width:100%; min-width:0; min-height:44px; font-size:16px;
    color:inherit; background:transparent; border:0; border-radius:0;
  }
  .hero-search-fields label,.gx-field { min-width:0; }
  .field select { min-height:48px; }
}
/* These carousels use native touch scrolling: one original copy, no auto advance. */
.fv-native { overflow-x:auto; overflow-y:hidden; touch-action:pan-x pan-y pinch-zoom; scroll-snap-type:x mandatory; scroll-padding-inline:14px; -webkit-user-select:auto; user-select:auto; }
.fv-native .fv-rail { transform:none; will-change:auto; }
.fv-native .fv-card { scroll-snap-align:start; scroll-snap-stop:always; }
.fv-native .fv-card:hover { transform:none; }
@media(max-width:1000px) {
  .ck-stage { padding:65px 0; }
  .ck-hud { margin-bottom:35px; }
  .ck-track { gap:45px; }
  .ck-panel { grid-template-columns:minmax(0,1fr); gap:20px; }
  .ck-copy { grid-column:1; grid-row:auto; }
  .ck-hero { grid-column:1; grid-row:auto; height:220px; display:flex; justify-content:center; align-items:center; }
  .ck-section:not(.is-live) .ck-obj { width:auto; height:220px; max-width:100%; max-height:220px; object-fit:contain; }
  .ck-modes { grid-column:1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .ck-mode { min-width:0; flex-direction:column; padding:12px 8px; gap:10px; text-align:center; }
  .ck-mode-txt { white-space:normal; font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
  .ck-mode-txt small,.ck-mode>[data-icon] { display:none; }
  .ck-copy p { font-size:16px; }
  .ck-label { min-height:48px; font-size:16px; }
  .ck-hud h2 { font-size:clamp(32px,6vw,45px); }
}
@media(max-width:700px) {
  .site-header .nav-wrap { gap:12px; }
  .site-header .brand-logo { flex-shrink:1; min-width:0; width:200px; max-width:calc(100% - 108px); }
  .site-header .brand-logo img,.site-header.is-scrolled .brand-logo img { width:100%; height:auto; max-height:33px; object-fit:contain; }
  .site-header .nav-actions { gap:8px; flex:none; }
  .mnav-list { grid-template-columns:minmax(0,1fr); gap:0; }
  .mobile-nav .mnav-list a { padding:12px 0; }
  .mobile-nav .mnav-list .mnav-all { grid-column:auto; }
  .container :is(h1,h2,h3) { overflow-wrap:anywhere; }
  .breadcrumb { overflow-wrap:anywhere; }
  :is(.hero-search-fields,.gx-search,.sd-search.sv-search) { grid-template-columns:minmax(0,1fr); }
  :is(.hero-search-fields,.gx-search,.sd-search) > * { min-width:0; grid-column:1; }
  .hero-search-fields label,.hero-search-fields .finder-control { height:auto; min-height:68px; }
  .gx-search label,.gx-search .finder-control { min-height:68px; }
  .finder-select-trigger { min-height:44px; font-size:16px; }
  .finder-select-trigger>span,.finder-value-text,.pick-value { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
  .pick-trigger { height:auto; gap:8px; min-height:48px; }
  .finder-options [role=option] { min-height:48px; }
  .dock-fields .finder-control,.dock-fields label { height:auto; min-height:48px; }
  .dock-fields .button { min-height:48px; font-size:16px; padding-inline:12px; }
  .dock-fields .finder-select-trigger { min-height:40px; }
  .dock-toggle { min-height:44px; font-size:15px; }
  /* Let short/landscape viewports scroll past the hero instead of clipping its form. */
  .network-hero { height:auto; min-height:100svh; }
  .network-hero .hero-content { height:auto; min-height:100svh; }
  .network-hero .hero-copy { padding-bottom:0; }
  .network-hero .hero-content { padding-bottom:150px; }
  .network-hero .hero-copy :is(h1,.eyebrow),.headline-light,.hero-finder,.finder-secondary { animation:none; opacity:1; transform:none; filter:none; }
  .network-hero .hero-copy:focus-within { overflow:visible; }
  /* Keep the close control visible through every form step and keyboard resize. */
  dialog {
    position:fixed; inset:auto; top:calc(var(--mobile-viewport-top,0px) + 12px); left:12px;
    width:calc(100% - 24px); max-width:none; margin:0;
    max-height:calc(var(--mobile-viewport-height,100dvh) - 24px);
    overflow:auto; overscroll-behavior:contain; scroll-padding-top:90px;
  }
  .dialog-top { position:sticky; top:0; z-index:3; padding:16px; background:var(--paper); }
  .dialog-top .brand-logo { min-width:0; max-width:calc(100% - 60px); }
  .dialog-top .brand-logo img { width:100%; height:auto; max-height:28px; object-fit:contain; }
  .dialog-top .icon-button { width:44px; height:44px; flex:none; }
  #dialog-body { padding:24px 18px; }
  #dialog-body :is(h2,p,.form-note) { overflow-wrap:anywhere; }
  .form-grid { grid-template-columns:minmax(0,1fr); }
  .form-grid>* { min-width:0; }
  .form-actions { align-items:stretch; }
  .form-actions>.button { min-width:0; }
  .field :is(input,select,textarea) { font-size:16px; min-height:48px; scroll-margin-top:100px; }
  .field textarea { min-height:120px; }
  .summary-list>div { grid-template-columns:minmax(0,1fr); gap:5px; }
  /* Separate carousel controls from card content and show one complete card. */
  .fv-stage { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .fv-stage .fv-track { grid-column:1/-1; grid-row:1; margin-bottom:0; padding-bottom:8px; }
  .fv-native .fv-rail { grid-auto-columns:100%; gap:16px; }
  .fv-stage .fv-arrow { position:static; transform:none; grid-row:2; margin:0; width:48px; height:48px; }
  .fv-stage .fv-arrow-prev { grid-column:1; justify-self:end; }
  .fv-stage .fv-arrow-next { grid-column:2; justify-self:start; }
  .fv-top { flex-wrap:wrap; gap:8px 14px; }
  .fv-cta,.gx-actions { flex-wrap:wrap; }
  :is(.fv-profile,.gx-link,.mx-link,.sc-link,.blog-category,.blog-back) { display:inline-flex; align-items:center; min-height:48px; }
  :is(.fv-call,.gx-call,.help-cta-button,.sd-text-action,.sv-firm-call) { min-height:48px; font-size:16px; }
  :is(.sc-nav a,.sc-sublinks>a,.sd-nav a,.sd-city-strip>a,.sd-all-cities summary) { min-height:48px; font-size:14px; }
  .sd-nav { top:var(--site-header-height,68px); }
  .sd-nav>.container { scroll-padding-inline:8px; }
  .pagination { flex-wrap:wrap; }
  .pagination button { min-width:44px; min-height:44px; }
  .sd-faq-list details>p,.sd-overview-copy>p,.sc-body>p { font-size:16px; }
  .sd-search .field { font-size:16px; }
  .sd-search .button,.sd-hero-actions .button { font-size:16px; }
  /* Fixed actions leave the last footer row reachable, including safe areas. */
  body:has(.gd-mobile-bar) .site-footer.ft { padding-bottom:calc(100px + env(safe-area-inset-bottom)); }
  .gd-mobile-bar { gap:8px; }
  .gd-mobile-bar .gd-call,.gd-mobile-bar .gd-locate { font-size:16px; min-width:0; animation:none; }
  .gd-mobile-bar .gd-call { padding-inline:12px; }
  .toast { bottom:calc(18px + env(safe-area-inset-bottom)); overflow-wrap:anywhere; }
  body:has(.gd-mobile-bar)>.toast { bottom:calc(96px + env(safe-area-inset-bottom)); }
  .ft-directory a,.ft-directory button,.ft-legal a,.ft-legal button { min-height:44px; display:inline-flex; align-items:center; }
  .ft-theme-toggle { min-height:44px; }
  .ft-legal { row-gap:4px; }
}
@media(max-width:380px) {
  .ck-modes { grid-template-columns:minmax(0,1fr); }
  .ck-mode { flex-direction:row; text-align:left; justify-content:flex-start; }
  .gd-mobile-bar { grid-template-columns:1fr 1fr; }
  .gd-mobile-bar .gd-call,.gd-mobile-bar .gd-locate { font-size:14px; gap:6px; }
}
@media(pointer:coarse) and (max-height:500px) {
  .site-header.over-hero { position:absolute; }
  .site-header:not(.over-hero) { position:relative; }
  .sd-nav { position:relative; top:auto; }
  .dock-shell { display:none; }
}
/* Touch tablets and landscape phones keep modal controls reachable too. */
@media(pointer:coarse) and (min-width:701px) {
  dialog { position:fixed; inset:auto; top:calc(var(--mobile-viewport-top,0px) + 12px); left:50%; transform:translateX(-50%); width:min(660px,calc(100% - 24px)); margin:0; max-height:calc(var(--mobile-viewport-height,100dvh) - 24px); overflow:auto; overscroll-behavior:contain; scroll-padding-top:95px; }
  .dialog-top { position:sticky; top:0; z-index:3; background:var(--paper); }
  .dialog-top .icon-button { width:44px; height:44px; flex:none; }
}
