/* R73 — mobile header/footer alignment + visible language selector + admin-bar gap fix. */
.r73-mobile-language{display:none}

@media(max-width:760px){
  /* WordPress already offsets the document for the admin toolbar. Do not add a second 46px header offset. */
  body.admin-bar .r66-site-header,
  body.admin-bar .r67-site-header,
  body.admin-bar .site-header,
  body.admin-bar .site-header.is-scrolled{
    top:0!important;
    margin-top:0!important;
  }
  body.home.admin-bar{padding-top:0!important}
  body.home .utility-bar{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}

  /* Header brand: all three text lines share the same alignment edge. */
  .home .r67-header-inner,
  .r67-header-inner{
    width:calc(100% - 22px)!important;
    min-height:66px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  .home .r67-brand,
  .r67-brand{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    gap:8px!important;
    justify-content:flex-start!important;
  }
  .home .r67-brand .r67-brand-mark,
  .r67-brand .r67-brand-mark{
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
  }
  .home .r67-brand .approved-brand-raster,
  .r67-brand .approved-brand-raster{
    inset:5px!important;
    width:34px!important;
    height:34px!important;
  }
  .home .r67-brand .r67-brand-copy,
  .r67-brand .r67-brand-copy{
    width:auto!important;
    max-width:185px!important;
    min-width:0!important;
    text-align:left!important;
  }
  .r67-brand-localized{gap:2px!important;justify-items:start!important}
  .r67-brand-name{
    width:100%!important;
    font-size:12.5px!important;
    line-height:1.05!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
  .r67-brand-practice{
    display:block!important;
    width:100%!important;
    margin-top:2px!important;
    text-align:left!important;
  }
  .r67-brand-practice i{display:none!important}
  .r67-brand-practice b{
    display:block!important;
    font-size:6.2px!important;
    line-height:1.1!important;
    letter-spacing:.13em!important;
    text-align:left!important;
  }
  .r67-brand-location{
    width:100%!important;
    justify-self:start!important;
    margin-top:1px!important;
    font-size:5.8px!important;
    line-height:1.1!important;
    letter-spacing:.17em!important;
    text-align:left!important;
  }

  /* Keep desktop language buttons/phone out of the compact mobile header. */
  .home .r67-header-actions,
  .r67-header-actions{
    margin-left:auto!important;
    display:flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    gap:7px!important;
    align-items:center!important;
  }
  .home .r67-language-switch,
  .r67-language-switch,
  .home .r67-header-call,
  .r67-header-call{display:none!important}

  /* Compact language selector next to the hamburger. */
  .r73-mobile-language{
    position:relative!important;
    display:block!important;
    flex:0 0 auto!important;
    margin:0!important;
  }
  .r73-mobile-language summary{
    list-style:none!important;
    display:grid!important;
    place-items:center!important;
    width:38px!important;
    height:38px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.15)!important;
    border-radius:13px!important;
    background:rgba(255,255,255,.055)!important;
    color:#f5d37e!important;
    cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  .r73-mobile-language summary::-webkit-details-marker{display:none!important}
  .r73-language-globe{font:800 18px/1 Arial,sans-serif!important}
  .r73-language-panel{
    position:absolute!important;
    z-index:120!important;
    top:calc(100% + 9px)!important;
    right:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:5px!important;
    width:166px!important;
    padding:7px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:15px!important;
    background:rgba(3,26,49,.98)!important;
    box-shadow:0 15px 35px rgba(0,10,24,.34)!important;
    backdrop-filter:blur(14px)!important;
  }
  .r73-language-panel button{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    min-height:50px!important;
    padding:5px!important;
    border:0!important;
    border-radius:10px!important;
    background:transparent!important;
    color:#fff!important;
    font-size:8px!important;
    font-weight:800!important;
    cursor:pointer!important;
  }
  .r73-language-panel button.is-active{background:rgba(255,255,255,.10)!important}
  .r73-language-panel .language-flag{width:22px!important;height:15px!important;border-radius:2px!important;object-fit:cover!important}
  .home .r66-site-header .r66-menu-toggle,
  .r66-site-header .r66-menu-toggle{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
    border-radius:13px!important;
  }

  /* Footer brand: same lockup logic as header, centered as one coherent unit. */
  .home .site-footer .footer-main{padding-top:24px!important}
  .home .site-footer .footer-grid{gap:13px!important;padding-bottom:15px!important}
  .home .site-footer .footer-brand{
    width:100%!important;
    justify-content:center!important;
    padding:0!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:300px!important;
    min-width:0!important;
    gap:10px!important;
    margin:0 auto!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r69-footer-brand-mark{
    width:54px!important;
    height:54px!important;
    flex:0 0 54px!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .approved-brand-raster{
    inset:5px!important;
    width:44px!important;
    height:44px!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand-copy{
    width:190px!important;
    max-width:190px!important;
    min-width:0!important;
    text-align:left!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-localized{
    gap:2px!important;
    justify-items:start!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-name{
    width:100%!important;
    font-size:13.8px!important;
    line-height:1.05!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice{
    display:block!important;
    width:100%!important;
    margin-top:3px!important;
    text-align:left!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice i{display:none!important}
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice b{
    display:block!important;
    font-size:6px!important;
    letter-spacing:.13em!important;
    text-align:left!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-location{
    width:100%!important;
    justify-self:start!important;
    margin-top:2px!important;
    font-size:5.7px!important;
    letter-spacing:.16em!important;
    text-align:left!important;
  }
  .home .site-footer .footer-motto{
    padding-top:2px!important;
    gap:6px 10px!important;
  }
  .home .site-footer .footer-bottom,
  .home .site-footer .footer-bottom-r64{
    padding-top:11px!important;
    padding-bottom:14px!important;
  }

  /* RTL brand uses a single right-alignment edge instead of mixed centering. */
  html[dir="rtl"] .r67-brand{flex-direction:row-reverse!important}
  html[dir="rtl"] .r67-brand .r67-brand-copy,
  html[dir="rtl"] .r67-brand-localized,
  html[dir="rtl"] .r67-brand-name,
  html[dir="rtl"] .r67-brand-practice,
  html[dir="rtl"] .r67-brand-practice b,
  html[dir="rtl"] .r67-brand-location{
    text-align:right!important;
    justify-items:end!important;
    justify-self:end!important;
    direction:rtl!important;
  }
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand{flex-direction:row-reverse!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand-copy,
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand .r67-brand-name,
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice,
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice b,
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand .r67-brand-location{
    text-align:right!important;
    justify-items:end!important;
    justify-self:end!important;
    direction:rtl!important;
  }
}

@media(max-width:360px){
  .home .r67-brand .r67-brand-copy,.r67-brand .r67-brand-copy{max-width:150px!important}
  .r67-brand-name{font-size:11.3px!important}
  .r67-brand-practice b{font-size:5.6px!important}
  .r67-brand-location{font-size:5.3px!important}
  .r73-mobile-language summary{width:35px!important;height:35px!important}
  .home .r66-site-header .r66-menu-toggle,.r66-site-header .r66-menu-toggle{width:37px!important;height:37px!important;flex-basis:37px!important}
}
