/**
 * EZS 메인 섹션 골격 CSS — about / newsfeed / faq / cta
 *
 * basic 시맨틱 토큰(--gb-*)만 사용. 다크모드는 토큰이 자동 반전.
 * 장식 요소(particles·grid-bg·deco-line·ring 애니)는 의도적으로 비워둔 상태 — 다른 세션에서 추가 예정.
 *
 * 반응형 mobile-first 캐스케이드: base = mobile(≤767.98) → 768+ (tablet) → 992+ (lg) → 1200+ (pc).
 * Bootstrap 표준 분기점 정합. spec: _DOCS_/specs/2026-05-02-main-section-responsive-tokens-design.md
 *
 * @version 20260502-001
 */

/* ===== 공통 레이아웃 (base = mobile) ===== */
.wrap {
    max-width: var(--gb-section-max-w);
    margin: 0 auto;
    padding: 0 var(--gb-section-pad-x-mobile);
}

.sec-pad {
    padding: var(--gb-section-pad-y-mobile) 0;
}

.sec-header {
    margin-bottom: var(--gb-section-header-mb-mobile);
    text-align: center;
}

.sec-label {
    display: inline-block;
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gb-text-tertiary);
    margin-bottom: 16px;
}

.sec-title {
    font-family: var(--gb-font-heading);
    font-size: clamp(1.75rem, 2.6vw + 0.5rem, 2.5rem);
    font-weight: 700;
    line-height: var(--gb-leading-display);
    letter-spacing: -0.015em;
    color: var(--gb-text-primary);
    margin: 0 0 16px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sec-desc {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-base);
    line-height: var(--gb-leading-body);
    color: var(--gb-text-secondary);
    max-width: 56ch;
    margin: 0 auto;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.rv {
    /* reveal-on-scroll 자리 — 골격에선 그냥 표시 */
    opacity: 1;
}

/* 인접 본문 섹션 사이 hairline divider — 동적 순서 자동 적응 (D5) */
section.sec-pad + section.sec-pad {
    border-top: var(--gb-section-divider);
}

/* cta sunken 섹션은 surface 차이로 자동 구분 — divider 불필요 */
section.cta + section.sec-pad,
section.sec-pad + section.cta {
    border-top: none;
}

/* hero 직후 본문 섹션 — 자동 호흡 강화 (hero 비활성 시 미적용) */
.mb-hero-carousel + section.sec-pad {
    padding-top: var(--gb-section-pad-y-lg-mobile);
}

/* ===== ABOUT (함께 만드는 사람들) ===== */
.about {
    background: var(--gb-surface-page);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gb-section-gap-mobile);
}

.about-card,
.about-card-link {
    display: block;
    background: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-card-link:hover,
.about-card-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--gb-shadow-md);
    border-color: var(--gb-border-strong);
    color: inherit;
}
.about-card-link:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
}

.about-card-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--gb-surface-sunken);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-avatar {
    font-size: 3rem;
    color: var(--gb-text-tertiary);
}

.about-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--gb-surface-card);
    color: var(--gb-text-primary);
    border: 1px solid var(--gb-border-default);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.about-card-body {
    padding: 20px;
}

.about-card-body h3 {
    font-family: var(--gb-font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gb-text-primary);
    margin: 0 0 8px;
    line-height: var(--gb-leading-tight-ko);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.about-card-body p {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-sm);
    color: var(--gb-text-secondary);
    margin: 0;
    line-height: var(--gb-leading-body);
    word-break: keep-all;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== NEWSFEED =====
 * pk_newsfeed 스킨 마크업(news-layout / news-timeline / news-item / news-highlight*)을
 * basic 시맨틱 토큰(--gb-*)으로 이식. plickon 다크 전용 색상 → 라이트·다크 자동 반전.
 */
.newsfeed {
    background: var(--gb-surface-card);
    position: relative;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gb-section-gap-mobile);
    align-items: start;
}

.news-timeline {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--gb-border-subtle);
    transition: padding 0.25s ease, background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-item:hover { padding-left: 8px; color: inherit; }
.news-item:last-child { border-bottom: none; }

.news-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--gb-text-tertiary);
    font-size: var(--gb-font-sm);
}

.news-date {
    min-width: 56px;
    text-align: center;
    flex-shrink: 0;
}

.news-date-day {
    font-family: var(--gb-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gb-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.news-date-month {
    font-size: var(--gb-font-xs);
    color: var(--gb-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.news-body { flex: 1; min-width: 0; }

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--gb-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
    background: var(--gb-surface-sunken);
    color: var(--gb-text-secondary);
    letter-spacing: 0.02em;
}

.news-title {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-base);
    font-weight: 600;
    color: var(--gb-text-primary);
    margin-bottom: 4px;
    line-height: var(--gb-leading-tight-ko);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-sm);
    color: var(--gb-text-secondary);
    line-height: var(--gb-leading-body);
    word-break: keep-all;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-highlight {
    background: var(--gb-surface-sunken);
    border-radius: var(--gb-radius-2xl);
    padding: 28px;
    border: 1px solid var(--gb-border-default);
    position: static;
}

.news-highlight-label {
    font-size: var(--gb-font-xs);
    font-weight: 700;
    color: var(--gb-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-highlight-card {
    display: block;
    text-decoration: none;
    background: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-xl);
    padding: 24px;
    color: inherit;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-highlight-card:hover,
.news-highlight-card:focus-visible {
    border-color: var(--gb-primary);
    box-shadow: var(--gb-shadow-sm);
    transform: translateY(-1px);
    color: inherit;
}
.news-highlight-card:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
}

.news-highlight-card h3 {
    font-family: var(--gb-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: var(--gb-leading-heading);
    color: var(--gb-text-primary);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.news-highlight-card p {
    font-size: var(--gb-font-sm);
    color: var(--gb-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.news-highlight-card .tag {
    display: inline-block;
    font-size: 0.6875rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gb-primary-light);
    color: var(--gb-primary);
    margin-top: 12px;
}

.news-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: var(--gb-text-secondary);
    text-decoration: none;
    padding: 12px;
    border-radius: var(--gb-radius-lg);
    border: 1px solid var(--gb-border-default);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-cta-link:hover {
    background: var(--gb-primary-light);
    border-color: var(--gb-primary);
    color: var(--gb-primary);
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--gb-surface-page);
    position: relative;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gb-section-gap-mobile);
    align-items: start;
}

.faq-intro .sec-label,
.faq-intro h3 {
    text-align: left;
}

.faq-intro h3 {
    font-family: var(--gb-font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--gb-text-primary);
    margin: 0 0 12px;
    line-height: var(--gb-leading-display);
    letter-spacing: -0.015em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.faq-intro > p {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-base);
    color: var(--gb-text-secondary);
    margin: 0 0 24px;
    line-height: var(--gb-leading-body);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.faq-contact-box {
    background: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: 12px;
    padding: 24px;
}

.faq-contact-icon {
    font-size: 1.5rem;
    color: var(--gb-primary);
    margin-bottom: 12px;
}

.faq-contact-box h5 {
    font-family: var(--gb-font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gb-text-primary);
    margin: 0 0 8px;
}

.faq-contact-box p {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-sm);
    color: var(--gb-text-secondary);
    margin: 0 0 16px;
    line-height: var(--gb-leading-body);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.faq-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gb-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.faq-contact-link:hover,
.faq-contact-link:focus-visible {
    color: var(--gb-primary-hover);
    text-decoration: underline;
}
.faq-contact-link:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: 10px;
    overflow: hidden;
}

.faq-q {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gb-primary-light);
    color: var(--gb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.faq-q h5 {
    font-family: var(--gb-font-heading);
    font-size: var(--gb-font-base);
    font-weight: 600;
    color: var(--gb-text-primary);
    margin: 0;
    line-height: var(--gb-leading-tight-ko);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.faq-q-toggle {
    color: var(--gb-text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-q-toggle {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.active .faq-a {
    max-height: 1000px;
}

.faq-a-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 0 20px 20px;
    border-top: 1px solid var(--gb-border-subtle);
    padding-top: 16px;
}

.faq-a-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gb-accent-light);
    color: var(--gb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.faq-a-content {
    font-family: var(--gb-font-body);
    color: var(--gb-text-secondary);
    font-size: 0.9375rem;
    line-height: var(--gb-leading-body);
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===== CTA / 고객센터 ===== */
.cta {
    background: var(--gb-surface-sunken);
    padding: var(--gb-section-pad-y-lg-mobile) 0;
}

.cta-inner {
    text-align: center;
}

.cta-label {
    display: inline-block;
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gb-text-tertiary);
    margin-bottom: 16px;
}

.cta-title {
    font-family: var(--gb-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gb-text-primary);
    margin: 0 0 16px;
    line-height: var(--gb-leading-display);
    letter-spacing: -0.015em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.cta-desc {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-base);
    color: var(--gb-text-secondary);
    margin: 0 auto 32px;
    max-width: 56ch;
    line-height: var(--gb-leading-body);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-cta-gold,
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--gb-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cta-gold {
    background: var(--gb-primary);
    color: var(--gb-text-on-primary);
    border: 1px solid var(--gb-primary);
}

.btn-cta-gold:hover,
.btn-cta-gold:focus-visible {
    background: var(--gb-primary-hover);
    border-color: var(--gb-primary-hover);
    color: var(--gb-text-on-primary);
}
.btn-cta-gold:focus-visible {
    outline: 2px solid var(--gb-text-primary);
    outline-offset: 3px;
}

.btn-cta-outline {
    background: transparent;
    color: var(--gb-text-primary);
    border: 1px solid var(--gb-border-strong);
}

.btn-cta-outline:hover,
.btn-cta-outline:focus-visible {
    background: var(--gb-surface-card);
    border-color: var(--gb-text-primary);
    color: var(--gb-text-primary);
}
.btn-cta-outline:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
}

.cta-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--gb-font-body);
    color: var(--gb-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
}

a.cta-link:hover,
a.cta-link:focus-visible {
    color: var(--gb-text-primary);
    text-decoration: underline;
}
a.cta-link:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== PARTNER =====
 * pk_partner 스킨 마크업(partner-tabs / partner-panel / collab-grid / collab-card)을
 * basic 시맨틱 토큰(--gb-*)으로 이식. 다크 비주얼 + primary accent — 라이트·다크 자동 반전.
 */
.partner {
    background: var(--gb-surface-page);
    position: relative;
    overflow: hidden;
}
.partner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--gb-border-default), var(--gb-primary), var(--gb-border-default), transparent 90%);
    opacity: 0.3;
    pointer-events: none;
}
.partner::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(var(--gb-primary-rgb), 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* -- Tabs container -- */
.partner-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--gb-surface-sunken);
    border-radius: var(--gb-radius-md);
    padding: 4px;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    position: relative;
}
.partner-tab {
    padding: 10px 22px;
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: var(--gb-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--gb-radius-sm);
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, font-weight 0.15s;
    position: relative;
    z-index: 1;
}
.partner-tab:hover { color: var(--gb-text-primary); }
.partner-tab.active {
    color: var(--gb-primary);
    background: var(--gb-surface-card);
    box-shadow: var(--gb-shadow-sm);
    font-weight: 700;
}
.partner-tab:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 2px;
}

/* -- Panel crossfade -- */
.partner-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
}
.partner-panel.active {
    display: block;
    animation: ptPanelIn 0.5s ease forwards;
}
@keyframes ptPanelIn {
    to { opacity: 1; transform: translateY(0); }
}

/* -- "More" link -- */
.collab-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 10px 24px;
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: var(--gb-primary);
    border: 1px solid rgba(var(--gb-primary-rgb), 0.25);
    border-radius: var(--gb-radius-md);
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.collab-more-link i { transition: transform 0.35s ease; }
.collab-more-link:hover,
.collab-more-link:focus-visible {
    background: rgba(var(--gb-primary-rgb), 0.08);
    border-color: var(--gb-primary);
    color: var(--gb-primary);
}
.collab-more-link:hover i,
.collab-more-link:focus-visible i { transform: translateX(5px); }
.collab-more-link:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
}

/* -- Empty state -- */
.collab-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gb-text-tertiary);
    font-size: var(--gb-font-sm);
}

/* -- Grid -- */
.collab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* -- Card -- */
.collab-card {
    background: var(--gb-surface-card);
    border-radius: var(--gb-radius-xl);
    overflow: hidden;
    border: 1px solid var(--gb-border-default);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.collab-card:hover,
.collab-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--gb-shadow-lg);
    border-color: rgba(var(--gb-primary-rgb), 0.18);
    color: inherit;
}
/* 키보드 포커스 — outline으로 시각 피드백 (hover 시각 효과와 별도 결합) */
.collab-card:focus-visible {
    outline: 2px solid var(--gb-primary);
    outline-offset: 3px;
}

/* -- Scroll reveal (basic 환경: reveal observer 없음 → 즉시 표시. .vis 부착 시 부드럽게 fade-in) -- */
.collab-card.rv {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* -- Visual area (다크 오버레이 + primary accent) -- */
.collab-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: 110%;
    background-position: center;
    background-color: var(--gb-text-primary);
    transition: background-size 0.8s ease;
}
.collab-card:hover .collab-visual { background-size: 118%; }
.collab-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.66) 50%, rgba(0, 0, 0, 0.78) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}
.collab-card:hover .collab-visual::before { opacity: 0.85; }
.collab-visual.has-thumb::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.55) 100%);
}
/* 썸네일 있을 때 — 가운데 아이콘+서브텍스트 비노출. 이미지가 시각 정보 전담, 카드 좌상 카테고리 배지·우하 인덱스만 유지 */
.collab-visual.has-thumb .collab-icon { display: none; }

/* -- Category badge -- */
.collab-tag {
    position: absolute;
    top: 16px; left: 16px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(var(--gb-primary-rgb), 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--gb-primary-rgb), 0.3);
    font-size: var(--gb-font-xs);
    font-weight: 700;
    color: var(--gb-text-on-primary);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease, border-color 0.4s ease;
}
.collab-card:hover .collab-tag {
    background: rgba(var(--gb-primary-rgb), 0.35);
    border-color: rgba(var(--gb-primary-rgb), 0.5);
}
.collab-tag i { color: var(--gb-text-on-primary); }

/* -- Center icon + sub -- */
.collab-icon {
    z-index: 4;
    text-align: center;
    color: var(--gb-text-on-primary);
}
.collab-icon i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--gb-primary);
    filter: drop-shadow(0 2px 12px rgba(var(--gb-primary-rgb), 0.5));
    transition: transform 0.5s ease, filter 0.5s ease;
    display: inline-block;
}
.collab-card:hover .collab-icon i {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 20px rgba(var(--gb-primary-rgb), 0.7));
}
.collab-icon p {
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.collab-card:hover .collab-icon p { transform: translateY(-2px); }

/* -- Card index number decoration -- */
.collab-idx {
    position: absolute;
    bottom: 8px; right: 16px;
    font-family: var(--gb-font-heading);
    font-size: 56px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    z-index: 3;
    line-height: 1;
    letter-spacing: -3px;
    transition: color 0.5s ease;
}
.collab-card:hover .collab-idx {
    color: rgba(var(--gb-primary-rgb), 0.18);
}

/* -- Card body -- */
.collab-body { padding: 22px; }
.collab-body h3 {
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-base);
    font-weight: 700;
    color: var(--gb-text-primary);
    margin: 0 0 10px;
    line-height: var(--gb-leading-tight-ko);
    word-break: keep-all;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}
.collab-card:hover .collab-body h3,
.collab-card:focus-visible .collab-body h3 { color: var(--gb-primary); }
.collab-body p {
    font-size: var(--gb-font-sm);
    color: var(--gb-text-secondary);
    line-height: var(--gb-leading-body);
    margin: 0 0 14px;
    word-break: keep-all;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.collab-body p:last-child { margin-bottom: 0; }

/* -- Tags -- */
.collab-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.collab-tags span {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: var(--gb-font-xs);
    font-weight: 600;
    border: 1px solid var(--gb-border-default);
    background: var(--gb-surface-sunken);
    color: var(--gb-text-secondary);
    transition: border-color 0.3s ease, color 0.3s ease;
}
.collab-card:hover .collab-tags span {
    border-color: rgba(var(--gb-primary-rgb), 0.25);
    color: var(--gb-primary);
}

/* ===== 반응형 단계 (mobile-first 캐스케이드) =====
 * base = mobile (≤767.98) — 위 컴포넌트 정의에서 mobile 토큰 사용 중.
 * Bootstrap 표준 분기점(767.98 / 991.98 / 1199.98) 정합.
 * 파일 끝에 배치 — 위쪽 base 정의를 안전하게 오버라이드.
 */

/* ===== AFFILIATE — 제휴서비스 (3종 유형 통합 그리드)
 * partner와 동일한 collab-grid 골격 재사용 + CTA 라인 추가.
 * 카드 수가 더 많을 수 있어 pc 단계에서 4열까지 확장.
 */
.affiliate {
    background: var(--gb-surface-page);
    position: relative;
}

/* CTA 라인 — 가격/안내 + 화살표 */
.aff-card .collab-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aff-card .aff-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--gb-font-body);
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: var(--gb-text-secondary);
    transition: color 0.3s ease, gap 0.3s ease;
}

.aff-card .aff-price {
    font-weight: 700;
    color: var(--gb-text-primary);
    transition: color 0.3s ease;
}

.aff-card:hover .aff-cta { color: var(--gb-primary); gap: 12px; }
.aff-card:hover .aff-price { color: var(--gb-primary); }

/* 외부 링크 카드 — 시각적 미세 구분 (border-top accent) */
.aff-card--external::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--gb-primary-rgb), 0.45), transparent);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.aff-card--external:hover::before { opacity: 1; }

/* 상품 이미지가 있는 카드는 오버레이 없이 이미지 그대로 노출 (partner는 다크 오버레이 유지) */
.aff-card .collab-visual.has-thumb::before { display: none; }

/* 빈 상태 */
.affiliate .collab-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gb-text-tertiary);
    font-size: var(--gb-font-sm);
}

@media (min-width: 768px) {
    /* tablet 진입 — 768~1199 */
    .sec-pad        { padding: var(--gb-section-pad-y-tablet) 0; }
    .wrap           { padding: 0 var(--gb-section-pad-x-tablet); }
    .sec-header     { margin-bottom: var(--gb-section-header-mb-tablet); }
    .about-grid     { grid-template-columns: repeat(2, 1fr); gap: var(--gb-section-gap-tablet); }
    .news-layout    { gap: var(--gb-section-gap-tablet); }
    .faq-layout     { gap: var(--gb-section-gap-tablet); }
    .collab-grid    { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cta            { padding: var(--gb-section-pad-y-lg-tablet) 0; }
    .mb-hero-carousel + section.sec-pad { padding-top: var(--gb-section-pad-y-lg-tablet); }
}

@media (min-width: 992px) {
    /* lg 진입 — about 3열, news/faq 2열, affiliate 3열 분기 */
    .about-grid     { grid-template-columns: repeat(3, 1fr); }
    .news-layout    { grid-template-columns: minmax(0, 1fr) 360px; }
    .news-highlight { position: sticky; top: 88px; }
    .faq-layout     { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .affiliate-grid.collab-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    /* pc 진입 — 최종 단계 */
    .sec-pad        { padding: var(--gb-section-pad-y) 0; }
    .wrap           { padding: 0 var(--gb-section-pad-x); }
    .sec-header     { margin-bottom: var(--gb-section-header-mb); }
    .about-grid     { grid-template-columns: repeat(4, 1fr); gap: var(--gb-section-gap); }
    .news-layout    { gap: var(--gb-section-gap); }
    .faq-layout     { gap: var(--gb-section-gap); }
    .cta            { padding: var(--gb-section-pad-y-lg) 0; }
    .mb-hero-carousel + section.sec-pad { padding-top: var(--gb-section-pad-y-lg); }
    .affiliate-grid.collab-grid { grid-template-columns: repeat(4, 1fr); }
}
