/* 공공머니 — 공통 스타일
   콘셉트: 통장과 영수증. 블루·화이트, 동전 금색 포인트, 확인 도장 빨강 */
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --paper: #f4f7fd;
  --paper-2: #e9effb;
  --card: #ffffff;
  --ink: #101a33;
  --ink-2: #47536b;
  --ink-3: #8691a8;
  --line: #e1e8f5;
  --bill: #1d4ed8;        /* 코발트 블루 (이름은 예전 그대로) */
  --bill-2: #173fb0;
  --bill-soft: #e8efff;
  --gold: #e9a800;        /* 동전 금색 */
  --gold-soft: #fff1c2;
  --stamp: #cf3f2c;       /* 확인 도장 */
  --blue: #2e63c7; --blue-soft: #e5edfa;
  --radius: 18px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --display: 'Paperozi', 'Pretendard Variable', sans-serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; letter-spacing: -.01em; word-break: keep-all; -webkit-font-smoothing: antialiased;
  background: var(--paper);
}
a { color: inherit; }
button, select { font: inherit; color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* 상단 바: 장부 머리줄처럼 겹선 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 3px double var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo-mark { display: block; width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(20, 40, 100, .18)); }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--bill); }

/* 첫 화면 */
.hero { padding: 34px 2px 22px; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--bill); border: 1.5px solid currentColor; border-radius: 6px; padding: 3px 9px; margin: 0 0 16px; letter-spacing: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(36px, 9.6vw, 50px); line-height: 1.16; font-weight: 800; letter-spacing: -.04em; margin: 0 0 16px; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--gold-soft) 58%, var(--gold-soft) 92%, transparent 92%); color: var(--bill); padding: 0 2px; }
.hero p { color: var(--ink-2); margin: 0; font-size: 17px; }

/* 영수증 */
.receipt {
  position: relative; background: var(--card); margin: 0 6px 22px; padding: 20px 22px 26px;
  font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 26px -14px rgba(20, 40, 100, .35);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 100% / 18px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 100% / 18px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat;
}
.r-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.r-head b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.r-head span { font-size: 13px; color: var(--ink-3); }
.receipt dl { margin: 10px 0 12px; }
.receipt dl div { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.receipt dt { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.receipt dl div::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.receipt dd { order: 2; margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
.receipt dd small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.receipt dl div:first-child dd { color: var(--bill); font-size: 24px; }
.r-foot { margin: 0; padding-top: 12px; border-top: 2px dashed var(--line); text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin: 0 0 14px; }
.card h2 { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; margin: 0 0 4px; }
.card .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-3); font-size: 15px; }

/* 찾기: 신청서 */
.finder h2 { margin-bottom: 16px; }

/* 단추: 눌리는 도장처럼 아래 그림자 */
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; border-radius: 14px; background: var(--bill); color: #fff; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.01em; padding: 16px 20px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--bill-2); transition: transform .12s, box-shadow .12s; }
.btn:hover { background: #2357e6; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bill-2); }
.btn.ghost { background: var(--paper-2); color: var(--ink); box-shadow: 0 3px 0 var(--line); font-family: var(--sans); font-size: 16px; font-weight: 700; }
.finder .btn { margin-top: 24px; }

/* 거래내역 목록 */
.ledger { list-style: none; margin: 4px -4px 0; padding: 0; }
.ledger li + li { border-top: 1px dashed var(--line); }
.ledger li a { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 13px 4px; text-decoration: none; border-radius: 10px; }
.ledger li a:hover { background: var(--paper); }
.ledger .n { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ledger li:nth-child(-n+3) .n { color: var(--gold); }
.ledger .t { min-width: 0; }
.ledger .t b { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; }
.ledger .t small { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.amt { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--bill); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.amt small { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.amt small:first-child { margin-right: 3px; }
.amt small:last-child { margin-left: 1px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid currentColor; }
.tag.cash { color: #a77a0c; }
.tag.loan { color: var(--blue); }
.tag.etc { color: var(--ink-3); }


/* 믿을 수 있는 이유 + 도장 */
.trust-card { position: relative; overflow: hidden; }
.stamp { position: absolute; right: 16px; top: 16px; width: 84px; height: 84px; border: 3px solid var(--stamp); border-radius: 50%; color: var(--stamp); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transform: rotate(-14deg); opacity: .85; }
.stamp span { font-size: 10px; font-weight: 700; }
.stamp b { font-family: var(--display); font-size: 20px; font-weight: 800; margin: 2px 0; }
.trust-card h2 { margin-bottom: 14px; padding-right: 90px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 12px 30px; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bill-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%231d4ed8' stroke-width='2'/%3E%3C/svg%3E") no-repeat center; }
.checks b { display: block; color: var(--ink); font-size: 16px; }

/* 지원금 상세 */
.crumb { font-size: 14px; color: var(--ink-3); padding: 20px 2px 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.detail-hero { padding-top: 14px; }
.detail-hero h1 { font-size: clamp(30px, 8vw, 40px); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1.5px solid currentColor; color: var(--bill); }
.badge.gray { color: var(--ink-3); }
.badge.coin { color: #a77a0c; }
.badge.blue { color: var(--blue); }
.glance { border-width: 1.5px; }
.glance dl { margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.glance dl div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.glance dl div:first-child { border-top: 0; }
.glance dt { color: var(--ink-3); font-size: 15px; font-weight: 600; }
.glance dd { margin: 0; font-weight: 600; }
.glance dd b { font-family: var(--display); color: var(--bill); font-size: 22px; font-weight: 800; }
.glance dd small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.card h3 { font-size: 16px; font-weight: 800; margin: 20px 0 8px; }
.doc { list-style: none; margin: 10px 0 0; padding: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc li { position: relative; margin: 0 0 6px; }
.doc .l1 { padding-left: 16px; color: var(--ink); }
.doc .l1::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.doc .l1.plain { padding-left: 0; } .doc .l1.plain::before { display: none; }
.doc .l2 { padding-left: 32px; } .doc .l2::before { content: '–'; position: absolute; left: 18px; color: var(--ink-3); }
.doc .l3 { padding-left: 48px; } .doc .l3::before { content: '·'; position: absolute; left: 36px; font-weight: 800; color: var(--ink-3); }
.doc .note { font-size: 14px; color: var(--ink-3); padding-left: 16px; } .doc .note::before { content: '※'; position: absolute; left: 0; }
.source { font-size: 13px; color: var(--ink-3); line-height: 1.6; padding: 4px 2px 0; }
.source a { color: var(--ink-2); }

.article h2 { margin-top: 22px; }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--ink-2); }

.footer { padding: 28px 0 48px; color: var(--ink-3); font-size: 13px; text-align: center; border-top: 3px double var(--line); margin-top: 24px; }
.footer p { margin: 0 auto 8px; max-width: 520px; line-height: 1.55; }
.footer a { margin: 0 6px; text-decoration: none; }
.footer a:hover { color: var(--ink); }

.ad { display: none; } /* 광고는 애드센스 자동 광고가 알아서 넣음 — 이 자리 표시 칸은 계속 숨김 */
.hidden { display: none !important; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid rgba(29, 78, 216, .4); outline-offset: 2px; }

/* 960px 아래: 로고 아래 메뉴 한 줄, 넘치면 옆으로 밀기 */
@media (max-width: 959px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .nav { width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 12px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 8px 10px; }
  .nav a[aria-current="page"] { background: var(--bill-soft); }
}
@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  .receipt { margin: 0 2px 20px; padding: 18px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 3D 아이콘 (Microsoft Fluent Emoji 3D, MIT) */
.i3d { display: block; flex: none; filter: drop-shadow(0 6px 8px rgba(20, 40, 100, .18)); }
.home-hero { position: relative; }
.hero-art { position: absolute; right: -4px; top: 18px; width: 150px; height: 150px; pointer-events: none; }
.hero-art .bag { position: absolute; right: 6px; top: 0; animation: float 5s ease-in-out infinite; }
.hero-art .c1 { position: absolute; left: 0; bottom: 6px; animation: float 4s ease-in-out -1s infinite; }
.hero-art .c2 { position: absolute; right: 0; bottom: -6px; animation: float 4.6s ease-in-out -2.2s infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-4deg); } }
.home-hero h1, .home-hero .kicker { position: relative; }
.with-ic { display: flex; align-items: center; gap: 10px; }
.checks li { padding-left: 50px; min-height: 40px; }
.checks li::before { display: none; }
.checks li .i3d { position: absolute; left: 0; top: 0; }
@media (max-width: 480px) {
  /* 휴대폰: 제목을 가리지 않게 칸 위 오른쪽(문구 옆 빈자리)으로 */
  .hero-art { position: relative; float: right; top: auto; right: auto; width: 104px; height: 82px; margin: -20px -8px 0 0; }
  .hero-art .bag { width: 78px; height: 78px; right: 4px; }
  .hero-art .c1 { width: 36px; height: 36px; bottom: -2px; }
  .hero-art .c2 { width: 26px; height: 26px; bottom: -8px; }
  .home-hero h1 { clear: both; }
}

/* 홈: 상황 카드 (한 번 누르면 끝) */
.life { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.life a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 14px 13px; transition: transform .2s var(--ease), border-color .15s, box-shadow .2s; }
.life a:hover { border-color: var(--bill); box-shadow: 0 10px 20px -16px rgba(29, 78, 216, .7); transform: translateY(-2px); }
.life a:active { transform: scale(.97); }
.life .i3d { margin-bottom: 8px; }
.life b { font-size: 17px; font-weight: 700; line-height: 1.35; }
.life small { font-size: 13px; color: var(--ink-3); }
.all-link { display: block; text-align: center; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--bill); text-decoration: none; }
.all-link:hover { text-decoration: underline; }

/* 찾기: 고르기 칸 세 개 */
.finder-bar { position: sticky; top: 61px; z-index: 10; background: rgba(244, 247, 253, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 0 12px; margin-bottom: 4px; }
.pickers { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.pickers label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.pickers select { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238691a8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 0 30px 0 12px; font-size: 16px; font-weight: 700; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; min-width: 0; }
.pickers select:focus-visible { outline: 3px solid rgba(29, 78, 216, .4); outline-offset: 1px; }

/* ---------- PC: 넓은 화면은 칸을 나눠서 (휴대폰은 위 그대로 한 줄) ---------- */
@media (min-width: 960px) {
  .wrap { max-width: 1120px; padding: 0 32px; }
  .top .wrap { height: 64px; }
  .footer.wrap { max-width: 760px; }

  .home-grid { display: grid; grid-template-columns: 1fr 1.08fr; grid-template-areas: "hero life" "receipt life" "pop pop" "trust trust"; column-gap: 40px; align-items: start; padding-top: 28px; }
  .home-hero { grid-area: hero; padding-top: 30px; }
  .home-hero h1 { font-size: 58px; }
  .home-hero p { font-size: 19px; }
  .hero-art { position: relative; float: right; top: auto; right: auto; width: 170px; height: 118px; margin: -36px 0 0 0; }
  .hero-art .bag { width: 116px; height: 116px; right: 18px; }
  .hero-art .c1 { width: 50px; height: 50px; }
  .hero-art .c2 { width: 34px; height: 34px; }
  .home-hero h1 { clear: both; }
  #finder { grid-area: life; padding: 30px 28px; }
  .receipt { grid-area: receipt; margin: 8px 0 26px; }
  .pop { grid-area: pop; }
  .trust-card { grid-area: trust; }
  .pop .ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
  .pop .ledger li + li { border-top: 0; }
  .pop .ledger li { border-bottom: 1px dashed var(--line); }
  .checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 30px 28px; }

  .find-grid { display: grid; grid-template-columns: 300px 1fr; grid-template-areas: "head head" "side main"; column-gap: 28px; align-items: start; }
  .f-head { grid-area: head; }
  .finder-bar { grid-area: side; position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .finder-bar .pickers { grid-template-columns: 1fr; gap: 14px; }
  .f-main { grid-area: main; }

  .detail-grid { display: grid; grid-template-columns: 1fr 360px; grid-template-areas: "head head" "main side"; column-gap: 28px; align-items: start; }
  .d-head { grid-area: head; }
  .d-main { grid-area: main; }
  .d-side { grid-area: side; position: sticky; top: 84px; }
  .detail-hero h1 { font-size: 44px; }
}

/* 신청 상태 표시 */
.st { display: inline-block; vertical-align: 2px; margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; line-height: 1.4; }
.st.urgent { background: #ffe9e6; color: var(--stamp); }
.st.open { background: var(--bill-soft); color: var(--bill); }
.st.soon { background: var(--gold-soft); color: #9a6a00; }
.st.always { background: var(--paper-2); color: var(--ink-3); }
.st.closed { background: var(--paper-2); color: var(--ink-3); text-decoration: line-through; }
.glance .st { margin: 0 0 6px; font-size: 13px; padding: 3px 8px; }

/* 검색 */
.search { display: flex; gap: 8px; margin-top: 22px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: 0 8px 22px -16px rgba(20, 40, 100, .35); }
.search:focus-within { border-color: var(--bill); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; outline: none; color: var(--ink); }
.search button { border: 0; border-radius: 11px; background: var(--bill); color: #fff; font-family: var(--display); font-weight: 800; font-size: 16px; padding: 10px 18px; cursor: pointer; }
.q-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.q-label input { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.q-label input:focus { border-color: var(--bill); }

/* 카드 머리줄 (제목 + 전체 보기) */
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head a { font-size: 14px; font-weight: 700; color: var(--bill); text-decoration: none; white-space: nowrap; }

/* 시·도, 시·군·구 고르기 */
.sido-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sido-grid a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 6px; transition: border-color .15s; }
.sido-grid a:hover { border-color: var(--bill); }
.sido-grid b { font-size: 15px; font-weight: 700; text-align: center; line-height: 1.3; }
.sido-grid small { font-size: 12px; color: var(--ink-3); }
.sido-grid.big { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.sido-grid.big a { padding: 18px 6px; }
.sido-grid.big b { font-size: 18px; }

/* 저장 단추 */
.save { display: flex; }
.save .heart { font-size: 18px; color: var(--stamp); }
.save[aria-pressed="true"] { background: #ffe9e6; color: var(--stamp); box-shadow: 0 3px 0 #f6c9c2; }

/* 계산기 */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-3); margin-bottom: 14px; }
.field select, .field input { height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 14px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); outline: none; }
.field select:focus, .field input:focus { border-color: var(--bill); }
.calc-out { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 4px; }
.big-num { font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--bill); line-height: 1.1; }
.big-num small { font-size: 22px; margin-left: 2px; }
.lines { list-style: none; margin: 12px 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.lines li span { color: var(--ink-3); font-size: 13px; }
.lines li em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--ink-3); }
.lines li.ok em { color: var(--bill); }
.calc .btn { margin-top: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 8px; }
.tbl th, .tbl td { text-align: right; padding: 9px 6px; border-bottom: 1px dashed var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.sched td:first-child { color: var(--ink-3); font-weight: 600; }
.sched td:last-child { font-weight: 700; }

/* 홈 공지 팝업: 휴대폰은 아래에서 올라오는 판, 넓은 화면은 가운데 카드 */
.notice { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(16, 26, 51, .42); animation: notice-bg .2s ease-out; }
.notice[hidden] { display: none; }
.notice-card { position: relative; width: 100%; max-width: 440px; background: var(--card); border-radius: 24px 24px 0 0; padding: 28px 24px calc(16px + env(safe-area-inset-bottom)); text-align: center; box-shadow: 0 -10px 40px rgba(16, 26, 51, .18); animation: notice-up .28s cubic-bezier(.2, .8, .2, 1); }
.notice-card .i3d { display: block; margin: 0 auto 6px; }
.notice-badge { display: inline-block; margin: 0 0 6px; padding: 4px 12px; border-radius: 99px; background: var(--bill-soft); color: var(--bill); font-size: 13px; font-weight: 800; }
.notice-card h2 { margin: 0 0 10px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.notice-card ul { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }
.notice-card li { position: relative; padding: 9px 0 9px 22px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.notice-card li::before { content: '✓'; position: absolute; left: 2px; top: 9px; color: var(--bill); font-weight: 800; }
.notice-card .btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.notice-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.notice-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.notice-foot button { border: 0; background: none; padding: 10px 4px; font: inherit; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.notice-foot button:last-child { font-weight: 700; color: var(--ink-2); }
@media (min-width: 640px) {
  .notice { align-items: center; padding: 24px; }
  .notice-card { border-radius: 24px; padding-bottom: 16px; box-shadow: 0 20px 60px rgba(16, 26, 51, .25); }
}
@keyframes notice-bg { from { opacity: 0; } }
@keyframes notice-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .notice, .notice-card { animation: none; } }
.ledger li.empty { display: grid; gap: 4px; padding: 28px 8px; text-align: center; color: var(--ink-3); font-size: 15px; }
.ledger li.empty b { color: var(--ink); font-size: 17px; }

/* 읽을거리: 카드 대신 읽기 좋은 글 한 줄기 (폭 640px, 넉넉한 줄 간격) */
.guide { max-width: 640px; margin: 0 auto; padding-bottom: 24px; }
.guide p, .guide li { text-wrap: pretty; }
.g-head { text-align: center; padding: 28px 0 8px; }
.g-head .i3d { display: block; margin: 0 auto 10px; }
.g-head h1 { margin: 0; font-family: var(--display); font-size: clamp(28px, 6vw, 40px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; text-wrap: balance; }
.g-head h1 small { display: block; margin-top: 8px; font-family: var(--sans); font-size: clamp(16px, 3.6vw, 20px); font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.g-meta { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.g-sum { margin: 28px 0 8px; padding: 20px 22px; border-radius: var(--radius); background: var(--bill); color: #fff; }
.g-sum-t { margin: 0 0 8px; font-size: 13px; font-weight: 800; opacity: .75; letter-spacing: .02em; }
.g-sum ul { margin: 0; padding: 0; list-style: none; }
.g-sum li { position: relative; padding: 7px 0 7px 18px; font-size: 16px; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, .18); }
.g-sum li:first-child { border-top: 0; }
.g-sum li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: #ffd34d; }
.g-sum em { font-style: normal; color: #ffd34d; font-weight: 800; }
.g-sec { padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 32px; }
.g-sum + .g-sec { border-top: 0; margin-top: 8px; }
.g-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.g-sec h2 span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--bill-soft); color: var(--bill); font-size: 15px; }
.g-sec h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 800; }
.g-sec p { margin: 0 0 14px; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.g-box { margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: var(--bill-soft); }
.g-box-t { margin: 0 0 10px !important; font-weight: 800; color: var(--bill) !important; font-size: 15px !important; }
.g-box ol { margin: 0; padding-left: 22px; }
.g-box li { margin: 8px 0; line-height: 1.6; }
.g-box li::marker { color: var(--bill); font-weight: 800; }
.g-box small { color: var(--ink-2); font-size: 14px; }
.g-price { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.g-price div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px dashed var(--line); }
.g-price div:first-child { border-top: 0; }
.g-price dt { font-weight: 600; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.g-price dt small { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.g-price dd { margin: 0; text-align: right; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--bill); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-price dd small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.g-sec .g-note { font-size: 15px; color: var(--ink-3); line-height: 1.7; }
.g-sec .g-call { display: inline-flex; gap: 6px; margin: 6px 0 0; padding: 8px 14px; border-radius: 99px; background: #f1f4fa; font-size: 14px; color: var(--ink-2); }
.g-sec .g-call b { color: var(--ink); }
.g-cta { margin: 40px 0 24px; padding: 24px 22px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--card); text-align: center; }
.g-cta p { margin: 0 0 16px; line-height: 1.7; color: var(--ink-2); }
.g-cta b { color: var(--ink); }
.guide .card { margin-top: 32px; }
.guide-note { text-align: center; font-size: 13px; }
.guide-list .t small { white-space: normal; }
@media (max-width: 520px) { .g-sec p br, .g-box br { display: none; } .g-sec h2 { font-size: 23px; } }
.g-box small { display: block; margin-top: 2px; }
/* 상세: 자주 묻는 것 */
.qa dl { margin: 0; }
.qa dl div { padding: 14px 0; border-top: 1px dashed var(--line); }
.qa dl div:first-child { border-top: 0; padding-top: 4px; }
.qa dt { font-weight: 800; margin-bottom: 4px; }
.qa dt::before { content: 'Q. '; color: var(--bill); }
.qa dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
