/* ───────────────────────── 복주머니 v2 ─────────────────────────
   모바일 우선 · 한 화면 한 가지 일 · 브랜드 컬러(코랄 레드 + 골드) 유지 */

:root {
    --brand: #F04452;
    --brand-strong: #D62F3E;
    --brand-soft: #FFF0F1;
    --brand-line: #FFD3D7;
    --gold: #F5B82E;
    --gold-soft: #FFF6DD;

    --ink: #191F28;
    --ink-2: #4E5968;
    --ink-3: #8B95A1;
    --line: #E5E8EB;
    --bg: #F2F4F6;
    --surface: #FFFFFF;
    --surface-2: #F9FAFB;

    --blue: #3182F6;
    --blue-soft: #E8F3FF;
    --green: #0CA678;
    --green-soft: #E6FCF5;
    --violet: #7048E8;
    --violet-soft: #F3F0FF;

    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 2px 10px rgba(0, 23, 51, 0.06);
    --app-width: 520px;
    --topbar-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* 기존 복지 소식 글(모달)이 쓰는 변수 */
    --primary: var(--brand);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(240, 68, 82, 0.45); outline-offset: 2px; border-radius: 8px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 앱 레이아웃 ── */
.app {
    max-width: var(--app-width);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--surface);
    position: relative;
}

@media (min-width: 600px) {
    .app { box-shadow: 0 0 0 1px var(--line); }
}

.screen { display: none; min-height: 100vh; padding-bottom: 32px; }
.screen.is-active { display: block; animation: screen-in .25s ease; }

@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 상단 바 ── */
.topbar {
    position: sticky; top: 0; z-index: 20;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px 0 16px;
    background: #fff;
}
.topbar.has-line { box-shadow: 0 1px 0 var(--line); }
.topbar-title { flex: 1; font-size: 17px; font-weight: 700; text-align: center; }

.brand { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { font-size: 22px; }
.brand-spacer { flex: 1; }

.icon-btn {
    width: 40px; height: 40px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--ink);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 24px; height: 24px; }

.text-btn { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.text-btn:hover { background: var(--surface-2); }
.text-btn.is-brand { color: var(--brand); }

.saved-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; font-weight: 700; color: var(--ink-2);
    padding: 7px 12px; border-radius: 999px; background: var(--surface-2);
}
.saved-pill svg { width: 16px; height: 16px; color: var(--gold); }

/* ── 버튼 ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 700;
    transition: background .15s, transform .1s, opacity .15s;
}
.btn:active { transform: scale(0.98); }
.btn-lg { width: 100%; min-height: 56px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-primary:disabled { background: #F6B3B9; cursor: default; transform: none; }
.btn-secondary { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary:hover { background: #F2F4F6; }
.btn-soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn-soft:hover { background: #FFE3E6; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ── 홈: 히어로 ── */
.hero { padding: 20px 20px 28px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--green);
    background: var(--green-soft); padding: 5px 10px; border-radius: 999px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 {
    margin-top: 14px;
    font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-sub { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.hero-sub strong { color: var(--ink); font-weight: 700; }

.guide { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 20px; }
.mascot { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, 0.12); }
.mascot.sm { width: 40px; height: 40px; }
.mascot.lg { width: 96px; height: 96px; }

.bubble {
    position: relative;
    background: var(--gold-soft);
    border-radius: 4px 16px 16px 16px;
    padding: 11px 14px;
    font-size: 15px; color: var(--ink);
}
.bubble b { color: #B7791F; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; list-style: none; }
.trust li { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.trust li::before {
    content: ''; width: 14px; height: 14px; flex: none;
    background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230CA678' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* ── 홈: 블록 ── */
.block { padding: 24px 20px; border-top: 10px solid var(--bg); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.block-title { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.block-head .block-title { margin-bottom: 0; }
.block > .block-title { margin-bottom: 14px; }
.block-desc { font-size: 14px; color: var(--ink-3); margin: -8px 0 14px; }

/* ── 검색창 ── */
.searchbar {
    display: flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 6px 0 14px;
    background: var(--surface-2);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--line);
}
.searchbar:focus-within { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.searchbar svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; }
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbar .btn { min-height: 40px; }
.searchbar.sm { height: 44px; border-radius: 12px; }
.topbar .searchbar { flex: 1; height: 42px; border-radius: 12px; }

.keyword-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.keyword {
    font-size: 14px; font-weight: 600; color: var(--ink-2);
    padding: 7px 12px; border-radius: 999px; background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
}
.keyword:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-line); background: var(--brand-soft); }

/* ── 분야 그리드 ── */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.category-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 4px; border-radius: 14px;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.category-tile:hover { background: var(--surface-2); }
.category-tile .emoji {
    width: 48px; height: 48px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; background: var(--surface-2);
}

/* ── 복지 소식 ── */
.article-list { display: flex; flex-direction: column; }
.article-item {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.article-item:last-child { border-bottom: 0; }
.article-item .vol {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-soft);
}
.article-item .text { flex: 1; min-width: 0; }
.article-item .title { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.article-item .desc {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 2px; font-size: 13px; color: var(--ink-3);
}

/* ── 설문 ── */
.progress { flex: 1; height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .3s ease; }
.progress-text { min-width: 36px; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink-3); }

.survey { padding: 12px 20px 120px; }

.question { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.question h2 { font-size: 22px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; }
.question p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-tile {
    display: flex; align-items: center; gap: 10px;
    min-height: 64px; padding: 0 16px;
    border-radius: 14px; background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 17px; font-weight: 700; text-align: left;
    transition: box-shadow .15s, background .15s;
}
.option-tile .emoji { font-size: 22px; }
.option-tile:hover { background: #F2F4F6; }
.option-tile.is-compact { min-height: 56px; padding: 0 14px; font-size: 16px; }
.option-tile[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-strong); }

.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-row {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 14px 16px; border-radius: 14px;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .15s, background .15s;
}
.option-row:hover { background: #F2F4F6; }
.option-row .emoji { font-size: 24px; width: 32px; text-align: center; flex: none; }
.option-row .text { flex: 1; min-width: 0; }
.option-row .label { display: block; font-size: 16px; font-weight: 700; }
.option-row .desc { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-3); }
.option-row .check {
    width: 24px; height: 24px; flex: none; border-radius: 50%;
    box-shadow: inset 0 0 0 2px #D1D6DB;
    display: flex; align-items: center; justify-content: center; color: transparent;
}
.option-row .check svg { width: 14px; height: 14px; }
.option-row[aria-checked="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.option-row[aria-checked="true"] .check { background: var(--brand); box-shadow: none; color: #fff; }

.region-label { margin: 22px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink-2); scroll-margin-top: calc(var(--topbar-h) + 12px); }
.region-label:first-child { margin-top: 0; }
.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-chip {
    min-height: 46px; padding: 6px 4px; border-radius: 12px;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
    font-size: 15px; font-weight: 600;
}
.choice-chip:hover { background: #F2F4F6; }
.choice-chip[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-strong); font-weight: 700; }

.bottom-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    max-width: var(--app-width); margin: 0 auto;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 28%);
}

/* ── 로딩 ── */
.loading { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; }
.loading h2 { margin-top: 20px; font-size: 21px; font-weight: 800; }
.loading p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.bounce { animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.loading-steps { list-style: none; margin-top: 28px; width: 100%; max-width: 300px; text-align: left; }
.loading-steps li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; font-size: 15px; color: var(--ink-3);
    transition: color .2s;
}
.loading-steps li::before {
    content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%;
    box-shadow: inset 0 0 0 2px #D1D6DB;
}
.loading-steps li.is-done { color: var(--ink); font-weight: 600; }
.loading-steps li.is-done::before {
    box-shadow: none;
    background: var(--green) no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* ── 결과 요약 ── */
.summary { padding: 8px 20px 20px; }
.summary-cond { display: flex; flex-wrap: wrap; gap: 6px; }
.summary-cond span {
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px 10px; border-radius: 999px;
}
.summary-title { margin-top: 14px; font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -0.035em; }
.summary-title .count { color: var(--brand); }
.summary-sub { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.summary-scope { margin-top: 10px; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 8px 4px 8px 12px; }
.summary-scope .text-btn { padding: 4px 8px; font-size: 14px; }
.summary-actions { display: flex; gap: 8px; margin-top: 16px; }
.summary-actions .btn { flex: 1; }

/* ── 필터 ── */
.filters {
    position: sticky; top: var(--topbar-h); z-index: 15;
    background: #fff; padding: 4px 0 12px;
    box-shadow: 0 1px 0 var(--line);
}
.segmented { display: flex; gap: 4px; margin: 0 20px; padding: 4px; background: var(--bg); border-radius: 12px; }
.segmented button {
    flex: 1; min-height: 38px; border-radius: 9px;
    font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.segmented .n { margin-left: 3px; font-weight: 600; color: var(--ink-3); }

.chip-scroll {
    display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
    flex: none; display: inline-flex; align-items: center; gap: 4px;
    min-height: 36px; padding: 0 12px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--ink-2);
    background: #fff; box-shadow: inset 0 0 0 1px var(--line);
    white-space: nowrap;
}
.filter-chip .n { color: var(--ink-3); font-weight: 500; }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filter-chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.7); }

.list-search { padding: 14px 16px 0; background: var(--bg); }
.list-search .searchbar { background: #fff; }

#screen-search, #screen-saved { background: var(--bg); }
#screen-search .chip-scroll { background: #fff; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }

/* ── 혜택 카드 ── */
.list { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 4px; background: var(--bg); }
.list-note { padding: 14px 20px 0; font-size: 14px; color: var(--ink-3); background: var(--bg); }

.card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-icon {
    width: 40px; height: 40px; flex: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; background: var(--surface-2);
}
.card-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.card-agency { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge { flex: none; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.badge-central { color: var(--blue); background: var(--blue-soft); }
.badge-public { color: var(--violet); background: var(--violet-soft); }
.badge-local { color: var(--green); background: var(--green-soft); }
.badge-youth { color: #C2410C; background: #FFF1E6; }

.save-btn {
    width: 40px; height: 40px; flex: none; margin: -6px -8px -6px 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: #C5CCD3;
}
.save-btn svg { width: 22px; height: 22px; }
.save-btn:hover { background: var(--surface-2); }
.save-btn[aria-pressed="true"] { color: var(--gold); }

.card-title { margin-top: 12px; font-size: 17px; line-height: 1.45; font-weight: 700; letter-spacing: -0.02em; }
.card-deadline { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 6px; }
.card-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.card-tags span { font-size: 12px; font-weight: 700; color: var(--brand-strong); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions .btn { flex: 1; }

.more-wrap { padding: 6px 16px 20px; background: var(--bg); }

.empty { padding: 48px 24px; text-align: center; background: var(--bg); }
.empty img { margin: 0 auto 14px; opacity: .9; }
.empty h3 { font-size: 18px; font-weight: 800; }
.empty p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.empty .btn { margin-top: 16px; }

/* ── 결과 하단 ── */
.cta-card {
    margin: 0 16px; padding: 20px; border-radius: var(--radius);
    background: linear-gradient(135deg, #FFF6DD 0%, #FFE8D6 100%);
}
.cta-card h3 { font-size: 18px; font-weight: 800; }
.cta-card p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.cta-card .btn { margin-top: 14px; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.result-tail { background: var(--bg); padding: 10px 0 24px; }

/* ── 푸터 ── */
.footer {
    max-width: var(--app-width); margin: 0 auto;
    padding: 28px 20px calc(36px + var(--safe-bottom));
    background: var(--surface-2); color: var(--ink-3); font-size: 13px; line-height: 1.7;
}
.footer strong { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 10px; }
.footer-links button { font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
body[data-screen="survey"] .footer,
body[data-screen="loading"] .footer { display: none; }

/* ── 바텀시트 / 모달 (기존 복지 소식 글 포함) ── */
.sheet-backdrop,
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: none; align-items: flex-end; justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}
.sheet-backdrop.show,
.modal-overlay.show { display: flex; animation: fade-in .2s ease; }

.sheet,
.modal-content {
    position: relative;
    width: 100%; max-width: var(--app-width); max-height: 88vh; overflow-y: auto;
    background: #fff; border-radius: 22px 22px 0 0;
    padding: 12px 22px calc(28px + var(--safe-bottom));
    animation: sheet-up .25s ease;
}
.sheet-handle { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: var(--line); }
.sheet h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }

.modal-close {
    position: sticky; top: 0; float: right; z-index: 2;
    width: 40px; height: 40px; margin: 0 -10px 0 8px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    font-size: 26px; line-height: 1; color: var(--ink-3);
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-body { padding-top: 14px; }
.modal-body h2 { font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 14px; }
.modal-body h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.modal-body p, .modal-body li { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.modal-body p + p { margin-top: 10px; }
.modal-body ul, .modal-body ol { padding-left: 20px; margin: 8px 0; }
.modal-body a { color: var(--brand); font-weight: 700; }
.modal-body strong { color: var(--ink); }
.modal-body li + li { margin-top: 4px; }

/* 복지 소식 글 */
.ns-badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.modal-body .ns-lead { font-size: 16px; color: var(--ink); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.modal-body .ns-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); background: var(--gold-soft); border-radius: 12px; padding: 12px 14px; }
.modal-body .ns-caution { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.ns-source { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.modal-body .ns-source p { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.ns-source ul { list-style: none; padding: 0; margin: 6px 0 0; }
.modal-body .ns-source li { font-size: 13px; line-height: 1.6; }
.modal-body .ns-source a { font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

@media (min-width: 600px) {
    .sheet-backdrop, .modal-overlay { align-items: center; padding: 24px; }
    .sheet, .modal-content { border-radius: 22px; max-height: 84vh; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ── 토스트 ── */
.toast {
    position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); z-index: 200;
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    max-width: calc(100% - 40px);
    padding: 12px 18px; border-radius: 12px;
    background: rgba(25, 31, 40, 0.92); color: #fff; font-size: 15px; font-weight: 600;
    transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 인쇄 (결과 PDF 저장) ── */
.print-report { display: none; }

@media print {
    body { background: #fff; }
    .app, .footer, .toast, .sheet-backdrop, .modal-overlay { display: none !important; }
    .print-report { display: block; padding: 0 4mm; color: #000; font-size: 11pt; }
    .print-report h1 { font-size: 18pt; margin-bottom: 4pt; }
    .print-report .meta { color: #555; margin-bottom: 12pt; }
    .print-report ol { padding-left: 18pt; }
    .print-report li { margin-bottom: 8pt; break-inside: avoid; }
    .print-report .name { font-weight: 700; }
    .print-report .sub { color: #555; font-size: 9.5pt; }
    .print-report .url { color: #1a56db; font-size: 9pt; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
