@charset "UTF-8";
/* ===========================================================
   연세이굿치과의원 건강정보 블로그
   화이트 · 그레이 · 차콜 레이어드 하이컨트라스트
   =========================================================== */

:root {
	/* 무채색 팔레트 — 색상은 대비로만 만듭니다. */
	--paper: #ffffff;
	--mist: #f1f2f3;
	--fog: #e7e9ea;
	--line: #e0e2e4;
	--line-strong: #c4c8cb;
	--slate: #6c7176;
	--graphite: #3a3e42;
	--charcoal: #1e2124;
	--ink: #0c0e10;

	--on-dark: #ffffff;
	--on-dark-mute: #a6abaf;
	--on-dark-line: #34383c;

	/* 강조색은 기본적으로 잉크(검정)입니다.
	   컬러를 쓰기로 결정하면 이 한 줄만 바꾸면 전 페이지에 반영됩니다. */
	--accent: var(--ink);
	--accent-on: #ffffff;

	--font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1200px;
	--read: 720px;
	--gut: clamp(20px, 5vw, 48px);
	--sec-y: clamp(64px, 9vw, 128px);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.75;
	letter-spacing: -0.011em;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.sec--dark :focus-visible { outline-color: var(--on-dark); }

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 0; }

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

/* ---------- 타이포 유틸 ---------- */

.eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--slate);
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--line-strong);
}
.sec--dark .eyebrow { color: var(--on-dark-mute); }
.sec--dark .eyebrow::before { background: var(--on-dark-line); }

.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }

.sec-title {
	font-size: clamp(26px, 3.6vw, 42px);
	line-height: 1.28;
	letter-spacing: -0.035em;
	font-weight: 700;
	margin: 0;
}

.sec-lead {
	margin: 18px 0 0;
	color: var(--slate);
	font-size: 16px;
	line-height: 1.8;
	max-width: 62ch;
}
.sec--dark .sec-lead { color: var(--on-dark-mute); }

/* ---------- 섹션 레이어 ---------- */

.sec { padding-block: var(--sec-y); }
.sec--mist { background: var(--mist); }
.sec--dark { background: var(--charcoal); color: var(--on-dark); }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }

/* 밝은 섹션과 어두운 섹션이 맞닿는 경계에 얇은 선을 넣지 않습니다.
   대비 자체가 구분선 역할을 하기 때문입니다. */
.sec + .sec:not(.sec--dark):not(.sec--mist) { border-top: 1px solid var(--line); }

/* ---------- 상단 상태 바 (시그니처) ---------- */

.statusbar {
	background: var(--ink);
	color: var(--on-dark);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
}
.statusbar__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 40px;
	flex-wrap: wrap;
}
.status-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--on-dark-mute);
	display: inline-block;
	flex: none;
}
.status-dot[data-state="open"] { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
.status-dot[data-state="lunch"],
.status-dot[data-state="closed"] { background: #6a6f74; }

.statusbar__state { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.statusbar__sep { color: #4a4f54; }
.statusbar__note { color: var(--on-dark-mute); }
.statusbar__tel { margin-left: auto; letter-spacing: 0.06em; }
.statusbar__tel:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
	.statusbar__note { display: none; }
}

/* ---------- 헤더 ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid var(--line);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 74px;
}

.brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.brand__name {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.04em;
}
.brand__sub {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	color: var(--slate);
	text-transform: uppercase;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a {
	font-size: 15px;
	font-weight: 500;
	color: var(--graphite);
	padding-block: 6px;
	position: relative;
}
.nav a::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 1.5px; background: var(--ink);
	transform: scaleX(0); transform-origin: left;
	transition: transform .32s var(--ease);
}
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); }
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }

.header__cta { flex: none; }

.nav-toggle {
	display: none;
	background: none; border: 1px solid var(--line-strong);
	width: 44px; height: 40px;
	cursor: pointer;
	margin-left: auto;
	align-items: center; justify-content: center;
	gap: 4px; flex-direction: column;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.header__cta { display: none; }
	.nav {
		position: fixed;
		inset: 114px 0 auto;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: 8px var(--gut) 28px;
		display: none;
		max-height: calc(100dvh - 114px);
		overflow-y: auto;
	}
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav li { border-bottom: 1px solid var(--line); }
	.nav a { display: block; padding: 16px 0; font-size: 17px; }
	.nav a::after { display: none; }
}

/* ---------- 버튼 ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	border: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.btn--solid { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn:hover { background: var(--ink); color: #fff; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }

.sec--dark .btn { border-color: var(--on-dark); color: var(--on-dark); }
.sec--dark .btn:hover { background: var(--on-dark); color: var(--ink); }
.sec--dark .btn--solid { background: var(--on-dark); color: var(--ink); }
.sec--dark .btn--solid:hover { background: transparent; color: var(--on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 히어로 ---------- */

.hero {
	position: relative;
	padding-block: clamp(56px, 9vw, 118px) clamp(48px, 7vw, 96px);
	overflow: hidden;
}

/* 배경의 얇은 세로 괘선: 진단 차트의 격자에서 가져온 결. 아주 옅게만 씁니다. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 25%);
	opacity: .55;
	pointer-events: none;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, .95fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: end;
}

.hero__title {
	font-size: clamp(34px, 6.4vw, 76px);
	line-height: 1.1;
	letter-spacing: -0.05em;
	font-weight: 800;
	margin: 0;
}
.hero__title em {
	font-style: normal;
	display: block;
	color: var(--slate);
	font-weight: 500;
	letter-spacing: -0.03em;
	font-size: 0.44em;
	line-height: 1.5;
	margin-top: 22px;
	max-width: 30ch;
}

.hero__lead {
	margin: 28px 0 0;
	max-width: 52ch;
	color: var(--graphite);
	font-size: clamp(15px, 1.6vw, 17px);
}

.hero__actions { margin-top: 34px; }

/* 오늘 진료 카드 */
.today {
	border: 1px solid var(--ink);
	background: var(--paper);
	padding: 26px 24px 22px;
}
.today__label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--slate);
	margin: 0 0 14px;
}
.today__state {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.04em;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.today__state .status-dot { background: var(--ink); }
.today__detail { margin: 8px 0 0; font-size: 14px; color: var(--slate); }
.today__hours {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--graphite);
	display: grid;
	gap: 7px;
}
.today__hours div { display: flex; justify-content: space-between; gap: 12px; }
.today__hours .is-today { color: var(--ink); font-weight: 600; }
.today__hours .is-today::after { content: "●"; font-size: 7px; margin-left: 4px; vertical-align: middle; }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; align-items: start; }
	.hero::before { background-size: 50% 100%; }
}

/* ---------- 진료 항목 (다크) ---------- */

.services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	border-top: 1px solid var(--on-dark-line);
	border-left: 1px solid var(--on-dark-line);
}
.service {
	border-right: 1px solid var(--on-dark-line);
	border-bottom: 1px solid var(--on-dark-line);
	padding: 26px 24px 30px;
	transition: background .3s var(--ease), color .3s var(--ease);
}
.service:hover { background: var(--on-dark); color: var(--ink); }
.service__name { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; }
.service__desc { margin: 0; font-size: 14px; line-height: 1.7; color: var(--on-dark-mute); }
.service:hover .service__desc { color: var(--graphite); }

/* ---------- 글 목록 ---------- */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
}
.filters a {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	padding: 8px 14px;
	border: 1px solid var(--line-strong);
	color: var(--graphite);
	transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}
.filters a:hover, .filters a[aria-current="page"] {
	background: var(--ink); color: #fff; border-color: var(--ink);
}
.filters a span { color: var(--slate); margin-left: 6px; }
.filters a:hover span, .filters a[aria-current="page"] span { color: var(--on-dark-mute); }

.postlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.postrow { border-bottom: 1px solid var(--line); }
.postrow__link {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr) auto;
	gap: clamp(18px, 3vw, 40px);
	align-items: center;
	padding: 26px 20px;
	margin-inline: -20px;
	transition: background .3s var(--ease), color .3s var(--ease);
}
.postrow__link:hover { background: var(--charcoal); color: var(--on-dark); }

.postrow__thumb {
	aspect-ratio: 8 / 5;
	background: var(--mist);
	overflow: hidden;
}
.postrow__thumb img {
	width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(1) contrast(1.04);
	transition: filter .45s var(--ease), transform .6s var(--ease);
}
.postrow__link:hover .postrow__thumb img { filter: grayscale(0); transform: scale(1.03); }

.postrow__cat {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate);
	margin: 0 0 8px;
}
.postrow__link:hover .postrow__cat { color: var(--on-dark-mute); }

.postrow__title {
	font-size: clamp(18px, 2.1vw, 23px);
	line-height: 1.42;
	letter-spacing: -0.035em;
	font-weight: 700;
	margin: 0;
}
.postrow__excerpt {
	margin: 10px 0 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--slate);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.postrow__link:hover .postrow__excerpt { color: var(--on-dark-mute); }

.postrow__meta {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--slate);
	text-align: right;
	white-space: nowrap;
	display: grid;
	gap: 6px;
}
.postrow__link:hover .postrow__meta { color: var(--on-dark-mute); }

@media (max-width: 780px) {
	.postrow__link { grid-template-columns: 110px minmax(0, 1fr); align-items: start; padding: 20px 16px; margin-inline: -16px; }
	.postrow__meta { grid-column: 1 / -1; text-align: left; display: flex; gap: 14px; }
	.postrow__excerpt { display: none; }
}

.empty {
	border: 1px dashed var(--line-strong);
	padding: 48px 28px;
	text-align: center;
	color: var(--slate);
}
.empty p { margin: 0 0 18px; }

/* ---------- 페이지네이션 ---------- */

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	font-family: var(--font-mono);
	font-size: 13px;
	min-width: 42px; height: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line);
	padding: 0 12px;
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 의료진 ---------- */

.doctor {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(30px, 5vw, 70px);
}
.doctor__card { border: 1px solid var(--on-dark-line); padding: 30px 26px; align-self: start; }
.doctor__name { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.045em; margin: 0; }
.doctor__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--on-dark-mute); margin: 10px 0 22px; text-transform: uppercase; }
.doctor__badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doctor__badges li {
	font-size: 13.5px;
	border: 1px solid var(--on-dark-line);
	padding: 9px 13px;
	color: var(--on-dark);
}
.doctor__summary { margin: 0 0 26px; color: var(--on-dark-mute); font-size: 15.5px; line-height: 1.85; }

.career { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.career li {
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--on-dark-mute);
	padding: 8px 0;
	border-bottom: 1px solid var(--on-dark-line);
	break-inside: avoid;
}
@media (max-width: 900px) {
	.doctor { grid-template-columns: 1fr; }
	.career { columns: 1; }
}

.research { margin-top: 34px; border-top: 1px solid var(--on-dark-line); padding-top: 24px; }
.research__item { margin: 0 0 18px; }
.research__ko { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; }
.research__en { font-size: 12.5px; color: var(--on-dark-mute); margin: 0; font-family: var(--font-mono); line-height: 1.6; }

/* ---------- 진료시간 · 오시는 길 ---------- */

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.info-cell { background: var(--paper); padding: 28px 26px; }
.info-cell h3 {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--slate);
	margin: 0 0 16px;
	font-weight: 500;
}
.hours-list { display: grid; gap: 10px; margin: 0; }
.hours-list > div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	font-size: 14.5px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}
.hours-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list dt { color: var(--graphite); font-weight: 600; }
.hours-list dd { margin: 0; font-family: var(--font-mono); font-size: 13.5px; text-align: right; }
.hours-list .note { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--slate); }
.hours-list .is-today { background: var(--ink); color: #fff; margin-inline: -10px; padding: 8px 10px; border-bottom-color: transparent; }
.hours-list .is-today dt, .hours-list .is-today dd, .hours-list .is-today .note { color: #fff; }

.addr { font-size: 15px; line-height: 1.85; margin: 0 0 18px; }
.addr strong { display: block; font-size: 13px; color: var(--slate); font-weight: 500; margin-bottom: 2px; }
.addr + .addr { margin-top: 18px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.sec--dark .faq { border-top-color: var(--on-dark-line); }

.faq__item { border-bottom: 1px solid var(--line); }
.sec--dark .faq__item { border-bottom-color: var(--on-dark-line); }

.faq__q {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
	font-size: clamp(16px, 1.9vw, 18px);
	font-weight: 600;
	letter-spacing: -0.028em;
	line-height: 1.55;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
	content: "+";
	margin-left: auto;
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 20px;
	line-height: 1;
	color: var(--slate);
	transition: transform .3s var(--ease);
	flex: none;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__num { font-family: var(--font-mono); font-size: 12px; color: var(--slate); padding-top: 5px; flex: none; }

.faq__a {
	padding: 0 0 26px 38px;
	margin: 0;
	color: var(--slate);
	font-size: 15.5px;
	line-height: 1.85;
	max-width: 68ch;
}
.sec--dark .faq__a { color: var(--on-dark-mute); }

@media (max-width: 620px) {
	.faq__a { padding-left: 0; }
	.faq__num { display: none; }
}

/* ---------- 본문(single) ---------- */

.crumbs { margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.article-head { padding-block: clamp(36px, 5vw, 66px) clamp(28px, 4vw, 44px); }
.article-title {
	font-size: clamp(27px, 4.2vw, 46px);
	line-height: 1.26;
	letter-spacing: -0.045em;
	font-weight: 800;
	margin: 0 0 22px;
}
.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
	padding-top: 18px;
	border-top: 1px solid var(--line);
}
.article-hero { margin-bottom: clamp(28px, 4vw, 48px); }
.article-hero img { width: 100%; }

/* 핵심 요약 — AI 답변 엔진이 가장 먼저 집는 블록 */
.keypoints {
	background: var(--charcoal);
	color: var(--on-dark);
	padding: 28px 26px;
	margin: 0 0 clamp(30px, 4vw, 46px);
}
.keypoints__label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-dark-mute);
	margin: 0 0 16px;
}
.keypoints ol { margin: 0; padding: 0; list-style: none; counter-reset: kp; display: grid; gap: 14px; }
.keypoints li {
	counter-increment: kp;
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 12px;
	font-size: 15.5px;
	line-height: 1.75;
}
.keypoints li::before {
	content: counter(kp, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--on-dark-mute);
	padding-top: 5px;
}

.answer-box {
	border-left: 3px solid var(--ink);
	background: var(--mist);
	padding: 20px 22px;
	margin: 0 0 32px;
	font-size: 16.5px;
	line-height: 1.8;
	font-weight: 500;
}

.toc {
	border: 1px solid var(--line);
	padding: 22px 24px;
	margin-bottom: clamp(30px, 4vw, 46px);
}
.toc__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 9px; }
.toc__item a { font-size: 14.5px; color: var(--graphite); border-bottom: 1px solid transparent; }
.toc__item a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.toc__item--h3 { padding-left: 18px; font-size: 13.5px; }
.toc__item--h3 a { color: var(--slate); }

/* 본문 프로즈 */
.prose { font-size: 17px; line-height: 1.9; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
	font-size: clamp(21px, 2.6vw, 27px);
	line-height: 1.4;
	letter-spacing: -0.04em;
	font-weight: 700;
	margin-top: 2.4em;
	padding-top: 1.2em;
	border-top: 1px solid var(--line);
}
.prose h3 {
	font-size: clamp(17.5px, 2vw, 20px);
	letter-spacing: -0.035em;
	font-weight: 700;
	margin-top: 2em;
}
.prose h2 + h3 { margin-top: 1.4em; }
.prose p { margin-block: 0; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose a:hover { border-bottom-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--slate); }
.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border-left: 2px solid var(--ink);
	color: var(--graphite);
	font-size: 16px;
}
.prose img { margin-block: 2em; }
.prose figcaption { font-size: 13px; color: var(--slate); margin-top: 10px; font-family: var(--font-mono); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.prose th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--slate); font-weight: 500; }
.prose strong { font-weight: 700; }

/* 본문 안내 박스 */
.callout {
	border: 1px solid var(--line-strong);
	padding: 20px 22px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--graphite);
	background: var(--mist);
}
.callout strong { display: block; margin-bottom: 6px; }

.reviewed {
	margin-top: clamp(38px, 5vw, 56px);
	padding: 20px 22px;
	border: 1px solid var(--line);
	font-size: 13.5px;
	color: var(--slate);
	line-height: 1.8;
}
.reviewed b { color: var(--ink); }

.disclaimer {
	margin-top: 18px;
	font-size: 12.5px;
	color: var(--slate);
	line-height: 1.75;
}

/* 글 하단 CTA */
.post-cta {
	margin-top: clamp(44px, 6vw, 72px);
	background: var(--charcoal);
	color: var(--on-dark);
	padding: clamp(30px, 4.5vw, 48px);
}
.post-cta h2 { font-size: clamp(21px, 2.8vw, 28px); letter-spacing: -0.04em; margin: 0 0 12px; line-height: 1.35; }
.post-cta p { color: var(--on-dark-mute); margin: 0 0 26px; font-size: 15px; max-width: 54ch; }
.post-cta .btn-row { margin-bottom: 26px; }
.post-cta__hours {
	display: grid;
	gap: 8px;
	border-top: 1px solid var(--on-dark-line);
	padding-top: 22px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--on-dark-mute);
}
.post-cta__hours div { display: flex; justify-content: space-between; max-width: 380px; }

/* 이전/다음 */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	margin-top: clamp(40px, 5vw, 64px);
}
.post-nav a { background: var(--paper); padding: 22px 24px; transition: background .3s var(--ease), color .3s var(--ease); }
.post-nav a:hover { background: var(--charcoal); color: var(--on-dark); }
.post-nav span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 8px; }
.post-nav a:hover span { color: var(--on-dark-mute); }
.post-nav strong { font-size: 15px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.5; display: block; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* 읽기 진행 바 */
.progress {
	position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
	background: transparent;
}
.progress__bar { height: 100%; width: 0; background: var(--ink); transition: width .1s linear; }

/* ---------- 푸터 ---------- */

.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(50px, 6vw, 78px) 34px; }
.footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(160px, 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: 38px;
	border-bottom: 1px solid var(--on-dark-line);
}
.footer__brand { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 14px; }
.footer__desc { color: var(--on-dark-mute); font-size: 14px; line-height: 1.85; margin: 0 0 20px; max-width: 40ch; }
.footer h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mute); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li, .footer p.small { font-size: 13.5px; color: var(--on-dark-mute); line-height: 1.7; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
	padding-top: 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	font-size: 12px;
	color: #71767b;
	line-height: 1.8;
}
.footer__legal { max-width: 70ch; }
.footer__areas { font-family: var(--font-mono); font-size: 11px; color: #5f6469; letter-spacing: .04em; }

/* ---------- 모바일 고정 액션 바 ---------- */

.mobile-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 80;
	display: none;
	background: var(--ink);
	border-top: 1px solid #2a2d31;
	padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a {
	flex: 1;
	color: #fff;
	text-align: center;
	padding: 15px 8px;
	font-size: 14px;
	font-weight: 600;
}
.mobile-cta a + a { border-left: 1px solid #2a2d31; }
@media (max-width: 780px) {
	.mobile-cta { display: flex; }
	body { padding-bottom: 56px; }
}

/* ---------- 진입 애니메이션 ---------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- 워드프레스 코어 클래스 ---------- */

.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;
}
.screen-reader-text:focus {
	position: static !important;
	width: auto; height: auto; clip: auto;
	background: var(--ink); color: #fff; padding: 10px 16px;
}

.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { margin-inline: auto; }
.alignwide { width: calc(100% + 120px); max-width: 100vw; margin-inline: -60px; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 900px) {
	.alignwide { width: 100%; margin-inline: 0; }
	.alignleft, .alignright { float: none; margin-inline: 0; }
}

.wp-caption { margin-bottom: 1.6em; }
.wp-caption-text, .wp-element-caption {
	font-size: 13px; color: var(--slate); margin-top: 10px;
	font-family: var(--font-mono); line-height: 1.6;
}
.sticky .postrow__cat::after { content: " · 고정"; }

/* ---------- 인쇄 ---------- */

@media print {
	.site-header, .statusbar, .mobile-cta, .post-cta, .post-nav, .progress, .toc { display: none !important; }
	body { font-size: 12pt; }
}
