.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shell-container {
    max-width: 1260px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 고정 헤더의 로고와 검색창은 모든 화면에서 한 줄로 유지합니다. */
.site-header__inner {
    display: flex;
    align-items: center;
    height: 70px;
}

.site-header__primary {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.site-header__brand {
    flex: 0 0 auto;
}

.site-header__logo {
    height: 40px;
    margin: 0;
}

.site-header__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
}

.site-header__search {
    flex: 1 1 0%;
    min-width: 0;
}

.site-header__search-wrap {
    width: 100%;
    max-width: 480px;
}

.site-header__search-field {
    height: 45px;
    padding-right: 1rem;
    padding-left: 1rem;
}

.site-header__search-input {
    width: 100%;
    min-width: 0;
}

.header-menu-list {
    -webkit-overflow-scrolling: touch;
}

.page-main {
    max-width: 1260px;
    margin: 0 auto;
    padding: 1rem 1rem 1.5rem;
    display: flex;
    gap: 2rem;
}

.include-slot {
    min-width: 0;
}

.panel-card {
    background: #fff;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.section-block {
    scroll-margin-top: 5rem;
}

/* 헤더 메뉴바 스크롤 애니메이션 */
.header-menu-nav {
    top: 70px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 스크립트 실행 전에도 고정 헤더와 메뉴가 본문을 가리지 않게 초기 높이를 확보합니다. */
#header-spacer {
    height: 116px;
}

.dong-tab-nav-wrap {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.dong-tab-nav-wrap::-webkit-scrollbar { display: none; }
.dong-tab-nav-wrap .dong-tab-btn { flex-shrink: 0; }

.dong-tab-panel { display: none; }
.dong-tab-panel.is-active { display: block; }

.side-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 최근 검색은 모바일에서 내용 너비에 맞는 인라인 항목으로 가로 배치합니다. */
.curation-recent-list {
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.curation-recent-item {
    display: inline-flex;
    width: auto;
    max-width: calc(100vw - 3rem);
    vertical-align: top;
    white-space: normal;
}

.curation-recent-item + .curation-recent-item {
    margin-left: 0.5rem;
}

.curation-recent-item__content {
    flex: 0 1 auto;
}

@media (max-width: 1279px) {
    .page-main {
        display: block;
        gap: 0;
    }

    .page-main > .content-left,
    .page-main > .content-right {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    /* 고정 헤더 및 메뉴와 최근 검색 패널 사이에 모바일 여백을 확보합니다. */
    #curation-recent-mobile-slot {
        padding-top: 1rem;
    }

    /* 광고 스크립트가 생성한 고정 폭 iframe까지 모바일 본문 폭에 맞춥니다. */
    .side-ad-container,
    .side-ad-container .srb_ddn_area,
    .side-ad-container iframe {
        display: block;
        width: 100% !important;
        max-width: 100%;
    }
}

@media (min-width: 1280px) {
    .curation-recent-list {
        display: block;
        overflow: visible;
        padding-bottom: 0;
        white-space: normal;
    }

    .curation-recent-item {
        display: flex;
        width: 100%;
        max-width: none;
        margin-bottom: 0.25rem;
    }

    .curation-recent-item__content {
        flex: 1 1 0%;
    }

    .curation-recent-item + .curation-recent-item {
        margin-left: 0;
    }

    .curation-recent-item:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 639px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .shell-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-header__inner {
        height: 64px;
        min-height: 0;
    }

    .site-header__primary {
        flex-direction: row;
        align-items: center;
        gap: 0.625rem;
    }

    .site-header__brand {
        align-self: auto;
    }

    .site-header__logo {
        height: 28px;
    }

    .site-header__search-wrap {
        max-width: none;
    }

    .site-header__search-field {
        height: 40px;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .header-menu-nav {
        top: 64px;
    }

    #header-spacer {
        height: 106px;
    }

    .page-main {
        padding: 0.75rem 0.75rem 1.25rem;
    }

    .section-block {
        margin-bottom: 1rem;
    }
}
