/* Marquee: Motion Prompt #094 adaptation, Shohei Ohtaki (MIT). Linear loop at the approved speed. */
@font-face {
  font-family: "Memorial Winter Pretendard";
  src: url("PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

body.hmw-has-marquee {
  --hmw-height: 38px;
  --hmw-admin-offset: 0px;
  --hmw-background: #1c2333;
  --hmw-foreground: #fff;
  padding-top: var(--hmw-height) !important;
}
body.hmw-has-marquee.admin-bar { --hmw-admin-offset: 32px; }
@media (max-width: 782px) {
  body.hmw-has-marquee.admin-bar { --hmw-admin-offset: 46px; }
}

html body.hmw-has-marquee .hmw-marquee,
html body.hmw-has-marquee .hmw-marquee * { box-sizing: border-box; }
html body.hmw-has-marquee .hmw-marquee {
  position: fixed;
  top: var(--hmw-admin-offset);
  right: 0;
  left: 0;
  z-index: 99990;
  width: auto;
  height: var(--hmw-height);
  margin: 0;
  padding: 0;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  overflow: hidden;
  background: var(--hmw-background);
  color: var(--hmw-foreground);
  direction: ltr;
  isolation: isolate;
}
html body.hmw-has-marquee .hmw-marquee__link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: var(--hmw-background);
  color: var(--hmw-foreground);
  font-family: "Memorial Winter Pretendard", "Memorial Header Pretendard", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
  line-height: 16px;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-y;
}
html body.hmw-has-marquee .hmw-marquee__link::before,
html body.hmw-has-marquee .hmw-marquee__link::after { content: none; }
html body.hmw-has-marquee .hmw-marquee__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.hmw-marquee__track,
.hmw-marquee__set,
.hmw-marquee__item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  height: 16px;
  margin: 0;
  padding: 0;
  gap: 0;
}
.hmw-marquee__track {
  animation: none;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}
.hmw-marquee[data-ready="true"] .hmw-marquee__track {
  animation: hmw-marquee-loop var(--hmw-cycle-duration, 24s) linear infinite;
  will-change: transform;
}
.hmw-marquee__text {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  letter-spacing: 1px;
}
.hmw-marquee__gap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 16px;
}
/* Measure the accepted 18px label without affecting the visible track. */
.hmw-marquee__speed-reference {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  font-size: 18px;
  visibility: hidden;
  pointer-events: none;
}
@keyframes hmw-marquee-loop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--hmw-unit-width)), 0, 0); }
}
.hmw-marquee[data-paused="true"] .hmw-marquee__track,
.hmw-marquee[data-document-hidden="true"] .hmw-marquee__track,
.hmw-marquee__link:focus-visible .hmw-marquee__track { animation-play-state: paused; }
@media (hover: hover) {
  .hmw-marquee__link:hover .hmw-marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .hmw-marquee[data-ready="true"] .hmw-marquee__track {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* Higher specificity also wins over the existing shared header's admin-bar rules. */
html body.hmw-has-marquee :is(.memorial-header, .hmas-bg-header, .site-header),
html body.hmw-has-marquee.hmh-unified-header :is(.memorial-header, .hmas-bg-header, .site-header) {
  top: calc(var(--hmw-admin-offset) + var(--hmw-height)) !important;
}
html body.hmw-has-marquee.hmh-unified-header :is(.memorial-navigation, .hmas-bg-navigation, .site-header .mobile-menu) {
  max-height: calc(100dvh - var(--hmw-admin-offset) - var(--hmw-height) - var(--hmh-height, 100px) - 16px) !important;
}
/* Keep the landing's first section within the first viewport below the band. */
html body.hmw-has-marquee.memorial-landing-page .memorial-main > .memorial-hero {
  min-height: calc(100vh - var(--hmw-height));
  min-height: calc(100svh - var(--hmw-height));
}
html body.hmw-has-marquee :is(.memorial-skip-link, .hmas-skip):focus {
  top: calc(var(--hmw-admin-offset) + var(--hmw-height) + 8px) !important;
  z-index: 99991 !important;
}
html body.hmw-has-marquee .memory-toast {
  top: calc(var(--hmw-admin-offset) + var(--hmw-height) + var(--hmh-height, 100px) + 16px);
}
