/* ============================================================
   머니큐브 | 생활금융 계산기·제도 해설
   순수 CSS · 반응형 · 외부 라이브러리 없음
   ============================================================ */

:root {
  --ink: #12213a;
  --ink-soft: #46536b;
  --ink-mute: #6b7789;
  --line: #e3e8ef;
  --line-strong: #cfd8e3;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #0b4f6c;
  --brand-deep: #093b52;
  --accent: #12766b;
  --accent-soft: #e6f4f1;
  --gold: #b07b1e;
  --danger: #b23b3b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 33, 58, .04), 0 8px 24px rgba(18, 33, 58, .06);
  --shadow-strong: 0 2px 6px rgba(18, 33, 58, .06), 0 16px 40px rgba(18, 33, 58, .10);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
          -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 800px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: translateY(-2px);
}
.brand .sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0;
  display: none;
}

.main-nav {
  margin-left: auto;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(6, auto);
  gap: 2px 0;
  justify-content: end;
}

.main-nav a {
  display: inline-block;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brand); background: #eef4f8; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(900px 320px at 88% -10%, rgba(18, 118, 107, .16), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 46px;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #cfe8e3;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.hero p.lead {
  margin: 0;
  font-size: clamp(15.5px, 1.7vw, 18px);
  color: var(--ink-soft);
  max-width: 660px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 720px;
}
.hero-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.hero-stats strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 12.5px; color: var(--ink-mute); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 79, 108, .22); }
.btn-primary:hover { background: var(--brand-deep); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fdfefe; border-color: var(--brand); color: var(--brand); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(18, 118, 107, .2); }
.btn-accent:hover { background: #0d6157; }

.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 8px; }

/* ---------- sections ---------- */

section { padding: 46px 0; }
section.tight { padding: 34px 0; }

.section-head { margin-bottom: 22px; }
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.section-head .kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

a.card {
  display: block;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  border-color: #c9d8e2;
}

.calc-card { display: flex; flex-direction: column; gap: 10px; }
.calc-card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 6px;
}
.calc-card h3 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.03em; }
.calc-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.calc-card .go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--brand); font-size: 14.5px; }

.article-card .meta {
  font-size: 12.5px;
  color: var(--ink-mute);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.article-card h3 { margin: 0 0 8px; font-size: 18.5px; line-height: 1.42; letter-spacing: -0.025em; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: #eef4f8;
  border-radius: 999px;
  padding: 3px 10px;
}

/* category tiles */
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.cat h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.cat p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li + li { border-top: 1px dashed var(--line); }
.cat li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.cat li a span { color: var(--ink-mute); font-weight: 500; font-size: 13px; white-space: nowrap; }
.cat li a:hover { color: var(--brand); text-decoration: none; }
.cat .icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
  margin-bottom: 10px;
}

/* ---------- calculator layout ---------- */

.tool-head { padding: 40px 0 26px; }
.tool-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.26;
}
.tool-head p { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 720px; }
.crumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 12px; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--brand); }

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tool-grid > * { min-width: 0; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.panel .panel-note { margin: 0 0 18px; font-size: 13px; color: var(--ink-mute); }

.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field .hint { display: block; font-weight: 500; color: var(--ink-mute); font-size: 12.5px; margin-top: 5px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input,
.input-wrap select {
  width: 100%;
  min-width: 0;
  padding: 12px 42px 12px 13px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fcfdff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color .12s, box-shadow .12s;
  appearance: none;
}
.input-wrap select { padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b7789' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 118, 107, .13);
  background: #fff;
}
.input-wrap .unit {
  position: absolute;
  right: 13px;
  font-size: 13.5px;
  color: var(--ink-mute);
  font-weight: 600;
  pointer-events: none;
}
.input-wrap.has-select { gap: 8px; }
.input-wrap.has-select input { width: auto; flex: 1 1 0; }
.input-wrap.has-select select { width: 96px; flex: 0 0 96px; padding: 12px 10px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.seg label {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 8px 4px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(11, 79, 108, .2); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions .btn { flex: 1; }

/* ---------- results ---------- */

.result-hero {
  background: linear-gradient(160deg, var(--brand) 0%, #0d5f74 55%, var(--accent) 130%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 32px rgba(11, 79, 108, .22);
}
.result-hero .label { font-size: 13px; opacity: .85; font-weight: 600; }
.result-hero .amount {
  font-size: clamp(30px, 4.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.result-hero .amount small { font-size: .48em; font-weight: 700; opacity: .85; margin-left: 4px; }
.result-hero .sub { font-size: 13.5px; opacity: .9; margin-top: 6px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.kpi .k { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }
.kpi .v {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.kpi .v small { font-size: 12px; font-weight: 600; color: var(--ink-mute); margin-left: 2px; }

.block { margin-top: 18px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.block-head h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.block-head .note { font-size: 12.5px; color: var(--ink-mute); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: #fff;
}
table.data caption {
  caption-side: top;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-mute);
  padding-bottom: 6px;
}
table.data th,
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
table.data th:first-child,
table.data td:first-child { text-align: left; }
table.data thead th {
  background: #f7f9fc;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tr.total td { font-weight: 800; background: #f9fbfd; }
table.data tr.highlight td { background: var(--accent-soft); font-weight: 700; }
table.data .muted { color: var(--ink-mute); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-scroll table.data th, .table-scroll table.data td { border-bottom-color: var(--line); }

.bar-row {
  display: grid;
  grid-template-columns: 66px 1fr 74px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.bar-track { background: #eef2f7; border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--brand); }
.bar-fill.alt { background: var(--accent); }
.bar-fill.gold { background: var(--gold); }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }

.callout {
  border-left: 3px solid var(--accent);
  background: #f2faf8;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #17554d;
  margin: 16px 0;
}
.callout strong { color: #0f3f39; }
.callout.warn { border-left-color: var(--gold); background: #fdf8ee; color: #6b5216; }

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 26px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  background: #fbfcfe;
}

/* ---------- article ---------- */

.article-wrap { padding: 38px 0 60px; }
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 46px);
  max-width: 860px;
  margin: 0 auto;
}
.article .article-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.article .article-head h1 {
  margin: 8px 0 12px;
  font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.article .meta { font-size: 13px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article .lede { font-size: 16.5px; color: var(--ink-soft); margin: 0; }

.article h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  letter-spacing: -0.03em;
  margin: 40px 0 12px;
  padding-top: 6px;
  line-height: 1.4;
}
.article h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 12px;
}
.article h3 { font-size: 17.5px; margin: 26px 0 8px; letter-spacing: -0.02em; }
.article p { margin: 0 0 14px; color: #26344c; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 20px; color: #26344c; }
.article li { margin-bottom: 7px; }
.article strong { color: var(--ink); }
.article blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  background: #f7f9fc;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.article blockquote p:last-child { margin: 0; }
.article .key-box {
  background: var(--accent-soft);
  border: 1px solid #cfe8e3;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 22px 0;
}
.article .key-box h3 { margin: 0 0 8px; font-size: 15.5px; color: #0f3f39; }
.article .key-box ul { margin: 0; padding-left: 18px; }
.article .key-box li { color: #17554d; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 22px 0 26px;
  background: #fbfcfe;
}
.toc b { display: block; font-size: 13px; color: var(--ink-mute); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin: 3px 0; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 18px;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: #f8fafc; border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 14px 16px; font-size: 14.5px; color: #26344c; }
.faq .faq-body p:last-child { margin: 0; }

.related {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.related h2 { font-size: 17px; margin: 0 0 12px; }
.related h2::before { display: none; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.related a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; background: #fbfdff; }
.related a span { color: var(--ink-mute); font-weight: 500; font-size: 13px; }

.disclaimer {
  font-size: 13px;
  color: var(--ink-mute);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 26px;
  line-height: 1.65;
}

/* ---------- static pages ---------- */

.page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
  max-width: 860px;
  margin: 0 auto;
}
.page h1 { margin: 0 0 8px; font-size: clamp(25px, 3.2vw, 32px); letter-spacing: -0.04em; }
.page .updated { color: var(--ink-mute); font-size: 13px; margin-bottom: 26px; }
.page h2 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -0.025em; }
.page h3 { font-size: 16px; margin: 22px 0 6px; }
.page p, .page li { color: #26344c; font-size: 15px; }
.page ol, .page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.page .contact-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
}
.page .contact-box dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: 14.5px; }
.page .contact-box dt { color: var(--ink-mute); font-weight: 600; }
.page .contact-box dd { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: #0d1a2b;
  color: #b7c3d3;
  margin-top: 60px;
  padding: 40px 0 28px;
  font-size: 13.5px;
}
.site-footer a { color: #cfdaea; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { color: #fff; font-size: 18px; }
.footer-brand p { margin: 10px 0 0; color: #93a3b8; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-links h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #7f90a6; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  color: #7f90a6;
  font-size: 12.5px;
}
.footer-bottom p { margin: 0; }

/* ---------- misc ---------- */

.muted { color: var(--ink-mute) !important; }

.mini-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.mini-list li {
  position: relative;
  padding-left: 16px;
  margin-top: 4px;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

textarea {
  width: 100%;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: #fcfdff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  resize: vertical;
  min-height: 120px;
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 118, 107, .13);
  background: #fff;
}
input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }

.page table.data {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.page table.data th:first-child,
.page table.data td:first-child { white-space: normal; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- v2 : hero dashboard ---------- */

.nav-ico { font-size: .95em; margin-right: 4px; opacity: .92; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 44px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero-badges {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(18, 33, 58, .03);
}
.hero-badges b { font-weight: 800; color: var(--ink); }
.hero-badges span { color: var(--ink-mute); font-size: 11.5px; }

.hero-visual { position: relative; }

.dash {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  padding: 20px 20px 18px;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #cfe8e3;
  border-radius: 999px;
  padding: 3px 10px;
}
.dash-year {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-mute);
  letter-spacing: .06em;
}
.dash-label { margin: 0; font-size: 12px; color: var(--ink-mute); }
.dash-amount {
  margin: 6px 0 0;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.dash-amount span { font-size: .5em; margin-left: 3px; color: var(--ink-soft); }
.dash-sub { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-mute); }

.dash-bars { list-style: none; margin: 16px 0 0; padding: 0; }
.dash-bars li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.dash-bars .bt {
  display: block;
  height: 8px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.dash-bars .bt i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.dash-bars .bt i.alt { background: #4b93b0; }
.dash-bars .bt i.gold { background: var(--gold); }
.dash-bars b { text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--ink-mute); }

.dash-chart { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.dash-chart-title {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.dash-chart-title span { color: var(--ink-mute); font-weight: 500; }
.dash-chart svg { display: block; width: 100%; height: auto; }
.dash-foot { margin: 8px 0 0; font-size: 10.5px; color: var(--ink-mute); line-height: 1.5; }

/* ---------- v2 : feature showcase ---------- */

.show-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.show-head { display: flex; align-items: center; gap: 12px; }
.show-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(140deg, #eef7f5 0%, #e3eef6 100%);
  border: 1px solid #dbe8ef;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.show-titles h3 { margin: 5px 0 0; font-size: 19px; letter-spacing: -0.03em; line-height: 1.35; }
.show-desc { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.show-desc b { color: var(--ink); }
.show-card .btn { align-self: flex-start; }

.preview-table caption { font-size: 12.5px; }
.preview-note { margin: 0; font-size: 12.5px; color: var(--ink-mute); line-height: 1.55; }

/* ---------- v2 : metric cards ---------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 16px 15px;
  box-shadow: 0 1px 2px rgba(18, 33, 58, .03);
}
.metric-ico { font-size: 18px; line-height: 1.2; margin-bottom: 4px; }
.metric strong {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.metric strong small { font-size: 13px; font-weight: 700; color: var(--ink-mute); letter-spacing: 0; }
.metric-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.45; }
.metric-src { font-size: 11.5px; color: var(--ink-mute); line-height: 1.4; margin-top: 2px; }

.rate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 16px;
}
.rate-panel > * { min-width: 0; }
.rate-copy h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.rate-copy p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.check-list { list-style: none; margin: 14px 0 12px; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-weight: 800;
}
.link-arrow { font-size: 14px; font-weight: 700; color: var(--brand); }

/* ---------- v2 : guides ---------- */

a.card.guide-featured {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  margin-bottom: 16px;
  color: inherit;
}
a.card.guide-featured:hover { text-decoration: none; }
.guide-ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(140deg, #eef7f5 0%, #e6eff7 100%);
  border: 1px solid #dbe8ef;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.guide-body { min-width: 0; }
.guide-body h3 { margin: 6px 0 8px; font-size: 20px; letter-spacing: -0.03em; line-height: 1.38; }
.guide-body p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-soft); }
.guide-go { flex: none; font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; align-self: center; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span {
  font-size: 11.5px;
  color: #46606f;
  background: #f1f5f8;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.guide-card { display: flex; flex-direction: column; gap: 8px; }
.guide-card .guide-top { display: flex; align-items: center; gap: 10px; }
.guide-card .guide-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; }
.guide-card h3 { margin: 0; font-size: 17.5px; letter-spacing: -0.025em; line-height: 1.42; }
.guide-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.guide-card .meta { margin: 0; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--ink-mute); display: block; }

/* ---------- v2 : trust + cta ---------- */

.trust-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid #d5eae6;
  font-size: 19px;
  margin-bottom: 10px;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(130deg, var(--brand) 0%, #0d6076 58%, var(--accent) 125%);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 16px 36px rgba(11, 79, 108, .22);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -0.03em; color: #fff; }
.cta-band p { margin: 0; font-size: 14.5px; color: #d5eaf1; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.btn-light:hover { background: #f3fafc; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.footer-badge { font-size: 12px !important; color: #8fa1b6 !important; margin-top: 10px !important; }

.h2-ico,
.ico-inline { margin-right: 8px; }
.c-ico { margin-right: 7px; }

.fact-strip {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fact-strip li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
}
.fact-strip b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact-strip span { font-size: 12px; color: var(--ink-mute); }

.page-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid #cfe8e3;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 22px;
}
.page-summary .ps-ico { font-size: 17px; line-height: 1.5; flex: none; }
.page-summary p { margin: 0 !important; font-size: 14px !important; color: #17554d !important; }
.page-summary strong { color: #0f3f39; }

/* ---------- v3 : 검색·공유·기록·캘린더 ---------- */

.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(18, 33, 58, .03);
}
.search-bar form { display: flex; flex: 1 1 260px; gap: 8px; min-width: 0; }
.search-bar .search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}
.search-bar .search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search-bar .search-hint { font-size: 12.5px; color: var(--ink-mute); }
.search-status { margin: 0 0 10px; font-size: 13px; color: var(--ink-mute); min-height: 18px; }

.calc-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #f1f8f7 0%, #eef4fa 100%);
  border: 1px solid #d7e7ec;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.calc-banner .cb-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #dbe8ef;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.calc-banner .cb-body { flex: 1 1 220px; min-width: 0; }
.calc-banner .cb-body b { display: block; font-size: 15.5px; color: var(--ink); letter-spacing: -0.02em; }
.calc-banner .cb-body span { font-size: 13px; color: var(--ink-soft); }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.recent-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.recent-list .recent-empty { font-size: 13px; color: var(--ink-mute); }
.recent-item {
  width: 100%;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.recent-item:hover { border-color: var(--brand); color: var(--brand); background: #fbfdff; }
.recent-item .recent-label { font-weight: 600; }
.recent-item .recent-time { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(18, 33, 58, .03);
}
.cal-card .cal-when {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  background: #eef4f8;
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 7px;
}
.cal-card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -0.02em; }
.cal-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.cal-card a { font-size: 13px; font-weight: 700; }

.show-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- responsive ---------- */

@media (min-width: 760px) {
  .brand .sub { display: inline; }
}

@media (min-width: 901px) {
  .tool-grid > form.panel { position: sticky; top: 84px; }
}

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .main-nav { grid-template-columns: repeat(4, auto); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .site-header { position: static; }
  .header-inner { min-height: 0; gap: 0 8px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 2px; }
  .main-nav { order: 2; width: 100%; margin-left: 0; padding-bottom: 4px; display: flex; flex-wrap: wrap; justify-content: flex-start; overflow: visible; }
  .main-nav a:first-child { display: none; }
  .main-nav a:nth-child(10), .main-nav a:nth-child(11) { display: none; }
  .brand { font-size: 17px; }
  .main-nav { gap: 2px 0; }
  .main-nav a { padding: 7px 9px; font-size: 13.5px; }
  .hero { padding: 36px 0 32px; }
  .hero-stats { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .hero-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 14px; }
  .hero-stats strong { font-size: 17px; }
  section { padding: 34px 0; }
  .grid-2, .grid-3, .show-grid-4 { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: 1fr; }
  .search-bar { padding: 10px 12px; }
  .calc-banner { padding: 12px; }
  .panel { padding: 18px; }
  .result-hero { padding: 20px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid .kpi:first-child { grid-column: 1 / -1; }
  .row-2 { grid-template-columns: 1fr; }
  .article { border-radius: 12px; }
  .footer-links { gap: 22px 28px; }
  table.data th, table.data td { padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 400px) {
  .input-wrap.has-select select { width: 78px; flex-basis: 78px; }
  .form-actions { flex-direction: column; }
}

/* ---------- v2 responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 560px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-panel { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .nav-ico { display: none; }
  .hero-badges { gap: 6px; margin-top: 20px; }
  .hero-badges li { padding: 6px 11px; font-size: 12px; }
  .hero-badges span { display: none; }
  .dash { padding: 16px 15px 14px; border-radius: 15px; }
  .dash-bars li { grid-template-columns: 74px minmax(0, 1fr) 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .metric-ico { margin-bottom: 0; }
  .metric strong { font-size: 21px; }
  .metric-label { flex: 1 1 100%; }
  .show-card { padding: 18px; }
  .show-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 19px; }
  .show-titles h3 { font-size: 17.5px; }
  a.card.guide-featured { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .guide-ico { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }
  .guide-body h3 { font-size: 17.5px; }
  .guide-go { display: none; }
  .cta-band { padding: 22px 20px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 680px) {
  .table-scroll { box-shadow: inset -14px 0 14px -12px rgba(18, 33, 58, .22); }
  .rate-panel { padding: 18px; }
  .rate-panel table.data th,
  .rate-panel table.data td { white-space: normal; padding: 8px 7px; font-size: 12px; }
  .rate-panel table.data caption { font-size: 11.5px; }
}

.table-hint { display: none; }

@media (max-width: 680px) {
  .table-scroll.is-scrollable + .table-hint {
    display: block;
    margin: 6px 0 0;
    font-size: 11.5px;
    color: var(--ink-mute);
    text-align: right;
  }
  .table-scroll.is-scrollable.at-end + .table-hint { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- v3 : archive filter ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 18px; }
.filter-btn {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.filter-btn span { color: var(--ink-mute); font-size: 12.5px; font-weight: 600; }
.filter-btn:hover { border-color: #c9d8e2; color: var(--brand); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-btn.is-active span { color: #cfe3ec; }
.filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.archive-card { display: flex; flex-direction: column; gap: 6px; }
.archive-card .meta { margin: 0; }
.archive-card h3 { margin: 0; font-size: 16.5px; line-height: 1.45; letter-spacing: -0.02em; }
.archive-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.archive-card .archive-foot { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--ink-mute); }
.archive-card.is-hidden { display: none !important; }

.archive-status { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ink-mute); min-height: 1.2em; }
.archive-more { display: flex; justify-content: center; margin-top: 14px; }
.archive-more .btn[hidden] { display: none; }

@media (max-width: 680px) {
  .filter-bar { gap: 6px; margin: 14px 0 16px; }
  .filter-btn { padding: 7px 12px; font-size: 13px; }
  .archive-card h3 { font-size: 16px; }
}

/* ============================================================
   관리자 페이지 (admin.html) — 사이트 디자인 토큰 재사용
   ============================================================ */
.admin-body { background: var(--bg); }

.admin-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  flex-wrap: wrap;
}
.admin-top-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--accent-soft);
  border: 1px solid #cfe8e3;
  border-radius: 999px;
  padding: 5px 11px;
}
.admin-link { font-size: 13.5px; font-weight: 700; color: var(--brand); }

.admin-wrap { padding-top: 30px; padding-bottom: 56px; max-width: 1200px; }
.admin-head { margin-bottom: 20px; }
.admin-head h1 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 31px); letter-spacing: -0.035em; }
.admin-head p { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 78ch; }
.admin-head code, .admin-card code { font-family: var(--mono); font-size: .92em; background: #eef2f7; border-radius: 5px; padding: 1px 5px; }

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-card-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.admin-state {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mute);
  background: #f2f5f9;
  border-radius: 999px;
  padding: 5px 11px;
}
.admin-state.is-ok { color: #0f5a4f; background: var(--accent-soft); }
.admin-state.is-warn { color: #7a5514; background: #fdf4e4; }
.admin-note { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-mute); }

.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mode-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  cursor: pointer;
  background: #fcfdff;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.mode-option:has(input:checked) { border-color: var(--accent); background: #f6fcfb; box-shadow: 0 0 0 3px rgba(18,118,107,.10); }
.mode-option input { margin: 4px 0 0; accent-color: var(--accent); }
.mode-body { display: block; }
.mode-body b { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.mode-body small { display: block; color: var(--ink-mute); font-size: 12.5px; line-height: 1.5; margin-top: 3px; }
.mode-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0f5a4f;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: 1px;
}

.admin-mode-panel { margin-top: 16px; }
.admin-notice {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #1c4f49;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px 13px;
}
.admin-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-soft); margin-top: 12px; cursor: pointer; }
.admin-check input { margin: 3px 0 0; accent-color: var(--accent); }

.admin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.admin-actions-bottom { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.admin-status { font-size: 13.5px; font-weight: 600; color: var(--ink-mute); }
.admin-status.is-ok { color: #0f5a4f; }
.admin-status.is-err { color: var(--danger); }
.admin-result-link { color: var(--brand); font-weight: 700; text-decoration: underline; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-col { min-width: 0; }
.admin-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

.admin-card textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fcfdff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  resize: vertical;
  transition: border-color .12s, box-shadow .12s;
}
.admin-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 118, 107, .13);
  background: #fff;
}
.admin-card textarea.mono { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; }
.req { color: var(--danger); }
.err { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.err:empty { display: none; }

.slug-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.slug-row .input-wrap { flex: 1 1 200px; }

.admin-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.admin-preview-head b { font-size: 13.5px; color: var(--ink-soft); }
.admin-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f9fbfd;
  padding: 10px;
  max-height: 720px;
  overflow: auto;
}
.admin-preview .article {
  box-shadow: none;
  border: 0;
  padding: clamp(16px, 2.6vw, 26px);
  max-width: none;
}
.admin-preview .article h1 { font-size: clamp(21px, 2.4vw, 26px); }
.admin-preview .article h2 { font-size: 19px; }
.admin-empty { margin: 30px 10px; text-align: center; color: var(--ink-mute); font-size: 14px; }

.admin-table { width: 100%; font-size: 13.5px; }
.admin-table th, .admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { font-size: 12px; color: var(--ink-mute); text-transform: none; white-space: nowrap; }
.admin-table td a { color: var(--brand); font-weight: 600; }
.admin-slug { display: block; color: var(--ink-mute); font-size: 11.5px; font-family: var(--mono); margin-top: 3px; word-break: break-all; }
.admin-actions-cell { white-space: nowrap; }
.admin-mini {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 4px 9px;
  margin-right: 4px;
  cursor: pointer;
}
.admin-mini:hover { border-color: var(--brand); text-decoration: none; }
.admin-mini.is-danger { color: var(--danger); }
.admin-mini.is-danger:hover { border-color: var(--danger); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #992f2f; }

.admin-delete-box {
  margin-top: 16px;
  border: 1px solid #f0cfcf;
  background: #fdf5f5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.admin-delete-box p { margin: 0 0 8px; font-size: 13.5px; }

.admin-log {
  margin-top: 12px;
  background: #0d1b2a;
  color: #cfe3f2;
  border-radius: 9px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  max-height: 210px;
  overflow: auto;
}
.admin-log a { color: #7fe0d1; }

.admin-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-guide-grid h3 { margin: 0 0 8px; font-size: 14.5px; }
.admin-guide-grid ol { margin: 0; padding-left: 19px; font-size: 13.5px; color: var(--ink-soft); }
.admin-guide-grid li { margin-bottom: 5px; }

.admin-footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; }
.admin-footer p { margin: 0; font-size: 12.5px; color: var(--ink-mute); }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .mode-switch { grid-template-columns: minmax(0, 1fr); }
  .admin-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-preview { max-height: 520px; }
}
@media (max-width: 560px) {
  .admin-card { padding: 16px; }
  .admin-row-2 { grid-template-columns: minmax(0, 1fr); }
  .admin-wrap { padding-top: 18px; padding-bottom: 40px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}

/* 관리자 미리보기: h1 대신 같은 모양의 문단 (페이지 h1 중복 방지) */
.admin-preview .article-head .preview-h1 {
  margin: 8px 0 12px;
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--ink);
}

/* 데스크톱에서 미리보기를 스크롤에 붙여 둔다 (모바일에서는 해제) */
@media (min-width: 901px) {
  .admin-col-preview { position: sticky; top: 78px; }
}

/* ============================================================
   금융·경제 뉴스 (news.html · 홈 미리보기)
   ============================================================ */

.news-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.news-updated {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 600;
}
.news-hero .lead strong { color: var(--ink); }

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-tab {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.news-tab:hover { border-color: var(--brand); color: var(--brand); }
.news-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 79, 108, .18);
}
.news-tab-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 800;
}
.news-tab.is-active .news-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

.news-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 360px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.news-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 79, 108, .1); }
.news-search-ico { font-size: 14px; }
.news-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.news-status {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-mute);
  min-height: 20px;
}
.news-status.is-warn { color: var(--danger); }

.news-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.news-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-strong); }

.news-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.news-title:hover { color: var(--brand); }

.news-summary {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.news-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.news-source { font-weight: 700; color: var(--brand); }
.news-time::before { content: "·"; margin-right: 6px; color: var(--line-strong); }
.news-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.news-tag-tax { background: #fdf3e6; border-color: #f2ddbf; color: var(--gold); }
.news-tag-loan { background: #eef4f8; border-color: #d6e3ec; color: var(--brand); }
.news-tag-saving { background: var(--accent-soft); border-color: #cfe8e3; color: var(--accent); }
.news-open { margin-left: auto; font-weight: 700; color: var(--brand); white-space: nowrap; }

.news-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.news-note,
.news-loading,
.news-empty {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-mute);
}
.news-empty { font-size: 14px; color: var(--ink-soft); }

.news-list-preview { grid-template-columns: minmax(0, 1fr); }
.news-card-compact { padding: 16px 18px; }
.news-card-compact .news-title { font-size: 15.5px; }
.news-card-compact .news-summary { font-size: 14px; }
.news-list-preview .news-empty { padding: 18px 0; }

.news-guides .news-guide {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-guide-ico { font-size: 22px; }
.news-guide h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.news-guide p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.news-guide-more { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--brand); }

.news-how h3 { margin: 0 0 6px; font-size: 15.5px; }
.news-how p { margin: 0; font-size: 14px; color: var(--ink-soft); }

@media (min-width: 760px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .news-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .news-hero { padding: 32px 0 26px; }
  .news-toolbar { flex-direction: column; align-items: stretch; }
  .news-search { flex: 0 0 auto; width: 100%; max-width: none; }
  .news-tabs { gap: 6px; }
  .news-tab { padding: 8px 11px; font-size: 13px; }
  .news-card { padding: 15px 16px; }
  .news-title { font-size: 15.5px; }
  .news-summary { font-size: 14px; }
  .news-open { margin-left: 0; }
}

/* ============================================================
   계정·구독 UI — 헤더 로그인 버튼, 소셜 로그인 모달,
   뉴스레터 구독 카드, 카카오톡 채널 배너
   ============================================================ */

/* ---------- 헤더 로그인 버튼 ---------- */

.header-login {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: -6px;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .14s ease, box-shadow .14s ease, transform .14s ease;
}
.header-login:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  box-shadow: 0 4px 12px rgba(11, 79, 108, .24);
}
.header-login:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 소셜 로그인 모달 ---------- */

html.login-locked { overflow: hidden; }

.login-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-modal[hidden] { display: none; }

.login-modal-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(9, 23, 40, .56);
}

.login-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(6, 18, 33, .28);
  padding: 26px 26px 20px;
  animation: login-card-in .18s ease-out;
}

@keyframes login-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.login-modal-close:hover { background: var(--bg); color: var(--ink); }

.login-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #cfe8e3;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.login-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.34;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.login-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.social-list { display: flex; flex-direction: column; gap: 8px; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .14s ease, border-color .14s ease, transform .1s ease;
}
.social-btn:hover { box-shadow: 0 3px 12px rgba(18, 33, 58, .1); }
.social-btn:active { transform: translateY(1px); }
.social-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-btn.is-google { border-color: #dadce0; color: #3c4043; }
.social-btn.is-naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.social-btn.is-kakao { background: #FEE500; border-color: #FEE500; color: #191919; }

.social-ico { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.social-ico svg { display: block; }

.login-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #f0dcb4;
  border-radius: 10px;
  background: #fdf7e8;
  color: #7a5a13;
  font-size: 13px;
  line-height: 1.6;
}
.login-note[hidden] { display: none; }

.login-foot {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.login-legal {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
}

@media (max-width: 480px) {
  .login-modal { padding: 12px; align-items: flex-end; }
  .login-modal-card { padding: 22px 18px 18px; border-radius: 16px; }
  .login-title { font-size: 19px; }
  .login-desc { font-size: 13.5px; }
  .social-btn { font-size: 14.5px; min-height: 46px; }
}

/* ---------- 뉴스레터 구독 카드 ---------- */

.newsletter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 26px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b4f6c 0%, #12766b 100%);
  box-shadow: 0 14px 34px rgba(9, 59, 82, .22);
  color: #fff;
}

.nl-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #d9f3ec;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.newsletter-card h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.34;
  letter-spacing: -0.03em;
  color: #fff;
}

.newsletter-card p.nl-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

.nl-points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nl-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.nl-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #9fe6d5;
  font-weight: 800;
}

.newsletter-form {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(6, 18, 33, .18);
}

.nl-field { display: block; }
.nl-field span.nl-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.nl-field input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}
.nl-field input[type="email"]:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 79, 108, .12);
}

.nl-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.nl-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.nl-consent a { color: var(--brand); text-decoration: underline; }

.newsletter-form .btn { width: 100%; margin-top: 12px; }

.nl-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nl-status {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink-soft);
}
.nl-status[hidden] { display: none; }
.nl-status.is-success { color: #0e6b52; }
.nl-status.is-error { color: var(--danger); }
.nl-status.is-pending { color: var(--ink-mute); }

.nl-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ---------- 카카오톡 채널 ---------- */

.kakao-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: #FEE500;
  color: #191919;
  box-shadow: var(--shadow);
}
.kakao-banner .kb-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(25, 25, 25, .08);
  font-size: 24px;
}
.kakao-banner .kb-body { min-width: 0; }
.kakao-banner h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #191919;
}
.kakao-banner p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(25, 25, 25, .74);
}
.kakao-banner .kb-action { margin-left: auto; flex: 0 0 auto; }

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border: 1px solid #191919;
  border-radius: 999px;
  background: #191919;
  color: #FEE500;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .14s ease, transform .1s ease;
}
.kb-btn:hover { opacity: .88; }
.kb-btn:active { transform: translateY(1px); }
.kb-btn:focus-visible { outline: 2px solid #191919; outline-offset: 3px; }

.kakao-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(25, 25, 25, .78);
}
.kakao-note[hidden] { display: none; }

.footer-kakao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.footer-kakao:hover { color: var(--brand); text-decoration: underline; }

.kakao-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 130;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #191919;
  color: #FEE500;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(6, 18, 33, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.kakao-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .login-modal-card { animation: none; }
  .kakao-toast { transition: none; }
}

@media (max-width: 900px) {
  .newsletter-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 26px; }
}

@media (max-width: 680px) {
  .header-login { order: 1; margin-left: auto; margin-right: 0; padding: 7px 12px; font-size: 12.5px; }
  .newsletter-card { padding: 22px 18px; }
  .nl-points li { font-size: 13px; }
  .newsletter-form { padding: 16px; }
  .kakao-banner { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .kakao-banner .kb-action { margin-left: 0; width: 100%; }
  .kb-btn { width: 100%; }
}
