/* SCOREBOOK_LIVESCORE_CLASSIC_FRAME_CSS_V13_1 */
.scorebook-classic-frame {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
  overflow-anchor: none;
}

.scorebook-classic-content-frame {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  height: 720px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow-anchor: none;
}

[data-scorebook-frame-source-hidden="1"],
[data-scorebook-shell-source-hidden="1"] {
  display: none !important;
}

html.scorebook-classic-frame-active {
  scroll-behavior: auto !important;
}

html.scorebook-classic-frame-active body {
  overflow-x: hidden;
}

html.scorebook-classic-frame-active .classic-center-stage > .scorebook-classic-frame {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* V12 loading overlay and click lock must not survive in V13. */
.scorebook-iframe-loading,
[data-scorebook-frame-loading] {
  display: none !important;
  pointer-events: none !important;
}

.scorebook-iframe-shell.is-loading .scorebook-content-frame,
.scorebook-iframe-shell.is-loading .scorebook-classic-content-frame {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Parent section tabs are stable links, like the reference fLink menu. */
.portal-page-tabs > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 100%;
  padding: 0 15px;
  border: 0;
  background: #fff;
  color: #496273;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.portal-page-tabs > a:hover {
  background: #f3f8fc;
  color: #0a68a8;
}

.portal-page-tabs > a.active,
.portal-page-tabs > a.on,
.portal-page-tabs > a.selected,
.portal-page-tabs > a.current,
.portal-page-tabs > a[aria-current="page"] {
  background: #073f70;
  color: #fff;
}

html.scorebook-classic-frame-embed,
html.scorebook-classic-frame-embed body,
body.scorebook-classic-frame-embed,
html.scorebook-iframe-embed,
html.scorebook-iframe-embed body,
body.scorebook-iframe-embed {
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow-x: hidden !important;
}

.scorebook-embed-document {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 1px;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Safe fallback for pages that bypass the early embed return. */
html.scorebook-classic-frame-embed .utility-bar,
html.scorebook-classic-frame-embed .site-header,
html.scorebook-classic-frame-embed .global-nav,
html.scorebook-classic-frame-embed .classic-left-rail,
html.scorebook-classic-frame-embed .classic-right-rail,
html.scorebook-classic-frame-embed .site-footer,
html.scorebook-classic-frame-embed .global-chat-launch,
html.scorebook-classic-frame-embed .global-chat-dock,
html.scorebook-iframe-embed .utility-bar,
html.scorebook-iframe-embed .site-header,
html.scorebook-iframe-embed .global-nav,
html.scorebook-iframe-embed .classic-left-rail,
html.scorebook-iframe-embed .classic-right-rail,
html.scorebook-iframe-embed .site-footer,
html.scorebook-iframe-embed .global-chat-launch,
html.scorebook-iframe-embed .global-chat-dock {
  display: none !important;
}

html.scorebook-classic-frame-embed .classic-portal-layout,
html.scorebook-iframe-embed .classic-portal-layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.scorebook-classic-frame-embed .classic-center-stage,
html.scorebook-classic-frame-embed #container,
html.scorebook-classic-frame-embed #content,
html.scorebook-classic-frame-embed #container_wr,
html.scorebook-iframe-embed .classic-center-stage,
html.scorebook-iframe-embed #container,
html.scorebook-iframe-embed #content,
html.scorebook-iframe-embed #container_wr {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 920px) {
  .scorebook-classic-frame,
  .scorebook-classic-content-frame {
    min-height: 620px;
  }
  .portal-page-tabs > a {
    min-width: 66px;
    padding: 0 9px;
    font-size: 9px;
  }
}


/* SCOREBOOK_LIVESCORE_CLASSIC_FRAME_MAIN_ACTIVE_V13_1
 * 서브메뉴 선택 뒤에도 상단 메인메뉴의 활성 상태를 확실히 표시합니다.
 */
.primary-nav .nav-link.sb-frame-main-active,
.primary-nav .nav-item.sb-frame-main-active > .nav-link,
.global-nav > a.sb-frame-main-active,
.global-nav > .nav-item.sb-frame-main-active > a,
.main-nav > a.sb-frame-main-active,
.main-nav > .nav-item.sb-frame-main-active > a,
#gnb > ul > li.sb-frame-main-active > a,
#gnb .gnb_1dli.sb-frame-main-active > a,
.gnb > ul > li.sb-frame-main-active > a,
.gnb .gnb_1dli.sb-frame-main-active > a,
[data-scorebook-main-active="1"] > a,
a[data-scorebook-main-active="1"] {
  background: #0a84d8 !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #fff !important;
}

.primary-nav .nav-link.sb-frame-main-active *,
.primary-nav .nav-item.sb-frame-main-active > .nav-link *,
.global-nav .sb-frame-main-active *,
.main-nav .sb-frame-main-active *,
#gnb .sb-frame-main-active > a *,
.gnb .sb-frame-main-active > a * {
  color: inherit !important;
}

.portal-page-tabs > a.sb-frame-sub-active,
.portal-page-tabs > a[data-scorebook-sub-active="1"] {
  background: #073f70 !important;
  color: #fff !important;
}

/* SCOREBOOK_MENU_CONTEXT_ISOLATION_CSS_V13_2 */

/*
 * Exactly one main section owns the active colour.
 * Native/server active aliases cannot leave Community and ScoreMarket
 * highlighted at the same time.
 */
html.scorebook-classic-frame-active
[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="0"],
html.scorebook-classic-frame-active
[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="0"] > a,
html.scorebook-classic-frame-active
a[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="0"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}

html.scorebook-classic-frame-active
[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="1"],
html.scorebook-classic-frame-active
[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="1"] > a,
html.scorebook-classic-frame-active
a[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="1"] {
  background: #0a84d8 !important;
  background-color: #0a84d8 !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #fff !important;
}

html.scorebook-classic-frame-active
[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="1"] *,
html.scorebook-classic-frame-active
a[data-scorebook-menu-context-v132="1"]
[data-scorebook-main-active="1"] * {
  color: inherit !important;
}

/* The parent section bar is always owned by the strict current route group. */
.portal-section-nav[data-scorebook-section-owner="v13.2"]
.portal-page-tabs > a,
.portal-section-nav[data-scorebook-section-owner="v13.2"]
[data-section-tabs] > a {
  box-sizing: border-box;
}

.portal-section-nav[data-scorebook-section-owner="v13.2"]
.portal-page-tabs > a[data-scorebook-sub-active="1"],
.portal-section-nav[data-scorebook-section-owner="v13.2"]
[data-section-tabs] > a[data-scorebook-sub-active="1"] {
  background: #073f70 !important;
  color: #fff !important;
}

/* SCOREBOOK_ATOMIC_FRAME_ROUTER_CSS_V13_4_BEGIN */

:root {
  --sb-atomic-navy: #073f70;
  --sb-atomic-blue: #0a84d8;
  --sb-atomic-line: #d9e5ed;
  --sb-atomic-text: #365269;
  --sb-atomic-shadow: 0 10px 28px rgba(7, 63, 112, .12);
}

.scorebook-classic-frame[data-scorebook-classic-frame="v13.4"] {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
  overflow-anchor: none;
}

.scorebook-atomic-frame-stack {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  height: 720px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  overflow-anchor: none;
}

.scorebook-atomic-frame {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 720px;
  height: 720px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
  overflow: hidden;
  overflow-anchor: none;
  transition: none !important;
}

.scorebook-atomic-frame.is-active {
  position: relative;
  inset: auto;
  z-index: 2;
  visibility: visible;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.scorebook-atomic-frame.is-standby {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: hidden;
  opacity: 0 !important;
  pointer-events: none !important;
}

/*
 * Keep the current iframe visible while the next one is prepared.
 * The overlay is a compact status card, not a blank full-page mask.
 */
.scorebook-atomic-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 16px;
  background: linear-gradient(
    180deg,
    rgba(236, 244, 249, .28) 0,
    rgba(236, 244, 249, .08) 120px,
    transparent 240px
  );
  pointer-events: none;
}

.scorebook-atomic-loading[hidden] {
  display: none !important;
}

.scorebook-atomic-loading-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 28px minmax(0, auto);
  grid-template-areas:
    "spinner title"
    "spinner text"
    "actions actions";
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  max-width: min(560px, calc(100% - 24px));
  min-height: 58px;
  padding: 11px 16px;
  border: 1px solid rgba(7, 63, 112, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  color: var(--sb-atomic-text);
  box-shadow: var(--sb-atomic-shadow);
  backdrop-filter: blur(5px);
}

.scorebook-atomic-spinner {
  grid-area: spinner;
  width: 24px;
  height: 24px;
  border: 3px solid #dcebf5;
  border-top-color: var(--sb-atomic-blue);
  border-radius: 50%;
  animation: sb-atomic-spin-v134 .75s linear infinite;
}

.scorebook-atomic-loading-card strong {
  grid-area: title;
  color: var(--sb-atomic-navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.scorebook-atomic-loading-card [data-scorebook-loading-text] {
  grid-area: text;
  color: #6f8799;
  font-size: 11px;
  line-height: 1.45;
}

.scorebook-atomic-loading-actions {
  grid-area: actions;
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
  pointer-events: auto;
}

.scorebook-atomic-loading-actions button {
  min-width: 76px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid #c9dbe7;
  border-radius: 6px;
  background: #fff;
  color: #46677d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.scorebook-atomic-loading-actions button:first-child {
  border-color: var(--sb-atomic-navy);
  background: var(--sb-atomic-navy);
  color: #fff;
}

.scorebook-atomic-loading[data-state="error"] {
  background: rgba(229, 238, 244, .58);
  pointer-events: auto;
}

.scorebook-atomic-loading[data-state="error"] .scorebook-atomic-spinner {
  animation: none;
  border-color: #f1b9b9;
  border-top-color: #d94b4b;
}

@keyframes sb-atomic-spin-v134 {
  to { transform: rotate(360deg); }
}

/* The active main section is committed only after the new iframe loaded. */
html.scorebook-atomic-frame-active
[data-scorebook-main-active="0"],
html.scorebook-atomic-frame-active
[data-scorebook-main-active="0"] > a,
html.scorebook-atomic-frame-active
a[data-scorebook-main-active="0"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html.scorebook-atomic-frame-active
.primary-nav .nav-link.sb-atomic-main-active,
html.scorebook-atomic-frame-active
.primary-nav .nav-item.sb-atomic-main-active > .nav-link,
html.scorebook-atomic-frame-active
.global-nav > a.sb-atomic-main-active,
html.scorebook-atomic-frame-active
.global-nav > .nav-item.sb-atomic-main-active > a,
html.scorebook-atomic-frame-active
.main-nav > a.sb-atomic-main-active,
html.scorebook-atomic-frame-active
.main-nav > .nav-item.sb-atomic-main-active > a,
html.scorebook-atomic-frame-active
#gnb > ul > li.sb-atomic-main-active > a,
html.scorebook-atomic-frame-active
#gnb .gnb_1dli.sb-atomic-main-active > a,
html.scorebook-atomic-frame-active
.gnb > ul > li.sb-atomic-main-active > a,
html.scorebook-atomic-frame-active
.gnb .gnb_1dli.sb-atomic-main-active > a,
html.scorebook-atomic-frame-active
a.sb-atomic-main-active,
html.scorebook-atomic-frame-active
[data-scorebook-main-active="1"] > a,
html.scorebook-atomic-frame-active
a[data-scorebook-main-active="1"] {
  background: var(--sb-atomic-blue) !important;
  background-color: var(--sb-atomic-blue) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #fff !important;
}

html.scorebook-atomic-frame-active
.sb-atomic-main-active *,
html.scorebook-atomic-frame-active
[data-scorebook-main-active="1"] * {
  color: inherit !important;
}

.portal-section-nav[data-scorebook-section-owner="v13.4"]
.portal-page-tabs > a,
.portal-section-nav[data-scorebook-section-owner="v13.4"]
[data-section-tabs] > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 100%;
  padding: 0 15px;
  border: 0;
  background: #fff;
  color: #496273;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.portal-section-nav[data-scorebook-section-owner="v13.4"]
.portal-page-tabs > a.sb-atomic-sub-active,
.portal-section-nav[data-scorebook-section-owner="v13.4"]
.portal-page-tabs > a[data-scorebook-sub-active="1"],
.portal-section-nav[data-scorebook-section-owner="v13.4"]
[data-section-tabs] > a.sb-atomic-sub-active,
.portal-section-nav[data-scorebook-section-owner="v13.4"]
[data-section-tabs] > a[data-scorebook-sub-active="1"] {
  background: var(--sb-atomic-navy) !important;
  color: #fff !important;
}

/*
 * A clicked mega menu must not remain over the page while the standby
 * iframe loads. The lock is removed when the navigation commits or fails.
 */
html[data-scorebook-nav-pending="1"] .primary-nav .sub-menu,
html[data-scorebook-nav-pending="1"] .primary-nav .submenu,
html[data-scorebook-nav-pending="1"] .primary-nav .dropdown-menu,
html[data-scorebook-nav-pending="1"] .primary-nav .mega-menu,
html[data-scorebook-nav-pending="1"] .global-nav .sub-menu,
html[data-scorebook-nav-pending="1"] .global-nav .submenu,
html[data-scorebook-nav-pending="1"] .global-nav .dropdown-menu,
html[data-scorebook-nav-pending="1"] .global-nav .mega-menu,
html[data-scorebook-nav-pending="1"] #gnb .gnb_2dul,
html[data-scorebook-nav-pending="1"] .gnb .gnb_2dul,
[data-sb-atomic-closing="1"] > .sub-menu,
[data-sb-atomic-closing="1"] > .submenu,
[data-sb-atomic-closing="1"] > .dropdown-menu,
[data-sb-atomic-closing="1"] > .mega-menu,
[data-sb-atomic-closing="1"] > .gnb_2dul,
[data-sb-atomic-closing="1"] > [data-submenu] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

[data-scorebook-frame-source-hidden="1"],
[data-scorebook-shell-source-hidden="1"] {
  display: none !important;
}

/* Disable superseded blanking overlays from V12/V13 patches. */
.scorebook-iframe-loading,
[data-scorebook-frame-loading] {
  display: none !important;
  pointer-events: none !important;
}

html.scorebook-classic-frame-active,
html.scorebook-atomic-frame-active {
  scroll-behavior: auto !important;
}

html.scorebook-classic-frame-active body,
html.scorebook-atomic-frame-active body {
  overflow-x: hidden;
}

html.scorebook-atomic-frame-active
.classic-center-stage > .scorebook-classic-frame {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Embed view: retain native content links and remove the duplicated portal chrome. */
html.scorebook-classic-frame-embed,
html.scorebook-classic-frame-embed body,
body.scorebook-classic-frame-embed,
html.scorebook-iframe-embed,
html.scorebook-iframe-embed body,
body.scorebook-iframe-embed {
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow-x: hidden !important;
}

.scorebook-embed-document {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 1px;
  margin: 0;
  padding: 0;
  background: transparent;
}

html.scorebook-classic-frame-embed .utility-bar,
html.scorebook-classic-frame-embed .site-header,
html.scorebook-classic-frame-embed .global-nav,
html.scorebook-classic-frame-embed .classic-left-rail,
html.scorebook-classic-frame-embed .classic-right-rail,
html.scorebook-classic-frame-embed .site-footer,
html.scorebook-classic-frame-embed .global-chat-launch,
html.scorebook-classic-frame-embed .global-chat-dock,
html.scorebook-iframe-embed .utility-bar,
html.scorebook-iframe-embed .site-header,
html.scorebook-iframe-embed .global-nav,
html.scorebook-iframe-embed .classic-left-rail,
html.scorebook-iframe-embed .classic-right-rail,
html.scorebook-iframe-embed .site-footer,
html.scorebook-iframe-embed .global-chat-launch,
html.scorebook-iframe-embed .global-chat-dock {
  display: none !important;
}

html.scorebook-classic-frame-embed .classic-portal-layout,
html.scorebook-iframe-embed .classic-portal-layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.scorebook-classic-frame-embed .classic-center-stage,
html.scorebook-classic-frame-embed #container,
html.scorebook-classic-frame-embed #content,
html.scorebook-classic-frame-embed #container_wr,
html.scorebook-iframe-embed .classic-center-stage,
html.scorebook-iframe-embed #container,
html.scorebook-iframe-embed #content,
html.scorebook-iframe-embed #container_wr {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 920px) {
  .scorebook-classic-frame[data-scorebook-classic-frame="v13.4"],
  .scorebook-atomic-frame-stack,
  .scorebook-atomic-frame {
    min-height: 620px;
  }

  .portal-section-nav[data-scorebook-section-owner="v13.4"]
  .portal-page-tabs > a,
  .portal-section-nav[data-scorebook-section-owner="v13.4"]
  [data-section-tabs] > a {
    min-width: 66px;
    padding: 0 9px;
    font-size: 9px;
  }

  .scorebook-atomic-loading {
    padding: 10px;
  }

  .scorebook-atomic-loading-card {
    max-width: calc(100% - 8px);
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scorebook-atomic-spinner {
    animation-duration: 1.5s;
  }
}

/* SCOREBOOK_ATOMIC_FRAME_ROUTER_CSS_V13_4_END */

/* SCOREBOOK_ATOMIC_MENU_STATE_SUBMENU_REPAIR_CSS_V13_5_2_BEGIN */

/*
 * V13.5.2 uses the shared portal-section-nav for every top-level section.
 * Legacy hover mega menus are disabled so they cannot cover the selected
 * submenu or leave white/translucent panels over the content.
 */
html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-menu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-dropdown,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-panel,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .submenu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .sub-menu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .submenu-wrap,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .dropdown-menu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .dropdown-content,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .nav-dropdown,
html.scorebook-atomic-frame-active .primary-nav .nav-item > [role="menu"],
html.scorebook-atomic-frame-active .primary-nav .nav-item > [data-submenu],
html.scorebook-atomic-frame-active #gnb .gnb_1dli > .gnb_2dul,
html.scorebook-atomic-frame-active #gnb .gnb_1dli > [data-submenu],
html.scorebook-atomic-frame-active .gnb .gnb_1dli > .gnb_2dul,
html.scorebook-atomic-frame-active .gnb .gnb_1dli > [data-submenu],
html.scorebook-atomic-frame-active [data-sb-atomic-legacy-dropdown="1"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* Parent nav containers remain visually neutral. Only the direct anchor is active. */
html.scorebook-atomic-frame-active .primary-nav .nav-item,
html.scorebook-atomic-frame-active .global-nav .nav-item,
html.scorebook-atomic-frame-active .main-nav .nav-item,
html.scorebook-atomic-frame-active #gnb .gnb_1dli,
html.scorebook-atomic-frame-active .gnb .gnb_1dli,
html.scorebook-atomic-frame-active [data-scorebook-main-container-active] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Clear stale theme/server active colours from every inactive top-level anchor. */
html.scorebook-atomic-frame-active a[data-scorebook-main-active="0"],
html.scorebook-atomic-frame-active button[data-scorebook-main-active="0"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* Keep hover feedback subtle so it cannot look like a second selected menu. */
html.scorebook-atomic-frame-active
.primary-nav a[data-scorebook-main-active="0"]:hover,
html.scorebook-atomic-frame-active
.global-nav a[data-scorebook-main-active="0"]:hover,
html.scorebook-atomic-frame-active
.main-nav a[data-scorebook-main-active="0"]:hover,
html.scorebook-atomic-frame-active
#gnb a[data-scorebook-main-active="0"]:hover,
html.scorebook-atomic-frame-active
.gnb a[data-scorebook-main-active="0"]:hover {
  background: rgba(255, 255, 255, .09) !important;
  background-color: rgba(255, 255, 255, .09) !important;
  box-shadow: none !important;
}

/* Exactly one top-level anchor owns the bright active state. */
html.scorebook-atomic-frame-active a.sb-atomic-main-active,
html.scorebook-atomic-frame-active button.sb-atomic-main-active,
html.scorebook-atomic-frame-active a[data-scorebook-main-active="1"],
html.scorebook-atomic-frame-active button[data-scorebook-main-active="1"] {
  background: #0a84d8 !important;
  background-color: #0a84d8 !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #fff !important;
}

/* Never inherit the active colour into a sibling/descendant mega menu. */
html.scorebook-atomic-frame-active a[data-scorebook-main-active="1"] > span,
html.scorebook-atomic-frame-active a[data-scorebook-main-active="1"] > i,
html.scorebook-atomic-frame-active a[data-scorebook-main-active="1"] > b,
html.scorebook-atomic-frame-active a[data-scorebook-main-active="1"] > strong,
html.scorebook-atomic-frame-active button[data-scorebook-main-active="1"] > span,
html.scorebook-atomic-frame-active button[data-scorebook-main-active="1"] > i,
html.scorebook-atomic-frame-active button[data-scorebook-main-active="1"] > b,
html.scorebook-atomic-frame-active button[data-scorebook-main-active="1"] > strong {
  color: inherit !important;
}

/* The committed/pending section submenu is always visible below the portal area. */
html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"],
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"] {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"]
.portal-section-title,
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"]
[data-section-title] {
  visibility: visible !important;
  opacity: 1 !important;
}

html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"]
.portal-page-tabs,
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"]
[data-section-tabs] {
  position: relative !important;
  z-index: 21 !important;
  display: flex !important;
  align-self: stretch !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"]
.portal-page-tabs > a,
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"]
[data-section-tabs] > a {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #496273 !important;
}

html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"]
.portal-page-tabs > a[data-scorebook-sub-active="1"],
html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"]
.portal-page-tabs > a.sb-atomic-sub-active,
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"]
[data-section-tabs] > a[data-scorebook-sub-active="1"],
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"]
[data-section-tabs] > a.sb-atomic-sub-active {
  background: #073f70 !important;
  background-color: #073f70 !important;
  color: #fff !important;
}

/* SCOREBOOK_ATOMIC_MENU_STATE_SUBMENU_REPAIR_CSS_V13_5_2_END */

/* SCOREBOOK_FAST_READY_SUBMENU_RESTORE_CSS_V13_5_4_BEGIN */

/*
 * V13.5.2 intentionally collapsed every legacy mega menu to zero size.
 * V13.5.4 restores the top-level submenu as an accessible, bounded panel.
 * Only JavaScript-controlled data-sb-dropdown-open="1" reveals it, so a
 * click cannot leave a hover panel stuck over the page.
 */
html.scorebook-atomic-frame-active .primary-nav .nav-item,
html.scorebook-atomic-frame-active .global-nav .nav-item,
html.scorebook-atomic-frame-active .main-nav .nav-item,
html.scorebook-atomic-frame-active #gnb .gnb_1dli,
html.scorebook-atomic-frame-active .gnb .gnb_1dli,
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-ready="1"] {
  position: relative !important;
}

html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-menu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-dropdown,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-panel,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .submenu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .sub-menu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .submenu-wrap,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .dropdown-menu,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .dropdown-content,
html.scorebook-atomic-frame-active .primary-nav .nav-item > .nav-dropdown,
html.scorebook-atomic-frame-active .primary-nav .nav-item > [role="menu"],
html.scorebook-atomic-frame-active .primary-nav .nav-item > [data-submenu],
html.scorebook-atomic-frame-active #gnb .gnb_1dli > .gnb_2dul,
html.scorebook-atomic-frame-active #gnb .gnb_1dli > [data-submenu],
html.scorebook-atomic-frame-active .gnb .gnb_1dli > .gnb_2dul,
html.scorebook-atomic-frame-active .gnb .gnb_1dli > [data-submenu],
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] {
  box-sizing: border-box !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  z-index: 1300 !important;
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  width: 360px !important;
  min-width: 260px !important;
  max-width: min(760px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(70vh, 620px) !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #d8e4ec !important;
  border-radius: 0 0 9px 9px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fff !important;
  color: #29465c !important;
  box-shadow: 0 16px 34px rgba(7, 63, 112, .18) !important;
  transition:
    opacity .14s ease,
    transform .14s ease,
    visibility .14s ease !important;
}

html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .mega-menu,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .mega-dropdown,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .mega-panel,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .submenu,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .sub-menu,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .submenu-wrap,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .dropdown-menu,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .dropdown-content,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .nav-dropdown,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .gnb_2dul,
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > [role="menu"],
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > [data-submenu],
html.scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > [data-sb-atomic-dropdown-menu="1"] {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Clicked navigation closes the panel until the pointer leaves/re-enters. */
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .mega-menu,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .mega-dropdown,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .mega-panel,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .submenu,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .sub-menu,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .dropdown-menu,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > .gnb_2dul,
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > [data-submenu],
html[data-sb-dropdown-suppress="1"].scorebook-atomic-frame-active
[data-sb-dropdown-open="1"] > [data-sb-atomic-dropdown-menu="1"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

/* Preserve the intended widths of the existing ScoreBook mega panels. */
html.scorebook-atomic-frame-active .mega-menu.mega-live,
html.scorebook-atomic-frame-active .mega-live[data-sb-atomic-dropdown-menu="1"] {
  width: 500px !important;
}

html.scorebook-atomic-frame-active .mega-menu.mega-pick,
html.scorebook-atomic-frame-active .mega-pick[data-sb-atomic-dropdown-menu="1"] {
  left: -120px !important;
  width: 720px !important;
}

html.scorebook-atomic-frame-active .compact-mega,
html.scorebook-atomic-frame-active .compact-mega[data-sb-atomic-dropdown-menu="1"] {
  width: 290px !important;
}

html.scorebook-atomic-frame-active .community-mega,
html.scorebook-atomic-frame-active .community-mega[data-sb-atomic-dropdown-menu="1"] {
  width: 330px !important;
}

/* Nested submenu labels must remain readable and clickable. */
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] a,
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] button {
  color: #29465c !important;
  pointer-events: auto !important;
}

html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] a:hover,
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] a:focus-visible,
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] button:hover,
html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] button:focus-visible {
  background-color: #eef7fd !important;
  color: #075d96 !important;
}

/* The shared section submenu remains the always-visible fallback/navigation. */
html.scorebook-atomic-frame-active
.portal-section-nav[data-scorebook-section-owner="v13.5.2"],
html.scorebook-atomic-frame-active
[data-scorebook-section-nav][data-scorebook-section-owner="v13.5.2"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 920px) {
  /* Desktop mega panels are not used on the compact/mobile shell. */
  html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"],
  html.scorebook-atomic-frame-active .primary-nav .nav-item > .mega-menu,
  html.scorebook-atomic-frame-active .primary-nav .nav-item > .submenu,
  html.scorebook-atomic-frame-active .primary-nav .nav-item > .sub-menu,
  html.scorebook-atomic-frame-active #gnb .gnb_1dli > .gnb_2dul,
  html.scorebook-atomic-frame-active .gnb .gnb_1dli > .gnb_2dul {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.scorebook-atomic-frame-active [data-sb-atomic-dropdown-menu="1"] {
    transition: none !important;
  }
}

/* SCOREBOOK_FAST_READY_SUBMENU_RESTORE_CSS_V13_5_4_END */
