/* Header v3: search in the top row, six menu items, clearer labels, slimmer bar on scroll, one-row phone header */

/* ---------- top row: search box ---------- */
.util .ub-mid{flex:1 1 auto;display:flex;justify-content:center;min-width:0}
.ub-search{display:flex;align-items:center;gap:9px;width:100%;max-width:420px;height:34px;padding:0 14px 0 13px;border-radius:999px;
  background:#fff;border:1px solid #fff;box-shadow:0 1px 0 rgba(0,0,0,.08);cursor:text;transition:box-shadow .15s}
.ub-search:focus-within{box-shadow:0 0 0 3px rgba(201,162,75,.55)}
.ub-search svg{width:16px;height:16px;flex:none;fill:none;stroke:#5b6b85;stroke-width:2;stroke-linecap:round}
.ub-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;color:#0b1d3a;padding:0;height:100%}
.ub-search input::placeholder{color:#6b7891;opacity:1}
.ub-search input::-webkit-search-cancel-button{display:none}

/* ---------- top row: deadline call link ---------- */
.util a.ub-deadline{display:inline-flex;align-items:center;gap:6px;color:#e3c172;font-weight:600;font-size:12.5px;text-decoration:none;white-space:nowrap}
.util a.ub-deadline b{color:#0b1d3a;background:#c9a24b;border-radius:999px;padding:3px 10px;font-weight:700}
.util a.ub-deadline:hover b{background:#d8b464}
.util a.ub-deadline svg{width:16px;height:16px;fill:none;stroke:#c9a24b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ub-right{gap:12px!important}

/* ---------- sticky bar: no magnifier while the top-row box is there ---------- */
@media (min-width:901px){.top .search-open.hb-search{display:none!important}}

/* ---------- six menu items, two with a short dropdown ---------- */
.top .desk details.hd-dd{position:relative!important}
.top .desk .hd-dd summary{white-space:nowrap;font-weight:600;color:#22314d;font-size:14px}
.top .desk .hd-dd summary[aria-current=page]{background:#eef2f8;color:var(--navy);font-weight:700}
.hd-ddl{position:absolute;top:calc(100% + 14px);left:-8px;z-index:40;width:330px;display:grid;gap:2px;padding:8px;background:#fff;
  border:1px solid rgba(11,29,58,.1);border-radius:16px;box-shadow:0 28px 50px -24px rgba(11,29,58,.6)}
.hd-ddl a{display:grid;gap:2px;padding:10px 12px;border-radius:10px;text-decoration:none;color:#0b1d3a}
.hd-ddl a:hover,.hd-ddl a:focus-visible{background:#f1f4f9}
.hd-ddl b{font-size:14.5px;font-weight:700}
.hd-ddl small{font-size:12.5px;color:#5b6b85;font-weight:400;line-height:1.35}
.top .desk>a:after{display:none}

/* ---------- clearer labels: "English" and "Client login" ---------- */
.top .langtop summary .lang-code{display:inline!important;font-size:14px;font-weight:600;letter-spacing:0;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:761px){.top .logindrop summary span{display:inline!important}}
.top .tooldrop summary{gap:7px!important}

/* desktop: fit everything on one line */
@media (min-width:1241px) and (max-width:1340px){
  .top .wrap{gap:6px!important}
  .top .desk>a,.top .desk summary{padding:7px 6px!important;font-size:13.5px!important}
  .top .callbtn{padding:9px 14px!important;font-size:13.5px}
  .top .langtop summary svg.globe{display:none}
}

/* after scrolling the bar gets slimmer but keeps Language and Client login */

/* ---------- tablets: search box narrower, deadline label shorter ---------- */
@media (max-width:1100px){.ub-search{max-width:300px}}
@media (max-width:1000px){.util a.ub-deadline span{display:none}}
@media (max-width:900px){.util .ub-mid{display:none}}

/* ---------- phones: one row (logo, search, Menu) ---------- */
@media (max-width:760px){
  .util .ub-contact,.util .ub-right,.util .ub-mid{display:none!important}
  .util .wrap.ub{padding-top:0!important;padding-bottom:72px!important}
  .top{margin-top:-64px!important}
  .top .top-tools{display:none!important}
  .top .wrap>.search-open.hb-search{display:inline-flex!important;margin-left:auto!important}
  .top{transition:transform .28s ease,box-shadow .3s,background .3s}
  html.hdr-hide .top{transform:translateY(calc(-100% - 24px))}
}
@media (prefers-reduced-motion:reduce){html.hdr-hide .top{transition:none}}

/* mobile menu: login and MARA links */

@media (min-width:1341px) and (max-width:1480px){.top .desk>a,.top .desk summary{padding:7px 6px!important}}

/* Book button: gold like the page's own booking buttons; short label on narrow laptops */
.top .callbtn{background:#c9a24b!important;color:#0b1d3a!important;border:1px solid #b8913d!important;box-shadow:0 6px 16px -10px rgba(201,162,75,.9)!important;font-weight:700}
.top .callbtn:hover,.top .callbtn:focus-visible{background:#d8b464!important;color:#0b1d3a!important}
.top .callbtn span{color:inherit!important}
@media (max-width:1340px){.top .callbtn .cb-long{display:none}}
.top .callbtn .cb-txt{white-space:nowrap}
/* more room between the Book button and the bar's right edge */
@media (min-width:761px){.top .wrap{padding-right:14px!important}}
/* desktop: keep the bar on one line on every computer (Windows fonts run a little wider) */
@media (min-width:1241px){.top .langtop summary svg.globe{display:none}.top .desk>a,.top .desk summary{padding:7px 7px!important}.top .wrap{gap:6px!important}}
html.cb-short .top .callbtn .cb-long{display:none}
/* same space on the right as on the left, on every screen size (phones and tablets too) */
.top .wrap{padding-left:14px!important;padding-right:14px!important}
/* the round Book/Menu button looks further from the edge than the square logo, so it sits a little closer */
.top .wrap{padding-right:6px!important}
