/*
 * 공통 레이아웃의 반응형 보완 규칙이다. 미디어 쿼리와 선언 순서를 유지하고 HTML의 공백 또는 클래스 순서 변경과 섞지 않는다.
 */
/* Shared primary navigation, section hero, and draggable secondary navigation. */
:root {
    --nav-accent: #EE5D44;
}
.shell {
    --shell-gutter: 64px;
}
.shell>.site-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 52px;
    min-height: 80px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.shell>.footer {
    font-size: 16px;
}
.shell>.footer>div {
    min-width: 0;
    flex-wrap: wrap;
    gap: 10px 25px;
}
.site-header-placeholder {
    flex: 0 0 auto;
    width: 100%;
    height: var(--header-height);
}
.site-header-placeholder[hidden] {
    display: none;
}
.shell>.site-header.is-floating {
    position: fixed;
    top: 0;
    left: var(--header-left);
    width: var(--header-width);
    z-index: 999;
    transform: translateY(calc(-100% - 2px));
    transition: transform .1s ease-out;
    will-change: transform;
}
.shell>.site-header.is-floating::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--header-left));
    right: calc(-1 * var(--header-left));
    background: #fff;
}
.shell>.site-header.is-floating::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: calc(-1 * var(--header-left));
    right: calc(-1 * var(--header-left));
    height: 1px;
    background: var(--line);
    pointer-events: none;
}
.shell>.site-header.is-floating.is-visible {
    transform: translateY(0);
    transition-duration: .2s;
}
.shell>.site-header.is-floating.is-measuring {
    transition: none;
}
.site-header .site-brand {
    flex: 0 0 auto;
}
.site-header .primary-nav {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.site-header .primary-nav>a {
    position: relative;
    display: block;
    padding: 26px 0;
    color: #111;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}
.site-header .primary-nav>a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--nav-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}
.site-header .primary-nav>a:hover::after,.site-header .primary-nav>a[aria-current=page]::after {
    transform: scaleX(1);
}
.site-header .primary-nav>a:hover,.site-header .primary-nav>a[aria-current=page] {
    color: #111;
}
.site-header .account-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex: 0 0 auto;
}
.site-header .account-actions form {
    margin: 0;
}
.site-header .account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 44px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
}
.site-header .account-icon img {
    display: block;
    width: 32px;
    height: 32px;
}
.site-header a:focus-visible,.site-header button:focus-visible {
    outline: 2px solid var(--nav-accent);
    outline-offset: 5px;
}
main.portal-page {
    padding-top: 40px;
}
.hero.portal-kv {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    justify-content: normal;
    gap: 50px;
    width: 100%;
    height: auto;
    min-height: 350px;
    margin: 0;
    padding: 12px 0 46px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: none;
    color: var(--ink);
}
.hero.portal-kv::before {
    content: none;
}
.hero.portal-kv .portal-kv-copy {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: none;
}
.hero.portal-kv .eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font: 400 11px Kanit,sans-serif;
}
.hero.portal-kv h1 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: clamp(56px,6vw,82px);
    font-weight: 500;
    line-height: 1.02;
    overflow-wrap: normal;
    text-shadow: none;
}
.hero.portal-kv h1 em {
    color: var(--blue);
    font-style: normal;
}
.hero.portal-kv .portal-kv-description {
    margin: 22px 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: normal;
    word-break: keep-all;
}
.event-kv {
    margin-bottom: 24px;
}
nav.snb {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    min-width: 0;
    margin: 0 0 36px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
}
nav.snb[data-snb="standings-gender"] {
    border-bottom: 0;
}
nav.snb::-webkit-scrollbar {
    display: none;
}
nav.snb a,nav.snb a:hover {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transition: none;
}
nav.snb a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: transparent;
    transition: none;
}
nav.snb a[aria-current=page],nav.snb a[aria-current=page]:hover {
    color: var(--nav-accent);
    background: transparent;
    box-shadow: none;
}
nav.snb a[aria-current=page]::after {
    background: var(--nav-accent);
}
nav.snb a:focus-visible {
    outline: 2px solid var(--nav-accent);
    outline-offset: -2px;
}
nav.snb.swiper {
    display: block;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
nav.snb.swiper>.swiper-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
    transition-property: transform;
    transition-timing-function: ease-out;
    transform: translate3d(0,0,0);
}
nav.snb.swiper .swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: auto;
    height: auto;
    transition-property: transform;
    -webkit-user-drag: none;
}
nav.snb.swiper.is-draggable,nav.snb.swiper.is-draggable a {
    cursor: grab;
}
nav.snb.swiper.is-draggable:active,nav.snb.swiper.is-draggable:active a {
    cursor: grabbing;
}
[data-snb-loading] {
    cursor: progress;
}
#section-content,#event-content,#ranking-content {
    min-width: 0;
    overflow-anchor: none;
}
#section-content>.section-title:first-child {
    margin-top: 0;
}
.about-contact {
    scroll-margin-top: 24px;
}
/* Only the image and boundary lines reach the viewport edge; text keeps its gutter. */
@media(max-width:1440px) {
    main.event-page>nav.event-nav {
        --snb-edge-offset: var(--shell-gutter);
        width: calc(100% + 2 * var(--shell-gutter));
        margin-inline: calc(-1 * var(--shell-gutter));
    }
    main.event-page>nav.event-nav:not(.swiper) {
        padding-inline: var(--shell-gutter);
    }
    .shell>.site-header:not(.is-floating),.shell>.footer {
        position: relative;
    }
    .shell>.site-header:not(.is-floating)::after,.shell>.footer::before {
        content: "";
        position: absolute;
        left: calc(-1 * var(--shell-gutter));
        right: calc(-1 * var(--shell-gutter));
        height: 1px;
        background: var(--line);
        pointer-events: none;
    }
    .shell>.site-header:not(.is-floating)::after {
        bottom: -1px;
    }
    .shell>.footer::before {
        top: -1px;
    }
    main.event-page>.event-kv {
        width: calc(100% + 2 * var(--shell-gutter));
        margin-inline: calc(-1 * var(--shell-gutter));
    }
    main.event-page>.event-kv>.event-heading {
        padding-inline: var(--shell-gutter);
    }
}
@media(max-width:1100px) {
    .shell {
        --shell-gutter: 36px;
    }
    .shell>.site-header {
        gap: 32px;
    }
    .site-header .logo {
        width: 160px;
    }
    .site-header .account-actions {
        gap: 8px;
    }
}
@media(max-width:767px) {
    .shell {
        --shell-gutter: 20px;
    }
    .shell>.site-header {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        gap: 0 20px;
        min-height: 0;
        padding: 8px 0 0;
        border-bottom: 1px solid var(--line);
    }
    .site-header .site-brand {
        grid-column: 1;
        grid-row: 1;
    }
    .site-header .logo {
        width: 145px;
    }
    .site-header .account-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 12px;
    }
    .site-header .primary-nav {
        grid-column: 1/-1;
        grid-row: 2;
        gap: 20px;
        width: 100%;
        font-size: 18px;
    }
    .site-header .primary-nav>a {
        padding: 12px 0 15px;
        font-size: 18px;
        line-height: 1.3;
    }
    .site-header .account-icon {
        width: 36px;
        height: 40px;
        padding: 4px;
    }
    .site-header .account-icon img {
        width: 28px;
        height: 28px;
    }
    main.portal-page {
        padding-top: 28px;
    }
    .hero.portal-kv {
        grid-template-columns: minmax(0,1fr);
        min-height: 230px;
        gap: 0;
        padding: 5px 0 24px;
    }
    .hero.portal-kv h1 {
        font-size: 54px;
        line-height: 1.02;
    }
    .hero.portal-kv .portal-kv-description {
        font-size: 14px;
    }
    nav.snb {
        gap: 20px;
        margin-bottom: 28px;
    }
    nav.snb a,nav.snb a:hover {
        font-size: 14px;
        padding-bottom: 12px;
    }
    .event-kv {
        margin-bottom: 20px;
    }
}
@media(max-width:360px) {
    .shell {
        --shell-gutter: 16px;
    }
    .hero.portal-kv h1 {
        font-size: 48px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .site-header .primary-nav>a::after,.shell>.site-header.is-floating,.shell>.site-header.is-floating.is-visible {
        transition: none;
    }
}
.rankings-page>.section-title {
    margin: 0 0 22px;
}
.rankings-page>.section-title>[data-rankings-back] {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}
/* Footer wordmark follows the existing footer text size. */
.shell>.footer>.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 1.75em;
}
.shell>.footer>.site-brand img {
    display: block;
    width: auto;
    height: 1em;
}
