/* 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;
}
