@import url("languages/fonts/roboto-regular.css");
/* Shared by the main site, the archived site and the directory navigation. */
:root {
  --nav-height: 64px;
  scroll-padding-top: var(--nav-height);
}
#site-masthead {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: var(--nav-height);
  box-sizing: border-box;
  z-index: 50;
  --nav-hover: #33FFB5;
  --nav-surface: #000;
  background: var(--nav-surface);
  --nav-gutter: clamp(16px, 3.2vw, 64px);
  --nav-logo-width: var(--nav-height);
  --aft-logo-size: 44px;
  --aft-action-height: 36px;
}
@media (max-width:670px) {
  #site-masthead {
    --nav-gutter: 9px;
  }
}

/* Archived pages have their own fixed header, menus and responsive controls. */
#site-masthead.cmc-header {
  position: fixed !important;
  height: var(--nav-height) !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--nav-surface) !important;
  box-shadow: inset 0 -1px rgb(217 235 228 / .21) !important;
}
.aft-navigation-spacer:has(+ #site-masthead) {height: var(--nav-height) !important;}
#site-masthead.cmc-header > .site-container > nav {height: 100% !important;}
#site-masthead.cmc-header::before, #site-masthead.cmc-header::after { content: none !important; }
#site-masthead.cmc-header > .site-container {
  width: 100% !important;
  max-width: none !important;
  height: var(--nav-height) !important;
  padding-inline: var(--nav-gutter) !important;
}
#site-masthead.cmc-header > .site-container > a:first-child {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  width: var(--nav-logo-width);
  margin-inline-start: 0;
  padding: 0;
  background: var(--nav-hover);
}
#site-masthead.cmc-header > .site-container > a:first-child img {
  width: 74% !important;
  height: 68% !important;
  object-fit: contain;
}
#site-masthead.cmc-header > .site-container :is(a,button,select) {color: #f3f7f5 !important;}
#site-masthead.cmc-header > .site-container a[href*="registration"] {
  background: var(--nav-hover) !important;
  color: #092019 !important;
  border-radius: 3px;
}
#site-masthead.cmc-header :is(.aft-mega-panel, .aft-mobile-backdrop, div.fixed) {top: var(--nav-height) !important;}
#site-masthead.cmc-header :is(.aft-mega-panel, div.fixed.bg-white, .aft-nav-panel, .aft-language-panel) {
  background: var(--nav-surface) !important;
  color: #f3f7f5;
}
#site-masthead.cmc-header :is(.aft-mega-panel, div.fixed.bg-white) :is(a,button,p) {color: #f3f7f5 !important;}
#site-masthead.cmc-header :is(.aft-mega-panel, div.fixed.bg-white) :is(a,button) {
  background: transparent !important;
  box-shadow: none !important;
}
#site-masthead.cmc-header :is(.aft-nav-panel, .aft-language-panel) > div,
#site-masthead.cmc-header .aft-nav-panel .grid > div:last-child > div,
#site-masthead.cmc-header select[data-aft-locale] option {background: var(--nav-surface) !important;}
#site-masthead.cmc-header select {color-scheme:dark;}
#site-masthead.cmc-header :is(a:not(.site-container > a:first-child),button,select):is(:hover,:focus-visible),
#site-masthead.cmc-header nav button[aria-expanded=true] {
  color: var(--nav-hover) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Directory and service previews have a short row of navigation links. */
body:has(> nav#site-masthead) {
  --content-gutter: max(28px, calc((100% - 64rem) / 2 + 28px));
  max-width: none;
  padding: var(--nav-height) var(--content-gutter) 90px;
}
nav#site-masthead {
  flex-wrap: nowrap;
  padding: 8px var(--nav-gutter);
  align-items: center;
  background: var(--nav-surface);
}
nav#site-masthead a {padding: 6px; color: white; background: transparent;}
nav#site-masthead a:is(:hover,:focus-visible) {color: var(--nav-hover);}
@media (max-width:550px) {
  body:has(> nav#site-masthead) {--content-gutter:16px;}
}

/* Top-row navigation labels across languages and page layouts. */
#site-masthead .bar,
#site-masthead #main-nav > .navgroup > summary,
#site-masthead #main-nav > .navlink,
#site-masthead .bar :is(.menubtn, .login, .auth > .button),
#site-masthead .bar .language-picker > summary bdi,
#site-masthead.cmc-header > .site-container :is(a, button, select),
nav#site-masthead > a {
  font-weight: 400;
}

/* Shared corners for desktop dropdowns, the language picker and the mobile menu. */
#site-masthead #main-nav .navgroup > .fly,
#site-masthead .language-panel,
#site-masthead .bar.menu-open nav#main-nav,
#site-masthead.cmc-header > .aft-mega-panel,
#site-masthead.cmc-header > .fixed.bg-white {
  border-radius: 12px;
}

/* Apply the same weight to group headings, links, status labels and selected languages. */
#site-masthead :is(#main-nav .fly, .language-panel, .bar.menu-open #main-nav, .aft-mega-panel, .fixed.bg-white, select[data-aft-locale]),
#site-masthead :is(#main-nav .fly, .language-panel, .bar.menu-open #main-nav, .aft-mega-panel, .fixed.bg-white, select[data-aft-locale]) * {
  font-weight: 400;
}

/* The brand mark and controls share the same dimensions on all site headers. */
#site-masthead {
  --nav-text: rgb(255 255 255 / 88%);
  --nav-rim: rgb(255 255 255 / 20%);
  --nav-secondary: rgb(255 255 255 / 72%);
  --nav-font: Roboto, "AFT Noto", sans-serif;
  color: var(--nav-text);
}
#site-masthead:lang(zh) { --nav-font: Roboto, "Alibaba PuHuiTi 3.0", "PingFang SC", "Microsoft YaHei", sans-serif; }
#site-masthead, #site-masthead :is(a, button, nav, div, summary, select, bdi, span) { font-family: var(--nav-font); }
#site-masthead .bar .brand img, #site-masthead.cmc-header > .site-container > a:first-child img {
  width: var(--aft-logo-size) !important;
  height: var(--aft-logo-size) !important;
  box-sizing: border-box;
  inset: 0;
  margin: auto;
  padding: 5.5px;
  background: var(--market-green, #33ffb5) !important;
  object-fit: contain;
  object-position: center;
}
#site-masthead .bar .auth > :is(.login, .button.small),
#site-masthead.cmc-header > .site-container > div > :is(a[href*="login"], a[href*="registration"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--aft-action-height);
  min-height: var(--aft-action-height);
  padding: 4px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}
#site-masthead .bar .auth > .button.small,
#site-masthead.cmc-header > .site-container > div > a[href*="registration"] {
  background: #fff !important; color: #06150e !important; border-color: transparent !important;
}
#site-masthead .bar .auth > .login,
#site-masthead.cmc-header > .site-container > div > a[href*="login"] {
  background: transparent !important; color: #fff !important; border-color: #fff !important;
}
#site-masthead .bar .auth > .button.small:hover,
#site-masthead.cmc-header > .site-container > div > a[href*="registration"]:hover {
  background: #fff !important; color: #06150e !important; opacity: .8;
}
#site-masthead .bar .auth > .login:is(:hover,:focus-visible,:active),
#site-masthead.cmc-header > .site-container > div > a[href*="login"]:is(:hover,:focus-visible,:active) {
  background: #14251c !important; color: var(--nav-hover) !important; border-color: #497661 !important;
}
#site-masthead .bar .auth > :is(.login, .button.small)::after { content: none; }
#site-masthead .bar .language-picker > summary {
  min-height: var(--aft-action-height); padding-block: 4px;
}
#site-masthead .bar .language-picker img { filter: grayscale(1); }
#site-masthead.cmc-header > .site-container {
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(12px,1.2vw,24px);
}
#site-masthead.cmc-header > .site-container > a:first-child {
  flex: 0 0 var(--nav-logo-width); margin: 0; background: transparent;
}
#site-masthead.cmc-header > .site-container > div { margin-inline-start: auto; gap: clamp(8px,.85vw,16px); }
#site-masthead.cmc-header > .site-container > nav { margin-inline: 0 auto; }
#site-masthead.cmc-header > .site-container > nav button {
  min-height: 36px; padding-inline: clamp(4px,.55vw,11px);
  font-size: round(nearest, clamp(.8rem,.92vw,.94rem), 2px);
}
#site-masthead.cmc-header > .site-container select {
  min-height: var(--aft-action-height); height: var(--aft-action-height); padding-block: 2px;
  color-scheme: dark; background: #000; border-color: transparent;
}
@container masthead (min-width: 56rem) {
  #site-masthead #main-nav > .navgroup > summary, #site-masthead #main-nav > .navlink {
    font-size: round(nearest, clamp(.8rem,.92vw,.94rem), 2px);
  }
}
@media (max-width: 600px) {
  #site-masthead .bar .auth > :is(.login,.button.small),
  #site-masthead.cmc-header > .site-container > div > a[href*="registration"] { padding-inline: 12px; }
  #site-masthead.cmc-header > .site-container, #site-masthead.cmc-header > .site-container > div { gap: 3px; }
}

/* Base header layout for utility pages without the editorial site's base stylesheet. */
#site-masthead.utility-header { --mint: #33ffb5; }
#site-masthead.utility-header .bar, #site-masthead.utility-header .auth { display: flex; align-items: center; }
#site-masthead.utility-header .auth { white-space: nowrap; }
#site-masthead.utility-header :is(a,summary) { color: var(--nav-text); cursor: pointer; text-decoration: none; }
#site-masthead.utility-header .navgroup summary { list-style: none; gap: .45rem; }
#site-masthead.utility-header .navgroup > summary::after {
  content: ""; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg);
}
#site-masthead.utility-header .navgroup { position: relative; }
#site-masthead.utility-header #main-nav a { background: transparent; }
#site-masthead.utility-header .menubtn {
  order: 3; min-height: 44px; padding-inline: 10px; border: 0;
  border-radius: 12px; color: var(--nav-text); background: transparent;
}
body:has(> .utility-header) { padding-top: var(--nav-height); }
body:has(> .directory-links) { max-width: none; padding-inline: max(16px, calc((100% - 64rem) / 2 + 28px)); }
.directory-links { margin-block: 20px; }
@container masthead (max-width:55.999rem) {
  #site-masthead.utility-header .menubtn { display: inline-flex; align-items: center; }
}

#site-masthead .language-picker summary [data-language-code] { display: none; }
#site-masthead.cmc-header .site-container select[data-aft-locale] {
  width: 44px;
  padding: 0;
  border: 0;
  appearance: none;
  cursor: pointer;
  color: transparent !important;
  background: var(--locale-flag) 6px center / 17px 12px no-repeat,
    linear-gradient(45deg, transparent 44%, #aaa 46% 60%, transparent 62%) 29px center / 4px 5px no-repeat,
    linear-gradient(-45deg, transparent 44%, #aaa 46% 60%, transparent 62%) 32px center / 4px 5px no-repeat !important;
  filter: grayscale(1);
}
#site-masthead.cmc-header select[data-aft-locale] option { color: #fff; background: #111; }
#site-masthead.cmc-header .site-container .aft-halloween-menu-marker { display: none; }
@media (max-width: 1023px) {
  #site-masthead.cmc-header .site-container > div > a[href*="registration"] { order: -1; }
}
