/*
Theme Name: 달곰
Author: 달곰
Description: 글 읽기에 맞춘 가볍고 빠른 디자인이며 외부 글꼴과 스크립트를 쓰지 않는다. 글·페이지·카테고리·메뉴는 모두 워드프레스에 저장된 내용을 불러온다.
Version: 1.6.4
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dalgom
*/

/* ---------- 기본값 ---------- */
:root {
	--c-text: #1e2a4a;
	--c-sub: #4a525c;
	--c-mute: #5b6470;
	--c-line: #dce7df;
	--c-line-strong: #c5d8ce;
	--c-bg: #faf8f1;
	--c-soft: #e8f5ef;
	--c-accent: #0f766e;
	--c-accent-dark: #115e59;
	--c-accent-soft: #e8f5ef;
	--c-brand: #1e2a4a;
	--c-moon: #f6c453;
	--font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
	--wrap: 1120px;
	--gutter: 20px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

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

img {
	height: auto;
}

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

a:hover {
	color: var(--c-accent);
}

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

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--c-text);
	color: #fff;
	border-radius: 8px;
}

/* 글이 짧아도 바닥글이 화면 아래에 붙게 한다 */
.site-main {
	flex: 1 0 auto;
}

/* 카테고리 색 (상위 카테고리 순서대로 돌아가며 적용) */
.tone-1 { --tone: #1e2a4a; --tone-soft: #e8f5ef; }
.tone-2 { --tone: #0f766e; --tone-soft: #e7f4f2; }
.tone-3 { --tone: #0f766e; --tone-soft: #fff4d5; }
.tone-4 { --tone: #6d3fc4; --tone-soft: #f1ecfb; }

.chip {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--tone-soft, var(--c-accent-soft));
	color: var(--tone, var(--c-accent));
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

a.chip:hover {
	color: var(--tone, var(--c-accent));
	text-decoration: underline;
}

/* ---------- 머리 ---------- */
.site-header {
	border-bottom: 1px solid var(--c-line);
	background: var(--c-bg);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	min-height: 64px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--c-brand);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.site-title:hover {
	color: var(--c-brand);
}

.site-title__mark {
	flex: none;
	width: 34px;
	height: 34px;
}

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

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

.site-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 10px 12px;
	font-weight: 500;
	white-space: nowrap;
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a,
.site-nav .current-post-ancestor > a,
.site-nav .current_page_item > a {
	color: var(--c-accent);
	font-weight: 700;
	box-shadow: inset 0 -2px 0 var(--c-accent);
}

.search-form {
	display: flex;
	align-items: center;
	flex: 0 1 240px;
	min-width: 0;
	height: 44px;
	border: 1px solid var(--c-line-strong);
	border-radius: 8px;
	background: var(--c-bg);
}

.search-form:focus-within {
	border-color: var(--c-accent);
}

.search-form__field {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	height: 100%;
	padding: 0 4px 0 12px;
	border: 0;
	background: transparent;
	font-size: 15px;
	outline: none;
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 0 8px 8px 0;
	background: transparent;
	color: var(--c-mute);
	cursor: pointer;
}

.search-form__submit:hover {
	color: var(--c-accent);
}

@media (max-width: 720px) {
	.site-header__inner {
		gap: 4px 12px;
	}

	.site-branding {
		flex: 1 1 auto;
	}

	.search-form {
		flex: 0 1 180px;
		order: 2;
	}

	.site-nav {
		order: 3;
		flex: 1 1 100%;
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 calc(var(--gutter) - 12px);
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar {
		display: none;
	}

	.site-nav .menu {
		flex-wrap: nowrap;
	}
}

/* ---------- 첫 화면 ---------- */
/* 첫 화면 띠: 옅은 남색 바탕에 달과 별 무늬 */
.hero-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #faf8f1 0%, #e8f5ef 100%);
	border-bottom: 1px solid var(--c-line);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 8px 32px;
	padding-top: 44px;
	padding-bottom: 36px;
}

.hero--art {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	padding-top: 28px;
	padding-bottom: 20px;
}

.hero__title {
	max-width: 760px;
	margin: 0;
	color: var(--c-brand);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.hero__text {
	max-width: 560px;
	margin: 14px 0 0;
	color: var(--c-sub);
	font-size: 18px;
}

.hero__art {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	justify-self: end;
	/* 흰 바탕 그림이 띠의 옅은 색에 녹아들게 한다 */
	mix-blend-mode: multiply;
}

@media (max-width: 720px) {
	.hero--art {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 28px;
	}

	.hero__art {
		max-width: 320px;
		justify-self: center;
		order: -1;
	}
}

.cat-grid {
	display: grid;
	/* auto-fill: 카테고리가 하나뿐이어도 카드가 한 줄을 다 차지하지 않게 */
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0 0 44px;
	list-style: none;
}

.cat-section {
	padding-top: 32px;
}

.cat-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 22px;
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--tone, var(--c-accent));
	border-radius: 12px;
	background: var(--c-bg);
}

.cat-card:hover {
	border-color: var(--tone, var(--c-accent));
	color: var(--c-text);
}

.cat-card__art {
	display: block;
	width: 112px;
	height: 112px;
	margin: -6px 0 4px -6px;
	object-fit: contain;
}

.cat-card__name {
	font-size: 19px;
	font-weight: 700;
}

.cat-card__desc {
	color: var(--c-sub);
	font-size: 15px;
}

.cat-card__count {
	margin-top: auto;
	padding-top: 6px;
	color: var(--tone, var(--c-accent));
	font-size: 14px;
	font-weight: 600;
}

/* ---------- 목록 공통 ---------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
	padding-bottom: 56px;
}

.layout--no-aside {
	grid-template-columns: minmax(0, 760px);
}

@media (max-width: 960px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.layout__aside {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 8px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--c-text);
}

.section-head h2::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 8px;
	vertical-align: -3px;
	background: url("assets/logo-mark.svg") center / contain no-repeat;
}

.section-head h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.post-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--c-line);
}

.post-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	color: var(--c-mute);
	font-size: 13px;
}

.post-card__title {
	margin: 8px 0 6px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.post-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--c-sub);
	font-size: 15px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.post-card__thumb {
	flex: none;
	width: 128px;
}

.post-card__thumb img {
	display: block;
	width: 128px;
	height: 84px;
	border-radius: 8px;
	object-fit: cover;
}

@media (max-width: 480px) {
	.post-card {
		gap: 14px;
	}

	.post-card__thumb,
	.post-card__thumb img {
		width: 88px;
		height: 66px;
	}
}

.empty-note {
	margin: 0;
	padding: 36px 0;
	color: var(--c-sub);
}

.side-box {
	padding: 20px;
	border: 1px solid var(--c-line);
	border-radius: 12px;
}

.side-box h2,
.widget-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
}

.side-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.side-list a {
	display: block;
	font-size: 15px;
	line-height: 1.5;
}

.side-list span {
	color: var(--c-mute);
	font-size: 13px;
}

.pagination {
	padding-top: 28px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: 8px;
}

.pagination .page-numbers.current {
	border-color: var(--c-text);
	background: var(--c-text);
	color: #fff;
	font-weight: 600;
}

.pagination .page-numbers.dots {
	border: 0;
}

/* ---------- 목록 화면 머리 ---------- */
.breadcrumb {
	padding-top: 20px;
	color: var(--c-mute);
	font-size: 14px;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.archive-header {
	margin-bottom: 8px;
	padding: 16px 0 26px;
	border-bottom: 1px solid var(--c-line);
}

.archive-header h1 {
	margin: 0;
	font-size: clamp(27px, 3.5vw, 36px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.archive-header__desc {
	max-width: 680px;
	margin-top: 10px;
	color: var(--c-sub);
	font-size: 17px;
}

.archive-header__desc p {
	margin: 0;
}

.archive-header .search-form {
	max-width: 420px;
	margin-top: 18px;
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.filter-chips a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
}

.filter-chips a:hover {
	border-color: var(--c-accent);
}

.filter-chips a[aria-current="page"] {
	border-color: var(--c-text);
	background: var(--c-text);
	color: #fff;
	font-weight: 600;
}

/* ---------- 글 상세 ---------- */
.single-grid {
	display: grid;
	grid-template-columns: minmax(0, 720px) minmax(0, 260px);
	grid-template-areas:
		"head toc"
		"body toc"
		"foot toc";
	column-gap: 56px;
	align-items: start;
	padding-bottom: 64px;
}

.single-grid--no-toc {
	grid-template-columns: minmax(0, 720px);
	grid-template-areas:
		"head"
		"body"
		"foot";
}

.entry-header {
	grid-area: head;
	padding: 16px 0 24px;
	border-bottom: 1px solid var(--c-line);
}

.entry-title {
	margin: 12px 0 16px;
	font-size: clamp(27px, 3.6vw, 38px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.03em;
}

.page .entry-title {
	margin-top: 0;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	color: var(--c-sub);
	font-size: 14px;
}

.entry-meta div {
	display: flex;
	gap: 6px;
}

.entry-meta dd {
	margin: 0;
	color: var(--c-text);
}

.toc {
	grid-area: toc;
	position: sticky;
	top: 24px;
	margin-top: 64px;
	padding-left: 16px;
	border-left: 2px solid var(--c-line);
	font-size: 15px;
	line-height: 1.6;
}

.toc h2 {
	margin: 0 0 10px;
	color: var(--c-sub);
	font-size: 14px;
	font-weight: 700;
}

.toc ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 960px) {
	.single-grid {
		display: block;
	}

	.toc {
		position: static;
		margin: 24px 0 0;
		padding: 16px 20px;
		border: 1px solid var(--c-line);
		border-radius: 12px;
	}
}

.entry-body {
	grid-area: body;
	min-width: 0;
}

.entry-footer {
	grid-area: foot;
	min-width: 0;
}

.deadline-notice {
	margin: 20px 0 0;
	padding: 14px 18px;
	border: 1px solid #e3a6a6;
	border-radius: 8px;
	background: #fdf0f0;
	color: #7a1f1f;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}

.affiliate-notice {
	margin: 20px 0 0;
	padding: 14px 18px;
	border: 1px solid #f0c36d;
	border-radius: 8px;
	background: #fff7e6;
	color: #6b4700;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}

.entry-thumbnail {
	margin: 24px 0 0;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: 12px;
}

.entry-content {
	padding-top: 28px;
	font-size: 17px;
	line-height: 1.8;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content dl,
.entry-content pre,
.entry-content blockquote,
.entry-content figure,
.entry-content table,
.entry-content details {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.entry-content h2 {
	margin: 2.1em 0 0.6em;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.02em;
	scroll-margin-top: 20px;
}

.entry-content h3 {
	margin: 1.8em 0 0.5em;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.45;
	scroll-margin-top: 20px;
}

.entry-content h4 {
	margin: 1.6em 0 0.4em;
	font-size: 17px;
	font-weight: 700;
}

.entry-content a {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--c-accent-dark);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.3em;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content figure.dalgom-card {
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .dalgom-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}

.entry-content .dalgom-gallery li {
	margin: 0;
}

.entry-content .dalgom-gallery img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--c-line);
}

@media (max-width: 480px) {
	.entry-content .dalgom-gallery {
		grid-template-columns: minmax(0, 1fr);
	}
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--c-mute);
	font-size: 14px;
	text-align: left;
}

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--c-line-strong);
	color: var(--c-sub);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--c-line);
}

.entry-content code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--c-soft);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 16px 18px;
	overflow-x: auto;
	border-radius: 10px;
	background: var(--c-soft);
	font-size: 15px;
	line-height: 1.6;
}

.entry-content pre code {
	padding: 0;
	background: transparent;
}

/* 표: 좁은 화면에서는 표 안에서만 가로로 민다 */
.entry-content .wp-block-table {
	overflow-x: auto;
}

.entry-content > table {
	display: block;
	width: max-content;
	max-width: 100%;
	overflow-x: auto;
}

.entry-content table {
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.6;
}

.entry-content .wp-block-table table {
	width: 100%;
	min-width: 460px;
}

.entry-content th,
.entry-content td {
	padding: 11px 14px;
	border: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--c-soft);
	font-weight: 700;
}

.entry-content tbody th {
	font-weight: 600;
}

.entry-content details {
	padding: 14px 0;
	border-bottom: 1px solid var(--c-line);
}

.entry-content details:first-of-type {
	border-top: 1px solid var(--c-line);
}

.entry-content details + details {
	margin-top: -1.2em;
}

.entry-content summary {
	font-weight: 600;
	cursor: pointer;
}

.entry-content details > *:not(summary) {
	margin: 10px 0 0;
	color: var(--c-sub);
}

/* 원고에서 쓸 수 있는 상자 (README 참고) */
.dalgom-summary {
	padding: 20px 24px;
	border-radius: 12px;
	background: #f3f6f9;
	font-size: 16px;
	line-height: 1.7;
}

.dalgom-notice {
	padding: 16px 20px;
	border: 1px solid #f0c36d;
	border-radius: 10px;
	background: #fff7e6;
	color: #5c3d00;
	font-size: 16px;
}

.dalgom-sources {
	padding: 20px 24px;
	border: 1px solid var(--c-line);
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.7;
}

.entry-content .dalgom-summary,
.entry-content .dalgom-notice,
.entry-content .dalgom-sources {
	margin-bottom: 1.4em;
}

.dalgom-summary > *:first-child,
.dalgom-notice > *:first-child,
.dalgom-sources > *:first-child {
	margin-top: 0;
}

.dalgom-summary > *:last-child,
.dalgom-notice > *:last-child,
.dalgom-sources > *:last-child {
	margin-bottom: 0;
}

.entry-content .dalgom-summary h2,
.entry-content .dalgom-summary h3,
.entry-content .dalgom-sources h2,
.entry-content .dalgom-sources h3 {
	margin: 0 0 8px;
	font-size: 16px;
	letter-spacing: 0;
}

.entry-content ol.dalgom-steps {
	padding-left: 0;
	list-style: none;
	counter-reset: step;
}

.entry-content ol.dalgom-steps > li {
	position: relative;
	min-height: 32px;
	padding-left: 46px;
	counter-increment: step;
}

.entry-content ol.dalgom-steps > li + li {
	margin-top: 12px;
}

.entry-content ol.dalgom-steps > li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-text);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.page-links {
	margin-top: 24px;
	font-weight: 600;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.entry-tags a {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	color: var(--c-sub);
}

.author-box {
	margin-top: 32px;
	padding: 20px 24px;
	border-radius: 12px;
	background: var(--c-soft);
	font-size: 15px;
	line-height: 1.6;
}

.author-box p {
	margin: 0;
}

.author-box__name {
	font-weight: 700;
}

.author-box__bio {
	margin-top: 4px !important;
	color: var(--c-sub);
}

.related {
	margin-top: 48px;
}

.related h2 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.5;
}

.related-grid a {
	display: block;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--c-line);
	border-radius: 10px;
	font-weight: 600;
}

.related-grid a:hover {
	border-color: var(--c-accent);
}

/* ---------- 페이지 · 404 ---------- */
.page-wrap {
	max-width: calc(720px + var(--gutter) * 2);
	padding-bottom: 64px;
}

.page-wrap--front {
	max-width: none;
	padding: 0;
}

.page-wrap--front .entry-content {
	padding-top: 0;
}

.page-wrap .entry-header {
	padding-top: 32px;
}

.notfound {
	padding-top: 72px;
	padding-bottom: 96px;
	text-align: center;
}

.notfound h1 {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.notfound p {
	margin: 12px 0 24px;
	color: var(--c-sub);
}

.notfound .search-form {
	max-width: 360px;
	margin: 0 auto 20px;
}

.notfound a.text-link,
.empty-note a {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 댓글 ---------- */
.comments-area {
	margin-top: 48px;
	font-size: 15px;
}

.comments-area .comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comments-area .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--c-line);
}

.comments-area textarea,
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: 8px;
}

.comments-area .submit {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--c-text);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- 바닥 ---------- */
.site-footer {
	border-top: 3px solid var(--c-moon);
	background: var(--c-soft);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 32px;
	padding-bottom: 40px;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.footer-nav .menu:empty {
	display: none;
}

.footer-nav a {
	display: inline-block;
	padding: 10px 0;
}

.footer-nav a:hover {
	text-decoration: underline;
}

.site-footer__note,
.site-footer__copy {
	max-width: 720px;
	margin: 0;
	color: var(--c-mute);
	font-size: 13px;
}

/* ---------- 워드프레스 기본 클래스 ---------- */
.alignleft {
	float: left;
	margin: 0.3em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.4em;
}

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

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--c-mute);
	font-size: 14px;
}

.sticky,
.bypostauthor {
	display: block;
}

.post-card.sticky {
	display: flex;
}

@media print {
	.site-header,
	.site-footer,
	.toc,
	.related,
	.layout__aside {
		display: none;
	}
}

/* 공통 브랜드: 원본 비율과 캐릭터 여백을 유지한다. */
.hero__art { mix-blend-mode: normal; border-radius: 28px; }
.cat-card { background: #fffdf8; }
.cat-card__art { border-radius: 20px; }
.brand-profile { display: block; width: 112px; height: auto; border-radius: 50%; margin: 0 0 20px; }
.brand-welcome { display: block; width: 120px; height: auto; margin: 28px auto 0; }

/* ---------- 가독성 개선 (1.5.0, 2026-11-17) ---------- */
/* 1) 문단 간격: 20.4px(글자 크기의 1.2배) → 25.5px(1.5배). 짧은 문단이 많은 새 원고에 맞춘 절충 */
.entry-content { line-height: 1.75; }
.entry-content p, .entry-content ul, .entry-content ol,
.entry-content table, .entry-content figure { margin-bottom: 1.5em; }

/* 2) 소제목 위에 옅은 구분선과 여백: 단락 경계를 분명히 */
.entry-content h2 { margin: 2.4em 0 0.7em; padding-top: 0.9em; border-top: 1px solid var(--c-line); }

/* 3) 굵게는 진한 남색, 요약 상자 안 굵은 글자에만 형광펜 */
.entry-content strong { color: var(--c-brand); font-weight: 700; }
.entry-content .dalgom-summary strong { box-shadow: inset 0 -0.4em 0 rgba(246, 196, 83, 0.4); }

/* 4) 목록 간격과 글머리 색 */
.entry-content li + li { margin-top: 0.5em; }
.entry-content ul > li::marker { color: var(--c-accent); }

/* 5) 머리 행이 tbody 안에 있는 예전 원고도 머리 행 색이 나오게 */
.entry-content tbody tr:first-child th { background: var(--c-soft); font-weight: 700; }

/* 6) 요약 상자: 왼쪽 강조선 + 초록 바탕 */
.dalgom-summary { border-left: 4px solid var(--c-accent); background: var(--c-accent-soft); padding: 18px 20px; }
.entry-content .dalgom-summary h3 { color: var(--c-accent-dark); }
.entry-content .dalgom-summary ul { padding-left: 1.2em; }
.entry-content .dalgom-summary li + li { margin-top: 0.45em; }

/* 7) 휴대폰: 소제목·목차·대표 그림을 줄여 첫 화면에 본문이 더 빨리 나오게 */
@media (max-width: 720px) {
	.entry-content h2 { font-size: 22px; line-height: 1.4; }
	.entry-content h3 { font-size: 19px; }
	/* 카드뉴스 플러그인(dalgom-reader)의 .entry-thumbnail img 420px 규칙이 이 파일 뒤에 실리므로 선택자를 강하게 */
	.entry-body .entry-thumbnail img { max-height: 260px; }
	.toc { font-size: 14px; line-height: 1.5; }
	.toc ol { gap: 6px; }
}

/* ---------- 글자 크기 키움 (1.5.1, 2026-11-17 운영자 요청) ---------- */
.entry-content { font-size: 18px; }                      /* 17px → 18px */
.entry-content table { font-size: 16px; }                /* 15px → 16px */
.entry-content figcaption { font-size: 15px; }           /* 14px → 15px */
.entry-content .dalgom-summary, .entry-content .dalgom-notice, .entry-content .dalgom-sources { font-size: 17px; }  /* 16·16·15px → 17px */
@media (max-width: 720px) {
	.entry-content h2 { font-size: 23px; }               /* 22px → 23px */
	.entry-content h3 { font-size: 20px; }               /* 19px → 20px */
}

/* ---------- 그림으로 설명하는 글 (1.5.2, 2026-11-17 운영자 승인 "전체 변경") ---------- */
/* 정보 그림 칸: 전체 폭, 둥근 모서리 */
.entry-content .dalgom-figure { margin: 1.6em 0 1em; }
.entry-content .dalgom-figure img { display:block; width:100%; height:auto; border-radius:16px; }
/* 접기 상자(자세히 보기): 기본은 접힘, 오른쪽 +/−, 누르는 영역 44px 이상 */
.entry-content details.dalgom-details { margin: 0 0 1.5em; border:1px solid var(--c-line-strong); border-radius:12px; background:#fff; }
.entry-content details.dalgom-details > summary { cursor:pointer; list-style:none; position:relative; min-height:44px; box-sizing:border-box; padding:12px 44px 12px 16px; font-weight:700; font-size:16px; line-height:1.5; color:var(--c-accent-dark); }
.entry-content details.dalgom-details > summary::-webkit-details-marker { display:none; }
.entry-content details.dalgom-details > summary::after { content:"+"; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:24px; line-height:1; color:var(--c-accent); }
.entry-content details.dalgom-details[open] > summary::after { content:"−"; }
.entry-content .dalgom-details__body { padding:4px 16px 2px; border-top:1px solid var(--c-line); font-size:16px; }
.entry-content .dalgom-details__body ul { margin:12px 0; }

/* ---------- 편집형 첫 화면 (1.6.0 시안, 2026-11-18 홈 개편 기획안) ---------- */
/* 색 이름: --h-ink 제목, --h-point 강조 점, --h-hero 첫 띠 바탕, --h-card 카드 바탕, --h-chip 바로가기 버튼 */
:root {
	--h-ink: #1e2a4a;
	--h-point: #f6c453;
	--h-hero: linear-gradient(135deg, #faf8f1 0%, #e8f5ef 100%);
	--h-card: #ffffff;
	--h-chip: #ffffff;
	--h-pick-2: #fff4d5;
}

/* B. 차분한 녹색·미색·황토색 (기획안). 사이트 전체 색 변수를 바꾼다. */
body.palette-calm {
	--c-text: #22332a;
	--c-sub: #4b5850;
	--c-mute: #5d6960;
	--c-line: #e4dfd3;
	--c-line-strong: #cfc8b7;
	--c-bg: #f8f5ee;
	--c-soft: #eceee5;
	--c-accent: #2f5b46;
	--c-accent-dark: #244836;
	--c-accent-soft: #e7eee6;
	--c-brand: #2f5b46;
	--c-moon: #b5843c;
	--h-ink: #22332a;
	--h-point: #b5843c;
	--h-hero: #f1eee4;
	--h-card: #fffdf8;
	--h-chip: #fffdf8;
	--h-pick-2: #f3e9d6;
}

body.palette-calm .tone-1 { --tone: #2f5b46; --tone-soft: #e5ece3; }
body.palette-calm .tone-2 { --tone: #85602a; --tone-soft: #f3e9d6; }
body.palette-calm .tone-3 { --tone: #2f5b46; --tone-soft: #eef1e8; }
body.palette-calm .site-title__mark circle[fill="#1e2a4a"] { fill: #2f5b46; }
body.palette-calm .site-title__mark [fill="#f6c453"] { fill: #f1d9a6; }
body.palette-calm .entry-content .dalgom-summary strong { box-shadow: inset 0 -0.4em 0 rgba(181, 132, 60, 0.28); }
body.palette-calm .hero-band { background: #f1eee4; }

/* 첫 띠 */
.h-hero {
	background: var(--h-hero);
	border-bottom: 1px solid var(--c-line);
}

.h-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: center;
	gap: 24px 48px;
	padding-top: 44px;
	padding-bottom: 40px;
}

.h-hero__title {
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.h-hero__name {
	display: inline-block;
	margin-bottom: 12px;
	padding: 0 2px;
	color: var(--c-accent);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--h-point) 45%, transparent);
}

.h-hero__slogan {
	display: block;
	color: var(--h-ink);
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.25;
}

.h-hero__intro {
	max-width: 560px;
	margin: 16px 0 0;
	color: var(--c-sub);
	font-size: 18px;
	line-height: 1.65;
}

.h-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.h-jump__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	background: var(--h-chip);
	color: var(--h-ink);
	font-size: 16px;
	font-weight: 700;
}

.h-jump__btn:hover {
	border-color: var(--c-accent);
	color: var(--c-accent);
}

.h-hero__art {
	justify-self: end;
	width: 100%;
	max-width: 340px;
}

.h-hero__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 28px;
}

.h-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 220px;
	height: 200px;
	margin-left: auto;
	border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%;
	background: #e3e9df;
	color: var(--h-ink);
}

.h-badge__big {
	font-size: 46px;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

.h-badge__small {
	color: var(--c-sub);
	font-size: 13px;
	font-weight: 600;
}

/* 구역 머리 */
.h-sec {
	padding-top: 40px;
}

.h-sec__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 16px;
}

.h-sec__head h2 {
	margin: 0;
	color: var(--h-ink);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.h-sec__aside {
	margin: 0;
	color: var(--c-mute);
	font-size: 14px;
}

/* 지금 확인할 글 */
.h-picks__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.h-picks__list > li:only-child {
	grid-column: 1 / -1;
}

.h-pick {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 22px;
	border: 1px solid var(--c-line);
	border-radius: 16px;
	background: var(--h-card);
}

.h-pick__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--tone-soft, var(--c-accent-soft));
	color: var(--tone, var(--c-accent));
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
}

.tone-2 .h-pick__icon {
	background: var(--h-pick-2);
}

.h-pick__body {
	min-width: 0;
}

.h-pick__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
}

.h-pick__cat {
	color: var(--tone, var(--c-accent));
}

.h-pick__due {
	color: #9a3412;
}

body.palette-calm .h-pick__due {
	color: #8a4b12;
}

.h-pick__title {
	margin: 0;
	color: var(--h-ink);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.h-pick__title a:hover {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.h-pick__note {
	margin: 8px 0 0;
	color: var(--c-sub);
	font-size: 16px;
	line-height: 1.6;
}

.h-pick__check {
	margin: 8px 0 0;
	color: var(--c-mute);
	font-size: 14px;
}

.h-pick__check::before {
	content: "✓ ";
	color: var(--c-accent);
	font-weight: 700;
}

/* 분야별 최신 글 */
.h-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding-top: 32px;
}

.h-fields--one {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
}

.h-field {
	display: flex;
	flex-direction: column;
	padding: 24px 26px 20px;
	border: 1px solid var(--c-line);
	border-top: 4px solid var(--tone, var(--c-accent));
	border-radius: 16px;
	background: var(--h-card);
	scroll-margin-top: 16px;
}

.h-field__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.h-field__title {
	margin: 0;
	color: var(--h-ink);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.h-field__title a:hover {
	color: var(--tone, var(--c-accent));
}

.h-field__count {
	margin-left: 4px;
	color: var(--tone, var(--c-accent));
	font-size: 15px;
	font-weight: 700;
}

.h-field__all {
	flex: none;
	padding: 8px 0;
	color: var(--c-sub);
	font-size: 15px;
	font-weight: 600;
}

.h-field__all:hover {
	color: var(--tone, var(--c-accent));
	text-decoration: underline;
}

.h-field__desc {
	margin: 2px 0 8px;
	color: var(--c-mute);
	font-size: 15px;
}

.h-field__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.h-item {
	padding: 16px 0;
	border-top: 1px solid var(--c-line);
}

.h-item:first-child {
	border-top: 0;
}

.h-item__date {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin: 0 0 4px;
	color: var(--c-mute);
	font-size: 14px;
}

.h-item__new {
	padding: 1px 8px;
	border-radius: 6px;
	background: var(--tone-soft, var(--c-accent-soft));
	color: var(--tone, var(--c-accent));
	font-size: 13px;
	font-weight: 700;
}

.h-item__title {
	margin: 0;
	color: var(--h-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.h-item--lead .h-item__title {
	font-size: 20px;
	font-weight: 800;
}

.h-item__title a:hover {
	color: var(--tone, var(--c-accent));
	text-decoration: underline;
	text-underline-offset: 3px;
}

.h-item__summary {
	margin: 6px 0 0;
	color: var(--c-sub);
	font-size: 16px;
	line-height: 1.6;
}

.h-field__more {
	display: none;
}

/* 고친 글 */
.h-fixed {
	padding-bottom: 8px;
}

.h-fixed__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.h-fixed__item {
	padding: 16px 18px;
	border-left: 3px solid var(--h-point);
	border-radius: 0 12px 12px 0;
	background: var(--h-card);
}

.h-fixed__date {
	margin: 0 0 4px;
	color: var(--c-mute);
	font-size: 14px;
	font-weight: 600;
}

.h-fixed__title {
	margin: 0;
	color: var(--h-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
}

.h-fixed__title a:hover {
	color: var(--c-accent);
	text-decoration: underline;
}

.h-fixed__note {
	margin: 6px 0 0;
	color: var(--c-sub);
	font-size: 15px;
	line-height: 1.55;
}

/* 운영 원칙 한 줄 */
.h-rule {
	margin-top: 40px;
	border-top: 1px solid var(--c-line);
	background: var(--h-card);
}

.h-rule__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 0;
	margin: 0;
	padding: 18px 0;
	list-style: none;
	font-size: 15px;
}

.h-rule__list li {
	padding: 0 18px;
	color: var(--c-sub);
}

.h-rule__list li + li {
	border-left: 1px solid var(--c-line-strong);
}

.h-rule__list strong {
	color: var(--h-ink);
	font-weight: 800;
}

.h-rule__list a {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 960px) {
	.h-hero__inner {
		grid-template-columns: minmax(0, 1fr) 240px;
		gap: 20px 28px;
	}

	.h-fixed__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

/* 휴대폰: 위에서 아래로 한 줄. 본문 16~18px, 제목 20~24px, 제목은 줄이지 않고 줄바꿈 */
@media (max-width: 720px) {
	.h-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 22px;
		padding-bottom: 24px;
	}

	.h-hero__art {
		display: none;
	}

	.h-hero__name {
		margin-bottom: 8px;
	}

	.h-hero__slogan {
		font-size: 28px;
	}

	.h-hero__intro {
		margin-top: 12px;
		font-size: 17px;
	}

	.h-jump {
		margin-top: 16px;
	}

	.h-jump__btn {
		flex: 1 1 0;
		justify-content: center;
		padding: 8px 12px;
		font-size: 16px;
	}

	.h-sec {
		padding-top: 24px;
	}

	.h-sec__head {
		margin-bottom: 12px;
	}

	.h-sec__head h2 {
		font-size: 22px;
	}

	.h-picks__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.h-pick {
		gap: 14px;
		padding: 18px 16px;
	}

	.h-pick__icon {
		width: 44px;
		height: 44px;
		border-radius: 12px;
		font-size: 22px;
	}

	.h-pick__title {
		font-size: 20px;
	}

	.h-fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding-top: 28px;
	}

	.h-field {
		padding: 20px 18px 16px;
	}

	.h-field__title {
		font-size: 23px;
	}

	.h-item__title {
		font-size: 20px;
	}

	.h-item--lead .h-item__title {
		font-size: 21px;
	}

	.h-item__summary {
		font-size: 16px;
	}

	.h-field__more {
		display: flex;
		align-items: center;
		gap: 6px;
		justify-content: center;
		min-height: 48px;
		margin-top: 8px;
		border-radius: 12px;
		background: var(--tone-soft, var(--c-accent-soft));
		color: var(--tone, var(--c-accent));
		font-size: 16px;
		font-weight: 700;
	}

	.h-fixed__title {
		font-size: 18px;
	}

	.h-rule__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 18px 0 20px;
		font-size: 16px;
	}

	.h-rule__list li {
		padding: 0;
	}

	.h-rule__list li + li {
		border-left: 0;
	}
}
