:root {
  --aantc-blue: #003366;
  --aantc-black: #000000;
  --aantc-white: #ffffff;
  --aantc-text-muted: #555555;
  --aantc-surface: #f4f4f4;
  --aantc-border: #d9d9d9;
  --aantc-focus: #003366;
  --aantc-focus-inverse: #ffffff;
  --blue: #003366;
  --black: #000000;
  --white: #ffffff;
  --surface: #f4f4f4;
  --text-muted: #555555;
  --border: #d9d9d9;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shell: 1240px;
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  --surface: #111111;
  --text-muted: #b8b8b8;
  --border: #383838;
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

.action-arrow-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--blue);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 16px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--blue);
  font-size: 16px;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  isolation: isolate;
  color: var(--blue);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-inner {
  width: min(calc(100% - 48px), 1440px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
  gap: 24px;
}

.brand-cluster,
.footer-brand-row {
  display: flex;
  align-items: center;
}

.brand-cluster {
  flex: 0 0 auto;
  gap: 18px;
}

.brand,
.institution-brand,
.footer-institution-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.aantc-lockup {
  display: inline-flex;
  align-items: stretch;
  height: 56px;
}

.brand-symbol {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-initials {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  width: 15px;
  height: 56px;
  color: var(--blue);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .8;
  text-align: center;
}

.brand-initials span {
  display: block;
}

.footer-brand .brand-initials {
  color: var(--white);
}

.brand-divider,
.footer-brand-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.institution-brand img {
  width: 176px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(12px, 1vw, 18px);
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 1481px) {
  .site-nav .section-category-nav--header .section-category-nav__menu > summary {
    margin-inline: -6px;
  }

  .site-nav .header-controls {
    padding-left: 12px;
  }
}

.site-nav .section-category-nav--header .section-category-nav__all {
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.site-nav a:not(.nav-action):not(.header-control)::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.nav-dropdown[open] summary svg {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  display: grid;
  width: 280px;
  padding: 8px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 0 18px 48px rgba(0, 20, 40, .18);
}

.nav-dropdown-panel a {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 3px;
}

.site-nav .nav-dropdown-panel a::after {
  display: none;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  color: var(--blue);
  background: var(--white);
}

.nav-action {
  padding: 0 18px;
  color: var(--white) !important;
  border-radius: 3px;
  background: var(--blue);
}

.header-controls {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.header-control {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.header-control:hover,
.header-control:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.header-account-link {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav .header-account-link::after {
  display: none;
}

.header-account-link:hover,
.header-account-link:focus-visible,
.header-account-link[aria-current="page"] {
  color: var(--white);
  background: var(--blue);
}

.header-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-search {
  display: flex;
  align-items: center;
}

.header-search-form {
  display: flex;
  width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width 180ms ease, opacity 140ms ease, visibility 0s linear 180ms;
}

.header-search[data-open="true"] .header-search-form {
  width: clamp(240px, 30vw, 460px);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.header-search-form input,
.header-search-form button {
  height: 44px;
  color: inherit;
  border: 1px solid currentColor;
  background: transparent;
  font: inherit;
}

.header-search-form input {
  width: calc(100% - 44px);
  min-width: 0;
  padding: 0 14px;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  outline: 0;
}

.header-search-form input:focus-visible {
  box-shadow: inset 0 0 0 2px var(--focus-inner);
}

.header-search-form button {
  display: inline-grid;
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  place-items: center;
}

.header-search-form button:hover,
.header-search-form button:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.header-search-form svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.header-search-toggle {
  flex: 0 0 44px;
  margin-left: 0;
  text-decoration: none;
}

.site-nav a.header-search-toggle {
  display: inline-grid;
  justify-content: center;
  place-items: center;
}

.header-search-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  transform: none;
}

.header-search-toggle .header-search-close-icon {
  display: none;
}

.header-search[data-open="true"] .header-search-icon {
  display: none;
}

.header-search[data-open="true"] .header-search-close-icon {
  display: block;
}

.header-search[data-open="true"] .header-search-toggle {
  margin-left: 8px;
}

.theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.menu-lines {
  position: relative;
  width: 22px;
  height: 2px;
  margin-left: 10px;
  background: currentColor;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: top 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-footer {
  padding: 72px 0 36px;
  color: var(--white);
  background: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .8fr;
  gap: 64px;
}

.footer-brand-row {
  gap: 18px;
  margin-bottom: 24px;
}

.footer-brand-divider {
  background: rgba(255, 255, 255, .4);
}

.footer-institution-brand img {
  width: auto;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
}

.footer-identity p,
.footer-meta p {
  max-width: 480px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links a,
.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
}

.footer-meta {
  text-align: right;
}

.footer-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-share-action {
  display: inline-grid !important;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.footer-share-action:hover,
.footer-share-action:focus-visible {
  color: var(--blue);
  background: var(--white);
}

.footer-share-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-wechat {
  position: relative;
}

.footer-wechat-popover {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(280px, calc(100vw - 32px));
  padding: 24px;
  color: var(--black);
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.footer-wechat:hover .footer-wechat-popover,
.footer-wechat[data-open="true"] .footer-wechat-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.footer-wechat[data-hover-suppressed="true"] .footer-wechat-popover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
}

.footer-wechat-popover img {
  width: 220px;
  height: 220px;
  margin-inline: auto;
  object-fit: contain;
}

.footer-wechat-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--blue);
  border: 0;
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.footer-wechat-close:hover,
.footer-wechat-close:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.footer-wechat-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.footer-meta a {
  margin-top: 20px;
}

.footer-policy-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 12px;
}

.footer-policy-links a {
  margin-top: 0;
}

html[data-theme="dark"] body {
  color: var(--white);
  background: var(--black);
}

html[data-theme="dark"] .site-header {
  color: var(--white);
  background: rgba(0, 0, 0, .97);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .brand-mark-original {
  content: url("../logo/AANTC-mark-monochrome-white.png");
}

html[data-theme="dark"] .institution-brand img {
  content: url("../logo/hkust/hkust-bilingual-stacked-white.png");
}

html[data-theme="dark"] .brand-initials {
  color: var(--white);
}

html[data-theme="dark"] .header-control:hover,
html[data-theme="dark"] .header-control:focus-visible,
html[data-theme="dark"] .nav-action {
  color: var(--black) !important;
  background: var(--white);
}

html[data-theme="dark"] .header-search-form button:hover,
html[data-theme="dark"] .header-search-form button:focus-visible {
  color: var(--black);
  background: var(--white);
}

@media (min-width: 1481px) {
  .site-header[data-search-open="true"] .header-inner,
  .site-header[data-compact-menu="true"] .header-inner {
    gap: 8px;
  }

  .site-header[data-search-open="true"] .menu-toggle,
  .site-header[data-compact-menu="true"] .menu-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .site-header[data-search-open="true"] .site-nav,
  .site-header[data-compact-menu="true"] .site-nav {
    order: 3;
    flex: 0 0 auto;
  }

  .site-header[data-search-open="true"] .site-nav > :not(.header-controls) {
    display: none;
  }

  .site-header[data-compact-menu="true"] .site-nav {
    position: fixed;
    z-index: 101;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    padding: 24px max(32px, calc((100vw - 1440px) / 2)) 32px;
    color: var(--black);
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .site-header[data-compact-menu="true"] .site-nav > a {
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
  }

  .site-header[data-compact-menu="true"] .site-nav .nav-action {
    justify-content: center;
    margin-top: 12px;
    padding-inline: 18px;
    color: var(--white) !important;
    border: 0;
    background: var(--blue);
  }

  .site-header[data-compact-menu="true"] .site-nav .nav-dropdown {
    border-bottom: 1px solid var(--border);
  }

  .site-header[data-compact-menu="true"] .site-nav .nav-dropdown summary {
    justify-content: space-between;
    min-height: 52px;
    font-size: 18px;
  }

  .site-header[data-compact-menu="true"] .site-nav .nav-dropdown-panel {
    position: static;
    width: 100%;
    margin: 0 0 12px;
    box-shadow: none;
  }

  .site-header[data-compact-menu="true"] .site-nav .header-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  html[data-theme="dark"] .site-header[data-compact-menu="true"] .site-nav {
    color: var(--white);
    background: var(--black);
  }
}

html[data-theme="dark"] .nav-dropdown-panel {
  color: var(--black);
  border-color: rgba(0, 0, 0, .2);
  background: var(--white);
}

html[data-theme="dark"] .nav-dropdown-panel a:hover,
html[data-theme="dark"] .nav-dropdown-panel a:focus-visible {
  color: var(--white);
  background: var(--black);
}

html[data-theme="dark"] .site-footer {
  background: var(--black);
}

@media (max-width: 1480px) {
  :root {
    --header-height: 76px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .aantc-lockup,
  .brand-symbol,
  .brand-initials {
    height: 50px;
  }

  .brand-symbol {
    width: 50px;
  }

  .brand-initials {
    width: 14px;
    font-size: 11px;
  }

  .site-nav {
    position: fixed;
    z-index: 101;
    inset: var(--header-height) 0 auto;
    display: none;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    padding: 24px 32px 32px;
    color: var(--black);
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav > a {
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
  }

  .site-nav .nav-action {
    justify-content: center;
    margin-top: 12px;
    padding-inline: 18px;
    color: var(--white) !important;
    border: 0;
    background: var(--blue);
  }

  .site-nav .nav-dropdown {
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-dropdown summary {
    justify-content: space-between;
    min-height: 52px;
    font-size: 18px;
  }

  .site-nav .nav-dropdown-panel {
    position: static;
    width: 100%;
    margin: 0 0 12px;
    box-shadow: none;
  }

  .site-nav .nav-dropdown-panel a {
    min-height: 46px;
    padding-inline: 12px;
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, .24);
    font-size: 16px;
  }

  .site-nav .header-controls {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .site-nav .header-search {
    flex: 0 0 auto;
    order: 0;
  }

  .site-header[data-search-open="true"] .site-nav {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-header[data-search-open="true"] .site-nav > :not(.header-controls) {
    display: none;
  }

  .site-header[data-search-open="true"] .site-nav .header-controls {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .site-header[data-search-open="true"] .site-nav .header-controls > :not(.header-search) {
    display: none;
  }

  .site-header[data-search-open="true"] .site-nav .header-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .site-header[data-search-open="true"] .site-nav .header-search[data-open="true"] .header-search-form {
    width: min(460px, calc(100% - 52px));
  }

  html[data-theme="dark"] .site-nav {
    color: var(--white);
    background: var(--black);
    border-bottom-color: var(--border);
  }

  html[data-theme="dark"] .site-nav .nav-dropdown-panel a {
    color: var(--black);
    border-bottom-color: rgba(0, 0, 0, .2);
  }

  .no-js .site-header {
    position: relative;
    height: auto;
  }

  .no-js .header-inner {
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .no-js .site-nav {
    position: static;
    display: grid;
    width: 100%;
    max-height: none;
    padding: 8px 0 0;
    border-bottom: 0;
  }
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-policy-links {
    justify-content: flex-start;
  }

  .footer-share-actions {
    justify-content: flex-start;
  }

  .footer-wechat-popover {
    right: auto;
    left: 50%;
    transform: translate(-50%, 4px);
  }

  .footer-wechat:hover .footer-wechat-popover,
  .footer-wechat[data-open="true"] .footer-wechat-popover {
    transform: translate(-50%, 0);
  }

  .footer-wechat[data-hover-suppressed="true"] .footer-wechat-popover {
    transform: translate(-50%, 4px);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 72px;
  }

  body {
    font-size: 17px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand-cluster {
    gap: 10px;
  }

  .aantc-lockup,
  .brand-symbol,
  .brand-initials {
    height: 44px;
  }

  .brand-symbol {
    width: 44px;
  }

  .brand-initials {
    width: 12px;
    font-size: 9px;
  }

  .institution-brand img {
    width: 112px;
    max-height: 40px;
  }

  .menu-toggle {
    min-width: 44px;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-lines {
    margin-left: 0;
  }

  .footer-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand-divider {
    display: none;
  }
}

@media (max-width: 420px) {
  .institution-brand img {
    width: 82px;
  }

  .brand-divider {
    display: none;
  }
}

@media (min-width: 921px) and (max-height: 760px) {
  :root {
    --header-height: 72px;
  }

  .aantc-lockup,
  .brand-symbol,
  .brand-initials {
    height: 44px;
  }

  .brand-symbol {
    width: 44px;
  }

  .brand-initials {
    width: 13px;
    font-size: 10px;
  }

  .institution-brand img {
    width: 152px;
    max-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .nav-dropdown summary svg,
  .site-nav a::after,
  .menu-lines,
  .menu-lines::before,
  .menu-lines::after,
  .action-arrow-icon,
  .header-search-form {
    transition-duration: .01ms !important;
  }
}

/* Unified disclosure motion and non-blocking footer pull feedback. */
.nav-dropdown-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transform-origin: top center;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.nav-dropdown[data-expanded="true"] .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.no-js .nav-dropdown[open] .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-dropdown[data-expanded="true"] summary svg {
  transform: rotate(180deg);
}

.nav-dropdown[data-expanded="false"] summary svg {
  transform: rotate(0);
}

.site-footer {
  --footer-pull: 0;
  transform: scaleY(calc(1 + var(--footer-pull)));
  transform-origin: bottom center;
}

body.footer-pull-active .site-footer {
  will-change: transform;
}

@media (max-width: 1480px) {
  .site-nav {
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .no-js .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav .nav-dropdown-panel {
    max-height: 0;
    margin-bottom: 0;
    padding-block: 0;
    overflow: hidden;
    border-block-width: 0;
    transition: max-height 180ms ease, margin 180ms ease, padding 180ms ease,
      border-width 180ms ease, opacity 160ms ease, transform 160ms ease,
      visibility 0s linear 180ms;
  }

  .site-nav .nav-dropdown[data-expanded="true"] .nav-dropdown-panel {
    max-height: 360px;
    margin-bottom: 12px;
    padding-block: 8px;
    border-block-width: 1px;
    transition-delay: 0s;
  }

  .no-js .site-nav .nav-dropdown[open] .nav-dropdown-panel {
    max-height: none;
    margin-bottom: 12px;
    padding-block: 8px;
    border-block-width: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-panel,
  .site-nav,
  .site-footer {
    transition-duration: .01ms !important;
  }

  .site-footer {
    transform: none !important;
  }
}
