/*
 * WP3 디자인 시스템 — 토큰 다리 + 컴포넌트
 * =============================================================================
 *  ⚠ 값을 여기 적지 않는다.
 *    색·간격·모서리·그림자는 각 사이트의 `theme.json` 이 정하고 워드프레스가
 *    `--wp--preset--*` 로 내보낸다. 여기서 값을 또 적으면 두 벌이 되고,
 *    편집기에서 보는 모습과 실제 화면이 갈라진다.
 *
 *    두 번째 인자(대체값)는 **테마가 없을 때만** 쓰인다 — 편집기 미리보기나
 *    플러그인만 활성된 상태. 실제 화면에서는 언제나 테마 값이 이긴다.
 *
 *  ⚠ `acc-` 클래스를 건드리지 않는다.
 *    자동화가 매일 아홉 편을 그 클래스로 만든다. 이름을 바꾸면 이미 나간
 *    글 전부가 스타일을 잃는다. 여기 새로 만드는 것은 전부 `wd-` 다.
 * =============================================================================
 */

/* ── 토큰 다리 ─────────────────────────────────────────────────────────── */
:root {
	--wd-primary:      var(--wp--preset--color--primary, #2563eb);
	--wd-primary-dark: var(--wp--preset--color--primary-dark, #172554);
	--wd-secondary:    var(--wp--preset--color--secondary, #0e7490);
	--wd-bg:           var(--wp--preset--color--background, #f5f7fb);
	--wd-surface:      var(--wp--preset--color--surface, #ffffff);
	--wd-text:         var(--wp--preset--color--text, #172033);
	--wd-muted:        var(--wp--preset--color--muted-text, #4b5768);
	--wd-border:       var(--wp--preset--color--border, #e2e8f0);
	/* ⚠ 폼 테두리는 이것을 쓴다. 위의 `--wd-border` 는 흰 카드 위에서 대비가
	   1.23 이라 "여기가 입력칸" 이라는 정보를 전달하지 못한다.
	   WCAG 1.4.11 은 UI 요소를 알아볼 수 있는 대비로 3:1 을 요구한다. */
	--wd-border-strong: var(--wp--preset--color--border-strong, #767f8c);

	--wd-success:      var(--wp--preset--color--success, #15803d);
	--wd-success-soft: var(--wp--preset--color--success-soft, #dcfce7);
	--wd-warning:      var(--wp--preset--color--warning, #b45309);
	--wd-warning-soft: var(--wp--preset--color--warning-soft, #fef3c7);
	--wd-danger:       var(--wp--preset--color--danger, #dc2626);
	--wd-danger-soft:  var(--wp--preset--color--danger-soft, #fee2e2);
	--wd-info:         var(--wp--preset--color--info, #0369a1);
	--wd-info-soft:    var(--wp--preset--color--info-soft, #e0f2fe);

	--wd-s-20: var(--wp--preset--spacing--20, 0.5rem);
	--wd-s-30: var(--wp--preset--spacing--30, 0.75rem);
	--wd-s-40: var(--wp--preset--spacing--40, 1rem);
	--wd-s-50: var(--wp--preset--spacing--50, 1.5rem);
	--wd-s-60: var(--wp--preset--spacing--60, 2rem);
	--wd-s-70: var(--wp--preset--spacing--70, 3.5rem);

	--wd-r-sm:   6px;
	--wd-r-md:   12px;
	--wd-r-lg:   16px;
	--wd-r-pill: 999px;

	--wd-sh-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
	--wd-sh-md: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);

	/* ⚠ 명세 §14: 최소 터치 크기 44px. 버튼 높이를 여기서 한 번만 정한다. */
	--wd-touch: 44px;
}

/* ── 상자 계산 ─────────────────────────────────────────────────────────── */
/*
 * ⚠ 코어는 자기가 스타일한 요소에만 border-box 를 준다. wd- 구성요소가
 *   기본값(content-box)에 떨어지면 두 가지가 조용히 부푼다 — 2026-08-06
 *   운영 첫 화면에서 실측한 것:
 *     · min-height 44px 버튼이 안여백·테두리를 더해 64px
 *     · height:100% 카드가 격자 행(292px)보다 50px 커져 다음 행을 덮음
 *   wd- 구성요소와 그 자손만 잰다. 코어 전역·acc- 는 건드리지 않는다.
 */
[class*="wd-"],
[class*="wd-"] *,
[class*="wd-"] *::before,
[class*="wd-"] *::after { box-sizing: border-box; }


/* ── 버튼 ──────────────────────────────────────────────────────────────── */
/*
 * ⚠ 버튼과 링크를 섞지 않는다 (명세 §14).
 *   `.wd-btn` 은 `<a>` 에도 붙을 수 있지만, **행동**에는 `<button>` 을 쓴다.
 *   화면을 소리로 읽는 사람에게 "링크"와 "버튼"은 다른 약속이다.
 */
.wd-btn,
.wd-btn-secondary,
.wd-btn-quiet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: var(--wd-touch);
	padding: 0.55rem 1.1rem;
	border-radius: var(--wd-r-sm);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.wd-btn {
	background: var(--wd-primary);
	color: #fff;
}
.wd-btn:hover { background: var(--wd-primary-dark); color: #fff; }

.wd-btn-secondary {
	background: var(--wd-surface);
	color: var(--wd-primary);
	/* 버튼도 UI 요소다. 테두리가 안 보이면 눌러야 할 곳을 알 수 없다. */
	border-color: var(--wd-border-strong);
}
.wd-btn-secondary:hover { border-color: var(--wd-primary); }

.wd-btn-quiet {
	background: none;
	color: var(--wd-primary);
	padding-inline: 0.25rem;
	min-height: var(--wd-touch);
}
.wd-btn-quiet:hover { text-decoration: underline; }

/* ⚠ 포커스 표시를 지우지 않는다 (명세 §14).
     `outline: none` 을 쓰면 키보드로 쓰는 사람이 지금 어디 있는지 잃는다. */
.wd-btn:focus-visible,
.wd-btn-secondary:focus-visible,
.wd-btn-quiet:focus-visible {
	outline: 2px solid var(--wd-primary);
	outline-offset: 2px;
}

.wd-btn[aria-disabled="true"],
.wd-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ── 카드 ──────────────────────────────────────────────────────────────── */
.wd-card {
	background: var(--wd-surface);
	border: 1px solid var(--wd-border);
	border-radius: var(--wd-r-md);
	padding: var(--wd-s-50);
}
.wd-card-tool { display: flex; flex-direction: column; gap: var(--wd-s-30); height: 100%; }
.wd-card-tool .wd-card-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.wd-card-tool p { margin: 0; color: var(--wd-muted); font-size: 0.95rem; }
.wd-card-tool .wd-btn,
.wd-card-tool .wd-btn-secondary { margin-top: auto; align-self: flex-start; }

/* 상태 카드 — 왼쪽 띠로 상태를 알린다.
   ⚠ 색만으로 알리지 않는다 (명세 §14). 띠 색과 함께 배지 글자가 항상 붙는다. */
.wd-card-status { border-left: 4px solid var(--wd-border); }
.wd-card-status.is-success { border-left-color: var(--wd-success); }
.wd-card-status.is-warning { border-left-color: var(--wd-warning); }
.wd-card-status.is-danger  { border-left-color: var(--wd-danger); }
.wd-card-status.is-info    { border-left-color: var(--wd-info); }

/* ── 알림 상자 ─────────────────────────────────────────────────────────── */
.wd-notice {
	border: 1px solid var(--wd-border);
	border-left-width: 4px;
	border-radius: var(--wd-r-sm);
	padding: var(--wd-s-40) var(--wd-s-50);
	margin-block: var(--wd-s-50);
}
.wd-notice > :first-child { margin-top: 0; }
.wd-notice > :last-child  { margin-bottom: 0; }
.wd-notice-title { font-weight: 700; margin: 0 0 0.35rem; }

.wd-notice-key     { border-left-color: var(--wd-primary); background: var(--wd-bg); }
.wd-notice-caution { border-left-color: var(--wd-warning); background: var(--wd-warning-soft); }
.wd-notice-official{ border-left-color: var(--wd-info);    background: var(--wd-info-soft); }
.wd-notice-success { border-left-color: var(--wd-success); background: var(--wd-success-soft); }
.wd-notice-danger  { border-left-color: var(--wd-danger);  background: var(--wd-danger-soft); }

/* ── 배지 ──────────────────────────────────────────────────────────────── */
/*
 * ⚠ 배지는 **글자를 반드시 담는다.** 점이나 색만으로 상태를 알리지 않는다.
 *   명세 §14 "색상 외 상태 표시". 색을 구분하지 못하는 사람에게 색만 남으면
 *   아무 정보도 아니다.
 */
.wd-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.15em 0.6em;
	border-radius: var(--wd-r-pill);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: var(--wd-bg);
	color: var(--wd-muted);
	border: 1px solid transparent;
}
.wd-badge-success { background: var(--wd-success-soft); color: var(--wd-success); }
.wd-badge-warning { background: var(--wd-warning-soft); color: var(--wd-warning); }
.wd-badge-danger  { background: var(--wd-danger-soft);  color: var(--wd-danger); }
.wd-badge-info    { background: var(--wd-info-soft);    color: var(--wd-info); }
/*
 * ⚠ '모름' 은 정상처럼 보이면 안 된다 (명세 §9).
 *   확인되지 않은 상태를 회색으로만 두면 "특별할 것 없음" 으로 읽힌다.
 *   점선 테두리로 **미확정임을 형태로도** 알린다.
 */
.wd-badge-unknown {
	background: transparent;
	color: var(--wd-muted);
	border: 1px dashed var(--wd-border);
}

/* ── 표 ────────────────────────────────────────────────────────────────── */
/*
 * ⚠ 표를 작게 줄이지 않는다 (명세 §13). 좁은 화면에서는 가로로 스크롤한다.
 *   `tabindex="0"` 이 있어야 키보드로도 스크롤할 수 있다.
 */
.wd-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.wd-table-scroll:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: 2px; }

.wd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wd-table th,
.wd-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--wd-border); text-align: left; }
.wd-table thead th { background: var(--wd-bg); font-weight: 700; white-space: nowrap; }
.wd-table tbody tr:last-child th,
.wd-table tbody tr:last-child td { border-bottom: 0; }

/* ── 폼 ────────────────────────────────────────────────────────────────── */
.wd-field { display: flex; flex-direction: column; gap: 0.35rem; }
.wd-field > label { font-weight: 600; font-size: 0.95rem; }
.wd-field .wd-hint { font-size: 0.85rem; color: var(--wd-muted); }
.wd-field input,
.wd-field select,
.wd-field textarea {
	min-height: var(--wd-touch);
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--wd-border-strong);
	border-radius: var(--wd-r-sm);
	background: var(--wd-surface);
	color: var(--wd-text);
	font: inherit;
}
.wd-field input:focus-visible,
.wd-field select:focus-visible,
.wd-field textarea:focus-visible {
	outline: 2px solid var(--wd-primary);
	outline-offset: 1px;
}
/* 오류는 색과 **글자** 둘 다로 알린다. */
.wd-field[data-invalid="true"] input,
.wd-field[data-invalid="true"] select { border-color: var(--wd-danger); }
.wd-field .wd-error { color: var(--wd-danger); font-size: 0.85rem; font-weight: 600; }

/* ── 결과 숫자 ─────────────────────────────────────────────────────────── */
.wd-figure {
	font-size: var(--wp--preset--font-size--figure, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	color: var(--wd-text);
}
.wd-figure-label { font-size: 0.9rem; color: var(--wd-muted); font-weight: 600; }

/* ── 체크리스트 ────────────────────────────────────────────────────────── */
.wd-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.wd-checklist li { padding-left: 1.6em; position: relative; }
.wd-checklist li::before {
	content: "";
	position: absolute;
	left: 0.25em;
	top: 0.55em;
	width: 0.5em;
	height: 0.5em;
	border-radius: 2px;
	background: var(--wd-primary);
}

/* ── 데이터 기준일 ─────────────────────────────────────────────────────── */
.wd-checked-at {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.85rem;
	color: var(--wd-muted);
}

/* ── 빈 상태 · 오류 상태 ───────────────────────────────────────────────── */
.wd-empty,
.wd-error-state {
	text-align: center;
	padding: var(--wd-s-60) var(--wd-s-40);
	border: 1px dashed var(--wd-border);
	border-radius: var(--wd-r-md);
	color: var(--wd-muted);
}
.wd-error-state { border-style: solid; border-color: var(--wd-danger); color: var(--wd-danger); }

/* ── 로딩(스켈레톤) ────────────────────────────────────────────────────── */
.wd-skeleton {
	background: linear-gradient(90deg, var(--wd-bg) 25%, var(--wd-border) 37%, var(--wd-bg) 63%);
	background-size: 400% 100%;
	border-radius: var(--wd-r-sm);
	animation: wd-shimmer 1.4s ease-in-out infinite;
	min-height: 1em;
}
@keyframes wd-shimmer {
	from { background-position: 100% 50%; }
	to   { background-position: 0 50%; }
}

/* ── 광고 자리 ─────────────────────────────────────────────────────────── */
/*
 * ⚠ 실제 광고 코드는 여기 없다 (명세 §12). 자리만 잡는다.
 *
 * ⚠ 조작 요소와 혼동되지 않아야 한다.
 *   그래서 배경을 눌러 두고, 위아래 여백을 넉넉히 주고, 라벨을 항상 붙인다.
 *   버튼처럼 보이는 테두리·그림자를 주지 않는다.
 */
.wd-ad-slot {
	margin-block: var(--wd-s-70);
	padding: var(--wd-s-40);
	background: var(--wd-bg);
	border-radius: var(--wd-r-sm);
	text-align: center;
	color: var(--wd-muted);
	font-size: 0.8125rem;
}
.wd-ad-slot::before {
	content: attr(data-label);
	display: block;
	margin-bottom: 0.35rem;
	letter-spacing: 0.04em;
}

/* ── 움직임을 줄여 달라고 한 사람에게는 줄인다 ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ══════════════════════════════════════════════════════════════════════
 * Stage 04 — 머리말 · 꼬리말 · 일반 글
 * ════════════════════════════════════════════════════════════════════ */

/* 눈에는 안 보이고 소리로는 읽히는 글자. */
.wd-sr-only {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ── 머리말 ───────────────────────────────────────────────────────────── */
/*
 * ⚠ 로고·메뉴·검색·CTA 가 **한 flex 줄의 형제**다.
 *   좁은 화면에서는 order 와 flex-basis:100% 로 메뉴와 검색만 아래 줄로
 *   내려보낸다. 서랍용 마크업을 따로 만들지 않으므로 같은 링크가 DOM 에
 *   두 번 생기지 않는다. 두 벌이면 소리로 읽는 사람에게 메뉴가 두 번
 *   읽히고, 숨긴 쪽에도 탭이 들어간다.
 */
.wd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wd-surface);
	border-bottom: 1px solid var(--wd-border);
}
.wd-header.is-stuck { box-shadow: var(--wd-sh-md); }
.wd-header-top { height: 1px; margin-bottom: -1px; }

/* 로그인한 사람에게는 워드프레스 관리 막대가 위에 있다. */
.admin-bar .wd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wd-header { top: 46px; } }

.wd-header-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--wd-s-30);
	min-height: 56px;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wd-s-40);
}

/*
 * ⚠ `flex: 1 1 0` 이다. `auto` 가 아니다.
 *   `auto` 로 두면 로고가 **자기 글자 너비만큼 자리를 차지하고 줄이지
 *   않는다.** 줄바꿈이 켜져 있으므로 flex 는 줄이는 대신 뒤엣것을 다음
 *   줄로 넘긴다. 그래서 390px 에서 머리말이 **120px** 이 됐다 —
 *   명세가 요구하는 56~60px 의 두 배다. 화면은 멀쩡해 보였다.
 *
 * ⚠ 좁을 때는 말줄임이 아니라 **두 줄**로 접는다.
 *   "PC·NAS·홈서버 계산기" 를 잘라 "PC·NAS·홈…" 으로 두면 이 사이트가
 *   무엇을 하는 곳인지가 사라진다. 두 줄이면 15px × 1.25 × 2 = 37px 라
 *   56px 막대 안에 들어간다.
 */
.wd-logo {
	order: 1;
	flex: 1 1 0;
	min-width: 0;                 /* 없으면 긴 사이트 이름이 가로 스크롤을 만든다 */
	overflow: hidden;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	/* 로고도 만지는 것이다 — 최소 터치 크기(§14). box-orient 가 세로라
	   box-pack 이 세로 가운데 정렬이 된다. 없으면 글자가 위에 붙는다. */
	min-height: var(--wd-touch);
	-webkit-box-pack: center;
	color: var(--wd-text);
	text-decoration: none;
}

.wd-nav { order: 5; }
.wd-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wd-s-20) var(--wd-s-40);
	list-style: none;
	margin: 0;
	padding: 0;
}
.wd-nav a {
	display: flex;
	align-items: center;
	min-height: var(--wd-touch);
	font-size: 0.95rem;
	color: var(--wd-text);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.wd-nav a:hover { color: var(--wd-primary); }
/* 지금 보고 있는 곳 — 색만으로 알리지 않는다. 굵기와 밑줄이 함께 붙는다. */
.wd-nav a[aria-current="page"] {
	color: var(--wd-primary);
	font-weight: 700;
	border-bottom-color: var(--wd-primary);
}

.wd-search { order: 4; display: flex; gap: var(--wd-s-20); }
.wd-search input {
	min-width: 0;
	min-height: var(--wd-touch);
	padding: 0 0.75rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--wd-text);
	background: var(--wd-surface);
	border: 1px solid var(--wd-border-strong);
	border-radius: var(--wd-r-sm);
}
.wd-search-go {
	min-height: var(--wd-touch);
	padding-inline: 0.9rem;
	font: inherit;
	font-size: 0.9rem;
	color: var(--wd-text);
	background: var(--wd-bg);
	border: 1px solid var(--wd-border-strong);
	border-radius: var(--wd-r-sm);
	cursor: pointer;
}
/*
 * ⚠ 세로 여백을 눌러 둔다.
 *   `.wd-btn` 기본값 그대로면 단추 하나가 **64px** 이라 머리말이 그보다
 *   낮아질 수 없다. 손가락이 닿을 44px 은 `min-height` 로 지킨다.
 */
.wd-header-cta {
	order: 2;
	flex: 0 0 auto;
	white-space: nowrap;
	padding-block: 0;
	min-height: var(--wd-touch);
}

.wd-icon-btn {
	display: none;                /* 넓은 화면에는 없다 */
	order: 3;
	align-items: center;
	gap: 0.3rem;
	min-width: var(--wd-touch);
	min-height: var(--wd-touch);
	padding-inline: 0.5rem;
	font: inherit;
	font-size: 0.8125rem;
	color: var(--wd-text);
	background: none;
	border: 1px solid transparent;
	border-radius: var(--wd-r-sm);
	cursor: pointer;
}
.wd-icon-btn:hover { border-color: var(--wd-border-strong); }
.wd-icon { width: 20px; height: 20px; flex: 0 0 auto; }

.wd-header a:focus-visible,
.wd-header button:focus-visible,
.wd-header input:focus-visible {
	outline: 2px solid var(--wd-primary);
	outline-offset: 2px;
}

/*
 * 좁은 화면.
 *
 * ⚠ 접는 것은 data-js="on" 이 붙은 뒤부터다. 스크립트가 실패하면 메뉴와
 *   검색이 펼쳐진 채로 남는다 — 없어지는 것보다 낫다.
 *
 * ⚠ 경계가 1100 인 이유 (900 이 아니라): 900~1100 에서는 로고+메뉴+검색+CTA
 *   합이 폭을 넘어 CTA 가 둘째 줄로 밀렸다 — 머리말이 112px (명세 §5 는
 *   68~72px). 2026-08-06 운영 1042px 에서 실측. 카드 격자의 데스크톱 경계도
 *   1100 이라 화면 전체가 같은 지점에서 접힌다.
 */
@media (max-width: 1099px) {
	.wd-icon-btn { display: inline-flex; }
	.wd-nav,
	.wd-search { flex-basis: 100%; }
	.wd-nav ul { flex-direction: column; gap: 0; }
	.wd-nav a { padding-block: 0.2rem; border-bottom: 1px solid var(--wd-border); }
	.wd-nav a[aria-current="page"] { border-bottom-color: var(--wd-primary); }
	.wd-search { padding-bottom: var(--wd-s-30); }
	.wd-search input { flex: 1 1 auto; }

	.wd-header[data-js="on"] .wd-nav,
	.wd-header[data-js="on"] .wd-search { display: none; }
	.wd-header[data-js="on"][data-open="menu"] .wd-nav { display: block; }
	.wd-header[data-js="on"][data-open="search"] .wd-search { display: flex; }
}
/*
 * ⚠ 480px 이하에서 단추의 글자를 뺀다.
 *   "검색"·"메뉴" 글자가 붙으면 단추가 67px 이 된다. 둘이면 134px 이고,
 *   390px 화면에서 로고에 남는 자리가 73px 뿐이라 사이트 이름이 네 글자로
 *   잘린다. 도형만 남기면 44px 이 되어 로고가 119px 을 갖는다.
 *   `aria-label` 대신 `.wd-sr-only` 로 남기지 않고 여기서 숨기는 이유는
 *   단추 안에 이미 글자가 있어서다 — 소리로는 그대로 읽힌다.
 */
@media (max-width: 480px) {
	.wd-icon-label {
		position: absolute;
		width: 1px; height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.wd-header-inner { gap: var(--wd-s-20); }
}
@media (min-width: 1100px) {
	.wd-header-inner { min-height: 70px; gap: var(--wd-s-50); }
	.wd-logo {
		flex: 0 0 auto;
		font-size: 1.125rem;
		/* 넓을 때는 한 줄. display:block + nowrap 대신 clamp 1 을 쓰는
		   이유: -webkit-box 를 유지해야 위의 min-height 가운데 정렬이
		   그대로 통한다. clamp 1 도 말줄임(…)을 그린다. */
		-webkit-line-clamp: 1;
	}
	.wd-nav { order: 2; flex: 1 1 auto; }
	.wd-search { order: 3; }
	.wd-search input { width: 12rem; }
	.wd-header-cta { order: 4; }
}

/* ── 일반 글 ──────────────────────────────────────────────────────────── */
/*
 * ⚠ 본문 폭을 820px 로 묶는다 (명세 §3·§7).
 *   1200px 화면에서 한 줄이 끝까지 가면 다음 줄 첫 글자를 찾느라 눈이
 *   되돌아온다. 한글은 띄어쓰기가 드물어 더 그렇다.
 */
.wd-article {
	display: grid;
	gap: var(--wd-s-50);
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: var(--wd-s-40);
}
.wd-article-main { min-width: 0; max-width: 820px; }

/*
 * 곁줄은 넓은 화면에만 있다.
 * 좁은 화면에서는 본문 앞에 차례만 남는다 (명세 §7).
 */
.wd-aside { min-width: 0; }
@media (min-width: 1024px) {
	.wd-article { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
	.wd-aside { position: sticky; top: 92px; font-size: 0.9rem; }
}

.wd-meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wd-s-20) var(--wd-s-40);
	align-items: center;
	margin-block: var(--wd-s-30);
	font-size: 0.875rem;
	color: var(--wd-muted);
}
.wd-terms { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 var(--wd-s-20); }
.wd-term {
	padding: 0.15rem 0.6rem;
	font-size: 0.8125rem;
	color: var(--wd-secondary);
	background: var(--wd-bg);
	border: 1px solid var(--wd-border);
	border-radius: var(--wd-r-pill);
	text-decoration: none;
}
.wd-term:hover { border-color: var(--wd-secondary); }
.wd-lede { font-size: 1.125rem; line-height: 1.7; color: var(--wd-muted); margin-block: var(--wd-s-30); }

/* 차례 */
.wd-toc {
	padding: var(--wd-s-40);
	background: var(--wd-surface);
	border: 1px solid var(--wd-border);
	border-radius: var(--wd-r-md);
}
.wd-toc-title { margin: 0 0 var(--wd-s-30); font-size: 0.9375rem; font-weight: 700; }
.wd-toc ol { margin: 0; padding: 0; list-style: none; }
.wd-toc li { margin-block: 0.15rem; }
.wd-toc-l3 { padding-left: var(--wd-s-40); }
.wd-toc a { display: block; padding-block: 0.3rem; color: var(--wd-text); text-decoration: none; font-size: 0.875rem; }
.wd-toc a:hover { color: var(--wd-primary); text-decoration: underline; }

/*
 * ⚠ 머리말이 붙어 있으므로 자리표로 뛰면 제목이 그 아래로 숨는다.
 *   눌러 보기 전에는 모른다 — 페이지는 정상으로 보이고 제목만 가려져 있다.
 */
.wd-prose :is(h2, h3) { scroll-margin-top: 88px; }
.wd-prose > :first-child { margin-top: 0; }

/* 출처 */
.wd-sources ul { margin: 0; padding-left: 1.2em; }
.wd-sources li { margin-block: 0.3rem; }
.wd-source-meta { color: var(--wd-muted); font-size: 0.85rem; }

/* 관련 글 · 수정 요청 */
.wd-related { margin-top: var(--wd-s-60); }
.wd-related h2 { font-size: 1.125rem; margin-bottom: var(--wd-s-30); }
.wd-related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.wd-related a {
	display: block;
	padding-block: 0.65rem;
	border-top: 1px solid var(--wd-border);
	color: var(--wd-text);
	text-decoration: none;
}
.wd-related a:hover { color: var(--wd-primary); text-decoration: underline; }
.wd-correction { margin-top: var(--wd-s-50); font-size: 0.875rem; }
.wd-correction a { color: var(--wd-muted); }

/* ── 꼬리말 ───────────────────────────────────────────────────────────── */
.wd-footer {
	margin-top: var(--wd-s-70);
	padding-block: var(--wd-s-60);
	background: var(--wd-surface);
	border-top: 1px solid var(--wd-border);
	font-size: 0.875rem;
}
.wd-footer h2 { font-size: 0.875rem; font-weight: 700; margin: 0 0 var(--wd-s-30); }
.wd-footer ul { list-style: none; margin: 0; padding: 0; }
.wd-footer li { margin-block: 0.35rem; }
.wd-footer a { color: var(--wd-text); }
.wd-footer-note { color: var(--wd-muted); }
.wd-footer-legal {
	margin-top: var(--wd-s-50);
	padding-top: var(--wd-s-40);
	border-top: 1px solid var(--wd-border);
	color: var(--wd-muted);
	font-size: 0.8125rem;
}

/* ══════════════════════════════════════════════════════════════════════
 * Stage 05 — 도구 카드 격자 · 첫 화면 구획
 * ════════════════════════════════════════════════════════════════════ */

/*
 * ⚠ 열 수를 화면 크기가 아니라 **카드가 견딜 수 있는 최소 너비**로 정한다.
 *   명세는 모바일 1열 · 태블릿 2열 · 데스크톱 3~4열을 요구한다. 중단점으로
 *   못박으면 곁줄이 있는 자리에 같은 격자를 넣었을 때 카드가 짜부라진다.
 *   `auto-fit` + `minmax` 는 자리가 좁아지면 스스로 줄인다.
 *
 *   240px 은 "NAS 디스크 교체 확장 계산기" 가 두 줄로 들어가는 폭이다.
 */
.wd-grid-cards {
	display: grid;
	gap: var(--wd-s-40);
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
/* 데스크톱에서 넷을 넘기지 않는다. 다섯 열이 되면 카드가 명함처럼 작아진다. */
@media (min-width: 1100px) {
	.wd-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wd-grid-cards.is-narrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 첫 화면의 구획. 구획마다 숨 쉴 자리를 준다. */
.wd-section {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wd-s-40);
	padding-block: var(--wd-s-70);
}
.wd-section + .wd-section { padding-top: 0; }
.wd-section-head { margin-bottom: var(--wd-s-50); }
.wd-section-head h2 { margin: 0 0 0.4rem; font-size: 1.375rem; }
.wd-section-head p { margin: 0; color: var(--wd-muted); font-size: 0.95rem; }

/*
 * 첫 화면 머리.
 *
 * ⚠ 배경을 깔되 큰 그림을 쓰지 않는다. 이 사이트에는 살 이미지가 없고
 *   (명세 §1-16: 유료 이미지를 사지 않는다), 도구 사이트에서 히어로 이미지는
 *   첫 화면에서 도구를 아래로 밀어낼 뿐이다.
 */
.wd-hero {
	background: var(--wd-surface);
	border-bottom: 1px solid var(--wd-border);
}
.wd-hero-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: var(--wd-s-70) var(--wd-s-40);
}
.wd-hero h1 {
	margin: 0 0 var(--wd-s-30);
	font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
	line-height: 1.3;
	max-width: 20ch;
}
.wd-hero-sub {
	margin: 0 0 var(--wd-s-50);
	max-width: 60ch;
	font-size: 1.0625rem;
	color: var(--wd-muted);
}
.wd-hero-actions { display: flex; flex-wrap: wrap; gap: var(--wd-s-30); }

/* 신뢰 요소 — 표시만 하고 숫자를 적지 않는다 (스스로 낡는 값을 두지 않는다). */
.wd-trust {
	display: grid;
	gap: var(--wd-s-40);
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.wd-trust li {
	list-style: none;
	padding: var(--wd-s-40);
	background: var(--wd-surface);
	border: 1px solid var(--wd-border);
	border-radius: var(--wd-r-md);
}
.wd-trust strong { display: block; margin-bottom: 0.35rem; }
.wd-trust p { margin: 0; color: var(--wd-muted); font-size: 0.9375rem; }

/*
 * ⚠ `hidden` 속성이 클래스에 진다.
 *
 *   브라우저 기본 규칙은 `[hidden] { display: none }` 인데, 이것은
 *   **요소 선택자 수준**의 특이도다. `.wd-card-tool { display: flex }`
 *   같은 클래스 규칙이 그것을 이긴다. 그래서 JS 가 `el.hidden = true` 를
 *   걸어도 카드가 그대로 보인다.
 *
 *   Stage 05 에서 실제로 그랬다. 검색이 "2개 보임" 이라고 정확히 세면서도
 *   화면에는 열세 개가 그대로 있었다. 개수 문구가 맞았기 때문에 더 늦게
 *   발견했다 — 숫자를 믿고 화면을 안 본 것이다.
 *
 *   `!important` 를 쓰는 몇 안 되는 자리다. `hidden` 은 "이건 없는
 *   것으로 쳐라" 는 뜻이고, 그 뜻이 배치 규칙에 져서는 안 된다.
 */
[hidden] { display: none !important; }

/* ── 상태 대시보드 (사이트 2 · Stage 07) ─────────────────────────────── */
.wd-figure-label { display: block; font-size: 0.8125rem; color: var(--wd-muted); }

/*
 * 쪽 넘김 — 손가락 자리.
 *
 * ⚠ 코어 `wp:query-pagination` 의 숫자는 그냥 글자다. 재 보니 24px 였고
 *   "다음" 이 28px 였다. 좁은 화면에서 2 와 3 사이를 정확히 누르기 어렵다.
 *   Stage 04 에서 목록 템플릿 세 벌에 이 블록을 넣었으므로 **세 사이트가
 *   모두** 이 상태였다.
 *
 *   숫자에 여백을 주면 서로 붙어 버리므로 최소 너비도 함께 준다.
 */
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--wd-touch);
	min-height: var(--wd-touch);
	padding-inline: 0.5rem;
	border-radius: var(--wd-r-sm);
	text-decoration: none;
}
.wp-block-query-pagination a:hover { background: var(--wd-bg); }
.wp-block-query-pagination .page-numbers.current {
	font-weight: 700;
	background: var(--wd-bg);
	border: 1px solid var(--wd-border-strong);
}

/* ── 사실 목록 · 행동 줄 (Stage 13) ───────────────────────────────────── */
/*
 * ⚠ 왜 공용인가
 *   Stage 10 이 사이트 3 의 자격증 페이지에 `vm-sw__facts` 를 썼는데, 그
 *   클래스는 **vm.css(사이트 2 전용)** 에 있다. 사이트 3 에서는 dl 이 브라우저
 *   기본 모양(들여쓴 dd)으로 나갔고, 내용을 재는 검사는 통과했다 — 모양이
 *   안 입혀진 것은 재지 않았으니까. 두 사이트가 쓰는 조각은 공용에 둔다.
 */
.wd-facts { margin: 0; display: grid; gap: 0.35rem var(--wd-s-40); grid-template-columns: auto 1fr; }
.wd-facts dt { color: var(--wd-muted); font-size: 0.875rem; }
.wd-facts dd { margin: 0; font-size: 0.9375rem; }
.wd-actions { display: flex; flex-wrap: wrap; gap: var(--wd-s-30); }
