/* twistyroad.com — 등고선 지도 + 도로 표지
   토큰은 base.html :root. 이 파일은 var(--*) 만 참조한다. 설명은 DESIGN.md */

/* ── 0. 기본 ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }

.skiplink {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--text-strong); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skiplink:focus { top: 8px; color: #fff; }

/* 등고선 패턴 (히어로·빈 썸네일) */
.contour, .trailhead, .post-body .img-ph {
  background-color: var(--primary-soft);
  background-image:
    repeating-radial-gradient(circle at 22% 38%, transparent 0 13px, rgba(31, 92, 74, .16) 13px 14px),
    repeating-radial-gradient(circle at 82% 78%, transparent 0 17px, rgba(31, 92, 74, .10) 17px 18px);
}
.contour {
  display: flex; align-items: flex-end; width: 100%; height: 100%; min-height: 96px;
  border-radius: var(--radius-md); overflow: hidden;
}
.contour--wide { aspect-ratio: 16 / 9; height: auto; }
.contour__label {
  margin: 10px; padding: 3px 8px; max-width: calc(100% - 20px);
  background: var(--bg-card); color: var(--text-dim); border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contour--cover { aspect-ratio: 21 / 9; }
.contour--cover .contour__label { font-size: 14px; color: var(--text); font-weight: 600; }

/* ── 1. 헤더 (masthead) ────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 50; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -3px 0 -1px var(--accent);
}
.masthead__in {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  min-height: 56px; display: flex; align-items: center; gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px;
  color: var(--text-strong); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em;
}
.wordmark__sign { width: 28px; height: 28px; }
.routebar { min-width: 0; flex: 1; }
.routebar ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.routebar ul::-webkit-scrollbar { display: none; }
.routebar a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.routebar a:hover { color: var(--text-strong); }
.routebar a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }

/* ── 2. 레이아웃 공통 ──────────────────────────────── */
.stage { display: block; max-width: var(--container); margin: 0 auto; padding: 0 20px 64px; }
.band-title {
  display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 16px;
}
.band-title::before {
  content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--accent);
  box-shadow: 24px 0 0 var(--accent); margin-right: 26px;
}
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 40px; margin-top: 40px;
}
.empty-note { color: var(--text-dim); padding: 32px 0; }
.trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font-size: 13px; color: var(--text-dim); }
.trail li + li::before { content: "›"; margin-right: 4px; }
.trail a { color: var(--text-dim); }
.grade {
  display: inline-block; padding: 0 6px; border: 1px solid var(--text); border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.6; font-weight: 600; color: var(--text-strong); background: var(--bg-card);
}

/* ── 3. 홈 ─────────────────────────────────────────── */
.trailhead {
  margin: 0 -20px; padding: 48px 20px 40px; border-bottom: 1px solid var(--primary-line);
}
.trailhead__in { max-width: 760px; }
.trailhead__kicker { font-family: var(--mono); font-size: 13px; color: var(--primary); letter-spacing: .02em; }
.trailhead__title { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 12px; letter-spacing: -.02em; }
.trailhead__lede { font-size: 17px; color: var(--text); max-width: 620px; }
.trailhead__by { margin-top: 12px; font-size: 14px; color: var(--text-dim); }
.trailhead__by strong { color: var(--text-strong); }
.odometer { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.odometer div {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; min-width: 112px;
}
.odometer dt { font-size: 12px; color: var(--text-dim); }
.odometer dd { margin: 0; font-family: var(--mono); font-size: 22px; color: var(--text-strong); line-height: 1.3; }

.lane-chips {
  display: flex; gap: 8px; margin: 24px 0 0; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.lane-chips a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card);
  color: var(--text); text-decoration: none; font-size: 14px;
}
.lane-chips a:hover { border-color: var(--primary); color: var(--primary); }
.lane-chips a[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }

.picks { margin-top: 36px; }
.picks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pick { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.pick--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pick__media { display: block; }
.pick__media img, .pick__media .contour { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 0; }
.pick__body { padding: 16px 18px 20px; }
.pick--lead .pick__body { padding: 28px; align-self: center; }
.pick__meta { font-size: 13px; color: var(--primary); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.pick__title { font-size: 17px; margin-top: 6px; }
.pick--lead .pick__title { font-size: 24px; }
.pick__title a { color: var(--text-strong); text-decoration: none; }
.pick__title a:hover { color: var(--primary); text-decoration: underline; }
.pick__sum { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

.route-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text-strong); }
.route-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.route-row__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--text-dim); }
.route-row__cat { color: var(--primary); font-weight: 600; }
.route-row__title { font-size: 18px; margin-top: 6px; }
.route-row__title a { color: var(--text-strong); text-decoration: none; }
.route-row__title a:hover { color: var(--primary); text-decoration: underline; }
.route-row__sum {
  margin-top: 6px; color: var(--text-dim); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.route-row__date { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.route-row__thumb { display: block; }
.route-row__thumb img, .route-row__thumb .contour { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--radius-md); }

.sidepanel, .sheet-side { display: flex; flex-direction: column; gap: 24px; }
.sidepanel__box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.sidepanel__h { font-size: 14px; letter-spacing: .02em; margin-bottom: 10px; color: var(--text-strong); }
.legend, .mini-list { list-style: none; margin: 0; padding: 0; }
.legend a {
  display: flex; justify-content: space-between; align-items: center; min-height: 40px;
  color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border); font-size: 15px;
}
.legend li:last-child a { border-bottom: 0; }
.legend a:hover, .legend a[aria-current] { color: var(--primary); }
.legend a[aria-current] { font-weight: 700; }
.legend__n { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.mini-list li + li { margin-top: 8px; }
.mini-list a { color: var(--text); font-size: 15px; }

.ad-slot {
  display: flex; align-items: center; justify-content: center; min-height: 250px;
  background: var(--bg-soft); border-radius: var(--radius-sm); position: relative;
}
.ad-label { font-size: 11px; color: var(--text-dim); letter-spacing: .08em; }

/* ── 4. 카테고리·태그 ─────────────────────────────── */
.lane-head { padding: 32px 0 8px; }
.lane-head__title { font-size: clamp(26px, 4vw, 36px); margin-top: 10px; letter-spacing: -.02em; }
.lane-head__hash { color: var(--primary); margin-right: 2px; }
.lane-head__desc { margin-top: 8px; color: var(--text-dim); max-width: 640px; }
.lane-head__count { margin-top: 12px; font-size: 14px; color: var(--text-dim); }
.lane-head__n { font-family: var(--mono); font-size: 18px; color: var(--text-strong); }
.lane-head + .lane-chips { margin-top: 16px; }

/* ── 5. 글 페이지 ──────────────────────────────────── */
.route-sheet { padding-top: 24px; }
.sheet-head { max-width: var(--content-w); }
.sheet-head__cat { margin-top: 18px; }
.sheet-head__cat a {
  display: inline-block; font-size: 13px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--primary); padding: 2px 10px; border-radius: var(--radius-sm);
}
.sheet-head__title { font-size: clamp(26px, 4.2vw, 38px); margin-top: 12px; letter-spacing: -.02em; }
.sheet-head__lede { margin-top: 12px; font-size: 18px; color: var(--text); }
.sheet-head__by { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-dim); }
.sheet-head__by time { font-family: var(--mono); font-size: 13px; }
.sheet-head__author { color: var(--text-strong); font-weight: 600; }
.sheet-cover { margin: 24px 0 0; max-width: calc(var(--content-w) + 40px + var(--side-w)); }
.sheet-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }
.sheet-grid {
  display: grid; grid-template-columns: minmax(0, var(--content-w)) var(--side-w); gap: 40px; margin-top: 32px;
}
.sheet-side { position: relative; }
.sidetoc { position: sticky; top: 76px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.sidetoc__list { margin: 0; padding: 0; list-style: none; counter-reset: sec; }
.sidetoc__list li { counter-increment: sec; }
.sidetoc__list a {
  display: flex; gap: 8px; padding: 6px 0; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.5;
}
.sidetoc__list a::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); color: var(--text-dim); font-size: 12px; padding-top: 2px; }
.sidetoc__list a:hover { color: var(--primary); }

.sheet-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.sheet-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-tags a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  background: var(--bg-soft); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 14px;
}
.sheet-tags a:hover { background: var(--primary-soft); color: var(--primary); }
.sheet-foot__upd { font-size: 13px; color: var(--text-dim); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-row__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none;
}
.share-row__btn:hover { border-color: var(--primary); color: var(--primary); }
.share-row__msg { font-size: 13px; color: var(--primary); }

.next-routes { margin-top: 48px; }
.next-routes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.next-routes__item a {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none;
}
.next-routes__item a:hover { border-color: var(--primary); }
.next-routes__no {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--text-strong); font-family: var(--mono); font-size: 14px;
}
.next-routes__title { color: var(--text-strong); font-weight: 700; }
.next-routes__sum { color: var(--text-dim); font-size: 14px; }

/* ── 6. .post-body — 공통 선택자 (guides/02 §13) ──── */
.post-body { color: var(--text); font-size: 17px; line-height: 1.85; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 {
  margin-top: 2.4em; padding-left: 14px; font-size: 24px;
  border-left: 4px solid var(--accent); scroll-margin-top: 76px;
}
.post-body h3 { margin-top: 1.8em; font-size: 19px; color: var(--primary); scroll-margin-top: 76px; }
.post-body h4 { font-size: 16px; }
.post-body p { margin: 0; }
.post-body strong { color: var(--strong); font-weight: 700; }
.post-body a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--text-strong); text-decoration-thickness: 2px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .4em; }
.post-body li p { margin: 0; }
.post-body li::marker { color: var(--primary); font-weight: 700; }
.post-body hr { border: 0; height: 4px; margin: 2.4em auto; width: 120px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 30px); }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); }
.post-body figure { margin: 1.6em 0 0; }
.post-body figcaption { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.post-body code, .post-body kbd { font-family: var(--mono); font-size: .88em; }

/* 그 길의 한 장면 / 인용 */
.post-body blockquote {
  margin: 1.6em 0 0; padding: 18px 22px; background: var(--primary-soft);
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px; color: var(--text-strong);
}
.post-body blockquote p + p { margin-top: .6em; }
.post-body blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--text-dim); }
.post-body > blockquote:first-child { margin-top: 0; }

/* 이미지 자리 (Canew 전, 등고선 패널) */
.post-body .img-ph {
  display: flex; align-items: flex-end; aspect-ratio: 16 / 9; border-radius: var(--radius-md); padding: 12px;
}
.post-body .img-ph > * { margin: 0; background: var(--bg-card); padding: 3px 8px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-dim); }

/* ── 7. 표준 컴포넌트 31종 (COMPONENT_LIBRARY.md) ─── */
/* 7-1 알림 박스 */
.post-body .warn-box, .post-body .info-box, .post-body .success-box, .post-body .error-box, .post-body .note-box {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-top: 1.4em;
  border-left: 4px solid; border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 16px; line-height: 1.75;
}
.post-body .badge {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; margin-top: 2px;
  font-size: 12px; font-weight: 700; line-height: 1.7; border-radius: var(--radius-sm); color: #fff; white-space: nowrap;
}
.post-body .warn-box { background: var(--warn-soft); border-color: var(--warn); }
.post-body .warn-box .badge { background: var(--warn); }
.post-body .warn-box .badge::before {
  content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 9px solid currentColor;
}
.post-body .info-box { background: var(--primary-soft); border-color: var(--primary); }
.post-body .info-box .badge { background: var(--primary); }
.post-body .success-box { background: #e8f1e3; border-color: #3f6b2f; }
.post-body .success-box .badge { background: #3f6b2f; }
.post-body .error-box { background: #f8e3e1; border-color: #8f2a2a; }
.post-body .error-box .badge { background: #8f2a2a; }
.post-body .error-box .badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor;
  background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%); }
.post-body .note-box { background: var(--bg-soft); border-color: var(--text-dim); }
.post-body .note-box .badge { background: var(--text-dim); }

/* 7-2 콘텐츠 박스 */
.post-body .prep-box, .post-body .summary-box, .post-body .key-points, .post-body .toc-box {
  margin-top: 1.6em; padding: 18px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.post-body .prep-box h4, .post-body .summary-box h4, .post-body .key-points h4, .post-body .toc-box h4 {
  font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.post-body .prep-box h4::before, .post-body .summary-box h4::before, .post-body .key-points h4::before, .post-body .toc-box h4::before {
  content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--accent);
}
.post-body .prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.post-body .prep-grid > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.post-body .prep-grid > div > span:last-child { font-family: var(--mono); color: var(--text-dim); white-space: nowrap; }
.post-body .summary-box ul, .post-body .key-points ol, .post-body .toc-box ol { margin: 0; }
.post-body .key-points { border-top: 4px solid var(--primary); }
.post-body .toc-box { background: var(--bg-soft); border-style: dashed; }
.post-body .toc-box a { color: var(--text); text-decoration: none; }
.post-body .toc-box a:hover { color: var(--primary); text-decoration: underline; }

/* 7-3 레이아웃 */
.post-body .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin-top: 1.2em; }
.post-body .step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--text-strong); font-family: var(--mono); font-size: 15px;
}
.post-body .step .body h4 { font-size: 17px; margin: 6px 0 4px; }
.post-body .step .body p + p { margin-top: .6em; }

.post-body .timeline { list-style: none; padding: 0 0 0 4px; margin-top: 1.4em; border-left: 0; }
.post-body .timeline li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 0 0 16px 20px; }
.post-body .timeline li + li { margin-top: 0; }
.post-body .timeline li::before { content: ""; position: absolute; left: 0; top: 6px; bottom: -6px; width: 3px;
  background: repeating-linear-gradient(var(--accent) 0 8px, transparent 8px 13px); }
.post-body .timeline li:last-child::before { bottom: 12px; }
.post-body .timeline li::after { content: ""; position: absolute; left: -4px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-card); border: 3px solid var(--primary); }
.post-body .timeline .time { font-family: var(--mono); font-size: 14px; color: var(--primary); padding-top: 1px; }

.post-body .scroll-x { overflow-x: auto; margin-top: 1.4em; border: 1px solid var(--border); border-radius: var(--radius-md); }
.post-body .compare-table, .post-body table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg-card); }
.post-body .scroll-x > table { margin: 0; min-width: 520px; }
.post-body table caption { caption-side: top; text-align: left; padding: 10px 14px; font-size: 13px; color: var(--text-dim); }
.post-body .compare-table th, .post-body .compare-table td, .post-body table th, .post-body table td {
  padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border);
}
.post-body .compare-table thead th, .post-body table thead th {
  background: var(--text-strong); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.post-body .compare-table tbody tr:nth-child(even) { background: var(--bg); }
.post-body .compare-table tbody th {
  font-family: var(--mono); font-weight: 500; color: var(--text-strong); white-space: nowrap;
  box-shadow: inset 4px 0 0 var(--accent);
}
.post-body .compare-table tbody tr:last-child > * { border-bottom: 0; }

.post-body .pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 1.4em; }
.post-body .pros-cons > div { padding: 16px 18px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.post-body .pros-cons .pros { border-top: 4px solid var(--primary); }
.post-body .pros-cons .cons { border-top: 4px solid var(--warn); }
.post-body .pros-cons h4 { font-size: 15px; margin-bottom: 8px; }
.post-body .pros-cons ul { margin: 0; }

/* 코스 요약 박스 */
.post-body .stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 1.4em;
  background: var(--border); border: 1px solid var(--border); border-top: 4px solid var(--primary);
  border-radius: var(--radius-md); overflow: hidden;
}
.post-body .stats-grid .stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--bg-card); }
.post-body .stats-grid .label { font-size: 12px; color: var(--text-dim); letter-spacing: .02em; }
.post-body .stats-grid .value { font-family: var(--mono); font-size: 16px; color: var(--text-strong); line-height: 1.5; }

/* 7-4 텍스트 강조 */
.post-body .lead { font-size: 19px; color: var(--text-strong); }
.post-body .highlight { background: linear-gradient(transparent 58%, rgba(242, 183, 5, .45) 58%); padding: 0 1px; }
.post-body .pull-quote {
  margin: 2em 0 0; padding: 14px 0; font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--text-strong);
  border-top: 3px solid var(--text-strong); border-bottom: 1px solid var(--border);
}
.post-body kbd, .post-body .kbd {
  display: inline-block; padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: var(--radius-sm); background: var(--bg-card); line-height: 1.6;
}

/* 7-5 미디어 */
.post-body .image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 1.4em; }
.post-body .image-grid figure { margin: 0; }
.post-body .before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1.4em; }
.post-body .before-after > div { position: relative; }
.post-body .before-after .label {
  position: absolute; top: 8px; left: 8px; padding: 1px 8px; font-size: 12px; font-weight: 600;
  background: var(--text-strong); color: #fff; border-radius: var(--radius-sm);
}
.post-body .video-embed { position: relative; aspect-ratio: 16 / 9; margin-top: 1.4em; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-soft); }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 7-6 CTA */
.post-body .cta-box, .post-body .cta {
  margin-top: 1.6em; padding: 22px 24px; border-radius: var(--radius-md);
  background: var(--primary); color: #fff;
}
.post-body .cta-box h4, .post-body .cta h4 { color: #fff; font-size: 17px; }
.post-body .cta-box p, .post-body .cta p { margin-top: 6px; color: #e3eee9; }
.post-body .cta-box a:not(.cta-button) { color: #fff; }
.post-body .cta-button {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 18px;
  background: var(--accent); color: var(--text-strong); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.post-body .cta-button:hover { color: var(--text-strong); filter: brightness(1.06); text-decoration: none; }

/* 7-7 기타 */
.post-body .divider { width: 100%; height: 1px; background: var(--border); }
.post-body .spoiler { margin-top: 1.4em; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.post-body .spoiler summary { cursor: pointer; padding: 12px 16px; font-weight: 600; min-height: 44px; }
.post-body .spoiler > :not(summary) { padding: 0 16px 14px; margin: 0; }
.post-body .footnote-ref { font-family: var(--mono); font-size: .72em; }
.post-body .footnote {
  display: flex; gap: 8px; margin-top: 2em; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-dim); line-height: 1.65;
}
.post-body .footnote + .footnote { margin-top: 4px; padding-top: 0; border-top: 0; }
.post-body .footnote .num { font-family: var(--mono); flex: none; }
.post-body .price-tag { display: inline-flex; align-items: baseline; gap: 2px; padding: 0 6px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.post-body .price-tag .amount { font-family: var(--mono); font-weight: 500; color: var(--text-strong); }
.post-body .price-tag .currency { font-size: .85em; color: var(--text-dim); }
.post-body .faq { margin-top: 1.4em; border-top: 1px solid var(--border); }
.post-body .faq dt { padding: 14px 0 4px; font-weight: 700; color: var(--text-strong); display: flex; gap: 8px; }
.post-body .faq dt::before { content: "Q"; font-family: var(--mono); color: var(--primary); }
.post-body .faq dd { margin: 0; padding: 0 0 14px 22px; border-bottom: 1px solid var(--border); }
.post-body .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.post-body .tag-list .tag { padding: 1px 10px; font-size: 13px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.post-body .inline-ad { margin: 2em 0 0; min-height: 120px; }

/* ── 8. 푸터 (basemap) ─────────────────────────────── */
.basemap { background: var(--text); color: #c9d3cf; border-top: 4px solid var(--accent); }
.basemap__in { max-width: var(--container); margin: 0 auto; padding: 36px 20px 40px; display: grid; gap: 14px; font-size: 14px; }
.basemap__id strong { color: #fff; font-size: 16px; }
.basemap__id p { margin-top: 4px; }
.basemap__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.basemap__links a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.basemap__links a:hover { color: var(--accent); }
.basemap__note { max-width: 680px; }
.basemap__copy { font-family: var(--mono); font-size: 12px; }

/* CMS 기본 페이지(/privacy 등) */
.cms-default-page { max-width: var(--content-w); padding-top: 32px; }
.cms-default-page h1 { font-size: 30px; margin-bottom: 16px; }

/* ── 9. 반응형 ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .split, .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-main { max-width: var(--content-w); }
  .sidetoc { display: none; }
  .sidepanel, .sheet-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 720px) {
  .stage { padding: 0 16px 48px; }
  .masthead__in { padding: 0 0 0 16px; gap: 12px; }
  .wordmark__name { font-size: 16px; }
  .trailhead { margin: 0 -16px; padding: 32px 16px 28px; }
  .picks__grid { grid-template-columns: minmax(0, 1fr); }
  .pick--lead { grid-template-columns: minmax(0, 1fr); }
  .pick--lead .pick__body { padding: 16px 18px 20px; }
  .pick--lead .pick__title { font-size: 20px; }
  .route-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 16px 0; }
  .route-row__title { font-size: 16px; }
  .route-row__sum { display: none; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 21px; }
  .post-body h3 { font-size: 18px; }
  .post-body blockquote { font-size: 17px; padding: 14px 16px; }
  .post-body .prep-grid, .post-body .pros-cons, .post-body .before-after { grid-template-columns: minmax(0, 1fr); }
  .post-body .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .post-body .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body > table { display: block; overflow-x: auto; }
  .sheet-head__lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .masthead, .sheet-side, .share-row, .ad-slot, .basemap, .lane-chips { display: none !important; }
}
