/* GOMGOM compact HOME — archive screen only */

html[data-compact-page="archive"] #archive {
    padding-top: calc(var(--gomgom-header-height) + var(--gomgom-safe-top) + 16px) !important;
}

#archive > .eyebrow,
#archive > .title,
#archive > .lead,
#archive > .guide,
#archive .section-head {
    display: none !important;
}

#archive .search {
    position: relative;
    margin: 0;
}

#archive .search input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 17px;
    border: 1px solid var(--gomgom-color-line);
    border-radius: var(--gomgom-control-radius);
    background: #fff;
    color: var(--gomgom-color-ink);
    font-size: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

#archive .search input::placeholder {
    color: rgba(17, 17, 17, .38);
}

#archive .search input:focus {
    border-color: rgba(17, 17, 17, .34);
    box-shadow: 0 0 0 4px rgba(119, 80, 248, .08);
}

#archive .search span {
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--gomgom-color-muted);
    transform: translateY(-50%);
}

#archive .chips {
    max-height: 0;
    margin: 0 calc(var(--gomgom-page-gutter) * -1);
    padding: 0 var(--gomgom-page-gutter);
    display: flex;
    gap: 8px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: max-height .2s ease, margin-top .2s ease, padding-bottom .2s ease, opacity .16s ease, transform .2s ease;
    scrollbar-width: none;
}

#archive .chips::-webkit-scrollbar {
    display: none;
}

#archive.categories-open .chips {
    max-height: 68px;
    margin-top: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

#archive .chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--gomgom-color-line);
    border-radius: var(--gomgom-control-radius);
    background: #fff;
    color: var(--gomgom-color-muted);
    font-size: 12px;
    font-weight: 800;
}

#archive .chip.on {
    border-color: var(--gomgom-color-ink);
    background: var(--gomgom-color-ink);
    color: #fff;
}

/* LECT 16종 프리뷰 칩 — 기존 .chip 색(흰 배경 + 토큰 라인 컬러) 그대로 두고,
   실제로 안 눌린다는 것만 커서로 표시한다. 디자인 토큰에 없는 색은 안 씀. */
#archive .chip.is-preview {
    cursor: default;
}

#archive .chip img {
    width: 17px;
    height: 17px;
    display: block;
    object-fit: contain;
}

#archive .guel-card-grid {
    display: block !important;
}

#archive .feature {
    position: relative;
    min-height: 354px;
    margin-top: 24px;
    padding: 30px 68px 82px 26px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, .88);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--gomgom-shadow-card);
}

#archive .feature::after {
    content: "";
    position: absolute;
    top: -68px;
    right: -62px;
    width: 196px;
    height: 196px;
    border: 24px solid rgba(119, 80, 248, .09);
    border-radius: 50%;
    pointer-events: none;
}

/* 끌림(보라)만 장식으로 강조되면 저항(코랄)이 "덜 정당한 반응"으로
   읽힐 수 있어서, 같은 스타일의 링을 코랄로도 하나 둔다 — 보라 링보다
   작게 둬서 우측 상단 보라 링이 시각적 1순위를 유지하되, 두 반응 축이
   둘 다 브랜드 컬러로 대접받는다는 인상을 준다. */
#archive .feature::before {
    content: "";
    position: absolute;
    bottom: -46px;
    left: -40px;
    width: 130px;
    height: 130px;
    border: 18px solid rgba(255, 107, 97, .09);
    border-radius: 50%;
    pointer-events: none;
}

#archive .feature .tag {
    position: relative;
    z-index: 1;
    width: fit-content;
    min-height: 22px;
    margin: 0;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: var(--gomgom-color-ink);
    font-size: 9.5px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .105em;
    text-transform: uppercase;
    white-space: nowrap;
}

#archive .feature .tag::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    content: "";
    animation: gomgom-feature-tag-pulse 1.7s ease-in-out infinite;
}

#archive .feature .tag.is-onboarding {
    border-color: #ff7868;
}

#archive .feature .tag.is-onboarding::before {
    background: #ff7868;
    box-shadow: 0 0 0 3px rgba(255, 120, 104, .14);
}

#archive .feature .tag.is-curation {
    border-color: #7750f8;
}

#archive .feature .tag.is-curation::before {
    background: #7750f8;
    box-shadow: 0 0 0 3px rgba(119, 80, 248, .14);
}

@keyframes gomgom-feature-tag-pulse {
    0%,
    100% {
        opacity: .48;
        transform: scale(.82);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

#archive .feature h2 {
    position: relative;
    z-index: 1;
    min-height: 2.28em;
    margin: 58px 0 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--gomgom-color-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 8.4vw, 43px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -.052em;
    word-break: keep-all;
}

#archive .feature .feature-excerpt {
    position: relative;
    z-index: 1;
    margin: 9px 0 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(17, 17, 17, .64);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.58;
    letter-spacing: -.018em;
    word-break: keep-all;
}

#archive .feature .meta {
    position: relative;
    z-index: 1;
    margin: 11px 0 0;
    color: rgba(17, 17, 17, .46);
    font-size: 11px;
    font-weight: 720;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#archive .feature .signals {
    display: none;
}

#archive .hero-arrow-button {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: color-mix(in srgb, var(--gomgom-color-coral) 38%, #ffffff 62%);
    box-shadow: none;
    transition: transform .14s ease, opacity .14s ease;
}

#archive .hero-arrow-button svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
    stroke: none;
}

#archive .hero-arrow-button:active {
    transform: scale(.96);
    opacity: .76;
}

#archive .list {
    margin-top: 30px;
    border-top: 1px solid var(--gomgom-color-line);
}

#archive .story {
    width: 100%;
    min-height: 92px;
    padding: 18px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--gomgom-color-line);
    background: transparent;
    color: var(--gomgom-color-ink);
    text-align: left;
}

#archive #storyList .story > span:first-child {
    min-width: 0;
}

#archive #storyList .story .story-title-line {
    display: block;
    min-width: 0;
}

#archive #storyList .story .story-title-line h4 {
    min-width: 0;
    max-height: 2.6em;
    margin: 0;
    display: block;
    overflow: hidden;
}

#archive #storyList .story .story-title-tail {
    display: inline-flex;
    align-items: center;
    gap: .24em;
    white-space: nowrap;
}

#archive #storyList .story .story-title-tail .story-ticket-icon {
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    display: block;
}

#archive #storyList .story .story-title-wrap > .meta {
    margin-top: 6px;
}

#archive #storyList .story h4 {
    margin: 0 0 6px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.034em;
    word-break: keep-all;
}

#archive #storyList .story p {
    margin: 0;
    overflow: hidden;
    color: var(--gomgom-color-muted);
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#archive .badge {
    width: 52px;
    min-width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5f4f1;
    color: rgba(17, 17, 17, .64);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .02em;
}

#archive .badge.v {
    box-shadow: inset 0 0 0 6px rgba(119, 80, 248, .13);
}

#archive .badge.c {
    box-shadow: inset 0 0 0 6px rgba(255, 107, 97, .14);
}

#archive .story-ticket-icon {
    width: 27px;
    height: 27px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: -7px;
    fill: #c4b5fd;
}

#archive .empty {
    display: none;
    padding: 38px 0;
    color: var(--gomgom-color-muted);
    font-size: 13px;
    text-align: center;
}

#archive .empty.show {
    display: block;
}

@media (max-width: 359px) {
    #archive .feature {
        min-height: 332px;
        padding: 26px 58px 76px 22px;
        border-radius: 26px;
    }

    #archive .feature h2 {
        margin-top: 50px;
        font-size: 30px;
    }

    #archive .feature .feature-excerpt {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #archive .feature .tag::before {
        animation: none;
    }
}
