/* 포항 풍선봉사단 페이지·컴포넌트 스타일 (site.css 다음에 로드)
 * 모바일 우선. 브레이크포인트: 768px(태블릿), 1024px(PC)
 */

/* ---------- 공통 ---------- */

.narrow { max-width: 820px; }
.center { text-align: center; }
.pc-only { display: none; }

.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--c-text); box-shadow: 0 8px 20px rgba(0, 0, 0, .10); }

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-red);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.section-tight { padding: 24px 0; }

/* 메인 히어로: 섹션 전체 배경에 히어로 사진, 카드는 그 위에 반투명으로
 *  - PC(1024+): 섹션을 사진 비율(1920:819)로 → 가로 전체에 사진 한 장이 잘림 없이
 *  - 태블릿·모바일: 위쪽에 사진 전체(선명, ::after) + 그 아래는 같은 사진을 흐리게(::before)
 */
.hero.hero-with-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(42.66vw + 12px) 0 32px;
    background: #cfe9ff;
}

.hero.hero-with-visual::before,
.hero.hero-with-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    background-image: url("/assets/img/hero-768.webp");
    background-repeat: no-repeat;
}

/* 아래로 이어지는 흐린 사진 */
.hero.hero-with-visual::before {
    top: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.15);
    opacity: .7;
}

/* 위쪽 선명한 사진 전체 (아래 끝은 자연스럽게 흐린 배경으로) */
.hero.hero-with-visual::after {
    top: 0;
    height: 42.66vw;
    background-position: center top;
    background-size: 100% auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

.hero-with-visual .hero-inner {
    gap: 16px;
}

.hero-copy {
    position: relative;
    padding: 24px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(31, 41, 55, .10);
}

.hero-copy h1 {
    font-size: 30px;
}

.hero-copy .hero-lead {
    margin-bottom: 20px;
}

.hero-copy .hero-eyebrow {
    box-shadow: none;
    background: #fff1f3;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy .hero-eyebrow {
    align-self: flex-start;
}

/* 오른쪽 칸: 단가 카드 + 날씨 카드 */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hero-side .weather-card,
.hero-side .song-card {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 0;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .10);
}

.hero-side .weather-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 22px;
}

.hero-side .song-card {
    border-radius: 22px;
}

/* PC: 단가 카드를 키우고(약 180px) 남는 높이는 날씨 카드가 채움 */
@media (min-width: 1024px) {
    .hero-side .song-card.song-card-compact {
        min-height: 180px;
        align-content: center;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 4px 14px;
        padding: 20px 22px;
    }

    .hero-side .song-card-compact .song-art {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .hero-side .song-card-compact .song-art svg {
        width: 42px;
        height: 42px;
    }

    .hero-side .song-card-compact .song-title {
        font-size: 19px;
    }

    .hero-side .song-card-compact .song-controls {
        margin-top: 14px;
    }

    .hero-side .song-card-compact .song-play {
        width: 52px;
        height: 52px;
    }

    .hero-side .song-card-compact .song-play svg {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 768px) {
    .hero.hero-with-visual {
        padding: calc(42.66vw + 20px) 0 48px;
    }

    .hero.hero-with-visual::before,
    .hero.hero-with-visual::after {
        background-image: url("/assets/img/hero-1280.webp");
    }

    .hero-copy {
        padding: 28px 30px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }
}

@media (min-width: 1024px) {
    .hero.hero-with-visual {
        display: flex;
        align-items: center;
        aspect-ratio: 1920 / 819;
        overflow: visible; /* hidden이면 비율 높이가 카드보다 작을 때(1024px 등) 카드가 잘림 */
        padding: 32px 0;
    }

    /* PC는 흐린 배경 없이 선명한 사진 한 장으로 섹션 전체를 채움 */
    .hero.hero-with-visual::before {
        display: none;
    }

    .hero.hero-with-visual::after {
        bottom: 0;
        height: auto;
        background-size: cover;
        background-position: center;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-with-visual .hero-inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 28px;
    }

    .hero-copy {
        padding: 24px 30px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-copy .hero-lead {
        margin-bottom: 18px;
    }

    .hero-side {
        width: 100%;
        max-width: 380px;
        justify-self: end;
    }

    .hero-side .song-card.song-card-compact {
        min-height: 164px;
    }
}

@media (min-width: 1280px) {
    .hero.hero-with-visual::after {
        background-image: url("/assets/img/hero-1920.webp");
    }
}

/* ---------- 단가 플레이어 ---------- */

.song-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff1f3 0%, #fff8e1 50%, #eef7ff 100%);
    border: 1px solid #ffe0e5;
    box-shadow: var(--shadow);
}

.song-art {
    flex: none;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(255, 90, 110, .18);
}

.song-balloon {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

.song-card.is-playing .song-balloon { animation: song-float 1.6s ease-in-out infinite; }
.song-card.is-playing .song-balloon.b2 { animation-delay: .25s; }
.song-card.is-playing .song-balloon.b3 { animation-delay: .5s; }

@keyframes song-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

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

.song-label {
    margin: 0;
    color: var(--c-red);
    font-size: 14px;
    font-weight: 700;
}

.song-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.song-body audio {
    width: 100%;
    height: 44px;
}

.song-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.song-controls[hidden] { display: none; }

.song-play {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--c-red);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 90, 110, .35);
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}

.song-play:hover { background: var(--c-red-dark); transform: scale(1.05); }
.song-play .icon-pause { display: none; }
.song-card.is-playing .song-play .icon-play { display: none; }
.song-card.is-playing .song-play .icon-pause { display: block; }
.song-play .icon-play { margin-left: 3px; }

.song-seek {
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    background: transparent;
    accent-color: var(--c-red);
    cursor: pointer;
}

.song-time {
    flex: none;
    color: var(--c-text-soft);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* 좁은 칸용 2줄 배치: [아이콘 | 라벨·제목] / [재생 버튼 + 막대 + 시간] */
.song-card.song-card-compact {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
        "art label"
        "art title"
        "ctl ctl";
    gap: 2px 12px;
    padding: 16px 18px;
    align-items: center;
}

.song-card-compact .song-body { display: contents; }
.song-card-compact .song-art { grid-area: art; width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 4px 12px rgba(255, 90, 110, .16); }
.song-card-compact .song-art svg { width: 36px; height: 36px; }
.song-card-compact .song-label { grid-area: label; align-self: end; font-size: 13px; }
.song-card-compact .song-title { grid-area: title; align-self: start; margin: 0; font-size: 18px; }
.song-card-compact .song-controls,
.song-card-compact audio { grid-area: ctl; margin-top: 10px; }
.song-card-compact .song-play { width: 46px; height: 46px; }
.song-card-compact .song-play svg { width: 22px; height: 22px; }

.song-about {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .song-card { align-items: flex-start; gap: 14px; padding: 16px; }
    .song-art { width: 56px; height: 56px; border-radius: 16px; }
    .song-art svg { width: 40px; height: 40px; }
    .song-title { font-size: 18px; }
    .song-time { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .song-card.is-playing .song-balloon { animation: none; }
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.more-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--c-blue-dark);
    text-decoration: none;
}

.h-section { font-size: 24px; font-weight: 800; margin-bottom: 20px; }

.empty-state {
    padding: 40px 16px;
    border: 2px dashed var(--c-line);
    border-radius: var(--radius);
    color: var(--c-muted);
    text-align: center;
}

.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.3em; }

.page-head {
    padding: 44px 0 40px;
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-line);
}

.page-head h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.page-head p { margin: 0; color: var(--c-text-soft); font-size: 18px; }
.page-head.tone-red { background: linear-gradient(135deg, #fff1f3, #fff8f1); }
.page-head.tone-blue { background: linear-gradient(135deg, #eef7ff, #f7fbff); }
.page-head.tone-yellow { background: linear-gradient(135deg, #fff7dc, #fffbf0); }
.page-head.tone-green { background: linear-gradient(135deg, #eafaf2, #f6fdf9); }

.breadcrumb { margin-bottom: 8px; font-size: 15px; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a::before { content: "← "; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef1f6;
    color: var(--c-text-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.badge-recruiting, .badge-reviewing, .badge-contacted, .badge-training, .badge-dormant, .badge-on_hold { background: #fff4d6; color: #a86b00; }
.badge-confirmed, .badge-scheduled, .badge-active, .badge-sent { background: #e3f8ee; color: #1d8a5a; }
.badge-received, .badge-applied, .badge-planned, .badge-pending, .badge-dev { background: #e8f3ff; color: #1f6fb8; }
.badge-completed { background: #efe9ff; color: #6a46c8; }
.badge-cancelled, .badge-rejected, .badge-withdrawn, .badge-left, .badge-failed { background: #ffe9ec; color: #c22f45; }

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
}

.tag-volunteer, .dot-volunteer, .cal-volunteer { background: var(--c-red); }
.tag-balloon_class, .dot-balloon_class, .cal-balloon_class { background: var(--c-blue); }
.tag-ukulele_practice, .dot-ukulele_practice, .cal-ukulele_practice { background: #e0a400; }
.tag-meeting, .dot-meeting, .cal-meeting { background: var(--c-green); }
.tag-ceremony, .dot-ceremony, .cal-ceremony { background: var(--c-purple); }

.notice-box,
.intro-box {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    border: 1px solid #ffe3c7;
}

.intro-box { margin-bottom: 28px; font-size: 18px; }
.intro-box p:last-child, .notice-box p:last-child, .notice-box ul:last-child, .notice-box ol:last-child { margin-bottom: 0; }
.intro-blue { background: var(--c-bg-sky); border-color: #d5e9fb; }
.notice-box { margin-top: 32px; }
.notice-box.left { text-align: left; }
.notice-box strong:first-child { display: block; margin-bottom: 6px; }

.alert { margin-bottom: 20px; padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.alert-error { background: #ffeef0; color: #b42339; border: 1px solid #ffd0d6; }
.alert-success { background: #e9f9f1; color: #17734a; border: 1px solid #c4ecd8; }

/* ---------- 메인 ---------- */

.service-grid { display: grid; gap: 16px; }

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 24px 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow);
}

.service-card h3 { font-size: 21px; margin-top: 16px; }
.service-card p { margin: 0; color: var(--c-text-soft); }

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    font-size: 44px;
    line-height: 1;
}

.tone-red .service-icon { background: #ffe9ec; }
.tone-yellow .service-icon { background: #fff4d1; }
.tone-blue .service-icon { background: #e4f2fe; }
.tone-green .service-icon { background: #e1f7ec; }

.cta-band {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 26px;
    border-radius: 28px;
    color: #fff;
}

.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { margin: 0; font-size: 17px; opacity: .95; }
.cta-band-request { background: linear-gradient(135deg, #ff5a6e, #ff8a5c); }
.cta-band-join { background: linear-gradient(135deg, #3da5f4, #6c7cff); }

.activity-grid { display: grid; gap: 20px; }

.activity-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.activity-card a { display: block; text-decoration: none; }
.activity-thumb { aspect-ratio: 4 / 3; background: var(--c-bg-soft); overflow: hidden; }
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; }
.activity-body { padding: 16px 18px 18px; }

.activity-body h3 {
    font-size: 19px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    color: var(--c-muted);
    font-size: 15px;
}

.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.event-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.event-item.is-cancelled { opacity: .6; }
.event-item.is-cancelled h3 { text-decoration: line-through; }

.event-date {
    flex: none;
    width: 64px;
    padding: 8px 0;
    border-radius: 14px;
    background: var(--c-bg-soft);
    text-align: center;
    line-height: 1.2;
}

.type-volunteer .event-date { background: #ffe9ec; }
.type-balloon_class .event-date { background: #e4f2fe; }
.type-ukulele_practice .event-date { background: #fff4d1; }
.type-meeting .event-date { background: #e1f7ec; }
.type-ceremony .event-date { background: #f0e9ff; }

.event-date strong { display: block; font-size: 26px; font-weight: 800; }
.event-month, .event-weekday { font-size: 13px; color: var(--c-text-soft); }
.event-body h3 { font-size: 18px; margin: 4px 0; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; color: var(--c-muted); font-size: 15px; }

/* ---------- 팝업 ---------- */

.popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, .45);
}

.popup[hidden] { display: none; }

.popup-box {
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.popup-box h2 { font-size: 22px; }
.popup-actions { display: flex; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--c-line); }

.popup-actions button {
    min-height: 48px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--c-text-soft);
    cursor: pointer;
}

/* ---------- 소개 ---------- */

.slogan-quote {
    margin: 32px 0 0;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: var(--c-red);
}

.purpose-grid, .org-grid, .talent-grid, .cta-pair { display: grid; gap: 16px; }
.purpose-card, .org-card { padding: 24px; }
.purpose-card > span { font-size: 34px; }
.purpose-card p, .org-card p { margin: 0; color: var(--c-text-soft); }
.org-card h3 { color: var(--c-red); font-size: 19px; }
.org-card .org-name { color: var(--c-text); font-weight: 700; margin-bottom: 4px; }
.talent-item { padding: 26px; border-radius: var(--radius); }
.talent-item.tone-red { background: #fff1f3; }
.talent-item.tone-yellow { background: #fff8e1; }
.talent-item p { margin: 0; }

.meeting-box {
    margin-top: 20px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: #fff;
    border: 2px solid var(--c-yellow);
}

.meeting-box p { margin: 4px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 3px solid #ffd9de; }
.timeline li { position: relative; padding: 0 0 22px 8px; }

.timeline li::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--c-red);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ffd9de;
}

.timeline time { font-weight: 800; color: var(--c-red); }
.timeline p { margin: 2px 0 0; }

.cta-tile { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); color: #fff; text-decoration: none; }
.cta-tile strong { font-size: 22px; }
.cta-tile.tone-red { background: linear-gradient(135deg, #ff5a6e, #ff8a5c); }
.cta-tile.tone-blue { background: linear-gradient(135deg, #3da5f4, #6c7cff); }

/* ---------- 활동 상세 ---------- */

.article-title { font-size: 30px; font-weight: 800; }

.article-facts {
    display: grid;
    gap: 6px;
    margin: 16px 0 24px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #f7f8fb;
}

.article-facts div { display: flex; gap: 12px; }
.article-facts dt { flex: none; width: 76px; color: var(--c-muted); }
.article-facts dd { margin: 0; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }

.gallery-item {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--c-bg-soft);
}

.gallery-item.is-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: 18px; }

.share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 32px 0;
    padding: 16px 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}

.share-box > span { font-weight: 700; margin-right: auto; }

.article-nav { display: grid; gap: 10px; margin-bottom: 28px; }
.article-nav a { display: block; padding: 14px 18px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); text-decoration: none; }
.article-nav small { display: block; color: var(--c-muted); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
}

.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

.lightbox button {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- 일정 ---------- */

.calendar-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.calendar-head h2 { margin: 0; font-size: 26px; font-weight: 800; }

.cal-nav {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    font-size: 24px;
    text-decoration: none;
}

.cal-today { margin-left: auto; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--c-text-soft);
}

.legend li { display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.calendar {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar th { padding: 8px 0; background: #f7f8fb; font-size: 14px; font-weight: 700; }
.calendar td { height: 64px; padding: 4px; vertical-align: top; border: 1px solid var(--c-line); }
.calendar .sun, .calendar .sun .day { color: #e2445c; }
.calendar .sat, .calendar .sat .day { color: #1f7ad1; }
.calendar td.empty { background: #fafbfc; }
.calendar .day { display: block; font-size: 14px; font-weight: 700; }

.calendar td.today .day {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c-red);
    color: #fff;
}

/* 모바일: 달력 칸에는 점만 표시하고 아래 목록에서 자세히 */
.cal-item { display: inline-block; width: 8px; height: 8px; margin: 2px 1px 0 0; border-radius: 50%; }
.cal-item .cal-time, .cal-item .cal-title { display: none; }
.cal-item.is-cancelled { opacity: .35; }
.list-title { margin-top: 40px; }

/* ---------- 교육 ---------- */

.level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.level-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--c-line);
}

.level-stars { grid-row: span 2; color: #f5a300; font-size: 18px; letter-spacing: 1px; }
.level-list span:last-child { color: var(--c-text-soft); font-size: 15px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--c-line);
    font-weight: 600;
    text-decoration: none;
}

.chip.is-active { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.chip-toggle.is-active { background: #f5a300; border-color: #f5a300; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.work-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow);
}

.work-card a { display: block; height: 100%; text-decoration: none; }
.work-thumb { position: relative; aspect-ratio: 1; background: var(--c-bg-soft); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }

.work-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f5a300;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.work-body { padding: 12px 14px 16px; }
.work-body h3 { font-size: 17px; margin-bottom: 2px; }
.work-code { color: var(--c-red); }
.work-stars { margin: 0 0 6px; color: #f5a300; letter-spacing: 1px; }
.work-specs { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; color: var(--c-text-soft); }
.work-more { font-size: 14px; font-weight: 700; color: var(--c-blue-dark); }

.work-detail { display: grid; gap: 24px; margin-bottom: 28px; }
.work-detail-image { border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); aspect-ratio: 1; }
.work-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.work-code-lg { margin: 0; font-weight: 800; color: var(--c-red); }
.work-stars-lg { font-size: 22px; }
.work-stars-lg small { font-size: 15px; color: var(--c-text-soft); }

.work-badge-inline {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff4d1;
    color: #a86b00;
    font-weight: 700;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.steps { counter-reset: step; list-style: none; margin: 0 0 32px; padding: 0; }

.steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 16px 14px 60px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: #f7f8fb;
    font-size: 18px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-red);
    color: #fff;
    font-weight: 800;
}

/* ---------- 폼 ---------- */

.form-note { color: var(--c-text-soft); font-size: 15px; }
.req { color: var(--c-red); font-weight: 700; }
.opt { margin-left: 4px; color: var(--c-muted); font-size: 14px; font-weight: 500; }

.form-section {
    min-width: 0;
    margin: 0 0 24px;
    padding: 24px 20px 8px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
}

.form-section legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.step {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-red);
    color: #fff;
    font-size: 16px;
}

.field { margin-bottom: 20px; min-width: 0; }
.field label, .field .label { display: block; margin-bottom: 8px; font-weight: 700; }
.field-row { display: grid; gap: 0 16px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field input[type="url"],
.field input[type="password"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 1.5px solid #d6dce6;
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 17px;
    color: var(--c-text);
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-blue);
    box-shadow: 0 0 0 4px rgba(61, 165, 244, .18);
}

.field [aria-invalid="true"], .field [aria-invalid="true"] .choice span { border-color: #e2445c; }
.field-error { margin: 6px 0 0; color: #c22f45; font-size: 15px; font-weight: 600; }
.field-help { margin: 6px 0 0; color: var(--c-muted); font-size: 14px; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix span { flex: none; font-weight: 600; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid-7 { grid-template-columns: repeat(7, 1fr); gap: 4px; }
.field .choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 6px 4px;
    border: 1.5px solid #d6dce6;
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

.choice input:checked + span { border-color: var(--c-red); background: #fff1f3; color: var(--c-red-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--c-blue); outline-offset: 2px; }

.consent-box { margin-bottom: 16px; }

.consent-box dl {
    margin: 0 0 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: #f7f8fb;
    font-size: 15px;
}

.consent-box dl div { display: flex; gap: 12px; margin-bottom: 4px; }
.consent-box dt { flex: none; width: 70px; font-weight: 700; }
.consent-box dd { margin: 0; }
.consent-note { font-size: 14px; color: var(--c-text-soft); }

.check-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1.5px solid #d6dce6;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.check-lg input { flex: none; width: 24px; height: 24px; accent-color: var(--c-red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 8px; }

.done-page { padding-top: 72px; }
.done-icon, .error-icon { font-size: 64px; margin: 0; }
.done-page h1, .error-page h1 { font-size: 28px; font-weight: 800; }
.done-lead { font-size: 19px; color: var(--c-text-soft); }

.done-number {
    display: inline-flex;
    flex-direction: column;
    margin: 12px 0 8px;
    padding: 16px 32px;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    border: 2px dashed #ffc7a8;
}

.done-number strong { font-size: 26px; letter-spacing: .03em; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.policy-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 1em; }
.policy-table th, .policy-table td { padding: 10px; border: 1px solid var(--c-line); vertical-align: top; text-align: left; }
.policy-table th { background: #f7f8fb; }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0 0; }

.pagination a,
.pagination strong {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border-radius: 12px;
    border: 1px solid var(--c-line);
    text-decoration: none;
    font-weight: 700;
}

.pagination strong { background: var(--c-text); border-color: var(--c-text); color: #fff; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    z-index: 130;
    transform: translateX(-50%);
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .9);
    color: #fff;
    font-size: 15px;
}

/* ---------- 태블릿 ---------- */

@media (min-width: 768px) {
    .pc-only { display: inline; }

    .service-grid, .purpose-grid, .talent-grid, .cta-pair, .activity-grid, .org-grid { grid-template-columns: repeat(2, 1fr); }

    .cta-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 40px 44px;
    }

    .cta-band .btn { flex: none; }

    .page-head { padding: 60px 0 52px; }
    .page-head h1 { font-size: 40px; }

    .field-row { grid-template-columns: 1fr 1fr; }
    .form-section { padding: 28px 28px 12px; }
    .choice-grid { grid-template-columns: repeat(3, 1fr); }
    .choice-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .choice-grid-7 { grid-template-columns: repeat(7, 1fr); gap: 8px; }

    .work-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .work-detail { grid-template-columns: 1fr 1fr; align-items: start; }
    .gallery { grid-template-columns: repeat(4, 1fr); }
    .article-nav { grid-template-columns: 1fr 1fr; }
    .article-nav .next { text-align: right; }

    .calendar td { height: 110px; }

    /* 태블릿 이상: 달력 칸에 시간·제목 표시 */
    .cal-item {
        display: block;
        width: auto;
        height: auto;
        margin: 3px 0 0;
        padding: 1px 6px;
        border-radius: 6px;
        color: #fff;
        font-size: 12px;
        line-height: 1.5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cal-item .cal-time, .cal-item .cal-title { display: inline; }
    .cal-item .cal-time { margin-right: 4px; font-weight: 700; }
    .cal-item.is-cancelled { text-decoration: line-through; }
}

/* ---------- PC ---------- */

@media (min-width: 1024px) {
    .service-grid { grid-template-columns: repeat(4, 1fr); }
    .purpose-grid, .activity-grid { grid-template-columns: repeat(3, 1fr); }
    .org-grid { grid-template-columns: repeat(5, 1fr); }
    .work-grid { grid-template-columns: repeat(4, 1fr); }
    .toast { bottom: 40px; }
}

/* ---------- 모바일 스크롤 등장 (site.js가 .reveal을 붙임) ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- PC 마우스 올림 효과 (마우스 쓰는 기기만) ---------- */

@media (hover: hover) and (pointer: fine) {
    .service-card,
    .purpose-card,
    .org-card,
    .talent-item,
    .event-item,
    .work-card,
    .cta-tile {
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

    .service-card:hover,
    .purpose-card:hover,
    .org-card:hover,
    .talent-item:hover,
    .work-card:hover,
    .cta-tile:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

    .event-item:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-lg);
    }

    .service-card:hover { border-color: #ffd0d8; }
    .service-card.tone-yellow:hover { border-color: #ffe7a3; }
    .service-card.tone-blue:hover { border-color: #bfe0fb; }
    .service-card.tone-green:hover { border-color: #b8ecd3; }

    /* 아이콘이 통통 */
    .service-icon,
    .purpose-card > span {
        display: inline-grid;
        transition: transform .3s ease;
    }

    .service-card:hover .service-icon,
    .purpose-card:hover > span {
        animation: icon-bounce .6s ease;
    }

    @keyframes icon-bounce {
        0% { transform: translateY(0) rotate(0); }
        35% { transform: translateY(-8px) rotate(-8deg) scale(1.08); }
        65% { transform: translateY(0) rotate(5deg) scale(1.02); }
        100% { transform: translateY(0) rotate(0); }
    }

    /* 사진 천천히 확대 */
    .activity-thumb img,
    .work-thumb img {
        transition: transform .6s ease;
    }

    .activity-card:hover .activity-thumb img,
    .work-card:hover .work-thumb img {
        transform: scale(1.06);
    }

    .work-thumb {
        overflow: hidden;
    }

    .work-card:hover .work-more,
    .activity-card:hover h3 {
        color: var(--c-red);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover .service-icon,
    .purpose-card:hover > span {
        animation: none;
    }
}

/* ---------- 단가 가사 보기 버튼 + 모달 ---------- */

.song-card {
    position: relative;
}

.song-lyrics-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #ffd0d8;
    border-radius: 10px;
    background: #fff;
    color: var(--c-red-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.song-lyrics-btn:hover {
    background: var(--c-red);
    border-color: var(--c-red);
    color: #fff;
}

/* 버튼 자리만큼 제목 줄 오른쪽 비움 */
.song-card .song-label,
.song-card .song-title {
    padding-right: 84px;
}

.lyrics-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: var(--c-text);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
    overflow: hidden;
}

.lyrics-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: lyrics-in .25s ease;
}

.lyrics-dialog::backdrop {
    background: rgba(15, 23, 42, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

@keyframes lyrics-in {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.lyrics-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 14px;
    background: linear-gradient(135deg, #fff1f3 0%, #fff8e1 55%, #eef7ff 100%);
}

.lyrics-head h2 {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 800;
}

.lyrics-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -6px -6px 0 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    color: var(--c-text-soft);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lyrics-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    font-size: 18px;
    line-height: 1.9;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.lyrics-body p {
    margin: 0 0 1.3em;
}

.lyrics-body p:last-child {
    margin-bottom: 0;
}

.lyrics-foot {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--c-line);
}

.lyrics-foot .when-playing { display: none; }
.lyrics-dialog.is-playing .when-paused { display: none; }
.lyrics-dialog.is-playing .when-playing { display: inline; }

@media (prefers-reduced-motion: reduce) {
    .lyrics-dialog[open] { animation: none; }
}

/* ---------- 단원 모집 기간이 아닐 때 (join.php) ---------- */

.form-lock {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form.is-closed .form-lock {
    filter: grayscale(1);
    opacity: .45;
    pointer-events: none;
    user-select: none;
}

.join-closed-notice {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: #f1f3f6;
    border: 1px solid #dfe3ea;
    color: var(--c-text-soft);
}

.join-closed-notice strong {
    display: block;
    margin-bottom: 4px;
    color: var(--c-text);
    font-size: 18px;
}

.join-closed-notice p {
    margin: 0;
}

.join-closed-dialog {
    width: min(400px, calc(100vw - 32px));
    padding: 32px 24px 24px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: var(--c-text);
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.join-closed-dialog[open] {
    animation: lyrics-in .25s ease;
}

.join-closed-dialog::backdrop {
    background: rgba(71, 85, 105, .55);
    -webkit-backdrop-filter: grayscale(1) blur(2px);
    backdrop-filter: grayscale(1) blur(2px);
}

.join-closed-icon {
    margin: 0;
    font-size: 48px;
    filter: grayscale(1);
    opacity: .7;
}

.join-closed-dialog h2 {
    margin: 8px 0 10px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.45;
}

.join-closed-dialog p {
    color: var(--c-text-soft);
}

.join-closed-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

/* '풍선봉사 요청' 버튼 글자 왼쪽 풍선 (로고와 같은 그림, 흰 원 안에) */
.btn-balloon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* .btn은 이미 gap 6px이 있어 여백을 조금만 */
.btn .btn-balloon {
    margin-right: 2px;
}

.btn-white .btn-balloon {
    background: #fff1f3;
    box-shadow: none;
}

.nav-cta .btn-balloon {
    width: 24px;
    height: 24px;
    margin-right: 6px;
}

.nav-cta .btn-balloon svg {
    width: 17px;
    height: 17px;
}

.mobile-cta .btn-balloon {
    width: 24px;
    height: 24px;
}

.mobile-cta .btn-balloon svg {
    width: 17px;
    height: 17px;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover .btn-balloon svg,
    .nav-cta:hover .btn-balloon svg {
        animation: balloon-wiggle .7s ease;
    }

    @keyframes balloon-wiggle {
        0%, 100% { transform: translateY(0) rotate(0); }
        30% { transform: translateY(-2px) rotate(-10deg); }
        60% { transform: translateY(0) rotate(8deg); }
    }
}

/* 에디터로 쓴 활동 본문 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.6em 0 .6em;
    font-weight: 800;
}

.article-content h1 { font-size: 26px; }
.article-content h2 { font-size: 23px; }
.article-content h3 { font-size: 20px; }

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1em auto;
    border-radius: var(--radius-sm);
}

.article-content blockquote {
    margin: 1.2em 0;
    padding: 12px 18px;
    border-left: 4px solid var(--c-yellow);
    background: #fffaf0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--c-text-soft);
}

.article-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--c-line);
}

.article-content table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    font-size: 16px;
}

.article-content th,
.article-content td {
    padding: 8px 10px;
    border: 1px solid var(--c-line);
    text-align: left;
}

.article-content th {
    background: #f7f8fb;
}

.article-content a {
    color: var(--c-blue-dark);
}
