/* Shared visitor navigation and the event drawer. */
.masthead .headrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.5rem,2vw,2rem);
}
.masthead .headrow #primarynav {
  position: static;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: clamp(.35rem,1.4vw,1.4rem);
}
#primarynav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 44px;
  padding: .35rem .65rem;
  margin: 0;
  border: 0;
  border-radius: .35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: #342941;
  background: transparent;
  cursor: pointer;
}
#primarynav > .nav-exhibitor {
  background: #14563a;
  color: #fff;
  padding-inline: .95rem;
}
.masthead #primarynav > .nav-exhibitor:is(:hover,:focus-visible,[aria-current="page"],.current-section) {
  background: #0d422d;
  color: #fff;
}
.masthead #primarynav :is(a,button):is(:hover,:focus-visible,[aria-expanded="true"]) {
  color: #322543;
  background-color: #fbefc2;
  text-decoration: none;
}
.masthead #primarynav :is(a,button):is([aria-current="page"],.current-section) {
  color: #30233b;
  background: #ffe081;
  text-decoration: none;
}
@media (any-hover: hover) {
  .masthead #primarynav a:is([aria-current="page"],.current-section):hover,
  #mobile-nav .nav-column a:is([aria-current="page"],.current-section):hover {
    background: #efc45d;
  }
  .masthead #primarynav > .nav-exhibitor:is([aria-current="page"],.current-section):hover {
    background: #083925;
    color: #fff;
  }
}
#primarynav .mobile-menu-trigger, #mobile-nav #close-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0 .65rem;
  border: 0;
  border-radius: .35rem;
  color: #14563a;
  background: transparent;
  cursor: pointer;
}
#primarynav .mobile-menu-trigger svg, #mobile-nav #close-nav svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
html.street-drawer-open, html.street-drawer-open body { overflow: hidden; overscroll-behavior: none; }
#mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: 50vw;
  min-width: 0;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fffbf2;
  color: #342941;
  overflow: hidden;
  transform: translateX(100%);
}
#mobile-nav[open] { display: flex; flex-direction: column; transform: translateX(0); }
#mobile-nav:not([open]) { pointer-events: none; }
#mobile-nav::backdrop { background: rgb(32 32 28 / .48); }
@media (prefers-reduced-motion: no-preference) {
  #mobile-nav { transition: transform .2s ease-out, display .2s allow-discrete, overlay .2s allow-discrete; }
  #mobile-nav::backdrop { opacity: 0; transition: opacity .2s, display .2s allow-discrete, overlay .2s allow-discrete; }
  #mobile-nav[open]::backdrop { opacity: 1; }
  @starting-style {
    #mobile-nav[open] { transform: translateX(100%); }
    #mobile-nav[open]::backdrop { opacity: 0; }
  }
}
#mobile-nav, #mobile-nav :is(a,button,h2) {
  font-family: var(--street-menu-font, StreetHK, "PingFang HK", sans-serif);
  font-style: normal;
  letter-spacing: normal;
  text-shadow: none;
}
#mobile-nav .mobile-menu-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  min-height: 56px;
  padding: calc(.3rem + env(safe-area-inset-top)) max(.3rem,env(safe-area-inset-right)) .3rem clamp(.6rem,3vw,1.45rem);
  background: #e4eedc;
}
#mobile-nav #mobile-nav-title { margin: 0; font-size: 1rem; font-weight: 600; color: #183e2d; line-height: 1.35; }
#mobile-nav #close-nav:is(:hover,:active) { background: #cddfc0; }
#mobile-nav .drawer-account {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  margin: .75rem clamp(.6rem,3vw,1.45rem) 0;
  padding: .45rem .65rem;
  box-sizing: border-box;
  border-radius: .4rem;
  background: #14563a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
#mobile-nav .drawer-account svg { flex: none; }
#mobile-nav .drawer-account:hover { background: #0d422d; }
#mobile-nav .drawer-account:active { background: #093422; }
#mobile-nav .drawer-social {
  display: flex;
  flex: none;
  align-items: center;
  gap: .35rem;
  padding: .35rem max(.6rem,env(safe-area-inset-right)) max(.35rem,env(safe-area-inset-bottom)) clamp(.6rem,3vw,1.45rem);
  background: #fbf2d8;
}
#mobile-nav .drawer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem;
  border-radius: .35rem;
  color: #342941;
  text-decoration: none;
}
#mobile-nav .drawer-social a:hover { background: #ffe298; }
#mobile-nav .drawer-social a:active { background: #efc45d; }
#mobile-nav .drawer-social .social-icon { width: 1.25rem; height: 1.25rem; }
#mobile-nav .mobile-menu-links {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem clamp(.6rem,3vw,1.45rem);
}
#mobile-nav .nav-column { min-width: 0; }
#mobile-nav .nav-column + .nav-column { margin-top: 1.25rem; }
#mobile-nav .nav-column h2 {
  display: flex;
  align-items: center;
  gap: .38rem;
  margin: 0 0 .25rem;
  font-size: .8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: #52604d;
}
#mobile-nav .nav-column h2::before {
  content: "";
  width: .4rem;
  height: .75rem;
  flex: none;
  transform: skew(-12deg);
  background: #429467;
}
#mobile-nav .nav-column:nth-child(2) h2::before { background: #eeb543; }
#mobile-nav .nav-column:nth-child(3) h2::before { background: #e47963; }
#mobile-nav .nav-column:nth-child(4) h2::before { background: #a292bc; }
#mobile-nav .nav-column a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: .35rem .4rem;
  border: 0;
  border-radius: .25rem;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: #342941;
  overflow-wrap: anywhere;
  text-decoration: none;
}
#mobile-nav .nav-column a:is(:hover,:active) { background: #fbefc2; }
#mobile-nav .nav-column a:is([aria-current],.current-section) { background: #ffe081; }
#mobile-nav :is(a,button):focus-visible { outline: 2px solid #14563a; outline-offset: 1px; }
@media (min-width: 821px) {
  #mobile-nav .mobile-menu-head {
    min-height: 4.5rem;
    padding-inline: clamp(1.5rem, 3vw, 3.5rem) clamp(1rem, 2vw, 2.5rem);
  }
  #mobile-nav #mobile-nav-title { font-size: 1.25rem; }
  #mobile-nav .drawer-account {
    align-self: start;
    margin: 1.25rem clamp(1.5rem, 3vw, 3.5rem) 0;
    padding-inline: 1.25rem;
  }
  #mobile-nav .drawer-social { padding-inline: clamp(1.5rem, 3vw, 3.5rem); }
  #mobile-nav .mobile-menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 2rem clamp(1rem, 3vw, 3.5rem);
    padding: 2rem clamp(1.5rem, 3vw, 3.5rem);
  }
  #mobile-nav .nav-column + .nav-column { margin-top: 0; }
  #mobile-nav .nav-column h2 { margin-bottom: .5rem; font-size: .875rem; }
  #mobile-nav .nav-column a { font-size: 1rem; }
}
@media (max-width: 820px) {
  :root { --street-menu-height: 3.5rem; }
  .masthead .headrow {
    gap: .5rem;
    padding-inline: max(.75rem, env(safe-area-inset-left)) max(.5rem, env(safe-area-inset-right));
  }
  .masthead .headrow .head-brands {
    flex: 1 1 auto;
    min-width: 0;
    gap: .45rem;
  }
  .masthead .wordmark { min-height: 44px; }
  .masthead .site-brand-image { width: clamp(5.25rem, 24vw, 6.25rem); }
  .masthead .headrow .event-organizer { flex: 0 1 auto; min-width: 0; padding-inline-start: .4rem; }
  .masthead .headrow #primarynav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: .25rem;
  }
  #primarynav > a:not([data-nav="map"]) { display: none; }
  #primarynav > a[data-nav="map"] {
    min-height: 44px;
    padding: .4rem .7rem;
    background: #f9f0d6;
    color: #3b3326;
    font-size: .875rem;
  }
}
.site-map-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.8rem 2.5rem;
  margin: 2rem 0 3rem;
}
.site-map-groups section { border-top: .25rem solid #36204e; }
.site-map-groups h2 { margin: .7rem 0 .4rem; font-size: 1.5rem; }
.site-map-groups ul { margin: 0; padding: 0; list-style: none; }
.site-map-groups li + li { border-top: 1px solid var(--line); }
.site-map-groups a { display: flex; align-items: center; min-height: 44px; width: fit-content; }
.sponsor-home {
  isolation: isolate;
  position: relative;
  overflow: clip;
  color: #29233f;
  background: #d9fcf1;
  border-block-start: 2px solid #302144;
}
.sponsor-home::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: clamp(8rem, 28vw, 27rem);
  background: repeating-linear-gradient(132deg, transparent 0 13px, #8ae7d3 13px 17px);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
}
.sponsor-home-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  padding-block: clamp(1.6rem, 3.5vw, 3.5rem);
}
#content .sponsor-home h2 {
  margin: 0 0 .3rem;
  font-family: var(--street-heading-font);
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  letter-spacing: .035em;
}
.sponsor-home p { margin: 0; }
.sponsor-home .solid-btn { min-height: 44px; background: #36204e; color: #fff; }
@media (max-width: 600px) {
  #content .sponsor-home h2, .site-map-groups h2 { font-size: 1.35rem; }
}

.head-brands { display: flex; align-items: center; min-width: 0; gap: clamp(.5rem,1.2vw,1rem); }
.head-brands .wordmark { flex: 0 0 auto; }
.event-organizer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  max-width: clamp(5rem, 12vw, 10rem);
  padding-inline-start: clamp(.5rem,1vw,.85rem);
  border-inline-start: 1px solid #c9c0ab;
  gap: 2px;
}
.event-organizer[hidden], .event-organizer [hidden], .org-settings[hidden] { display: none; }
.organizer-label { font-size: .7rem; line-height: 1; color: #5c5354; }
.organizer-name { font-size: .88rem; font-weight: 700; line-height: 1.2; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event-organizer img { display: block; width: auto; max-width: 100%; height: 28px; object-fit: contain; object-position: left center; }
.org-preview { display: block; max-height: 3rem; max-width: 9rem; object-fit: contain; }
.org-settings .org-form h2 { margin-bottom: .35em; }
.masthead #primarynav a, .masthead #open-nav {
  font-family: var(--street-heading-font);
  letter-spacing: .035em;
}
@media (max-width: 600px) {
  .event-organizer { max-width: min(24vw, 6.5rem); }
  .event-organizer img { max-height: 23px; }
  .organizer-name { font-size: .8rem; }
  .headrow { column-gap: .7rem; }
}

/* Keep operational links separate from the visitor's directory and map. */
.sitefoot .foot-grid {
  display: grid;
  grid-template-columns: minmax(10rem,1.25fr) repeat(2,minmax(8rem,1fr));
  gap: 1.25rem clamp(1.5rem,6vw,6rem);
  align-items: start;
  padding-block: clamp(1.5rem,3vw,2.25rem) 1.15rem;
}
.sitefoot .footmark { width: 98px; max-width: 100%; min-height: 44px; }
.sitefoot .foot-grid h2 {
  margin: 0 0 .25rem;
  color: #fff7d7;
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 700;
}
.sitefoot .foot-group { display: flex; flex-direction: column; align-items: flex-start; }
.sitefoot .foot-group a, .sitefoot .foot-utilities a, .sitefoot .foot-social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: .875rem;
  line-height: 1.45;
  text-decoration: none;
  color: #f5ecf8;
}
.sitefoot :is(.foot-group,.foot-utilities,.foot-social) a:hover { color: #ffe693; }
.sitefoot a:focus-visible { outline: 2px solid #ffe693; outline-offset: 2px; }
.sitefoot .foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .85rem;
  margin-top: .3rem;
}
.sitefoot .foot-social a { gap: .32em; }
.sitefoot .foot-utilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem 1rem;
  padding-block: .5rem max(.6rem,env(safe-area-inset-bottom));
  border-top: 1px solid #6c587e;
  color: #d7cce1;
  font-size: .8125rem;
}
.sitefoot .foot-utilities nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.sitefoot .foot-utilities a { color: #e7dfee; font-size: inherit; }
@media (max-width: 620px) {
  .sitefoot .foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
  .sitefoot .foot-brand { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .sitefoot .foot-social { margin: 0; }
  .sitefoot .foot-group a, .sitefoot .foot-utilities a, .sitefoot .foot-social a { min-height: 44px; }
  .sitefoot .foot-utilities { flex-wrap: wrap; }
}
