@import url("/brand/palette.css?v=20261002-palette-1");

/* Shared by the homepage announcement and the admin preview. */
html body .a1-popup {
  --a1-popup-bg: var(--wx-panel);
  --a1-popup-text: var(--wx-text);
  --a1-popup-muted: var(--wx-muted);
  --a1-popup-line: var(--wx-line);
  --a1-popup-soft: var(--wx-soft);
  --a1-popup-accent: var(--wx-primary);
  --a1-popup-focus: var(--wx-focus);
  --a1-popup-link: var(--wx-link);
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  float: none;
  width: min(560px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  height: fit-content;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--a1-popup-line);
  border-radius: 14px;
  background: var(--a1-popup-bg);
  color: var(--a1-popup-text);
  box-shadow: 0 18px 70px rgba(0, 25, 40, .25);
  text-align: left;
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: normal;
  color-scheme: light;
}
html body .a1-popup:not([open]) { display: none; }
html body .a1-popup[open] { display: flex; flex-direction: column; }
html body .a1-popup:focus { outline: none; }
html body .a1-popup, html body .a1-popup * { box-sizing: border-box; }
html body .a1-popup [hidden] { display: none !important; }
/* Homepage legacy DIV rules must not shrink announcement text or its preview. */
html body .a1-popup .a1-popup__header,
html body .a1-popup .a1-popup__content,
html body .a1-popup .a1-popup__footer,
html body .a1-popup .a1-popup__figure { font: inherit; }
.a1-popup::backdrop, html body .a1-popup-backdrop { background: rgba(7, 23, 34, .6); }
html body .a1-popup-backdrop { position: fixed; inset: 0; z-index: 2147483646; }
html body .a1-popup .a1-popup__header {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a1-popup-line);
  background: var(--a1-popup-accent);
  color: var(--wx-on-primary, var(--a1-popup-text));
}
html body .a1-popup .a1-popup__title {
  display: block;
  min-width: 0;
  max-height: 5em;
  overflow: auto;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
html body .a1-popup button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--a1-popup-accent);
  color: #ffffff;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
html body .a1-popup button:hover { filter: brightness(.94); }
html body .a1-popup button:focus-visible,
html body .a1-popup .a1-popup__content:focus-visible { outline: 3px solid var(--a1-popup-focus); outline-offset: -3px; }
html body .a1-popup .a1-popup__content {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  color: var(--a1-popup-text);
}
html body .a1-popup .a1-popup__text {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  color: var(--a1-popup-text);
  font: inherit;
  line-height: 1.7;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
html body .a1-popup .a1-popup__figure { display: block; margin: 0 0 16px; padding: 0; }
html body .a1-popup .a1-popup__image {
  display: block;
  float: none;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  object-fit: contain;
}
html body .a1-popup .a1-popup__image-error {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--a1-popup-line);
  border-radius: 8px;
  background: var(--a1-popup-soft);
  color: var(--a1-popup-muted);
  font: inherit;
  text-align: center;
  overflow-wrap: anywhere;
}
html body .a1-popup .a1-popup__content > :last-child { margin-bottom: 0; }
html body .a1-popup .a1-popup__footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--a1-popup-line);
  background: var(--a1-popup-bg);
}
html[data-theme="dark"] body .a1-popup {
  --a1-popup-bg: var(--wx-panel);
  --a1-popup-text: var(--wx-text);
  --a1-popup-muted: var(--wx-muted);
  --a1-popup-line: var(--wx-line);
  --a1-popup-soft: var(--wx-soft);
  --a1-popup-accent: var(--wx-primary);
  --a1-popup-focus: var(--wx-focus);
  --a1-popup-link: var(--wx-link);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body .a1-popup {
    --a1-popup-bg: var(--wx-panel);
    --a1-popup-text: var(--wx-text);
    --a1-popup-muted: var(--wx-muted);
    --a1-popup-line: var(--wx-line);
    --a1-popup-soft: var(--wx-soft);
    --a1-popup-accent: var(--wx-primary);
    --a1-popup-focus: var(--wx-focus);
  --a1-popup-link: var(--wx-link);
    color-scheme: dark;
  }
}
@media (max-width: 420px) {
  html body .a1-popup .a1-popup__header { padding: 10px 12px; }
  html body .a1-popup .a1-popup__content { padding: 14px; }
  html body .a1-popup .a1-popup__footer { padding: 10px 14px; }
}
@media (max-height: 360px) {
  html body .a1-popup .a1-popup__header,
  html body .a1-popup .a1-popup__footer { padding-top: 4px; padding-bottom: 4px; }
  html body .a1-popup .a1-popup__title { max-height: 2.8em; }
}



/* Isolate clickable announcement content from legacy homepage link styles. */
html body .a1-popup .a1-popup__text-link,
html body .a1-popup .a1-popup__image-link,
html body .a1-popup .a1-popup__text-link:visited,
html body .a1-popup .a1-popup__image-link:visited {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--a1-popup-link);
  font: inherit;
  line-height: inherit;
  white-space: inherit;
  overflow-wrap: anywhere;
  text-align: left;
  text-decoration: none;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
html body .a1-popup .a1-popup__text-link { display: inline; }
html body .a1-popup .a1-popup__image-link { display: block; max-width: 100%; border-radius: 4px; }
html body .a1-popup .a1-popup__text-link:is(:hover,:focus-visible) { text-decoration: underline; text-decoration-thickness: 2px; }
html body .a1-popup .a1-popup__text-link:focus-visible,
html body .a1-popup .a1-popup__image-link:focus-visible { outline: 3px solid var(--a1-popup-focus); outline-offset: 3px; }

/* Image-only announcements keep the artwork and a separate close control. */
html body .a1-popup.a1-popup--image-only {
  --a1-popup-focus: var(--wx-focus);
  width: min(620px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
html body .a1-popup.a1-popup--single-image {
  min-width: min(280px, calc(100vw - 32px));
  width: min(620px, calc(100vw - 32px), calc(min(75vh, calc(100vh - 108px)) * var(--a1-popup-image-ratio, 1)));
  width: min(620px, calc(100vw - 32px), calc(min(75dvh, calc(100dvh - 108px)) * var(--a1-popup-image-ratio, 1)));
}
html body .a1-popup--image-only .a1-popup__header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
html body .a1-popup--image-only .a1-popup__content {
  flex: 1 1 auto;
  width: 100%;
  max-height: min(75vh, calc(100vh - 108px));
  max-height: min(75dvh, calc(100dvh - 108px));
  margin: 0;
  padding: 0 10px;
  background: transparent;
  scrollbar-width: thin;
}
html body .a1-popup--image-only .a1-popup__figure { margin: 0 0 16px; }
html body .a1-popup--image-only .a1-popup__figure:last-child { margin-bottom: 0; }
html body .a1-popup--image-only .a1-popup__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: min(80px, calc((100vw - 32px) * .13));
}
html body .a1-popup--image-only .a1-popup__image-link { border-radius: min(80px, calc((100vw - 32px) * .13)); }
html body .a1-popup--image-only .a1-popup__image-link:focus-visible { outline-offset: -4px; }
html body .a1-popup--image-only .a1-popup__image-error { background: #22343e; color: #ffffff; border-color: #8ba8b8; }
/* Keep the status text accessible while showing a compact, transparent animation. */
html body .a1-popup--image-only .a1-popup__image-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(120px, 45vh);
  min-height: min(120px, 45dvh);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
html body .a1-popup--image-only .a1-popup__image-loading::before {
  content: "";
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 30px;
  margin: 0 56px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 14px 12px 0 #a78bfa, 28px -2px 0 #fb7185, 42px 8px 0 #fbbf24, 56px 2px 0 #34d399;
  animation: a1-popup-loading-notes 1.1s ease-in-out infinite;
}
@keyframes a1-popup-loading-notes {
  0%, 100% {
    transform: translateY(-6px);
    box-shadow: 14px 12px 0 #a78bfa, 28px -2px 0 #fb7185, 42px 8px 0 #fbbf24, 56px 2px 0 #34d399;
  }
  25% {
    transform: translateY(6px);
    box-shadow: 14px -10px 0 #a78bfa, 28px 2px 0 #fb7185, 42px -12px 0 #fbbf24, 56px -4px 0 #34d399;
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 14px -6px 0 #a78bfa, 28px 12px 0 #fb7185, 42px -4px 0 #fbbf24, 56px 8px 0 #34d399;
  }
  75% {
    transform: translateY(8px);
    box-shadow: 14px -2px 0 #a78bfa, 28px -12px 0 #fb7185, 42px -8px 0 #fbbf24, 56px -14px 0 #34d399;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .a1-popup--image-only .a1-popup__image-loading::before { animation: none; transform: none; }
}
html body .a1-popup--image-only .a1-popup__footer {
  flex: 0 0 auto;
  justify-content: center;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
html body .a1-popup--image-only .a1-popup__close {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}
html body .a1-popup .a1-popup__footer { gap: 8px; flex-wrap: wrap; align-items: center; }
html body .a1-popup :is(.a1-popup__previous,.a1-popup__next) { padding: 8px 10px; background: var(--a1-popup-soft); color: var(--a1-popup-text); border-color: var(--a1-popup-line); }
html body .a1-popup :is(.a1-popup__previous,.a1-popup__next):disabled { opacity: .45; cursor: default; }
html body .a1-popup .a1-popup__counter { flex: 0 0 auto; min-width: 38px; text-align: center; font-size: 13px; color: var(--a1-popup-muted); }
html body .a1-popup--image-only .a1-popup__counter { padding: 3px 6px; border-radius: 6px; background: rgba(7, 23, 34, .78); color: #fff; }
html body .a1-popup--image-only .a1-popup__close:focus-visible {
  outline: none;
  text-shadow: 0 0 5px rgba(255, 255, 255, .75);
}


/* One HTML content layout is shared by homepage dialogs and live admin previews. */
html body .a1-popup-rich {
  display: block; float: none; width: auto; height: auto; min-width: 0; max-width: 100%;
  margin: 0 0 16px; padding: 0; overflow: auto; background: transparent; color: inherit;
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  text-align: left; white-space: normal; overflow-wrap: anywhere;
}
html body .a1-popup-rich * { box-sizing: border-box; float: none; max-width: 100%; font-family: inherit; line-height: inherit; text-align: inherit; }
html body .a1-popup-rich :is(p, div, span, a, li, td, th) { font-size: inherit; color: inherit; }
html body .a1-popup-rich :is(p, div, blockquote, pre, h1, h2, h3, h4, h5, h6, ul, ol, table) { width: auto; height: auto; margin: 0 0 .75em; padding: 0; }
html body .a1-popup-rich :is(span, a, b, strong, i, em, u, s, small, code) { width: auto; height: auto; margin: 0; padding: 0; background: transparent; }
html body .a1-popup-rich :is(b, strong, th) { font-weight: 700; }
html body .a1-popup-rich :is(i, em) { font-style: italic; }
html body .a1-popup-rich u { text-decoration: underline; }
html body .a1-popup-rich s { text-decoration: line-through; }
html body .a1-popup-rich small { font-size: .85em; }
html body .a1-popup-rich :is(h1, h2, h3, h4, h5, h6) { display: block; font-weight: 700; line-height: 1.35; color: inherit; }
html body .a1-popup-rich h1 { font-size: 2em; }
html body .a1-popup-rich h2 { font-size: 1.7em; }
html body .a1-popup-rich h3 { font-size: 1.4em; }
html body .a1-popup-rich h4 { font-size: 1.2em; }
html body .a1-popup-rich :is(h5, h6) { font-size: 1em; }
html body .a1-popup-rich :is(ul, ol) { display: block; padding-left: 1.6em; }
html body .a1-popup-rich ul { list-style: disc outside; }
html body .a1-popup-rich ol { list-style: decimal outside; }
html body .a1-popup-rich li { display: list-item; width: auto; height: auto; margin: .2em 0; padding: 0; list-style: inherit; }
html body .a1-popup-rich blockquote { padding-left: 1em; border-left: 3px solid var(--a1-popup-line, var(--line, #d4e3e9)); }
html body .a1-popup-rich :is(pre, code) { font-family: ui-monospace, monospace; }
html body .a1-popup-rich pre { white-space: pre-wrap; }
html body .a1-popup-rich a[href] { display: inline; color: var(--a1-popup-link, var(--brand, #005e86)); text-decoration: none; overflow-wrap: anywhere; }
html body .a1-popup-rich a[href]:is(:hover,:focus-visible) { text-decoration: underline; }
html body .a1-popup-rich a:focus-visible { outline: 3px solid var(--a1-popup-focus, var(--brand, #167faf)); outline-offset: 2px; }
html body .a1-popup-rich img { display: inline-block; max-width: 100%; height: auto; margin: 0; border: 0; vertical-align: middle; }
html body .a1-popup-rich table { border-collapse: collapse; }
html body .a1-popup-rich :is(th, td) { width: auto; padding: .35em .6em; border: 1px solid var(--a1-popup-line, var(--line, #d4e3e9)); }
html body .a1-popup-rich hr { margin: 1em 0; border: 0; border-top: 1px solid var(--a1-popup-line, var(--line, #d4e3e9)); }
html body .a1-popup-rich .a1-popup-rich-external { display: block; padding: .6em; border: 1px dashed var(--line, #d4e3e9); }
html body .a1-popup-rich > :last-child { margin-bottom: 0; }
/* The inline admin catalogue uses the same default link presentation as its modal preview. */
html body .popup-preview-card a[href] { text-decoration: none; }
html body .popup-preview-card a[href]:is(:hover,:focus-visible) { text-decoration: underline; }
