/* 달러 인베스트먼트: 밝은 바탕에 달러 초록 하나. 오르면 빨강, 내리면 파랑(한국식). */
:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --surface-2: #eff3f0;
  --line: #e1e7e3;
  --line-2: #cfd8d2;
  --text: #111915;
  --text-2: #46534c;
  --text-3: #78857e;
  --brand: #0a7a4a;
  --brand-2: #08663e;
  --brand-weak: #e4f2ea;
  --brand-ink: #054229;
  --coin: #c9a227;
  --up: #d43d3d;
  --down: #2c63cf;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(17, 25, 21, .04), 0 6px 18px rgba(17, 25, 21, .05);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b100e;
  --surface: #121916;
  --surface-2: #17211c;
  --line: #213029;
  --line-2: #2d3d35;
  --text: #e8eee9;
  --text-2: #b1bdb6;
  --text-3: #808e87;
  --brand: #38c486;
  --brand-2: #5ad49c;
  --brand-weak: #12271d;
  --brand-ink: #c4eed9;
  --coin: #e2bf4a;
  --up: #ff6b6b;
  --down: #6c9cff;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; text-wrap: balance; overflow-wrap: normal; }
p { margin: 0 0 1em; text-wrap: pretty; }
.nw { white-space: nowrap; display: contents; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--text-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리말 */
.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
@media (max-width: 720px) {
  .hd .wrap { gap: 12px; padding-inline: 16px; }
  .logo { font-size: 17px; }
  .logo svg { width: 26px; height: 26px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
}
@media (max-width: 420px) { .nav a { padding: 6px 7px; font-size: 13.5px; } }

/* 쪽 머리 */
.page-hd { padding: 44px 0 26px; }
.crumb { font-size: 14px; color: var(--text-3); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.page-hd h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.lede { font-size: 17.5px; color: var(--text-2); margin-top: 14px; max-width: 46em; }

/* 첫 화면 */
.hero { padding: 52px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { max-width: 34em; }
.asof { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--text-3); }
.asof i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-weak); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* 카드 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.rate { display: block; padding: 18px 18px 14px; position: relative; transition: transform .2s ease, border-color .2s ease; }
.rate:hover { transform: translateY(-2px); border-color: var(--line-2); color: inherit; }
.rate .who { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.flag { width: 24px; height: 18px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.rate .val { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.rate .val small { font-size: 15px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.rate .chg { font-size: 14.5px; font-weight: 600; }
.rate .spark { display: block; width: 100%; height: 44px; margin-top: 10px; }
.spark path.l { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark path.a { stroke: none; opacity: .12; }
@media (max-width: 520px) { .board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .rate { padding: 14px 13px 10px; } .rate .val { font-size: 23px; } .rate .chg { font-size: 13px; } }

/* 환산기 */
.conv { padding: 22px; }
.conv h2 { font-size: 19px; margin-bottom: 4px; }
.conv .sub { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lab { font-size: 14px; font-weight: 600; color: var(--text-2); }
.inp { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); overflow: hidden; }
.inp:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
.inp input, .inp select { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; font-weight: 600; padding: 12px 14px; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; outline: none; }
.inp select { font-size: 15.5px; font-weight: 600; width: auto; padding-right: 8px; cursor: pointer; }
.inp .unit { display: flex; align-items: center; padding: 0 14px; color: var(--text-3); font-weight: 600; font-size: 15px; background: var(--surface-2); border-left: 1px solid var(--line); white-space: nowrap; }
.swap { display: flex; justify-content: center; margin: -4px 0 10px; }
.swap button { border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.swap button:hover { border-color: var(--brand); color: var(--brand); }
.conv .note { font-size: 13.5px; color: var(--text-3); margin: 6px 0 0; }

/* 첫 화면 오른쪽 */
.side { display: grid; gap: 14px; }
.movers h2 { font-size: 17px; margin-bottom: 10px; }
.mv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.mv h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.mv ul { list-style: none; margin: 0; padding: 0; }
.mv li a { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.mv li:last-child a { border-bottom: 0; }
.mv li a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv li a b { font-size: 14px; }
.mv .flag { width: 20px; height: 15px; }

/* 구역 */
.sec { padding: 44px 0 44px; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-hd h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.015em; }
.sec-hd p { margin: 6px 0 0; color: var(--text-2); }
.sec-hd .more { font-weight: 600; font-size: 15px; color: var(--brand); white-space: nowrap; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* 통화 격자 */
.cur-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cur { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cur:hover { border-color: var(--line-2); color: inherit; }
.cur .nm { font-weight: 600; font-size: 15px; line-height: 1.35; }
.cur .nm small { display: block; color: var(--text-3); font-weight: 500; font-size: 13px; }
.cur .v { margin-left: auto; text-align: right; font-weight: 700; font-size: 16px; line-height: 1.35; }
.cur .v small { display: block; font-size: 12.5px; font-weight: 600; }
@media (max-width: 960px) { .cur-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cur-grid { grid-template-columns: minmax(0, 1fr); } }

/* 도구 격자 */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool.all .ic { background: var(--surface-2); color: var(--text-2); }
.tool { display: flex; gap: 14px; padding: 20px; align-items: flex-start; }
.tool:hover { border-color: var(--line-2); color: inherit; transform: translateY(-2px); }
.tool { transition: transform .2s ease, border-color .2s ease; }
.tool .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-weak); color: var(--brand); display: grid; place-items: center; flex: none; }
.tool .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool h3 { font-size: 17px; }
.tool p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }

/* 표 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th, .t td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t th { font-size: 13.5px; font-weight: 600; color: var(--text-3); background: var(--surface-2); }
.t th:first-child, .t td:first-child { text-align: left; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: color-mix(in srgb, var(--brand-weak) 45%, transparent); }
.t td a.nm { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.t td a.nm small { color: var(--text-3); font-weight: 500; }
.t .grp td { background: var(--surface-2); font-weight: 700; color: var(--text-2); font-size: 14px; text-align: left; }
.range { position: relative; width: 120px; height: 6px; border-radius: 3px; background: var(--surface-2); display: inline-block; vertical-align: middle; box-shadow: inset 0 0 0 1px var(--line); }
.range i { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 720px) { .hide-sm { display: none; } .t th, .t td { padding: 10px 10px; font-size: 14px; } }

/* 숫자 칸 */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; }
.kpi .k { font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; }
.kpi .v small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.kpi .sub { font-size: 13px; }
.kpi.main { grid-column: span 2; }
.kpi.main .v { font-size: 34px; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi.main { grid-column: span 3; } }
@media (max-width: 520px) { .kpis { gap: 8px; } .kpi { padding: 13px 12px; } .kpi .k { font-size: 12.5px; } .kpi .v { font-size: 19px; } .kpi.main .v { font-size: 30px; } .kpi .sub { font-size: 12px; } }

/* 차트 */
.chart { padding: 18px 18px 12px; margin-top: 16px; }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 12px; flex-wrap: wrap; }
.chart-top h2 { font-size: 18px; }
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.plot { position: relative; margin-top: 12px; }
.plot svg { display: block; width: 100%; height: 300px; overflow: visible; }
.plot svg text { fill: var(--text-3); font-size: 11.5px; font-family: var(--font); stroke: none; }
.plot .grid line { stroke: var(--line); stroke-width: 1; }
.plot .ln { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.plot .ar { fill: var(--brand); opacity: .09; stroke: none; }
.plot .base { stroke: var(--text-3); stroke-dasharray: 3 4; stroke-width: 1; }
.plot .dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.chart .cap { font-size: 13px; color: var(--text-3); margin: 14px 2px 2px; }
@media (max-width: 600px) { .plot svg { height: 230px; } }

/* 해마다 최저~최고 막대, 환율대 막대(글 속 자료 그림) */
.yr-box, .band-box { padding: 18px 20px 14px; }
.yr-scale { position: relative; height: 18px; margin: 0 92px 6px 52px; font-size: 12px; color: var(--text-3); }
.yr-scale span { position: absolute; top: 0; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.yr-list, .band-list { list-style: none; margin: 0; padding: 0; }
.prose .yr-list li, .prose .band-list li { margin: 0; }
.yr-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 92px; align-items: center; height: 26px; font-size: 13.5px; }
.yr-list .y { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.yr-list .trk { position: relative; height: 100%; }
.yr-list .trk::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.yr-list .bar { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--brand); opacity: .32; }
.yr-list .avg { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.yr-list .v { text-align: right; color: var(--text-3); font-size: 12.5px; }
.band-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.band-list .b { color: var(--text-2); font-weight: 600; }
.band-list .trk { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.band-list .trk i { display: block; height: 100%; border-radius: 7px; background: var(--brand); opacity: .35; }
.band-list .now .trk i { opacity: 1; }
.band-list .now .b { color: var(--brand); }
.band-list .v { text-align: right; color: var(--text-2); }
.band-list .v em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); margin-left: 6px; }
@media (max-width: 600px) {
  .yr-box, .band-box { padding: 14px 14px 10px; }
  .yr-scale { margin: 0 70px 6px 42px; }
  .yr-list li { grid-template-columns: 42px minmax(0, 1fr) 70px; font-size: 12.5px; }
  .yr-list .v { font-size: 11.5px; }
  .band-list li { grid-template-columns: 64px minmax(0, 1fr) 74px; gap: 8px; font-size: 13px; }
}

/* 예적금 금리 표 */
.kind-tabs { margin-top: 2px; }
.kind-tabs a { color: var(--text-2); font-size: 14.5px; font-weight: 600; padding: 7px 18px; border-radius: 999px; }
.kind-tabs a:hover { color: var(--text); }
.kind-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.kpis.k4 .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 960px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rate-box { margin-top: 24px; }
.rate-ctl { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 18px; }
.rate-count { font-size: 14px; color: var(--text-3); margin: 0 0 16px; }
.rates td { vertical-align: top; }
.rates td.pd { text-align: left; white-space: normal; }
.rates .co { display: block; font-size: 13px; color: var(--text-3); font-weight: 600; }
.rates .pn { display: block; font-weight: 700; margin-top: 2px; line-height: 1.45; word-break: keep-all; }
.rates .mt { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.rates .mt span + span::before { content: "·"; margin: 0 6px; }
.rates td.r2 { font-weight: 700; color: var(--brand); }
.rates .acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; margin-top: 6px; }
.rates .acts:empty { display: none; }
.rates details.cnd { flex-basis: 100%; order: 2; }
.rates .calc-link { font-size: 13px; font-weight: 600; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.rates .calc-link:hover { color: var(--brand); }
.rates details.cnd[open] { margin-bottom: 2px; }
.rates details.cnd summary { order: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand); list-style: none; display: inline-block; }
.rates details.cnd summary::-webkit-details-marker { display: none; }
.rates details.cnd > div { white-space: pre-line; font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.65; max-width: 44em; }
.rates tr.ex { display: none; }
.more-btn { margin: 18px auto 0; display: flex; width: fit-content; }
.rate-art { margin-top: 36px; }

/* 첫 화면 이번 달 예적금 금리 */
.mini-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini-rate h3 { font-size: 16.5px; margin-bottom: 8px; }
.mini-rate ol { list-style: none; margin: 0 0 12px; padding: 0; }
.mini-rate li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-rate li:last-child { border-bottom: 0; }
.mini-rate .nm { min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
.mini-rate .nm b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.mini-rate .v { flex: none; font-weight: 700; color: var(--brand); }
.mini-rate .more { font-size: 14px; font-weight: 600; color: var(--brand); }
@media (max-width: 960px) { .mini-rates { grid-template-columns: minmax(0, 1fr); } }

/* 두 칸 */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.box { padding: 20px 22px; }
.box h2 { font-size: 18px; margin-bottom: 16px; }

/* 글 */
.prose { font-size: 17px; line-height: 1.85; color: var(--text); }
.prose h2 { font-size: 24px; margin: 2.6em 0 .8em; padding-bottom: 12px; position: relative; border-bottom: 1px solid var(--line); }
/* ai-design-ok: 소제목 아래 옅은 실선 위의 포인트 색 선은 사용자가 요청한 꼴(디자인 원칙 3장, 라이브러리 11-26) */
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: var(--brand); }
.prose h3 { font-size: 19px; margin: 1.9em 0 .6em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-size: 14.5px; color: var(--text-2); }
.prose .tbl-wrap { margin: 1.4em 0; }
.prose .tbl-wrap table { margin: 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 14px; color: var(--text-3); margin-top: 10px; line-height: 1.6; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; position: relative; color: var(--text-2); }
.prose blockquote::before { content: "\201C"; position: absolute; left: -2px; top: -10px; font-size: 40px; color: var(--brand); line-height: 1; }
.prose code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; font-size: .92em; }
.sum { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 2em; }
.sum strong { display: block; font-size: 14.5px; color: var(--brand); margin-bottom: 6px; }
.sum ul { margin: 0; padding-left: 1.2em; }
.byline { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); margin-top: 14px; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.art aside { position: sticky; top: 88px; font-size: 14.5px; }
.toc { padding: 18px 20px; }
.toc strong { display: block; font-size: 14px; color: var(--text-3); margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0; color: var(--text-2); line-height: 1.5; }
.toc a:hover { color: var(--brand); }
@media (max-width: 1000px) { .art { grid-template-columns: minmax(0, 1fr); } .art aside { position: static; } }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .prose details.fold summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform var(--acc-expand) var(--acc-ease); }
.faq details[open] summary::after, .prose details.fold[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
/* 접기 상자 펼침: transitions.dev 21-accordion 의 시간과 가속(250ms, cubic-bezier(0.22, 1, 0.36, 1))을
   <details> 에 맞춘 것. 스크립트 없이 열리고, ::details-content 를 모르는 브라우저에서는 그냥 펼쳐진다. */
:root { interpolate-size: allow-keywords; --acc-expand: 250ms; --acc-collapse: 250ms; --acc-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.faq details::details-content, .prose details.fold::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--acc-collapse) var(--acc-ease), opacity var(--acc-collapse) var(--acc-ease), content-visibility var(--acc-collapse) allow-discrete; }
.faq details[open]::details-content, .prose details.fold[open]::details-content { block-size: auto; opacity: 1; transition-duration: var(--acc-expand); }
@media (prefers-reduced-motion: reduce) { .faq details::details-content, .prose details.fold::details-content, .faq summary::after, .prose details.fold summary::after { transition: none !important; } }
.prose details.fold { margin: 1.2em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose details.fold summary { cursor: pointer; list-style: none; padding: 15px 46px 15px 18px; font-weight: 600; font-size: 15.5px; position: relative; }
.prose details.fold summary::-webkit-details-marker { display: none; }
.prose details.fold summary::after { right: 20px; }
.prose details.fold .tbl-wrap { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.t tr.me td { background: var(--brand-weak); font-weight: 700; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* 계산기 */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.calc .form { padding: 22px; }
.calc .out { padding: 22px; }
.calc .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.res-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; }
.res-k { font-size: 14px; color: var(--text-3); font-weight: 600; }
.res-list { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.res-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.res-list div span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.seg label { padding: 9px 14px; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--text-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--brand); }
.seg label:has(input:checked) { background: var(--brand-weak); color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn:hover { background: var(--brand-2); color: #fff; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--line); color: var(--text); }
.buys .buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.buys .del { border: 0; background: transparent; color: var(--text-3); font-size: 20px; cursor: pointer; padding: 0 6px; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* 목록 */
.post-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.post-grid > .post { grid-column: span 2; }
.post { display: flex; flex-direction: column; overflow: hidden; }
.post:hover { color: inherit; border-color: var(--line-2); }
.post .cov { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post .cov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post:hover .cov img { transform: scale(1.03); }
.post .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post .tg { font-size: 13px; font-weight: 600; color: var(--brand); }
.post h3 { font-size: 17.5px; line-height: 1.45; }
.post p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.6; }
.post-grid.n2 > .post { grid-column: span 3; }
.post-grid.n1 { grid-template-columns: minmax(0, 560px); }
.post-grid.n1 > .post { grid-column: auto; }
/* 셋씩 떨어지지 않을 때: 하나 남으면 첫 칸을 가로로 넓게, 둘 남으면 첫 두 칸을 반씩 */
.post-grid.r1 > .post:first-child { grid-column: 1 / -1; flex-direction: row; }
.post-grid.r1 > .post:first-child .cov { flex: 0 0 56%; }
.post-grid.r1 > .post:first-child .bd { padding: 28px 32px; justify-content: center; gap: 10px; }
.post-grid.r1 > .post:first-child h3 { font-size: 24px; line-height: 1.4; }
.post-grid.r1 > .post:first-child p { font-size: 15.5px; }
.post-grid.r2 > .post:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid > .post, .post-grid.n2 > .post, .post-grid.r2 > .post:nth-child(-n+2) { grid-column: auto; }
  .post-grid.r1 > .post:first-child { grid-column: auto; flex-direction: column; }
  .post-grid.r1 > .post:first-child .cov { flex: none; }
  .post-grid.r1 > .post:first-child .bd { padding: 16px 18px 18px; gap: 6px; }
  .post-grid.r1 > .post:first-child h3 { font-size: 17.5px; }
  .post-grid.r1 > .post:first-child p { font-size: 14.5px; }
  .post-grid.odd > .post:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .post-grid { grid-template-columns: minmax(0, 1fr); } .post-grid > .post { grid-column: auto !important; } }

/* 바닥글 */
.ft { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 14.5px; color: var(--text-2); }
/* 마지막 구역이 띠(band)면 바닥글과 사이에 빈 띠가 생기지 않게 붙인다 */
main:has(> .band:last-child) + .ft { margin-top: 0; border-top: 0; }
.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.ft h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ft .about p { margin: 12px 0 0; max-width: 28em; }
.ft .legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
@media (max-width: 860px) { .ft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ft .about { grid-column: span 2; } }

/* 오른쪽 아래 단추 */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; gap: 8px; }
.dock button { border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); border-radius: 999px; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.dock button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock button:hover { color: var(--text); border-color: var(--text-3); }
@media (max-width: 720px) {
  .dock { right: 12px; bottom: 12px; gap: 6px; }
  .dock button { width: 38px; padding: 0; justify-content: center; }
  .dock button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* 등장 움직임: 스크립트가 붙인 표시가 있을 때만 숨긴다 */
.js .rise { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.js .rise.in { opacity: 1; transform: none; }
[data-motion="off"] .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
[data-motion="off"] * { animation: none !important; }
[data-motion="off"] details::details-content, [data-motion="off"] summary::after { transition: none !important; }

.ad-note { font-size: 12px; color: var(--text-3); }
.sources { font-size: 14px; color: var(--text-3); }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 30px; text-align: center; color: var(--text-3); }
