/* ==========================================================================
   2027 개인회생 월 변제금 계산기 — 공통 스타일
   모바일 우선 · 외부 폰트/프레임워크 없음 · 단일 파일
   ========================================================================== */

:root {
  --ink: #101b2d;
  --ink-2: #3d4c63;
  --ink-3: #6b7a90;
  --line: #e3e8f0;
  --line-strong: #cdd6e3;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #1652d0;
  --brand-dark: #0e3ea8;
  --brand-soft: #ebf1ff;
  --good: #0b7a5f;
  --good-soft: #e6f7f1;
  --mint: #5fe0b5;
  --warn: #9a5b06;
  --warn-soft: #fff6e6;
  --danger: #b42318;
  --danger-soft: #fdf0ef;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 45, .05);
  --shadow: 0 1px 2px rgba(16, 27, 45, .04), 0 10px 28px rgba(16, 27, 45, .07);
  --maxw: 1080px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "맑은 고딕", "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 스크린리더 전용 */
.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;
}

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

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

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(22, 82, 208, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--brand) 0%, #0a2f7a 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(22, 82, 208, .28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.15;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }

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

.hero {
  padding: 30px 0 22px;
  background:
    radial-gradient(900px 320px at 15% -10%, #e8f0ff 0%, rgba(232, 240, 255, 0) 70%),
    radial-gradient(700px 300px at 95% 0%, #e6f7f1 0%, rgba(230, 247, 241, 0) 65%),
    var(--bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 5px 11px 5px 9px;
  border: 1px solid #cfdcf6;
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #12b886;
  box-shadow: 0 0 0 3px rgba(18, 184, 134, .16);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 7.2vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.br-m { line-height: 0; }

.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, rgba(95, 224, 181, .55) 62%);
}

.lede {
  max-width: 44em;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.72;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.hero-stats strong {
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-stats .up { color: var(--good); }

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

section { scroll-margin-top: 72px; }

.section {
  padding: 34px 0;
}
.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 4.6vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

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

/* -------------------------------------------------------------- ad slot -- */

.ad-slot {
  width: 100%;
  max-width: var(--maxw);
  margin: 18px auto;
  padding: 0 18px;
  text-align: center;
}
.ad-slot:empty { display: none; }
.ad-slot > * { margin: 0 auto; }

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

.calc-grid {
  display: grid;
  gap: 18px;
}

.calc-form {
  display: grid;
  gap: 22px;
  padding: 22px 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { min-width: 0; border: 0; padding: 0; margin: 0; }

.field > legend,
.field > label,
.field-label {
  display: block;
  padding: 0;
  margin-bottom: 3px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.field .hint {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 3px;
}
.help {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* segmented radio group */
.seg {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
}
.seg-6 { grid-template-columns: repeat(3, 1fr); }
.seg-2 { grid-template-columns: repeat(2, 1fr); }

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.seg label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
  text-align: center;
  line-height: 1.25;
}
.seg label small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}
.seg label:hover { border-color: #9fb4d6; }
.seg input:checked + label {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.seg input:checked + label small { color: var(--brand-dark); opacity: .8; }
.seg input:focus-visible + label { outline: 3px solid rgba(22, 82, 208, .4); outline-offset: 2px; }

/* money input */
.money-input {
  position: relative;
  display: flex;
  align-items: center;
}
.money-input input {
  width: 100%;
  padding: 13px 40px 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: right;
  transition: border-color .12s, box-shadow .12s;
}
.money-input input::placeholder { color: #a9b4c4; font-weight: 600; }
.money-input input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 82, 208, .14);
}
.money-input .suffix {
  position: absolute;
  right: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  pointer-events: none;
}
.money-input.is-invalid input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.field-note {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.field-note.is-warn { color: var(--warn); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.chip {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.chip:active { transform: translateY(1px); }

/* ------------------------------------------------------------ result -- */

.result {
  display: grid;
  gap: 14px;
  align-content: start;
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(158deg, #13233a 0%, #0d1b2e 55%, #102b43 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(13, 27, 46, .22);
}
.result-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 224, 181, .22) 0%, rgba(95, 224, 181, 0) 68%);
  pointer-events: none;
}

.result-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9fb3cd;
  letter-spacing: 0;
}
.result-eyebrow .tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(95, 224, 181, .16);
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.result-amount {
  margin: 0;
  font-size: clamp(34px, 9.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.result-amount .won {
  font-size: .48em;
  font-weight: 700;
  margin-left: 3px;
  color: #c6d6ea;
  letter-spacing: 0;
}

.result-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: #b6c6db;
  font-variant-numeric: tabular-nums;
}
.result-sub strong { color: #fff; font-weight: 800; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, .12);
  color: #e7eefb;
  border: 1px solid rgba(255, 255, 255, .18);
}
.badge.is-good { background: rgba(95, 224, 181, .16); color: var(--mint); border-color: rgba(95, 224, 181, .35); }
.badge.is-warn { background: rgba(255, 196, 87, .16); color: #ffd08a; border-color: rgba(255, 196, 87, .35); }

.saving {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 15px;
  border-radius: var(--radius);
  background: var(--good-soft);
  border: 1px solid #bfe9da;
  color: #075747;
  font-size: 13.5px;
  line-height: 1.55;
}
.saving .saving-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #12b886;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.saving strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #05483b;
}
.saving.is-none { background: #f1f4f9; border-color: var(--line); color: var(--ink-2); }
.saving.is-none .saving-icon { background: var(--ink-3); }

.compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 6px;
}
.compare h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare h3 .h3-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.compare th,
.compare td {
  padding: 8px 4px;
  border-bottom: 1px solid #eef1f6;
  text-align: right;
  white-space: nowrap;
}
.compare thead th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
  white-space: normal;
  font-weight: 600;
  color: var(--ink-2);
  padding-right: 8px;
}
.compare thead th:first-child { font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .is-2027 { color: var(--brand-dark); font-weight: 800; }
.compare .diff { color: var(--good); font-weight: 800; }

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.metric {
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.metric dt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.metric dd {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric dd .unit { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.metric.is-rate dd { color: var(--good); }
.metric.is-rate dd .unit { color: var(--good); opacity: .8; }

.ratebar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: #e7ecf4;
  overflow: hidden;
}
.ratebar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #12b886, #5fe0b5);
  width: 0;
  transition: width .35s ease;
}

.alerts {
  display: grid;
  gap: 8px;
}
.alert {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.55;
  border: 1px solid;
}
.alert .alert-icon {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
}
.alert.is-warn { background: var(--warn-soft); border-color: #f3ddb4; color: #7a4703; }
.alert.is-info { background: #f2f6fd; border-color: #d5e2f8; color: #24446f; }
.alert.is-danger { background: var(--danger-soft); border-color: #f3c9c5; color: #8f1d15; }
.alert strong { font-weight: 800; }

.result-actions {
  display: flex;
  gap: 8px;
}
.btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.disclaimer {
  margin: 0;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: #f1f4f9;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.disclaimer strong { color: var(--ink); }

/* ------------------------------------------------------------- content -- */

.prose {
  max-width: 46em;
  font-size: 15px;
  color: var(--ink-2);
}
.prose h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.15em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose a { font-weight: 700; }

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 14px 16px 14px 50px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; color: var(--ink); margin-bottom: 2px; }

.formula {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #0f1c2e;
  color: #d9e3f2;
  font-size: 13.5px;
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}
.formula code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #fff;
  background: none;
}
.formula .op { color: #7fb0ff; }
.formula .hi { color: var(--mint); }

/* tables in content */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: 0 0 16px;
}
table.data {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
table.data th,
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f6;
  text-align: right;
  white-space: nowrap;
}
table.data thead th {
  background: #f7f9fd;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
table.data th:first-child,
table.data td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  white-space: normal;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr.is-highlight td { background: #f4f9ff; }
table.data td.up { color: var(--good); font-weight: 800; }
table.data td.strong-2027 { color: var(--brand-dark); font-weight: 800; }
table.data td.wrap-cell { white-space: normal; text-align: left; }

/* callouts */
.callout {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 3px; }
.callout.is-info { background: #f2f6fd; border-color: #d5e2f8; color: #24446f; }
.callout.is-warn { background: var(--warn-soft); border-color: #f3ddb4; color: #7a4703; }
.callout.is-good { background: var(--good-soft); border-color: #bfe9da; color: #075747; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq details[open] { border-color: #c9d7f0; }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 44px 14px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: #fafcff; }
.faq .faq-a {
  padding: 0 15px 15px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
  border-top: 1px solid #f0f3f8;
  margin-top: -1px;
  padding-top: 12px;
}
.faq .faq-a p { margin: 0 0 8px; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq .faq-a ul { margin: 0 0 8px; padding-left: 1.1em; }
.faq .faq-a li { margin-bottom: 4px; }

/* related links */
.related {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.related a:hover {
  text-decoration: none;
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(22, 82, 208, .1);
}
.related .rel-title {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.related .rel-desc {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.5;
}
.related .rel-arrow { color: var(--brand); font-weight: 800; flex: 0 0 auto; }

/* CTA box */
.cta-box {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #13233a, #0e2138);
  color: #fff;
  box-shadow: 0 14px 34px rgba(13, 27, 46, .2);
}
.cta-box h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.cta-box p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #b6c6db;
  line-height: 1.6;
}
.cta-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  padding: 13px 18px;
  background: var(--mint);
  border-color: var(--mint);
  color: #06342a;
  font-weight: 800;
  text-decoration: none;
}
.cta-box .btn:hover { background: #4fd6aa; border-color: #4fd6aa; color: #06342a; text-decoration: none; }

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

.page-head {
  padding: 24px 0 8px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); font-weight: 600; }

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.article-meta .dot-sep { color: var(--line-strong); }

.article {
  max-width: 46em;
}
.article h2 {
  margin: 34px 0 10px;
  font-size: clamp(19px, 4.2vw, 23px);
  letter-spacing: -0.035em;
  line-height: 1.35;
  scroll-margin-top: 78px;
}
.article h2:first-of-type { margin-top: 12px; }
.article h3 {
  margin: 24px 0 8px;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  scroll-margin-top: 78px;
}
.article p { margin: 0 0 13px; font-size: 15px; line-height: 1.78; color: var(--ink-2); }
.article > p:first-of-type { font-size: 15.5px; }
.article ul, .article ol { margin: 0 0 15px; padding-left: 1.2em; color: var(--ink-2); }
.article li { margin-bottom: 7px; font-size: 14.5px; line-height: 1.7; }
.article strong { color: var(--ink); font-weight: 800; }

.toc {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: 0 0 20px;
}
.toc p {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.toc ol {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13.5px;
}
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink-2); font-weight: 600; }
.toc a:hover { color: var(--brand-dark); }

.summary-box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #cfdcf6;
  background: linear-gradient(180deg, #f5f9ff, #fff);
  margin: 0 0 18px;
}
.summary-box p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.summary-box p:last-child { margin-bottom: 0; }
.summary-box strong { color: var(--brand-dark); }

.sources {
  margin: 28px 0 0;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: #f1f4f9;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}
.sources p { margin: 0 0 6px; font-size: 12px; color: var(--ink-3); }
.sources p:first-child { font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

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

.site-footer {
  margin-top: 34px;
  padding: 26px 0 34px;
  background: #0f1c2e;
  color: #9fb0c6;
  font-size: 12.5px;
  line-height: 1.75;
}
.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 16px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-text em { color: #8097b3; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.site-footer a { color: #c3d1e3; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-note { margin: 0 0 8px; }
.site-footer .footer-note strong { color: #dbe5f2; }
.site-footer .footer-legal { margin: 0; color: #7488a1; font-size: 11.5px; }

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

@media (min-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .br-m { display: none; }
  .seg-6 { grid-template-columns: repeat(6, 1fr); }
  .seg-2 label { flex-direction: row; gap: 6px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cta-box .btn { width: auto; }
}

@media (min-width: 900px) {
  .hero { padding: 46px 0 30px; }
  .section { padding: 44px 0; }
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: 22px;
    align-items: start;
  }
  .calc-form { padding: 26px 26px 28px; }
  .result { position: sticky; top: 76px; }
  .result-hero { padding: 24px 24px 20px; }
  .related { grid-template-columns: 1fr 1fr; }
  .related li:first-child { grid-column: 1 / -1; }
  .site-nav a { font-size: 14px; padding: 8px 13px; }
}

@media (max-width: 400px) {
  .brand-text { display: none; }
  .hero h1 { font-size: 26px; }
}

/* --------------------------------------------------------------- print -- */

@media print {
  .site-header, .site-nav, .ad-slot, .site-footer, .result-actions,
  .chips, .related, .cta-box, .skip-link { display: none !important; }
  body { background: #fff; }
  .result { position: static; }
  .result-hero { background: #fff !important; color: #000 !important; border: 1px solid #ccc; box-shadow: none; }
  .result-hero * { color: #000 !important; }
  .calc-form, .compare, .metric { box-shadow: none; }
  .card, .calc-form { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #666; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
