/* Mahina Menu v6.17: absolute-centered stemless chevrons, subtle pager gradient, whole-pager guidance, language-first table onboarding, unified popups, lighter titles, film controls, and direct-item arrival. */
.season-course-media {
  position: relative;
  margin: -28px -28px 30px;
  overflow: hidden;
  border-radius: 16px 16px 4px 4px;
  background: #090909;
}

.season-course-media video {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 546;
  object-fit: contain;
  background: #090909;
}

.menu-film-controls {
  position: absolute;
  right: 15px;
  bottom: 57px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.season-course-media.is-film-controls-visible .menu-film-controls,
.menu-film-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-film-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  outline: 1px solid rgba(18, 18, 18, 0.28);
  background:
    linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.34) 38%,
      rgba(255, 255, 255, 0) 88%
    ),
    rgba(16, 16, 16, 0.38);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #111;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu-film-button::before {
  position: absolute;
  inset: -30%;
  border-radius: 44% 56% 61% 39%;
  background: linear-gradient(
    315deg,
    rgba(255, 255, 255, 0.36),
    rgba(255, 255, 255, 0)
  );
  content: "";
  filter: blur(7px);
  opacity: 0.72;
  pointer-events: none;
  transform: translate3d(8%, -5%, 0);
}

.menu-film-button:hover,
.menu-film-button:focus-visible {
  border-color: rgba(17, 17, 17, 0.52);
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 2px;
}

.menu-film-button svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.menu-film-sound svg > path:first-child {
  fill: currentColor;
  stroke: none;
}

.menu-film-sound[aria-pressed="true"] .sound-slash {
  display: none;
}

.menu-film-expand-accent {
  opacity: 0.78;
}

.menu-item {
  scroll-margin-block: 110px;
}

.menu-item.is-deep-linked {
  position: relative;
  isolation: isolate;
  margin-inline: -18px;
  border-top-color: transparent;
  border-radius: 16px;
  padding-inline: 18px;
  background:
    linear-gradient(
      105deg,
      rgba(244, 241, 235, 0.9) 0%,
      rgba(255, 255, 255, 0.72) 52%,
      rgba(240, 237, 230, 0.62) 100%
    );
  box-shadow:
    0 16px 38px rgba(42, 36, 29, 0.075),
    inset 0 0 0 1px rgba(70, 62, 52, 0.13);
  animation: menu-item-arrival 3.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes menu-item-arrival {
  0% {
    box-shadow:
      0 20px 46px rgba(42, 36, 29, 0.13),
      inset 0 0 0 1px rgba(70, 62, 52, 0.24);
    filter: brightness(0.985);
    transform: translateY(4px);
  }
  100% {
    box-shadow:
      0 16px 38px rgba(42, 36, 29, 0.075),
      inset 0 0 0 1px rgba(70, 62, 52, 0.13);
    filter: brightness(1);
    transform: translateY(0);
  }
}

.season-course-media figcaption {
  align-items: center;
  /* Keep the seasonal copy in the markup for a future campaign, but hide it now. */
  display: none;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  background: #151515;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.45;
}

.season-course-media figcaption > span:first-child {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.season-course-media figcaption > span:last-child {
  text-align: right;
}

.pager {
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  width: min(calc(100vw - 18px), 430px) !important;
  grid-template-columns: 64px minmax(0, 1fr) 64px !important;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(249, 248, 245, 0.98) 52%,
      rgba(241, 239, 233, 0.98) 100%
    ) !important;
  border-color: #bbb7af !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2) !important;
  transform: translate(-50%, 0);
}

.pager > button {
  height: 56px !important;
}

.pager > button:first-child,
.pager > button:last-child {
  position: relative;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: #34322f;
  font-size: 0 !important;
  line-height: 0 !important;
}

.pager > button:not(:disabled):hover {
  background: #f1efe9;
}

.pager > button:disabled {
  opacity: 0.3;
}

.page-indicator {
  min-width: 0 !important;
  padding-inline: 16px !important;
}

.page-indicator small {
  max-width: 150px !important;
  min-height: 16px !important;
  font-size: 10px !important;
}

.pager > button:focus-visible {
  outline: 2px solid #313131;
  outline-offset: -4px;
}

.pager > button:first-child,
.pager > button:last-child {
  transition:
    background-color 0.26s ease,
    box-shadow 0.26s ease,
    color 0.26s ease;
}

.pager > button:first-child::after,
.pager > button:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  width: 22px;
  height: 22px;
  margin: auto;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5L15 12L9 17.5' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 22px 22px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5L15 12L9 17.5' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 22px 22px;
  pointer-events: none;
}

.pager > button:first-child::after {
  transform: scaleX(-1);
  transform-origin: center;
}

.pager.mahina-pager-guidance {
  animation: mahina-pager-group-bounce 4.8s
    cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform;
}

@keyframes mahina-pager-group-bounce {
  0%,
  18%,
  100% {
    transform: translate(-50%, 0);
  }
  4% {
    transform: translate(-50%, -4px);
  }
  8% {
    transform: translate(-50%, 1.5px);
  }
  12% {
    transform: translate(-50%, -2.5px);
  }
  15% {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pager.mahina-pager-guidance {
    animation: none !important;
    will-change: auto;
  }
}

@media (max-width: 680px) {
  .menu-item.is-deep-linked {
    margin-inline: -10px;
    border-radius: 13px;
    padding-inline: 10px;
  }

  .season-course-media {
    margin: -18px -18px 24px;
    border-radius: 11px 11px 3px 3px;
  }

  .season-course-media figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 11px;
  }

  .menu-film-controls {
    right: 10px;
    bottom: 80px;
  }

  .menu-film-button {
    width: 38px;
    height: 38px;
  }

  .season-course-media figcaption > span:last-child {
    text-align: left;
  }

  html[data-menu-rtl="true"]
    .season-course-media
    figcaption
    > span:last-child {
    text-align: right;
  }

  .pager {
    grid-template-columns: 54px minmax(0, 1fr) 54px !important;
  }

  .pager > button {
    height: 50px !important;
  }

  .page-indicator {
    padding-inline: 8px !important;
  }

  .page-indicator small {
    max-width: 112px !important;
  }
}

/* Main-site typography baseline */
.cover-page h1,
.page-heading h1 {
  font-family:
    Montserrat, "Helvetica Neue", "Noto Sans", "Noto Sans KR",
    "Apple SD Gothic Neo", Arial, sans-serif;
  font-weight: 400 !important;
}

.menu-group > h2 {
  font-weight: 500 !important;
}

/* Shared Mahina navigation and language-dialog system */
:root {
  --mahina-popup-ink: #202023;
  --mahina-popup-soft: #5c5c62;
  --mahina-popup-faint: #85858b;
  --mahina-popup-line: rgba(30, 30, 32, 0.12);
  --mahina-popup-font:
    Montserrat, "Helvetica Neue", "Noto Sans", "Noto Sans KR",
    "Apple SD Gothic Neo", Arial, sans-serif;
}

body.mahina-popup-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.mahina-unified-popups .language-select {
  display: none;
}

.mahina-language-trigger {
  display: inline-flex;
  min-width: 52px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 2px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 30, 32, 0.05);
  color: var(--mahina-popup-ink);
  font-family: var(--mahina-popup-font);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.mahina-language-trigger svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.mahina-language-overlay {
  position: fixed;
  z-index: 520;
  inset: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 22px;
  pointer-events: none;
}

.mahina-language-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

html.mahina-table-language-pending .party-overlay {
  visibility: hidden !important;
  pointer-events: none !important;
}

.mahina-language-overlay.is-required .mahina-language-close {
  display: none;
}

.mahina-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(235, 235, 238, 0.68);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(18px) saturate(90%);
  -webkit-backdrop-filter: blur(18px) saturate(90%);
  transition: opacity 0.28s ease;
}

.mahina-language-overlay.is-open > .mahina-overlay-backdrop {
  opacity: 1;
}

.mahina-neutral-glass {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 80px rgba(20, 20, 22, 0.12);
  backdrop-filter: blur(28px) saturate(108%);
  -webkit-backdrop-filter: blur(28px) saturate(108%);
}

.mahina-language-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  max-height: calc(100svh - 44px);
  overflow: auto;
  border: 0;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--mahina-popup-ink);
  font-family: var(--mahina-popup-font);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mahina-language-overlay.is-open > .mahina-language-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mahina-language-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.mahina-language-panel-head span {
  color: var(--mahina-popup-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.mahina-language-panel-head h2 {
  margin: 8px 0 0;
  color: var(--mahina-popup-ink);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.mahina-language-close,
.mahina-menu-panel .drawer-heading button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 30, 32, 0.05);
  color: var(--mahina-popup-ink);
  cursor: pointer;
}

.mahina-language-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.mahina-language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 30px;
}

.mahina-language-grid button {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--mahina-popup-soft);
  font-family: var(--mahina-popup-font);
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.mahina-language-grid button:hover,
.mahina-language-grid button.is-selected {
  color: var(--mahina-popup-ink);
  background: rgba(35, 35, 37, 0.08);
}

.mahina-language-grid strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mahina-language-grid span {
  color: var(--mahina-popup-faint);
  font-size: 10px;
}

.overlay.mahina-menu-overlay {
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(235, 235, 238, 0.68);
  backdrop-filter: blur(18px) saturate(90%);
  -webkit-backdrop-filter: blur(18px) saturate(90%);
}

.mahina-menu-panel.nav-drawer {
  position: relative;
  inset: auto;
  display: block;
  width: min(100%, 700px);
  height: auto;
  max-height: calc(100svh - 44px);
  overflow: auto;
  border: 0;
  border-radius: 28px;
  padding: clamp(26px, 4vw, 42px);
  color: var(--mahina-popup-ink);
  font-family: var(--mahina-popup-font);
  box-shadow: 0 26px 80px rgba(20, 20, 22, 0.12);
  transform: none;
}

.mahina-menu-panel .drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0;
  border: 0;
}

.mahina-menu-panel .drawer-heading img {
  width: 132px;
  height: auto;
  object-fit: contain;
}

.mahina-menu-panel .drawer-heading button {
  font-size: 0;
}

.mahina-menu-panel .drawer-heading button::before,
.mahina-menu-panel .drawer-heading button::after {
  position: absolute;
  width: 18px;
  height: 1.4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.mahina-menu-panel .drawer-heading button::before {
  transform: rotate(45deg);
}

.mahina-menu-panel .drawer-heading button::after {
  transform: rotate(-45deg);
}

.mahina-menu-panel > nav {
  display: grid;
  gap: 2px;
  padding: clamp(28px, 6vh, 54px) 0;
  text-align: center;
}

.mahina-menu-panel > nav a {
  padding: 8px;
  color: var(--mahina-popup-soft);
  font-size: clamp(25px, 4.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.mahina-menu-panel > nav a:hover,
.mahina-menu-panel > nav a.is-current {
  color: var(--mahina-popup-ink);
  transform: translateX(4px);
}

.mahina-menu-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--mahina-popup-line);
  color: var(--mahina-popup-soft);
  font-size: 12px;
}

.mahina-menu-panel-foot a {
  color: inherit;
  text-decoration: none;
}

.mahina-menu-panel .staff-settings {
  margin-top: 18px;
}

.mahina-language-trigger:focus-visible,
.mahina-language-close:focus-visible,
.mahina-language-grid button:focus-visible,
.mahina-menu-panel a:focus-visible,
.mahina-menu-panel button:focus-visible {
  outline: 2px solid var(--mahina-popup-ink);
  outline-offset: 3px;
}

html[data-menu-rtl="true"] .mahina-language-grid button {
  text-align: right;
}

@media (max-width: 760px) {
  .mahina-language-overlay,
  .overlay.mahina-menu-overlay {
    padding: 12px;
  }

  .mahina-language-panel,
  .mahina-menu-panel.nav-drawer {
    max-height: calc(100svh - 24px);
    border-radius: 22px;
  }

  .mahina-language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mahina-menu-panel > nav a {
    font-size: 28px;
  }
}

/* v6.13 · lighter title baseline shared by all Mahina sites */
h1,
h2 {
  font-weight: 350 !important;
}
