/* ==========================================================================
   글스토리 (GeulStory) - 공통 스타일시트
   https://geulstory.com
   --------------------------------------------------------------------------
   목차
   01. 디자인 토큰(변수) / 리셋 / 기본 타이포그래피
   02. 레이아웃 유틸리티 (.container, .section)
   03. 상단 내비게이션 (.navbar)
   04. 히어로 배너 (.hero)
   05. 도구 카드 그리드 (.card-grid, .tool-card)
   06. 메인 도구 컨테이너 (.tool-box)
   07. 조건 필터 버튼 (.filter-group, .filter-btn)
   08. 결과 리포트 / 매칭 카드 (.result-panel, .match-card, .badge-score, .spec-list)
   09. 다단계 진단 (.step-progress, .progress-bar, .step-card, .option-btn)
   10. 결과 복사 버튼 / 토스트 알림 (.copy-btn, .toast-msg)
   11. 정보글 타이포그래피 (.article-section)
   12. 반응형 비교 표 (.data-table)
   13. FAQ 아코디언 (.faq-list details)
   14. 일반 문서 페이지 (.page-header, .doc-content)
   15. 푸터 (.site-footer)
   16. 반응형 미디어 쿼리
   ========================================================================== */

/* 01. 디자인 토큰 / 리셋 / 기본 ------------------------------------------- */
:root {
  --navy: #1E293B;
  --navy-deep: #0F172A;
  --navy-soft: #334155;
  --emerald: #0D9488;
  --emerald-dark: #0F766E;
  --emerald-light: #CCFBF1;
  --emerald-pale: #F0FDFA;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #1E293B;
  --text-sub: #475569;
  --text-muted: #64748B;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --max-width: 1080px;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1em;
}

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

a:hover {
  text-decoration: underline;
}

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

ul,
ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

/* 02. 레이아웃 유틸리티 --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 32px;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* 03. 상단 내비게이션 ----------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.navbar .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.navbar .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

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

.navbar .brand span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5EEAD4;
  letter-spacing: 0.02em;
}

.navbar .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.navbar .nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar .nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
}

.navbar .nav-menu a.active,
.navbar .nav-menu a[aria-current="page"] {
  background: var(--emerald);
  color: #FFFFFF;
}

/* 04. 히어로 배너 --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #134E4A 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 72px 20px 80px;
}

.hero .hero-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(94, 234, 212, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5EEAD4;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: 2.4rem;
  color: #FFFFFF;
}

.hero h1 em {
  font-style: normal;
  color: #5EEAD4;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  color: #CBD5E1;
}

.hero .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 서브 페이지용 작은 히어로 */
.hero.hero-sm {
  padding: 48px 20px 52px;
}

.hero.hero-sm h1 {
  font-size: 1.9rem;
}

/* 공통 버튼 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--emerald-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

/* 05. 도구 카드 그리드 ---------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

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

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.tool-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: var(--shadow-lg);
}

.tool-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--emerald-pale);
  font-size: 1.6rem;
}

.tool-card .card-tag {
  align-self: flex-start;
  padding: 2px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.tool-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.tool-card p {
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 0.97rem;
}

.tool-card ul {
  margin: 0 0 18px;
  padding-left: 1.1em;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.tool-card ul li {
  margin-bottom: 4px;
}

.tool-card .card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--emerald-dark);
}

/* 06. 메인 도구 컨테이너 -------------------------------------------------- */
.tool-box {
  max-width: 860px;
  margin: -40px auto 0;
  padding: 32px 28px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tool-box.no-overlap {
  margin-top: 0;
}

.tool-box .tool-title {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.tool-box .tool-desc {
  margin-bottom: 24px;
  color: var(--text-sub);
  font-size: 0.97rem;
}

.tool-box .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tool-box label,
.tool-box .field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.tool-box input[type="number"],
.tool-box input[type="text"],
.tool-box select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

.tool-box input:focus,
.tool-box select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

/* 07. 조건 필터 버튼 ------------------------------------------------------ */
.filter-group {
  margin-bottom: 22px;
}

.filter-group .filter-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.filter-group .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-sub);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

.filter-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* 08. 결과 리포트 / 매칭 카드 --------------------------------------------- */
.result-panel {
  margin-top: 28px;
  padding: 26px 24px;
  background: var(--emerald-pale);
  border: 1px solid #99F6E4;
  border-left: 5px solid var(--emerald);
  border-radius: var(--radius);
}

.result-panel .result-title {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.result-panel .result-summary {
  margin-bottom: 18px;
  color: var(--text-sub);
}

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

.result-panel .result-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.match-card {
  position: relative;
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.match-card + .match-card {
  margin-top: 14px;
}

.result-grid .match-card + .match-card {
  margin-top: 0;
}

.match-card.best {
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow);
}

.match-card .match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.match-card .match-rank {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-dark);
}

.match-card h3,
.match-card .match-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.match-card .match-desc {
  margin-bottom: 12px;
  font-size: 0.94rem;
  color: var(--text-sub);
}

.badge-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 58px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--emerald);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-score.mid {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-score.low {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-score.neutral {
  background: #E2E8F0;
  color: var(--navy-soft);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list .spec-key {
  flex-shrink: 0;
  color: var(--text-muted);
}

.spec-list .spec-val {
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

/* 09. 다단계 진단 --------------------------------------------------------- */
/* 사용 구조:
   <div class="step-progress">
     <div class="step-label"><span>질문 3 / 10</span><span>30%</span></div>
     <div class="progress-track"><div class="progress-bar" style="width:30%"></div></div>
   </div>
   <div class="step-card"> ... <button class="option-btn">선택지</button> ... </div>
*/
.step-progress {
  margin-bottom: 22px;
}

.step-progress .step-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
}

.step-progress .progress-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--emerald) 0%, #14B8A6 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.step-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-card .step-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--emerald-dark);
  letter-spacing: 0.04em;
}

.step-card .step-question {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.step-card .step-hint {
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.step-card .option-list {
  display: grid;
  gap: 10px;
}

.step-card .step-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.option-btn:hover {
  border-color: var(--emerald);
  background: var(--emerald-pale);
}

.option-btn.selected {
  border-color: var(--emerald);
  background: var(--emerald-light);
  color: var(--emerald-dark);
  box-shadow: inset 0 0 0 1px var(--emerald);
}

/* 10. 결과 복사 버튼 / 토스트 알림 ---------------------------------------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

/* 사용: 요소에 .show 클래스를 붙였다 떼어 표시/숨김 */
.toast-msg {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100% - 40px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #FFFFFF;
  font-size: 0.93rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 11. 정보글 타이포그래피 ------------------------------------------------- */
.article-section {
  max-width: 820px;
  margin: 56px auto 0;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.article-section h2 {
  margin-top: 1.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--emerald);
  font-size: 1.45rem;
}

.article-section h2:first-child {
  margin-top: 0;
}

.article-section h3 {
  margin-top: 1.6em;
  padding-left: 12px;
  border-left: 4px solid var(--emerald);
  font-size: 1.15rem;
}

.article-section p {
  color: var(--navy-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-section ul,
.article-section ol {
  color: var(--navy-soft);
  line-height: 1.85;
}

.article-section li {
  margin-bottom: 6px;
}

.article-section strong {
  color: var(--navy);
}

.article-section .article-meta {
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-section .callout {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--emerald-pale);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
}

.article-section .callout p:last-child {
  margin-bottom: 0;
}

/* 12. 반응형 비교 표 ------------------------------------------------------ */
.table-wrap {
  width: 100%;
  margin: 1.4em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.table-wrap .data-table {
  margin: 0;
  border: 0;
}

.data-table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.94rem;
  line-height: 1.6;
}

.data-table caption {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: left;
  caption-side: bottom;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody th {
  background: #F1F5F9;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) td {
  background: #F8FAFC;
}

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

/* 13. FAQ 아코디언 -------------------------------------------------------- */
.faq-list {
  margin: 1.4em 0 0;
}

.faq-list details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-list details[open] {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::before {
  content: "Q. ";
  color: var(--emerald);
  font-weight: 800;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--emerald);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  background: var(--emerald-pale);
}

.faq-list details > p,
.faq-list details > div {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--navy-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* 14. 일반 문서 페이지 (소개/방침/약관) ----------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 48px 20px;
}

.page-header h1 {
  margin-bottom: 8px;
  color: #FFFFFF;
  font-size: 1.9rem;
}

.page-header p {
  margin: 0;
  color: #CBD5E1;
}

.doc-content {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.doc-content h2 {
  margin-top: 2em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  margin-top: 1.4em;
  font-size: 1.05rem;
}

.doc-content p,
.doc-content li {
  color: var(--navy-soft);
}

.doc-content li {
  margin-bottom: 6px;
}

.doc-content .doc-date {
  margin-top: 2em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 15. 푸터 ---------------------------------------------------------------- */
.site-footer {
  margin-top: 72px;
  padding: 40px 20px 36px;
  background: var(--navy);
  color: #94A3B8;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer .footer-brand {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.site-footer .footer-links a {
  color: #E2E8F0;
  font-weight: 600;
}

.site-footer .footer-links a:hover {
  color: #5EEAD4;
}

.site-footer .disclaimer {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #94A3B8;
}

.site-footer .copyright {
  margin: 0;
  font-size: 0.84rem;
  color: #CBD5E1;
}

/* 16. 반응형 미디어 쿼리 -------------------------------------------------- */
@media (max-width: 900px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  .section {
    padding: 40px 0;
  }

  /* 내비게이션: 로고 아래로 메뉴가 깔끔하게 줄바꿈 */
  .navbar .nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
  }

  .navbar .nav-menu {
    justify-content: center;
    gap: 2px;
  }

  .navbar .nav-menu a {
    padding: 7px 11px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 52px 18px 60px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero.hero-sm h1,
  .page-header h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .tool-box {
    margin-top: -28px;
    padding: 24px 18px;
  }

  .result-panel {
    padding: 20px 16px;
  }

  .result-panel .result-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 20px 16px;
  }

  .article-section,
  .doc-content {
    margin-top: 36px;
    padding: 28px 18px;
    border-radius: var(--radius);
  }

  /* 표: 화면이 좁으면 가로 스크롤 */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    min-width: 120px;
    padding: 10px 12px;
  }

  .table-wrap .data-table {
    display: table;
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .navbar .brand {
    font-size: 1.1rem;
  }

  .navbar .nav-menu a {
    padding: 6px 9px;
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
  }

  .match-card .match-head {
    flex-direction: column;
  }

  .spec-list li {
    flex-direction: column;
    gap: 2px;
  }

  .spec-list .spec-val {
    text-align: left;
  }

  .tool-box .tool-actions .copy-btn,
  .tool-box .tool-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .navbar,
  .site-footer,
  .copy-btn,
  .toast-msg {
    display: none !important;
  }

  body {
    background: #FFFFFF;
  }
}
