/* R36 R6 Travel English release: shared responsive fixes; no hidden overflow. */
#r36-unified-navbar {
 position: relative !important; top: auto !important; right: auto !important;
 left: auto !important; z-index: 20 !important;
 display: flex !important; justify-content: flex-end !important;
 width: fit-content !important; min-width: 0 !important;
 max-width: calc(100% - 20px) !important; box-sizing: border-box !important;
 margin: 7px 10px 9px auto !important; padding: 6px 10px !important;
}
#r36-unified-navbar>div{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important}
#r36-unified-navbar details>div{max-width:min(320px,calc(100vw - 55px))!important}
#r36-unified-navbar a,#r36-unified-navbar select{max-width:100%;box-sizing:border-box}
.site-header,.site-header .container,.site-header .header-inner,
.r4-hero,.r4-hero-content {min-width:0}
.r4-hero-content h1,#hero-title{max-width:100%;overflow-wrap:break-word;word-break:normal}
@media (max-width:800px) {
 #r36-unified-navbar {margin:5px auto 8px!important;max-width:calc(100% - 24px)!important;}
 .site-header .header-inner {min-width:0;flex-wrap:wrap;gap:8px}
 .site-header .brand,.site-header .brand-words {min-width:0}
 .site-header .header-side {min-width:0;flex-wrap:wrap;justify-content:flex-start;gap:6px}
 .site-header .partner-call {max-width:100%;white-space:normal}
 #hero-title{font-size:clamp(1.7rem,7.6vw,3.15rem)!important;line-height:1.15!important}
 .r4-promise{max-width:100%;overflow-wrap:break-word}
}
@media (max-width:430px) {
 #r36-unified-navbar>div {justify-content:flex-end!important}
 #r36-unified-navbar {padding:5px 7px!important;font-size:12px!important}
 .site-header .header-inner {padding-top:4px;padding-bottom:4px}
 #hero-title {font-size:clamp(1.65rem,7.2vw,2.2rem)!important}
}

/* Keep accessibility skip-link off-screen until keyboard focus even when the gateway nav participates in normal flow. */
.skip-link:not(:focus):not(:focus-visible) {
 position:fixed !important; top:0 !important; left:0 !important;
 transform:translateY(-150%) !important;
}
.skip-link:focus,.skip-link:focus-visible {
 position:fixed !important; top:0 !important; left:0 !important;
 transform:translateY(0) !important;
}

/* Owner-requested language selector — visible in both mobile and desktop navigation. */
#r36-unified-navbar .r36-language-control{
 display:flex;align-items:center;gap:7px;min-width:0;
 border-left:1px solid #9bbab0;padding-left:10px;
}
#r36-unified-navbar .r36-language-prompt{
 font:700 13px/1.2 Arial,sans-serif;color:#154b44;
 white-space:nowrap;
}
#r36-unified-navbar #r36-travel-locale{
 display:block;min-width:148px;max-width:min(220px,55vw);
 min-height:36px;padding:6px 10px;border-radius:8px;
 border:1px solid #648e86;background:#fff;color:#103f3d;
 font:700 13px/1.3 Arial,sans-serif;cursor:pointer;
}
#r36-unified-navbar #r36-travel-locale:focus-visible{
 outline:3px solid #1f8372;outline-offset:2px;
}
#r36-unified-navbar #r36-travel-locale option[disabled]{
 color:#6a7777;
}
@media(max-width:500px){
 #r36-unified-navbar .r36-language-control{flex:1 1 100%;justify-content:center;border-left:0;padding-left:0;}
 #r36-unified-navbar #r36-travel-locale{max-width:70vw;min-width:155px}
}


/* R36 EL/EN narrow viewport: only hero/header/language selector, no general overflow mask. */
@media (max-width:500px) {
 .site-header .header-inner {width:100%;max-width:100%;box-sizing:border-box}
 .site-header .header-side {flex:1 1 auto;min-width:0;max-width:100%}
 .site-header .partner-call {min-width:0;max-width:100%;box-sizing:border-box;white-space:normal}
 .r4-hero-content,.r4-hero-content h1,.r4-promise {min-width:0;max-width:100%;box-sizing:border-box}
 #r36-unified-navbar {width:calc(100% - 24px)!important;box-sizing:border-box}
 #r36-unified-navbar>div {max-width:100%;min-width:0;justify-content:center!important}
 #r36-unified-navbar .r36-language-control {min-width:0;max-width:100%;flex-wrap:wrap}
 #r36-unified-navbar #r36-travel-locale {min-width:0;width:min(215px,65vw);max-width:100%}
 .r4-services .service-track {max-width:100%;box-sizing:border-box}
}


/* EN/EL mobile correction: V9 top navigation wraps instead of hiding buttons in a narrow scroller.
   Scoped to the V9 header; do not change desktop navigation or other applications. */
@media (max-width:500px) {
 header.top .wrap {display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
 header.top .wrap > .brand {min-width:0!important;max-width:100%!important;flex:1 1 100%!important}
 header.top .wrap > nav {display:flex!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important;
   overflow-x:visible!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-start!important}
 header.top .wrap > nav > .nav-btn {flex:1 1 110px!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
}
