@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

@supports (-webkit-touch-callout: none) {

    html,
    body {
        overflow-x: hidden;
    }
}

:root {
    --header-h: 0px;
}

body.page {
    /* padding-top: var(--header-h); */
    padding-top: 180px
}

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

:root {
    --brand: #F1716C;
    --muted: #6b7280;
    --line: rgba(0, 0, 0, .08);
    --soft: #f3f4f6;
}

aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

/* Skip links */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: #000;
    color: #fff;
    z-index: 1056;
    border-radius: .5rem;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--brand);
}

.brand-logo img {
    height: 70px;
}

/* 모바일 */
@media (max-width: 768px) {

    .brand-logo img {
        height: 45px !important;
    }
}

.brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

/* Horizontal category scroller */
.cat-wrap {
    border-top: 1px solid var(--line);
    border-bottom: 2px solid #F1716C;
    background: #fff;
}

.cat-scroller {
    display: flex;
    gap: .5rem;
    overflow: auto;
    scroll-behavior: smooth;
    padding: 0rem .25rem;
    scrollbar-width: none;
}

.cat-scroller::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    white-space: nowrap;
    border: 0px solid var(--line);
    background: #fff;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .cat-pill {
        font-size: 0.9rem;
    }
}

.cat-pill.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.cat-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

/* List cards */
.article-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    background: #fff;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.thumb {
    aspect-ratio: 16/10;
    width: 100%;
    object-fit: cover;
    background: var(--soft);
}

.meta {
    color: var(--muted);
    font-size: .9rem;
}

.badge-soft {
    background: rgba(17, 24, 39, .08);
    color: var(--brand);
    border: 1px solid rgba(17, 24, 39, .10);
    font-weight: 700;
}

/* Floating top button */
#toTop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: none;
    z-index: 1030;
}

/* Page container spacing */
.page {
    background: #ffffff;
    min-height: 100vh;
}

.btn-wrap {
    display: flex;
    justify-content: flex-end;
    /* 오른쪽 정렬 */
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #000;
}

.sns-list img {
    height: 48px;
}

.footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.footer-logo {
    max-width: 180px;
    height: auto;
}

/* 텍스트 */
.footer-text {
    font-size: 0.95rem;
    color: #444;
}

.footer-copy {
    font-size: 0.85rem;
    color: #777;
}

.link-unstyled {
    color: inherit;
    text-decoration: none;
}

.link-unstyled:hover {
    color: inherit;
    text-decoration: none;
}

/* 모바일 보정 */
@media (max-width: 767.98px) {
    .footer-logo {
        margin: 0 auto;
        display: block;
    }

    .text-size-control button {
        min-width: 28px;
    }
}

.text-size-control button {
    min-width: 38px;
    font-weight: 700;
}

.btn-divider {
    display: inline-block;
    width: 1px;
    height: 1.5em;
    /* ✔ 텍스트 기준 높이 */
    background-color: #ddd;
}

span, li {
    word-break: keep-all;
}