/* onlineebc.org — 보라색 차시 번호가 있는 독학 진도표
   모바일(360px) 기본 → 768px(태블릿) → 1080px(데스크톱). 토큰은 base.html :root, 설명은 DESIGN.md */

/* ── 0. 기본 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  /* 한글은 어절 단위로, 한 줄보다 긴 토큰(URL 등)만 넘칠 때 끊는다 — anywhere 는 쓰지 않는다 */
  word-break: keep-all; overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.35; font-weight: 600; word-break: keep-all; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; }
[hidden] { display: none !important; }
.num { font-family: var(--font-number); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); font: 600 16px/1.3 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--primary); color: #fff; border: 0; }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }

/* ── 1. 헤더 56px · 상단 내비(데스크톱만) ───────────────── */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: var(--container); margin: 0 auto; padding: 0 16px; min-height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; min-width: 0; }
.wordmark__mark { flex: none; width: 28px; height: 28px; }
.wordmark__name { font-family: var(--font-title); font-weight: 300; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; }

/* ── 2. 하단 2칸 바 + 메뉴 패널 (모바일·태블릿) ─────────── */
.stage { display: block; max-width: var(--container); margin: 0 auto; padding: 0 16px 48px; }
.thumbbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(34, 29, 45, .06);
}
.thumbbar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px;
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.thumbbar__btn--go { background: var(--primary); border-color: var(--primary); color: #fff; }
.thumbbar__btn--go:hover { color: #fff; background: var(--primary-deep); }

.msheet { position: fixed; inset: 0; z-index: 200; }
.msheet__scrim { position: absolute; inset: 0; background: rgba(34, 29, 45, .45); }
.msheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto;
  background: var(--surface); border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.msheet__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); }
.msheet__h { font-size: 17px; }
.msheet__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: var(--radius); }
.msheet__list { list-style: none; padding: 8px 0; display: grid; gap: 0; }
.msheet__list a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--bg-soft); color: var(--text); text-decoration: none; font-size: 16px; }
.msheet__list a[aria-current] { color: var(--primary); font-weight: 600; }
.msheet__links { display: flex; gap: 8px; padding-top: 4px; }
.msheet__links a { display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; text-decoration: none; border: 1px solid var(--line); border-radius: 22px; min-height: 44px; min-width: 44px; color: var(--text-dim); font-size: 14px; }
body.is-sheet-open { overflow: hidden; }

/* ── 3. 공통 조각 ────────────────────────────────────── */
.trail ol { list-style: none; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; font-size: 14px; color: var(--text-dim); }
.trail li { display: flex; align-items: center; min-width: 0; }
.trail li + li::before { content: "›"; padding: 0 6px 0 0; flex: none; }
/* ‘홈’은 44px 상자 왼쪽에 붙이고 구분 기호를 상자 안쪽으로 당겨 간격이 벌어지지 않게 */
.trail li:first-child a { justify-content: flex-start; }
.trail li:nth-child(2)::before { margin-left: -22px; padding-right: 8px; }
.trail a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.trail a:hover { color: var(--primary); text-decoration: underline; }
.trail [aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sec-h { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 14px; }
.sec-h__no {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 15px; line-height: 1;
}
.empty-note { padding: 24px 0; color: var(--text-dim); }

.phase {
  display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; line-height: 1.7;
}
.phase--w { background: var(--primary-soft); color: var(--primary-deep); }
.phase--p { background: var(--warn-soft); color: var(--warn); }

/* 글 카드 */
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.card__body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--text-dim); }
.card__cat { color: var(--primary); font-weight: 600; }
.card__wk { display: inline-flex; align-items: baseline; gap: 1px; font-size: 13px; color: var(--text); }
.card__wk .num { font-size: 16px; color: var(--accent); }
.card__title { margin-top: 2px; font-size: 18px; line-height: 1.45; }
.card__title a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--primary); text-decoration: underline; }
.card__sum { font-size: 15px; line-height: 1.6; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-dim); }
.card__cert { color: var(--text); font-weight: 600; }
.card__foot time { font-variant-numeric: tabular-nums; }
.card--lead { border-top: 4px solid var(--primary); }
.card--lead .card__title { font-size: 21px; }
.card-list { list-style: none; padding: 0; display: grid; gap: 12px; }

/* 차시 행: 번호 열 + 제목·조건 열 */
.lessons { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lesson + .lesson { border-top: 1px solid var(--line); }
.lesson__link { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 56px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.lesson__link:hover .lesson__title { color: var(--primary); text-decoration: underline; }
.lesson__no { font-size: 22px; line-height: 1.2; color: var(--primary); padding-top: 2px; white-space: nowrap; }
.lesson__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lesson__title { font-size: 16px; font-weight: 600; line-height: 1.5; }
.lesson__meta { font-size: 13px; color: var(--text-dim); }

/* 광고 칸 — 광고 코드가 없으면 통째로 숨김 (빈 회색 자리를 만들지 않는다) */
.ad-slot { position: relative; margin: 32px 0 0; padding: 22px 0 8px; text-align: center; border-top: 1px solid var(--line); min-height: 120px; }
.ad-label { position: absolute; top: 4px; left: 0; font-size: 11px; color: var(--text-dim); letter-spacing: .08em; }
.ad-slot:not(:has(> :not(.ad-label))) { display: none; }
.ad-slot--side { margin: 0; }

/* ── 4. 홈 ───────────────────────────────────────────── */
.opener { padding: 20px 0 18px; }
.opener__flow { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--primary); font-weight: 600; }
.opener__flow span[aria-hidden] { color: var(--accent); }
.opener__title { margin-top: 6px; font-family: var(--font-title); font-weight: 300; font-size: 26px; line-height: 1.3; letter-spacing: -.02em; }
.opener__lede { margin-top: 6px; font-size: 16px; color: var(--text-dim); line-height: 1.6; }
.opener__cta { margin-top: 14px; width: 100%; }

.chips { margin: 0 -16px; }
.chips ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.chips ul::-webkit-scrollbar { display: none; }
.chips li { flex: none; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; text-decoration: none; white-space: nowrap;
}
.chips a:hover { border-color: var(--primary); color: var(--primary); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 18px; }
.home-grid > .ad-slot { margin-top: 0; }
.picks__grid, .cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.route { list-style: none; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-strong); }
.route__item + .route__item { margin-top: 8px; }
.route__link { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 64px; padding: 8px 12px 8px 0; color: var(--text); text-decoration: none; }
.route__no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-size: 18px; line-height: 1; }
.route__text { display: flex; flex-direction: column; min-width: 0; }
.route__t { font-weight: 600; font-size: 16px; }
.route__d { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.route__link:hover .route__t { color: var(--primary); text-decoration: underline; }

.paths { scroll-margin-top: 16px; }
.paths__h { font-size: 20px; margin-bottom: 12px; }
.paths__list { list-style: none; padding: 0; display: grid; gap: 8px; }
.paths__link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.paths__link:hover { border-color: var(--primary); }
.paths__name { font-weight: 600; font-size: 16px; }
.paths__desc { grid-column: 1; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.paths__n { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.paths__n .num { font-size: 18px; color: var(--primary); margin-right: 2px; }

/* ── 5. 카테고리·태그 ─────────────────────────────────── */
.list-head { padding: 8px 0 12px; }
.list-head__title { margin-top: 4px; font-family: var(--font-title); font-weight: 300; font-size: 28px; line-height: 1.3; letter-spacing: -.02em; }
.list-head__hash { color: var(--primary); }
.list-head__desc { margin-top: 6px; color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.list-head__count { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.list-head__count .num { font-size: 20px; color: var(--primary); margin-right: 2px; }
.tabs { margin: 0 -16px 16px; border-bottom: 1px solid var(--line); }
.tabs ul { list-style: none; display: flex; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs li { flex: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-dim); font-size: 15px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--primary); }
.tabs a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.list-sub { margin-top: 32px; }
.index-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.index-box__h { font-size: 15px; margin-bottom: 4px; }
.index-box__list { list-style: none; padding: 0; }
.index-box__list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--line); font-size: 15px; }
.index-box__list li:last-child a { border-bottom: 0; }
.index-box__list a:hover, .index-box__list a[aria-current] { color: var(--primary); }
.index-box__list a[aria-current] { font-weight: 600; }
.index-box__n { font-size: 15px; color: var(--text-dim); }

/* ── 6. 글 ───────────────────────────────────────────── */
.sheet__head { padding-top: 4px; }
.sheet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sheet__cat { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.sheet__cat:hover { text-decoration: underline; }
.sheet__title { margin-top: 4px; font-family: var(--font-title); font-weight: 300; font-size: 26px; line-height: 1.35; letter-spacing: -.02em; }
.sheet__lede { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--text-dim); }
.sheet__by { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--text-dim); }
.sheet__by time { font-variant-numeric: tabular-nums; }
.sheet__author { color: var(--text); font-weight: 600; }
.sheet__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 20px; }
.sheet__main { min-width: 0; }
.sheet__side { display: flex; flex-direction: column; gap: 20px; }
.sheet__side .ad-slot { display: none; }
.side-h { font-size: 14px; margin-bottom: 6px; }
.sidetoc { display: none; }
.sheet__foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.tag-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; color: var(--text); text-decoration: none; font-size: 14px; }
.tag-row a:hover { border-color: var(--primary); color: var(--primary); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 600 14px/1 var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--primary); color: var(--primary); }
.share__msg { font-size: 13px; color: var(--primary); }
.next { margin-top: 36px; }

/* ── 7. .post-body (본문 17px/1.7) ─────────────────────── */
.post-body { font-size: 17px; line-height: 1.75; color: var(--text); }
.post-body > * + * { margin-top: 1em; }
.post-body > :is(h2, h3, h4) + * { margin-top: .6em; }
.post-body > :is(blockquote, div, aside, figure, table, nav) + :is(p, h4, ul, ol) { margin-top: 1.4em; }
.post-body h2 {
  margin-top: 2.2em; padding-left: 12px; font-size: 22px; line-height: 1.4; font-weight: 600;
  border-left: 3px solid var(--primary); scroll-margin-top: 16px;
}
.post-body h3 { margin-top: 1.7em; font-size: 19px; line-height: 1.45; scroll-margin-top: 16px; }
.post-body h4 { font-size: 17px; }
.post-body strong { font-weight: 600; color: var(--text); }
.post-body a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--primary-deep); text-decoration-thickness: 2px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }
.post-body li p { margin: 0; }
.post-body li::marker { color: var(--primary); }
.post-body hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.2em 0; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body figure { margin: 1.4em 0 0; }
/* 섹션 이미지(카뉴 4:3). 채워지기 전(data-img-pending)에도 자리를 잡아 흔들리지 않게 */
.post-body > figure > img, .post-body figure > img[data-img-pending] { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.post-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.post-body code, .post-body kbd { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88em; }
.post-body code { padding: 0 4px; background: var(--bg-soft); border-radius: var(--radius-sm); }

/* ── 본문 컴포넌트 — 모양은 실제 레퍼런스에서 따왔다 (DESIGN.md 「본문 컴포넌트 시각」 표)
   Q-Net 종목 상세(굵은 윗선 격자 표·※ 안내·①② 번호·제목 띠) · 인프런 로드맵(빈 원 노드·쿠폰 상자·어두운 띠·질문 글)
   · 길벗 도서 정보(자간 벌린 라벨·값 줄·■ 머리) · 코딩도장(「실행 결과」 탭 라벨·「▼ 표 7-1」 캡션) · 위키독스(점선 목차) */

/* 독학자의 고민 ← 인프런 커뮤니티 질문 글: 동그란 프로필 자리 + 작은 이름줄, 질문 본문, 아래 가는 선 (상자 없음) */
.post-body blockquote { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; margin: 1.4em 0 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.65; color: var(--text); }
.post-body blockquote::before { content: "?"; grid-row: 1; grid-column: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--primary); font: 700 14px/24px var(--font-number); text-align: center; }
.post-body blockquote::after { content: "독학자의 고민"; grid-row: 1; grid-column: 2; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 26px; color: var(--text-dim); }
.post-body blockquote > * { grid-column: 1 / -1; }
.post-body blockquote p + p { margin-top: .5em; }
.post-body blockquote cite { display: block; margin-top: 6px; font-size: 14px; font-style: normal; color: var(--text-dim); }
.post-body > blockquote:first-child { margin-top: 0; }

/* 알림 박스 — 다섯 가지가 모두 다른 모양 */
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) { margin-top: 1.4em; font-size: 16px; line-height: 1.65; }
.post-body .badge { display: inline-block; white-space: nowrap; }
/* 확인 필요 ← Q-Net 시험일정 아래 안내: 굵은 검은 윗선, 「※」 머리말, 중요한 말은 붉은 글자 */
.post-body .warn-box { padding: 10px 2px 12px; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
.post-body .warn-box .badge { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--warn); }
.post-body .warn-box .badge::before { content: "※ "; }
.post-body .warn-box strong { color: var(--warn); }
/* TIP ← 코딩도장 「실행 결과」: 회색 상자 왼쪽 위에 붙은 작은 탭 라벨 */
.post-body .info-box { position: relative; margin-top: calc(1.4em + 24px); padding: 12px 16px; background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm); }
.post-body .info-box .badge { position: absolute; left: -1px; bottom: 100%; padding: 2px 10px; background: #4a4357; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; border-radius: var(--radius-sm) var(--radius-sm) 0 0; letter-spacing: .02em; }
/* 확인 ← 인프런 쿠폰 상자: 가는 색 테두리 + 연한 면, 왼쪽 아이콘, 굵은 색 제목 아래 설명 */
.post-body .success-box { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; padding: 12px 14px; background: var(--ok-soft); border: 1px solid #8fc4a3; border-radius: var(--radius); }
.post-body .success-box::before { content: "✓"; grid-row: 1 / span 2; width: 26px; height: 26px; border: 1.5px solid var(--ok); border-radius: 50%; color: var(--ok); font: 700 14px/23px var(--font-body); text-align: center; }
.post-body .success-box .badge { font-weight: 700; color: var(--ok); }
.post-body .success-box > div { grid-column: 2; }
/* 금지 ← 시험 유의사항 「부정행위」 칸처럼: 붉은 점선 테두리, 머리말은 ✕ 표 + 붉은 굵은 글자 */
.post-body .error-box { padding: 12px 14px; border: 2px dashed #a83a3a; border-radius: var(--radius-sm); background: var(--surface); }
.post-body .error-box .badge { display: block; margin-bottom: 4px; font-weight: 700; color: #8f2525; }
.post-body .error-box .badge::before { content: "✕"; display: inline-block; width: 20px; height: 20px; margin-right: 6px; background: #8f2525; color: #fff; font: 700 12px/20px var(--font-body); text-align: center; vertical-align: 1px; }
/* 참고·제휴 ← 길벗 도서 정보 「정   가 / 출   간」 줄: 자간 벌린 라벨 칸 + 값, 위아래 가는 선 */
.post-body .note-box { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); column-gap: 16px; padding: 12px 2px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); font-size: 15px; color: var(--text-dim); }
.post-body .note-box .badge { font-weight: 600; color: var(--text); text-align: justify; text-align-last: justify; text-justify: inter-character; white-space: normal; }

/* 결론 요약 ← Q-Net 「국가자격 종목별 상세정보」 제목 띠 + 「관련부처 / 시행기관」 라벨·값 줄 */
.post-body :is(.summary-box, .prep-box, .key-points, .toc-box) { margin-top: 1.4em; }
.post-body :is(.summary-box, .prep-box, .key-points, .toc-box) :is(ul, ol) { margin: 0; }
.post-body .summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.post-body .summary-box > :is(h3, h4) { margin: 0; padding: 10px 16px; background: var(--primary-deep); color: #fff; font-size: 16px; line-height: 1.5; }
.post-body .summary-box ul { list-style: none; padding: 4px 16px 6px; }
.post-body .summary-box li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.post-body .summary-box li:first-child { border-top: 0; }
.post-body .summary-box li + li { margin-top: 0; }
.post-body .summary-box li strong { font-size: 15px; font-weight: 600; color: var(--text-dim); }

/* 준비물 ← 길벗 도서 정보 줄(값은 오른쪽 정렬) + 「■ 〈시나공〉」 머리 + Q-Net 표의 굵은 윗선 */
.post-body .prep-box { padding: 0; }
.post-body .prep-box > :is(h3, h4) { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: var(--text); }
.post-body .prep-box > :is(h3, h4)::before { content: "■"; margin-right: 6px; font-size: .8em; color: var(--primary); vertical-align: 1px; }
.post-body .prep-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--text); border-bottom: 1px solid var(--line-strong); }
.post-body .prep-grid > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 16px; }
.post-body .prep-grid > div:first-child { border-top: 0; }
.post-body .prep-grid > div > span:first-child { display: flex; gap: 10px; align-items: baseline; }
.post-body .prep-grid > div > span:first-child::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--text-dim); transform: translateY(2px); }
.post-body .prep-grid > div > span:last-child:not(:first-child) { color: var(--text-dim); text-align: right; flex: none; max-width: 50%; font-size: 15px; }

/* 핵심 정리 ← Q-Net 「취득방법」 ①②③ 번호 + 파란 소제목 아래 굵은 검은 선 */
.post-body .key-points > :is(h3, h4) { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--text); font-size: 18px; line-height: 1.5; color: var(--primary); }
.post-body .key-points :is(ol, ul) { list-style: none; padding: 0; counter-reset: kp; }
.post-body .key-points li { counter-increment: kp; position: relative; padding: 4px 0 4px 32px; }
.post-body .key-points li + li { margin-top: 2px; }
.post-body .key-points li::before { content: counter(kp); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border: 1.5px solid var(--primary); border-radius: 50%; color: var(--primary); font: 700 13px/19px var(--font-number); text-align: center; }

/* 목차 ← 위키독스 목차 상자: 점선 테두리, 번호 붙은 파란 링크 */
.post-body .toc-box { padding: 12px 18px; background: var(--surface); border: 1px dashed var(--line-strong); }
.post-body .toc-box > :is(h3, h4) { margin: 0 0 4px; font-size: 16px; line-height: 1.5; color: var(--text); }
.post-body .toc-box ol { padding-left: 1.4em; }
.post-body .toc-box li + li { margin-top: 0; }
.post-body .toc-box li::marker { color: var(--primary); font-size: 15px; }
.post-body .toc-box a { display: block; min-height: 44px; padding: 10px 0; color: var(--primary); text-decoration: none; line-height: 1.5; }
.post-body .toc-box a:hover { text-decoration: underline; }
/* 모바일에서 접히는 목차 (site.js 가 제목을 버튼으로 바꾼다) */
.post-body .toc-box .toc-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; margin: -6px 0; padding: 0;
  border: 0; background: none; font: 600 16px/1.4 var(--font-body); color: var(--text); cursor: pointer; text-align: left;
}
.post-body .toc-box .toc-toggle::after { content: "펼치기"; font-size: 13px; font-weight: 400; color: var(--text-dim); }
.post-body .toc-box .toc-toggle[aria-expanded="true"]::after { content: "접기"; }
.post-body .toc-box .toc-toggle[aria-expanded="true"] { margin-bottom: 4px; }

/* 단계 ← 인프런 로드맵 「로드맵 상세보기」: 회색 세로선에 달린 빈 원 노드, 굵은 제목 + 회색 설명 */
.post-body .step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin-top: 1.2em; }
.post-body .step + .step { margin-top: 0; padding-top: 4px; }
.post-body .step:has(+ .step) { padding-bottom: 18px; }
.post-body .step:has(+ .step)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -4px; width: 2px; background: var(--line); }
.post-body .step .num {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--primary); font-family: var(--font-number); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
}
.post-body .step .body h4 { margin: 5px 0 4px; font-size: 17px; line-height: 1.45; }
.post-body .step .body p { color: var(--text-dim); font-size: 16px; }
.post-body .step .body p + p { margin-top: .5em; }

/* 타임라인 ← Q-Net 시험일정 표: 왼쪽 회색 「구분」 칸 + 오른쪽 내용, 가는 격자 */
.post-body .timeline { list-style: none; padding: 0; margin-top: 1.4em; border-top: 2px solid var(--text); }
.post-body .timeline li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.post-body .timeline li + li { margin-top: 0; }
.post-body .timeline .time { display: flex; align-items: center; justify-content: center; padding: 10px 6px; background: var(--bg-soft); font-size: 14px; font-weight: 600; text-align: center; color: var(--text); }
.post-body .timeline .event, .post-body .timeline li > :not(.time) { padding: 10px 12px; }

/* 표 ← Q-Net 시험일정·수수료 표: 굵은 검은 윗선, 회색 머리 칸 가운데 정렬, 가로·세로 가는 격자
   캡션 ← 코딩도장 「▼ 표 7-1 …」 (글 안 표 번호를 자동으로 매긴다) */
.post-body { counter-reset: tbl; }
.post-body :is(.scroll-x, .table-scroll) {
  overflow-x: auto; margin-top: 1.4em;
  background:
    linear-gradient(90deg, var(--surface) 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(34, 29, 45, .18), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(34, 29, 45, .18), transparent) right / 12px 100% no-repeat scroll,
    var(--surface);
}
.post-body .scroll-x .table-scroll { margin: 0; overflow: visible; background: none; }
.post-body table { counter-increment: tbl; width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; background: var(--surface); }
.post-body :is(.scroll-x, .table-scroll) table { margin: 0; background: transparent; }
.post-body table caption { caption-side: top; text-align: left; padding: 0 2px 8px; font-size: 14px; color: var(--text-dim); background: var(--bg); }
.post-body table caption::before { content: "▼ 표 " counter(tbl) "  "; white-space: pre; font-weight: 700; color: var(--text); }
.post-body table :is(th, td) { padding: 10px 12px; text-align: left; vertical-align: middle; border: 1px solid var(--line); }
.post-body table tr > :first-child { border-left: 0; }
.post-body table tr > :last-child { border-right: 0; }
.post-body table > :is(thead, tbody):first-of-type:not(thead ~ tbody) > tr:first-child > * { border-top: 2px solid var(--text); }
.post-body table thead th { background: var(--bg-soft); color: var(--text); font-size: 15px; font-weight: 700; text-align: center; }
.post-body table tbody th { font-weight: 600; color: var(--text); background: #f8f6fb; }
/* 2열 사실표(시험 한눈에) ← Q-Net 「관련부처 / 시행기관」: 회색 라벨 칸 폭 고정 */
.post-body table tbody th[scope="row"]:first-child { width: 7.5em; color: var(--text-dim); }
.post-body table tbody td { font-variant-numeric: tabular-nums; }
/* 주차표: 첫 열의 차시 번호 */
.post-body .week-table tbody th { font-family: var(--font-number), var(--font-body); font-weight: 700; color: var(--primary); white-space: nowrap; text-align: center; }

/* 장단점 ← 길벗 「도서구매 / 전자책」 탭 상자: 회색 머리 칸, 머리 윗선만 색 */
.post-body .pros-cons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 1.4em; }
.post-body .pros-cons > div { background: var(--surface); border: 1px solid var(--line); }
.post-body .pros-cons h4 { margin: 0; padding: 9px 14px; background: var(--bg-soft); border-top: 2px solid var(--ok); border-bottom: 1px solid var(--line); font-size: 16px; text-align: center; }
.post-body .pros-cons .cons h4 { border-top-color: var(--warn); }
.post-body .pros-cons ul { margin: 0; padding: 12px 14px 12px 2.2em; }

/* 독학 난이도 한 줄 평 ← 인프런 로드맵 머리 띠 「입문 대상 · 총 7개 코스 · 936명 참여중」: 어두운 띠 위 흰 값 */
.post-body .stats-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 1.4em; background: #2b2535; color: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.post-body .stats-grid .stat { display: flex; flex-direction: column; gap: 0; padding: 11px 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.post-body .stats-grid .stat:first-child { border-top: 0; }
.post-body .stats-grid .label { font-size: 14px; color: #d3c9e3; }
.post-body .stats-grid .value { font-size: 17px; font-weight: 600; color: #fff; line-height: 1.5; font-variant-numeric: tabular-nums; }

/* 텍스트 강조 */
.post-body .lead { font-size: 18px; color: var(--text); }
.post-body .highlight { background: linear-gradient(transparent 60%, rgba(201, 79, 23, .22) 60%); padding: 0 1px; }
.post-body .pull-quote { margin: 1.8em 0 0; padding: 12px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.5; font-weight: 600; }
.post-body kbd, .post-body .kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--radius-sm); background: var(--surface); line-height: 1.6; }

/* 미디어 */
.post-body .image-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 1.4em; }
.post-body .image-grid figure { margin: 0; }
.post-body .before-after { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 1.4em; }
.post-body .before-after > div { position: relative; }
.post-body .before-after .label { position: absolute; top: 8px; left: 8px; padding: 0 8px; font-size: 13px; background: var(--text); 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); overflow: hidden; background: var(--bg-soft); }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 다음 차시 ← 인프런 로드맵 어두운 안내 띠 「필기부터 실기까지…」 + 꽉 찬 버튼 「로드맵 달리기」 */
.post-body .cta-box { margin-top: 1.6em; padding: 20px 18px 18px; border-radius: var(--radius-sm); background: var(--primary-deep); color: #fff; text-align: center; }
.post-body .cta-box h4 { color: #fff; font-size: 18px; }
.post-body .cta-box p { margin-top: 6px; color: #e6dcf7; }
.post-body .cta-box a:not(.cta-button) { color: #fff; }
.post-body .cta-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 14px; padding: 0 18px;
  background: #fff; color: var(--primary-deep); border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.4;
}
.post-body .cta-button:hover { color: var(--primary-deep); background: var(--primary-soft); }
.post-body > .cta-button { background: var(--primary); color: #fff; width: auto; display: inline-flex; }

/* 자주 묻는 질문 ← 문제집 「Q1. Q2.」 번호 + 코딩도장 회색 결과 상자에 답 */
.post-body h2[id*="faq"] { counter-reset: faq; }
.post-body h2[id*="faq"] ~ h3:not(h2[id*="faq"] ~ h2 ~ h3) { counter-increment: faq; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; margin-top: 1.4em; font-size: 18px; }
.post-body h2[id*="faq"] ~ h3:not(h2[id*="faq"] ~ h2 ~ h3)::before { content: "Q" counter(faq) "."; font-family: var(--font-number); font-weight: 700; color: var(--primary); }
.post-body h2[id*="faq"] ~ h3:not(h2[id*="faq"] ~ h2 ~ h3) + p { margin-top: 8px; padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; }
.post-body details, .post-body .spoiler { margin-top: 1.4em; border: 1px solid var(--line-strong); background: var(--surface); }
.post-body details + details { margin-top: -1px; }
.post-body details summary { position: relative; display: flex; align-items: center; min-height: 48px; padding: 8px 52px 8px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.post-body details summary::-webkit-details-marker { display: none; }
.post-body details summary::after { content: "+"; position: absolute; right: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border: 1px solid var(--line-strong); font: 400 20px/24px var(--font-body); text-align: center; color: var(--primary); }
.post-body details[open] summary::after { content: "−"; }
.post-body details[open] summary { border-bottom: 1px solid var(--line); }
.post-body details > :not(summary) { padding: 10px 14px 12px; margin: 0; background: var(--bg-soft); }
.post-body .faq { margin-top: 1.4em; counter-reset: faqdl; }
.post-body .faq dt { counter-increment: faqdl; padding: 12px 0 6px; font-weight: 600; }
.post-body .faq dt::before { content: "Q" counter(faqdl) ". "; font-family: var(--font-number); font-weight: 700; color: var(--primary); }
.post-body .faq dd { margin: 0; padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* 기타 */
.post-body .divider { width: 100%; height: 1px; background: var(--line); }
.post-body .footnote-ref { font-size: .72em; }
.post-body .footnote { display: block; margin-top: 2em; padding: 12px 0 0 2.4em; text-indent: -2.4em; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.post-body .footnote + .footnote { margin-top: 4px; padding-top: 0; border-top: 0; }
.post-body .footnote .num { display: inline-block; min-width: 2.4em; text-indent: 0; font-family: var(--font-body); font-weight: 600; color: var(--text); }
.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-weight: 600; font-variant-numeric: tabular-nums; }
.post-body .price-tag .currency { font-size: .85em; color: var(--text-dim); }
.post-body .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.post-body .tag-list .tag { padding: 0 10px; font-size: 14px; background: var(--bg-soft); border-radius: 12px; }
.post-body .inline-ad { margin: 2em 0 0; }

/* ── 8. 모바일 행 카드 (4열 이상 표, site.js 가 .is-stacked 를 붙였을 때만)
   ← Q-Net 「관련부처 | 과학기술정보통신부」 라벨·값: 카드 윗선 굵게, 왼쪽 회색 라벨 칸 ── */
@media (max-width: 767px) {
  .post-body :is(.scroll-x, .table-scroll).is-stacked { overflow: visible; background: none; }
  .post-body table.is-stacked, .post-body table.is-stacked :is(tbody, tr, th, td) { display: block; width: auto; min-width: 0; }
  .post-body table.is-stacked { background: none; }
  .post-body table.is-stacked caption { display: block; padding: 0 0 8px; }
  .post-body table.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .post-body table.is-stacked tbody tr { background: var(--surface); border-top: 2px solid var(--text); border-bottom: 1px solid var(--line-strong); }
  .post-body table.is-stacked tbody tr + tr { margin-top: 14px; }
  .post-body table.is-stacked tbody :is(th, td) { border: 0 !important; padding: 0; }
  /* 카드 제목: 첫 칸(주차·교재명) */
  .post-body table.is-stacked tbody tr > :first-child:not([data-label]) {
    width: auto; padding: 10px 12px; background: var(--surface); color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.45; text-align: left; border-bottom: 1px solid var(--line) !important;
  }
  .post-body table.week-table.is-stacked tbody tr > :first-child:not([data-label]) { font-size: 20px; color: var(--primary); }
  .post-body table.is-stacked td[data-label] { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); border-top: 1px solid var(--line) !important; }
  .post-body table.is-stacked th + td[data-label] { border-top: 0 !important; }
  .post-body table.is-stacked td[data-label]::before { content: attr(data-label); display: flex; align-items: center; margin: -8px 0; padding: 8px 10px; background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--text-dim); }
  .post-body table.is-stacked td[data-label] { column-gap: 12px; padding: 8px 12px 8px 0; line-height: 1.6; }
  /* 교재 카드: 장점·단점은 색과 함께 단어 라벨 */
  .post-body table.book-table.is-stacked td[data-label^="장점"]::before { color: var(--ok); }
  .post-body table.book-table.is-stacked td[data-label^="단점"]::before { color: var(--warn); }
  /* 3열 이하 사실표는 표 그대로 — 넘치면 가로 스크롤 상자 */
  .post-body :is(.scroll-x, .table-scroll):not(.is-stacked) table { min-width: 0; }
  .post-body > table:not(.is-stacked) { display: block; overflow-x: auto; }
}

/* ── 9. 푸터 ─────────────────────────────────────────── */
.foot { background: #241a35; color: #d9d1e6; border-top: 4px solid var(--primary); }
.foot__in { max-width: var(--container); margin: 0 auto; padding: 28px 16px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 18px; font-size: 14px; line-height: 1.65; }
.foot__name { color: #fff; font-family: var(--font-title); font-weight: 300; font-size: 20px; }
.foot__id p { margin-top: 4px; }
.foot__h { color: #fff; font-size: 14px; margin-bottom: 4px; }
.foot__cats ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.foot__cats a, .foot__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #fff; text-decoration: none; }
.foot__cats a:hover, .foot__links a:hover { text-decoration: underline; color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 6px; }
.foot__note { font-size: 13px; color: #c2b8d2; }
.foot__copy { font-size: 13px; color: #a99fbb; }

/* CMS 기본 페이지(/privacy 등) */
.cms-default-page { max-width: var(--read-w); padding-top: 16px; }
.cms-default-page h1 { font-family: var(--font-title); font-weight: 300; font-size: 28px; margin-bottom: 12px; }

/* ── 10. 태블릿 768px+ ───────────────────────────────── */
@media (min-width: 768px) {
  .stage { padding-left: 24px; padding-right: 24px; }
  .topbar__in { padding: 0 24px; }
  .chips { margin: 0 -24px; }
  .chips ul { padding: 4px 24px 8px; }
  .tabs { margin-left: -24px; margin-right: -24px; }
  .tabs ul { padding: 0 24px; }
  .opener { padding: 36px 0 24px; }
  .opener__title { font-size: 36px; }
  .opener__lede { font-size: 17px; }
  .opener__cta { width: auto; }
  .picks__grid, .cmp-grid, .card-list, .paths__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .card--lead:not(:has(.card__media)) { display: flex; }
  .card--lead .card__media img { height: 100%; aspect-ratio: auto; min-height: 220px; }
  .card--lead .card__body { padding: 20px 22px 16px; }
  .card--lead .card__title { font-size: 24px; }
  .list-head__title { font-size: 34px; }
  .sheet__head, .sheet__main { max-width: var(--read-w); }
  .sheet__title { font-size: 34px; line-height: 1.3; }
  .sheet__lede { font-size: 18px; }
  .post-body h2 { font-size: 24px; }
  .post-body h3 { font-size: 20px; }
  .post-body .pros-cons, .post-body .before-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body .image-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .post-body .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body .stats-grid .stat { border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: -1px 0 0 rgba(255, 255, 255, .14); }
  .post-body .stats-grid .stat:nth-child(-n+2) { border-top: 0; }
  .post-body .stats-grid .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .post-body .prep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .post-body .prep-grid > div:nth-child(2) { border-top: 0; }
  .post-body :is(.scroll-x, .table-scroll) table { min-width: 560px; }
  .post-body .week-table tbody th { width: 4.5em; }
  .foot__cats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 11. 데스크톱 1080px+ : 상단 내비, 하단 바 제거, 보조 칸 ── */
@media (min-width: 1080px) {
  .stage { padding: 0 32px 72px; }
  .topbar { position: sticky; top: 0; z-index: 50; }
  .topbar__in { padding: 0 32px; }
  .topnav { display: block; flex: 1; min-width: 0; }
  .topnav ul { list-style: none; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0 2px; }
  .topnav a { display: flex; align-items: center; min-height: var(--head-h); padding: 0 11px; color: var(--text-dim); font-size: 15px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
  .topnav a:hover { color: var(--primary); }
  .topnav a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
  .thumbbar, .msheet { display: none !important; }
  .foot__in { padding: 36px 32px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 48px; }
  .foot__links, .foot__note, .foot__copy { grid-column: 1 / -1; }
  html { scroll-padding-top: calc(var(--head-h) + 16px); }
  .post-body h2, .post-body h3, .paths { scroll-margin-top: calc(var(--head-h) + 16px); }

  .chips { display: none; }
  .opener { padding: 48px 0 32px; }
  .opener__title { font-size: 42px; }
  .home-grid { grid-template-columns: var(--side-w) minmax(0, 1fr); column-gap: 48px; row-gap: 40px; align-items: start; margin-top: 8px; }
  .home-grid > * { grid-column: 2; }
  .home-grid > .paths { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: calc(var(--head-h) + 24px); }
  .paths__list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .paths__link { min-height: 48px; padding: 8px 12px; }
  .paths__desc { display: none; }
  .paths__n { grid-row: 1; }
  .picks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .list-grid { grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 48px; align-items: start; }
  .list-side { position: sticky; top: calc(var(--head-h) + 24px); }

  .sheet__head { max-width: var(--read-w); }
  .sheet__grid { grid-template-columns: minmax(0, var(--read-w)) var(--side-w); gap: 48px; margin-top: 28px; }
  .sheet__side { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto; }
  .sheet__side .ad-slot { display: block; }
  .sheet__side .ad-slot:not(:has(> :not(.ad-label))) { display: none; }
  .sidetoc { display: block; padding: 4px 0 0 14px; border-left: 2px solid var(--line); }
  .sidetoc[hidden] { display: none; }
  .sidetoc__list { list-style: none; padding: 0; counter-reset: sec; }
  .sidetoc__list li { counter-increment: sec; }
  .sidetoc__list a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px; align-items: center; min-height: 44px; padding: 6px 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); text-decoration: none; }
  .sidetoc__list a::before { content: counter(sec, decimal-leading-zero); font-family: var(--font-number); font-weight: 700; color: var(--primary); white-space: nowrap; }
  .sidetoc__list a:hover, .sidetoc__list a[aria-current] { color: var(--text); }
  .sheet__title { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .thumbbar, .msheet, .sheet__side, .share, .ad-slot, .foot { display: none !important; }
  .stage { padding-bottom: 0; }
}
