@font-face{font-family:"Yogin Display";src:url(/assets/fonts/display-55cae447.woff2) format("woff2");font-weight:400;font-display:swap}
/* 요긴박스 — 배치는 생활 계산기 사이트에서 흔한 모바일 구성(머리·검색·인기·오늘·분야 타일), 색은 요긴박스 초록·노랑 */
:root {
  --bg: #fbfbf7;
  --card: #ffffff;
  --surface: #f2f1ea;
  --surface-2: #e8e6dc;
  --line: #e4e2d6;
  --ink: #1c1f1a;
  --ink-2: #5e6157;
  --muted: #8a8d82;
  --brand: #2f8f3a;
  --brand-ink: #23722d;
  --brand-soft: #e6f2e5;
  --yellow: #f5c518;
  --yellow-soft: #fff6cf;
  --yellow-ink: #6e5600;
  --bad: #d14b3a;
  --input: #fbfbf7;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --display: "Yogin Display", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131511; --card: #1b1e19; --surface: #23271f; --surface-2: #2c3127; --line: #2f342b; --ink: #ecefe6; --ink-2: #b4b8ab;
    --muted: #8b9083; --brand: #6cc574; --brand-ink: #8ad690; --brand-soft: #1f3320; --yellow: #e9c045; --yellow-soft: #3a3318;
    --yellow-ink: #f1d77f; --bad: #f08a72; --input: #161914; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131511; --card: #1b1e19; --surface: #23271f; --surface-2: #2c3127; --line: #2f342b; --ink: #ecefe6; --ink-2: #b4b8ab;
  --muted: #8b9083; --brand: #6cc574; --brand-ink: #8ad690; --brand-soft: #1f3320; --yellow: #e9c045; --yellow-soft: #3a3318;
  --yellow-ink: #f1d77f; --bad: #f08a72; --input: #161914; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 40; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
h1 { font-size: 28px; font-weight: 800; line-height: 1.3; letter-spacing: -.03em; margin: 0 0 6px; }
h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 30px 0 10px; line-height: 1.4; }
h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }

/* 아이콘 상자: --c 색을 옅게 깐 바탕 */
.tile-ico, .pop-ico, .rail-ico, .soon-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.tile-ico { width: 34px; height: 34px; border-radius: 10px; }
.tile-ico .ico { width: 19px; height: 19px; }

/* 머리 */
.site-header { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-text b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .01em; }
.logo-text small { display: none; }
.head-tools { display: flex; align-items: center; gap: 6px; }
.head-link { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.head-link:hover, .head-link[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.icon-btn, .menu summary { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.menu summary { border: 0; background: transparent; }
.icon-btn:hover { background: var(--surface); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger i { display: block; width: 22px; height: 2.4px; border-radius: 2px; background: var(--ink); }

/* 전체 메뉴 시트 (왼쪽 분야 레일 + 오른쪽 목록) */
.menu[open] .menu-sheet { position: fixed; inset: 0; z-index: 50; background: var(--card); display: flex; flex-direction: column; }
.menu:not([open]) .menu-sheet { display: none; }
.sheet-top { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-top .search { flex: 1; margin: 0; }
.sheet-body { flex: 1; display: grid; grid-template-columns: 84px minmax(0, 1fr); min-height: 0; }
.rail { background: var(--surface); overflow-y: auto; padding: 6px 0; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; text-decoration: none; color: var(--ink-2); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; }
.rail a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.rail-ico { width: 30px; height: 30px; border-radius: 9px; }
.rail-ico .ico { width: 17px; height: 17px; }
.sheet-list { overflow-y: auto; padding: 4px 16px 40px; }
.home-row { display: block; padding: 12px 0; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sheet-list section { scroll-margin-top: 8px; }
.sheet-list h3 { color: var(--c); font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; }
.sheet-list h3 b { font-size: 12px; background: color-mix(in srgb, var(--c) 12%, var(--card)); border-radius: 999px; padding: 0 8px; }
.sheet-list ul, .cat-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li a { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; }
.sheet-list li a span { flex: 1; }
.sheet-list em, .cat-list em, .search-res em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--yellow-ink); background: var(--yellow-soft); border-radius: 6px; padding: 1px 6px; }
.chev { width: 16px; height: 16px; color: var(--muted); }

/* 검색 */
.search { display: flex; align-items: center; gap: 10px; height: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; color: var(--muted); margin: 16px 0 0; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); min-width: 0; height: 100%; }
.search:focus-within { border-color: var(--brand); }
.search-res { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.sheet-top + .search-res { margin: 0 16px; }
.search-res a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.search-res a:hover { background: var(--surface); }
.search-res .none { padding: 9px 10px; color: var(--muted); font-size: 14px; }

/* 본문 + 사이드 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 34px; padding-top: 20px; padding-bottom: 44px; align-items: start; }
.layout > main { min-width: 0; }
.side { display: grid; gap: 16px; position: sticky; top: 84px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 10px; }
.side-card h2 { font-size: 15.5px; margin: 0 0 8px 4px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.side-list li a:hover { background: var(--surface); }
.side-list .no { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-list li:nth-child(-n+3) .no { background: var(--yellow); color: #3d3000; }
.side-list .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .go { color: var(--muted); }
.side-new { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 6px 4px; border-radius: 10px; }
.side-new:hover { background: var(--surface); }
.side-new b { display: block; font-size: 15px; }
.side-new > span:last-child { display: block; }
.side-new > span:last-child span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.side-new .side-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); }

/* 첫 화면 */
.home-head h1 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 0; margin: 4px 0 2px; }
.home-head p { color: var(--ink-2); margin: 0; font-size: 15px; }
.home-sec { margin-top: 26px; }
.home-sec h2 { margin: 0 0 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sec-head h2 { margin: 0; }
.sec-head span, .sec-head a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.sec-head a { color: var(--brand-ink); font-weight: 600; }
.pop { list-style: none; margin: 0; padding: 0 0 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 4px; border-bottom: 1px solid var(--line); }
.pop a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 12.5px; text-align: center; line-height: 1.3; }
.pop-ico { width: 44px; height: 44px; border-radius: 14px; }
.pop-ico .ico { width: 24px; height: 24px; }
.pop b { color: var(--muted); font-weight: 700; margin-right: 1px; }
.today-banner { position: relative; overflow: hidden; border-radius: 18px; background: var(--brand); color: #fff; padding: 22px 20px 20px; min-height: 150px; }
.today-banner .tb-art { position: absolute; right: -6px; top: 8px; width: 210px; }
.today-banner p { margin: 0; font-size: 14px; opacity: .9; }
.today-banner b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; position: relative; }
.today-banner span { display: inline-block; font-size: 14px; font-weight: 700; background: var(--yellow); color: #3d3000; border-radius: 999px; padding: 2px 10px; position: relative; }
.today-banner a { position: absolute; inset: 0; }
.disc { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.disc a { display: block; text-decoration: none; color: var(--ink); }
.d-art { position: relative; display: flex; align-items: center; justify-content: center; height: 118px; border-radius: 16px; background: color-mix(in srgb, var(--c) 13%, var(--card)); color: var(--c); margin-bottom: 8px; }
.d-art em { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--card); border-radius: 999px; padding: 2px 9px; }
.ico.big { width: 46px; height: 46px; stroke-width: 1.5; }
.disc b { display: block; font-size: 15px; line-height: 1.4; }
.disc small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cats a { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.cats a:hover { border-color: var(--brand); }
.cats b { flex: 1; font-size: 15px; }
.cats small { color: var(--muted); font-size: 13px; }
.cat-list li a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15.5px; }
.cat-list li a span { flex: 1; }
.cat-list.plain li a { padding-left: 2px; }
.soon-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.soon-ico { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 10px; }
.soon-ico .ico { width: 34px; height: 34px; }
.soon-box .lead { margin: 0 auto; }
.soon-tag { display: inline-block; font-weight: 800; color: var(--yellow-ink); background: var(--yellow-soft); border-radius: 999px; padding: 3px 14px; margin: 14px 0 4px; }
.soon-box p:last-child { color: var(--muted); font-size: 14px; }

/* 위치·머리 */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.page-head { margin: 0; }
.lead { color: var(--ink-2); margin: 0; font-size: 15.5px; max-width: 46em; }
.tab { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px 3px 8px; margin: 0 0 8px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.tab .ico { width: 15px; height: 15px; }
.stamp { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 10px 0 0; }
.stamp span { font-size: 12px; color: var(--ink-2); background: var(--surface); border-radius: 6px; padding: 1px 8px; }
.jump { display: flex; gap: 8px; margin: 14px 0 0; overflow-x: auto; padding-bottom: 2px; }
.jump a { flex: none; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { color: var(--brand-ink); border-color: var(--brand); }
.head-sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0 18px; }
.disclosure { background: var(--yellow-soft); border-left: 4px solid var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 17px; line-height: 1.5; border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; }

/* 계산 카드: 단계 카드 + 테두리에 걸친 라벨 */
.calc-card { background: transparent; border: 0; padding: 0; }
.calc-card form { display: grid; gap: 14px; }
.calc-card form > fieldset:not(.chips), .calc-card form > .grid, .calc-card form > .field, .calc-card form > .check { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; min-width: 0; }
legend { float: left; width: 100%; font-weight: 800; font-size: 16px; padding: 0; margin: 0 0 14px; color: var(--ink); }
legend + * { clear: both; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > .lb { position: relative; z-index: 1; align-self: flex-start; max-width: calc(100% - 20px); margin: 0 10px -13px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--card); padding: 0 5px; line-height: 1.35; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.45; padding-left: 4px; }
.inp { position: relative; display: flex; align-items: center; }
.inp input, .field select, .field input[type="text"], .field input[type="date"] { width: 100%; }
input[type="date"] { appearance: none; -webkit-appearance: none; }
input[type="text"], input[type="date"], select { font: inherit; font-size: 17px; color: var(--ink); background: var(--input); border: 1.3px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; height: 56px; min-width: 0; }
.inp input { padding-right: 44px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.inp i { position: absolute; right: 14px; font-style: normal; color: var(--ink-2); font-size: 15px; pointer-events: none; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check, .field.check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; background: var(--card); }
.calc-card form .chips:not(.field) { background: var(--card); }
.chips legend { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.chips.field { border: 0; padding: 0; background: transparent; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.chips.field legend { font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.chip { position: relative; flex: 1 1 auto; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; text-align: center; border-radius: 999px; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--card); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), inset 0 0 0 1.5px var(--brand); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.calc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { flex: 1; font: inherit; font-size: 15.5px; font-weight: 700; border-radius: 999px; padding: 12px 18px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }
.btn:hover { background: var(--brand-ink); }
.btn.ghost { flex: 0 0 auto; background: var(--surface-2); color: var(--ink-2); }
.toast { font-size: 14px; color: var(--brand-ink); margin: 8px 0 0; }

/* 결과 */
.result { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; }
.r-empty { color: var(--muted); margin: 0; }
.r-big { background: var(--brand-soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.r-label { font-size: 14px; color: var(--brand-ink); font-weight: 700; }
.r-big strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-sub { font-size: 13.5px; color: var(--ink-2); }
.r-rows { margin: 0; display: grid; }
.r-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.r-rows dt { color: var(--ink-2); min-width: 5.5em; }
.r-rows dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.r-rows .total dt, .r-rows .total dd { font-size: 17px; color: var(--ink); }
.r-note { font-size: 14px; color: var(--ink-2); background: var(--surface); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.r-note.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.r-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.r-table caption { text-align: left; font-size: 13px; color: var(--muted); padding: 0 0 6px; }
.r-table th, .r-table td { white-space: normal; overflow-wrap: normal; word-break: keep-all; padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.r-table th:first-child, .r-table td:first-child { text-align: left; min-width: 6.5em; }
.r-table th.l, .r-table td.l { text-align: left; }
.r-table thead th { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.r-table tr.best td { color: var(--brand-ink); font-weight: 700; background: var(--brand-soft); }
.r-table small { font-weight: 400; color: var(--muted); }
.r-table small.bad { color: var(--bad); }
.r-sched { margin-top: 12px; }
.r-sched summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); padding: 6px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: var(--yellow); color: #3d3000; margin-left: 4px; vertical-align: 1px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.good { color: var(--brand-ink); }
.bad { color: var(--bad); }

/* 이런 페이지도 있어요 */
.more { margin-top: 26px; }
.mini-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-cards a { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.mini-cards a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-cards .tile-ico { width: 28px; height: 28px; border-radius: 8px; }
.mini-cards .tile-ico .ico { width: 16px; height: 16px; }
.more-rest { margin-top: 8px; }
.more-rest summary { list-style: none; cursor: pointer; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.more-rest summary::-webkit-details-marker { display: none; }
.more-rest[open] summary { margin-bottom: 8px; }

/* 접는 묶음: 어떻게 계산하나요 / 자주 묻는 질문 / 자료 출처 */
.fold { border-bottom: 1px solid var(--line); margin-top: 6px; }
.fold > summary, .faq > h2 { list-style: none; cursor: pointer; font-size: 18px; font-weight: 800; padding: 18px 28px 18px 0; position: relative; margin: 0; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after, .faq details summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.fold[open] > summary::after, .faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.fold .guide, .fold .refs { margin: 0 0 18px; }
.faq { margin-top: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.faq > h2 { cursor: default; }
.faq > h2 b { font-size: 13px; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 1px 8px; vertical-align: 3px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 26px 13px 0; list-style: none; position: relative; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }

/* 설명글·정보 */
.guide, .refs, .prose, .info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 18px; margin-top: 16px; }
.guide p, .guide li, .prose p, .prose li, .info p, .info li { color: var(--ink-2); }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 4px 0; }
.formula { background: var(--surface); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--ink); overflow-x: auto; }
.formula p { margin: 3px 0; color: var(--ink); }
.example { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; margin: 16px 0; }
.example p { margin: 4px 0; }
.caution { background: var(--yellow-soft); border-radius: 10px; padding: 12px 14px; color: var(--yellow-ink); }
.caution p, .caution li { color: var(--yellow-ink); }
.guide table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
.guide th, .guide td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.guide th { color: var(--muted); font-weight: 700; font-size: 13px; }
.refs ul { padding-left: 20px; margin: 6px 0 0; }
.refs li { margin: 6px 0; color: var(--ink-2); font-size: 14.5px; }
.muted, .refs .muted { color: var(--muted); font-size: 13px; }
.keynums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 4px; }
.keynums div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.keynums span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.keynums b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; font-variant-numeric: tabular-nums; }
.keynums b.acc { color: var(--brand-ink); }
.keynums small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.info .r-table { margin: 6px 0; }
.info .r-table a { text-decoration: none; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand); border-radius: 999px; padding: 13px 20px; margin: 18px 0; text-decoration: none; color: #fff; font-weight: 700; }
.cta:hover { background: var(--brand-ink); color: #fff; }
.cta span { font-weight: 400; font-size: 13.5px; display: block; opacity: .9; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; }
.pager a { flex: 1 1 0; min-width: 140px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.pager a small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.pager a.next { text-align: right; }
.grid-links { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.grid-links a { display: block; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-decoration: none; color: var(--ink); font-weight: 700; }
.hol-sub { color: var(--bad); font-weight: 600; }
.tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.tool-list a { display: flex; gap: 12px; align-items: flex-start; height: 100%; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tool-list a:hover { border-color: var(--brand); }
.tool-list .tx { display: block; min-width: 0; }
.tool-list strong { display: block; font-size: 15.5px; margin-bottom: 2px; color: var(--ink); }
.tool-list .tx > span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.cat-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); }
.cat-card:hover { border-color: var(--brand); }
.cat-card b { display: block; font-size: 15.5px; }
.cat-card .tx > span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cat-card em { font-style: normal; display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--yellow-ink); background: var(--yellow-soft); border-radius: 6px; padding: 0 6px; }
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin-top: 10px; }
.bundles h3 { font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
.bundles ul { list-style: none; margin: 0; padding: 0; }
.bundles li { margin: 3px 0; font-size: 15px; }
.partner { margin: 18px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.partner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partner a { display: inline-block; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14.5px; color: var(--ink-2); background: var(--card); }
.partner small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* 광고 자리 (크기·위치 그대로) */
.ad-slot { margin: 22px 0; min-height: 0; }
.ad-slot.ph { min-height: 100px; border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .ad-slot.pc-only { display: none; } }

/* 꼬리: 분야 접는 목록 */
.site-footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13.5px; }
.site-footer .wrap { padding: 20px 16px 34px; }
.foot-acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 18px; }
.foot-acc details { border-bottom: 1px solid var(--line); }
.foot-acc summary { list-style: none; cursor: pointer; padding: 12px 18px 12px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 14px; }
.foot-acc summary::-webkit-details-marker { display: none; }
.foot-acc summary::after { content: ""; position: absolute; right: 3px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); }
.foot-acc ul { list-style: none; margin: 0 0 10px; padding: 0; }
.foot-acc li a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.site-footer p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (min-width: 761px) {
  .pop { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .disc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu[open] .menu-sheet { inset: 64px auto auto auto; right: max(16px, calc((100vw - 1180px) / 2 + 16px)); width: 620px; height: min(78vh, 720px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.35); overflow: hidden; }
}
@media (max-width: 640px) {
  h1 { font-size: 25px; }
  .head-link { display: none; }
  .tool-list, .cat-row { grid-template-columns: 1fr; }
  .guide, .prose, .info, .refs { padding: 4px 16px 16px; }
  .keynums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keynums b { font-size: 20px; }
  .r-big strong { font-size: 27px; }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .chips.field { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .r-table { font-size: 13.5px; }
  .r-table th, .r-table td { padding: 7px 4px; }
  .r-table.wide, .r-table.wide tbody, .r-table.wide tr, .r-table.wide td { display: block; width: 100%; }
  .r-table.wide thead { display: none; }
  .r-table.wide caption { display: block; width: 100%; }
  .r-table.wide tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .r-table.wide td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 2px 2px; text-align: right; white-space: normal; min-width: 0; }
  .r-table.wide td::before { content: attr(data-label); color: var(--muted); font-weight: 400; text-align: left; flex: 0 1 auto; }
  .r-table.wide td:first-child { font-weight: 700; color: var(--ink); justify-content: flex-start; }
  .r-table.wide td:first-child::before { content: none; }
  .r-table.wide tr.best td:first-child { color: var(--brand-ink); }
}
@media (max-width: 380px) {
  .grid, .grid.g3 { grid-template-columns: 1fr; }
  .pop { gap: 12px 2px; }
}

/* 계산하기·공유 (2026-11-28) */
.calc-actions { margin-top: 16px; }
.btn.calc-go { width: 100%; flex: 1 1 100%; height: 52px; font-size: 16.5px; font-weight: 800; }
.result.stale { opacity: .45; }
.result.stale::before { content: "값이 바뀌었습니다. 계산하기를 다시 눌러 주세요."; display: block; font-size: 13.5px; font-weight: 700; color: var(--yellow-ink); background: var(--yellow-soft); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer; }
.share-btn:hover { border-color: var(--brand); }
.share-btn .ico { width: 18px; height: 18px; }
.share-btn.kakao { background: #fee500; border-color: #fee500; color: #191600; }
.share-btn.kakao .kk { width: 22px; height: 22px; display: inline-flex; }
.share-btn.ghost { color: var(--ink-2); padding-left: 14px; margin-left: auto; }
/* 이름이 두 줄인 입력칸과 옆 칸의 높이 맞춤: 칸마다 라벨·입력·안내를 같은 줄(subgrid)에 놓는다 */
.grid { row-gap: 0; }
.grid > .field:not(.chips):not(.check) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 16px; }
.grid > .field:not(.chips):not(.check) > .lb { align-self: end; justify-self: start; }
.grid > .field:not(.chips):not(.check) > small { align-self: start; padding-top: 4px; }
.grid > .check, .grid > .chips.field { margin-bottom: 16px; }
.ref-note { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }

/* ===== 디자인 2판 (2026-11-28) =====
   종이 영수증·고지서 결: 테두리 1px, 그림자 없음, 모서리 두 값(6·10px), 8px 격자.
   굵게 쓰는 곳은 결과 숫자 하나(제목 글꼴 + 노란 형광펜 밑줄). 초록은 누르는 것에만. */
:root {
  --bg: #f3f5f2; --card: #ffffff; --surface: #edf0ec; --surface-2: #e2e7e1; --line: #d8ded7; --line-2: #b9c2b8;
  --ink: #17201a; --ink-2: #48534b; --muted: #727d75; --input: #ffffff;
  --r1: 6px; --r2: 10px; --radius: 10px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1311; --card: #161b18; --surface: #1d2420; --surface-2: #26302a; --line: #2a332d; --line-2: #3d4941;
    --ink: #e7ece8; --ink-2: #b2bcb5; --muted: #87928b; --input: #121714;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1311; --card: #161b18; --surface: #1d2420; --surface-2: #26302a; --line: #2a332d; --line-2: #3d4941;
  --ink: #e7ece8; --ink-2: #b2bcb5; --muted: #87928b; --input: #121714;
}
body { font-size: 15.5px; line-height: 1.6; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
h2 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: var(--s4) 0 var(--s1); }
h3 { font-size: 15.5px; font-weight: 700; margin: var(--s3) 0 var(--s1); }
.lead { font-size: 15px; color: var(--ink-2); }
.r-rows dd, .r-table td, .keynums b { font-variant-numeric: tabular-nums; }

/* 누름 반응: 바탕만 살짝, 누르는 순간 1px 내려앉음 */
a, button, .chip span, summary { -webkit-tap-highlight-color: transparent; }
.cats a, .tool-list a, .cat-card, .mini-cards a, .side-list li a, .side-new, .pager a, .grid-links a, .share-btn, .btn, .jump a, .cat-list li a, .pop a, .disc a, .search-res a {
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.cats a:active, .tool-list a:active, .cat-card:active, .mini-cards a:active, .pager a:active, .grid-links a:active, .share-btn:active, .btn:active, .chip span:active, .pop a:active, .disc a:active { transform: translateY(1px); }

/* 상자: 그림자 없이 1px 선, 모서리 10px */
.side-card, .guide, .refs, .prose, .info, .soon-box, .partner, .result, .keynums div, .search, .search-res,
.calc-card form > fieldset:not(.chips), .calc-card form > .grid, .calc-card form > .field, .calc-card form > .check, fieldset, .chips { border-radius: var(--r2); box-shadow: none; }
.menu[open] .menu-sheet { box-shadow: 0 12px 32px rgba(10, 20, 14, .14); }

/* 입력: 6px 모서리, 높이 56 */
input[type="text"], input[type="date"], select { border: 1px solid var(--line-2); border-radius: var(--r1); height: 56px; padding: 16px 16px 8px; }
.inp input { padding-right: 48px; font-weight: 700; }
.inp i { right: 16px; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
.field > .lb { font-size: 12.5px; color: var(--ink-2); }
.calc-card form { gap: var(--s2); }
.calc-card form > fieldset:not(.chips), .calc-card form > .grid, .calc-card form > .field, .calc-card form > .check { padding: var(--s3) var(--s2) var(--s1); }
.grid { column-gap: var(--s2); }
.grid > .field:not(.chips):not(.check) { margin-bottom: var(--s2); }
legend, .chips legend { font-size: 15.5px; margin-bottom: var(--s2); }

/* 고르기 칩: 알약 대신 나란히 붙은 칸 */
.chips:not(.field) { gap: 0; padding: var(--s2); }
.chips:not(.field) .chip span { border-radius: 0; background: var(--card); border: 1px solid var(--line-2); margin-left: -1px; padding: 12px 8px; font-size: 14.5px; color: var(--ink-2); }
.chips:not(.field) .chip:first-of-type span { border-radius: var(--r1) 0 0 var(--r1); margin-left: 0; }
.chips:not(.field) .chip:last-of-type span { border-radius: 0 var(--r1) var(--r1) 0; }
.chip span { border-radius: var(--r1); }
.chip input:checked + span { position: relative; z-index: 1; background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
.chip span:hover { color: var(--ink); }

/* 단추 */
.btn { border-radius: var(--r1); min-height: 48px; padding: 0 var(--s2); }
.btn.calc-go { height: 56px; font-size: 17px; letter-spacing: -.01em; }
.btn.ghost { background: var(--surface-2); }
.share-btn { border-radius: var(--r1); height: 40px; padding: 0 14px; }
.jump a { border-radius: var(--r1); background: var(--card); }

/* 결과: 영수증 */
.result { padding: var(--s3) var(--s2) var(--s2); border-color: var(--line-2); }
.r-big { background: none; border-radius: 0; padding: 0 0 var(--s2); margin: 0 0 var(--s1); border-bottom: 2px solid var(--ink); gap: 4px; }
.r-label { color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.r-big strong { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.15; letter-spacing: 0; color: var(--ink);
  align-self: flex-start; padding: 0 4px; margin-left: -4px;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--yellow) 70%, transparent) 58%, color-mix(in srgb, var(--yellow) 70%, transparent) 90%, transparent 90%); }
.r-sub { color: var(--muted); font-size: 13px; }
.r-rows > div { padding: 8px 0; border-bottom: 1px dotted var(--line-2); align-items: baseline; }
.r-rows dt { color: var(--ink-2); font-size: 14.5px; }
.r-rows dd { font-size: 15px; }
.r-rows .total { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: -1px; padding-top: 10px; }
.r-rows .total dt, .r-rows .total dd { font-weight: 800; font-size: 16.5px; }
.r-note { border-radius: var(--r1); background: var(--surface); padding: var(--s1) 12px; }
.r-note.warn { background: var(--yellow-soft); }
.r-table thead th { border-bottom: 1px solid var(--ink); color: var(--ink-2); }
.r-table th, .r-table td { border-bottom: 1px dotted var(--line-2); }
.r-table tr.best td { background: color-mix(in srgb, var(--yellow) 22%, transparent); color: var(--ink); }
.result.stale::before { border-radius: var(--r1); }
.ref-note { margin: var(--s1) 0 0; }

/* 머리 표시 */
.tab { border-radius: var(--r1); background: none; padding: 0; color: var(--c); }
.stamp span { border-radius: 4px; background: none; border: 1px solid var(--line); }

/* 첫 화면·목록: 카드 대신 줄 목록 */
.home-sec { margin-top: var(--s4); }
.pop { gap: var(--s2) 4px; }
.pop-ico, .tile-ico, .rail-ico, .side-new .side-ico { border-radius: var(--r2); }
.pop-ico { width: 48px; height: 48px; }
.mini-cards .tile-ico { border-radius: var(--r1); }
.cats { gap: 0 var(--s3); border-top: 1px solid var(--line); }
.cats a { height: 56px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0 8px; }
.cats a:hover { background: var(--card); }
.tool-list { gap: 0 var(--s3); border-top: 1px solid var(--line); }
.tool-list a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: var(--s2) 8px; }
.tool-list a:hover, .cat-card:hover { background: var(--card); }
.cat-row { gap: 0 var(--s3); border-top: 1px solid var(--line); }
.cat-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.mini-cards a, .pager a, .grid-links a, .more-rest summary { border-radius: var(--r1); }
.mini-cards a:hover, .pager a:hover, .grid-links a:hover { border-color: var(--line-2); background: var(--surface); }
.today-banner, .d-art { border-radius: var(--r2); }
.today-banner span, .soon-tag, .d-art em, .side-list .no { border-radius: 4px; }
.faq details { border-radius: var(--r1); }
.formula { border-radius: var(--r1); border-left: 3px solid var(--line-2); }
.caution { border-radius: var(--r1); }
.example { border-left-color: var(--yellow); }
@media (min-width: 761px) { .pop { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .r-big strong { font-size: 34px; } h1 { font-size: 24px; } }
/* 휴대폰에서 금액 칸이 잘리지 않게 한 줄에 하나 */
@media (max-width: 440px) { .grid, .grid.g3 { grid-template-columns: 1fr; } }

/* 오늘의 발견: 큰 그림 칸 대신 아이콘 + 숫자 줄 */
.disc { gap: 0 var(--s3); border-top: 1px solid var(--line); }
.disc a { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.disc a:hover { background: var(--card); }
.d-art { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
.d-art em { display: none; }
.d-art .ico.big { width: 26px; height: 26px; stroke-width: 1.7; }
.disc b { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.disc small { margin: 0; }
.today-banner { margin-bottom: var(--s1); }
@media (max-width: 760px) { .disc { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .disc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 어두운 화면: 밝은 초록 바탕 위 글자는 어둡게, 큰 띠는 짙은 초록 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.ghost), :root:not([data-theme="light"]) .chip input:checked + span { color: #0f1311; }
  :root:not([data-theme="light"]) .today-banner { background: #1d4f25; }
}
:root[data-theme="dark"] .btn:not(.ghost), :root[data-theme="dark"] .chip input:checked + span { color: #0f1311; }
:root[data-theme="dark"] .today-banner { background: #1d4f25; }

/* 숫자로 찾는 연예인: 사진 대신 이름 첫 글자 */
.c-ini { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px; border-radius: var(--r1);
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 800; vertical-align: -6px; flex: none; }
.c-diff { margin-top: var(--s3); }
.c-diff h2 { margin: 0 0 var(--s1); }
.c-h { margin: var(--s3) 0 var(--s1); }
.c-h small, .grid-links small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.jumpline { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.info h3 { margin-top: var(--s3); }
.c-fold { border-top: 1px solid var(--line); margin-top: var(--s1); }
.c-fold > summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.c-fold > summary::-webkit-details-marker { display: none; }
.c-fold > summary::after { content: "펼치기"; float: right; font-size: 13px; color: var(--brand-ink); font-weight: 600; }
.c-fold[open] > summary::after { content: "접기"; }
.r-table td .c-ini { vertical-align: middle; margin-top: -2px; }

/* 로또 회차: 공은 색 없이 테두리 원, 그래프는 한 계열 선 */
.balls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s2) 0; }
.ball { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink);
  font-family: var(--display); font-size: 17px; font-variant-numeric: tabular-nums; background: var(--card); }
.balls .plus { color: var(--muted); font-weight: 700; }
.balls .ball:last-child { border-style: dashed; }
.lchart { position: relative; margin: var(--s1) 0 0; --chart-line: #2f8f3a; }
.lchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.lchart .g { stroke: var(--line); stroke-width: 1; }
.lchart .ax { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.lchart .ln { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lchart .hit { fill: transparent; cursor: pointer; }
.lchart .cur { fill: var(--chart-line); stroke: var(--card); stroke-width: 2; }
.ltip { position: absolute; top: 0; width: 180px; font-size: 12.5px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r1); padding: 4px 8px; color: var(--ink); text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lchart { --chart-line: #4fa95a; } }
:root[data-theme="dark"] .lchart { --chart-line: #4fa95a; }
.lchart svg { max-width: 640px; }
.chips:not(.field) .chip input:checked + span { position: relative; z-index: 1; background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chips:not(.field) .chip input:checked + span { color: #0f1311; } }
:root[data-theme="dark"] .chips:not(.field) .chip input:checked + span { color: #0f1311; }
