﻿/* 아하아이디어와 함께하는 커뮤니티 사이트 - the full list (Controls/V2/V2CommunitySites) */
body:has(.v2-header) .v2-cs { margin: 28px auto 48px; }
body:has(.v2-header) .v2-cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 26px; border-radius: 16px; background: linear-gradient(120deg, #f5f1ff, #fdf2f8 60%, #fff); }
body:has(.v2-header) .v2-cs-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--v2-primary); }
body:has(.v2-header) .v2-cs-title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.3; color: var(--v2-navy); }
body:has(.v2-header) .v2-cs-sub { margin: 8px 0 0; font-size: 14px; color: #4b5162; }
body:has(.v2-header) .v2-cs-search { display: flex; align-items: center; gap: 12px; }
body:has(.v2-header) .v2-cs-search input { width: 300px; max-width: 60vw; height: 46px; padding: 0 18px; border: 2px solid var(--v2-primary); border-radius: 999px; font: inherit; font-size: 14px; background: #fff; }
body:has(.v2-header) .v2-cs-search input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(107, 63, 224, .15); }
body:has(.v2-header) .v2-cs-count { font-size: 14px; font-weight: 800; color: var(--v2-navy); white-space: nowrap; }
body:has(.v2-header) .v2-cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
body:has(.v2-header) .v2-cs-card { display: flex; flex-direction: column; border: 1px solid var(--v2-line); border-radius: 14px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
body:has(.v2-header) .v2-cs-card[hidden] { display: none; }
body:has(.v2-header) .v2-cs-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 36, 48, .1); }
body:has(.v2-header) .v2-cs-img { display: block; aspect-ratio: 16 / 9; background: var(--v2-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3fe0' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 14.5c3 0 6 2 6 5.5'/%3E%3C/svg%3E") center / 44px no-repeat; overflow: hidden; }
body:has(.v2-header) .v2-cs-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
body:has(.v2-header) .v2-cs-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
body:has(.v2-header) .v2-cs-body b { font-size: 16px; font-weight: 800; color: var(--v2-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body:has(.v2-header) .v2-cs-card:hover b { color: var(--v2-primary); }
body:has(.v2-header) .v2-cs-site { font-size: 12.5px; font-weight: 600; color: #8a90a2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body:has(.v2-header) .v2-cs-intro { font-size: 13px; line-height: 1.55; color: #5b6172; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body:has(.v2-header) .v2-cs-last { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--v2-line); font-size: 13px; color: #3d4354; }
body:has(.v2-header) .v2-cs-last i { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 800; color: var(--v2-primary); background: var(--v2-primary-soft); padding: 2px 7px; border-radius: 999px; }
body:has(.v2-header) .v2-cs-last span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body:has(.v2-header) .v2-cs-last em { flex: 0 0 auto; font-style: normal; font-size: 12px; color: var(--v2-muted); }
body:has(.v2-header) .v2-cs-none { padding: 50px 0; text-align: center; color: var(--v2-muted); }
@media (max-width: 1000px) { body:has(.v2-header) .v2-cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    body:has(.v2-header) .v2-cs-grid { grid-template-columns: minmax(0, 1fr); }
    body:has(.v2-header) .v2-cs-search input { width: 100%; max-width: none; }
    body:has(.v2-header) .v2-cs-search { width: 100%; }
}

/* phones: a smaller head, and each site as a row - its picture on the left - rather than a tall card */
@media (max-width: 640px) {
    body:has(.v2-header) .v2-cs { margin-top: 14px; }
    body:has(.v2-header) .v2-cs-head { padding: 18px 16px; margin-bottom: 16px; gap: 14px; }
    body:has(.v2-header) .v2-cs-title { font-size: 21px; }
    body:has(.v2-header) .v2-cs-sub { font-size: 13px; }
    body:has(.v2-header) .v2-cs-grid { gap: 10px; }
    body:has(.v2-header) .v2-cs-card { flex-direction: row; align-items: stretch; }
    body:has(.v2-header) .v2-cs-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 96px; background-size: 30px; }
    body:has(.v2-header) .v2-cs-body { gap: 4px; padding: 10px 12px; }
    body:has(.v2-header) .v2-cs-body b { font-size: 15px; }
    body:has(.v2-header) .v2-cs-intro { -webkit-line-clamp: 1; font-size: 12.5px; }
    body:has(.v2-header) .v2-cs-last { padding-top: 6px; font-size: 12px; }
}
