/*
 * MOCA 웹 새 디자인 (2026-11 메인부터). 오늘의집·인프런을 참고한 넓은 폭·여백 위주 구성.
 * 부트스트랩 없이 이 파일만으로 그림. 다른 페이지로 넓힐 때도 이 토큰·부품을 씀
 */
/* 색 토큰(:root)과 머리(.site-top) 규칙은 site-header.css — site_head가 이 파일보다 먼저 불러옴 */

* { box-sizing: border-box; }
body.site {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--ink); background: #fff; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
body.site button, body.site input, body.site select, body.site textarea { font-family: inherit; }
.site a { color: inherit; text-decoration: none; }
.site .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ── 버튼 ── */
.site .btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
    border-radius: 8px; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; white-space: nowrap; }
.site .btn-black { background: var(--black); color: #fff; }
.site .btn-yellow { background: var(--yellow); color: var(--black); }
.site .btn-line { border: 1px solid #dee2e6; color: var(--ink); background: #fff; }


/* ── 알림 (로그인했을 때 읽지 않은 것) ── */
.site-notice { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
    background: #fff9db; font-size: 14px; }
.site-notice button { margin-left: auto; border: 0; background: none; font-size: 18px; color: #868e96; cursor: pointer; }

/* ── 첫 화면 큰 배너 (지금은 index에서 주석 처리) ── */
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 16px; margin-top: 28px; }
.hero-main { position: relative; border-radius: 16px; overflow: hidden; height: 340px;
    background: linear-gradient(120deg, #fff6b3 0%, #fee500 55%, #ffd43b 100%); padding: 36px 56px; }
.hero-main .eyebrow { font-size: 14px; font-weight: 700; color: #6b5c00; }
.hero-main h1 { font-size: 40px; line-height: 1.25; margin: 10px 0 12px; font-weight: 800; letter-spacing: -.03em; color: var(--black); }
.hero-main p { font-size: 16px; color: #4a4100; margin: 0 0 20px; max-width: 400px; line-height: 1.55; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.side-card { border-radius: 16px; padding: 22px 24px; position: relative; overflow: hidden; display: block; }
.side-card .tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.side-card h3 { font-size: 20px; margin: 10px 0 6px; font-weight: 800; letter-spacing: -.02em; }
.side-card p { margin: 0; font-size: 14px; color: #495057; }
.side-card .emoji { position: absolute; right: 18px; bottom: 10px; font-size: 64px; }
.side-card.partner { background: #fff4e6; }
.side-card.partner .tag { background: #ff922b; color: #fff; }
.side-card.champ { background: var(--soft); border: 1px solid var(--line); }
.side-card.champ .tag { background: var(--black); color: #fff; }

/* ── 구역 머리 ── */
.site section { margin-top: 64px; scroll-margin-top: 16px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.sec-head .desc { font-size: 14px; color: var(--sub); margin-top: 6px; }
.sec-head .more { font-size: 14px; font-weight: 700; color: #495057; white-space: nowrap; }
.chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #dee2e6; display: inline-flex; align-items: center;
    font-size: 14px; font-weight: 600; color: #495057; background: #fff; cursor: pointer; }
.chip.on { background: var(--black); border-color: var(--black); color: #fff; }
.empty { padding: 40px 0; text-align: center; color: var(--sub); font-size: 14px; }

/* ── 명예의 전당 (담백하게: 회색 바탕·흰 카드, 금색은 1등에만) ── */
section.hof { margin-top: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 36px 36px 24px; }
.hof-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.hof-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #adb5bd; }
.hof h2 { font-size: 28px; font-weight: 800; margin: 6px 0 6px; letter-spacing: -.03em; color: var(--black); }
.hof .desc { font-size: 14px; color: var(--sub); }
.period { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #eceef0; }
.period a { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #6c757d; }
.period a.on { background: #fff; color: var(--black); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hof-body { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 12px; }
.hof-lists { display: contents; }
.podium-card, .rank-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.podium-card { padding: 20px 22px 0; display: flex; flex-direction: column; min-height: 330px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; color: var(--black); }
.card-title .unit { font-size: 12px; font-weight: 500; color: var(--sub); }
.card-title .more { font-size: 12px; font-weight: 600; color: var(--sub); }
.podium { margin-top: auto; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding-top: 18px; }
.podium .p { text-align: center; min-width: 0; }
.podium .p .av { width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px; color: #495057; background: #f1f3f5; border: 2px solid #dee2e6; }
.podium .p1 .av { width: 64px; height: 64px; font-size: 21px; color: #7a5c00; background: #fff8db; border-color: #f0c24b; }
.podium .p3 .av { border-color: #e2c3a8; }
.podium .p .av img, .rank-row .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.podium .p .av:has(img), .rank-row .av:has(img) { padding: 0; overflow: hidden; }
.podium .crown { font-size: 22px; margin-bottom: 2px; }
.podium .nm { font-weight: 700; font-size: 15px; color: var(--black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .cnt { font-size: 13px; color: #6c757d; font-weight: 600; margin: 2px 0 10px; }
.podium .p1 .cnt { color: #a37b00; }
.podium .block { border-radius: 10px 10px 0 0; font-size: 22px; font-weight: 800; display: flex; align-items: flex-start;
    justify-content: center; padding-top: 10px; color: #868e96; }
.podium .p1 .block { height: 104px; background: #fff3bf; color: #a37b00; }
.podium .p2 .block { height: 74px; background: #f1f3f5; }
.podium .p3 .block { height: 54px; background: #f8efe7; color: #b08968; }
.rank-card { padding: 18px 20px; }
.rank-card .card-title { margin-bottom: 10px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; }
.rank-row + .rank-row { border-top: 1px solid #f1f3f5; }
.rank-row .n { width: 18px; font-weight: 700; font-size: 15px; color: #adb5bd; flex-shrink: 0; }
.rank-row .n.r1 { color: var(--gold); } .rank-row .n.r2 { color: #868e96; } .rank-row .n.r3 { color: #c08457; }
.rank-row .av { width: 30px; height: 30px; border-radius: 50%; background: #f1f3f5; color: #495057; font-weight: 600; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .badges { font-size: 12px; color: #f59f00; flex-shrink: 0; }
/* 뱃지 아이콘 색 (예전 화면의 custom-color.css와 같음) */
.site .text-hotpink { color: hotpink; }
/* 관리자가 뱃지에 붙이는 부트스트랩 글자색 (이 화면은 부트스트랩을 안 불러옴) */
.site .text-primary { color: #0d6efd; } .site .text-success { color: #198754; } .site .text-danger { color: #dc3545; }
.site .text-warning { color: #ffc107; } .site .text-info { color: #0dcaf0; } .site .text-secondary { color: #6c757d; }
.rank-row .v { margin-left: auto; font-weight: 700; color: var(--black); white-space: nowrap; }
.rank-card .none, .podium-card .none { color: var(--sub); font-size: 13px; padding: 24px 0; text-align: center; }
.hof-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px;
    border-top: 1px solid var(--line); font-size: 14px; color: #495057; }

/* ── 바로가기 ── */
.shortcuts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 40px 0 8px; }
.sc { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #343a40; text-align: center; }
.sc .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.sc .ic.gold { background: #fff8db; }

/* ── 모임 카드 ── */
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.moim-card .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f1f3f5; }
.moim-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moim-card.done .thumb img { filter: grayscale(.35); opacity: .85; }
.moim-card .badge { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--black); }
.moim-card .badge.dday { background: var(--hot); color: #fff; }
.moim-card .badge.done { background: rgba(0,0,0,.55); color: #fff; }
.moim-card .club { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 12px; font-weight: 700; padding: 4px 8px;
    border-radius: 6px; background: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moim-card h4 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 12px 0 6px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 13px; color: var(--sub); line-height: 1.6; }
.meta b { color: var(--ink); font-weight: 600; }
.moim-card .people { margin-top: 6px; font-size: 13px; font-weight: 700; }

/* ── 단골 가게 ── */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.store-card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.store-card:hover { border-color: #ced4da; }
.store-card .title { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff3bf; color: #5c3c00; }
.store-card h4 { font-size: 16px; font-weight: 700; margin: 10px 0 6px; }
.store-card .benefit { font-size: 13px; font-weight: 700; color: var(--hot); margin-top: 6px; }
.store-card .map { margin-top: 10px; font-size: 12px; color: var(--sub); }

/* ── 앱 받기 띠 + 바닥 ── */
.app-band { margin-top: 72px; background: var(--black); color: #fff; border-radius: 20px; padding: 40px 56px; display: flex; align-items: center; gap: 40px; }
.app-band h3 { font-size: 26px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.03em; }
.app-band p { margin: 0; color: #ced4da; font-size: 15px; }
.app-band .stores { margin-left: auto; display: flex; gap: 10px; }
.app-band .store-btn { height: 48px; padding: 0 18px; border-radius: 10px; background: #fff; color: var(--black); display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.site-footer { margin-top: 64px; padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; color: #495057; margin-bottom: 12px; }

/* ═══ 반응형 ═══ 태블릿(1024px 이하): 칸 수 줄이기 / 휴대폰(640px 이하): 한 줄 쌓기 + 옆으로 넘기는 카드 줄 */
@media (max-width: 1024px) {
    .site .wrap { padding: 0 24px; }
    .hero { grid-template-columns: 1fr; }
    .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .hof-body { grid-template-columns: repeat(3, 1fr); }
    .podium-card { grid-column: 1 / -1; min-height: 0; }
    .podium { max-width: 420px; margin: 0 auto; width: 100%; }
    .shortcuts { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
    .grid5 { grid-template-columns: repeat(3, 1fr); }
    .grid4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .site .wrap { padding: 0 16px; }
    .site .btn { height: 36px; padding: 0 12px; font-size: 13px; }

    .hero { margin-top: 16px; gap: 10px; }
    .hero-main { height: auto; padding: 24px 22px 40px; border-radius: 14px; }
    .hero-main h1 { font-size: 26px; }
    .hero-main p { font-size: 14px; max-width: none; }
    .side-card { padding: 14px; }
    .side-card h3 { font-size: 15px; }
    .side-card p { font-size: 12px; padding-right: 26px; }
    .side-card .emoji { font-size: 30px; right: 10px; bottom: 8px; }

    .site section { margin-top: 40px; }
    .sec-head h2 { font-size: 19px; }
    .sec-head .desc { font-size: 13px; }
    .sec-head .more { font-size: 13px; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
    .chip { height: 32px; font-size: 13px; flex-shrink: 0; }

    section.hof { margin: 20px -16px 0; border-radius: 0; border-left: 0; border-right: 0; padding: 26px 16px 20px; }
    .hof-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .hof h2 { font-size: 23px; }
    .hof-body { display: block; }
    .podium-card { padding: 16px 16px 0; }
    .hof-lists { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto;
        scroll-snap-type: x mandatory; margin: 10px -16px 0; padding: 0 16px; scroll-padding: 0 16px; scrollbar-width: none; }
    .hof-lists > * { scroll-snap-align: start; }
    .hof-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .hof-cta .btn { height: 44px; }

    .shortcuts { grid-template-columns: repeat(4, 1fr); row-gap: 16px; margin-top: 28px; }
    .sc { font-size: 12px; gap: 6px; }
    .sc .ic { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; }

    .grid5 { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; gap: 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; scrollbar-width: none; }
    .grid5 > * { scroll-snap-align: start; }
    .moim-card h4 { font-size: 14px; margin-top: 10px; }
    .meta { font-size: 12px; }
    .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .store-card { padding: 14px; }
    .store-card h4 { font-size: 14px; }

    .app-band { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 22px; margin-top: 48px; border-radius: 16px; }
    .app-band h3 { font-size: 21px; }
    .app-band p { font-size: 14px; }
    .app-band .stores { margin-left: 0; width: 100%; }
    .app-band .store-btn { flex: 1; justify-content: center; height: 46px; }
}

/* ══ 모임 상세 (/moim/detail): 왼쪽 본문 + 오른쪽 따라오는 카드, 휴대폰은 한 줄 + 아래 고정 버튼 ══ */
.md-page .crumb { font-size: 13px; color: var(--sub); margin: 20px 0 16px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.md-page .crumb a { color: #495057; font-weight: 600; }
.md-page .crumb .club-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.md { display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-areas: "cover side" "body side";
    column-gap: 48px; align-items: start; }
.md > .md-cover { grid-area: cover; } .md > .md-body { grid-area: body; } .md > .md-side { grid-area: side; }

/* 커버: 정사각 그림도 넓게 보이도록 뒤는 같은 그림을 흐리게 */
.md-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #f1f3f5; }
.md-cover .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px); opacity: .5; }
.md-cover img { position: relative; display: block; height: 100%; margin: 0 auto; object-fit: contain; max-width: 100%; }

/* 본문 탭 (스크롤하면 위에 붙음) */
.md-tabs { position: sticky; top: 0; z-index: 5; background: #fff; display: flex; gap: 28px; border-bottom: 1px solid var(--line);
    margin-top: 28px; font-size: 15px; font-weight: 600; color: #868e96; }
.md-tabs a { padding: 14px 0; white-space: nowrap; flex-shrink: 0; }
.md-tabs a.on { color: var(--black); font-weight: 800; box-shadow: inset 0 -2px 0 var(--black); }
.md-tabs .n { font-size: 13px; color: #adb5bd; margin-left: 3px; }

.md-page section.md-sec { margin-top: 0; padding: 32px 0 8px; scroll-margin-top: 56px; }
.md-page section.md-sec + section.md-sec { border-top: 8px solid var(--soft); margin-top: 24px; }
.md-sec h3 { font-size: 19px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.md-sec h3 small { font-size: 14px; color: var(--sub); font-weight: 600; }

/* 단계 */
.md-steps { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border-radius: 14px; padding: 16px 8px; }
.md-step { text-align: center; position: relative; font-size: 13px; color: #adb5bd; font-weight: 600; }
.md-step .dot { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 6px; background: #fff; border: 2px solid #dee2e6;
    display: flex; align-items: center; justify-content: center; font-size: 12px; position: relative; z-index: 1; }
.md-step:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: #dee2e6; }
.md-step.done { color: #495057; } .md-step.done .dot { background: var(--black); border-color: var(--black); color: #fff; }
.md-step.done:not(:last-child)::after { background: var(--black); }
.md-step.now { color: var(--black); font-weight: 800; } .md-step.now .dot { background: var(--yellow); border-color: var(--black); }
.md-step-desc { text-align: center; font-size: 13px; color: var(--sub); margin: 10px 0 0; }

/* 정보 줄 */
.md-info { margin-top: 22px; }
.md-info-row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; font-size: 15px; align-items: start; }
.md-info-row + .md-info-row { border-top: 1px solid #f1f3f5; }
.md-info-row .k { color: var(--sub); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.md-info-row .v { min-width: 0; overflow-wrap: anywhere; }
.md-info-row .v b { font-weight: 700; }
.md-info-row .v small { display: block; color: var(--sub); font-size: 13px; margin-top: 3px; }
.md-info-row .map { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #1971c2; }
.md-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6c757d; background: var(--soft);
    padding: 6px 10px; border-radius: 8px; margin-top: 6px; }
.md-dday { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--hot); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.md-benefit { color: #e8590c; font-weight: 700; }

.md-av { width: 40px; height: 40px; border-radius: 50%; background: #f1f3f5; color: #495057; font-weight: 700; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; object-fit: cover; overflow: hidden; }
.md-av.gold { background: #fff8db; color: #7a5c00; box-shadow: inset 0 0 0 2px #f0c24b; }
.md-host, .md-club { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; }
.md-host { margin-top: 18px; border: 1px solid var(--line); }
.md-club { margin-top: 10px; background: var(--soft); }
.md-host > div, .md-club > div { min-width: 0; }
.md-host .nm, .md-club .nm { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-club .nm { font-size: 14px; }
.md-host .sub, .md-club .sub { font-size: 13px; color: var(--sub); margin-top: 2px; }
.md-host .go, .md-club .go { margin-left: auto; font-size: 13px; font-weight: 700; color: #495057; white-space: nowrap; }
.md-club .em { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; flex-shrink: 0; }

/* 함께하는 사람 */
.md-subh { font-size: 14px; font-weight: 700; color: #495057; margin: 4px 0 10px; display: flex; gap: 6px; align-items: center; }
.md-subh .c { font-size: 13px; color: var(--sub); font-weight: 600; }
.md-ppl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.md-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; cursor: pointer; }
.md-person:hover { background: var(--soft); }
.md-person.me { border-color: #ffd43b; background: #fffbe6; }
.md-person .md-av { width: 36px; height: 36px; font-size: 14px; }
.md-person .who { min-width: 0; }
.md-person .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.md-person .nm i { font-size: 13px; }
.md-person .tag { font-size: 11px; font-weight: 700; color: #6c757d; }
.md-person .t { margin-left: auto; font-size: 13px; color: #495057; white-space: nowrap; text-align: right; }
.md-person .t small { display: block; color: var(--sub); font-size: 12px; }
.md-person .cancel { font-size: 12px; color: #e03131; font-weight: 700; margin-left: 8px; cursor: pointer; }
.md-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-top: 2px; }
.md-pill.on-time { background: #ebfbee; color: #2b8a3e; } .md-pill.late { background: #fff4e6; color: #d9480f; } .md-pill.today { background: #e7f5ff; color: #1971c2; }
.md-empty { border: 1px dashed #dee2e6; border-radius: 12px; padding: 18px; text-align: center; font-size: 14px; color: var(--sub); margin-bottom: 22px; }

/* 그날의 한 장 */
.md-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.md-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f1f3f5; }
.md-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-photo .rep { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 800; background: var(--yellow); color: var(--black); padding: 2px 6px; border-radius: 5px; }
.md-photo .del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.md-upload { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; padding: 12px; border: 1.5px dashed #ced4da; border-radius: 12px; }
.md-upload input { flex: 1; min-width: 0; font-size: 13px; }
.md-note { font-size: 13px; color: var(--sub); margin: 0 0 12px; line-height: 1.5; }

/* 오른쪽 카드 */
.md-side { position: sticky; top: 24px; }
.md-apply { border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,.05); background: #fff; }
.md-apply .top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); font-weight: 600; flex-wrap: wrap; }
.md-apply .badge-d { font-size: 12px; font-weight: 800; color: #fff; background: var(--hot); padding: 3px 8px; border-radius: 6px; }
.md-apply .badge-d.gray { background: #495057; }
.md-apply .badge-s { font-size: 12px; font-weight: 700; color: #495057; background: #f1f3f5; padding: 3px 8px; border-radius: 6px; }
.md-apply h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px; line-height: 1.3; overflow-wrap: anywhere; }
.md-apply .md-row { display: flex; gap: 10px; font-size: 14px; padding: 6px 0; align-items: flex-start; }
.md-apply .md-row > i { color: #868e96; font-size: 15px; width: 18px; text-align: center; margin-top: 1px; flex-shrink: 0; }
.md-apply .md-row > div { min-width: 0; }
.md-apply .md-row .muted, .md-apply .md-row small { color: var(--sub); }
.md-apply .md-row small { display: block; font-size: 13px; }
.md-apply .md-row .map { font-size: 12px; font-weight: 700; color: #1971c2; }
.md-stack { display: flex; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f3f5; font-size: 14px; }
.md-stack .md-av { width: 30px; height: 30px; font-size: 12px; border: 2px solid #fff; margin-left: -8px; }
.md-stack .md-av:first-child { margin-left: 0; }
.md-stack span.txt { margin-left: 10px; color: #495057; } .md-stack b { color: var(--black); }
.md-cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid #f1f3f5; }
.md-cta > label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.md-time { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid #dee2e6; border-radius: 10px; }
.md-time i { color: #868e96; }
.md-time input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; font-weight: 700; background: transparent; color: var(--ink); }
.site .btn-xl { width: 100%; height: 52px; font-size: 16px; border-radius: 12px; margin-top: 10px; gap: 6px; }
.site .btn-xl.first { margin-top: 0; }
.site .btn-xl.yellow { background: var(--yellow); color: var(--black); }
.site .btn-xl.line { background: #fff; border: 1px solid #dee2e6; color: var(--ink); }
.site .btn:disabled { opacity: .5; cursor: default; }
.md-hint { font-size: 13px; color: var(--sub); margin: 10px 0 0; line-height: 1.5; }
.md-links { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin-top: 12px; font-size: 13px; font-weight: 600; color: #495057; }
.md-links a, .md-links button { text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.md-links form { display: inline; margin: 0; }
.md-box { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.md-box.ok { background: #ebfbee; color: #2b8a3e; } .md-box.blue { background: #e7f5ff; color: #1971c2; } .md-box.gray { background: var(--soft); color: #495057; }
.md-box i { font-size: 16px; margin-top: 1px; }
.md-box small { display: block; font-weight: 500; color: #495057; margin-top: 2px; }
.md-money { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; font-size: 14px; }
.md-money b { font-size: 18px; } .md-money small { color: var(--sub); font-size: 12px; margin-left: 4px; }
.md-sm { display: flex; gap: 8px; margin-top: 8px; }
.md-sm .btn { flex: 1; height: 42px; font-size: 13px; }
.md-qr { display: block; width: 200px; max-width: 100%; margin: 14px auto 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.md-qr-timer { text-align: center; font-size: 13px; color: #495057; font-weight: 600; margin: 0; }
.md-scanner { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.md-scanner canvas { width: 100%; border-radius: 8px; }
.md-scanner .msg { font-size: 13px; color: #495057; text-align: center; padding: 8px; }
.md-time-edit { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--soft); }
.md-admin { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #dee2e6; font-size: 12px; color: var(--sub); display: flex; justify-content: space-between; }
.md-admin a { color: #e8590c; font-weight: 700; }
.md-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.md-share .btn { height: 42px; font-size: 13px; gap: 6px; }
.md-share .kakao { background: #fee500; color: #191919; }
.md-tip { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; color: #495057; display: flex; gap: 8px; align-items: center; }
.md-tip b { color: var(--black); } .md-tip .go { margin-left: auto; font-weight: 700; white-space: nowrap; }
.md-more { margin-top: 72px; }
.md-bar { display: none; }

@media (max-width: 1024px) {
    .md { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; }
}
@media (max-width: 860px) {
    .md { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "side" "body"; }
    .md-side { position: static; margin-top: 18px; }
    .md-apply { border: 0; box-shadow: none; padding: 0; }
    .md-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px 14px; background: #fff;
        border-top: 1px solid var(--line); z-index: 20; }
    .md-bar .btn { height: 52px; border-radius: 12px; font-size: 16px; }
    .md-bar .share { width: 52px; flex-shrink: 0; background: #f1f3f5; color: #191919; font-size: 20px; }
    .md-bar .main { flex: 1; }
    body.site.has-bar { padding-bottom: 84px; }
}
@media (max-width: 640px) {
    .md-page .crumb { display: none; }
    .md-cover { border-radius: 0; margin: 0 -16px; aspect-ratio: 4 / 3; }
    .md-apply h1 { font-size: 22px; margin: 10px 0 12px; }
    .md-tabs { margin: 24px -16px 0; padding: 0 16px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
    .md-ppl { grid-template-columns: 1fr; }
    .md-photos { grid-template-columns: repeat(3, 1fr); }
    .md-info-row { grid-template-columns: 72px 1fr; }
    .md-more { margin-top: 48px; }
}

/* ═══ 모임 목록 (/moim/list, moim/moim-list.html) ═══ */
.ml-head { margin-top: 36px; }
.ml-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.ml-head .desc { font-size: 14px; color: var(--sub); margin-top: 6px; }
.site .ml-clear { color: #495057; text-decoration: underline; text-underline-offset: 3px; }
.ml-chips { margin: 22px 0 0; }
.ml-chips .chip { flex: none; white-space: nowrap; }
.site a.chip { color: #495057; }
.site a.chip.on { color: #fff; }
.site section.ml-sec { margin-top: 36px; }
.ml-sec h2 .n { color: var(--sub); font-weight: 700; margin-left: 6px; font-size: .82em; }
.moim-card.ml-new .thumb { background: #fff; border: 1.5px dashed #dee2e6; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px; color: #495057; font-size: 14px; }
.moim-card.ml-new:hover .thumb { border-color: #adb5bd; }
.ml-new .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center;
    justify-content: center; font-size: 20px; font-weight: 700; color: var(--black); }
.ml-new small { font-size: 12px; color: var(--sub); }
.ml-pager { margin-top: 32px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.ml-pager a { min-width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #495057; padding: 0 10px; }
.ml-pager a:hover { background: var(--soft); }
.ml-pager a.on { background: var(--black); color: #fff; }
.ml-none { margin-top: 36px; padding: 44px 20px; text-align: center; border-radius: 16px; background: var(--soft); }
.ml-none .emoji { font-size: 32px; }
.ml-none p { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.ml-none .acts { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
    .ml-head { margin-top: 22px; }
    .ml-head h1 { font-size: 22px; }
    .ml-chips { margin: 16px -16px 0; }
    .site section.ml-sec { margin-top: 28px; }
    /* 첫 화면은 옆으로 넘기는 카드 줄이지만, 목록은 두 칸 격자 */
    .grid5.ml-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; gap: 18px 12px;
        overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; }
}

/* ═══ 회원 프로필 (/member/{profileId}, member/profile.html) ═══ */
.pf-head { margin-top: 40px; display: flex; align-items: center; gap: 40px; }
.pf-av { width: 128px; height: 128px; border-radius: 50%; background: #f1f3f5; border: 3px solid #dee2e6; flex: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: #495057; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-main { flex: 1; min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-name h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0; word-break: break-all; }
.pf-check { font-size: 18px; }
.pf-check.blue { color: #228be6; }
.pf-check.gold { color: #f59f00; }
.pf-stats { margin-top: 14px; display: flex; gap: 28px; }
.pf-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pf-stat b.lock { font-size: 15px; line-height: 33px; color: var(--sub); font-weight: 700; }
.pf-stat span { font-size: 13px; color: var(--sub); font-weight: 600; }
.pf-clubs { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.pf-club { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--soft);
    font-size: 13px; font-weight: 700; color: #495057; max-width: 100%; }
.pf-club .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.pf-club .role { color: #7a5c00; background: #fff3bf; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 800; flex: none; }
.pf-me { margin: 14px 0 0; font-size: 13px; color: var(--sub); }
.pf-tabs { margin-top: 36px; display: flex; gap: 28px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: #868e96; }
.site .pf-tabs a { padding: 12px 0; display: inline-flex; gap: 6px; }
.site .pf-tabs a.on { color: var(--black); box-shadow: inset 0 -2px 0 var(--black); }
.pf-tabs .n { font-weight: 600; color: #adb5bd; }
.pf-grid { margin-top: 24px; }
.pf-cell { position: relative; min-width: 0; }
.pf-cell.hidden .moim-card { opacity: .45; }
.pf-hidden-tag { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px;
    background: var(--black); color: #fff; }
.pf-lock, .pf-none, .pf-empty { margin-top: 24px; padding: 48px 20px; text-align: center; border-radius: 16px; background: var(--soft); }
.pf-empty { color: var(--sub); font-size: 14px; }
.pf-lock .ic, .pf-none .ic { font-size: 28px; }
.pf-lock b, .pf-none b { display: block; margin-top: 8px; font-size: 15px; }
.pf-lock p, .pf-none p { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
.pf-none { margin-top: 48px; }
.pf-none .btn { margin-top: 18px; }
.pf-more { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--sub); }

/* 월별 참석 막대 */
.pfm { margin-top: 28px; padding: 20px 22px 14px; border: 1px solid var(--line); border-radius: 16px; }
.pfm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pfm-head b { font-size: 15px; font-weight: 800; }
.pfm-head span { font-size: 13px; color: var(--sub); }
.pfm-head em { font-style: normal; color: var(--black); font-weight: 800; }
.pfm-bars { margin-top: 14px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 140px; }
.pfm-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.pfm-col .bar { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: #ffe066; }
.pfm-col .bar.zero { height: 3px !important; background: #e9ecef; border-radius: 2px; }
.pfm-col.now .bar:not(.zero) { background: var(--black); }
.pfm-col .v { font-size: 12px; font-weight: 800; color: #495057; min-height: 16px; }
.pfm-col .m { font-size: 11px; color: var(--sub); white-space: nowrap; }

@media (max-width: 640px) {
    .pfm { padding: 16px 12px 10px; }
    .pfm-bars { gap: 3px; height: 120px; }
    .pfm-col .m { font-size: 9px; letter-spacing: -.04em; }
    .pf-head { margin-top: 20px; gap: 18px; align-items: flex-start; }
    .pf-av { width: 84px; height: 84px; font-size: 30px; }
    .pf-name h1 { font-size: 21px; }
    .pf-stats { gap: 18px; margin-top: 10px; }
    .pf-stat b { font-size: 18px; }
    .pf-stat b.lock { font-size: 14px; line-height: 27px; }
    .pf-stat span { font-size: 12px; }
    .pf-club .nm { max-width: 170px; }
    .pf-tabs { margin-top: 24px; font-size: 15px; gap: 0; }
    .site .pf-tabs a { flex: 1; justify-content: center; }
    .grid5.pf-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; gap: 18px 12px;
        overflow: visible; scroll-snap-type: none; margin: 20px 0 0; padding: 0; }
}
