:root {
  --ink: #17231f;
  --muted: #64716b;
  --line: #dfe6e2;
  --soft-line: #edf1ef;
  --green-950: #0d3529;
  --green-800: #174a3a;
  --green-700: #216047;
  --green-100: #dff1e8;
  --green-50: #f1f8f5;
  --orange: #ff7043;
  --orange-dark: #e7572c;
  --orange-soft: #fff0e9;
  --cream: #fffaf2;
  --surface: #ffffff;
  --canvas: #f5f7f5;
  --danger: #ba3f38;
  --shadow-sm: 0 6px 20px rgba(20, 42, 34, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 43, 33, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.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: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--green-950);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid rgba(255, 112, 67, 0.5);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  z-index: 500;
  top: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: white;
  background: var(--green-800);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand__text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.desktop-nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
  align-items: center;
}

.desktop-nav a,
.desktop-nav button {
  position: relative;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 750;
}

.desktop-nav .is-active::after {
  position: absolute;
  right: 0;
  bottom: -25px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green-800);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.text-button,
.partner-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.text-button:hover {
  background: var(--green-50);
}

.partner-button {
  color: white;
  background: var(--green-800);
}

.partner-button:hover {
  background: var(--green-950);
}

main {
  min-height: calc(100vh - 68px);
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 64px) 20px;
}

.eyebrow,
.sheet__eyebrow,
.operator-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.finder-head h1 {
  margin: 0 0 5px;
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.finder-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.fit-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
  padding: 13px 14px;
  border: 1px solid #c7ddd3;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.fit-cta:hover {
  border-color: var(--green-700);
  transform: translateY(-1px);
}

.fit-cta__icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-weight: 900;
}

.fit-cta > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.fit-cta strong {
  font-size: 14px;
}

.fit-cta small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.search-bar,
.quick-filters {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding-right: clamp(20px, 4vw, 64px);
  padding-left: clamp(20px, 4vw, 64px);
}

.search-bar {
  gap: 8px;
}

.location-button,
.search-input,
.filter-button,
.cost-button {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.location-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 225px;
  padding: 0 14px;
  text-align: left;
}

.location-button > span:first-child {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.location-button > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.location-button small {
  color: var(--muted);
  font-size: 10px;
}

.location-button strong {
  margin-top: 1px;
  font-size: 14px;
}

.search-input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.search-input > span[aria-hidden] {
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}

.search-input input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.filter-button,
.cost-button {
  flex: none;
  padding: 0 17px;
  font-weight: 800;
}

.filter-button:hover,
.location-button:hover {
  border-color: #a9c3b7;
}

.filter-count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-size: 10px;
}

.cost-button {
  border-color: var(--green-800);
  color: white;
  background: var(--green-800);
}

.quick-filters {
  gap: 7px;
  padding-top: 10px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex: none;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  font-size: 12px;
  font-weight: 720;
}

.quick-chip:hover,
.quick-chip[aria-pressed="true"] {
  border-color: var(--green-700);
  color: var(--green-800);
  background: var(--green-50);
}

.quick-chip:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.quick-chip--more {
  color: var(--muted);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #19a565;
  box-shadow: 0 0 0 3px #ddf6eb;
}

.mobile-view-switch {
  display: none;
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(400px, 475px) 1fr;
  height: calc(100vh - 276px);
  min-height: calc(100vh - 276px);
  border-top: 1px solid var(--line);
  background: white;
}

.list-pane {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: white;
  scrollbar-color: #cfd8d3 transparent;
  scrollbar-width: thin;
}

.result-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.result-toolbar strong {
  font-size: 15px;
}

.info-link {
  margin-left: 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.sort-select select {
  padding: 6px 24px 6px 8px;
  border: 0;
  color: var(--muted);
  background: white;
  font-size: 12px;
}

.data-note {
  display: flex;
  gap: 9px;
  margin: 12px 14px 4px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #34564a;
  background: var(--green-50);
}

.data-note > span {
  margin-top: 1px;
  color: var(--green-700);
  font-size: 8px;
}

.data-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

/* SOFTM-region-quality-panel 시작: 좁은 목록에서도 지역 평가분포와 필터 상태를 빠르게 비교 (2026-08-28) */
.region-quality {
  margin: 8px 14px 4px;
  padding: 12px;
  border: 1px solid #dce7e2;
  border-radius: 12px;
  background: white;
}

.region-quality__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.region-quality__head div {
  display: flex;
  flex-direction: column;
}

.region-quality__head span {
  color: var(--muted);
  font-size: 9px;
}

.region-quality__head strong {
  margin-top: 2px;
  color: var(--green-900);
  font-size: 13px;
}

.region-quality__head small {
  color: var(--muted);
  font-size: 8px;
}

.region-quality__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.region-quality__metrics button {
  min-height: 58px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--canvas);
  text-align: center;
}

.region-quality__metrics button:hover,
.region-quality__metrics button[aria-pressed="true"] {
  border-color: var(--green-700);
  color: var(--green-900);
  background: var(--green-50);
}

.region-quality__metrics button:focus-visible {
  outline: 3px solid rgba(37, 111, 84, 0.16);
  outline-offset: 1px;
}

.region-quality__metrics span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.region-quality__metrics strong {
  display: inline-block;
  margin-top: 2px;
  font-size: 16px;
}

.region-quality__metrics small {
  margin-left: 1px;
  font-size: 8px;
}

.region-quality > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}
/* SOFTM-region-quality-panel 끝: 지역 전체 통계와 검색결과 수를 시각적으로 구분 (2026-08-28) */

/* SOFTM-quality-guide 시작: 평가·가족핏·방문확인의 판단 순서를 목록 상단에 표현 (2026-08-28) */
.quality-guide {
  margin: 8px 14px 4px;
  padding: 12px;
  border: 1px solid #eadfcf;
  border-radius: 12px;
  background: var(--cream);
}

.quality-guide > strong {
  font-size: 12px;
}

.quality-guide ol {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.quality-guide li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5d5c54;
  font-size: 10px;
}

.quality-guide b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
  font-size: 9px;
}
/* SOFTM-quality-guide 끝: 단일 점수 대신 단계별 탐색을 안내 (2026-08-28) */

.facility-list {
  padding: 4px 14px 12px;
}

.facility-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--soft-line);
  background: white;
  transition: background 160ms ease;
}

.facility-card:hover,
.facility-card.is-selected {
  margin: 0 -8px;
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 14px;
  background: #f8fbf9;
}

.facility-thumb {
  position: relative;
  display: flex;
  height: 90px;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding: 8px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--thumb-a, #286c56), var(--thumb-b, #d7aa70));
}

.facility-thumb::before,
.facility-thumb::after {
  position: absolute;
  content: "";
}

.facility-thumb::before {
  right: -14px;
  bottom: -22px;
  width: 80px;
  height: 80px;
  border: 18px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.facility-thumb::after {
  top: 13px;
  left: 14px;
  width: 34px;
  height: 42px;
  border: 5px solid rgba(255, 255, 255, 0.38);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.facility-thumb strong {
  position: relative;
  z-index: 1;
  font-size: 16px;
  letter-spacing: -0.05em;
}

.facility-thumb small {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  border-radius: 99px;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  font-weight: 850;
}

/* SOFTM-national-card 시작: 전국 평가 전용 카드가 상세 운영정보 카드와 시각적으로 구분됨 (2026-08-28) */
.facility-card--evaluation {
  min-height: 170px;
}

.evaluation-thumb {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 20px;
}

.evaluation-thumb::after {
  display: none;
}

.evaluation-thumb strong {
  font-size: 32px;
  line-height: 1;
}

.evaluation-thumb > span {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 850;
}

.official-only-label {
  color: var(--green-700);
  font-size: 9px;
  font-weight: 850;
}
/* SOFTM-national-card 끝: 평가등급·총점·자료범위를 카드 첫 화면에서 인지 (2026-08-28) */

.card-main {
  min-width: 0;
}

/* SOFTM-card-evidence 시작: 평가 배지와 상담상태가 좁은 카드에서도 줄바꿈되도록 보완 (2026-08-28) */
.card-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-right: 32px;
}
/* SOFTM-card-evidence 끝: 카드 근거 배지 반응형 배치 (2026-08-28) */

.fit-score {
  flex: none;
  padding: 3px 6px;
  border-radius: 5px;
  color: #a83918;
  background: var(--orange-soft);
  font-size: 10px;
  font-weight: 900;
}

.fit-score.is-top {
  color: white;
  background: var(--green-800);
}

/* SOFTM-evaluation-badges 시작: 공단 평가등급과 미공개 상태를 명확히 구분 (2026-08-28) */
.evaluation-badge {
  flex: none;
  padding: 4px 7px;
  border-radius: 6px;
  color: #3c3428;
  background: #f3ead9;
  font-size: 9px;
  font-weight: 900;
}

.evaluation-badge.grade-A {
  color: #7b4d00;
  background: #fff0c6;
}

.evaluation-badge.grade-B {
  color: #24536c;
  background: #e5f2f8;
}

.evaluation-badge.grade-C,
.evaluation-badge.grade-D,
.evaluation-badge.grade-E {
  color: #674842;
  background: #f7e9e5;
}

.evaluation-badge.is-unrated {
  color: var(--muted);
  background: #eef1ef;
}

.visit-progress {
  color: var(--green-700);
  font-weight: 800;
}
/* SOFTM-evaluation-badges 끝: 공식 평가와 방문확인 진행도 표시 (2026-08-28) */

.available-label {
  color: #167e52;
  font-size: 10px;
  font-weight: 800;
}

.facility-card h2 {
  margin: 6px 34px 4px 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-address {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.facility-meta span + span::before {
  margin-right: 6px;
  color: #c0c9c4;
  content: "·";
}

/* SOFTM-evidence-board 시작: 공단·가족·직접확인을 색과 행으로 분리해 단일 점수 오해 방지 (2026-08-28) */
.card-evidence-board {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: var(--soft-line);
}

.card-evidence-board > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 8px;
  background: white;
}

.card-evidence-board strong {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-label {
  display: inline-flex;
  width: max-content;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 900;
}

.evidence-label--official {
  color: #24536c;
  background: #e5f2f8;
}

.evidence-label--family {
  color: #166052;
  background: #e4f5f0;
}

.evidence-label--direct {
  color: #85500e;
  background: #fff0d6;
}
/* SOFTM-evidence-board 끝: 근거 출처별 상태를 좁은 목록에서도 빠르게 비교 (2026-08-28) */

.reason-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reason-row {
  margin-top: 7px;
}

.reason-chip {
  padding: 4px 6px;
  border-radius: 5px;
  color: #2f6451;
  background: var(--green-50);
  font-size: 9px;
  font-weight: 750;
}

/* SOFTM-evaluation-insight-ui 시작: 공식 평가의 강점과 방문 우선확인을 같은 무게로 노출 (2026-08-28) */
.evaluation-insight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.quality-strength,
.quality-attention {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
}

.quality-strength {
  color: #226047;
  background: #e7f5ee;
}

.quality-attention {
  color: #7a4c16;
  background: #fff2dc;
}
/* SOFTM-evaluation-insight-ui 끝: 높은 점수만 보여주는 선택 편향 완화 (2026-08-28) */

.tag-row {
  margin-top: 6px;
}

.tag {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: white;
  font-size: 9px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.card-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.card-bottom p strong {
  color: var(--ink);
  font-size: 11px;
}

.card-actions {
  display: flex;
  gap: 5px;
}

.card-actions button,
.card-actions a {
  display: inline-grid;
  height: 28px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 10px;
  font-weight: 800;
}

.card-actions .inquiry-action {
  border-color: var(--green-800);
  color: white;
  background: var(--green-800);
}

.card-actions .candidate-action {
  border-color: var(--green-800);
  color: white;
  background: var(--green-800);
}

.decision-readiness {
  color: var(--green-700);
  font-weight: 900;
}

.compare-toggle {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-size: 14px;
}

.compare-toggle[aria-pressed="true"] {
  border-color: var(--orange);
  color: white;
  background: var(--orange);
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button {
  height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--green-800);
  font-weight: 800;
}

.operator-card {
  margin: 14px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: white;
  background: var(--green-950);
}

.operator-card__eyebrow {
  color: #9cd2bd;
}

.operator-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.operator-card p {
  margin: 0 0 15px;
  color: #cbe0d7;
  font-size: 11px;
  line-height: 1.55;
}

.operator-card button {
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.list-footer {
  padding: 20px 18px 36px;
  color: var(--muted);
  background: #fafbf9;
  font-size: 10px;
  line-height: 1.6;
}

.list-footer p {
  margin: 0 0 6px;
}

.list-footer button {
  padding: 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.map-pane {
  position: relative;
  height: 100%;
  min-height: 560px;
}

/* SOFTM-national-map-empty 시작: 상세 좌표가 없는 지역에서도 오류처럼 보이지 않는 안내 상태 제공 (2026-08-28) */
.map-data-unavailable {
  position: absolute;
  z-index: 440;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(360px, calc(100% - 40px));
  padding: 26px;
  place-items: center;
  border: 1px solid rgba(199, 221, 211, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -58%);
  text-align: center;
}

.map-data-unavailable > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
  font-size: 24px;
}

.map-data-unavailable strong {
  font-size: 16px;
}

.map-data-unavailable p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
/* SOFTM-national-map-empty 끝: 평가 목록과 지도 상세정보의 연동 범위를 투명하게 표시 (2026-08-28) */

#careMap {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #e7eee9;
}

/* SOFTM-naver-map-ui 시작: 네이버 지도 마커와 SDK·인증 실패 안내를 서비스 UI에 맞춤 (2026-09-01) */
.care-marker-wrap {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: flex-end;
  justify-content: center;
}

.care-map-error {
  display: grid;
  width: min(420px, calc(100% - 40px));
  margin: 80px auto 0;
  padding: 24px;
  border: 1px solid rgba(199, 221, 211, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.care-map-error strong {
  color: var(--green-950);
  font-size: 17px;
}

.care-map-error p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.care-map-error small {
  color: var(--muted-light);
  line-height: 1.5;
}

.care-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50% 50% 50% 10%;
  color: white;
  background: var(--green-700);
  box-shadow: 0 5px 12px rgba(13, 53, 41, 0.28);
  transform: rotate(-45deg);
  font-size: 11px;
  font-weight: 900;
}

.care-marker span {
  transform: rotate(45deg);
}

.care-marker.is-top {
  width: 42px;
  height: 42px;
  background: var(--orange);
}

.care-marker.is-selected {
  box-shadow: 0 0 0 5px rgba(255, 112, 67, 0.24), 0 7px 16px rgba(13, 53, 41, 0.3);
}
/* SOFTM-naver-map-ui 끝: 지도 실패 시 목록 사용 가능성과 해결 방법을 함께 안내 (2026-09-01) */

.map-summary {
  position: absolute;
  z-index: 450;
  right: 18px;
  bottom: 24px;
  left: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 13px;
  border: 1px solid rgba(211, 223, 217, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
}

.map-summary__score {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
}

.map-summary__score strong {
  align-self: end;
  font-size: 19px;
  line-height: 1;
}

.map-summary__score small {
  align-self: start;
  font-size: 8px;
}

.map-summary > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.map-summary > div:nth-child(2) span,
.map-summary > div:nth-child(2) small {
  color: var(--muted);
  font-size: 9px;
}

.map-summary > div:nth-child(2) strong {
  margin: 2px 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-summary button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--green-800);
  font-size: 11px;
  font-weight: 850;
}

.map-legend {
  position: absolute;
  z-index: 450;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 9px;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-pin {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-700);
}

.legend-pin--top {
  background: var(--orange);
}

.map-research {
  position: absolute;
  z-index: 450;
  top: 18px;
  left: 50%;
  display: none;
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 99px;
  color: white;
  background: var(--green-950);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
}

.map-research.is-visible {
  display: block;
}

.compare-bar {
  position: fixed;
  z-index: 850;
  right: 24px;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  padding: 10px 12px;
  border: 1px solid #d7e3dd;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  transform: translateX(-30%);
  backdrop-filter: blur(14px);
}

.compare-bar__items {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

.compare-mini {
  display: flex;
  max-width: 135px;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--green-50);
}

.compare-mini span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-mini button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.compare-bar > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.compare-reset,
.compare-open {
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}

.compare-reset {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.compare-open {
  border: 0;
  color: white;
  background: var(--orange);
}

.mobile-nav {
  display: none;
}

dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(8, 26, 19, 0.56);
  backdrop-filter: blur(2px);
}

dialog[open] {
  display: grid;
  place-items: center;
}

.sheet__surface {
  display: flex;
  width: min(940px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.region-dialog .sheet__surface,
.filter-dialog .sheet__surface {
  width: min(1080px, calc(100% - 32px));
}

.cost-dialog .sheet__surface,
.partner-dialog .sheet__surface {
  width: min(1050px, calc(100% - 32px));
}

.sheet__header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 17px;
  border-bottom: 1px solid var(--soft-line);
}

.sheet__header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.icon-close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0 0 4px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f5f3;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.sheet__footer {
  display: flex;
  flex: none;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--soft-line);
  background: white;
}

.primary-button,
.secondary-button {
  min-width: 150px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 850;
}

.primary-button {
  border: 0;
  color: white;
  background: var(--orange);
}

.primary-button:hover {
  background: var(--orange-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: white;
}

.region-breadcrumb {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 18px 28px 0;
}

.region-breadcrumb button {
  padding: 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-weight: 850;
}

.region-breadcrumb span {
  color: #a8b1ac;
}

.region-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 28px;
  overflow: auto;
}

.region-columns h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.region-grid button {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 12px;
}

.region-grid button:hover,
.region-grid button.is-selected {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-weight: 850;
}

.region-grid button[disabled] {
  color: #a8b0ac;
  background: #f7f8f7;
}

.region-notice {
  margin: 0 28px 20px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 11px;
}

.filter-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 22px 28px;
  overflow: auto;
}

.filter-sections fieldset,
.priority-grid {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-sections legend,
.priority-grid legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 850;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.check-card:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-50);
}

.check-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.42;
}

.check-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-700);
}

.check-card span {
  display: flex;
  flex-direction: column;
}

.check-card strong {
  font-size: 12px;
}

.check-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 26px 28px 18px;
  overflow: auto;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calculator-form label,
.partner-form-grid label,
.fit-note {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #3d4d47;
  font-size: 11px;
  font-weight: 800;
}

.calculator-form select,
.calculator-form input[type="number"],
.partner-form-grid select,
.partner-form-grid input,
.fit-note textarea {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
}

.fit-note textarea {
  height: auto;
  padding-top: 12px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-value {
  float: right;
  align-self: flex-end;
  margin-top: -21px;
  color: var(--orange-dark);
}

.calculator-form input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.cost-result {
  padding: 24px;
  border-radius: 18px;
  color: white;
  background: var(--green-950);
}

.cost-result__eyebrow {
  color: #acd6c4;
  font-size: 11px;
  font-weight: 750;
}

.cost-result > strong {
  display: block;
  margin: 5px 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.cost-result > p {
  margin: 0 0 20px;
  color: #bad7cb;
  font-size: 11px;
}

.cost-result dl {
  margin: 0;
}

.cost-result dl div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.cost-result dt {
  color: #bad7cb;
}

.cost-result dd {
  margin: 0;
  font-weight: 750;
}

.limit-meter {
  height: 6px;
  margin: 17px 0 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.limit-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #7bd5ae;
  transition: width 250ms ease;
}

.cost-result > small {
  display: block;
  color: #bad7cb;
  font-size: 9px;
}

.share-cost {
  width: 100%;
  height: 39px;
  margin-top: 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.calculation-notice {
  display: flex;
  gap: 10px;
  margin: 0 28px 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--canvas);
  font-size: 10px;
  line-height: 1.55;
}

.calculation-notice strong {
  flex: none;
  color: var(--green-700);
}

.calculation-notice p {
  margin: 0;
  color: var(--muted);
}

.fit-intro {
  padding: 26px 28px 14px;
  overflow: auto;
}

.fit-intro__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.fit-intro__graphic span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
  font-size: 12px;
  font-weight: 850;
}

.fit-intro__graphic span:last-child {
  background: var(--orange);
}

.fit-intro__graphic i {
  width: 42px;
  height: 2px;
  background: #cddbd5;
}

.fit-intro p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 12px 28px;
  overflow: auto;
}

.priority-grid legend {
  grid-column: 1 / -1;
}

.priority-grid label {
  display: grid;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.priority-grid label:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green-700);
}

.priority-grid input {
  position: absolute;
  opacity: 0;
}

.priority-grid label > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-700);
  background: #e4f1eb;
  font-size: 13px;
  font-weight: 900;
}

.priority-grid strong {
  margin-top: 8px;
  font-size: 12px;
}

.priority-grid small {
  color: var(--muted);
  font-size: 10px;
}

.fit-note {
  padding: 10px 28px 22px;
  overflow: auto;
}

.detail-dialog .sheet__surface {
  width: min(980px, calc(100% - 32px));
  overflow-y: auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 28px;
  color: white;
  background: var(--green-950);
}

.detail-hero h2 {
  margin: 7px 0;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.detail-hero p {
  margin: 0;
  color: #c0d9cf;
  font-size: 12px;
}

.detail-hero .icon-close {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.detail-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.detail-score-row span {
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 24px 28px;
}

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

.detail-section h3,
.source-layout h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-facts div {
  padding: 11px;
  border-radius: 10px;
  background: var(--canvas);
}

.detail-facts small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.detail-facts strong {
  font-size: 11px;
}

/* SOFTM-quality-detail 시작: 공식 평가영역과 방문 확인표를 상세 화면에 제공 (2026-08-28) */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h3 {
  margin: 0;
}

.section-heading a,
.section-heading > strong {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 850;
}

.evaluation-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid #eadfcf;
  border-radius: 14px;
  background: var(--cream);
}

.evaluation-grade {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
}

.evaluation-grade.grade-A {
  background: #b97800;
}

.evaluation-grade.grade-C,
.evaluation-grade.grade-D,
.evaluation-grade.grade-E {
  background: #8c5c52;
}

.evaluation-grade strong {
  font-size: 26px;
  line-height: 1;
}

.evaluation-grade small {
  margin-top: 3px;
  font-size: 8px;
}

.evaluation-summary > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.evaluation-summary > div:last-child > strong {
  font-size: 18px;
}

.evaluation-summary span,
.evaluation-summary > div:last-child > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.evaluation-areas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.evaluation-areas > div {
  padding: 8px;
  border-radius: 9px;
  background: var(--canvas);
}

.evaluation-areas span,
.evaluation-areas strong {
  display: block;
  font-size: 8px;
}

.evaluation-areas strong {
  margin: 2px 0 5px;
  font-size: 11px;
}

.evaluation-areas i,
.evaluation-areas b {
  display: block;
  height: 3px;
  border-radius: 99px;
}

.evaluation-areas i {
  background: #dfe6e2;
}

.evaluation-areas b {
  background: var(--green-700);
}

.evaluation-guidance {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7px;
  margin-top: 9px;
}

.evaluation-guidance > div {
  display: flex;
  flex-direction: column;
  padding: 11px;
  border-radius: 10px;
}

.evaluation-guidance .is-strength {
  color: #245c47;
  background: #eaf6f0;
}

.evaluation-guidance .is-attention {
  color: #704915;
  background: #fff3df;
}

.evaluation-guidance span,
.evaluation-guidance small {
  font-size: 8px;
}

.evaluation-guidance strong {
  margin-top: 3px;
  font-size: 11px;
}

.evaluation-guidance small {
  margin-top: 5px;
  color: #765f42;
  line-height: 1.45;
}

.evaluation-empty {
  padding: 14px;
  border-radius: 12px;
  color: #5f544b;
  background: #f8f0ea;
}

.evaluation-empty strong {
  font-size: 11px;
}

.evaluation-empty p,
.quality-disclaimer {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.quality-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e9e6;
}

.quality-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 180ms ease;
}

/* SOFTM-decision-steps 시작: 기관평점이 아닌 사용자의 확인 진행도를 4단계로 표현 (2026-08-28) */
.decision-score-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.decision-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.decision-steps span {
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 8px;
  font-weight: 800;
}

.decision-steps .is-complete {
  color: #1e654c;
  background: #e8f5ef;
}
/* SOFTM-decision-steps 끝: 다음 행동이 남았는지 후보마다 같은 기준으로 안내 (2026-08-28) */

.quality-checklist {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.quality-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.quality-checklist input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green-700);
}

.quality-checklist span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.quality-checklist strong {
  font-size: 10px;
}

.quality-checklist small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.quality-note {
  display: block;
  margin-top: 12px;
}

.official-check-tools {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 7px;
  margin-top: 10px;
}

.official-check-tools a,
.official-check-tools button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid #2f765b;
  border-radius: 9px;
  color: #1f5b45;
  background: #eef7f3;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.official-check-tools button {
  color: var(--muted);
  background: white;
}

.quality-note > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
}

.quality-note textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
}

.quality-note textarea:focus {
  border-color: var(--green-700);
  outline: 3px solid rgba(37, 111, 84, 0.12);
}

.quality-note small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.quality-note small span {
  color: var(--green-700);
  font-weight: 800;
}

.quality-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.copy-checklist,
.print-checklist {
  width: 100%;
  height: 38px;
  border: 1px solid var(--green-700);
  border-radius: 9px;
  color: var(--green-800);
  background: white;
  font-size: 10px;
  font-weight: 850;
}

.print-checklist {
  color: white;
  background: var(--green-800);
}
/* SOFTM-quality-detail 끝: 평가 근거와 현장 검증 기록을 한 화면에서 비교 (2026-08-28) */

.print-area {
  display: none;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 19px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.trust-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--green-700);
  content: "✓";
  font-weight: 900;
}

.inquiry-panel {
  position: sticky;
  top: 0;
  padding: 18px;
  border: 1px solid #cfe0d8;
  border-radius: 16px;
  background: var(--green-50);
}

/* SOFTM-official-data-panel 시작: 전국 상세창에서 공식자료와 미연동 항목을 별도 패널로 안내 (2026-08-28) */
.official-data-panel {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 18px;
  border: 1px solid #cfe0d8;
  border-radius: 16px;
  background: var(--green-50);
}

.official-data-panel > span {
  color: var(--green-700);
  font-size: 9px;
  font-weight: 850;
}

.official-data-panel h3 {
  margin: 5px 0 14px;
  font-size: 16px;
}

.official-data-panel dl {
  margin: 0;
}

.official-data-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #dbe9e3;
  font-size: 10px;
}

.official-data-panel dt {
  color: var(--muted);
}

.official-data-panel dd {
  margin: 0;
  font-weight: 800;
}

.official-data-panel p {
  margin: 14px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.official-data-panel a {
  display: block;
  padding: 11px;
  border-radius: 9px;
  color: white;
  background: var(--green-800);
  text-align: center;
  font-size: 10px;
  font-weight: 850;
}
/* SOFTM-official-data-panel 끝: 상세 API 연결 전 확인 경로를 제공 (2026-08-28) */

.inquiry-panel h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.call-question-list {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding-left: 20px;
  color: #34453e;
  font-size: 10px;
  line-height: 1.5;
}

.call-question-list li::marker {
  color: var(--orange);
  font-weight: 900;
}

.inquiry-panel > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.inquiry-panel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  color: #42554d;
  font-size: 10px;
  font-weight: 750;
}

.inquiry-panel input,
.inquiry-panel select,
.inquiry-panel textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cedbd5;
  border-radius: 9px;
  background: white;
}

.inquiry-panel textarea {
  min-height: 72px;
  resize: vertical;
}

.inquiry-panel button,
.inquiry-panel a {
  display: grid;
  width: 100%;
  height: 44px;
  margin-top: 7px;
  place-items: center;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
}

.inquiry-panel button {
  border: 0;
  color: white;
  background: var(--orange);
}

.inquiry-panel a {
  border: 1px solid #b8ccc3;
  background: white;
}

.compare-table-wrap {
  padding: 20px 28px;
  overflow: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-spacing: 0;
  border-collapse: separate;
}

.compare-table th,
.compare-table td {
  padding: 12px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  text-align: center;
  font-size: 11px;
}

.compare-table tr:first-child th {
  border-top: 1px solid var(--soft-line);
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 130px;
  border-left: 1px solid var(--soft-line);
  color: var(--muted);
  background: #fafbf9;
  text-align: left;
}

.compare-table thead th:not(:first-child) {
  min-width: 180px;
  padding: 18px 12px;
  color: var(--green-950);
  background: var(--green-50);
}

.compare-table thead strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.comparison-disclaimer {
  margin: 0 28px 18px;
  color: var(--muted);
  font-size: 10px;
}

.partner-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  color: white;
  background: var(--green-950);
}

.partner-hero > div > strong {
  color: #91d6b9;
  font-size: 11px;
}

.partner-hero h3 {
  margin: 5px 0;
  font-size: 22px;
}

.partner-hero p {
  margin: 0;
  color: #c2dbd1;
  font-size: 11px;
}

.partner-metric {
  padding: 15px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.partner-metric span,
.partner-metric small {
  display: block;
  color: #c2dbd1;
  font-size: 9px;
}

.partner-metric strong {
  display: block;
  margin: 3px 0;
  color: white !important;
  font-size: 28px !important;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 28px 12px;
  overflow: auto;
}

.pricing-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.pricing-grid article.is-featured {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.pricing-grid article > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.pricing-grid em {
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  color: white;
  background: var(--orange);
  font-size: 8px;
  font-style: normal;
}

.pricing-grid article > strong {
  display: block;
  margin: 7px 0 12px;
  font-size: 17px;
}

.pricing-grid article > strong small {
  color: var(--muted);
  font-size: 9px;
}

.pricing-grid ul {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.partner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 28px 12px;
}

.consent-check {
  display: flex;
  gap: 8px;
  margin: 0 28px 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.consent-check input {
  flex: none;
  accent-color: var(--green-700);
}

.source-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px 28px;
  overflow: auto;
}

.source-layout section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.source-layout p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.source-layout a {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 850;
}

.source-layout .source-warning {
  border-color: #f2c6b7;
  background: var(--orange-soft);
}

.toast {
  position: fixed;
  z-index: 2000;
  bottom: 30px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  background: var(--green-950);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .site-header {
    height: 60px;
    padding: 0 16px;
  }

  .desktop-nav,
  .desktop-only {
    display: none !important;
  }

  .brand__text {
    font-size: 18px;
  }

  .partner-button {
    height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .finder-head {
    align-items: flex-start;
    padding: 20px 16px 14px;
  }

  .finder-head h1 {
    font-size: 26px;
  }

  .finder-head p {
    max-width: 520px;
    font-size: 12px;
    line-height: 1.5;
  }

  .fit-cta {
    min-width: 190px;
  }

  .search-bar,
  .quick-filters {
    padding-right: 16px;
    padding-left: 16px;
  }

  .search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .location-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .finder-layout {
    grid-template-columns: minmax(360px, 420px) 1fr;
  }

  .compare-bar {
    left: 18px;
    transform: none;
  }

  .filter-sections,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 67px;
  }

  .finder-head {
    display: block;
  }

  .finder-head__copy p {
    padding-right: 20px;
  }

  .fit-cta {
    width: 100%;
    margin-top: 15px;
  }

  .search-bar {
    padding-top: 0;
  }

  .location-button,
  .search-input,
  .filter-button {
    height: 48px;
  }

  .quick-filters {
    padding-bottom: 10px;
  }

  .mobile-view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    scroll-margin-top: 60px;
    margin: 0 16px 10px;
    padding: 3px;
    border-radius: 10px;
    background: #e8ece9;
  }

  .mobile-view-switch button {
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #4f5e58;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-view-switch button.is-active {
    color: var(--ink);
    background: white;
    box-shadow: 0 2px 6px rgba(20, 42, 34, 0.08);
  }

  .finder-layout {
    display: block;
    height: auto;
    min-height: 500px;
  }

  .list-pane {
    max-height: none;
    overflow: visible;
    border-right: 0;
  }

  .map-pane {
    display: none;
    height: calc(100vh - 286px);
    min-height: 440px;
  }

  .finder-layout.is-map-view .list-pane {
    display: none;
  }

  .finder-layout.is-map-view .map-pane {
    display: block;
  }

  #careMap {
    min-height: 440px;
  }

  .result-toolbar {
    top: 60px;
  }

  .facility-list {
    padding-right: 14px;
    padding-left: 14px;
  }

  .facility-card {
    grid-template-columns: 86px 1fr;
    gap: 11px;
  }

  .facility-thumb {
    height: 84px;
  }

  .facility-card h2 {
    max-width: calc(100vw - 150px);
    white-space: normal;
  }

  .card-bottom {
    align-items: flex-end;
  }

  .map-legend {
    display: none;
  }

  .map-summary {
    bottom: 14px;
  }

  .compare-bar {
    right: 10px;
    bottom: 74px;
    left: 10px;
    gap: 7px;
    padding: 8px;
  }

  .compare-bar__items {
    display: none;
  }

  .compare-reset {
    display: none;
  }

  .compare-bar > p {
    flex: 1;
    padding-left: 8px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 67px;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
  }

  .mobile-nav span {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-nav .is-active {
    color: var(--green-800);
    font-weight: 850;
  }

  dialog[open] {
    align-items: end;
  }

  .sheet__surface,
  .region-dialog .sheet__surface,
  .filter-dialog .sheet__surface,
  .cost-dialog .sheet__surface,
  .detail-dialog .sheet__surface,
  .partner-dialog .sheet__surface {
    width: 100%;
    max-height: calc(100vh - 26px);
    border-radius: 24px 24px 0 0;
  }

  .sheet__header {
    padding: 19px 18px 14px;
  }

  .sheet__header h2 {
    font-size: 21px;
  }

  .sheet__footer {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  }

  .sheet__footer > * {
    flex: 1;
    min-width: 0;
  }

  .region-breadcrumb,
  .region-columns,
  .filter-sections,
  .calculator-layout,
  .fit-intro,
  .priority-grid,
  .fit-note,
  .compare-table-wrap,
  .source-layout {
    padding-right: 18px;
    padding-left: 18px;
  }

  .region-columns,
  .filter-sections,
  .calculator-layout,
  .detail-grid,
  .partner-form-grid,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .region-columns {
    gap: 15px;
  }

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

  .region-grid button {
    min-height: 44px;
  }

  .region-notice,
  .calculation-notice,
  .comparison-disclaimer,
  .consent-check {
    margin-right: 18px;
    margin-left: 18px;
  }

  .pricing-grid article:last-child {
    grid-column: auto;
  }

  .calculator-layout {
    padding-top: 18px;
  }

  .cost-result {
    padding: 20px;
  }

  .priority-grid {
    grid-template-columns: 1fr 1fr;
  }

  .priority-grid label {
    min-height: 108px;
  }

  .detail-hero {
    padding: 22px 18px;
  }

  .detail-hero h2 {
    font-size: 23px;
  }

  .detail-grid {
    padding: 18px;
  }

  /* SOFTM-quality-mobile 시작: 평가영역과 방문 확인표를 작은 화면에 맞춤 (2026-08-28) */
  .evaluation-areas {
    grid-template-columns: repeat(2, 1fr);
  }

  .evaluation-areas > div:last-child {
    grid-column: 1 / -1;
  }

  .evaluation-guidance {
    grid-template-columns: 1fr;
  }
  /* SOFTM-quality-mobile 끝: 모바일 평가근거 가독성 보완 (2026-08-28) */

  .inquiry-panel {
    position: static;
  }

  .partner-hero {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .partner-metric {
    display: none;
  }

  .pricing-grid {
    display: flex;
    padding-right: 18px;
    padding-left: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .pricing-grid article {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .partner-form-grid {
    padding-right: 18px;
    padding-left: 18px;
  }
}

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

/* SOFTM-print-sheet 시작: 화면 장식 없이 A4 한 장에 판단 근거와 메모를 정리 (2026-08-28) */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body > *:not(.print-area) {
    display: none !important;
  }

  .print-area {
    display: block !important;
    color: #171b19;
    background: white;
    font-family: Arial, "Apple SD Gothic Neo", sans-serif;
  }

  .print-sheet header {
    padding-bottom: 14px;
    border-bottom: 3px solid #174a3a;
  }

  .print-sheet header span,
  .print-sheet footer,
  .print-sheet small {
    color: #59645f;
    font-size: 9pt;
  }

  .print-sheet h1 {
    margin: 6px 0 3px;
    font-size: 21pt;
  }

  .print-sheet header p,
  .print-sheet section p {
    margin: 4px 0;
    font-size: 10pt;
    line-height: 1.45;
  }

  .print-sheet section {
    margin-top: 16px;
    break-inside: avoid;
  }

  .print-sheet h2 {
    margin: 0 0 8px;
    color: #174a3a;
    font-size: 12pt;
  }

  .print-sheet ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .print-sheet li {
    display: flex;
    flex-direction: column;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #cfd8d4;
    border-radius: 6px;
    font-size: 9pt;
  }

  .print-sheet li.is-checked {
    border-color: #2f765b;
    background: #eef7f3;
  }

  .print-sheet li span {
    margin-top: 3px;
    color: #59645f;
    font-size: 8pt;
    line-height: 1.35;
  }

  .print-note {
    min-height: 64px;
    padding: 10px;
    border: 1px solid #cfd8d4;
    border-radius: 6px;
    font-size: 10pt;
    line-height: 1.6;
  }

  .print-sheet footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #cfd8d4;
  }
}
/* SOFTM-print-sheet 끝: 브라우저 인쇄와 PDF 저장에서 동일한 방문 준비표 제공 (2026-08-28) */
