/*
Theme Name: Editlab Media
Theme URI: https://editlabmedia.com
Author: Editlab
Description: 에디트랩 미디어 회사 홈페이지 테마. 매체 열 곳의 새 글, 도구, 책과 채널을 한 화면에.
Version: 1.0.9
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editlab-media
*/

/* ── 색 · 글꼴 · 간격 ───────────────────────────────────────────── */
:root {
	--paper: #ffffff;
	--paper-2: #f3f5f9;
	--paper-3: #e8ecf3;
	--ink: #111b2e;
	--ink-2: #3a4659;
	--ink-3: #687285;
	--line: #dde3ec;
	--line-2: #c7d0dd;
	--accent: #2e63b0;
	--accent-ink: #1b2f57;
	--accent-soft: #e9f0fb;
	--mk-1: #1b2f57;
	--mk-2: #2e63b0;
	--mk-3: #4a8fd6;
	--band: #1b2f57;
	--band-ink: #ffffff;
	--band-ink-2: rgba(255, 255, 255, .78);
	--band-line: rgba(255, 255, 255, .3);
	--radius: 12px;
	--radius-s: 8px;
	--w: 1200px;
	--gut: clamp(16px, 4vw, 40px);
	--font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0c1322;
		--paper-2: #111a2c;
		--paper-3: #172238;
		--ink: #e8edf6;
		--ink-2: #b8c2d3;
		--ink-3: #8a96aa;
		--line: #212e46;
		--line-2: #2e3e5c;
		--accent: #7eabeb;
		--accent-ink: #cfe0f8;
		--accent-soft: #15233d;
		--mk-1: #e8edf6;
		--mk-2: #7eabeb;
		--mk-3: #4a8fd6;
		--band: #16233b;
		--band-ink: #e8edf6;
		--band-ink-2: #b8c2d3;
		--band-line: #2e3e5c;
		color-scheme: dark;
	}
}

/* ── 기본 ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	word-break: keep-all;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "tnum" 0;
}

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

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

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

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

h1,
h2,
h3,
h4 {
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

.wrap {
	width: 100%;
	max-width: var(--w);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.wrap-narrow {
	width: 100%;
	max-width: calc(720px + 2 * var(--gut));
	margin-inline: auto;
	padding-inline: var(--gut);
}

.wrap-wide {
	width: 100%;
	max-width: calc(1040px + 2 * var(--gut));
	margin-inline: auto;
	padding-inline: var(--gut);
}

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

.skip {
	position: absolute;
	left: 12px;
	top: -48px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius-s);
	font-weight: 600;
}

.skip:focus {
	top: 12px;
	color: var(--paper);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--accent-ink);
	border-radius: 999px;
	background: var(--accent-ink);
	color: var(--paper);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--paper);
}

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

.btn-quiet:hover {
	background: var(--paper-2);
	border-color: var(--ink-3);
	color: var(--ink);
}

.mini-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-3);
	letter-spacing: .01em;
}

/* ── 머리말 ───────────────────────────────────────────────────── */
.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-head {
	top: 32px;
}

.head-row {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	flex-shrink: 0;
}

.brand:hover {
	color: var(--ink);
}

.brand-name {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.brand-logo {
	width: auto;
	height: 32px;
}

.mark {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.mk-frame {
	fill: none;
	stroke: var(--mk-1);
	stroke-width: 2.2;
}

.mk-1 {
	fill: var(--mk-1);
}

.mk-2 {
	fill: var(--mk-2);
}

.mk-3 {
	fill: var(--mk-3);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
}

.nav-list a,
.nav-search {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-s);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.nav-list a:hover,
.nav-search:hover {
	background: var(--paper-2);
	color: var(--ink);
}

.nav-list .current-menu-item > a {
	color: var(--ink);
}

.nav-search {
	margin-left: 6px;
	border: 1px solid var(--line);
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: transparent;
	cursor: pointer;
	position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	content: "";
	transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bar {
	top: 21px;
}

.nav-toggle-bar::before {
	left: 0;
	top: -6px;
}

.nav-toggle-bar::after {
	left: 0;
	top: 6px;
}

.nav-open .nav-toggle-bar {
	background: transparent;
}

.nav-open .nav-toggle-bar::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-bar::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ── 홈: 첫 화면 ─────────────────────────────────────────────── */
.hero {
	padding: clamp(44px, 7vw, 104px) 0 clamp(36px, 5vw, 72px);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.hero-title {
	margin: 0 0 22px;
	font-size: clamp(36px, 5vw, 62px);
	line-height: 1.12;
	letter-spacing: -0.04em;
	font-weight: 800;
	color: var(--ink);
}

.hero-sub {
	max-width: 30em;
	margin: 0 0 30px;
	font-size: clamp(17px, 1.55vw, 20px);
	line-height: 1.65;
	color: var(--ink-2);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.hero-latest {
	padding-top: 6px;
}

.latest {
	list-style: none;
	border-top: 1px solid var(--ink);
}

.latest li {
	border-bottom: 1px solid var(--line);
}

.latest-link {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"site time"
		"title title";
	gap: 4px 12px;
	padding: 13px 0 14px;
	color: var(--ink);
}

.latest-link:hover .latest-title {
	color: var(--accent);
}

.latest-site {
	grid-area: site;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
	color: color-mix(in srgb, var(--c) 72%, var(--ink));
}

.latest-site::before {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--c);
	content: "";
	flex-shrink: 0;
}

.latest-time {
	grid-area: time;
	font-size: 13px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.latest-title {
	grid-area: title;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .15s ease;
}

.latest.is-sites .latest-title {
	font-weight: 500;
	color: var(--ink-2);
}

/* ── 홈: 칸 공통 ──────────────────────────────────────────────── */
.sec {
	padding: clamp(52px, 7vw, 96px) 0;
	border-top: 1px solid var(--line);
}

.sec-tint {
	background: var(--paper-2);
}

.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
	margin-bottom: clamp(24px, 3vw, 36px);
}

.sec-title {
	margin: 0;
	font-size: clamp(27px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.sec-desc {
	margin: 0;
	font-size: 16px;
	color: var(--ink-3);
}

.sec-more {
	margin-left: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--accent);
}

.sec-more::after {
	content: " →";
}

/* ── 홈: 매체(가판대) ────────────────────────────────────────── */
.stand {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 208px), 1fr));
	gap: 14px;
	list-style: none;
}

.cover {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 236px;
	padding: 20px 18px 16px;
	border: 1px solid var(--line);
	border-color: color-mix(in srgb, var(--c) 22%, var(--line));
	border-radius: var(--radius);
	background: var(--paper-2);
	background: color-mix(in srgb, var(--c) 7%, var(--paper));
	transition: border-color .15s ease;
}

.cover:hover {
	border-color: color-mix(in srgb, var(--c) 55%, var(--line));
}

.cover-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cover-name {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--ink);
	color: color-mix(in srgb, var(--c) 78%, var(--ink));
}

.cover-main:hover .cover-name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.cover-topic {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-2);
}

.cover-heads {
	list-style: none;
	display: grid;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	border-top-color: color-mix(in srgb, var(--c) 20%, var(--line));
}

.cover-heads a {
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cover-heads a:hover {
	color: var(--accent);
}

.cover-host {
	margin-top: auto;
	font-size: 12.5px;
	color: var(--ink-3);
	letter-spacing: .01em;
}

/* ── 홈: 도구 ─────────────────────────────────────────────────── */
.tools {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 12px;
	list-style: none;
}

.tool {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	transition: border-color .15s ease;
}

.tool:hover {
	border-color: var(--accent);
	color: var(--ink);
}

.tool-name {
	font-size: 17.5px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.tool:hover .tool-name {
	color: var(--accent);
}

.tool-desc {
	font-size: 14.5px;
	color: var(--ink-2);
}

.tool-site {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--ink-3);
}

.tool-site::before {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--c);
	content: "";
}

/* ── 홈: 인사이트 ─────────────────────────────────────────────── */
.insight {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 28px 24px;
}

.insight-item {
	display: grid;
	align-content: start;
	gap: 8px;
	padding-top: 16px;
	border-top: 2px solid var(--ink);
}

.insight-cat {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.insight-title {
	margin: 0;
	font-size: 19px;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.insight-excerpt {
	margin: 0;
	font-size: 14.5px;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.insight-date {
	font-size: 13px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

/* ── 홈: 책 ───────────────────────────────────────────────────── */
.books {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 220px));
	justify-content: start;
	gap: 28px 24px;
	list-style: none;
}

.book {
	display: grid;
	gap: 6px;
	color: var(--ink);
}

.book-cover {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 3 / 4;
	margin-bottom: 10px;
	padding: 18px 16px;
	border-radius: 4px 10px 10px 4px;
	background: #1b2f57;
	box-shadow: inset 6px 0 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(17, 27, 46, .12);
	transition: transform .2s ease;
}

.books li:nth-child(4n+2) .book-cover {
	background: #2e63b0;
}

.books li:nth-child(4n+3) .book-cover {
	background: #33415c;
}

.books li:nth-child(4n+4) .book-cover {
	background: #4a6488;
}

.book:hover .book-cover {
	transform: translateY(-3px);
}

.book-cover-title {
	color: #ffffff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, .45);
}

/* 실제 표지: A5 비율(148 × 210), 왼쪽에 책등 그늘 한 줄 */
.book-cover.has-img {
	position: relative;
	display: block;
	aspect-ratio: 148 / 210;
	padding: 0;
	overflow: hidden;
	border-radius: 3px 8px 8px 3px;
	background: var(--paper-3);
	box-shadow: 0 0 0 1px var(--line-2), 0 12px 24px -16px rgba(17, 27, 46, .5);
}

.book-cover.has-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-cover.has-img::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 8px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(255, 255, 255, .12) 60%, rgba(255, 255, 255, 0));
	pointer-events: none;
}

.book-title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.book:hover .book-title {
	color: var(--accent);
}

.book-meta {
	font-size: 13.5px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

/* ── 홈: 채널 ─────────────────────────────────────────────────── */
.channels {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 28px 24px;
}

.ch-title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line-2);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink-2);
}

.ch-list {
	list-style: none;
	display: grid;
	gap: 9px;
}

.ch-list a {
	font-size: 16px;
	color: var(--ink);
}

.ch-list a:hover {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── 홈: 회사 ─────────────────────────────────────────────────── */
.company {
	background: var(--band);
	color: var(--band-ink);
	border-top: 0;
}

.company .sec-title {
	color: var(--band-ink);
}

.company-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
}

.company-line {
	max-width: 36em;
	margin: 12px 0 0;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6;
	color: var(--band-ink-2);
}

.company-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.company-links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--band-line);
	border-radius: 999px;
	color: var(--band-ink);
	font-size: 15px;
	font-weight: 600;
}

.company-links a:hover {
	border-color: var(--band-ink);
	color: var(--band-ink);
}

/* ── 목록 · 검색 · 404 ───────────────────────────────────────── */
.list-wrap {
	padding-top: clamp(36px, 6vw, 72px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.list-head {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ink);
}

.list-title {
	margin: 0;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.list-desc {
	margin-top: 8px;
	color: var(--ink-2);
}

.list-head .search-form {
	margin-top: 20px;
}

.rows {
	display: grid;
}

.row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.row:not(:has(.row-thumb)) {
	grid-template-columns: minmax(0, 1fr);
}

.row-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-s);
	background: var(--paper-2);
}

.row-body {
	display: grid;
	align-content: start;
	gap: 6px;
}

.row-cat {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.row-title {
	margin: 0;
	font-size: 21px;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.row-excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--ink-2);
}

.row-meta {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.empty {
	padding: 40px 0;
	color: var(--ink-3);
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.search-input {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.search-input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.notfound-code {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.notfound-home {
	margin-top: 24px;
}

.pagination {
	margin-top: 36px;
}

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

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

/* ── 글 ───────────────────────────────────────────────────────── */
.entry-head {
	padding-top: clamp(36px, 6vw, 76px);
	padding-bottom: 24px;
}

.entry-cat {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

.entry-title {
	margin: 12px 0 18px;
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.22;
	letter-spacing: -0.035em;
	font-weight: 800;
}

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

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: 14.5px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.entry-figure {
	margin: 8px auto 36px;
}

.entry-figure img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	padding-bottom: 56px;
	font-size: 18px;
	line-height: 1.85;
	color: var(--ink);
}

.entry-content p {
	margin: 0 0 1.25em;
}

.entry-content .lead {
	margin-bottom: 1.5em;
	font-size: 1.14em;
	line-height: 1.75;
	color: var(--ink);
}

.entry-content h2 {
	margin: 2.2em 0 .7em;
	font-size: 1.5em;
	line-height: 1.35;
	letter-spacing: -0.025em;
}

.entry-content h3 {
	margin: 1.9em 0 .6em;
	font-size: 1.25em;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.entry-content h4 {
	margin: 1.6em 0 .5em;
	font-size: 1.08em;
}

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

/* 인사이트 글 '바로가기'(발행기 add_go_banners): 목차 아래 배너 + 문단 뒤 한 줄. 대표 11/13 지시 */
.entry-content .em-go {
	display: grid;
	gap: 10px;
	margin: 1.4em 0 2em;
}

.entry-content .em-go-head {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink-3);
}

.entry-content .em-go-link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 14px;
	padding: 15px 18px 16px 20px;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--paper);
	line-height: 1.45;
	text-decoration: none;
	transition: background-color .15s ease;
}

.entry-content .em-go-cta {
	display: inline-flex;
	grid-column: 2;
	grid-row: 1 / span 2;
	align-items: center;
	gap: 6px;
	padding-left: 14px;
	border-left: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.entry-content .em-go-cta::after {
	content: "\203A";
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.entry-content .em-go-link:hover {
	background: var(--accent-ink);
}

.entry-content .em-go-site {
	grid-column: 1;
	justify-self: start;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--paper) 22%, transparent);
	font-size: 12.5px;
	font-weight: 700;
}

.entry-content .em-go-text {
	grid-column: 1;
	font-size: 17px;
	font-weight: 700;
	word-break: keep-all;
}

.entry-content .em-go-line {
	margin: -.3em 0 1.6em;
}

.entry-content .em-go-line a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 17px;
	border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	word-break: keep-all;
}

.entry-content .em-go-line-c {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-left: 10px;
	border-left: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
	white-space: nowrap;
}

.entry-content .em-go-line-c::after {
	content: "\203A";
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.entry-content .em-go-line a:hover {
	background: var(--accent);
	color: var(--paper);
}

.entry-content .em-go-link:focus-visible,
.entry-content .em-go-line a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25em;
	padding-left: 1.3em;
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.1em;
	border-left: 3px solid var(--accent);
	color: var(--ink-2);
}

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

.entry-content figure {
	margin: 1.8em 0;
}

.entry-content img {
	border-radius: var(--radius-s);
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink-3);
	text-align: center;
}

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

.entry-content table {
	display: table;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.6em;
	border-collapse: collapse;
	font-size: .9em;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
}

.entry-content th,
.entry-content td {
	padding: .65em .8em;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--paper-2);
	font-weight: 700;
}

.entry-content code {
	font-family: var(--mono);
	font-size: .88em;
	padding: .1em .35em;
	border-radius: 4px;
	background: var(--paper-2);
}

.entry-content pre {
	overflow-x: auto;
	padding: 1em 1.2em;
	border-radius: var(--radius-s);
	background: var(--paper-2);
	line-height: 1.6;
}

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

.entry-content .alignwide {
	width: min(1040px, 100vw - 2 * var(--gut));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
	border-radius: 0;
}

.entry-content .alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

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

.entry-foot {
	padding-bottom: 48px;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.entry-tags a {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--paper-2);
	font-size: 14px;
	color: var(--ink-2);
}

.more {
	padding-top: 40px;
	padding-bottom: clamp(56px, 7vw, 96px);
	border-top: 1px solid var(--line);
}

.more-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 12px;
}

.more-item {
	display: grid;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.more-item:hover {
	border-color: var(--accent);
	color: var(--ink);
}

.more-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
}

.more-date {
	font-size: 13px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

/* ── 꼬리말 ───────────────────────────────────────────────────── */
.site-foot {
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.foot-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px 40px;
	padding-top: 40px;
	padding-bottom: 28px;
}

.foot-line {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--ink-3);
}

.foot-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
}

.foot-list a {
	font-size: 14.5px;
	color: var(--ink-2);
}

.foot-list a:hover {
	color: var(--accent);
}

/* Google 선호 출처 단추(보유 매체 꼬리말과 같은 단추) */
.foot-pref {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding-bottom: 22px;
}

.foot-pref-label {
	margin: 0;
	font-size: 13.5px;
	color: var(--ink-3);
}

.foot-legal {
	padding-bottom: 36px;
}

.foot-legal p {
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--ink-3);
}

.book-cover-kind {
	color: rgba(255, 255, 255, .72);
	font-size: 12.5px;
	font-weight: 500;
}

/* ── 통합 검색창 ─────────────────────────────────────────────── */
.qbox {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 640px;
	min-height: 60px;
	padding: 6px 6px 6px 18px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	background: var(--paper);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.qbox:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.qbox-icon {
	flex-shrink: 0;
	color: var(--ink-3);
}

.qbox-input {
	flex: 1;
	min-width: 0;
	height: 46px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 17px;
	outline: none;
}

.qbox-input::placeholder {
	color: var(--ink-3);
}

.qbox-btn {
	flex-shrink: 0;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--accent-ink);
	color: var(--paper);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease;
}

.qbox-btn:hover {
	background: var(--accent);
}

.qbox-page {
	max-width: 720px;
	margin-top: 20px;
}

.hot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 16px;
}

.hot-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-3);
}

.hot-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
}

.hot-list a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-size: 14px;
	color: var(--ink-2);
}

.hot-list a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ── 첫 화면 책장(미디어 바로 가기) ─────────────────────────── */
.shelf {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	align-items: end;
	gap: 6px;
	margin-top: clamp(40px, 6vw, 76px);
	padding: 0 4px;
	list-style: none;
	border-bottom: 3px solid var(--ink);
}

.spine {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 150px;
	padding: 14px 0;
	border-radius: 5px 5px 0 0;
	background: var(--c);
	color: var(--on, #ffffff);
	transition: transform .2s ease;
}

.spine:hover {
	color: var(--on, #ffffff);
	transform: translateY(-10px);
}

.shelf li:nth-child(2) .spine { height: 136px; }
.shelf li:nth-child(3) .spine { height: 162px; }
.shelf li:nth-child(4) .spine { height: 144px; }
.shelf li:nth-child(5) .spine { height: 156px; }
.shelf li:nth-child(6) .spine { height: 130px; }
.shelf li:nth-child(7) .spine { height: 158px; }
.shelf li:nth-child(8) .spine { height: 140px; }
.shelf li:nth-child(9) .spine { height: 152px; }
.shelf li:nth-child(10) .spine { height: 138px; }

.spine-name {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	white-space: nowrap;
}

/* ── 기획전 ───────────────────────────────────────────────────── */
.posters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
}

.poster {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 300px;
	padding: 26px 26px 22px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--fc);
	color: var(--on, #ffffff);
	transition: filter .15s ease;
}

.poster::after {
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 160px;
	height: 160px;
	border: 26px solid currentColor;
	border-radius: 50%;
	opacity: .1;
	content: "";
}

.poster:hover {
	color: var(--on, #ffffff);
	filter: brightness(1.06);
}

.poster-kicker {
	font-size: 13px;
	font-weight: 600;
	opacity: .82;
}

.poster-title {
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.03em;
}

.poster-desc {
	font-size: 15px;
	line-height: 1.55;
	opacity: .9;
}

.poster-period {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	opacity: .78;
	font-variant-numeric: tabular-nums;
}

.feature-band {
	padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
	background: var(--fc);
	color: var(--on, #ffffff);
}

.feature-back {
	display: inline-flex;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	color: inherit;
	opacity: .82;
}

.feature-back::before {
	content: "← ";
}

.feature-back:hover {
	color: inherit;
	opacity: 1;
}

.feature-kicker {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	opacity: .85;
}

.feature-title {
	max-width: 18em;
	margin: 0;
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1.14;
	letter-spacing: -0.035em;
	font-weight: 800;
}

.feature-lead {
	max-width: 38em;
	margin: 18px 0 0;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.65;
	opacity: .92;
}

.feature-period {
	margin: 18px 0 0;
	font-size: 14px;
	font-weight: 600;
	opacity: .8;
}

.feature-intro {
	padding-top: 40px;
	padding-bottom: 0;
}

.feature-groups {
	padding-bottom: clamp(48px, 7vw, 88px);
}

.feature-toc {
	position: sticky;
	top: 68px;
	z-index: 5;
	display: flex;
	gap: 6px;
	padding: 14px 0;
	overflow-x: auto;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	scrollbar-width: none;
}

.admin-bar .feature-toc {
	top: 100px;
}

.feature-toc a {
	flex-shrink: 0;
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-2);
}

.feature-toc a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.fgroup {
	margin-top: 44px;
	scroll-margin-top: 140px;
}

.fgroup-title {
	margin: 0 0 18px;
	padding-top: 14px;
	border-top: 2px solid var(--ink);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.picks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 12px;
	list-style: none;
}

.pick {
	display: flex;
	flex-direction: column;
	gap: 7px;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	transition: border-color .15s ease;
}

.pick:hover {
	border-color: var(--accent);
	color: var(--ink);
}

.pick-site,
.result-site {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
	color: color-mix(in srgb, var(--c) 72%, var(--ink));
}

.pick-site::before,
.result-site::before {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--c);
	content: "";
}

.pick-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.015em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pick:hover .pick-title {
	color: var(--accent);
}

.pick-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pick-host {
	margin-top: auto;
	padding-top: 4px;
	font-size: 12.5px;
	color: var(--ink-3);
}

/* ── 검색 결과 ───────────────────────────────────────────────── */
.search-wrap {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.search-head {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ink);
}

.search-count {
	margin: 14px 0 0;
	font-size: 15px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.search-block {
	margin-top: 36px;
}

.search-empty {
	padding: 32px 0;
	color: var(--ink-2);
}

.search-empty .hot-list {
	margin-top: 14px;
}

.tools-compact {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.filter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-bottom: 8px;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-2);
}

.filter-chip span {
	font-weight: 500;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.filter-chip:hover {
	border-color: var(--ink-3);
	color: var(--ink);
}

.filter-chip.is-on {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.filter-chip.is-on span {
	color: var(--paper);
	opacity: .75;
}

.results {
	list-style: none;
}

.result {
	border-bottom: 1px solid var(--line);
}

.result-link {
	display: grid;
	gap: 6px;
	padding: 20px 0;
	color: var(--ink);
}

.result-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.result-cat {
	font-size: 13px;
	color: var(--ink-3);
}

.result-title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.015em;
}

.result-link:hover .result-title {
	color: var(--accent);
}

.result-excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.result-meta {
	font-size: 13px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.results mark,
.tools mark {
	padding: 0 2px;
	border-radius: 3px;
	background: var(--accent-soft);
	color: inherit;
	box-shadow: inset 0 -2px 0 var(--accent);
}

.pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}

.pager-now {
	font-size: 14px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

/* ── 좁은 화면 ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.nav-toggle {
		display: inline-block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		margin: 0;
		padding: 10px var(--gut) 18px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
	}

	.nav-open .site-nav {
		display: flex;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
	}

	.nav-list a,
	.nav-search {
		min-height: 48px;
		padding: 0 6px;
		font-size: 17px;
	}

	.nav-search {
		margin: 6px 0 0;
		padding: 0 14px;
		justify-content: center;
	}

	.head-row {
		position: relative;
	}
}

@media (max-width: 700px) {
	.books {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shelf {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.shelf li:nth-child(n) .spine {
		height: 112px;
	}

	.shelf li:nth-child(odd) .spine {
		height: 122px;
	}

	.spine-name {
		font-size: 13px;
	}

	.qbox {
		min-height: 54px;
		padding-left: 16px;
	}

	.qbox-icon {
		display: none;
	}

	.qbox-input {
		font-size: 16px;
	}

	.qbox-btn {
		height: 42px;
		padding: 0 16px;
	}
}

@media (max-width: 600px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
	}

	body {
		font-size: 15.5px;
	}

	.row {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
		padding: 18px 0;
	}

	.row-title {
		font-size: 17.5px;
	}

	.row-excerpt {
		display: none;
	}

	.entry-content {
		font-size: 17px;
		line-height: 1.82;
	}

	.cover {
		min-height: 0;
	}

	.sec-more {
		margin-left: 0;
	}
}

@media (prefers-color-scheme: dark) {
	.spine {
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
	}
}

@media (max-width: 782px) {
	.admin-bar .site-head {
		top: 46px;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.site-head,
	.site-foot,
	.more,
	.nav-toggle {
		display: none;
	}

	body {
		background: #ffffff;
		color: #000000;
	}
}

/* ── 생활 도구 배너(운세랩 무료 사주 · 심리테스트 등, inc/banners.php) ───────────── */
.em-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	padding: clamp(22px, 3.2vw, 32px) clamp(20px, 3.6vw, 36px);
	border-radius: var(--radius);
	background: var(--bc);
	color: var(--on);
}

.em-banner-body {
	display: grid;
	flex: 1 1 300px;
	gap: 4px;
	min-width: 0;
}

.em-banner-brand,
.em-banner-title,
.em-banner-desc {
	margin: 0;
}

.em-banner-brand {
	font-size: 13.5px;
	font-weight: 600;
	opacity: .82;
}

.em-banner-title {
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.em-banner-desc {
	font-size: 15px;
	line-height: 1.6;
	opacity: .88;
}

.em-banner-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.em-banner-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--on);
	border-radius: 999px;
	background: var(--on);
	color: var(--bc);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: opacity .15s ease, background-color .15s ease;
}

.em-banner-btn:hover {
	color: var(--bc);
	opacity: .9;
}

.em-banner-btn.is-ghost {
	background: transparent;
	color: var(--on);
}

.em-banner-btn.is-ghost:hover {
	background: rgba(255, 255, 255, .12);
	color: var(--on);
	opacity: 1;
}

.em-banner-btn:focus-visible {
	outline: 3px solid var(--on);
	outline-offset: 2px;
}

.em-banner-slot {
	margin-top: clamp(32px, 4vw, 48px);
}

.em-banner-slot.is-search {
	margin: 0 0 clamp(24px, 3vw, 32px);
}

.sec-banners {
	padding: clamp(36px, 5vw, 64px) 0;
}

.em-banner-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 16px;
}

.em-banner.is-row {
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
}

.em-banner.is-row .em-banner-body {
	flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
	.em-banner-btn {
		transition: none;
	}
}

@media print {
	.em-banner,
	.em-banner-slot,
	.sec-banners {
		display: none;
	}
}
