/* The mobile menu is controlled by the existing checkbox and native details. */
@media screen and (max-width:1199px) {
  #headerSlider #tvo-mast .tm-bar {
    position:relative; display:grid; grid-template-columns:minmax(76px,1fr) minmax(0,max-content) minmax(0,max-content);
    gap:6px; align-items:center; padding:6px 0; min-height:0;
  }
  body.tm-active #page #headerSlider #tvo-mast .tm-brand { grid-area:1/1; width:100%; min-width:0; justify-self:start }
  body.tm-active #page #headerSlider #tvo-mast .tm-brand .tm-wordmark {
    width:clamp(96px,24vw,124px); max-width:100%;
  }
  #headerSlider #tvo-mast .tm-toggle, #headerSlider #tvo-mast a.tm-client {
    position:static; display:inline-flex!important; margin:0; min-width:0; max-width:100%; min-height:44px;
    padding:6px 11px!important; font-size:14px; line-height:1.2; letter-spacing:normal;
  }
  #headerSlider #tvo-mast .tm-toggle { grid-area:1/3; cursor:pointer; white-space:normal; text-align:center; overflow-wrap:anywhere }
  #headerSlider #tvo-mast a.tm-client { grid-area:1/2; gap:5px; white-space:normal; max-width:min(38vw,100%); text-align:center; overflow-wrap:anywhere }
  #headerSlider #tvo-mast .tm-client .tm-arrow { display:none }
  #headerSlider #tvo-mast #t6-menu:checked + .tm-toggle {
    color:#2c1c13!important; background:#f3d39a!important;
  }
  #headerSlider #tvo-mast #tm-services {
    position:absolute; grid-area:auto; top:100%; inset-inline:0; z-index:8;
    box-sizing:border-box; width:auto; margin:0; padding:4px 10px; 
    max-height:63vh; max-height:63dvh; overflow:auto; overscroll-behavior-y:contain;
    border:1px solid #634a37; border-radius:8px; background:#2b1e17; box-shadow:0 8px 18px #160b0740;
  }
  #headerSlider:has(#t6-menu:checked) { overflow:visible!important; z-index:32; position:relative }
  #headerSlider #tvo-mast #tm-services>ul { display:block; padding:0; margin:0 }
  #headerSlider #tvo-mast #tm-services>ul>li {
    display:block; position:relative; width:100%; margin:0; padding:0; border:0;
  }
  #headerSlider #tvo-mast #tm-services>ul>li+li { border-top:1px solid #594231 }
  #headerSlider #tvo-mast #tm-services>ul>li>a {
    display:flex; align-items:center; min-height:44px; border:0; padding:8px 6px;
    letter-spacing:normal; text-align:start; text-shadow:none; overflow-wrap:break-word;
  }
  #headerSlider #tvo-mast #tm-services .tm-group>a { margin-inline-end:46px }
  #headerSlider #tvo-mast #tm-services .t6-disclose { display:block; position:static; width:100%; margin:0 }
  #headerSlider #tvo-mast #tm-services .tm-disclosure {
    position:absolute; inset-block-start:0; inset-inline-end:0; width:44px; height:44px; margin:0;
  }
  #headerSlider #tvo-mast #tm-services .tm-subpages {
    position:static; box-sizing:border-box; width:100%; max-width:none; min-width:0; 
    margin:0 0 7px; padding:3px 6px; border:0; border-radius:6px; box-shadow:none;
  }
  #headerSlider #tvo-mast #tm-services .tm-subpages a { min-height:44px; padding:8px 10px; line-height:1.3 }
  #headerSlider #tvo-mast .tm-tools { row-gap:0 }
  #headerSlider #tvo-mast .tm-partners { justify-content:flex-start; column-gap:12px; row-gap:0 }
  #headerSlider #tvo-mast .tm-rates { justify-content:flex-start; row-gap:0; line-height:1.25 }
  #headerSlider #tvo-mast .tm-title h1 { line-height:1.35!important; white-space:normal; overflow-wrap:break-word }
}
@media screen and (max-width:700px) {
  #headerSlider #tvo-mast .tm-title { padding:6px 0 0 }
  body.tm-active.tvo-home #page #headerSlider .carousel-inner>.item:first-child .carousel-caption,
  body.tm-active.tvo-inner #page #headerSlider .carousel-inner .carousel-caption {
    box-sizing:border-box; min-height:0!important; padding:20px 16px 72px!important;
  }
  body.tm-active #page #headerSlider .carousel-inner .carousel-caption h2 {
    font-size:clamp(26px,6.6vw,36px)!important; line-height:1.12!important; margin:0 0 12px!important;
  }
  body.tm-active #page #headerSlider .carousel-inner .carousel-caption>br { display:none }
  body.tm-active #page #headerSlider .carousel-caption .btn-more-info { margin-top:0!important; min-height:44px }
  body.tm-active #page #headerSlider .garance-image { width:58px; max-width:18vw }
  body.tm-active .tvo-compact-whatsapp {
    bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;
  }
}
@media screen and (max-width:370px) {
  #headerSlider #tvo-mast .tm-bar { gap:4px }
  #headerSlider #tvo-mast a.tm-client,#headerSlider #tvo-mast .tm-toggle { padding-inline:8px!important; font-size:13px }
}