
body:has(#head .ax-galaxy-brand) #head .header {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  gap: clamp(6px, 1.1vw, 16px);
}
@media (min-width: 769px) {
  :root body:has(#head .ax-galaxy-brand) #head .nav { margin-left: 0 !important; }
  :root body:has(#head .ax-galaxy-brand) #head .nav li { margin: 0 !important; }
  :root body:has(#head .ax-galaxy-brand) #head .nav ul { gap: clamp(12px, 2vw, 32px); }
}
@media (min-width: 769px) and (max-width: 1100px) {
  :root body:has(#head .ax-galaxy-brand) #head .header { padding: 0 2% !important; }
  :root body:has(#head .ax-galaxy-brand) #head .nav ul { gap: clamp(5px, 1vw, 12px); }
  :root body:has(#head .ax-galaxy-brand) #head .nav a { font-size: clamp(13px, 1.65vw, 18px) !important; }
}
@media (max-width: 768px) {
  :root body:has(#head .ax-galaxy-brand) #head .header {
    justify-content: flex-start;
    padding: 0 clamp(8px, 2.5vw, 16px) !important;
    gap: clamp(5px, 1.5vw, 12px);
  }
  :root body:has(#head .ax-galaxy-brand) #head .wiki-brand {
    position: static !important;
    height: auto !important;
  }
  :root body:has(#head .ax-galaxy-brand) #head .anxin-member-mobile {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: none;
    min-width: 48px;
    min-height: 40px;
    padding: 3px 7px;
    border: 1px solid #69999e;
    border-radius: 8px;
    background: #294c59;
    color: #dcfaf6;
    line-height: 1.2;
    white-space: nowrap;
  }
  :root body:has(#head .ax-galaxy-brand) #head .btn-m-list {
    position: relative;
    flex: none;
    inset: auto;
    margin: 0;
  }
}
:root body:has(#head .ax-galaxy-brand) #head .wiki-brand.ax-galaxy-brand {
  flex: 1 1 0%;
  min-width: 0;
}
#head .ax-galaxy-brand a {
  display: block;
  position: relative;
  isolation: isolate;
  width: min(100%, 370px);
  aspect-ratio: 100 / 21;
  line-height: 0;
}
:root body:has(#head .ax-galaxy-brand) #head .ax-galaxy-brand img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  object-fit: contain;
}
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  :is(#head .ax-galaxy-brand a, .ax-site-mark, .site-header > .brand, .site-header .header-inner > .brand)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask: url("/static/anxin/home-galaxy-eight-892684920b34.webp") center / contain no-repeat;
    mask: url("/static/anxin/home-galaxy-eight-892684920b34.webp") center / contain no-repeat;
    background: linear-gradient(110deg, transparent 32%, rgba(198,235,255,.08) 40%, rgba(229,248,255,.39) 48%, rgba(255,255,255,.72) 50%, rgba(236,250,255,.35) 54%, transparent 66%) no-repeat;
    background-size: 54% 100%;
    mix-blend-mode: screen;
    animation: ax-galaxy-sweep 7.4s linear infinite;
  }
}
@keyframes ax-galaxy-sweep {
  0% { background-position: -120% 0; }
  43%, 100% { background-position: 220% 0; }
}
@media (max-width: 768px) {
  #head .ax-galaxy-brand a { width: min(100%, 254px); }
}
@media (prefers-reduced-motion: reduce) {
  :is(#head .ax-galaxy-brand a, .ax-site-mark, .site-header > .brand, .site-header .header-inner > .brand)::after { animation: none; opacity: 0; }
}

/* Standalone page headers share the CMS artwork and its single masked sweep. */
:is(.ax-activity-nav, .site-header, .news-top, .ax-privacy-header) a.ax-site-mark,
.site-header > a.brand,
.site-header .header-inner > a.brand {
  --brand-width: 330px;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: block;
  flex: 0 1 var(--brand-width);
  width: var(--brand-width);
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 100 / 21;
  min-height: 0;
  height: auto;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
:is(.ax-activity-nav, .site-header, .news-top, .ax-privacy-header) a.ax-site-mark > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}
/* Service and member templates retain their existing accessible home link. */
.site-header > a.brand:not(.ax-site-mark),
.site-header .header-inner > a.brand:not(.ax-site-mark) {
  background: url("/static/anxin/home-galaxy-eight-892684920b34.webp") center / contain no-repeat;
}
.site-header > a.brand:not(.ax-site-mark) > :is(span,img),
.site-header .header-inner > a.brand:not(.ax-site-mark) > img {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.ax-privacy-header { max-width: 1180px; margin: auto; padding: 8px 16px; }
.ax-activity-nav > div { flex: none; white-space: nowrap; }
.spin-screen header.site-header {
  display: flex !important;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  width: min(100%, 1000px);
  margin: auto;
  padding: 3px 16px;
}
.spin-screen header.site-header > :not(.brand) { display: none !important; }
.spin-screen header.site-header > a.brand { --brand-width: 230px; }
@media (max-width: 900px) {
  :is(.ax-activity-nav, .site-header, .news-top, .ax-privacy-header) a.ax-site-mark,
  .site-header > a.brand, .site-header .header-inner > a.brand { --brand-width: 250px; }
}
@media (max-width: 760px) {
  .site-header:has(> .member-nav) { flex-direction: column; align-items: flex-start; }
  .site-header > a.brand, .ax-privacy-header a.ax-site-mark { flex: none; }
  .annual-page .site-header a.ax-site-mark,
  .ax-activity-nav a.ax-site-mark,
  .site-header .header-inner > a.brand { --brand-width: clamp(132px, 46vw, 254px); }
  .ax-activity-nav > div a { white-space: nowrap; }
  .spin-screen header.site-header > a.brand { --brand-width: 182px; }
}
