/* ==========================================================================
   도토리랩 — 공통 스타일
   시안 A · 토스식 울트라 미니멀 화이트
   · 배경 #F9FAFB · 카드 #FFFFFF · 텍스트 #191F28/#4E5968/#8B95A1
   · 포인트 #3182F6 (소프트 #E8F3FF) · 충족/긍정 #00A86B
   모바일 퍼스트 · 의존성 0 (Pretendard CDN + 시스템 폰트 폴백)
   ========================================================================== */

:root {
  /* 컬러 */
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --line: #f1f3f5;
  --line-strong: #e5e8eb;
  --ink: #191f28;
  --sub: #4e5968;
  --muted: #8b95a1;
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --blue-soft: #e8f3ff;
  --green: #00a86b;
  --green-soft: #e6f8f1;
  --red: #f04452;
  --red-soft: #ffeeef;
  --warn: #f59f00;
  --warn-soft: #fff7e6;

  /* 형태 */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(25, 31, 40, 0.04);
  --shadow: 0 2px 8px rgba(25, 31, 40, 0.04), 0 12px 28px rgba(25, 31, 40, 0.05);
  --shadow-pop: 0 8px 32px rgba(25, 31, 40, 0.1);
  --ring: 0 0 0 3px rgba(49, 130, 246, 0.14);

  /* 레이아웃 */
  --container: 1040px;
  --gutter: 24px;
  --header-h: 64px;
  --gap: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, "Segoe UI", Roboto, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
table {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 700;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--blue-soft);
  color: var(--ink);
}

.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;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 12px 12px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- 레이아웃 ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  display: block;
}

/* ---------- 헤더 ---------- */

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

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(25, 31, 40, 0.04), 0 8px 24px rgba(25, 31, 40, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
}

.brand__mark svg {
  width: 19px;
  height: 19px;
}

.brand__short {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-home,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--sub);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

/* 로고가 홈 링크를 겸하므로 '홈' 텍스트는 좁은 화면 메뉴 안에서만 보여 준다 */
@media (min-width: 901px) {
  .nav-home {
    display: none;
  }
}

.nav-home:hover,
.nav-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.nav-home[aria-current="page"],
.nav-item.is-active > .nav-toggle {
  color: var(--ink);
}

.nav-toggle__chev {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.nav-item.is-open > .nav-toggle {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-item.is-open > .nav-toggle .nav-toggle__chev {
  transform: rotate(180deg);
}

.nav-toggle__short {
  display: none;
}

/* ---------- 카테고리 드롭다운 ---------- */

.nav-item {
  position: relative;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 320px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}

.nav-item.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-panel a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  transition: background 0.14s ease;
}

.nav-panel a:hover {
  background: var(--bg);
  text-decoration: none;
}

.nav-panel a[aria-current="page"] {
  background: var(--blue-soft);
}

.nav-panel__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--sub);
}

.nav-panel a[aria-current="page"] .nav-panel__icon {
  background: #fff;
  color: var(--blue);
}

.nav-panel__icon svg {
  width: 18px;
  height: 18px;
}

.nav-panel__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.nav-panel__label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-panel__desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- 전체 도구 메가 패널 ---------- */

.nav-item--mega .nav-panel {
  left: auto;
  right: 0;
  min-width: 0;
  width: 762px;
  padding: 16px 16px 12px;
  transform: translateY(-4px);
}

.nav-item--mega.is-open .nav-panel {
  transform: translateY(0);
}

.nav-mega {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 10px;
}

.nav-mega__col {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.nav-mega__group {
  display: grid;
  gap: 1px;
  align-content: start;
}

.nav-mega__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.14s ease, background 0.14s ease;
}

.nav-mega__cat:hover {
  background: var(--bg);
  color: var(--sub);
  text-decoration: none;
}

.nav-mega__count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.nav-mega__group.is-current .nav-mega__cat {
  color: var(--blue);
}

.nav-mega__group.is-current .nav-mega__count {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-panel .nav-mega__link {
  display: block;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--ink);
  transition: background 0.14s ease, color 0.14s ease;
}

.nav-panel .nav-mega__link:hover {
  background: var(--bg);
  text-decoration: none;
}

.nav-panel .nav-mega__link[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-mega__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px 2px;
  border-top: 1px solid var(--line);
}

.nav-mega__foot p {
  color: var(--muted);
  font-size: 12px;
}

.nav-mega__all {
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}

/* 헤더 검색 바로가기 */

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  margin-left: 8px;
  padding: 0 9px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nav-search:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
  text-decoration: none;
}

.nav-search svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* ---------- 홈 히어로 ---------- */

.hero {
  padding: 54px 0 4px;
  text-align: center;
}

.hero__eyebrow,
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__badge {
  margin-bottom: 16px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.14);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(27px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero__lead {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero__stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.hero__stats b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- 지금 많이 쓰는 추천 Top 4 ---------- */

.picks {
  margin: 34px 0 0;
  text-align: left;
}

.picks__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.picks__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.picks__title em {
  font-style: normal;
  color: var(--blue);
}

.picks__rank {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.picks__note {
  color: var(--muted);
  font-size: 12.5px;
}

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

.pick {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pick:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.pick__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

.pick__icon svg {
  width: 19px;
  height: 19px;
}

.pick__rank {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pick h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.pick__desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.pick__stat {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.pick__chip {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pick__chip--blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.pick__go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}

.pick:hover .pick__go svg {
  transform: translateX(2px);
}

.pick__go svg {
  transition: transform 0.18s ease;
}

/* ---------- 커맨드 검색 ---------- */

.cmd {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 30px auto 0;
}

.cmd__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 10px 0 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cmd__field:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.cmd__icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--muted);
}

.cmd__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: left;
}

.cmd__input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.cmd__input::-webkit-search-cancel-button {
  display: none;
}

.cmd__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  text-align: left;
  z-index: 40;
}

.cmd__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cmd__item:hover,
.cmd__item.is-active {
  background: var(--bg);
  text-decoration: none;
}

.cmd__cat {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.cmd__empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.cmd__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.cmd__hint {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.14s ease, color 0.14s ease;
}

.cmd__hint:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

/* ---------- 필터 탭 · 칩 ---------- */

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.chip:hover {
  background: var(--bg);
}

.chip[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--blue-dark);
}

.chip__count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.chip[aria-pressed="true"] .chip__count {
  color: var(--blue);
}

/* 홈 카테고리 탭 (밑줄형) */

.tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs .chip {
  flex: none;
  padding: 14px 15px 13px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 600;
}

.tabs .chip:hover {
  background: none;
  color: var(--ink);
}

.tabs .chip[aria-pressed="true"] {
  background: none;
  color: var(--ink);
}

.tabs .chip__count {
  color: var(--muted);
}

.tabs .chip[aria-pressed="true"] .chip__count {
  color: var(--blue);
}

.tabs__thumb {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero + .section {
  padding-top: 20px;
}

.tools-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 20px;
  margin: 14px 2px 10px;
}

.tool-count {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- 도구 목록 (2열 리스트 카드) ---------- */

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

.bento > [hidden] {
  display: none !important;
}

.empty-note {
  display: none;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

.empty-note[data-visible="true"] {
  display: block;
}

.bento .calc-card--row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 15px;
  padding: 17px 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* 카드 오른쪽 핵심 기준 수치 배지 */
.calc-card__metric {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.bento .calc-card--row:hover .calc-card__metric {
  border-color: #d7e6fb;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.bento .calc-card--row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.bento .calc-card--row:active {
  transform: translateY(0);
}

.bento .calc-card--row .calc-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--sub);
  transition: background 0.18s ease, color 0.18s ease;
}

.bento .calc-card--row.is-new .calc-card__icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.bento .calc-card--row .calc-card__icon svg {
  width: 21px;
  height: 21px;
}

.calc-card__body {
  display: block;
  min-width: 0;
}

.calc-card__titlerow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.calc-card__titlerow h3 {
  min-width: 0;
}

.bento .calc-card--row h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.42;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.calc-card__desc {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.5;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.badge-new {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bento .calc-card--row .calc-card__tag {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.calc-card__go {
  display: grid;
  place-items: center;
  color: #c3c9d1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.bento .calc-card--row:hover .calc-card__go {
  color: var(--blue);
  transform: translateX(2px);
}

/* ---------- 카드 (사이트맵·소개·관련 도구) ---------- */

.grid {
  display: grid;
  gap: 12px;
}

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

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

.calc-card {
  position: relative;
  display: block;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.calc-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.calc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-card__top .calc-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--sub);
}

.calc-card__top .calc-card__icon svg {
  width: 20px;
  height: 20px;
}

.calc-card__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.calc-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.calc-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calc-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
}

.arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  transition: transform 0.18s ease;
}

.calc-card:hover .arrow {
  transform: translateX(2px);
}

.related-all {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.card {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.card--flat {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
}

.card--soft {
  background: var(--bg);
  border-color: var(--line);
}

.card--pad-lg {
  padding: 30px 32px;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* ---------- 계산기 페이지 공통 ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--sub);
}

.page-head {
  padding: 40px 0 26px;
  max-width: 840px;
}

.page-head h1 {
  font-size: clamp(23px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.035em;
}

/* 제목 아래 기준·출처·안심 배지 줄 */
.page-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.page-badge svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.page-badge__k {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.page-badge--date .page-badge__k {
  color: var(--blue);
}

.page-badge--safe {
  border-color: #d5f0e3;
  background: var(--green-soft);
  color: #00875a;
  font-weight: 600;
}

.lead {
  margin-top: 12px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.lead b,
.lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* 입력 카드 + 결과 카드 (두 개의 별개 카드) */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: start;
}

.calc-col {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 30px 30px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.03), 0 12px 30px rgba(25, 31, 40, 0.035);
}

.result-col {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 28px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.03), 0 12px 30px rgba(25, 31, 40, 0.035);
}

/* 빠른 설정 프리셋 */

.presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.presets__label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.preset {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.preset:hover {
  border-color: #bcd9ff;
  background: #f7fbff;
  color: var(--blue-dark);
}

.preset.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.result-col .field-group {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.result-col .field-group .field-group__title {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.result-col .field-group .field-group__title h2 {
  font-size: 15.5px;
}

/* ---------- 폼 ---------- */

.field-group {
  min-width: 0;
}

.field-group + .field-group {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.field-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.field-group__title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.step-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pill--blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.field {
  display: block;
  min-width: 0;
}

.field + .field,
.field-row + .field,
.field + .field-row,
.segment + .field,
.field-row + .segment,
.field-help + .field-row,
.check + .field,
.field-control + .field {
  margin-top: 20px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field-label small,
.field-label .muted-sm {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.field-control:focus-within {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.field-control input,
.field-control select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}

.field-control input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.field-control input[type="number"]::-webkit-outer-spin-button,
.field-control input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-control input[type="number"] {
  -moz-appearance: textfield;
}

.field-control select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238B95A1' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
  cursor: pointer;
}

.field-control input[type="date"] {
  font-weight: 500;
}

.field-unit {
  flex: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* 라벨의 단위를 입력칸 안쪽으로 옮긴 칩 */
.field-unit-inline {
  flex: none;
  margin-left: 2px;
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.field-help {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.field-help b,
.field-help strong {
  color: var(--sub);
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-row > .field {
  margin-top: 0;
}

.tool-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.14s ease, color 0.14s ease;
}

.btn-ghost:hover {
  background: var(--line-strong);
  color: var(--ink);
}

.btn-ghost.is-copied,
.btn-ghost.is-done {
  background: var(--green-soft);
  color: var(--green);
}

.copy-btn {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
}

.copy-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.text-box {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.7;
  resize: vertical;
  outline: 0;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-box:focus {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.text-box::placeholder {
  color: var(--muted);
}

/* 세그먼트 (슬라이딩 인디케이터) */

.segment {
  position: relative;
  display: inline-flex;
  gap: 3px;
  padding: 5px;
  background: var(--surface-2);
  border-radius: 13px;
  max-width: 100%;
}

.segment button {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.segment button:hover {
  color: var(--sub);
}

.segment button[aria-pressed="true"] {
  color: var(--ink);
}

.segment__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 0;
  height: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.08);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.segment--wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.segment--wrap button {
  flex: 1 1 auto;
}

/* 체크 · 라디오 */

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.check:hover {
  border-color: var(--line-strong);
}

.check:has(input:checked) {
  border-color: var(--blue);
  background: #f7fbff;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid #d1d6db;
  border-radius: 6px;
  background: var(--surface) no-repeat center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.check input:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.check__label {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.check__desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.check--done .check__label,
.check.is-warn .check__label {
  color: var(--ink);
}

.check.is-warn {
  border-color: #ffd2d6;
  background: #fff8f8;
}

.choice-group {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.choice-group--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.choice:hover {
  border-color: var(--line-strong);
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: #f7fbff;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #d1d6db;
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.choice:has(input:checked) .choice__box {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 5px var(--blue);
}

.choice__label {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.choice__desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.form-embed {
  padding: 6px;
  overflow: hidden;
}

.form-embed__frame {
  display: block;
  width: 100%;
  height: 1180px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}

.form-embed__foot {
  padding: 12px 12px 6px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 결과 패널 ---------- */

.result-card {
  position: relative;
  min-width: 0;
}

.result-card__label {
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.result-value {
  margin-top: 10px;
  color: var(--blue);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.result-value span {
  font-variant-numeric: tabular-nums;
}

.result-sub {
  margin-top: 10px;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.result-card.is-changing .result-value {
  color: var(--blue-dark);
}

/* 결과 요약 — 한 줄 결론 배지 + 구성 비율 바 */

.result-insight {
  margin-top: 22px;
  padding: 18px 18px 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.result-insight__badge {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.result-insight__dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
}

.result-insight__bar {
  display: flex;
  gap: 2px;
  height: 10px;
  margin-top: 15px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.result-insight__seg {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-insight__seg.is-0 {
  background: var(--blue);
}

.result-insight__seg.is-1 {
  background: #a8c8f7;
}

.result-insight__seg.is-2 {
  background: #d3e3f9;
}

.result-insight__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 13px;
}

.result-insight__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.result-insight__legend i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

.result-insight__legend i.is-1 {
  background: #a8c8f7;
}

.result-insight__legend i.is-2 {
  background: #d3e3f9;
}

.result-insight__legend b {
  color: var(--sub);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result-rows {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.result-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.result-row dt {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.result-row dd {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.result-row--strong dt {
  color: var(--sub);
  font-weight: 600;
}

.result-row--strong dd {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
}

.result-row__meter {
  display: none;
}

.result-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.result-note b,
.result-note strong {
  color: var(--sub);
  font-weight: 600;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.result-action {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.result-action:hover {
  background: var(--line-strong);
  color: var(--ink);
}

.result-action:active {
  transform: scale(0.985);
}

.result-action[data-action="copy"] {
  background: var(--blue);
  color: #fff;
}

.result-action[data-action="copy"]:hover {
  background: var(--blue-dark);
}

.result-action.is-done {
  background: var(--green-soft);
  color: var(--green);
}

.result-action svg {
  flex: none;
}

.result-actions__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* 결과 캡처 — 새 창이 차단된 환경에서 쓰는 페이지 안 모달 */

.capture-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(25, 31, 40, 0.52);
  overflow-y: auto;
}

.capture-modal__panel {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 18px 18px 22px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
}

.capture-modal__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.capture-modal__brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.capture-modal__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}

.capture-modal__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.capture-modal__shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
}

.capture-modal__btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.capture-modal__btns .result-action {
  height: 52px;
}

.capture-modal__btns .result-action[data-capture-share] {
  background: var(--blue);
  color: #fff;
}

.capture-modal__btns .result-action[data-capture-share]:hover {
  background: var(--blue-dark);
  color: #fff;
}

.capture-modal__status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.capture-modal__status.is-muted {
  color: var(--muted);
}

/* 게이지 · 프로그레스 */

.gauge {
  margin-top: 16px;
}

.gauge__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.gauge__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.gauge__fill.is-warn,
.gauge__fill.is-bad {
  background: var(--red);
}

.gauge__fill.is-good {
  background: var(--green);
}

.gauge__mark {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--line-strong);
}

.gauge__mark--danger {
  background: #ffc9ce;
}

.gauge__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.gauge__legend {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.progress {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.progress__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* 배지 · 알림 */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge--good {
  background: var(--green-soft);
  color: #009963;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #d8e9ff;
  border-radius: 14px;
  background: #f5f9ff;
  color: #1b64da;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

.notice__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.notice--good {
  border-color: #c9eee0;
  background: #f4fbf8;
  color: #00875a;
}

.notice--good .notice__icon {
  background: var(--green);
}

.notice--warn {
  border-color: #ffd9dc;
  background: #fff7f7;
  color: #d13b48;
}

.notice--warn .notice__icon {
  background: var(--red);
}

/* kv · summary */

.kv {
  border-top: 1px solid var(--line);
}

.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
  font-size: 13.5px;
}

.kv__row > span:last-child {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kv__row--total {
  border-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.kv__row--total > span:last-child {
  color: var(--blue);
  font-weight: 700;
}

.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--sub);
}

.kv-row strong,
.kv-row span:last-child {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kv-row--strong {
  color: var(--ink);
  font-weight: 700;
}

.summary {
  margin-top: 14px;
  padding: 16px 16px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.summary h3 {
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.summary .table-wrap {
  border: 0;
  background: none;
  border-radius: 0;
}

/* 업데이트 비교 (단위가격 등) */

.up-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.up-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 13.5px;
}

.up-list li b {
  color: var(--ink);
  font-weight: 600;
}

.up-list li span {
  color: var(--muted);
}

.up-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.cr-row,
.sa-row {
  margin-top: 12px;
  padding: 14px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.cr-row__head,
.sa-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cr-row__no,
.sa-row__no {
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: -0.01em;
}

.cr-row .field-control,
.sa-row .field-control {
  background: var(--surface);
}

.up-item + .up-item {
  margin-top: 12px;
}

.up-item.is-best {
  border-color: #bcd9ff;
  background: #f7fbff;
}

.up-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.up-item__no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
}

.up-item.is-best .up-item__no {
  background: var(--blue);
  color: #fff;
}

.up-item__name {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: 0;
}

.up-item__name:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.up-item__head .badge {
  display: none;
}

.up-item.is-best .up-item__head .badge {
  display: inline-flex;
}

.up-item__name {
  color: var(--ink);
  font-weight: 600;
}

.up-item .field-control {
  background: var(--surface);
}

/* ---------- 표 ---------- */

.table-wrap {
  position: relative;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.table-wrap.is-scrollable {
  box-shadow: inset -14px 0 14px -14px rgba(25, 31, 40, 0.18);
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

table.data caption {
  padding: 16px 18px 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

table.data thead th {
  padding: 14px 18px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data tbody th,
table.data tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

table.data tbody th {
  color: var(--ink);
  font-weight: 600;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover td {
  background: #fcfcfd;
}

table.data b,
table.data strong {
  color: var(--ink);
  font-weight: 700;
}

table.data td:first-child,
table.data th:first-child {
  color: var(--ink);
  font-weight: 600;
}

table.data.table--text {
  font-size: 13.5px;
}

table.data.table--text tbody td {
  color: var(--sub);
}

.table-scroll-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 본문 · 섹션 ---------- */

.section {
  padding: 54px 0 4px;
}

.section + .section {
  padding-top: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 20.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.section-head__note {
  color: var(--muted);
  font-size: 13.5px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prose-wrap {
  margin-top: 4px;
}

.prose {
  max-width: 820px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: -0.005em;
}

.prose h2,
.prose h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.prose p {
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose b,
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 18px;
  list-style: disc;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.7;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.steps li b {
  color: var(--ink);
  font-weight: 600;
}

.term-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.term {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.term__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.term__head h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.term__text {
  margin-top: 8px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.8;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
}

.source-list li a {
  color: var(--ink);
  font-weight: 600;
}

.source-list li span {
  color: var(--muted);
  font-size: 12px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.65;
}

.mini-list .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}

.muted-sm {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.cell-sub {
  color: var(--muted);
  font-size: 12px;
}

/* 신뢰 카드 */

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

.trust-item {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.trust-item h3 {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.trust-item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- 체크리스트 바 ---------- */

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

.checklist-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  transition: background 0.14s ease;
}

.faq summary:hover {
  background: var(--bg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq details p {
  padding: 0 24px 24px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.85;
}

.faq details p a {
  color: var(--blue);
}

/* ---------- 티스토리 CTA ---------- */

.ts-cta {
  margin-top: 14px;
}

.ts-cta__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ts-cta__link:hover {
  border-color: #cfe2ff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
}

.ts-cta__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ts-cta__blog {
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ts-cta__lead {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ts-cta__title {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ts-cta__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}

.ts-cta--standalone {
  margin-top: 20px;
}

/* ---------- 블로그 배너 · 광고 ---------- */

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.banner__text {
  color: var(--sub);
  font-size: 13.5px;
}

.banner__cta {
  flex: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.banner__cta:hover {
  text-decoration: none;
  background: #dbeaff;
}

.ads-slot {
  margin: 20px 0;
  text-align: center;
}

.ads-label {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 푸터 ---------- */

.site-footer {
  margin-top: 64px;
  padding: 40px 0 44px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__brand:hover {
  text-decoration: none;
}

.site-footer__brand .brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.site-footer__brand .brand__mark svg {
  width: 16px;
  height: 16px;
}

.site-footer__top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__top nav a {
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 500;
}

.site-footer__top nav a:hover {
  color: var(--ink);
}

.site-footer p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.site-footer .disclaimer {
  margin-top: 12px;
  color: #a2aab4;
  font-size: 11.5px;
  line-height: 1.8;
}

.site-footer .disclaimer strong {
  color: var(--muted);
  font-weight: 600;
}

.site-footer a {
  color: var(--sub);
}

.site-footer a:hover {
  color: var(--ink);
}

.embed-footer {
  display: none;
}

/* ---------- 토스트 ---------- */

.dotori-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(25, 31, 40, 0.92);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(25, 31, 40, 0.2);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.dotori-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 동작 · 리빌 ---------- */

html.reveal-ready .section-head,
html.reveal-ready .calc-card,
html.reveal-ready .steps li,
html.reveal-ready .faq details,
html.reveal-ready .prose,
html.reveal-ready .result-card,
html.reveal-ready .card,
html.reveal-ready .summary,
html.reveal-ready .trust-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

html.reveal-ready .section-head.is-revealed,
html.reveal-ready .calc-card.is-revealed,
html.reveal-ready .steps li.is-revealed,
html.reveal-ready .faq details.is-revealed,
html.reveal-ready .prose.is-revealed,
html.reveal-ready .result-card.is-revealed,
html.reveal-ready .card.is-revealed,
html.reveal-ready .summary.is-revealed,
html.reveal-ready .trust-item.is-revealed {
  opacity: 1;
  transform: none;
}

html.reveal-ready .reveal-skip {
  transition: none;
}

.calc-card.is-filtering {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.13s ease, transform 0.13s ease;
}

.calc-card.is-entering {
  opacity: 0;
  transform: translateY(6px);
}

/* ---------- 임베드 모드 (?embed=1) ---------- */

body.embed-mode {
  background: #fff;
}

body.embed-mode .site-header,
body.embed-mode .site-footer,
body.embed-mode .skip-link,
body.embed-mode .hero,
body.embed-mode .breadcrumb,
body.embed-mode .page-head .lead,
body.embed-mode .page-head .meta-row,
body.embed-mode .ads-slot,
body.embed-mode .banner,
body.embed-mode .embed-hidden,
body.embed-mode .ts-cta,
body.embed-mode [data-blog-banner] {
  display: none !important;
}

body.embed-mode main {
  padding: 8px 0 0;
}

body.embed-mode .container {
  max-width: 100%;
  padding: 0 10px;
}

body.embed-mode .page-head {
  padding: 0 0 10px;
  max-width: none;
}

body.embed-mode .page-badges {
  display: none;
}

body.embed-mode .page-head h1 {
  font-size: 18px;
  letter-spacing: -0.03em;
}

body.embed-mode .calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

body.embed-mode .calc-col,
body.embed-mode .result-col {
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  box-shadow: none;
}

body.embed-mode .result-col {
  position: static;
  padding-top: 14px;
  border: 1px solid var(--line);
}

body.embed-mode .presets {
  display: none;
}

body.embed-mode .result-value {
  font-size: 28px;
}

body.embed-mode .result-rows {
  margin-top: 14px;
}

body.embed-mode .section {
  padding: 22px 0 0;
}

body.embed-mode .faq summary::after {
  content: "";
}

body.embed-mode .embed-footer {
  display: block;
  padding: 16px 0 8px;
  text-align: right;
  font-size: 12.5px;
}

body.embed-mode .embed-footer a {
  color: var(--muted);
}

/* ---------- 접근성: 동작 줄이기 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.reveal-ready .section-head,
  html.reveal-ready .calc-card,
  html.reveal-ready .steps li,
  html.reveal-ready .faq details,
  html.reveal-ready .prose,
  html.reveal-ready .result-card,
  html.reveal-ready .card,
  html.reveal-ready .summary,
  html.reveal-ready .trust-item {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 반응형 ---------- */

@media (max-width: 1000px) {
  .site-nav {
    gap: 2px;
  }

  .nav-home,
  .nav-toggle {
    height: 32px;
    padding: 0 8px;
    font-size: 13.5px;
  }

  .nav-search {
    height: 32px;
    margin-left: 6px;
    padding: 0 8px;
  }

  .nav-item--mega .nav-panel {
    width: 700px;
  }

  .calc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 18px;
  }

  .calc-col {
    padding: 26px 24px 28px;
  }

  .result-col {
    padding: 24px 22px 22px;
  }

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

@media (max-width: 900px) {
  :root {
    --header-h: 58px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    padding: 10px 0 0;
  }

  .site-nav {
    margin-left: 0;
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    margin-top: 4px;
    padding-bottom: 2px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-home,
  .nav-toggle {
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  .nav-toggle__full {
    display: none;
  }

  .nav-toggle__short {
    display: inline;
  }

  .nav-item {
    position: static;
  }

  .nav-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    min-width: 0;
    transform: translateY(-4px);
    max-height: 60vh;
    overflow-y: auto;
  }

  .nav-item--mega .nav-panel {
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
  }

  .nav-mega {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }

  .nav-item.is-open .nav-panel {
    transform: translateY(0);
  }

  /* 좌우 두 카드를 세로로 쌓고, 결과 카드를 먼저 보여 준다 */
  .calc-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .calc-col,
  .result-col {
    padding: 24px 18px 26px;
    border-radius: var(--radius-lg);
  }

  .result-col {
    position: static;
    order: -1;
  }

  .calc-col {
    gap: 26px;
  }

  .calc-col > .field-group + .field-group {
    padding-top: 26px;
  }

  .result-col > .field-group {
    padding-top: 22px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }

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

  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .brand__full {
    display: none;
  }

  .brand__short {
    display: inline;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .calc-card--row {
    padding: 15px 16px;
    gap: 12px;
    border-radius: var(--radius);
  }

  .bento .calc-card--row {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    grid-template-areas:
      "icon body go"
      "icon metric go";
    align-items: start;
    gap: 7px 12px;
  }

  .bento .calc-card--row .calc-card__icon {
    grid-area: icon;
  }

  .bento .calc-card--row .calc-card__body {
    grid-area: body;
  }

  .bento .calc-card--row .calc-card__metric {
    grid-area: metric;
    justify-self: start;
    align-self: start;
    margin-top: 1px;
  }

  .bento .calc-card--row .calc-card__go {
    grid-area: go;
    align-self: center;
  }

  .calc-card__metric {
    padding: 3px 7px;
    font-size: 11px;
  }

  .picks {
    margin-top: 26px;
  }

  .pick {
    padding: 15px 14px 14px;
    gap: 8px;
  }

  .pick__desc {
    display: none;
  }

  /* 배지 3개가 화면 밖으로 밀리면 '입력값 서버 전송 없음'을 못 본다.
     가로 스크롤 대신 줄바꿈해 모두 보이게 한다(390/360 공통). */
  .page-badges {
    margin-top: 12px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-badge {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 4px 9px;
    font-size: 11.5px;
    white-space: normal;
  }

  .calc-card--row .calc-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

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

  .page-head {
    padding: 26px 0 20px;
  }

  .lead {
    font-size: 14.5px;
  }

  .section {
    padding: 40px 0 4px;
  }

  .section-head h2 {
    font-size: 18.5px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero__lead {
    font-size: 14.5px;
  }

  .cmd {
    margin-top: 24px;
  }

  .cmd__field {
    height: 54px;
    padding-left: 16px;
  }

  .cmd__input {
    font-size: 15px;
  }

  .tabs {
    justify-content: flex-start;
    margin-top: 32px;
  }

  .tabs .chip {
    padding: 12px 11px 11px;
    font-size: 14.5px;
  }

  .tools-meta {
    margin-bottom: 8px;
  }

  .result-value {
    font-size: 32px;
  }

  .result-action {
    height: 48px;
  }

  .field-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq summary {
    padding: 18px 18px;
    font-size: 14.5px;
  }

  .faq details p {
    padding: 0 18px 22px;
    font-size: 13.5px;
  }

  .site-footer {
    margin-top: 48px;
    padding: 32px 0 36px;
  }

  .site-footer__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .nav-search {
    padding: 0 8px;
    border-color: transparent;
    background: none;
  }

  .nav-search:hover {
    background: var(--surface-2);
  }

  .nav-search__text {
    display: none;
  }

  .nav-mega {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-mega__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .picks__grid {
    gap: 8px;
  }

  .pick {
    padding: 13px 12px 12px;
    gap: 6px;
  }

  .pick__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .pick__icon svg {
    width: 16px;
    height: 16px;
  }

  .pick h3 {
    font-size: 13.5px;
    line-height: 1.35;
  }

  .pick__chip {
    padding: 2px 6px;
    font-size: 10.5px;
  }

  .pick__go {
    font-size: 11.5px;
  }

  .calc-layout {
    gap: 10px;
  }

  .calc-col,
  .result-col {
    padding: 22px 16px 24px;
    border-radius: 20px;
  }

  .presets {
    padding: 11px 12px;
  }

  .field-control {
    height: 52px;
  }

  .segment--wrap button {
    flex: 1 1 46%;
  }

  .field-row {
    gap: 10px;
  }

  .field-row--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-actions {
    gap: 8px;
  }

  .result-action {
    font-size: 13.5px;
    padding: 0 8px;
  }

  .choice-group--two {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 표: 좁은 화면에서 라벨-값 2단 적재 */
  table.data.table--stack {
    min-width: 0;
  }

  table.data.table--stack thead {
    display: none;
  }

  table.data.table--stack tbody tr {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  table.data.table--stack tbody tr:last-child {
    border-bottom: 0;
  }

  table.data.table--stack tbody th {
    display: block;
    padding: 8px 14px;
    border: 0;
    font-size: 13px;
  }

  table.data.table--stack tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 14px;
    border: 0;
    font-size: 13px;
  }

  table.data.table--stack tbody td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }

  table.data.table--stack tbody td:not([data-label]) {
    display: block;
  }

  table.data.table--stack tbody td:not([data-label])::before {
    content: none;
  }

  .table-wrap {
    box-shadow: none;
  }

  .checklist-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 14px;
  }

  .calc-card--row h3 {
    font-size: 14.5px;
  }

  .calc-card__desc {
    font-size: 12.5px;
  }

  .calc-card__metric {
    padding: 2px 5px;
    font-size: 10px;
  }

  .result-value {
    font-size: 28px;
  }
}

/* ==========================================================================
   2026-11-28 — 카테고리 드롭다운 6개 · 모바일 햄버거 · 검색 창 · 접힘 패널
   ========================================================================== */

/* ---------- 카테고리별 드롭다운 ---------- */

.nav-item--cat .nav-panel {
  min-width: 248px;
  padding: 8px;
}

.nav-panel a.nav-panel__link {
  display: block;
  padding: 8px 12px;
  border-radius: 11px;
}

.nav-panel a.nav-panel__link .nav-panel__label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-panel a.nav-panel__link .nav-panel__desc {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
}

.nav-panel__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--line);
  color: var(--blue-dark) !important;
  font-size: 13px;
  font-weight: 600;
}

.nav-panel__all:hover {
  background: var(--blue-soft);
  text-decoration: none;
}

button.nav-search {
  font: inherit;
  cursor: pointer;
}

/* ---------- 모바일 햄버거 ---------- */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.nav-burger__bar {
  display: block;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.16s ease;
}

body.is-nav-open .nav-burger__bar:nth-child(1) {
  transform: translateY(5.8px) rotate(45deg);
}

body.is-nav-open .nav-burger__bar:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .nav-burger__bar:nth-child(3) {
  transform: translateY(-5.8px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(17, 22, 30, 0.36);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-backdrop[hidden] {
  display: none;
}

body.is-nav-open .nav-backdrop {
  opacity: 1;
}

/* ---------- 헤더 검색 창 ---------- */

html.is-modal-open,
html.is-modal-open body {
  overflow: hidden;
}

.search-modal {
  position: fixed;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: transparent;
  overflow: visible;
}

.search-modal::backdrop {
  background: rgba(17, 22, 30, 0.42);
}

.search-modal__box {
  position: absolute;
  top: 9vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 28px));
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.search-modal__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-modal__icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--muted);
}

.search-modal__icon svg {
  width: 17px;
  height: 17px;
}

.search-modal__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
  outline: none;
}

.search-modal__input::-webkit-search-cancel-button {
  display: none;
}

.search-modal__close {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.search-modal__list {
  overflow-y: auto;
  padding: 8px;
}

.search-modal__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.search-modal__item:hover,
.search-modal__item.is-active {
  background: var(--blue-soft);
  text-decoration: none;
}

.search-modal__item .nav-panel__desc {
  flex: none;
}

.search-modal__empty {
  padding: 4px 20px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.search-modal__hint {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 상세페이지 하단 접힘 패널 ---------- */

.more-panel {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.more-panel__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  transition: background 0.14s ease;
}

.more-panel__summary::-webkit-details-marker {
  display: none;
}

.more-panel__summary:hover {
  background: var(--bg);
}

.more-panel__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.more-panel__title {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.more-panel__hint {
  color: var(--muted);
  font-size: 12.5px;
}

.more-panel__chev {
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.more-panel[open] .more-panel__chev {
  transform: rotate(180deg);
}

.more-panel__body {
  padding: 0 22px 26px;
  border-top: 1px solid var(--line);
}

.more-panel__body > .section:first-child {
  padding-top: 30px;
}

/* ---------- 결과 카드 상세 내역 접힘 ---------- */

.result-more {
  margin-top: 4px;
  border-top: 1px dashed var(--line-strong);
}

.result-more__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px 4px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.result-more__summary::-webkit-details-marker {
  display: none;
}

.result-more__summary:hover {
  color: var(--ink);
}

.result-more .more-panel__chev {
  margin-left: auto;
}

.result-more[open] .more-panel__chev {
  transform: rotate(180deg);
}

.result-rows--more {
  margin-top: 4px;
}

/* ---------- 세부 설정 더보기 ---------- */

.calc-col > .field-more {
  margin-top: 0;
}

.field-more {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}

.field-more__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.field-more__summary::-webkit-details-marker {
  display: none;
}

.field-more__summary:hover {
  color: var(--ink);
}

.field-more__summary .more-panel__chev {
  margin-left: auto;
}

.field-more[open] .more-panel__chev {
  transform: rotate(180deg);
}

.field-more__body {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.field-more__body > .field:first-child,
.field-more__body > .field-row:first-child,
.field-more__body > .segment:first-child {
  margin-top: 16px;
}

/* ---------- 좁은 화면: 햄버거 메뉴 ---------- */

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 var(--gutter);
    height: var(--header-h);
  }

  .brand {
    margin-right: auto;
  }

  .nav-burger {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 58;
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px var(--gutter) 26px;
    max-height: calc(100dvh - var(--header-h) - 8px);
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(20, 26, 34, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  body.is-nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-home {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 4px;
    font-size: 15.5px;
    color: var(--ink);
  }

  .nav-item {
    position: static;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 4px;
    border-radius: 0;
    color: var(--ink);
    font-size: 15.5px;
  }

  .nav-toggle:hover {
    background: none;
  }

  .nav-toggle__full {
    display: inline;
  }

  .nav-toggle__short {
    display: none;
  }

  .nav-panel,
  .nav-item--cat .nav-panel,
  .nav-item--mega .nav-panel {
    position: static;
    left: auto;
    right: auto;
    width: auto;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    overflow: visible;
  }

  .nav-item.is-open .nav-panel {
    display: block;
    transform: none;
  }

  .nav-panel__link {
    padding: 9px 10px 9px 14px;
  }

  .nav-panel__all {
    margin-top: 2px;
    padding-left: 14px;
  }

  /* 햄버거 메뉴 안에서는 검색도 한 줄 메뉴로 */
  .site-nav .nav-search {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    height: 52px;
    margin: 4px 0 0;
    padding: 0 4px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    color: var(--ink);
  }

  .site-nav .nav-search__text {
    display: inline;
    font-size: 15.5px;
    font-weight: 600;
  }

  .site-nav .nav-search svg {
    width: 16px;
    height: 16px;
  }

  html.is-nav-open,
  html.is-nav-open body {
    overflow: hidden;
  }

  .search-modal__box {
    top: 6vh;
    max-height: 82vh;
  }
}

/* '세부 설정 더보기' 안쪽 그룹 구분선 정리 */
.field-more__body > .field-group:first-child {
  padding-top: 16px;
  border-top: 0;
}

.field-more__body > .field-group + .field-group {
  padding-top: 24px;
}

.field-more__hint {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .field-more__hint {
    display: none;
  }
}

/* 긴 금액 표기('일금 …원정')가 좁은 화면에서 표를 밀어내지 않도록 */
.table--words td,
.table--words th {
  word-break: break-all;
}

/* 이사 일정표 — 날짜 줄이 꺾이지 않게, 지난 항목은 흐리게 */
#mv-plan th .cell-sub {
  display: block;
  white-space: nowrap;
}

table.data tbody tr.is-past th,
table.data tbody tr.is-past td {
  color: var(--muted);
}

table.data tbody tr.is-past th b {
  color: var(--muted);
}

/* 현재 입력값이 해당하는 행 표시 (카드 소득공제·국민연금 가입기간 표) */
table.data tbody tr.is-current th,
table.data tbody tr.is-current td {
  background: #F2F7FF;
}

table.data tbody tr.is-current th {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 홈 분야 탭 · 도구 타일 (탭 전환형 홈) ---------- */

.tools {
  padding-top: 8px;
}

.tabbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.tab:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.tab[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tab__count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tab[aria-pressed="true"] .tab__count {
  color: rgba(255, 255, 255, 0.7);
}

.tools__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 2px 14px;
}

.tools__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tools__note {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

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

.tool-grid > [hidden] {
  display: none !important;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 21px 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tool:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.tool:active {
  transform: translateY(0);
}

.tool__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.tool__icon svg {
  width: 19px;
  height: 19px;
}

.tool__body {
  min-width: 0;
}

.tool__titlerow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tool__titlerow h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.025em;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tool__desc {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 전체 32종 목록 — 크롤러가 모든 도구 URL 을 읽는 자리이자 사람용 목록 */
.all-tools {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.all-tools > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.all-tools > summary::-webkit-details-marker {
  display: none;
}

.all-tools > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.all-tools[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.all-tools > summary:hover {
  color: var(--sub);
}

.all-tools__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 18px;
  margin-top: 10px;
}

.all-tools__list a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.all-tools__list a:hover {
  color: var(--blue);
  text-decoration: none;
}

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

@media (max-width: 560px) {
  /* 좁은 화면에서는 탭을 두 줄로 접어 6개 분야가 한눈에 보이게 한다 */
  .tabbar {
    flex-wrap: wrap;
    gap: 7px;
    overflow-x: visible;
    padding: 0;
  }

  .tab {
    padding: 9px 13px;
    font-size: 14px;
  }

  .tools__head {
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .tools__note {
    text-align: left;
    font-size: 12.5px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool {
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
  }

  .tool__icon {
    width: 36px;
    height: 36px;
    flex: none;
  }

  .all-tools__list {
    grid-template-columns: 1fr 1fr;
    gap: 2px 14px;
  }
}

/* ==========================================================================
   홈 v3 — 시안 B (목적별 워크벤치)  2026-12-04
   기존 35개 도구 페이지에 영향이 없도록 .home-v3-* 네임스페이스로 격리한다.
   토스식 미니멀 화이트 토큰(--ink·--blue #3182f6·--line)을 그대로 쓰고,
   컨테이너 폭은 사이트 공통 1040px 을 유지한다.
   ========================================================================== */

.home-v3 {
  --hv3-ink: var(--ink);
  --hv3-sub: var(--sub);
  --hv3-muted: var(--muted);
  --hv3-line: var(--line);
  --hv3-line-2: var(--line-strong);
  --hv3-blue: var(--blue);
  --hv3-blue-soft: var(--blue-soft);
  --hv3-surface: var(--surface);
  --hv3-surface-2: var(--surface-2);
  padding-bottom: 10px;
}

.home-v3 a {
  color: inherit;
  text-decoration: none;
}

.home-v3 a:hover {
  text-decoration: none;
}

/* ---------- 히어로 ---------- */

.home-v3-hero {
  padding: 46px 0 6px;
}

.home-v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hv3-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-v3-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hv3-blue);
  box-shadow: 0 0 0 3px var(--hv3-blue-soft);
}

.home-v3-hero h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--hv3-ink);
  max-width: 780px;
}

.home-v3-hero h1 em {
  font-style: normal;
  color: var(--hv3-blue);
}

.home-v3-lead {
  margin-top: 13px;
  max-width: 620px;
  color: var(--hv3-sub);
  font-size: 16px;
  line-height: 1.66;
  letter-spacing: -0.015em;
}

/* ---------- 섹션 공통 ---------- */

.home-v3-section {
  padding: 32px 0 8px;
}

.home-v3-section--line {
  margin-top: 30px;
  padding-top: 34px;
  border-top: 1px solid var(--hv3-line);
}

.home-v3-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.home-v3-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--hv3-ink);
}

.home-v3-head p {
  color: var(--hv3-muted);
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.home-v3-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hv3-sub);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.home-v3-more:hover {
  color: var(--hv3-blue);
}

.home-v3-arrow-ic {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ---------- 공통 타일 · 배지 ---------- */

.home-v3-tile {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f5fb;
  color: #41506b;
}

.home-v3-tile svg {
  width: 20px;
  height: 20px;
}

.home-v3-tile--blue {
  background: var(--hv3-blue-soft);
  color: var(--hv3-blue);
}

.home-v3-tag {
  display: inline-block;
  flex: none;
  padding: 3px 5px 2.5px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-style: normal;
}

.home-v3-tag--new {
  background: var(--hv3-blue);
  color: #fff;
}

.home-v3-tag--soft {
  background: var(--hv3-blue-soft);
  color: var(--blue-dark);
}

.home-v3-chev {
  width: 13px;
  height: 13px;
  flex: none;
  margin-left: auto;
  color: #c3cddd;
}

/* ---------- 12월 시즌 바로가기 ---------- */

.home-v3-now {
  margin-top: 24px;
}

.home-v3-now-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hv3-sub);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-v3-now-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.home-v3-now-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.home-v3-now-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--hv3-line);
  border-radius: 999px;
  background: var(--hv3-surface);
  color: var(--hv3-ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.home-v3-now-list a:hover {
  border-color: #b9c8e0;
  color: var(--hv3-blue);
  box-shadow: var(--shadow-sm);
}

.home-v3-now-meta {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--hv3-blue-soft);
  color: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- 상황 묶음 ---------- */

.home-v3-bundles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-v3-bundle {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 18px;
  background: var(--hv3-surface);
  border: 1px solid var(--hv3-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-v3-bundle:hover {
  border-color: var(--hv3-line-2);
  box-shadow: 0 2px 6px rgba(25, 31, 40, 0.04), 0 14px 30px rgba(25, 31, 40, 0.05);
}

.home-v3-bundle-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.home-v3-bundle-titles {
  min-width: 0;
}

.home-v3-bundle-head h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--hv3-ink);
}

.home-v3-bundle-head p {
  margin-top: 2px;
  color: var(--hv3-muted);
  font-size: 13px;
  letter-spacing: -0.012em;
}

.home-v3-bundle-count {
  margin-left: auto;
  flex: none;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--hv3-surface-2);
  color: var(--hv3-sub);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.home-v3-bundle-list {
  margin-top: 15px;
  border-top: 1px solid var(--hv3-line);
}

.home-v3-bundle-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid #f5f7fa;
  color: #35415c;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.022em;
  transition: color 0.14s ease;
}

.home-v3-bundle-list li:last-child a {
  border-bottom: 0;
}

.home-v3-bundle-list a .home-v3-nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-v3-bundle-list a:hover,
.home-v3-bundle-list a:hover .home-v3-nm {
  color: var(--hv3-blue);
}

.home-v3-bundle-list a:hover .home-v3-chev {
  color: var(--hv3-blue);
}

.home-v3-bundle-more {
  margin-top: auto;
}

.home-v3-bundle-more > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 13px;
  color: var(--hv3-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.home-v3-bundle-more > summary::-webkit-details-marker {
  display: none;
}

.home-v3-more-chev {
  width: 11px;
  height: 11px;
  flex: none;
  transition: transform 0.2s ease;
}

.home-v3-bundle-more[open] .home-v3-more-chev {
  transform: rotate(180deg);
}

.home-v3-bundle-more[open] > summary {
  padding-bottom: 4px;
}

.home-v3-bundle-list--rest {
  margin-top: 2px;
  border-top: 1px solid var(--hv3-line);
}

/* ---------- 전체 도구 인덱스 ---------- */

.home-v3-idx {
  padding: 24px 26px 26px;
  background: var(--hv3-surface);
  border: 1px solid var(--hv3-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.home-v3-idx-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-v3-idx-bar h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--hv3-ink);
}

.home-v3-idx-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 0;
  height: 42px;
  padding: 0 12px 0 13px;
  border: 1px solid var(--hv3-line-2);
  border-radius: 11px;
  background: var(--hv3-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-v3-idx-search:focus-within {
  border-color: #9db9f2;
  box-shadow: var(--ring);
}

.home-v3-idx-mag {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--hv3-muted);
}

.home-v3-idx-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  letter-spacing: -0.012em;
  color: var(--hv3-ink);
  -webkit-appearance: none;
  appearance: none;
}

.home-v3-idx-search input::-webkit-search-cancel-button {
  display: none;
}

.home-v3-idx-search input::placeholder {
  color: #a0abbd;
}

.home-v3-idx-clear {
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: -3px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hv3-surface-2);
  color: var(--hv3-muted);
  padding: 0;
}

.home-v3-idx-clear svg {
  width: 12px;
  height: 12px;
}

.home-v3-idx-clear:hover {
  background: var(--hv3-line);
  color: var(--hv3-sub);
}

.home-v3-idx-count {
  margin-left: auto;
  color: var(--hv3-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-v3-idx-count b {
  color: var(--hv3-sub);
  font-weight: 700;
}

.home-v3-idx-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 44px;
  margin-top: 20px;
}

.home-v3-idx-col {
  min-width: 0;
}

.home-v3-idx-group + .home-v3-idx-group {
  margin-top: 18px;
}

.home-v3-idx-gh {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hv3-line-2);
}

.home-v3-idx-gh h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--hv3-ink);
}

.home-v3-idx-gh span {
  color: var(--hv3-muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-v3-idx-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6.5px 2px;
  border-bottom: 1px solid #f6f8fb;
  color: #35415c;
  font-size: 13.8px;
  letter-spacing: -0.022em;
}

.home-v3-idx-list li:last-child a {
  border-bottom: 0;
}

.home-v3-idx-list a:hover,
.home-v3-idx-list a:hover .home-v3-nm {
  color: var(--hv3-blue);
}

.home-v3-idx-list .home-v3-nm {
  flex: none;
  font-weight: 500;
  white-space: nowrap;
}

.home-v3-idx-list .home-v3-ds {
  margin-left: auto;
  overflow: hidden;
  color: var(--hv3-muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}

.home-v3-idx-empty {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--hv3-surface-2);
  color: var(--hv3-sub);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- 신뢰 한 줄 ---------- */

.home-v3-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 16px 2px 4px;
  color: var(--hv3-sub);
  font-size: 13px;
}

.home-v3-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-v3-strip svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green);
}

.home-v3-strip .home-v3-strip-sep {
  width: 1px;
  height: 14px;
  background: var(--hv3-line-2);
  gap: 0;
}

/* ---------- FAQ (홈) ---------- */

.home-v3 .faq {
  border-radius: var(--radius-lg);
}

/* ---------- 반응형 ---------- */

@media (max-width: 900px) {
  .home-v3-hero {
    padding-top: 36px;
  }

  .home-v3-hero h1 {
    font-size: 33px;
  }

  .home-v3-idx-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home-v3-idx-col > .home-v3-idx-group:first-child .home-v3-idx-gh {
    padding-top: 2px;
  }
}

@media (max-width: 720px) {
  .home-v3-hero {
    padding: 28px 0 4px;
  }

  .home-v3-eyebrow {
    font-size: 12.5px;
  }

  .home-v3-hero h1 {
    margin-top: 12px;
    font-size: 25px;
    line-height: 1.36;
    letter-spacing: -0.025em;
  }

  .home-v3-lead {
    margin-top: 11px;
    font-size: 14.5px;
    line-height: 1.64;
  }

  .home-v3-now {
    margin-top: 18px;
  }

  .home-v3-now-list {
    gap: 6px;
    margin-top: 8px;
  }

  .home-v3-now-list a {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12.5px;
  }

  .home-v3-now-meta {
    font-size: 10px;
    padding: 2px 5px;
  }

  .home-v3-section {
    padding-top: 26px;
  }

  .home-v3-section--line {
    margin-top: 24px;
    padding-top: 26px;
  }

  .home-v3-head {
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 13px;
  }

  .home-v3-head h2 {
    font-size: 18px;
  }

  .home-v3-head p {
    display: none;
  }

  .home-v3-more {
    font-size: 12.5px;
  }

  .home-v3-bundles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-v3-bundle {
    padding: 18px 17px 14px;
    border-radius: var(--radius);
  }

  .home-v3-bundle-head {
    gap: 11px;
  }

  .home-v3-bundle-head h3 {
    font-size: 16px;
  }

  .home-v3-bundle-head p {
    font-size: 12.5px;
  }

  .home-v3-tile {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .home-v3-tile svg {
    width: 18px;
    height: 18px;
  }

  .home-v3-bundle-list a {
    padding: 11px 1px;
    font-size: 14.5px;
  }

  .home-v3-idx {
    padding: 18px 15px 20px;
    border-radius: var(--radius);
  }

  .home-v3-idx-bar {
    gap: 10px;
  }

  .home-v3-idx-bar h2 {
    font-size: 17px;
  }

  .home-v3-idx-search {
    flex-basis: 100%;
    max-width: none;
    height: 42px;
    order: 3;
  }

  .home-v3-idx-count {
    font-size: 12px;
  }

  .home-v3-idx-cols {
    margin-top: 15px;
  }

  .home-v3-idx-list a {
    padding: 8px 1px;
    font-size: 14px;
  }

  .home-v3-idx-list .home-v3-ds {
    display: none;
  }

  .home-v3-strip {
    gap: 8px;
    margin-top: 20px;
    padding-top: 12px;
    font-size: 12px;
  }

  .home-v3-strip .home-v3-strip-sep {
    display: none;
  }
}

@media (max-width: 420px) {
  .home-v3-hero h1 {
    font-size: 23px;
  }

  .home-v3-bundle {
    padding: 16px 14px 12px;
  }

  .home-v3-bundle-count {
    font-size: 11px;
    padding: 3px 6px;
  }

  .home-v3-idx-list .home-v3-tag {
    display: none;
  }
}

/* ==========================================================================
   도구 페이지 — 퍼가기(임베드) 블록
   ========================================================================== */

.embed-share {
  padding-top: 36px;
}

.embed-share__box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.embed-share__code {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--sub);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-all;
}

.embed-share__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.embed-share__actions .btn-ghost {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.embed-share__open {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.embed-share__open:hover {
  color: var(--blue);
}

.embed-share__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.embed-share__note b {
  color: var(--sub);
  font-weight: 700;
}

@media (max-width: 560px) {
  .embed-share__code {
    resize: none;
    font-size: 11.5px;
  }

  .embed-share__actions .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
    height: 44px;
  }

  .embed-share__open {
    margin-left: 0;
    width: 100%;
    padding-top: 2px;
    text-align: right;
  }
}

/* ==========================================================================
   배치 0.5 — 공통 성장 기반
   K0 빈 상태 · K5 공유 바 · K9-4 산출 근거 · K9-7 최근 도구 · K8-3 설치 안내
   ========================================================================== */

/* ---------- K0 빈 상태 ---------- */

.result-empty {
  display: none;
  margin: 14px 0 0;
  padding: 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.result-empty::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  vertical-align: 1px;
}

body.calc-empty .result-card > *:not(.result-empty) {
  display: none !important;
}

body.calc-empty .result-card > .result-empty {
  display: block;
}

body.calc-empty .result-col .summary,
body.calc-empty .result-col .result-insight,
body.calc-empty .result-col .stack,
body.calc-empty .result-col [data-why-block] {
  display: none !important;
}

body.calc-empty .share-bar [data-share-action] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- K0 산출 근거 ---------- */

.why {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.why > summary {
  padding: 13px 16px;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.why > summary::-webkit-details-marker {
  display: none;
}

.why > summary::after {
  content: "＋";
  float: right;
  color: var(--muted);
  font-weight: 600;
}

.why[open] > summary::after {
  content: "－";
}

.why table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.why th,
.why td {
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.why th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
}

.why td {
  color: var(--ink);
}

.why__expr {
  display: block;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.why__value {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.why__note {
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- K5 공유 바 ---------- */

.share-bar {
  margin: 22px 0 8px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.share-bar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.share-bar__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.share-bar__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.share-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.share-bar__actions .btn-ghost {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--sub);
  font-size: 13.5px;
}

.share-bar__actions .btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.share-bar__status {
  min-height: 0;
  margin: 0;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
}

.share-bar__status.is-on {
  margin-top: 10px;
}

.share-bar__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

body.embed-mode .share-bar,
body.embed-mode .recent-bar,
body.embed-mode .pwa-install {
  display: none !important;
}

/* ---------- K9-7 최근 본 도구 ---------- */

.recent-tools {
  margin: 14px 0 0;
}

.recent-tools__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-tools__label {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.recent-tools__clear {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.recent-tools__list,
.recent-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.recent-tools__item {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.recent-tools__item:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.recent-bar {
  align-items: center;
  margin: 0 0 14px;
}

.recent-bar__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- K8-3 홈 화면 추가 안내 ---------- */

.pwa-install {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(460px, calc(100vw - 24px));
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  transform: translateX(-50%);
  animation: pwaIn 0.22s ease-out;
}

@keyframes pwaIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.pwa-install__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pwa-install__title {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pwa-install__desc {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.pwa-install__btn {
  flex: none;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pwa-install__close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--sub);
  font-size: 18px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install {
    animation: none;
  }
}

@media (max-width: 560px) {
  .share-bar {
    padding: 16px 16px 14px;
  }

  .share-bar__actions .btn-ghost {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    height: 44px;
  }

  .recent-tools__item {
    height: 38px;
  }

  .pwa-install {
    padding: 12px 10px 12px 14px;
    gap: 8px;
  }
}

/* K0 경계값 인라인 안내 */
.field-clamp {
  display: block;
  margin-top: 6px;
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.field-clamp::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}

.result-empty__text {
  display: block;
}

.result-empty__demo {
  margin-top: 12px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
}

.result-empty__demo:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* 빈 상태에서는 결과 카드만 남기고 파생 블록(요약·표·경과 안내)을 숨긴다 */
body.calc-empty .result-col > *:not(.result-card) {
  display: none !important;
}

/* ==========================================================================
   배치 1 — 세금·절세 7종 고도화 (K0 산출 근거 · K3 차트 · A/B · K4 인사이트)
   ========================================================================== */

/* --- 산출 근거 패널 (결과 카드 안) --- */
.why {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.why summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--sub);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.why summary::-webkit-details-marker {
  display: none;
}

.why summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.why[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.why table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.why th,
.why td {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.why th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
}

.why td {
  color: var(--ink);
}

.why__expr {
  display: block;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

.why__value {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.why__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* --- 차트 --- */
.viz {
  margin: 0;
}

.viz + .viz {
  margin-top: 22px;
}

.viz svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
  font-family: var(--font);
}

.viz.is-donut svg {
  max-width: 220px;
  margin: 0 auto;
}

.viz__caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.viz__empty {
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- A/B 비교 표 --- */
.ab-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ab-table th,
.ab-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  text-align: right;
}

.ab-table thead th {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-strong);
}

.ab-table th[scope="row"],
.ab-table thead th:first-child {
  text-align: left;
  color: var(--sub);
  font-weight: 600;
}

.ab-table tbody th[scope="row"] {
  color: var(--ink);
  font-weight: 650;
}

.ab-table .is-diff {
  color: var(--blue-dark);
  font-weight: 700;
}

.ab-table .is-best {
  color: var(--green);
  font-weight: 700;
}

.ab-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ab-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ab-switch__label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

/* --- 인사이트 --- */
.insight-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li {
  position: relative;
  padding: 13px 15px 13px 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.insight-list li b {
  color: var(--ink);
  font-weight: 700;
}

.insight-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
}

.insight-list li[data-tone="warn"]::before {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(245, 159, 0, 0.12);
}

.insight-list li[data-tone="ok"]::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

/* --- 손실 회피 한 줄 (중립) --- */
.loss-line {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #dbe9ff;
  border-radius: 12px;
  background: #f5f9ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

/* --- 등급 배지 --- */
.grade {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.grade__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.grade[data-tone="ok"] .grade__badge {
  background: var(--green-soft);
  color: var(--green);
}

.grade[data-tone="warn"] .grade__badge {
  background: var(--warn-soft);
  color: #b07a00;
}

.grade__body {
  min-width: 0;
}

.grade__label {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.grade__note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* --- 도구 간 값 이어받기 칩 --- */
.chain-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border: 1px solid #dbe9ff;
  border-radius: 12px;
  background: #f5f9ff;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 650;
}

.chain-chip button {
  height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid #c7ddfb;
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 650;
}

.chain-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.chain-links__label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.chain-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.chain-links a:hover {
  border-color: #bcd9ff;
  color: var(--blue-dark);
}

/* --- 목차 --- */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.page-toc__label {
  margin-right: 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.page-toc a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

@media (max-width: 720px) {
  .ab-table thead {
    display: none;
  }

  .ab-table,
  .ab-table tbody,
  .ab-table tr,
  .ab-table th,
  .ab-table td {
    display: block;
    width: 100%;
  }

  .ab-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .ab-table th[scope="row"] {
    padding: 0 0 6px;
    border: 0;
    text-align: left;
  }

  .ab-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }

  .ab-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .grade {
    align-items: flex-start;
  }

  .chain-links a {
    min-height: 38px;
  }
}

/* 배치 1 — 차트 섹션 소제목 */
.boost {
  padding-top: 8px;
}

.boost__h3 {
  margin: 34px 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}

.boost .viz {
  margin-top: 18px;
}

.boost .viz:first-of-type {
  margin-top: 6px;
}

.yc-summary .result-col {
  position: static;
}

@media (max-width: 720px) {
  .boost__h3 {
    margin-top: 28px;
  }
}

/* 목차·해시 이동 시 고정 헤더에 제목이 가리지 않도록 */
.section h2[id],
.section h3[id],
main h2[id] {
  scroll-margin-top: 84px;
}

/* 모바일 칩 터치 타깃 (K6) */
@media (max-width: 720px) {
  .page-toc a,
  .preset {
    min-height: 38px;
  }

  .preset {
    height: auto;
    padding: 8px 16px;
  }

  .page-toc {
    gap: 8px;
  }
}

/* 연봉 역산 모드 — 히어로가 '연봉(만원)'이라 단위가 다른 구성 비율 바는 숨긴다 */
body.salary-reverse [data-insight] {
  display: none !important;
}

/* 배치 3 — 페이지 내 탭 (전세 안전 점검 허브) */
.page-tabs {
  margin: 4px 0 22px;
}

.page-tabs button {
  min-height: 40px;
  padding: 0 18px;
}

@media (max-width: 720px) {
  .page-tabs {
    margin-bottom: 18px;
  }
}

/* ==========================================================================
   시안 A — "한 화면에 하나" (2026-12-05 전면 재개편)
   토스식 극단적 미니멀 화이트 · 버튼 간격 12px 이상 · 터치 44px 이상
   · 흰 배경 / 카드 테두리 1px · 그림자 1단계
   · 입력 → 결과 순서(모바일 포함) · 보조 콘텐츠는 64px 접힘 행
   · 글자 크기 8단계: 32·26·20·17·16·15·14·13
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --line: #e5e8eb;
  --line-strong: #e5e8eb;
  --muted: #6b7684;      /* 대비 4.6:1 — 기존 #8b95a1(3.0) 교체 */
  --sub: #4e5968;
  --ink: #191f28;
  --green: #1c7c54;
  --green-soft: #f1f7f4;
  --red: #d64545;
  --red-soft: #fdf1f1;
  --warn: #8a5a00;
  --warn-soft: #fdf6e8;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 45, 0.04);
  --shadow: 0 1px 2px rgba(23, 32, 45, 0.04), 0 8px 20px rgba(23, 32, 45, 0.04);
  --shadow-pop: 0 8px 20px rgba(23, 32, 45, 0.06);
  --container: 1000px;
  --gutter: 24px;
  --header-h: 68px;
}

body {
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ── 머리글: 로고 + 텍스트 링크만 ───────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-scrolled { box-shadow: none; }
.site-header__inner { height: var(--header-h); gap: 16px; }
.brand { gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); }
.brand__mark svg { width: 17px; height: 17px; }
.brand__short { display: none; }

.site-nav { gap: 12px; margin-left: auto; align-items: center; }
.nav-home,
.nav-toggle,
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-home:hover,
.nav-toggle:hover,
.nav-search:hover { background: var(--surface-2); color: var(--ink); }
.nav-toggle__chev { display: none; }
.nav-toggle__short,
.nav-search__text { display: none; }
.nav-toggle__full { display: inline; }
.nav-home { display: inline-flex; }
@media (min-width: 901px) { .nav-home { display: inline-flex; } }
.nav-item--cat { display: none; }
.nav-search { padding: 0; width: 44px; }
.nav-search svg { width: 21px; height: 21px; }
.nav-burger { display: none !important; }
.nav-backdrop { display: none !important; }

/* ── 본문 폭 · 머리 ──────────────────────────────────────────── */
.page-head { padding: 28px 0 20px; max-width: 720px; }
.page-head h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.page-badges { gap: 12px; margin-top: 14px; }
.page-badge {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  gap: 4px;
}
.page-badge__k { color: var(--muted); font-size: 13px; font-weight: 600; }
.page-badge--date .page-badge__k { color: var(--muted); }
.page-badge--safe { color: var(--muted); font-weight: 500; }
.page-badge svg { width: 13px; height: 13px; }
.page-badge--safe svg { color: var(--muted); }
.lead { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { font-size: 14px; }
.breadcrumb span[aria-hidden="true"] { color: var(--line-strong); }

/* 목차 칩 — 시안 A에서 제거 */
.page-toc { display: none !important; }

/* ── 입력 → 결과 (모바일에서도 이 순서) ─────────────────────── */
.calc-layout { gap: 24px; align-items: start; }
.calc-col {
  gap: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
  background: #fff;
}
.result-col {
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
  background: #fff;
  top: calc(var(--header-h) + 16px);
}
@media (max-width: 900px) {
  .calc-layout { display: flex; flex-direction: column; gap: 12px; }
  .calc-col, .result-col { padding: 20px; border-radius: 18px; }
  .result-col { position: static; order: 0; }   /* order:-1 제거 — 입력(DOM 먼저) 다음 결과 */
  .calc-col { order: 0; }
}
@media (min-width: 901px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}

/* ── 폼: 라벨 15 · 입력 60 · 버튼 48 ─────────────────────────── */
.field-label { display: block; margin-bottom: 8px; color: var(--sub); font-size: 15px; font-weight: 700; }
.field-label small { color: var(--muted); font-size: 14px; font-weight: 500; }
.field + .field, .field-row + .field, .field + .field-row,
.segment + .field, .field-row + .segment, .field-help + .field-row,
.check + .field, .field-control + .field { margin-top: 20px; }
.field-control {
  height: 60px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.field-control input, .field-control select { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.field-control input::placeholder { font-weight: 500; }
.field-unit { font-size: 16px; font-weight: 600; color: var(--muted); }
.field-help { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.field-help a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.field-group__title h2 { font-size: 17px; font-weight: 800; }
.field-group__title { margin-bottom: 14px; }
.field-group__title small, .field-group__title .field-group__sub { font-size: 14px; color: var(--muted); }
.step-no { width: 24px; height: 24px; font-size: 13px; background: var(--ink); color: #fff; }

.segment { gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.segment button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
}
.segment button[aria-pressed="true"] { color: var(--ink); }
.segment__thumb { top: 4px; left: 4px; border-radius: 11px; box-shadow: none; border: 1px solid var(--line); }

.chip { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; border-radius: 999px; }
.chip__count { font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; }

.presets { gap: 12px; padding: 0; border: 0; background: none; }
.presets__label { width: 100%; margin: 0 0 2px; color: var(--muted); font-size: 14px; font-weight: 600; }
.preset {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
}
.preset:hover { border-color: #bcd9ff; background: #f7fbff; }
.preset.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

.check { margin-top: 16px; padding: 14px 16px; border-radius: 14px; gap: 12px; }
.check__label { font-size: 15px; font-weight: 600; }
.check__desc { font-size: 14px; color: var(--muted); }

.field-more, .more-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.field-more__summary, .more-panel > summary {
  display: flex; align-items: center; gap: 8px;
  min-height: 64px; padding: 0 20px;
  font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.field-more__hint { color: var(--muted); font-size: 14px; font-weight: 500; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-more__body, .more-panel__body { padding: 0 20px 24px; }
.more-panel > summary::after, .field-more__summary .more-panel__chev { color: var(--muted); }

/* ── 결과 카드: 큰 숫자 + 한 줄 요약 + 접힌 근거 ─────────────── */
.result-card__label { font-size: 15px; font-weight: 700; color: var(--sub); }
.result-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.result-value small { font-size: 20px; font-weight: 700; margin-left: 2px; }
.result-sub { margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.result-card.is-changing .result-value { color: var(--ink); }
.result-insight {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}
.result-insight__badge { font-size: 15px; font-weight: 700; }
.result-insight__dot { width: 6px; height: 6px; margin-top: 7px; }
.result-insight__bar, .result-insight__legend { display: none !important; }
.result-rows { margin-top: 20px; border-top: 1px solid var(--line); }
.result-row { padding: 12px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.result-row dt { font-size: 15px; color: var(--muted); }
.result-row dd { font-size: 16px; font-weight: 700; }
.result-row--strong dd { font-size: 17px; }
.result-row--strong dt { font-size: 15px; }
.result-note { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.grade { display: none !important; }
.pill { min-height: 32px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.result-empty { font-size: 15px; }
.result-empty__demo { min-height: 44px; padding: 0 16px; font-size: 15px; }
.result-more > summary { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--blue-dark); cursor: pointer; }
.result-more .result-rows { margin-top: 0; border-top: 1px solid var(--line); }

/* 산출 근거(details.why) — 카드 안 64px 접힘 행 */
.why { margin-top: 16px; border-top: 1px solid var(--line); }
.why > summary { display: flex; align-items: center; min-height: 64px; font-size: 16px; font-weight: 700; color: var(--sub); cursor: pointer; list-style: none; }
.why > summary::-webkit-details-marker { display: none; }
.why > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); font-weight: 500; }
.why[open] > summary::after { content: "–"; }
.why table { width: 100%; border-collapse: collapse; font-size: 14px; }
.why td, .why th { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; color: var(--sub); font-weight: 500; }
.why__note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ── 접힘 행: 모든 보조 콘텐츠(그래프·예시·FAQ·출처·퍼가기) ─── */
.folds { margin-top: 24px; display: grid; gap: 12px; }
.fold { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.fold > summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 20px;
  list-style: none; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold__t { min-width: 0; }
.fold__meta { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 500; text-align: right; }
.fold > summary::after { content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--muted); font-weight: 500; }
.fold[open] > summary::after { content: "–"; }
.fold__body { padding: 0 20px 24px; }
.fold .section { margin: 0; padding: 0; border: 0; background: none; }
.fold .section-head { margin: 0 0 8px; }
.fold .section-head h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fold .section-head p { font-size: 15px; color: var(--muted); }
.fold .section + .section { margin-top: 24px; }
.fold .faq { border: 0; }
.fold > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: 16px; }

/* 공유 바 — 접힘 행 안에서 */
.share-bar { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.fold .share-bar { display: block; }
.share-bar__head { display: none; }
.share-bar__actions { display: grid; gap: 12px; }
.share-bar__note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.btn-ghost {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.is-copied, .btn-ghost.is-done { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.btn-primary { min-height: 48px; border-radius: 14px; font-size: 15px; font-weight: 700; }

/* ── 섹션(접힘 밖 본문) ─────────────────────────────────────── */
.section { padding: 0; margin: 0; }
.section + .section { margin-top: 32px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--sub); }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose li { font-size: 16px; line-height: 1.7; color: var(--sub); }

/* FAQ — 64px 행, 12px 간격 */
.faq { display: grid; gap: 12px; border: 0; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq details + details { margin-top: 0; }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; font-size: 16px; font-weight: 700; cursor: pointer; }
.faq summary::after { margin-left: auto; font-size: 20px; color: var(--muted); font-weight: 500; }
.faq details p { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: var(--sub); }

/* 표 */
.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.data th, .data td { font-size: 14px; }
.summary h3 { font-size: 16px; }
.summary { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

/* 관련 도구 카드 */
.calc-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; background: #fff; }
.calc-card h3 { font-size: 16px; }
.calc-card p { font-size: 14px; color: var(--muted); }
.calc-card__tag { font-size: 13px; }
.calc-card__foot { font-size: 14px; }
.related-all a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

/* 퍼가기 */
.embed-share__code, .embed-share textarea { font-size: 13px; }
.embed-share__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 홈 (시안 A) ─────────────────────────────────────────────── */
.h-hero { padding: 56px 0 0; max-width: 720px; }
.h-eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.h-hero h1 { margin: 0; font-size: 40px; line-height: 1.22; letter-spacing: -0.045em; font-weight: 800; }
.h-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--sub); max-width: 560px; }

.h-search { display: flex; align-items: center; gap: 8px; height: 60px; margin-top: 32px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.h-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.h-search svg { flex: none; color: var(--muted); width: 22px; height: 22px; }
.h-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 17px; font-weight: 500; color: var(--ink); }
.h-search input::placeholder { color: var(--muted); font-weight: 500; }
.h-search__go { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; }

.h-quick { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.h-quick__label { padding: 0 8px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.h-quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--sub); }
.h-quick a:hover { background: var(--surface-2); color: var(--ink); }

.h-block { margin-top: 56px; }
.h-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.h-block h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.h-block__more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); }
.h-block__more:hover { color: var(--blue-dark); }

.h-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.h-rows li + li { border-top: 1px solid var(--surface-2); }
.h-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; min-height: 76px; padding: 14px 4px; }
.h-rows a:hover .h-rows__t { color: var(--blue-dark); }
.h-rows__t { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.h-rows__d { grid-column: 1 / 2; font-size: 14px; color: var(--muted); }
.h-rows__go { grid-row: 1 / 3; color: var(--line-strong); font-size: 18px; }
.h-rows a:hover .h-rows__go { color: var(--blue); }

.h-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.h-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 20px; min-height: 128px; }
.h-card:hover { border-color: #c9d3dd; background: #fcfcfd; }
.h-card__k { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.h-card__d { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.h-card__n { display: block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }

.h-all { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 24px; font-size: 15px; font-weight: 700; color: var(--sub); }
.h-all:hover { color: var(--blue-dark); }

/* 홈 전체 도구 — 분야별 64px 접힘 행 */
.h-idx { margin-top: 32px; }
.h-idx__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.h-idx__bar h2 { margin: 0; font-size: 17px; font-weight: 800; }
.h-idx__count { font-size: 14px; color: var(--muted); }
.h-idx__empty { margin-top: 16px; font-size: 15px; color: var(--muted); }
.h-idx__list { display: grid; gap: 12px; }
.h-idx-group { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.h-idx-group > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; }
.h-idx-group > summary::-webkit-details-marker { display: none; }
.h-idx-group > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); font-weight: 500; }
.h-idx-group[open] > summary::after { content: "–"; }
.h-idx-group__n { margin-left: auto; padding-right: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.h-idx-group > summary::after { margin-left: 0; }
.h-idx-item { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0 8px; padding: 0 12px; border-radius: 10px; }
.h-idx-item:hover { background: var(--surface-2); }
.h-idx-item__nm { font-size: 16px; font-weight: 600; color: var(--ink); }
.h-idx-item__ds { margin-left: auto; font-size: 14px; color: var(--muted); text-align: right; }
.h-idx-body { padding: 0 12px 16px; }
.h-idx-tag { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--sub); font-size: 13px; font-weight: 600; }

/* ── 푸터 ───────────────────────────────────────────────────── */
.site-footer { margin-top: 72px; padding: 28px 0 48px; border-top: 1px solid var(--line); background: #fff; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.site-footer__brand .brand__mark { width: 24px; height: 24px; border-radius: 7px; }
.site-footer__brand .brand__mark svg { width: 15px; height: 15px; }
.site-footer__top nav { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.site-footer__top nav a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.site-footer .disclaimer { font-size: 13px; color: var(--muted); max-width: 760px; }
.site-footer .disclaimer strong { color: var(--sub); font-weight: 600; }

/* ── 접힘 안으로 들어간 요소들 ──────────────────────────────── */
.ts-cta { border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.ts-cta__blog { font-size: 13px; }
.ts-cta__lead { font-size: 14px; }
.ts-cta__title { font-size: 15px; }
.viz { margin-top: 8px; }
.boost__h3 { font-size: 17px; margin-top: 24px; }
.boost h3 { font-size: 16px; }
.section-head__note { font-size: 14px; }
.steps li, .step p, .step__num { font-size: 15px; }

/* ── 시안 A: 등장 애니메이션 없음(조용한 화면) ───────────────── */
html.reveal-ready .section-head,
html.reveal-ready .calc-card,
html.reveal-ready .steps li,
html.reveal-ready .faq details,
html.reveal-ready .prose,
html.reveal-ready .result-card,
html.reveal-ready .card,
html.reveal-ready .summary,
html.reveal-ready .trust-item { opacity: 1; transform: none; transition: none; }

/* ── 모바일 미세 조정 ───────────────────────────────────────── */
@media (max-width: 719px) {
  :root { --gutter: 20px; --header-h: 60px; }
  .page-head { padding: 20px 0 16px; }
  .page-head h1 { font-size: 26px; }
  .lead { font-size: 15px; }
  .page-badges { gap: 12px 16px; }
  
  .h-hero { padding-top: 36px; }
  .h-hero h1 { font-size: 30px; }
  .h-lead { font-size: 16px; margin-top: 14px; }
  .h-search { margin-top: 24px; height: 56px; }
  .h-search__go { padding: 0 14px; }
  .h-block { margin-top: 44px; }
  .h-cards { grid-template-columns: 1fr; }
  .h-card { min-height: 0; }
  .result-value { font-size: 34px; }
  .result-value small { font-size: 18px; }
  .calc-col { gap: 28px; }
  .site-footer { margin-top: 56px; }
  .site-footer__top nav { margin-left: 0; }
}

/* 스드메 — 공통 스타일로 통합 (app.css 대체) */
.sdm-step { display: grid; gap: 16px; }
.sdm-result .summary { padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.summary__label { font-size: 15px; font-weight: 700; color: var(--sub); }
.summary__value { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.summary__sub { margin-top: 8px; font-size: 15px; color: var(--muted); }
.summary__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.summary__note, .summary__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.summary__hint .linkbtn, .linkbtn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; color: var(--blue-dark); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sdm-result .result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.sdm-result .result-head h2 { font-size: 20px; font-weight: 800; }
.sdm-result .group { margin-top: 20px; }
.sdm-result .group__head { display: flex; align-items: baseline; gap: 8px; }
.sdm-result .group__title { font-size: 16px; font-weight: 700; }
.sdm-result .group__count { font-size: 14px; color: var(--muted); }
.sdm-result .group__desc { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.sdm-result .group--fold { border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; }
.sdm-result .group--fold > summary { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 20px; cursor: pointer; list-style: none; }
.sdm-result .group--fold > summary::-webkit-details-marker { display: none; }
.sdm-result .group--fold > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.sdm-result .group--fold[open] > summary::after { content: "–"; }
.sdm-result .group--fold .group__desc, .sdm-result .group--fold .items { padding: 0 20px; }
.sdm-result .items { list-style: none; margin: 8px 0 0; padding: 0; }
.sdm-result .item { border-top: 1px solid var(--line); }
.sdm-result .item__row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.sdm-result .item__body { flex: 1; min-width: 0; display: block; padding: 10px 0; border: 0; background: none; text-align: left; }
.sdm-result .item__top { display: flex; align-items: center; gap: 8px; }
.sdm-result .item__name { font-size: 16px; font-weight: 600; }
.sdm-result .item__meta { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.sdm-result .item__amount { color: var(--ink); font-weight: 700; }
.sdm-result .item__amount.is-off { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.sdm-result .item__detail { padding: 0 0 14px; }
.sdm-result .item__why, .sdm-result .item__ask, .sdm-result .item__snippet { font-size: 14px; line-height: 1.6; color: var(--sub); margin-top: 6px; }
.sdm-result .pill--warn { background: var(--warn-soft); color: var(--warn); }
.sdm-result .pill--red { background: var(--red-soft); color: var(--red); }
.sdm-result .pill--green { background: var(--green-soft); color: var(--green); }
.sdm-result .pill--blue { background: var(--blue-soft); color: var(--blue-dark); }
.sdm-result .switch { position: relative; flex: none; width: 52px; height: 32px; }
.sdm-result .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sdm-result .switch__track { display: block; width: 52px; height: 32px; border-radius: 999px; background: #d7dce2; transition: background .15s ease; }
.sdm-result .switch__track::after { content: ""; display: block; width: 26px; height: 26px; margin: 3px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.sdm-result .switch input:checked + .switch__track { background: var(--blue); }
.sdm-result .switch input:checked + .switch__track::after { transform: translateX(20px); }
.sdm-result .switch input:focus-visible + .switch__track { outline: 2px solid var(--blue); outline-offset: 3px; }
.sdm-notes { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.sdm-disclaimer { margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.sdm-guide th, .sdm-guide td { font-size: 14px; }

/* 시안 A 보정 — 머리글 브랜드 텍스트는 좁은 화면에서도 보인다 */
.brand__full { display: inline !important; }
.brand__short { display: none !important; }

/* 홈 목록 행 — 그리드 영역으로 확실히 배치 */
.h-rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "t go" "d go";
  align-items: center;
  gap: 2px 16px;
  min-height: 76px;
  padding: 14px 4px;
}
.h-rows__t { grid-area: t; }
.h-rows__d { grid-area: d; }
.h-rows__go { grid-area: go; }

/* 접힘 행 표시는 하나만 — 기존 아이콘 숨김 */
.fold > summary > svg,
.fold > summary .more-panel__chev,
.fold > summary .fold__chev { display: none !important; }

/* 시안 A 보정 — 좁은 화면에서도 머리 링크는 그 자리에 (서랍 메뉴 없음) */
@media (max-width: 900px) {
  .site-nav {
    position: static;
    display: flex;
    width: auto;
    margin-left: auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .brand { margin-right: 0; }
  .nav-home { display: inline-flex; height: 44px; padding: 0 10px; font-size: 15px; }
  .nav-search { display: inline-flex; }
}
@media (max-width: 380px) {
  .nav-home { padding: 0 6px; font-size: 14px; }
  .site-nav { gap: 4px; }
}

/* 시안 A 보정 — 목록 행 글자색 */
.h-rows a, .h-idx-item, .h-card { color: var(--ink); }
.h-rows__t, .h-idx-item__nm, .h-card__k { color: var(--ink); }
.h-rows a:hover, .h-rows a:hover .h-rows__t { color: var(--blue-dark); text-decoration: none; }
.h-idx-item:hover { text-decoration: none; }
.h-card:hover { text-decoration: none; }
.h-block__more, .h-all { text-decoration: none; }

/* 시안 A 보정 — 터치 타깃·간격 */
.brand { min-height: 44px; }
.h-search { gap: 12px; }
.h-quick { gap: 12px; }
.h-quick__label { padding-right: 0; }
.result-actions { gap: 12px; }
.embed-share__open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 600; }
.chain-links, [data-boost-chain-links] { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.chain-links__label, [data-boost-chain-links] > span { color: var(--muted); font-size: 14px; font-weight: 600; }
.chain-links a, [data-boost-chain-links] a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--sub); font-size: 14px; font-weight: 600; text-decoration: none;
}
.chain-links a:hover, [data-boost-chain-links] a:hover { border-color: #bcd9ff; color: var(--blue-dark); }
.site-footer__top nav { gap: 12px; }
.faq summary::after {
  content: "+"; flex: none; width: auto; height: auto; border: 0; transform: none;
  font-size: 20px; line-height: 1; color: var(--muted); font-weight: 500;
}
.faq details[open] summary::after { content: "–"; transform: none; }
.home-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.home-strip span { display: inline-flex; align-items: center; gap: 6px; }

/* 시안 A 보정 — 360px 폭에서도 머리 링크 간격 12px */
@media (max-width: 380px) {
  .site-nav { gap: 12px; }
  .nav-home { padding: 0 6px; font-size: 14px; }
}

/* 시안 A 보정 — 글자 크기 8단계로 정리 (13·14·15·16·17·20·26·34) */
th, td, caption, figcaption, .viz__caption, .viz caption, .ab-note, .table-scroll-hint,
.embed-share__note, .why__expr, .why__value, .table-hint, .home-v3-tag { font-size: 13px !important; }
.result-action__label, .share-bar .btn-ghost, .share-bar__note, .site-footer li, .site-footer .disclaimer { font-size: 14px !important; }
.btn-ghost { font-size: 15px; }
.result-value small { font-size: 20px; }
.h-rows__go { font-size: 17px; }
.nav-search__text { font-size: 15px; }

/* 시안 A 보정 — 출처 목록·머리 검색 라벨 크기 통일 */
.source-list, .source-list li, .source-list a, .source-list span, .source-list b { font-size: 13px !important; }
.source-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; line-height: 1.5; }
.source-list a { display: inline-flex; align-items: center; min-height: 44px; }
.source-list li + li { border-top: 1px solid var(--surface-2); }
.site-nav .nav-search__text, .nav-search__text { font-size: 15px !important; }

/* ── 스드메 페이지 전용(공통 시스템 위) ─────────────────────── */
.sdm-textarea {
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}
.sdm-textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; margin-top: 12px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 14px;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 700;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; }
.result-actions .btn-ghost, .result-actions .btn-primary { margin-top: 0; }
.result-actions { display: grid; gap: 12px; }
.sdm-card { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.sdm-card h2 { font-size: 17px; font-weight: 800; }
.sdm-card p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--sub); }
.sdm-card .note { font-size: 14px; color: var(--muted); }
.sdm-hint { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sdm-ol { list-style: decimal; padding-left: 20px; display: grid; gap: 12px; }
.sdm-ol li { font-size: 15px; line-height: 1.65; color: var(--sub); }
.sdm-ol strong { color: var(--ink); }
.sdm-cta { margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; }
.sdm-cta h2 { font-size: 17px; font-weight: 800; }
.sdm-cta p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.sdm-cta .btn-ghost.is-off { opacity: .6; pointer-events: none; }
.quick-list { display: grid; gap: 8px; margin: 12px 0 4px; }
.quick-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.quick-list b { font-weight: 600; }
.quick-list span { color: var(--muted); font-size: 14px; }
.sdm-result .result-actions { margin-top: 16px; }
.sdm-result .group__head { margin-top: 8px; }
.sdm-result .item__body:hover .item__name { color: var(--blue-dark); }
.sdm-layout .calc-col { gap: 20px; }
@media (max-width: 900px) {
  .sdm-layout .result-col { margin-top: 0; }
}
/* 스드메 토글 터치 영역 44px */
.sdm-result .switch { display: flex; align-items: center; height: 44px; }

/* 시안 A 보정 — 도구별 보조 버튼 줄 간격·타깃 */
.tool-bar, .sa-presets, .filters, .quick-row, .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-bar .btn-ghost, .tool-bar .chip { margin: 0; }
.up-item__name { min-height: 44px; }
.field-control { gap: 12px; }
.site-footer__brand { min-height: 44px; }

/* 홈 — 데스크톱에서 오른쪽 빈 여백을 없앤다 */
@media (min-width: 900px) {
  .h-lower { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .h-lower > .h-block { margin-top: 56px; }
  .h-lower > .h-block:first-child { margin-top: 56px; }
}
/* 푸터 도구 링크 구분점 */
.site-footer p a + a::before { content: "·"; margin-right: 8px; color: var(--line-strong); }

/* 접힘 행 사이 12px */
.fold + .fold, .fold + .folds, .folds + .fold { margin-top: 12px; }
.result-col .fold { margin-top: 12px; }
.result-col > .fold:first-of-type { margin-top: 16px; }
.ts-cta + .fold { margin-top: 12px; }

/* 접힘 표시자(+) — 기존 화살표 테두리 흔적 제거 */
.why > summary::after, .why summary::after {
  content: "+"; width: auto; height: auto; margin-left: auto;
  border: 0; transform: none; font-size: 20px; line-height: 1; color: var(--muted); font-weight: 500;
}
.why[open] > summary::after, .why[open] summary::after { content: "–"; transform: none; }
.why summary { min-height: 64px; font-size: 16px; font-weight: 700; }
/* 결과 카드의 조건 칩은 조용한 회색 텍스트로 */
.result-card .pill--blue { background: none; color: var(--muted); padding: 0; min-height: 0; font-weight: 500; }

/* 시안 A 보정 — 남은 작은 글자 크기 정리 */
.notice__icon, .ab-switch__label, .choice__desc, .cell-sub, .muted-sm, .num { font-size: 13px !important; }
.choice__label { font-size: 15px !important; }
.contact h2, main h2 { }
.ab-note, .ab-switch, .ab-switch__label { font-size: 13px !important; }
.ab-switch__label { font-size: 14px !important; }

/* 시안 A 보정 — 13.5/14.5/18 정리 */
.notice, .notice span, .notice b, .insight-list li, .insight-list b,
.card--pad-lg p, .card--pad-lg li, .card--pad-lg span, .form-embed__foot a { font-size: 14px !important; }
.insight-list b { font-weight: 700; color: var(--ink); }
.card--pad-lg h2, .card h2 { font-size: 20px !important; }

/* 세그먼트 탭(스드메 등 자체 스크립트 페이지) — 선택 상태를 흰 알약으로 */
.segment .tab[aria-selected="true"], .segment .tab.is-on {
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(23, 32, 45, 0.04);
}
.segment .tab[aria-selected="false"] { background: none; color: var(--sub); }

/* 홈 '자주 찾는' — 라벨 한 줄, 링크 한 줄 */
.h-quick { display: block; margin-top: 10px; }
.h-quick__label { display: block; padding: 0; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.h-quick__row { display: flex; flex-wrap: wrap; gap: 12px; }
.h-quick__row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-left: -12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--sub); }
.h-quick__row a:first-child { margin-left: 0; }
.h-quick__row a:hover { background: var(--surface-2); color: var(--ink); }

/* 홈 '자주 찾는' 링크 — 음수 여백 제거(간격 12px 보장) */
.h-quick__row a { margin-left: 0; padding: 0 4px; }

/* 시안 A 보정 — 단위가격 비교 페이지 미세 크기 */
.up-item__no, .badge.badge--good.up-item__badge { font-size: 13px !important; }
.up-item__badge { min-height: 26px; padding: 0 8px; }
main h2, .page-head + * h2 { }
section h2 { font-size: 20px; }

/* 시안 A 보정 — 모바일 첫 화면 안에 입력이 들어오도록 머리 높이 압축 */
@media (max-width: 719px) {
  .page-head { padding: 16px 0 12px; }
  .page-head h1 { font-size: 25px; line-height: 1.28; }
  .lead { margin-top: 8px; }
  .page-badges { margin-top: 10px; }
  .breadcrumb { padding-top: 12px; }
}

/* 텍스트형 버튼(linkbtn) — 기본 테두리·배경 제거 */
.linkbtn, .sdm-notes .linkbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  border: 0; background: none; color: var(--blue-dark);
  font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.sdm-notes .linkbtn { margin-left: 2px; }

/* ==========================================================================
   polish-1205 — 육안 검수 라운드에서 잡은 결함 수리
   (묶음 카드 · 결과 버튼 · 입력 정렬 · 표 줄바꿈)
   ========================================================================== */

/* 1) '더 알아보기' 묶음 카드 — 12~20개 접힘 행을 4~6개 행으로 */
.more-card {
  margin-top: 24px;
  padding: 2px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.03);
}
.more-card .fold {
  border: 0;
  border-radius: 0;
  background: none;
  margin: 0;
}
.more-card .fold + .fold { border-top: 1px solid var(--line); }
.more-card .fold > summary {
  min-height: 64px;
  padding: 0;
  font-size: 16px;
  gap: 10px;
}
.more-card .fold > summary:focus-visible { border-radius: 8px; outline-offset: -2px; }
.more-card .fold__body { padding: 2px 0 30px; }
.more-card .fold__body > .section,
.more-card .fold__body > .summary { margin: 0; padding: 0; border: 0; background: none; }
.more-card .fold__body .section-head { margin: 0 0 10px; }
.more-card .fold__body .section-head h2 {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.more-card .fold__body .section + .section,
.more-card .fold__body .summary + .section,
.more-card .fold__body .section + .summary {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.more-card .fold__body .summary h3 { font-size: 15px; margin-bottom: 10px; }
.more-card .fold__body .section-head p { font-size: 14.5px; line-height: 1.65; }
.more-card .fold__body .prose { font-size: 15px; line-height: 1.75; }
.more-card .fold__body .table-wrap { margin-top: 12px; }
@media (max-width: 900px) {
  .more-card { margin-top: 12px; padding: 0 18px; border-radius: var(--radius-lg); }
  .more-card .fold > summary { min-height: 60px; font-size: 15.5px; }
  .more-card .fold__body { padding-bottom: 24px; }
  .more-card .fold__body .section + .section,
  .more-card .fold__body .summary + .section,
  .more-card .fold__body .section + .summary { margin-top: 24px; padding-top: 22px; }
}

/* 2) 결과 카드 — 산출 근거 행과 버튼 줄을 64px 리듬에 맞춘다 */
.result-card .why,
.why {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.why > summary,
.why summary {
  min-height: 56px;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--sub);
}
.why > summary::after,
.why summary::after { margin-left: auto; }

/* 3) 결과 버튼 — 복사(파랑) 하나 + 캡처·링크·공유(회색 3칸) */
.result-actions { display: grid; gap: 12px; margin-top: 20px; }
.result-actions .result-action { height: 48px; }
.result-actions__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result-actions__row .result-action {
  height: 44px;
  padding: 0 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
  gap: 5px;
}
.result-actions__row .result-action:hover { background: var(--surface-2); color: var(--ink); }
.result-actions__row .result-action svg { width: 15px; height: 15px; }

/* 4) 입력 두 칸 정렬 — 오른쪽 칸이 20px 내려앉던 문제 */
.calc-col .field-row > .field { margin-top: 0; }
.calc-col .field-row > .field + .field { margin-top: 0; }

/* 5) 셀렉트 글자 잘림 — 화살표 자리를 비우고 말줄임 */
.field-control select {
  min-width: 0;
  max-width: 100%;
  padding-right: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 6) 결과 표 줄바꿈 — '9,592,800원 / 유리'처럼 값이 쪼개지지 않게 */
.result-row { gap: 14px; }
.result-row dt { line-height: 1.5; word-break: keep-all; }
.result-row dd { line-height: 1.45; word-break: keep-all; text-wrap: balance; }

/* 7) 3~4칸 세그먼트 — 좁은 화면에서 두 줄로 접히지 않게 가로 스크롤 */
@media (max-width: 640px) {
  .segment {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .segment::-webkit-scrollbar { display: none; }
  .segment button { flex: none; padding: 10px 13px; font-size: 13.5px; }
}

/* 8) 티스토리 관련 글 — 결과 카드 밖 전폭 한 줄로 낮게 */
.ts-cta { margin-top: 20px; }
.ts-cta__link { padding: 14px 18px; gap: 12px; }
.ts-cta__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ts-cta__lead { font-size: 14.5px; }
.ts-cta__title { width: 100%; font-size: 12.5px; }
.ts-cta__go { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .ts-cta { margin-top: 12px; }
  .ts-cta__link { padding: 14px 16px; }
}

/* 9) 더 알아보기 안의 FAQ — 카드 8개 대신 한 카드 안의 줄 8개로 */
.more-card .fold__body .faq { display: block; gap: 0; border: 0; background: none; }
.more-card .fold__body .faq details {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 0;
}
.more-card .fold__body .faq details:first-child { border-top: 0; }
.more-card .fold__body .faq summary { min-height: 56px; padding: 0; font-size: 15px; font-weight: 600; }
.more-card .fold__body .faq details p { padding: 0 0 18px; font-size: 14.5px; line-height: 1.72; }

/* 10) 묶음 행과 안쪽 제목이 같은 경우(FAQ 등) — 제목 중복 제거 */
.more-card .fold[data-dup] .section-head h2 { display: none; }
.more-card .fold[data-dup] .section-head { margin: 0; }

/* 11) 모바일 결과 행 — 라벨과 값이 한 줄에 안 들어가면 값을 오른쪽 새 줄로 */
@media (max-width: 560px) {
  .result-row { flex-wrap: wrap; gap: 2px 12px; }
  .result-row dt { flex: 1 1 auto; }
  .result-row dd { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
}

/* 12) 세그먼트 3칸이 390px 에서 딱 맞도록 — 오른쪽 글자 잘림 방지 */
@media (max-width: 640px) {
  .segment button { padding: 10px 8px; font-size: 12.5px; letter-spacing: -0.03em; }
}

/* 13) 스드메 페이지 접힘 목록도 같은 묶음 카드 리듬으로 */
.folds.more-card { display: block; gap: 0; }
.folds.more-card > .fold + .fold { border-top: 1px solid var(--line); }

/* 14) 결과 보조 버튼 3칸 — 12px 간격 규칙에 맞춘다 */
.result-actions__row { gap: 12px; }

/* 15) 계약 조항 '복사' 칩 — 28px → 손가락에 맞는 40px */
.copy-btn { min-height: 44px; padding: 0 13px; font-size: 12.5px; }
@media (max-width: 900px) { .copy-btn { min-height: 40px; padding: 0 14px; font-size: 13px; } }

/* 16) 터치 타깃 — 복사 칩 44px, 스드메 버튼 줄 간격 12px */
@media (max-width: 900px) { .copy-btn { min-height: 44px; } }
.sdm-check-page .result-actions, .sdm-result .result-actions { gap: 12px; }

/* 17) 날짜 입력 두 칸 — 좁은 화면에서 연도가 잘리지 않게 한 줄씩 */
.field-control input[type="date"] { font-size: 15px; }
@media (max-width: 560px) {
  .field-row:has(input[type="date"]) { grid-template-columns: minmax(0, 1fr); }
}

/* 18) 경고 박스 — 빨간 오류색 대신 조용한 회색 안내로 (계산 한계 설명) */
.notice--warn {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--sub);
}
.notice--warn .notice__icon { background: var(--muted); }

/* 19) '상세 내역 더보기' — 산출 근거 행과 같은 리듬(굵은 회색 + ＋) */
.result-more > summary {
  min-height: 56px;
  justify-content: flex-start;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sub);
}
.result-more > summary .more-panel__chev { margin-left: auto; }

/* 20) 두 칸 입력 — 한쪽 라벨이 두 줄이어도 입력칸 높이를 맞춘다
   (small 은 줄바꿈하지 않는다: '연'·'등'만 다음 줄로 떨어지던 문제) */
.field-row .field-label small { white-space: nowrap; }
.field-row:has(.field-label small) .field-label { min-height: 40px; }

/* 21) 접힘 행 + 표시를 오른쪽 끝으로 — 메타(개수) 없는 행도 같은 자리 */
.fold > summary:not(:has(.fold__meta))::after { margin-left: auto; }

/* 22) 고정비 진단기 항목 — '주기/분류' 셀렉트 글자가 잘리지 않게 */
.sa-row .field-control { padding: 0 12px; }
.sa-row select { font-size: 14px; padding-right: 24px; }
.sa-row input { font-size: 15px; }

/* 23) 결과 요약 textarea — 비어 있을 때는 큰 빈 상자 대신 안내 한 줄 높이로 */
.text-box:placeholder-shown {
  height: 104px !important;
  min-height: 104px !important;
}

/* 24) 가로로 넘치는 표 — 안내는 app.js 가 .table-scroll-hint 로 붙인다(중복 금지) */

/* 25) 모바일 표 — 520px 최소폭 강제를 풀어 내용에 맞춰 줄인다(넘치면 그때만 스크롤) */
@media (max-width: 900px) {
  table.data { min-width: 0; }
  table.data th, table.data td { padding-left: 8px; padding-right: 8px; }
}

/* 26) 좁은 화면 표 밀도 — 살짝 넘치는 표가 스크롤 없이 들어오도록 */
@media (max-width: 560px) {
  table.data { font-size: 13px; }
  table.data th, table.data td { padding-left: 6px; padding-right: 6px; }
}

/* 27) 홈 도구 행 화살표 — 너무 흐려 잘린 것처럼 보이던 색 */
.h-rows__go { color: var(--muted); }
.css-hook{--x:0}

/* 28) 결과 보조 버튼 — 아이콘 없이 글자만(2줄로 접히지 않게) */
.result-actions__row .result-action { font-size: 13.5px; }

/* 29) 소개 페이지 — 계산 근거·출처 긴 목록은 14.5px 줄로 접어 둔다 */
.source-list { margin: 4px 0 0; padding: 0; list-style: none; }
.source-list li {
  position: relative;
  padding: 12px 0 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--sub);
}
.source-list li:first-child { border-top: 0; }
.source-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}
.source-list li strong { color: var(--ink); }

/* 30) 홈 화면 추가 안내가 떠 있을 때 — 아래 내용이 가려지지 않게 여백 확보 */
body:has(.pwa-install) { padding-bottom: 96px; }

/* 31) 키보드 포커스 링 — 요소 크기에 맞게 */
.site-nav a:focus-visible,
.nav-search:focus-visible { outline-offset: -2px; border-radius: 10px; }

/* 32) 결과 카드 아래 빈 노드(.stack)가 만드는 여백 제거 */
.result-col > .stack:empty { display: none; }
.result-actions__status:empty { display: none; }

/* 33) 홈 '상황으로 찾기' 카드 — 모바일에서 높이를 줄여 한 화면에 더 보이게 */
@media (max-width: 900px) {
  .h-cards { gap: 12px; }
  .h-card { min-height: 0; padding: 16px 18px; }
  .h-card__k { font-size: 16px; }
  .h-card__d { margin-top: 4px; font-size: 13.5px; }
  .h-card__n { margin-top: 10px; font-size: 12.5px; }
}

/* 34) 결과 카드 '상세 내역' 구분선 — 점선 대신 다른 행과 같은 실선 */
.result-more { margin-top: 6px; border-top: 1px solid var(--line); }

/* 35) 임베드 모드 — 계산기와 결과만, 더 알아보기는 접어 둔다 */
body.embed-mode .more-card { display: none !important; }
body.embed-mode .page-head h1 { margin-top: 2px; }

/* 36) PC 접힘 본문 — 한 줄이 너무 길어지지 않게 읽기 폭 제한 */
@media (min-width: 901px) {
  .more-card .fold__body .prose,
  .more-card .fold__body .section-head p,
  .more-card .fold__body .faq details p,
  .more-card .fold__body .source-list { max-width: 640px; }
}

/* 37) 결과 부제 — 390px 에서 한 줄에 들어오도록 살짝 조인다 */
@media (max-width: 560px) {
  .result-sub { font-size: 14.5px; letter-spacing: -0.02em; }
}

/* 38) 계산기 안 '계산 기준' 안내 — 파란 알림 대신 조용한 회색 상자 */
.calc-col .notice:not(.notice--good):not(.notice--warn) {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--sub);
  font-weight: 500;
}
.calc-col .notice:not(.notice--good):not(.notice--warn) b { color: var(--ink); font-weight: 700; }

/* 39) 여러 개 선택지가 있는 세그먼트(.segment--wrap)는 줄바꿈 허용 */
@media (max-width: 640px) {
  .segment.segment--wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .segment.segment--wrap button { flex: none; width: 100%; }
}
