/* ─────────────────────────────────────────────
   JAST 진로상담 — main.css
   딥 인디고·슬레이트 + 따뜻한 코퍼 포인트
   ───────────────────────────────────────────── */

:root {
  --ink: #111a2e;
  --ink-2: #1a2540;
  --ink-3: #24314f;
  --slate: #45536f;
  --slate-2: #6c7a94;
  --slate-3: #98a3b6;

  --paper: #f7f5f1;
  --paper-2: #fbf9f5;
  --card: #ffffff;

  --line: #e4ded4;
  --line-2: #d6cec1;
  --line-dark: rgba(255, 255, 255, 0.12);

  --copper: #b3703a;
  --copper-d: #92582a;
  --copper-soft: #f2e5d7;
  --copper-line: #e0c6a9;

  --kakao: #fee500;
  --kakao-d: #e6d000;

  --shadow-sm: 0 1px 2px rgba(17, 26, 46, 0.06);
  --shadow: 0 10px 30px -18px rgba(17, 26, 46, 0.35);
  --shadow-lg: 0 26px 60px -32px rgba(17, 26, 46, 0.45);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --wrapper: 1120px;
  --prose: 720px;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;

  --header-h: 74px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
svg.icon { flex: none; vertical-align: -0.15em; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.32;
  word-break: keep-all;
  text-wrap: balance;
}

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), #d9a06b);
  transition: width 0.1s linear;
}

/* ── 버튼 ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--kakao {
  background: var(--kakao);
  color: #191600;
  box-shadow: 0 8px 20px -12px rgba(180, 160, 0, 0.9);
}
.btn--kakao:hover { background: var(--kakao-d); }

.btn--ghost {
  color: #f3eee6;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }

.btn--outline {
  color: var(--ink);
  border-color: var(--line-2);
  background: transparent;
}
.btn--outline:hover { border-color: var(--ink); background: #fff; }

.btn--sm { padding: 10px 15px; font-size: 14px; }
.btn--lg { padding: 16px 26px; font-size: 16.5px; }
.btn--block { width: 100%; }

.text-link {
  color: var(--copper-d);
  font-weight: 600;
  border-bottom: 1px solid var(--copper-line);
  padding-bottom: 1px;
}
.text-link:hover { border-bottom-color: var(--copper-d); }

/* ── 헤더 ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

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

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
}
.brand__letter {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}
.brand__dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.brand__sub {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--slate-2);
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav__link:hover { color: var(--ink); background: rgba(17, 26, 46, 0.05); }
.site-nav__link.is-current { color: var(--ink); font-weight: 700; }

.site-nav__cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 16px;
}
.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.16s ease;
}

.nav-scrim {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(17, 26, 46, 0.42);
  backdrop-filter: blur(2px);
  z-index: 90;
}

/* ── 히어로 ───────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 0;
  background:
    radial-gradient(90% 90% at 12% 0%, #1d2b49 0%, rgba(29, 43, 73, 0) 62%),
    linear-gradient(180deg, #111a2e 0%, #131d33 60%, #18233c 100%);
  color: #f4f0e9;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  right: -120px;
  top: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 112, 58, 0.22) 0%, rgba(179, 112, 58, 0) 66%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(224, 198, 169, 0.35);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e4cdb3;
}

.hero__title {
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.035em;
  color: #fdfbf7;
}
.hero__title em {
  font-style: normal;
  color: #e2b98d;
  box-shadow: inset 0 -0.34em 0 rgba(179, 112, 58, 0.24);
}

.hero__lede {
  margin-top: 22px;
  max-width: 33em;
  font-size: 16.5px;
  line-height: 1.8;
  color: #c2cbdc;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__hours {
  margin-top: 16px;
  font-size: 13px;
  color: #8e9cb5;
}

.hero-card {
  position: relative;
  padding: 26px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.hero-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e4cdb3;
}

.steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.steps__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.steps__no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 8px;
  background: rgba(226, 185, 141, 0.14);
  color: #e2b98d;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.steps__body { display: grid; gap: 3px; }
.steps__body strong { font-size: 15px; font-weight: 600; color: #f7f2ea; }
.steps__body span { font-size: 13.5px; line-height: 1.65; color: #a9b5c9; }

.hero-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2b98d;
}
.hero-card__link:hover { color: #f0d0ac; }

.hero-topics {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.hero-topics li {
  flex: 1 1 0;
  min-width: 150px;
  border-right: 1px solid var(--line-dark);
}
.hero-topics li:last-child { border-right: 0; }
.hero-topics a {
  display: block;
  padding: 20px 8px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: #b9c4d6;
  transition: color 0.15s ease, background 0.15s ease;
}
.hero-topics a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ── 섹션 ─────────────────────────────────── */
.section { padding: 76px 0; }
.section--tight { padding: 20px 0 76px; }
.section--alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-head__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper);
  text-transform: uppercase;
}
.section-head__title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.03em;
}
.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.section-head__more:hover { color: var(--ink); border-bottom-color: var(--ink); }
.section-head__note {
  max-width: 34em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-2);
  text-align: right;
}

/* ── 글 카드 ──────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card-grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--copper);
  transition: height 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.card:hover::after { height: 100%; }

.card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px 24px 22px;
}

.card__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__title {
  font-size: 18.5px;
  line-height: 1.45;
  letter-spacing: -0.028em;
}
.card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--slate-3);
}
.card__dot { color: var(--line-2); }

/* ── 카테고리 카드 ────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--copper-line);
  box-shadow: var(--shadow);
}
.cat-card__no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
}
.cat-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cat-card__headline {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.5;
}
.cat-card__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--slate-2);
}
.cat-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ── 원칙 ─────────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: start;
}
.principles__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.8vw, 29px);
  line-height: 1.45;
}
.principles__text {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--slate);
}
.principles .btn { margin-top: 26px; }

.principles__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon text";
  column-gap: 16px;
  row-gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.principles__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #e2b98d;
}
.principles__list strong { grid-area: title; font-size: 15.5px; }
.principles__list span:last-child {
  grid-area: text;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

/* ── 상담 밴드 ────────────────────────────── */
.consult-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(179, 112, 58, 0.28) 0%, rgba(179, 112, 58, 0) 60%),
    linear-gradient(135deg, #131d33, #1c2a47);
  color: #f4f0e9;
  box-shadow: var(--shadow-lg);
}
.consult-band__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #e2b98d;
  text-transform: uppercase;
}
.consult-band__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.7vw, 28px);
  line-height: 1.4;
  color: #fdfbf7;
}
.consult-band__desc {
  margin-top: 12px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.75;
  color: #b9c4d6;
}
.consult-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}
.consult-band__hours { font-size: 12.5px; color: #93a0b7; }

/* ── 푸터 ─────────────────────────────────── */
.site-footer {
  margin-top: 0;
  padding: 64px 0 26px;
  background: #0e1626;
  color: #a7b2c5;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand--footer .brand__mark { background: #23314e; }
.brand--footer .brand__name { color: #f4f0e9; }
.brand--footer .brand__sub { color: #93a0b7; }

.site-footer__desc {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #94a1b7;
}
.site-footer__hours {
  margin-top: 10px;
  font-size: 12.5px;
  color: #7c8aa3;
}
.site-footer__title {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #d9d1c3;
}
.site-footer__col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.site-footer__col a:hover { color: #f3ece0; }
.site-footer__cta-text {
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #94a1b7;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #71809a;
}

/* ── 페이지 헤더(내부 페이지) ─────────────── */
.page-header {
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 0% 0%, #fbf7f0 0%, rgba(251, 247, 240, 0) 60%),
    var(--paper);
}
.page-header__inner { max-width: 820px; }
.page-header__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--copper);
  text-transform: uppercase;
}
.page-header__title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.34;
}
.page-header__lede {
  margin-top: 16px;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
}

.page__body { padding-top: 56px; padding-bottom: 88px; }
.page__body .prose { max-width: 820px; }

/* ── 카테고리 히어로 ──────────────────────── */
.cat-hero {
  padding: 54px 0 48px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(179, 112, 58, 0.2) 0%, rgba(179, 112, 58, 0) 60%),
    linear-gradient(140deg, #111a2e, #1b2742);
  color: #f2eee7;
}
.cat-hero__inner { max-width: 820px; }
.cat-hero__eyebrow {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #e2b98d;
  text-transform: uppercase;
}
.cat-hero__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 40px);
  color: #fdfbf7;
}
.cat-hero__headline {
  margin-top: 10px;
  font-size: 16.5px;
  font-weight: 500;
  color: #d8c3aa;
}
.cat-hero__desc {
  margin-top: 16px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.8;
  color: #b2bdce;
}
.cat-hero__count {
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #8e9cb5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--slate-2);
}
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb__sep { color: var(--line-2); }
.breadcrumb__current { color: var(--slate); }
.breadcrumb--light { color: #93a0b7; }
.breadcrumb--light .breadcrumb__sep { color: #4a5a78; }
.breadcrumb--light a:hover { color: #fff; }

.empty-state {
  padding: 40px 0;
  font-size: 15px;
  color: var(--slate-2);
  text-align: center;
}

.cat-cross {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cat-cross__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--slate-2);
}
.cat-cross__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cat-cross__links a {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cat-cross__links a:hover { border-color: var(--ink); color: var(--ink); }

/* ── 글 ───────────────────────────────────── */
.post { padding: 34px 0 80px; }
.post__wrapper { max-width: 1120px; }

.post-header { max-width: 820px; margin-top: 22px; }
.post-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.badge {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper-d);
  font-size: 12.5px;
  font-weight: 700;
}
.tag {
  font-size: 12.5px;
  color: var(--slate-3);
}
.post-title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.6vw, 39px);
  line-height: 1.36;
  letter-spacing: -0.035em;
}
.post-lede {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--slate);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate-2);
}
.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-meta__author { font-weight: 600; color: var(--slate); }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 56px;
  margin-top: 36px;
  align-items: start;
}
.post-main { min-width: 0; }
.post-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
}

/* 핵심 요약 */
.keypoints {
  max-width: 820px;
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--copper-line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fdfaf5, #fbf6ee);
}
.keypoints__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--copper-d);
}
.keypoints__list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-3);
}
.keypoints__list li::marker { color: var(--copper); }

/* 목차 */
.toc {
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.toc[hidden] { display: none; }
.toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.toc__title span:nth-child(2) { flex: 1; }
.toc__caret {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--slate-2);
  border-bottom: 1.6px solid var(--slate-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.toc.is-collapsed .toc__caret { transform: rotate(-45deg); }
.toc__list {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.toc.is-collapsed .toc__list { display: none; }
.toc__list a {
  display: block;
  padding: 6px 0 6px 15px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate);
  border-radius: 6px;
  word-break: keep-all;
}
.toc__list a::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.05em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--copper-d); font-weight: 700; }
.toc__list a.is-active::before { background: var(--copper); }
.toc__list li.toc--h3 a { padding-left: 28px; font-size: 12.5px; }
.toc__list li.toc--h3 a::before { left: 15px; width: 3px; height: 3px; }

.side-cta {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #e9e4da;
}
.side-cta__title { font-size: 14px; font-weight: 700; }
.side-cta__text {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #a5b0c4;
}

/* 본문 타이포그래피 */
.prose {
  max-width: var(--prose);
  font-size: 16.5px;
  line-height: 1.9;
  color: #222b3d;
  word-break: keep-all;
}
.prose > *:first-child { margin-top: 0; }
.prose > p { margin: 0 0 1.35em; }
.prose > h2 {
  margin: 2.4em 0 0.85em;
  padding-top: 0.2em;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.prose > h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 12px;
  background: var(--copper);
}
.prose > h3 {
  margin: 2em 0 0.7em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.prose > h4 {
  margin: 1.7em 0 0.6em;
  font-size: 16.5px;
  color: var(--ink-3);
}
.prose > ul, .prose > ol {
  margin: 0 0 1.35em;
  padding-left: 1.3em;
}
.prose > ul > li, .prose > ol > li { margin-bottom: 0.5em; }
.prose > ul > li::marker, .prose > ol > li::marker { color: var(--copper); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a:not(.btn) {
  color: var(--copper-d);
  border-bottom: 1px solid var(--copper-line);
}
.prose a:not(.btn):hover { border-bottom-color: var(--copper-d); }
.prose > blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--copper-line);
  color: var(--slate);
  font-size: 15.5px;
}
.prose > blockquote p:last-child { margin-bottom: 0; }
.prose > hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #eee9e1;
  font-size: 0.9em;
}
.prose > pre {
  margin: 1.6em 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #e6e2d9;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table {
  width: 100%;
  margin: 1.7em 0;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.65;
}
.prose thead th {
  padding: 11px 12px;
  background: #efeae1;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
}
.prose tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: 0; }

/* 본문 안내 박스 */
.note-box {
  margin: 1.9em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf9f5;
  font-size: 15px;
  line-height: 1.8;
}
.note-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.note-box p:last-child { margin-bottom: 0; }

.source-list {
  margin: 1.8em 0 0;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate-2);
}
.source-list strong { color: var(--slate); }

/* 상담 CTA 박스 */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 44px 0 0;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 160% at 100% 0%, rgba(179, 112, 58, 0.14) 0%, rgba(179, 112, 58, 0) 60%),
    #fff;
  box-shadow: var(--shadow-sm);
}
.cta-box__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper);
  text-transform: uppercase;
}
.cta-box__title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.45;
}
.cta-box__text {
  margin-top: 8px;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}
.cta-box__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: none;
}
.cta-box__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}
.cta-box__link:hover { color: var(--ink); }

/* ── 상담 문의 패널 ──────────────────────── */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  margin: 30px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-panel__body { padding: 34px 34px 32px; }
.contact-panel__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper);
  text-transform: uppercase;
}
.contact-panel__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 25px);
  line-height: 1.42;
}
.contact-panel__text {
  margin: 12px 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}
.contact-panel__hours {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--slate-2);
}
.contact-panel__side {
  padding: 30px 28px;
  background: var(--paper-2);
  border-left: 1px solid var(--line);
}
.contact-panel__side-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.contact-panel__list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 17px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--slate);
}
.contact-panel__list li::marker { color: var(--copper); }

.contact-inline { margin-top: 26px; }

/* 이전/다음, 관련 글 */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.post-nav__item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease;
}
.post-nav__item:hover { border-color: var(--line-2); }
.post-nav__item:only-child { grid-column: 1 / -1; }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 12px; color: var(--slate-3); }
.post-nav__item strong { font-size: 14.5px; line-height: 1.5; font-weight: 600; }

.related { margin-top: 56px; }
.related__title {
  font-family: var(--font-serif);
  font-size: 21px;
  margin-bottom: 18px;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* 광고 */
.ad-slot { margin: 28px 0; text-align: center; min-height: 0; }
.ad-slot__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate-3);
}

/* 맨 위로 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: #fff; }

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-card { max-width: 520px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head__note { text-align: left; }
}

@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-side { position: static; order: -1; }
  .side-cta { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  body { font-size: 16.5px; }
  .wrapper { padding: 0 18px; }

  .site-header__inner { min-height: var(--header-h); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 95;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(86vw, 340px);
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 18px 18px 26px;
    background: #fbf9f5;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 40px -30px rgba(17, 26, 46, 0.5);
    overflow-y: auto;
  }
  body.nav-open .site-nav {
    display: flex;
    animation: nav-in 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes nav-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav__link {
    display: flex;
    align-items: center;
    padding: 14px 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__cta {
    margin: 20px 0 0;
    padding: 14px 18px;
    font-size: 15.5px;
  }

  .nav-toggle { display: flex; }
  body.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
  body.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

  .hero { padding-top: 46px; }
  .hero__inner { padding-bottom: 40px; gap: 30px; }
  .hero__title { font-size: clamp(29px, 8.2vw, 38px); line-height: 1.38; }
  .hero__lede { font-size: 15.5px; }
  .hero__actions .btn { width: 100%; }
  .hero-card { padding: 22px 20px; }
  .hero-topics li { flex: 1 1 50%; border-bottom: 1px solid var(--line-dark); }
  .hero-topics li:nth-child(2n) { border-right: 0; }

  .section { padding: 52px 0; }
  .section--tight { padding: 12px 0 52px; }

  .card-grid, .card-grid--feature, .cat-grid, .related__grid { grid-template-columns: minmax(0, 1fr); }
  .card__link { padding: 20px 18px; }

  .consult-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 24px;
  }
  .consult-band__actions { align-items: flex-start; width: 100%; }
  .consult-band__actions .btn { width: 100%; }

  .site-footer { padding-top: 48px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .page-header { padding: 40px 0 32px; }
  .page__body { padding-top: 36px; padding-bottom: 64px; }

  .cat-hero { padding: 36px 0 34px; }

  .breadcrumb__current { display: none; }
  .breadcrumb__sep:last-of-type { display: none; }

  .post { padding: 22px 0 64px; }
  .post-meta { gap: 10px 14px; }
  .prose { font-size: 16px; line-height: 1.86; }
  .post-layout { margin-top: 26px; }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }
  .cta-box__actions { width: 100%; }
  .cta-box__actions .btn { width: 100%; }

  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-panel__body { padding: 26px 20px; }
  .contact-panel__side { border-left: 0; border-top: 1px solid var(--line); padding: 24px 20px; }

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

  .prose table { display: block; overflow-x: auto; white-space: nowrap; }

  .to-top { right: 14px; bottom: 16px; }
}

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

@media print {
  .site-header, .site-footer, .post-side, .cta-box, .to-top, .progress-bar { display: none !important; }
  body { background: #fff; }
  .post-layout { display: block; }
}
