/* =========================================================
   다시, 한국에서 — 공통 스타일
   색상·글꼴은 아래 :root 변수만 바꾸면 사이트 전체에 반영됩니다.
   ========================================================= */

:root {
  /* 배경 */
  --bg: #FBF8F2;          /* 아이보리 */
  --bg-soft: #F4EDE2;     /* 부드러운 베이지 */
  --surface: #FFFFFF;
  --line: #E6DCCC;

  /* 포인트 */
  --sage: #6F8A68;
  --sage-dark: #4F6A4A;
  --sage-soft: #E6EDE2;
  --brown: #8A6A4F;
  --brown-dark: #5B4636;
  --beige: #D9C6A8;

  /* 글자 */
  --text: #2F2A25;
  --text-muted: #6B625A;

  /* 글꼴 */
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-title: "Gowun Batang", "Nanum Myeongjo", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(91, 70, 54, 0.08);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;            /* 40~60대도 편하게 읽도록 기본 18px */
  line-height: 1.75;
  word-break: keep-all;       /* 한글 단어 중간에서 줄바꿈 방지 */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0; color: var(--brown-dark); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sage-dark); color: #fff; padding: 12px 18px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- 공통 섹션 ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--sage { background: var(--sage-soft); }

.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-block;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--sage-dark);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
}
.section-desc { margin: 14px 0 0; color: var(--text-muted); font-size: 18px; }

.more-link {
  font-weight: 600; color: var(--brown);
  border-bottom: 2px solid var(--beige);
  padding-bottom: 2px;
  white-space: nowrap;
}
.more-link:hover { color: var(--brown-dark); border-color: var(--brown); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: 18px; font-weight: 700;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sage-dark); color: #fff; }
.btn--primary:hover { background: #3F5A3B; }
.btn--ghost { background: transparent; color: var(--brown-dark); border-color: var(--beige); }
.btn--ghost:hover { border-color: var(--brown); }

/* ---------- 태그 ---------- */
.tag {
  display: inline-block;
  font-size: 14px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage-dark);
}
.tag--brown { background: #F1E6D8; color: var(--brown-dark); }

/* =========================================================
   ① 헤더
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 84px;
  max-width: 1340px;   /* 헤더는 메뉴 8개가 한 줄에 들어가도록 본문보다 조금 넓게 */
}

/* 로고 */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-title);
  font-size: 25px; font-weight: 700; color: var(--brown-dark);
}
.logo-name span { color: var(--sage); }
.logo-sub { font-size: 13px; color: var(--text-muted); letter-spacing: 0.02em; margin-top: 2px; }

/* 메뉴 (PC: 한 줄) */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 9px 9px; border-radius: 10px;
  font-size: 16px; font-weight: 600; color: var(--text);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--brown-dark); }
.main-nav a[aria-current="page"] { color: var(--sage-dark); background: var(--sage-soft); }
.nav-desc { display: none; }

/* 오른쪽 도구: 글씨 크기 + 메뉴 버튼 */
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.font-size {
  display: flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.font-size button {
  min-width: 40px; height: 38px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-muted); font-weight: 700; font-size: 16px; line-height: 1;
}
.font-size button[data-size="large"] { font-size: 19px; }
.font-size button sup { font-size: 12px; margin-left: 1px; }
.font-size button[aria-pressed="true"] { background: var(--sage-dark); color: #fff; }
.font-size button:hover:not([aria-pressed="true"]) { background: var(--bg-soft); color: var(--brown-dark); }

.nav-toggle {
  display: none;
  width: 50px; height: 50px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--brown-dark);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* 큰 글씨 모드: 본문과 푸터를 12% 키움 */
html.text-lg main, html.text-lg .site-footer { zoom: 1.12; }

/* 태블릿·모바일: 설명이 붙은 큰 목록 */
@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 84px); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(91, 70, 54, 0.12);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    max-width: var(--container); margin: 0 auto;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
  }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a {
    position: relative; white-space: normal;
    padding: 16px 44px 16px 12px; border-radius: 12px;
  }
  .main-nav a::after {
    content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    font-size: 26px; color: var(--beige); line-height: 1;
  }
  .main-nav a[aria-current="page"]::after { color: var(--sage); }
  .nav-label { display: block; font-size: 19px; font-weight: 700; }
  .nav-desc { display: block; font-size: 15.5px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 420px) {
  .logo-mark { width: 38px; height: 38px; }
  .logo { gap: 9px; }
  .font-size button { min-width: 34px; padding: 0 7px; }
  .header-tools { gap: 6px; }
  .nav-toggle { width: 46px; height: 46px; }
}

/* =========================================================
   ② 메인 비주얼 (히어로)
   ========================================================= */
.hero {
  padding: 64px 0 96px; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 82% 35%, rgba(244, 190, 128, 0.30), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(217, 198, 168, 0.25), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--brown-dark);
}
.hero-title .comma { color: var(--sage); }
.hero-quote {
  margin: 28px 0 0;
  font-family: var(--font-title);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.6; color: var(--text);
  padding-left: 20px; border-left: 4px solid var(--beige);
}
.hero-desc { margin: 24px 0 0; font-size: 19px; color: var(--text-muted); }
.hero-desc strong { color: var(--brown-dark); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 36px 0 0; padding: 0; list-style: none;
  font-size: 15.5px; color: var(--text-muted);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage);
}

.hero-visual { position: relative; padding: 0 0 0 28px; }
.hero-photo {
  position: relative; margin: 0;
  height: min(600px, 72vh); min-height: 460px;
  border-radius: 32px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(138, 90, 50, 0.18);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-photo figcaption {
  position: absolute; right: 18px; top: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(47, 42, 37, 0.42); backdrop-filter: blur(6px);
  color: #fff; font-size: 14px; letter-spacing: 0.02em;
}

/* 오늘의 생활 팁 카드 */
.hero-tip {
  position: absolute; left: -12px; bottom: 36px;
  width: min(360px, 82%);
  background: var(--surface); border-radius: 20px; padding: 20px 22px 22px;
  box-shadow: 0 18px 40px rgba(91, 70, 54, 0.16);
}
.hero-tip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-tip-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: #FBEBD6; color: var(--brown);
}
.hero-tip-icon svg { width: 20px; height: 20px; }
.hero-tip-head b { font-size: 15.5px; color: var(--brown-dark); }
.hero-tip-next {
  margin-left: auto; border: 0; background: none; padding: 6px 4px;
  color: var(--sage-dark); font-size: 15px; font-weight: 700;
}
.hero-tip-next:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-tip-text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); transition: opacity .25s; }
.hero-tip-text.is-fading { opacity: 0; }

/* =========================================================
   지금 나의 상황은? (방문자 유형)
   ========================================================= */
.persona-bar {
  margin-top: -28px; position: relative; z-index: 2;
}
.persona-box {
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
  padding: 28px 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.persona-label { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: var(--brown-dark); }
.persona-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.persona {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.persona { font: inherit; text-align: left; color: inherit; cursor: pointer; width: 100%; }
.persona:hover { border-color: var(--sage); background: var(--sage-soft); }
.persona[aria-pressed="true"] { border: 2px solid var(--sage-dark); background: var(--sage-soft); }
.persona[aria-pressed="true"] .persona-icon { background: var(--sage-dark); color: #fff; }
.persona-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-dark);
}
.persona-icon svg { width: 24px; height: 24px; }
.persona b { display: block; font-size: 17px; color: var(--text); }
.persona small { display: block; font-size: 14.5px; color: var(--text-muted); line-height: 1.45; }

/* =========================================================
   ③ 카테고리 카드
   ========================================================= */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, opacity .3s, border-color .3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-main { display: block; }
.category-card figure { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.category-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-card:hover figure img { transform: scale(1.04); }

/* 단계 표시 */
.category-step {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--brown-dark);
  font-size: 15px; font-weight: 800;
}
.category-step span { font-weight: 500; color: var(--text-muted); }

.category-body { padding: 22px 26px 6px; }
.category-card h3 { font-size: 23px; margin: 0 0 8px; }
.category-main:hover h3 { color: var(--sage-dark); }
.category-card p { margin: 0; color: var(--text-muted); font-size: 17px; }

/* 자주 찾는 글 */
.category-foot { margin-top: auto; padding: 14px 26px 22px; }
.category-links {
  list-style: none; margin: 0 0 12px; padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.category-links a {
  display: flex; gap: 8px; padding: 6px 0;
  font-size: 16.5px; font-weight: 600; color: var(--text);
}
.category-links a::before { content: "→"; color: var(--sage); flex: none; }
.category-links a:hover { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
.category-all { display: inline-block; font-size: 15.5px; font-weight: 700; color: var(--brown); float: right; }
.category-all:hover { color: var(--brown-dark); }

/* 나의 상황 선택 시 강조 */
.category-key {
  position: absolute; right: 14px; top: 14px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--sage-dark); color: #fff; font-size: 14.5px; font-weight: 800;
  display: none;
}
.category-grid.is-filtered .category-card { opacity: 0.45; }
.category-grid.is-filtered .category-card.is-key {
  opacity: 1; border: 2px solid var(--sage); box-shadow: 0 14px 34px rgba(79, 106, 74, 0.16);
}
.category-grid.is-filtered .category-card.is-key .category-key { display: block; }
.category-grid.is-filtered .category-card:hover { opacity: 1; }

.persona-result {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: -16px 0 28px; padding: 18px 24px; border-radius: var(--radius-sm);
  background: var(--sage-soft); border-left: 5px solid var(--sage-dark);
}
.persona-result[hidden] { display: none; }
.persona-result-text { margin: 0; font-size: 17.5px; color: var(--text); }
.persona-result-text b { color: var(--sage-dark); }
.persona-reset {
  border: 1px solid var(--sage); background: var(--surface); color: var(--sage-dark);
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
}
.persona-reset:hover { background: var(--sage-dark); color: #fff; }

/* =========================================================
   가장 많이 묻는 질문
   ========================================================= */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-aside img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px; font-size: 19px; font-weight: 700; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  flex: none; font-family: var(--font-title); color: var(--sage); font-size: 22px; line-height: 1.3;
}
.faq-item summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-size: 26px; line-height: 1; color: var(--brown);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px 60px; color: var(--text-muted); }
.faq-answer p { margin: 0 0 12px; }

/* =========================================================
   체크리스트
   ========================================================= */
.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.check-col {
  background: var(--surface); border-radius: var(--radius); padding: 30px 28px;
  border-top: 5px solid var(--sage);
}
.check-col:nth-child(2) { border-top-color: var(--beige); }
.check-col:nth-child(3) { border-top-color: var(--brown); }
.check-when { font-size: 15px; font-weight: 700; color: var(--brown); }
.check-col h3 { font-size: 22px; margin: 4px 0 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.check-list label {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 8px; border-radius: 10px; cursor: pointer; font-size: 17.5px;
}
.check-list label:hover { background: var(--bg); }
.check-list input {
  flex: none; appearance: none; margin: 4px 0 0;
  width: 24px; height: 24px; border-radius: 7px;
  border: 2px solid var(--beige); background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
}
.check-list input:checked { background: var(--sage-dark); border-color: var(--sage-dark); }
.check-list input:checked::after {
  content: ""; width: 7px; height: 12px; margin-top: -3px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.check-list input:checked + span { color: var(--text-muted); text-decoration: line-through; }
.checklist-foot {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.progress { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--sage-dark); }
.progress-bar { width: 220px; height: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--sage); transition: width .3s; }

/* =========================================================
   최근 업데이트
   ========================================================= */
.update-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brown-dark); }
.update-list li { border-bottom: 1px solid var(--line); }
.update-list a {
  display: grid; grid-template-columns: 120px 140px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 8px;
}
.update-list a:hover { background: var(--surface); }
.update-date { color: var(--text-muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.update-title { font-size: 19px; font-weight: 600; }
.update-badge { font-size: 14px; font-weight: 700; color: var(--brown); }

/* =========================================================
   ④ 인기 글
   ========================================================= */
.popular-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.popular-feature {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end;
}
.popular-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popular-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,42,37,0) 35%, rgba(47,42,37,.82) 100%);
}
.popular-feature-body { position: relative; z-index: 1; padding: 36px; color: #fff; }
.popular-feature-body h3 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); margin: 12px 0 10px; font-family: var(--font-title); }
.popular-feature-body p { margin: 0; opacity: .9; }
.rank {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--beige); color: var(--brown-dark); font-weight: 800; font-size: 17px;
}
.popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.popular-item a {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color .2s;
}
.popular-item a:hover { border-color: var(--sage); }
.popular-item img { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; }
.popular-item h3 { font-size: 18px; color: var(--text); margin-top: 2px; }
.popular-item small { color: var(--sage-dark); font-size: 14.5px; font-weight: 700; }
.popular-item a:hover h3 { color: var(--sage-dark); }
.pick-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--beige); color: var(--brown-dark); font-size: 14.5px; font-weight: 800;
}

/* 탭 (먼저 읽어보세요 / 최근 업데이트) */
.tabs {
  display: inline-flex; padding: 5px; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.tabs [role="tab"] {
  border: 0; background: none; padding: 10px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 700; color: var(--text-muted);
}
.tabs [role="tab"]:hover { color: var(--brown-dark); }
.tabs [role="tab"][aria-selected="true"] { background: var(--brown-dark); color: #fff; }
.tab-panel[hidden] { display: none; }
#panel-new .update-list { background: var(--surface); border-radius: var(--radius-sm); padding: 0 16px; border-top: 0; }
#panel-new .update-list li:last-child { border-bottom: 0; }

/* 자주 묻는 질문 더 보기 */
.faq-more {
  display: block; margin-top: 18px; padding: 18px; text-align: center;
  border: 1px dashed var(--beige); border-radius: var(--radius-sm);
  font-weight: 700; color: var(--brown);
}
.faq-more:hover { background: var(--surface); color: var(--brown-dark); border-style: solid; }

/* 체크리스트 버튼 */
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 16px; }
.btn--sm svg { width: 20px; height: 20px; }
.checklist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.checklist-print { background: var(--surface); }
.print-only { display: none; }

/* =========================================================
   이야기 배너 (About 연결)
   ========================================================= */
.story {
  position: relative; border-radius: 28px; overflow: hidden; color: #fff;
  min-height: 380px; display: flex; align-items: center;
}
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47,42,37,.78), rgba(47,42,37,.15)); }
.story-body { position: relative; z-index: 1; padding: 56px; max-width: 640px; }
.story-body h2 { color: #fff; font-family: var(--font-title); font-size: clamp(26px, 3vw, 34px); }
.story-body p { margin: 16px 0 28px; opacity: .92; }
.story .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* 광고·제휴 슬롯 (나중에 사용) */
.ad-slot { display: none; }

/* =========================================================
   ⑤ 푸터
   ========================================================= */
.site-footer { background: var(--brown-dark); color: #EFE6D8; padding: 72px 0 40px; margin-top: 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-name span { color: var(--beige); }
.footer-brand p { margin: 16px 0 0; font-size: 16px; opacity: .85; max-width: 380px; }
.footer-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(239,230,216,.2);
  font-size: 14.5px; opacity: .8; display: flex; flex-direction: column; gap: 6px;
}

/* =========================================================
   서브 페이지 (카테고리 / 글)
   ========================================================= */
.page-hero { padding: 56px 0 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.page-hero h1 { font-family: var(--font-title); font-size: clamp(34px, 4.4vw, 50px); }
.page-hero p { color: var(--text-muted); font-size: 19px; margin: 18px 0 0; }
.page-hero-img { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.topic-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 26px; transition: border-color .2s;
}
a.topic-card:hover { border-color: var(--sage); }
.topic-card h3 { font-size: 20px; margin: 8px 0 6px; color: var(--text); }
.topic-card p { margin: 0; color: var(--text-muted); font-size: 16.5px; }
.soon { font-size: 13.5px; font-weight: 700; color: var(--text-muted); background: var(--bg-soft); padding: 2px 10px; border-radius: 99px; }

/* 글 상세 */
.article { max-width: 820px; margin: 0 auto; }
.article-head h1 { font-family: var(--font-title); font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.article-meta { color: var(--text-muted); font-size: 15.5px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-cover { margin: 36px 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.summary-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 32px; margin: 0 0 48px;
}
.summary-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { font-weight: 800; color: var(--sage-dark); display: flex; gap: 10px; align-items: center; align-self: start; }
.summary-row dt::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--beige); box-shadow: 0 0 0 4px #F4EDE2; }
.summary-row dd { margin: 0; }
.summary-row ul, .summary-row ol { margin: 0; padding-left: 22px; }

.article-body h2 { font-family: var(--font-title); font-size: 28px; margin: 56px 0 16px; }
.article-body h3 { font-size: 21px; margin: 32px 0 10px; color: var(--text); }
.article-body p { margin: 0 0 18px; }
.article-body ol, .article-body ul { padding-left: 24px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }

.callout {
  border-radius: var(--radius-sm); padding: 22px 26px; margin: 28px 0;
  background: #FBF1E4; border-left: 5px solid var(--brown);
}
.callout--sage { background: var(--sage-soft); border-left-color: var(--sage-dark); }
.callout b { display: block; margin-bottom: 6px; color: var(--brown-dark); }

.official-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.official-links a {
  display: block; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.official-links a:hover { border-color: var(--sage); }
.official-links b { display: block; color: var(--text); }
.official-links small { color: var(--text-muted); font-size: 14.5px; }

.notice-small { font-size: 15px; color: var(--text-muted); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 0; }
  .hero-photo { height: 480px; min-height: 0; }
  .hero-tip { left: 20px; }
  .category-grid, .checklist-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout, .popular-grid { grid-template-columns: 1fr; }
  .faq-aside { display: none; }
  .persona-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 17.5px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .header-inner { min-height: 72px; gap: 12px; }
  .logo-name { font-size: 21px; }
  .logo-sub { display: none; }
  .main-nav { max-height: calc(100vh - 72px); }
  .main-nav ul { padding: 4px 16px 16px; }
  .hero { padding: 40px 0 64px; }
  .hero-photo { height: 360px; border-radius: 24px; }
  .hero-tip { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 14px 0; }
  .hero-tip-text { font-size: 16.5px; }
  .hero-actions .btn { width: 100%; }
  .persona-bar { margin-top: -20px; }
  .persona-box { padding: 22px 18px; }
  .persona-list { grid-template-columns: 1fr; }
  .category-grid, .checklist-grid, .topic-grid, .official-links { grid-template-columns: 1fr; }
  .update-list a { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .update-list a .update-arrow { display: none; }
  .popular-feature { min-height: 360px; }
  .popular-feature-body { padding: 24px; }
  .popular-item a { grid-template-columns: 84px 1fr; gap: 14px; }
  .popular-item img { width: 84px; height: 64px; }
  .story-body { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .summary-box { padding: 4px 20px; }
  .summary-row { grid-template-columns: 1fr; gap: 6px; }
  .faq-answer { padding: 0 20px 22px 20px; }
}

/* =========================================================
   인쇄 — 체크리스트 '인쇄하기'를 누르면 체크리스트만 깔끔하게 인쇄
   ========================================================= */
@media print {
  html.print-checklist body { background: #fff; font-size: 13pt; }
  html.print-checklist .skip-link,
  html.print-checklist .site-header,
  html.print-checklist .site-footer,
  html.print-checklist main > *:not(#checklist) { display: none !important; }
  html.print-checklist main { zoom: 1 !important; }
  html.print-checklist #checklist { background: #fff; padding: 0; }
  html.print-checklist .section-desc,
  html.print-checklist .checklist-foot { display: none; }
  html.print-checklist .print-only { display: block; }
  html.print-checklist .print-note { margin-top: 18pt; font-size: 10pt; color: #555; }
  html.print-checklist .section-head { margin-bottom: 16pt; }
  html.print-checklist .checklist-grid { grid-template-columns: repeat(3, 1fr); gap: 10pt; }
  html.print-checklist .check-col { border: 1px solid #ccc; border-top-width: 5px; padding: 12pt; break-inside: avoid; }
  html.print-checklist .check-list label { padding: 5pt 0; font-size: 12pt; }
  html.print-checklist .check-list input { border-color: #999; }
  html.print-checklist * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 자주 묻는 질문 페이지: 주제별 묶음 제목 */
.faq-group { font-size: 22px; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }

/* =========================================================
   ⑤ 마무리 문구 + 푸터
   ========================================================= */
.closing { background: var(--sage-soft); padding: 56px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.closing-title { margin: 0; font-family: var(--font-title); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; color: var(--brown-dark); }
.closing-desc { margin: 8px 0 0; color: var(--text-muted); max-width: 620px; }
.closing-progress:empty { display: none; }

/* 푸터: 진한 브라운 */
.footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr 1.2fr; gap: 40px; }
.footer-title { font-size: 17px; }
.footer-phones .phone-link { display: flex; flex-direction: column; line-height: 1.4; padding: 2px 0; }
.footer-phones b { font-size: 18px; color: var(--beige); font-variant-numeric: tabular-nums; }
.footer-phones span { font-size: 14.5px; color: #EFE6D8; opacity: .85; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal a { font-weight: 700; color: #fff; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .closing { padding: 44px 0; }
  .closing .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media print { .closing { display: none; } }

/* 글 하단: 출처 목록 */
.article-body ul.sources { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.sources li { margin: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sources a { display: block; font-weight: 600; color: var(--text); }
.sources a:hover { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
.sources small { color: var(--text-muted); font-size: 14.5px; }

/* 글 하단: 다음에 읽으면 좋은 글 */
.article-body ul.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-list li { margin: 0; }
.related-list .topic-card { height: 100%; }
.related-list h3 { margin-top: 10px; font-size: 18.5px; }
@media (max-width: 720px) { .article-body ul.related-list { grid-template-columns: 1fr; } }

/* 글 안의 표 */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { background: var(--sage-soft); color: var(--sage-dark); font-weight: 800; }
.data-table tbody th { color: var(--brown-dark); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
