/*
Theme Name: Heapstack
Theme URI: https://modubook.com/
Author: Modubook
Description: 전문직 홈페이지를 위한 가볍고 모바일 우선인 부모 테마. 디자인과 레이아웃만 담당하며, 계산기·리드폼·설교 아카이브 같은 기능은 별도 플러그인이 제공합니다. 업종별 스킨(heapstack-tax / heapstack-law / heapstack-church)은 이 테마의 CSS 변수만 재정의합니다.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heapstack
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. 토큰 — 플러그인과의 CSS 변수 계약 (지시서 0.3)

   테마가 정의하고, modubook-tools 를 비롯한 기능 플러그인이 참조만 한다.
   업종 스킨(자식 테마)은 아래 :root 값만 덮어쓰면 도구 UI 색까지 함께 따라온다.
   타이포그래피는 계약에 넣지 않는다 — 플러그인은 폰트를 상속만 한다.
   ========================================================================== */

:root {
	/* ── 계약 변수 (플러그인이 읽는다. 이름을 바꾸면 안 된다) ── */
	--mbt-primary: #2563eb;
	--mbt-primary-text: #ffffff;
	--mbt-text: #1f2937;
	--mbt-text-muted: #6b7280;
	--mbt-bg: #ffffff;
	--mbt-bg-card: #f9fafb;
	--mbt-border: #e5e7eb;
	--mbt-error: #dc2626;
	--mbt-radius: 8px;
	--mbt-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

	/* ── 계약 확장 (선택). 정의하지 않으면 플러그인 기본값이 쓰인다 ── */
	--mbt-warning: #92400e;
	--mbt-warning-bg: #fffbeb;
	--mbt-success: #166534;
	--mbt-success-bg: #f0fdf4;

	/* ── 테마 내부용 별칭 ──
	   테마 자신의 스타일은 아래 이름을 쓴다. 전부 계약 변수를 가리키므로
	   스킨에서 계약 변수 하나만 바꾸면 테마와 플러그인이 동시에 따라온다. */
	--mb-color-accent: var(--mbt-primary);
	--mb-color-accent-ink: var(--mbt-primary-text);
	--mb-color-ink: var(--mbt-text);
	--mb-color-muted: var(--mbt-text-muted);
	--mb-color-line: var(--mbt-border);
	--mb-color-bg: var(--mbt-bg);
	--mb-color-surface: var(--mbt-bg);
	--mb-color-subtle: var(--mbt-bg-card);
	--mb-color-error: var(--mbt-error);
	--mb-radius: var(--mbt-radius);
	--mb-shadow: var(--mbt-shadow);

	/* 테마 전용 — 플러그인은 쓰지 않는다 */
	--mb-color-accent-soft: #eff5ff;
	--mb-radius-sm: 6px;
	--mb-wrap: 720px;
	--mb-wrap-wide: 1120px;
	--mb-gutter: 20px;
	--mb-header-h: 60px;
	--mb-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
		"Apple SD Gothic Neo", "Malgun Gothic", "\B9D1\C740 \ACE0\B515", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--mbt-primary: #7ba4ff;
		--mbt-primary-text: #0d1220;
		--mbt-text: #e9ebf0;
		--mbt-text-muted: #9aa2b1;
		--mbt-bg: #101319;
		--mbt-bg-card: #1a1e26;
		--mbt-border: #2b303b;
		--mbt-error: #f87171;
		--mbt-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

		--mbt-warning: #fbbf24;
		--mbt-warning-bg: #2e2410;
		--mbt-success: #6ee7a5;
		--mbt-success-bg: #14291d;

		--mb-color-accent-soft: #172136;
	}
}

/* ==========================================================================
   14. Page compositions — home and inner pages
   ========================================================================== */

.header-search {
	align-items: center;
	border: 1px solid var(--mb-color-line);
	border-radius: 50%;
	color: var(--mb-color-ink);
	display: inline-flex;
	flex: 0 0 40px;
	height: 40px;
	justify-content: center;
	text-decoration: none;
	transition: background .18s, border-color .18s, transform .18s;
}

.header-search:hover {
	background: var(--mb-color-accent-soft);
	border-color: color-mix(in srgb, var(--mb-color-accent) 32%, var(--mb-color-line));
	transform: translateY(-1px);
}

.header-search span {
	border: 2px solid currentColor;
	border-radius: 50%;
	height: 14px;
	position: relative;
	width: 14px;
}

.header-search span::after {
	background: currentColor;
	content: "";
	height: 2px;
	position: absolute;
	right: -5px;
	top: 10px;
	transform: rotate(45deg);
	width: 6px;
}

.home-discovery {
	align-items: center;
	background: var(--mb-color-footer);
	border-radius: 18px;
	box-shadow: 0 18px 42px rgba(18, 27, 51, .14);
	color: #fff;
	display: grid;
	gap: 1.25rem;
	margin: -3.25rem clamp(.75rem, 3vw, 2.5rem) clamp(4rem, 8vw, 7rem);
	padding: 1.15rem 1.25rem;
	position: relative;
	z-index: 3;
}

.home-discovery__copy {
	align-items: center;
	display: flex;
	gap: .85rem;
}

.home-discovery__icon {
	align-items: center;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 12px;
	display: inline-flex;
	font-size: 1.5rem;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.home-discovery__copy strong,
.home-discovery__copy span {
	display: block;
}

.home-discovery__copy strong {
	font-size: .94rem;
}

.home-discovery__copy div > span {
	color: var(--mb-color-footer-muted);
	font-size: .76rem;
	margin-top: .1rem;
}

.home-discovery .search-form {
	margin: 0;
	max-width: none;
}

.home-discovery .search-form__input {
	background: rgba(255,255,255,.97);
	border-color: transparent;
	color: #172033;
}

.home-discovery .search-form__submit {
	background: #fff;
	box-shadow: none;
	color: #172033;
}

.home-tools,
.home-guides {
	margin-bottom: clamp(4.5rem, 9vw, 8rem);
}

.home-section-head {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 3rem;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.home-section-head__eyebrow,
.archive-header__eyebrow,
.entry__eyebrow {
	color: var(--mb-color-accent);
	font-size: .7rem;
	font-weight: 900;
	letter-spacing: .16em;
	margin: 0 0 .55rem;
}

.home-section-head h2 {
	font-size: clamp(1.7rem, 3.5vw, 2.5rem);
	font-weight: 900;
	margin: 0;
}

.home-section-head > p {
	color: var(--mb-color-muted);
	font-size: .88rem;
	line-height: 1.7;
	margin: 0;
}

.home-section-head__link {
	color: var(--mb-color-ink);
	font-size: .86rem;
	font-weight: 800;
	text-decoration: none;
}

.home-section-head__link span {
	color: var(--mb-color-accent);
	margin-left: .3rem;
}

.home-tools .mbt-toolgrid {
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 0;
}

.home-tools .mbt-toolgrid__item a {
	background: var(--mb-color-surface-raised);
	border-radius: 18px;
	box-shadow: 0 3px 10px rgba(30,48,91,.035);
	min-height: 190px;
	padding: 1.4rem;
	position: relative;
	transition: box-shadow .2s, border-color .2s, transform .2s;
}

.home-tools .mbt-toolgrid__item a::after {
	align-items: center;
	background: var(--mb-color-accent-soft);
	border-radius: 50%;
	bottom: 1.25rem;
	color: var(--mb-color-accent);
	content: "\2192";
	display: flex;
	font-size: .9rem;
	height: 32px;
	justify-content: center;
	position: absolute;
	right: 1.25rem;
	width: 32px;
}

.home-tools .mbt-toolgrid__item a:hover {
	box-shadow: var(--mb-shadow);
	transform: translateY(-5px);
}

.home-tools .mbt-toolgrid__icon {
	align-items: center;
	background: var(--mb-color-accent-soft);
	border-radius: 13px;
	display: flex;
	font-size: 1.6rem;
	height: 50px;
	justify-content: center;
	margin-bottom: 1.15rem;
	width: 50px;
}

.home-tools .mbt-toolgrid__title {
	font-size: 1.04rem;
	font-weight: 850;
	margin-bottom: .45rem;
	padding-right: 2rem;
}

.home-tools .mbt-toolgrid__desc {
	font-size: .82rem;
	line-height: 1.65;
	padding-bottom: 2.25rem;
}

.home-guides {
	background: var(--mb-color-subtle);
	border-radius: 26px;
	margin-left: calc(var(--mb-gutter) * -1);
	margin-right: calc(var(--mb-gutter) * -1);
	padding: clamp(2rem, 5vw, 3.5rem) var(--mb-gutter);
}

.home-partner .mbt-partner {
	background: linear-gradient(135deg, var(--mb-color-accent), #203d9b);
	border: 0;
	border-radius: 22px;
	box-shadow: 0 22px 55px rgba(49,87,213,.22);
	color: #fff;
	margin: 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.home-partner .mbt-partner__desc {
	color: rgba(255,255,255,.75);
}

.home-partner .mbt-btn {
	background: #fff;
	color: #203d9b;
}

.archive-header {
	background: linear-gradient(120deg, var(--mb-color-subtle), transparent 70%);
	border: 0;
	border-radius: 24px;
	margin-top: 1.5rem;
	overflow: hidden;
	padding: clamp(2rem, 6vw, 4.2rem);
	position: relative;
}

.archive-header > *:not(.archive-header__ornament) {
	max-width: 680px;
	position: relative;
	z-index: 1;
}

.archive-header .search-form {
	margin-top: 1.5rem;
}

.archive-header__ornament {
	height: 190px;
	position: absolute;
	right: -30px;
	top: -25px;
	transform: rotate(-10deg);
	width: 210px;
}

.archive-header__ornament span {
	border: 1px solid color-mix(in srgb, var(--mb-color-accent) 20%, transparent);
	border-radius: 22px;
	height: 110px;
	position: absolute;
	width: 110px;
}

.archive-header__ornament span:nth-child(1) { background: var(--mb-color-accent-soft); left: 0; top: 0; }
.archive-header__ornament span:nth-child(2) { left: 52px; top: 38px; }
.archive-header__ornament span:nth-child(3) { background: color-mix(in srgb, var(--mb-color-accent) 9%, transparent); left: 100px; top: 76px; }

.entry--post .entry__header,
.entry--page .entry__header {
	background: linear-gradient(145deg, var(--mb-color-subtle), transparent);
	border: 0;
	border-radius: 22px;
	margin-bottom: clamp(2rem, 6vw, 4rem);
	padding: clamp(2rem, 6vw, 4rem);
	position: relative;
}

.entry--post .entry__header::after,
.entry--page .entry__header::after {
	background: var(--mb-color-accent);
	border-radius: 999px;
	bottom: 0;
	content: "";
	height: 5px;
	left: clamp(2rem, 6vw, 4rem);
	position: absolute;
	width: 64px;
}

.entry__lead {
	color: var(--mb-color-muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.7;
	margin: 1rem 0 0;
	max-width: 42rem;
}

.entry--tool .entry__header {
	background: linear-gradient(135deg, var(--mb-color-accent-soft), transparent);
	border: 0;
	border-radius: 20px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.entry--tool .mbt-tool {
	border-radius: 20px;
	box-shadow: 0 20px 55px rgba(29, 45, 87, .08);
}

.post-nav__item {
	border-radius: 15px;
	padding: 1.2rem;
	transition: border-color .2s, transform .2s;
}

.post-nav__item:hover {
	transform: translateY(-3px);
}

.error-404 {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 7vw, 5rem);
	padding: clamp(4rem, 10vw, 8rem) 0;
	text-align: left;
}

.error-404__visual {
	align-items: center;
	background: linear-gradient(145deg, var(--mb-color-accent-soft), var(--mb-color-subtle));
	border: 1px solid var(--mb-color-line);
	border-radius: 28px;
	display: flex;
	justify-content: center;
	min-height: 260px;
	position: relative;
}

.error-404__visual span {
	color: var(--mb-color-accent);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 950;
	letter-spacing: -.1em;
}

.error-404__visual i {
	align-items: center;
	background: var(--mb-color-accent);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 1.5rem;
	font-style: normal;
	height: 48px;
	justify-content: center;
	margin: 0 1rem;
	width: 48px;
}

.error-404__code {
	font-size: .72rem;
	letter-spacing: .16em;
}

.error-404__title {
	font-size: clamp(2rem, 5vw, 3.1rem);
	font-weight: 900;
}

.error-404__body .search-form {
	margin: 1.5rem 0;
}

.error-404__tools {
	grid-column: 1 / -1;
}

@media (min-width: 720px) {
	.home-discovery {
		grid-template-columns: minmax(280px, .85fr) minmax(340px, 1.15fr);
		padding: 1.25rem 1.4rem;
	}

	.home-tools .mbt-toolgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.error-404 {
		grid-template-columns: minmax(280px, .8fr) minmax(340px, 1.2fr);
	}
}

@media (min-width: 1100px) {
	.home-tools .mbt-toolgrid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.home-head {
		border-radius: 20px;
	}

	.home-discovery {
		margin-left: .6rem;
		margin-right: .6rem;
	}

	.home-tools .mbt-toolgrid {
		grid-template-columns: 1fr;
	}

	.home-tools .mbt-toolgrid__item a {
		min-height: 160px;
	}

	.archive-header__ornament {
		opacity: .45;
		right: -110px;
	}

	.header-search {
		flex-basis: 38px;
		height: 38px;
	}

	.nav-toggle {
		order: 3;
	}
}

/* Final composition layer: keep page-specific layouts above the shared system. */
.archive-header {
	background: linear-gradient(120deg, var(--mb-color-subtle), transparent 70%);
	border: 0;
	border-radius: 24px;
	margin: 1.5rem 0 2rem;
	overflow: hidden;
	padding: clamp(2rem, 6vw, 4.2rem);
	position: relative;
}

.entry--post .entry__header,
.entry--page .entry__header {
	background: linear-gradient(145deg, var(--mb-color-subtle), transparent);
	border: 0;
	border-radius: 22px;
	margin-bottom: clamp(2rem, 6vw, 4rem);
	padding: clamp(2rem, 6vw, 4rem);
	position: relative;
}

.entry--post .entry-meta {
	margin-top: 1rem;
}

.error-404 {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 7vw, 5rem);
	padding: clamp(4rem, 10vw, 8rem) 0;
	text-align: left;
}

.error-404__code {
	font-size: .72rem;
	letter-spacing: .16em;
}

.error-404__title {
	font-size: clamp(2rem, 5vw, 3.1rem);
	font-weight: 900;
}

.error-404__body .search-form {
	margin: 1.5rem 0;
}

@media (min-width: 720px) {
	.error-404 {
		grid-template-columns: minmax(280px, .8fr) minmax(340px, 1.2fr);
	}
}

/* ==========================================================================
   15. Unified layout system

	All templates share the same 1180px outer frame. Long-form copy is narrowed
	inside that frame instead of shrinking the entire page container.
   ========================================================================== */

:root {
	--mb-wrap: 1180px;
	--mb-wrap-wide: 1180px;
	--mb-content: 860px;
	--mb-page-top: clamp(1.25rem, 3vw, 2rem);
	--mb-page-bottom: clamp(4rem, 8vw, 7rem);
}

@media (min-width: 1200px) {
	:root {
		--mb-wrap: 1240px;
		--mb-wrap-wide: 1240px;
		--mb-content: 900px;
	}
}

@media (min-width: 1600px) {
	:root {
		--mb-wrap: 1320px;
		--mb-wrap-wide: 1320px;
		--mb-content: 940px;
	}
}

.site-main {
	padding-bottom: var(--mb-page-bottom);
}

.page-layout,
.site-main > .wrap--wide {
	width: 100%;
}

.breadcrumbs {
	padding-top: var(--mb-page-top);
}

/* Home intro: one clear horizontal band, without overlap or ornamental grid. */
.home-head {
	align-items: center;
	background: var(--mb-color-subtle);
	border: 0;
	border-radius: 18px;
	box-shadow: none;
	display: grid;
	gap: 1.5rem 3rem;
	grid-template-columns: minmax(0, 1fr);
	margin: var(--mb-page-top) 0 1rem;
	min-height: 300px;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4.25rem);
}

.home-head::after {
	display: none;
}

.home-head__title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	margin-bottom: .8rem;
}

.home-head__desc {
	max-width: 44rem;
}

.home-head__note {
	align-items: center;
	color: var(--mb-color-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: .78rem;
	font-weight: 650;
	gap: .45rem .7rem;
	margin: 0;
}

.home-head__note > span {
	color: var(--mb-color-accent);
	font-weight: 900;
}

.home-head__note i {
	background: var(--mb-color-line);
	height: 12px;
	width: 1px;
}

.home-head__trust {
	display: none;
}

.home-discovery {
	border-radius: 14px;
	box-shadow: none;
	margin: 0 0 clamp(4rem, 8vw, 6.5rem);
	padding: 1.1rem 1.25rem;
}

/* Every section uses the same vertical rhythm and outside edges. */
.home-tools,
.home-guides {
	margin-bottom: clamp(4rem, 8vw, 6.5rem);
}

.home-guides {
	border: 1px solid var(--mb-color-line);
	border-radius: 18px;
	margin-left: 0;
	margin-right: 0;
	padding: clamp(1.5rem, 4vw, 3rem);
}

/* Archive/search headers follow the same dimensions as the home intro. */
.archive-header {
	background: var(--mb-color-subtle);
	border: 0;
	border-radius: 18px;
	margin: 1rem 0 clamp(2rem, 5vw, 3.5rem);
	min-height: 250px;
	padding: clamp(2rem, 5vw, 4.25rem);
}

.archive-header__ornament {
	display: none;
}

.archive-title {
	font-size: clamp(2.25rem, 5vw, 4rem);
}

/* Inner pages occupy the same outer frame; only reading copy is constrained. */
.page-layout .entry {
	padding-top: 1rem;
}

.entry--post .entry__header,
.entry--page .entry__header,
.entry--tool .entry__header {
	background: var(--mb-color-subtle);
	border: 0;
	border-radius: 18px;
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	min-height: 250px;
	padding: clamp(2rem, 5vw, 4.25rem);
}

.entry--post .entry__header::after,
.entry--page .entry__header::after {
	display: none;
}

.entry__title {
	font-size: clamp(2.25rem, 5vw, 4rem);
	max-width: 62rem;
}

.entry__lead {
	max-width: 48rem;
}

.entry--post > .entry__thumb,
.entry--post > .entry__content,
.entry--post > .entry__footer,
.entry--page > .entry__content,
.page-layout--post > .post-nav {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--mb-content);
}

.page-layout--tool .entry__content {
	margin-left: auto;
	margin-right: auto;
	max-width: 1040px;
}

.entry--post > .entry__thumb {
	width: 100%;
}

.error-404 {
	background: var(--mb-color-subtle);
	border-radius: 18px;
	margin-top: var(--mb-page-top);
	padding: clamp(2rem, 6vw, 5rem);
}

.error-404__visual {
	background: var(--mb-color-bg);
	box-shadow: none;
}

@media (min-width: 900px) {
	.home-head {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.home-head__note {
		align-self: end;
		justify-content: flex-end;
		max-width: 320px;
		text-align: right;
	}
}

@media (max-width: 719px) {
	.home-head,
	.archive-header,
	.entry--post .entry__header,
	.entry--page .entry__header,
	.entry--tool .entry__header,
	.error-404 {
		border-radius: 14px;
		min-height: 0;
	}

	.home-head__note i {
		display: none;
	}
}

/* ==========================================================================
   2. 리셋 · 기본
   ========================================================================== */

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

/*
 * 화면이 넓어지면 글자와 콘텐츠 폭을 함께 키운다.
 * 루트 폰트 크기를 올리면 rem·em 으로 짜인 테마와 플러그인 UI 가 통째로 따라온다
 * (플러그인은 자기 폰트를 정의하지 않고 상속만 하므로 계약이 그대로 유지된다).
 */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mb-header-h) + 16px);
	font-size: 100%; /* 16px */
}

@media (min-width: 1200px) {
	html { font-size: 106.25%; } /* 17px */
	:root {
		--mb-wrap: 800px;
		--mb-wrap-wide: 1200px;
	}
}

@media (min-width: 1600px) {
	html { font-size: 112.5%; } /* 18px */
	:root {
		--mb-wrap: 860px;
		--mb-wrap-wide: 1320px;
	}
}

body {
	background: var(--mb-color-bg);
	color: var(--mb-color-ink);
	font-family: var(--mb-font);
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--mb-color-accent);
	text-underline-offset: 2px;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	line-height: 1.35;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}

p, ul, ol {
	margin: 0 0 1.15em;
}

hr {
	border: 0;
	border-top: 1px solid var(--mb-color-line);
	margin: 2.5rem 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

:focus-visible {
	outline: 3px solid var(--mb-color-accent);
	outline-offset: 2px;
}

.screen-reader-text,
.skip-link:not(:focus) {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link:focus {
	background: var(--mb-color-accent);
	color: var(--mb-color-accent-ink);
	left: 12px;
	padding: 10px 16px;
	position: fixed;
	top: 12px;
	z-index: 100000;
	border-radius: var(--mb-radius-sm);
}

/* ==========================================================================
   3. 레이아웃
   ========================================================================== */

.wrap {
	margin: 0 auto;
	max-width: var(--mb-wrap);
	padding: 0 var(--mb-gutter);
	width: 100%;
}

.wrap--wide {
	max-width: var(--mb-wrap-wide);
}

.site-main {
	display: block;
	min-height: 60vh;
	padding-bottom: 4rem;
}

.section {
	padding: 3rem 0;
}

.section--alt {
	background: var(--mb-color-subtle);
}

.section__head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 1.5rem;
}

.section__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0;
}

.section__desc {
	color: var(--mb-color-muted);
	flex: 1 1 100%;
	font-size: 0.9375rem;
	margin: 0;
}

.section__more {
	font-size: 0.875rem;
	font-weight: 600;
	margin-left: auto;
	text-decoration: none;
}

/* ==========================================================================
   4. 헤더 · 내비게이션
   ========================================================================== */

.site-header {
	background: color-mix(in srgb, var(--mb-color-bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--mb-color-line);
	position: sticky;
	top: 0;
	z-index: 900;
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 16px;
	min-height: var(--mb-header-h);
}

.site-branding {
	flex: 1 1 auto;
	min-width: 0;
}

.site-title {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0;
}

.site-title a {
	color: var(--mb-color-ink);
	text-decoration: none;
}

.custom-logo {
	display: block;
	height: auto;
	max-height: 36px;
	width: auto;
}

.nav-toggle {
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.nav-toggle__bar {
	background: var(--mb-color-ink);
	border-radius: 2px;
	display: block;
	height: 2px;
	transition: transform 0.22s, opacity 0.22s;
	width: 22px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
	background: var(--mb-color-bg);
	border-bottom: 1px solid var(--mb-color-line);
	display: none;
	left: 0;
	padding: 8px var(--mb-gutter) 16px;
	position: absolute;
	right: 0;
	top: 100%;
}

.site-nav.is-open {
	display: block;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list li {
	border-bottom: 1px solid var(--mb-color-line);
}

.site-nav__list li:last-child {
	border-bottom: 0;
}

.site-nav__list a {
	color: var(--mb-color-ink);
	display: block;
	font-size: 1rem;
	font-weight: 600;
	padding: 13px 2px;
	text-decoration: none;
}

.site-nav__list .current-menu-item > a {
	color: var(--mb-color-accent);
}

.site-nav__list .sub-menu {
	list-style: none;
	margin: 0 0 8px;
	padding: 0 0 0 12px;
}

.site-nav__list .sub-menu a {
	color: var(--mb-color-muted);
	font-size: 0.9375rem;
	font-weight: 400;
	padding: 9px 2px;
}

/* ==========================================================================
   5. 홈 헤더 — 마케팅 히어로 대신 계산기 목록 바로 위의 제목 한 줄
   ========================================================================== */

.home-head {
	border-bottom: 1px solid var(--mb-color-line);
	margin-bottom: 2rem;
	padding: 2.5rem 0 1.75rem;
}

.home-head__title {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 0 0 .5rem;
}

.home-head__desc {
	color: var(--mb-color-muted);
	font-size: 1.0625rem;
	margin: 0;
	max-width: 42rem;
}

/* ==========================================================================
   6. 버튼
   ========================================================================== */

.btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	min-height: 50px;
	padding: 14px 24px;
	text-decoration: none;
	transition: filter 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
	text-decoration: none;
}

.btn--primary {
	background: var(--mb-color-accent);
	color: var(--mb-color-accent-ink);
}

.btn--primary:hover {
	filter: brightness(1.08);
}

.btn--ghost {
	background: transparent;
	border-color: var(--mb-color-line);
	color: var(--mb-color-ink);
}

.btn--ghost:hover {
	border-color: var(--mb-color-accent);
	color: var(--mb-color-accent);
}

/* ==========================================================================
   7. 카드 · 그리드
   ========================================================================== */

.card-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin-bottom: 2rem;
}

.card {
	background: var(--mb-color-surface);
	border: 1px solid var(--mb-color-line);
	border-radius: var(--mb-radius);
	overflow: hidden;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card:hover {
	border-color: var(--mb-color-accent);
	box-shadow: var(--mb-shadow);
	transform: translateY(-2px);
}

.card__link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.card__link:hover {
	text-decoration: none;
}

.card__media {
	aspect-ratio: 16 / 9;
	background: var(--mb-color-subtle);
	overflow: hidden;
}

.card__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.card__body {
	padding: 18px 18px 20px;
}

.card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.card__excerpt {
	color: var(--mb-color-muted);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0 0 10px;
}

.card__date {
	color: var(--mb-color-muted);
	font-size: 0.8125rem;
}

/* ==========================================================================
   8. 본문 (entry)
   ========================================================================== */

.breadcrumbs {
	font-size: 0.8125rem;
	padding: 1.25rem 0 0;
}

.breadcrumbs ol {
	color: var(--mb-color-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	opacity: 0.5;
}

.breadcrumbs a {
	color: var(--mb-color-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--mb-color-accent);
}

.entry {
	padding: 1.5rem 0 2rem;
}

.entry__title {
	font-size: clamp(1.625rem, 4.5vw, 2.625rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	margin: 0.35rem 0 0.6rem;
}

.entry-meta {
	color: var(--mb-color-muted);
	font-size: 0.8125rem;
	margin-bottom: 1.5rem;
}

.entry__thumb {
	border-radius: var(--mb-radius);
	margin: 0 0 2rem;
	overflow: hidden;
}

.entry__content {
	font-size: 1.0625rem;
}

.entry__content h2 {
	border-top: 1px solid var(--mb-color-line);
	font-size: 1.375rem;
	font-weight: 800;
	margin: 2.75rem 0 1rem;
	padding-top: 2rem;
}

.entry__content h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 2rem 0 0.75rem;
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.35em;
}

.entry__content li {
	margin-bottom: 0.4em;
}

.entry__content blockquote {
	border-left: 3px solid var(--mb-color-accent);
	color: var(--mb-color-muted);
	margin: 1.75rem 0;
	padding: 2px 0 2px 18px;
}

.entry__content pre {
	background: #11182a;
	border-radius: 14px;
	color: #eef2ff;
	overflow-x: auto;
	padding: 1.2rem 1.35rem;
}

.entry__content img {
	border-radius: 12px;
}

.entry__content th,
.entry__content td {
	padding: 14px 16px;
}

.entry__content th {
	color: var(--mb-color-ink-strong);
}

.entry__content table {
	display: block;
	font-size: 0.9375rem;
	margin: 1.5rem 0;
	overflow-x: auto;
	white-space: nowrap;
}

.entry__content th,
.entry__content td {
	border-bottom: 1px solid var(--mb-color-line);
	padding: 11px 12px;
	text-align: left;
}

.entry__content th {
	background: var(--mb-color-subtle);
	font-weight: 700;
}

.entry__content figure {
	margin: 1.75rem 0;
}

.entry__content .wp-caption-text,
.entry__content figcaption {
	color: var(--mb-color-muted);
	font-size: 0.8125rem;
	margin-top: 8px;
	text-align: center;
}

/* 도구 페이지는 도구를 먼저 보여주고 설명이 뒤따른다 */
.entry--tool .entry__content > .mbt-tool:first-child {
	margin-top: 1.5rem;
}

.toc {
	background: var(--mb-color-subtle);
	border: 1px solid var(--mb-color-line);
	border-radius: var(--mb-radius);
	margin: 0 0 2rem;
	padding: 18px 20px;
}

.toc__title {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
	text-transform: uppercase;
	color: var(--mb-color-muted);
}

.toc__list {
	margin: 0;
	padding-left: 1.2em;
}

.toc__list li {
	margin-bottom: 4px;
}

.toc__list a {
	color: var(--mb-color-ink);
	font-size: 0.9375rem;
	text-decoration: none;
}

.toc__list a:hover {
	color: var(--mb-color-accent);
	text-decoration: underline;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2rem;
}

.entry__tags a {
	background: var(--mb-color-subtle);
	border-radius: 999px;
	color: var(--mb-color-muted);
	font-size: 0.8125rem;
	padding: 5px 12px;
	text-decoration: none;
}

.post-nav {
	border-top: 1px solid var(--mb-color-line);
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	margin-top: 2rem;
	padding-top: 2rem;
}

.post-nav__item {
	background: var(--mb-color-surface);
	border: 1px solid var(--mb-color-line);
	border-radius: var(--mb-radius);
	color: inherit;
	display: block;
	padding: 14px 16px;
	text-decoration: none;
}

.post-nav__item:hover {
	border-color: var(--mb-color-accent);
	text-decoration: none;
}

.post-nav__label {
	color: var(--mb-color-muted);
	display: block;
	font-size: 0.75rem;
	margin-bottom: 4px;
}

.post-nav__title {
	font-size: 0.9375rem;
	font-weight: 600;
}

/* ==========================================================================
   9. 아카이브 · 검색 · 404
   ========================================================================== */

.archive-header {
	padding: 1.5rem 0 2rem;
}

.archive-title {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.archive-desc {
	color: var(--mb-color-muted);
	margin: 0;
}

.search-form {
	display: flex;
	gap: 8px;
	margin: 1rem 0;
	max-width: 460px;
}

.search-form__input {
	background: var(--mb-color-surface);
	border: 1px solid var(--mb-color-line);
	border-radius: 10px;
	color: var(--mb-color-ink);
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 1rem;
	min-width: 0;
	padding: 12px 14px;
}

.search-form__submit {
	background: var(--mb-color-accent);
	border: 0;
	border-radius: 10px;
	color: var(--mb-color-accent-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	padding: 12px 20px;
}

.pagination {
	display: flex;
	justify-content: center;
	margin: 2rem 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination .page-numbers {
	border: 1px solid var(--mb-color-line);
	border-radius: 8px;
	color: var(--mb-color-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 0 12px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--mb-color-accent);
	border-color: var(--mb-color-accent);
	color: var(--mb-color-accent-ink);
	font-weight: 700;
}

.no-results,
.error-404 {
	padding: 3rem 0 4rem;
	text-align: center;
}

.error-404__code {
	color: var(--mb-color-accent);
	font-size: 4rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 0.5rem;
}

.error-404__title {
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

.error-404__desc,
.no-results__desc {
	color: var(--mb-color-muted);
	margin: 0 0 1.5rem;
}

.error-404 .search-form,
.no-results .search-form {
	margin: 0 auto 2rem;
}

.error-404__tools {
	margin: 2rem 0;
	text-align: left;
}

/* ==========================================================================
   10. 푸터
   ========================================================================== */

.site-footer {
	background: var(--mb-color-subtle);
	border-top: 1px solid var(--mb-color-line);
	color: var(--mb-color-muted);
	font-size: 0.875rem;
	padding: 2.5rem 0 3rem;
}


.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.footer-nav__list a {
	color: var(--mb-color-ink);
	font-weight: 600;
	text-decoration: none;
}

.site-footer__biz {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 0.8125rem;
	margin-bottom: 1rem;
}

.site-footer__disclaimer {
	border-top: 1px solid var(--mb-color-line);
	font-size: 0.8125rem;
	line-height: 1.65;
	margin: 0 0 1rem;
	padding-top: 1.25rem;
}

.site-footer__copy {
	font-size: 0.8125rem;
	margin: 0;
}

.to-top {
	background: var(--mb-color-surface);
	border: 1px solid var(--mb-color-line);
	border-radius: 50%;
	bottom: 20px;
	box-shadow: var(--mb-shadow);
	color: var(--mb-color-ink);
	cursor: pointer;
	font-size: 1.125rem;
	height: 46px;
	position: fixed;
	right: 16px;
	width: 46px;
	z-index: 800;
}

.to-top[hidden] {
	display: none;
}

/* ==========================================================================
   11. 유틸 · 알림
   ========================================================================== */

.notice {
	border: 1px solid var(--mb-color-line);
	border-radius: var(--mb-radius-sm);
	font-size: 0.9375rem;
	padding: 14px 16px;
}

.notice--warn {
	background: var(--mbt-warning-bg);
	border-color: var(--mbt-warning);
	color: var(--mbt-warning);
}

.alignwide {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   12. 반응형
   ========================================================================== */

@media (min-width: 600px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-nav {
		grid-template-columns: 1fr 1fr;
	}

	.post-nav__item--next {
		text-align: right;
	}

	.section {
		padding: 4rem 0;
	}

}

@media (min-width: 900px) {
	:root {
		--mb-header-h: 68px;
		--mb-gutter: 28px;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav {
		background: none;
		border: 0;
		display: block;
		padding: 0;
		position: static;
	}

	.site-nav__list {
		display: flex;
		gap: 4px;
	}

	.site-nav__list li {
		border: 0;
		position: relative;
	}

	.site-nav__list > li > a {
		border-radius: 8px;
		font-size: 0.9375rem;
		padding: 9px 13px;
	}

	.site-nav__list > li > a:hover {
		background: var(--mb-color-subtle);
	}

	.site-nav__list .sub-menu {
		background: var(--mb-color-surface);
		border: 1px solid var(--mb-color-line);
		border-radius: var(--mb-radius-sm);
		box-shadow: var(--mb-shadow);
		display: none;
		left: 0;
		margin: 0;
		min-width: 190px;
		padding: 6px;
		position: absolute;
		top: 100%;
	}

	.site-nav__list li:hover > .sub-menu,
	.site-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.site-nav__list .sub-menu a {
		border-radius: 6px;
		padding: 9px 12px;
	}

	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.entry__content h2 {
		scroll-margin-top: 90px;
	}
}

@media (min-width: 1200px) {
	.section {
		padding: 5rem 0;
	}

	.entry {
		padding: 2rem 0 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.to-top,
	.breadcrumbs,
	.post-nav {
		display: none !important;
	}

	body {
		font-size: 11pt;
	}
}

/* ==========================================================================
   13. Heapstack 1.1 — calculator hub visual system
   ========================================================================== */

:root {
	--mbt-primary: #3157d5;
	--mbt-text: #172033;
	--mbt-text-muted: #677086;
	--mbt-bg-card: #f5f7fb;
	--mbt-border: #e4e8f0;
	--mbt-radius: 16px;
	--mbt-shadow: 0 18px 50px rgba(30, 48, 91, .1), 0 2px 8px rgba(30, 48, 91, .05);
	--mb-color-accent-soft: #edf1ff;
	--mb-color-ink-strong: #10182a;
	--mb-color-surface-raised: #fff;
	--mb-color-footer: #11182a;
	--mb-color-footer-muted: #9ca7bd;
	--mb-radius-sm: 10px;
	--mb-wrap: 760px;
	--mb-wrap-wide: 1180px;
	--mb-header-h: 72px;
}

body {
	background:
		radial-gradient(circle at 8% 2%, rgba(49, 87, 213, .045), transparent 25rem),
		var(--mb-color-bg);
	color: var(--mb-color-ink);
	letter-spacing: -.012em;
}

::selection {
	background: color-mix(in srgb, var(--mb-color-accent) 22%, transparent);
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

h1, h2, h3, h4 {
	color: var(--mb-color-ink-strong);
	letter-spacing: -.035em;
}

.site-main {
	min-height: 68vh;
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.site-header {
	background: color-mix(in srgb, var(--mb-color-bg) 82%, transparent);
	border-bottom-color: color-mix(in srgb, var(--mb-color-line) 75%, transparent);
	box-shadow: 0 1px 0 rgba(19, 31, 58, .025);
}

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

.site-title {
	font-size: 1.25rem;
	font-weight: 900;
	letter-spacing: -.055em;
}

.site-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.site-title a::before {
	background: linear-gradient(145deg, #6683ee, var(--mb-color-accent));
	border-radius: 9px;
	box-shadow: 0 7px 16px rgba(49, 87, 213, .25);
	content: "";
	display: block;
	height: 27px;
	width: 27px;
}

.site-nav__list > li > a {
	font-weight: 700;
}

.site-nav__list .current-menu-item > a {
	background: var(--mb-color-accent-soft);
}

.home-head {
	align-items: end;
	background:
		linear-gradient(135deg, rgba(255,255,255,.97), rgba(245,247,255,.88)),
		var(--mb-color-surface);
	border: 1px solid var(--mb-color-line);
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(34, 55, 112, .08);
	display: grid;
	gap: 2rem;
	margin: clamp(1.5rem, 4vw, 3.25rem) 0 2rem;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4.25rem);
	position: relative;
}

.home-head::after {
	background:
		linear-gradient(90deg, transparent 49%, rgba(49,87,213,.08) 50%, transparent 51%),
		linear-gradient(transparent 49%, rgba(49,87,213,.08) 50%, transparent 51%);
	background-size: 28px 28px;
	border: 24px solid rgba(49,87,213,.05);
	border-radius: 50%;
	content: "";
	height: 260px;
	opacity: .85;
	position: absolute;
	right: -90px;
	top: -100px;
	width: 260px;
}

.home-head__copy,
.home-head__trust {
	position: relative;
	z-index: 1;
}

.home-head__eyebrow {
	color: var(--mb-color-accent);
	font-size: .76rem;
	font-weight: 850;
	letter-spacing: .12em;
	margin: 0 0 .8rem;
	text-transform: uppercase;
}

.home-head__title {
	font-size: clamp(2.5rem, 7vw, 4.8rem);
	font-weight: 900;
	letter-spacing: -.07em;
	line-height: 1.02;
	margin-bottom: 1rem;
}

.home-head__desc {
	font-size: clamp(1rem, 1.8vw, 1.15rem);
	line-height: 1.75;
	max-width: 38rem;
}

.home-head__trust {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-head__trust li {
	background: rgba(255,255,255,.82);
	border: 1px solid var(--mb-color-line);
	border-radius: 999px;
	color: var(--mb-color-muted);
	font-size: .78rem;
	font-weight: 650;
	padding: .55rem .8rem;
}

.home-head__trust span {
	color: var(--mb-color-accent);
	font-weight: 900;
	margin-right: .2rem;
}

.card-grid {
	gap: 22px;
}

.card {
	background: var(--mb-color-surface-raised);
	border-color: var(--mb-color-line);
	border-radius: 18px;
	box-shadow: 0 2px 4px rgba(32, 45, 78, .025);
}

.card:hover {
	border-color: color-mix(in srgb, var(--mb-color-accent) 45%, var(--mb-color-line));
	box-shadow: var(--mb-shadow);
	transform: translateY(-5px);
}

.card__media {
	aspect-ratio: 16 / 9.5;
}

.card__media img {
	transition: transform .45s ease;
}

.card:hover .card__media img {
	transform: scale(1.035);
}

.card__body {
	display: flex;
	flex-direction: column;
	min-height: 220px;
	padding: 24px;
}

.card__title {
	font-size: 1.18rem;
	font-weight: 800;
	line-height: 1.45;
}

.card__excerpt {
	flex: 1;
	line-height: 1.7;
}

.card__meta {
	align-items: center;
	border-top: 1px solid var(--mb-color-line);
	display: flex;
	justify-content: space-between;
	margin-top: .4rem;
	padding-top: .9rem;
}

.card__more {
	color: var(--mb-color-accent);
	font-size: .8rem;
	font-weight: 750;
}

.archive-header {
	border-bottom: 1px solid var(--mb-color-line);
	margin-bottom: 2rem;
	padding: clamp(2rem, 5vw, 4.5rem) 0 2rem;
}

.archive-title {
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	font-weight: 900;
	letter-spacing: -.055em;
}

.breadcrumbs {
	font-size: .76rem;
	font-weight: 600;
	padding-top: 1.5rem;
}

.entry {
	padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}

.entry__header {
	border-bottom: 1px solid var(--mb-color-line);
	margin-bottom: 2.2rem;
	padding-bottom: 1.6rem;
}

.entry__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.18;
}

.entry-meta {
	display: inline-flex;
	background: var(--mb-color-subtle);
	border-radius: 999px;
	margin: .4rem 0 0;
	padding: .35rem .7rem;
}

.entry__thumb {
	border-radius: 20px;
	box-shadow: 0 16px 40px rgba(30, 48, 91, .09);
}

.entry__content {
	font-size: 1.075rem;
	line-height: 1.84;
}

.entry__content h2 {
	border-top: 0;
	font-size: clamp(1.45rem, 3vw, 1.75rem);
	margin-top: 3.4rem;
	padding-top: 0;
}

.entry__content h2::before {
	background: var(--mb-color-accent);
	border-radius: 999px;
	content: "";
	display: block;
	height: 4px;
	margin-bottom: .75rem;
	width: 30px;
}

.entry__content blockquote {
	background: var(--mb-color-subtle);
	border-left: 4px solid var(--mb-color-accent);
	border-radius: 0 14px 14px 0;
	padding: 18px 22px;
}

.toc {
	background: linear-gradient(135deg, var(--mb-color-subtle), var(--mb-color-accent-soft));
	border-radius: 16px;
	padding: 24px 26px;
}

.btn,
.search-form__input,
.search-form__submit {
	min-height: 50px;
}

.search-form__input {
	box-shadow: inset 0 1px 2px rgba(31, 45, 78, .04);
}

.search-form__input:focus {
	border-color: var(--mb-color-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--mb-color-accent) 12%, transparent);
	outline: 0;
}

.search-form__submit {
	box-shadow: 0 8px 18px rgba(49, 87, 213, .2);
}

.site-footer {
	background: var(--mb-color-footer);
	border: 0;
	color: var(--mb-color-footer-muted);
	padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}

.site-footer__top {
	display: grid;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.site-footer__brand a {
	color: #fff;
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -.05em;
	text-decoration: none;
}

.site-footer__brand p {
	font-size: .86rem;
	margin: .45rem 0 0;
}

.footer-nav__list {
	margin: 0;
}

.footer-nav__list a {
	color: #e8ecf5;
}

.site-footer__biz {
	border-top: 1px solid rgba(255,255,255,.1);
	padding-top: 1.5rem;
}

.site-footer__disclaimer {
	border-color: rgba(255,255,255,.1);
}

.site-footer__bottom {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.site-footer__top-link {
	color: #e8ecf5;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
}

.to-top {
	background: var(--mb-color-footer);
	border-color: rgba(255,255,255,.16);
	color: #fff;
}

@media (min-width: 760px) {
	.home-head {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.home-head__trust {
		align-content: end;
		align-items: flex-end;
		flex-direction: column;
	}

	.site-footer__top {
		align-items: start;
		grid-template-columns: 1fr auto;
	}
}

@media (max-width: 899px) {
	.site-nav {
		box-shadow: 0 18px 36px rgba(28, 42, 77, .1);
		padding-bottom: 20px;
	}

	.site-nav__list .current-menu-item > a {
		background: transparent;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--mb-color-ink-strong: #f2f5fb;
		--mb-color-surface-raised: #171c25;
		--mb-color-footer: #090d16;
	}

	.home-head {
		background: linear-gradient(135deg, rgba(25,30,41,.98), rgba(22,29,48,.94));
	}

	.home-head__trust li {
		background: rgba(16,19,25,.7);
	}
}

/* 16. Final unified layout overrides */
:root {
	--mb-wrap: 1180px;
	--mb-wrap-wide: 1180px;
	--mb-content: 860px;
	--mb-page-top: clamp(1.25rem, 3vw, 2rem);
	--mb-page-bottom: clamp(4rem, 8vw, 7rem);
}

.site-main { padding-bottom: var(--mb-page-bottom); }
.breadcrumbs { padding-top: var(--mb-page-top); }

.home-head {
	align-items: center;
	background: var(--mb-color-subtle);
	border: 0;
	border-radius: 18px;
	box-shadow: none;
	display: grid;
	gap: 1.5rem 3rem;
	grid-template-columns: minmax(0, 1fr);
	margin: var(--mb-page-top) 0 1rem;
	min-height: 300px;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4.25rem);
}

.home-head::after { display: none; }
.home-head__title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: .8rem; }
.home-head__desc { max-width: 44rem; }
.home-head__trust { display: none; }

.home-head__note {
	align-items: center;
	color: var(--mb-color-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: .78rem;
	font-weight: 650;
	gap: .45rem .7rem;
	margin: 0;
}

.home-head__note > span { color: var(--mb-color-accent); font-weight: 900; }
.home-head__note i { background: var(--mb-color-line); height: 12px; width: 1px; }

.home-tools,
.home-guides { margin-bottom: clamp(4rem, 8vw, 6.5rem); }

.home-tools { margin-top: clamp(3rem, 6vw, 5rem); }

.home-guides {
	border: 1px solid var(--mb-color-line);
	border-radius: 18px;
	margin-left: 0;
	margin-right: 0;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.archive-header {
	background: var(--mb-color-subtle);
	border: 0;
	border-radius: 18px;
	margin: 1rem 0 clamp(2rem, 5vw, 3.5rem);
	min-height: 250px;
	padding: clamp(2rem, 5vw, 4.25rem);
}

.archive-header__ornament { display: none; }
.archive-title { font-size: clamp(2.25rem, 5vw, 4rem); }
.page-layout .entry { padding-top: 1rem; }

.entry--post .entry__header,
.entry--page .entry__header,
.entry--tool .entry__header {
	background: var(--mb-color-subtle);
	border: 0;
	border-radius: 18px;
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	min-height: 250px;
	padding: clamp(2rem, 5vw, 4.25rem);
}

.entry--post .entry__header::after,
.entry--page .entry__header::after { display: none; }
.entry__title { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 62rem; }
.entry__lead { max-width: 48rem; }

.entry--post > .entry__thumb,
.entry--post > .entry__content,
.entry--post > .entry__footer,
.entry--page > .entry__content,
.page-layout--post > .post-nav {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--mb-content);
}

.page-layout--tool .entry__content {
	margin-left: auto;
	margin-right: auto;
	max-width: 1040px;
}

.entry--post > .entry__thumb { width: 100%; }

.error-404 {
	align-items: center;
	background: var(--mb-color-subtle);
	border-radius: 18px;
	display: grid;
	gap: clamp(2rem, 7vw, 5rem);
	margin-top: var(--mb-page-top);
	padding: clamp(2rem, 6vw, 5rem);
	text-align: left;
}

.error-404__visual { background: var(--mb-color-bg); box-shadow: none; }

@media (min-width: 900px) {
	.home-head { grid-template-columns: minmax(0, 1fr) auto; }
	.home-head__note { align-self: end; justify-content: flex-end; max-width: 320px; text-align: right; }
}

@media (min-width: 1200px) {
	:root { --mb-wrap: 1240px; --mb-wrap-wide: 1240px; --mb-content: 900px; }
}

@media (min-width: 1600px) {
	:root { --mb-wrap: 1320px; --mb-wrap-wide: 1320px; --mb-content: 940px; }
}

@media (max-width: 719px) {
	.home-head,
	.archive-header,
	.entry--post .entry__header,
	.entry--page .entry__header,
	.entry--tool .entry__header,
	.error-404 { border-radius: 14px; min-height: 0; }
	.home-head__note i { display: none; }
}

/* 개인정보처리방침은 법정 고지라 푸터에서 눈에 띄게 둔다 */
.footer-nav__item--privacy a {
	font-weight: 700;
}

/* ==========================================================================
   본문 폭 정합 — 블록이 컨테이너를 그대로 따르게 한다
   ==========================================================================
   워드프레스는 theme.json 의 contentSize 로 블록마다 max-width 를 건다.
   그 값은 고정인데 이 테마의 본문 폭(--mb-content)은 화면에 따라 커진다.
   둘이 어긋나면 넓은 화면에서 이미지·문단이 컨테이너보다 좁아져 양옆이 빈다.
   워드프레스가 참조하는 변수 자체를 우리 토큰으로 덮어 responsive 를 유지한다. */

.entry__content {
	--wp--style--global--content-size: var(--mb-content);
	--wp--style--global--wide-size: var(--mb-wrap);
}

/* 본문 이미지 — 16:9 로 올려도 컨테이너를 꽉 채운다 */
.entry__content img {
	height: auto;
	width: 100%;
}

/* 캡션·아이콘처럼 작게 두어야 하는 것까지 늘리지 않는다 */
.entry__content img[width][height]:not([class*="wp-image"]),
.entry__content .wp-block-image.is-resized img,
.entry__content .emoji {
	width: auto;
}

.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figure img { border-radius: 12px; display: block; }
.entry__content figcaption { color: var(--mb-color-ink-soft, #6b7280); font-size: .875rem; margin-top: .6rem; text-align: center; }

/* alignwide 는 화면 전체가 아니라 페이지 폭까지만 넓힌다.
   본문 컨테이너가 --mb-content 로 좁혀져 있어 max-width 만으로는 못 넘는다.
   가운데를 기준으로 잡고 되돌리는 방식으로 컨테이너 밖까지 펼친다. */
.entry__content .alignwide {
	margin-left: 50%;
	margin-right: 0;
	max-width: none;
	transform: translateX(-50%);
	width: min(var(--mb-wrap), calc(100vw - 3rem));
}

.entry__content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.entry__content .alignfull img { border-radius: 0; }

/* 대표 이미지 — 컨테이너가 화면에 따라 커져도 항상 꽉 채운다.
   워드프레스는 img 에 width="940" 같은 고정 폭을 박아 넣는다. 그 숫자는
   $content_width 하나로 결정되는데 이 테마의 --mb-content 는 화면에 따라
   860 → 900 → 940 으로 커진다. 이 규칙이 없으면 넓은 화면에서 이미지만
   작은 채로 남아 오른쪽이 빈다. */
.entry__thumb img {
	display: block;
	height: auto;
	width: 100%;
}
