/*
Theme Name:   dailykev
Theme URI:    https://dailykev.com
Description:  dailykev.com 자식 테마. 생활정보 블로그 (BENCHMARK.md · DESIGN.md 기준).
Template:     generatepress
Version:      0.2.0
Text Domain:  dailykev
*/

/* ================= 글꼴 (자체 호스팅, OFL) ================= */
@font-face {
	font-family: "Pretendard";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("fonts/Pretendard-Regular.subset.woff2") format("woff2");
}
@font-face {
	font-family: "Pretendard";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("fonts/Pretendard-Bold.subset.woff2") format("woff2");
}

/* ================= 토큰 ================= */
:root {
	--dk-ink: #16181d;
	--dk-muted: #575c66;          /* 흰 배경 대비 6.7:1 */
	--dk-line: #e4e5e8;
	--dk-bg: #ffffff;
	--dk-surface: #f5f6f4;

	--dk-brand: #0a4d47;          /* 헤더·푸터 띠 */
	--dk-brand-ink: #e9f5f3;      /* 띠 위 글자 */
	--dk-mint: #8fe0d2;           /* 띠 위 강조 */
	--dk-accent: #0b6b63;         /* 링크·번호 (흰 배경 대비 6.4:1) */
	--dk-accent-strong: #07524c;
	--dk-tint: #edf6f4;           /* 글 머리 띠·요약 상자 바탕 */
	--dk-tint-line: #cfe6e1;

	--dk-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
		"Noto Sans KR", "Malgun Gothic", sans-serif;
	--dk-measure: 680px;
	--dk-aside: 300px;
	--dk-gap: 56px;
	--dk-wide: calc(var(--dk-measure) + var(--dk-aside) + var(--dk-gap));
	--dk-body: 1.125rem;
	--dk-leading: 1.75;
	--dk-radius: 10px;
	--dk-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 768px) {
	:root { --dk-body: 1.1875rem; }
}

/* ================= 바탕 ================= */
body {
	font-family: var(--dk-font);
	font-size: var(--dk-body);
	line-height: var(--dk-leading);
	color: var(--dk-ink);
	background: var(--dk-bg);
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
	overflow-wrap: break-word;
}
::selection { background: #cdebe5; color: var(--dk-ink); }
:focus-visible { outline: 2px solid var(--dk-accent); outline-offset: 3px; border-radius: 2px; }
a { color: var(--dk-accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--dk-accent-strong); }
h1, h2, h3, h4 { font-family: var(--dk-font); font-weight: 700; color: var(--dk-ink); letter-spacing: -0.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
img { border-radius: 0; }

/* ================= 헤더: 청록 띠 + 워드마크 ================= */
.site-header { background: var(--dk-brand); border: 0; }
.site-header .inside-header {
	max-width: var(--dk-wide);
	margin: 0 auto;
	padding: 12px 16px;
}
@media (max-width: 768px) {
	.site-header .inside-header { padding: 6px 4px 6px 16px; }
}
.site-description { display: none; }
.main-title { margin: 0; line-height: 1; }
.dk-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--dk-brand-ink); text-decoration: none; }
.site-header .main-title a.dk-logo,
.site-header .main-title a.dk-logo:visited { color: var(--dk-brand-ink); }
.site-header .main-title a.dk-logo:hover,
.site-header .main-title a.dk-logo:focus { color: #fff; }
.dk-logo-mark { width: 28px; height: 28px; color: var(--dk-mint); flex: none; }
.dk-logo-text { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; color: inherit; }
.dk-logo-text b { color: var(--dk-mint); font-weight: 700; }

.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a,
.main-navigation .menu-bar-item > a {
	color: rgba(233, 245, 243, 0.86);
	font-size: 0.9375rem;
	padding-left: 12px;
	padding-right: 12px;
	line-height: 48px;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .menu-bar-item > a:hover { color: #fff; }
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-post-ancestor > a,
.main-navigation .main-nav ul li.current-category-ancestor > a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--dk-mint);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.55em;
}
.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus,
.main-navigation.toggled .menu-toggle { background: transparent; color: #fff; }
.main-navigation .inside-navigation { padding: 0; }
.main-navigation.toggled .main-nav > ul,
.main-navigation.toggled .main-nav ul li { background: var(--dk-brand); }
.main-navigation.toggled .main-nav ul { margin: 0; padding: 0; }
.main-navigation.toggled .main-nav ul li a {
	padding-left: 0;
	line-height: 46px;
	border-top: 1px solid rgba(233, 245, 243, 0.14);
	color: var(--dk-brand-ink);
}
.navigation-search input[type="search"],
.navigation-search input[type="search"]:focus { background: var(--dk-brand); color: #fff; border: 0; }

/* ================= 공통 레이아웃 ================= */
.site-content { padding: 0 16px; }
.one-container .site-content { padding: 0 16px; }
.one-container .container, .separate-containers .inside-article { background: transparent; }
.site-main { max-width: var(--dk-measure); margin-left: auto; margin-right: auto; }
.one-container .site-content .inside-article,
.separate-containers .inside-article { padding: 0; }
.site-main > article, .site-main .post { margin-bottom: 0; }

/* ================= 글 머리: 신뢰 블록 ================= */
.dk-hero { background: var(--dk-bg); }
.dk-hero-inner { max-width: calc(var(--dk-measure) + 32px); margin: 0 auto; padding: 28px 16px 26px; }
@media (min-width: 1100px) { .dk-hero-inner { max-width: calc(var(--dk-wide) + 32px); } }
.dk-hero-inner > * { max-width: 780px; }
.dk-crumbs { font-size: 0.875rem; line-height: 1.5; }
.dk-crumbs ol { display: flex; flex-wrap: wrap; gap: 0 6px; list-style: none; margin: 0; padding: 0; }
.dk-crumbs li + li::before { content: "›"; margin-right: 6px; color: #7d8a87; }
.dk-crumbs a { color: var(--dk-accent); text-decoration: none; font-weight: 700; }
.dk-crumbs a:hover { text-decoration: underline; }
.dk-title {
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
	line-height: 1.28;
	letter-spacing: -0.03em;
	margin: 10px 0 12px;
}
.dk-deck { font-size: 1.0625rem; line-height: 1.65; color: #3b4048; margin: 0 0 18px; }
@media (min-width: 768px) { .dk-deck { font-size: 1.1875rem; } }
.dk-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding-top: 16px;
	border-top: 1px solid var(--dk-tint-line);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--dk-muted);
}
.dk-avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--dk-brand);
	color: var(--dk-mint);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	flex: none;
}
.dk-byline-text { display: flex; flex-direction: column; }
.dk-byline-text a { color: var(--dk-ink); font-weight: 700; text-decoration: none; }
.dk-byline-text a:hover { text-decoration: underline; }
.dk-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 5px 12px 5px 8px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--dk-tint-line);
	color: var(--dk-accent-strong);
	font-weight: 700;
	font-size: 0.8125rem;
}
.dk-badge svg { width: 18px; height: 18px; color: var(--dk-accent); }
@media (max-width: 520px) { .dk-badge { margin-left: 0; } }

/* ================= 글 페이지: 본문 + 오른쪽 칸 ================= */
.single-post .site-content { display: block; }
.single-post .site-main { padding-top: 32px; padding-bottom: 64px; }
.dk-aside { display: none; }
@media (min-width: 1100px) {
	.single-post .site-content {
		display: grid;
		grid-template-columns: minmax(0, var(--dk-measure)) var(--dk-aside);
		gap: var(--dk-gap);
		justify-content: center;
		max-width: calc(var(--dk-wide) + 32px);
		margin: 0 auto;
	}
	.single-post .content-area { width: auto; }
	.single-post .site-main { margin: 0; }
	.dk-aside { display: block; padding-top: 32px; }
	.dk-aside-sticky { position: sticky; top: 24px; display: grid; gap: 20px; }
	.dk-toc-inline { display: none; }
}
.dk-aside-box { padding: 18px 20px; border: 1px solid var(--dk-line); border-radius: var(--dk-radius); background: #fff; }
.dk-aside-title { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; color: var(--dk-muted); }
.dk-toc-side ol { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; line-height: 1.55; }
.dk-toc-side li { margin-bottom: 8px; }
.dk-toc-side li::marker { color: var(--dk-accent); font-weight: 700; }
.dk-toc-side li.dk-toc-sub { list-style: none; margin-left: 0.2em; font-size: 0.875rem; }
.dk-toc-side a { color: var(--dk-ink); text-decoration: none; }
.dk-toc-side a:hover { color: var(--dk-accent); text-decoration: underline; }

/* ================= 본문 ================= */
.dk-featured { margin: 0 0 28px; }
.dk-featured img { width: 100%; height: auto; border-radius: var(--dk-radius); display: block; }
.dk-featured figcaption { font-size: 0.8125rem; color: var(--dk-muted); margin-top: 8px; }

.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 {
	font-size: 1.4375rem;
	line-height: 1.4;
	margin-top: 2.3em;
	margin-bottom: 0.7em;
	scroll-margin-top: 24px;
}
.entry-content h3 { font-size: 1.1875rem; line-height: 1.45; margin-top: 1.8em; margin-bottom: 0.5em; scroll-margin-top: 24px; }
/* 큰 소제목에 번호 칸 (글 페이지만) */
.single-post .entry-content { counter-reset: dk-h2; }
.single-post .entry-content > h2 { display: flex; gap: 12px; align-items: flex-start; }
.single-post .entry-content > h2::before {
	counter-increment: dk-h2;
	content: counter(dk-h2);
	flex: none;
	display: grid;
	place-items: center;
	width: 1.6em;
	height: 1.6em;
	margin-top: -0.05em;
	border-radius: 8px;
	background: var(--dk-brand);
	color: var(--dk-mint);
	font-size: 0.875em;
	letter-spacing: 0;
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-left: 0; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--dk-accent); }
.entry-content strong { font-weight: 700; }
.entry-content img { border-radius: 8px; }
.entry-content figcaption, .wp-element-caption { font-size: 0.875rem; color: var(--dk-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote {
	margin: 0 0 1.25em;
	padding: 18px 22px;
	background: var(--dk-surface);
	border: 0;
	border-radius: var(--dk-radius);
	font-style: normal;
	font-size: 1em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.55;
	font-variant-numeric: tabular-nums;
	border: 0;
}
.entry-content th, .entry-content td { padding: 11px 12px; border: 0; border-bottom: 1px solid var(--dk-line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--dk-tint); border-bottom: 2px solid var(--dk-brand); font-weight: 700; }

/* 핵심 요약 */
.dk-summary {
	margin: 0 0 24px;
	padding: 20px 22px 8px;
	background: var(--dk-tint);
	border: 1px solid var(--dk-tint-line);
	border-radius: var(--dk-radius);
}
.dk-summary-title { margin: 0 0 10px; font-size: 0.9375rem; font-weight: 700; color: var(--dk-accent-strong); }
.dk-summary ul { list-style: none; padding: 0; margin: 0; }
.dk-summary li { position: relative; padding-left: 28px; margin-bottom: 12px; line-height: 1.6; }
.dk-summary li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--dk-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14.2 7.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* 목차 (모바일·태블릿: 본문 안) */
.dk-toc-inline { margin: 0 0 2em; padding: 2px 20px; border: 1px solid var(--dk-line); border-radius: var(--dk-radius); }
.dk-toc-inline summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	font-size: 0.9375rem;
	font-weight: 700;
}
.dk-toc-inline summary::-webkit-details-marker { display: none; }
.dk-toc-inline summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--dk-muted);
	border-bottom: 1.5px solid var(--dk-muted);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 200ms var(--dk-ease);
}
.dk-toc-inline details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.dk-toc-inline ol { margin: 0 0 14px; padding-left: 1.3em; font-size: 0.9375rem; line-height: 1.6; }
.dk-toc-inline li { margin: 0 0 6px; }
.dk-toc-inline li::marker { color: var(--dk-accent); font-weight: 700; }
.dk-toc-inline li.dk-toc-sub { list-style: none; }
.dk-toc-inline a { color: var(--dk-ink); text-decoration: none; }
.dk-toc-inline a:hover { color: var(--dk-accent); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .dk-toc-inline summary::after { transition: none; } }

/* 광고 자리 (dk_ads_enabled 켠 뒤에만 출력) */
.dk-ad { margin: 2em 0; min-height: 120px; text-align: center; }
.dk-ad-label { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; color: #8a8f98; margin-bottom: 6px; }
.dk-ad-side { min-height: 250px; }

/* 글 꼬리 */
footer.entry-meta { margin-top: 40px; font-size: 0.875rem; color: var(--dk-muted); }
footer.entry-meta a { color: var(--dk-muted); }
.post-navigation { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dk-line); display: grid; gap: 12px; }
@media (min-width: 640px) {
	.post-navigation { grid-template-columns: 1fr 1fr; }
	.post-navigation .nav-next { text-align: right; }
}
.post-navigation .gp-icon { display: none; }
.dk-nav-label { display: block; font-size: 0.8125rem; color: var(--dk-muted); }
.post-navigation a { color: var(--dk-ink); font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.post-navigation a:hover { color: var(--dk-accent); }

/* ================= 카드 (관련 글·최신 글) ================= */
.dk-related { margin-top: 48px; }
.dk-related-title, .dk-block-title { font-size: 1.1875rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.dk-card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dk-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dk-card-link { display: block; color: var(--dk-ink); text-decoration: none; }
.dk-card-link:hover .dk-card-title, .dk-card-link:focus .dk-card-title { color: var(--dk-accent); }
.dk-card-media {
	aspect-ratio: 16 / 9;
	border-radius: var(--dk-radius);
	overflow: hidden;
	background: var(--dk-tint);
}
.dk-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--dk-ease); }
.dk-card-link:hover .dk-card-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .dk-card-media img { transition: none; } }
.dk-card-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--dk-tint);
	color: var(--dk-accent);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}
.dk-card-body { padding-top: 10px; }
.dk-card-cat { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--dk-accent); margin-bottom: 2px; }
.dk-card-title { font-size: 1rem; line-height: 1.45; margin: 0; transition: color 150ms ease; }

/* ================= 홈 ================= */
.dk-home .site-main { max-width: var(--dk-wide); padding: 32px 0 64px; }
.dk-home-intro { padding: 4px 0 24px; }
.dk-home-intro h1 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem); line-height: 1.3; letter-spacing: -0.03em; margin: 0 0 8px; }
.dk-home-intro p { color: var(--dk-muted); margin: 0; font-size: 1rem; }

.dk-top { display: grid; gap: 28px; margin-bottom: 44px; }
@media (min-width: 900px) { .dk-top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; } }
.dk-feature .dk-card-media { aspect-ratio: 16 / 9; }
.dk-feature-body { padding-top: 14px; }
.dk-feature-title { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem); line-height: 1.3; margin: 2px 0 8px; letter-spacing: -0.03em; }
.dk-feature-excerpt { color: var(--dk-muted); font-size: 1rem; line-height: 1.65; margin: 0; }
.dk-card-link:hover .dk-feature-title { color: var(--dk-accent); }

.dk-popular { border-top: 3px solid var(--dk-brand); padding-top: 14px; }
.dk-rank { list-style: none; margin: 0; padding: 0; counter-reset: dk-rank; }
.dk-rank li {
	counter-increment: dk-rank;
	display: grid;
	grid-template-columns: 34px 1fr;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 1px solid var(--dk-line);
	font-size: 1rem;
	line-height: 1.45;
}
.dk-rank li::before { content: counter(dk-rank); font-size: 1.375rem; font-weight: 700; color: var(--dk-accent); font-variant-numeric: tabular-nums; }
.dk-rank a { color: var(--dk-ink); text-decoration: none; font-weight: 700; }
.dk-rank a:hover { color: var(--dk-accent); text-decoration: underline; }
.dk-rank-small li { grid-template-columns: 26px 1fr; padding: 8px 0; font-size: 0.875rem; }
.dk-rank-small li::before { font-size: 1rem; }
.dk-rank-small li:last-child { border-bottom: 0; }

.dk-topics { margin-bottom: 44px; }
.dk-topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .dk-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dk-topic-grid a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	color: var(--dk-ink);
	text-decoration: none;
	transition: border-color 150ms ease, background-color 150ms ease;
}
.dk-topic-grid a:hover { border-color: var(--dk-accent); background: var(--dk-tint); }
.dk-topic-name { font-weight: 700; font-size: 1.0625rem; }
.dk-topic-desc { font-size: 0.875rem; line-height: 1.5; color: var(--dk-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-topic-count { margin-top: auto; padding-top: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--dk-accent); }

.dk-latest .dk-card-grid { row-gap: 32px; }
.nav-links { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.9375rem; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--dk-line); border-radius: 6px; text-decoration: none; color: var(--dk-ink); }
.nav-links .page-numbers.current { background: var(--dk-brand); border-color: var(--dk-brand); color: #fff; }

/* ================= 카테고리·검색 목록 ================= */
.archive .site-main, .search .site-main { padding-top: 32px; padding-bottom: 64px; }
.page-header { margin-bottom: 4px; padding: 0 0 20px; background: transparent; border-bottom: 2px solid var(--dk-brand); }
.page-header .page-title { margin-bottom: 6px; font-size: clamp(1.625rem, 1.15rem + 2.2vw, 2.25rem); }
.taxonomy-description { color: var(--dk-muted); font-size: 1rem; }
.taxonomy-description p { margin: 0; }
.archive .site-main > article, .search .site-main > article {
	position: relative;
	padding: 22px 0;
	min-height: 140px;
	border-bottom: 1px solid var(--dk-line);
}
.dk-list-thumb {
	position: absolute;
	right: 0;
	top: 22px;
	width: 96px;
	height: 96px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--dk-tint);
}
.dk-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-list-thumb .dk-card-placeholder { font-size: 0.875rem; }
.archive .entry-header, .search .entry-header,
.archive .entry-summary, .search .entry-summary { padding-right: 112px; }
.archive .entry-title, .search .entry-title { font-size: 1.1875rem; line-height: 1.4; margin-bottom: 4px; }
.archive .entry-title a, .search .entry-title a { color: var(--dk-ink); text-decoration: none; }
.archive .entry-title a:hover, .search .entry-title a:hover { color: var(--dk-accent); }
.archive .entry-meta, .search .entry-meta { font-size: 0.8125rem; color: var(--dk-muted); margin-top: 0; }
.archive .entry-summary, .search .entry-summary { color: var(--dk-muted); font-size: 0.9375rem; line-height: 1.6; margin-top: 6px; }
.archive .entry-summary p, .search .entry-summary p { margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive footer.entry-meta, .search footer.entry-meta, .read-more-container { display: none; }

/* ================= 고정 페이지 · 빈 화면 · 404 ================= */
.page .site-main { padding-top: 40px; padding-bottom: 64px; }
.page .entry-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--dk-brand); }
.page .entry-title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.375rem); line-height: 1.28; margin: 0; }
.dk-contact-email { font-size: 1.25rem; font-weight: 700; }
.dk-contact-email a { text-decoration: none; }
.error404 .site-main, .no-results { padding-top: 40px; padding-bottom: 64px; }
.no-results .entry-title, .error404 .entry-title { font-size: clamp(1.625rem, 1.15rem + 2.2vw, 2.25rem); line-height: 1.3; }
.archive .no-results { padding-top: 32px; }
.dk-browse { margin-top: 40px; }
.dk-browse h2 { font-size: 1rem; margin: 28px 0 12px; }
.dk-browse ul { padding-left: 1.2em; }
.dk-browse ul.dk-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.dk-chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--dk-line); border-radius: 999px; color: var(--dk-ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.5; }
.dk-chips a:hover { border-color: var(--dk-accent); color: var(--dk-accent); }

/* ================= 검색창·버튼 ================= */
input[type="search"], input[type="text"], input[type="email"], textarea {
	border: 1px solid var(--dk-line);
	border-radius: 8px;
	background: var(--dk-bg);
	color: var(--dk-ink);
	font-family: var(--dk-font);
}
button, input[type="submit"], .button { background: var(--dk-brand); color: #fff; border-radius: 8px; font-family: var(--dk-font); font-weight: 700; }
button:hover, input[type="submit"]:hover, .button:hover { background: var(--dk-accent); color: #fff; }
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 44px; padding: 0 14px; }
.search-form .search-submit { height: 44px; min-width: 44px; padding: 0 14px; }

/* ================= 사이트 푸터: 청록 띠 ================= */
.site-info { background: var(--dk-brand); color: rgba(233, 245, 243, 0.78); border: 0; }
.inside-site-info { padding: 40px 16px 44px; }
.copyright-bar { width: 100%; }
.dk-footer {
	max-width: var(--dk-wide);
	margin: 0 auto;
	display: grid;
	gap: 24px 48px;
	grid-template-columns: 1fr;
	font-size: 0.875rem;
	line-height: 1.7;
	text-align: left;
}
@media (min-width: 768px) { .dk-footer { grid-template-columns: 2fr 1fr 1fr; } }
.dk-footer-brand .dk-logo-text { color: var(--dk-brand-ink); font-size: 1.25rem; }
.dk-footer-brand p { margin: 4px 0 0; }
.dk-footer-h { margin: 0 0 6px; font-weight: 700; color: var(--dk-brand-ink); }
.dk-footer ul { list-style: none; margin: 0; padding: 0; }
.dk-footer a { color: rgba(233, 245, 243, 0.78); text-decoration: none; }
.dk-footer a:hover { color: #fff; text-decoration: underline; }
.dk-copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid rgba(233, 245, 243, 0.14); }

/* =================================================================
 * 3차 벤치마킹 반영 (BENCHMARK.md): 흰 글 머리 · 큰 대표 이미지 ·
 * 핵심만 보기 · 공유 · 숫자 카드 · 계산기 · 버튼 · 형광펜 · 제휴 고지
 * ================================================================= */
.dk-hero-inner { padding-bottom: 8px; }
.dk-byline { border-top: 0; padding-top: 4px; }
.dk-avatar { overflow: hidden; width: 40px; height: 40px; }
.dk-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dk-jump, .dk-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	font: 700 0.875rem/1 var(--dk-font);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.dk-jump { background: var(--dk-brand); color: #fff; border: 1px solid var(--dk-brand); }
.dk-jump:hover, .dk-jump:focus { background: var(--dk-accent); border-color: var(--dk-accent); color: #fff; }
.dk-jump svg { width: 16px; height: 16px; }
.dk-share { background: #fff; color: var(--dk-ink); border: 1px solid var(--dk-line); }
.dk-share:hover, .dk-share:focus { background: #fff; border-color: var(--dk-accent); color: var(--dk-accent); }

/* 대표 이미지: 제목 바로 아래, 모바일은 화면 꽉 차게 */
.single-post .site-main { padding-top: 16px; }
@media (max-width: 767px) {
	.dk-featured { margin-left: -16px; margin-right: -16px; }
	.dk-featured img { border-radius: 0; }
}
.dk-key-anchor { scroll-margin-top: 16px; }

/* 숫자 카드 */
.dk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
@media (min-width: 768px) { .dk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dk-stat { padding: 16px; border: 1px solid var(--dk-line); border-radius: var(--dk-radius); background: #fff; }
.dk-stat strong { display: block; font-size: 1.375rem; line-height: 1.2; color: var(--dk-accent-strong); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dk-stat span { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; color: var(--dk-muted); }

/* 형광펜 강조: 본문에서 <mark> */
.entry-content mark { background: linear-gradient(transparent 55%, #fff1a8 55%); color: inherit; padding: 0 1px; }

/* 공식 사이트 바로가기 버튼 */
.dk-cta { margin: 1.5em 0; }
.dk-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 54px;
	padding: 12px 20px;
	border-radius: 12px;
	background: var(--dk-brand);
	color: #fff;
	font-weight: 700;
	font-size: 1.0625rem;
	text-decoration: none;
	text-align: center;
	transition: background-color 150ms ease;
}
.dk-cta a:hover, .dk-cta a:focus { background: var(--dk-accent); color: #fff; }
.dk-cta svg { width: 18px; height: 18px; flex: none; }

/* 계산기 */
.dk-calc { margin: 1.5em 0 2em; padding: 22px 20px; border: 2px solid var(--dk-brand); border-radius: 14px; background: #fff; }
.dk-calc-title { margin: 0 0 14px; font-weight: 700; font-size: 1.0625rem; }
.dk-calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dk-calc label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--dk-muted); }
.dk-calc input[type="number"] {
	display: block;
	width: 100%;
	height: 50px;
	margin-top: 6px;
	padding: 0 14px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--dk-ink);
	border: 1px solid var(--dk-line);
	border-radius: 10px;
	font-variant-numeric: tabular-nums;
}
.dk-calc input[type="number"]:focus { border-color: var(--dk-accent); outline: 2px solid var(--dk-tint-line); }
.dk-calc .dk-calc-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 400; color: var(--dk-ink); }
.dk-calc-check input { width: 18px; height: 18px; accent-color: var(--dk-accent); }
.dk-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.dk-calc-out > div { padding: 12px 14px; border-radius: 10px; background: var(--dk-tint); }
.dk-calc-out > div:first-child { grid-column: 1 / -1; background: var(--dk-brand); }
.dk-calc-out dt { font-size: 0.8125rem; color: var(--dk-muted); }
.dk-calc-out dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dk-calc-out > div:first-child dt { color: var(--dk-mint); }
.dk-calc-out > div:first-child dd { color: #fff; font-size: 1.625rem; }
.dk-calc-note { margin: 10px 0 0; font-size: 0.875rem; color: #a23b1d; min-height: 0; }
.dk-calc-note:empty { display: none; }

/* 제휴 고지 */
.dk-disclosure { padding: 14px 16px; background: var(--dk-surface); border-radius: 8px; font-size: 0.875rem; line-height: 1.6; color: var(--dk-muted); }

/* 인기글 조회수 */
.dk-rank li > span { display: block; }
.dk-views { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 400; color: var(--dk-muted); }

/* 휴대폰: 4칸 표도 화면 안에 들어오게 */
@media (max-width: 600px) {
	.entry-content table { font-size: 0.8125rem; line-height: 1.45; }
	.entry-content th, .entry-content td { padding: 8px 6px; overflow-wrap: anywhere; }
	.entry-content th:first-child, .entry-content td:first-child { padding-left: 4px; }
}

/* 계산기 선택 상자 */
.dk-calc select { display: block; width: 100%; height: 50px; margin-top: 6px; padding: 0 12px; font: 700 1rem var(--dk-font); color: var(--dk-ink); border: 1px solid var(--dk-line); border-radius: 10px; background: #fff; }
.dk-calc .dk-calc-fields + .dk-calc-fields { margin-top: 12px; }
