/* ==========================================================================
   뼈대 — parkgolf.bartour.co.kr(티스토리 hannoone 스킨)의 배치 (2026-10-02)
   --------------------------------------------------------------------------
   색은 v2 의 css/theme.css 변수만 쓴다 (다크모드도 따라간다). 버튼은 daisyUI(btn) 그대로.
   v2 의 #sidebar · #topbar · #app-main 규칙과 겹치지 않게 이름은 전부 hn- 로 둔다.
   서랍만 v2 의 body.nav-open · #nav-overlay 를 그대로 쓴다 (여닫기는 v2 app.js).

     데스크톱(≥64rem) : 1200px 틀 — 왼쪽 사이드바 302px + 45px 간격 + 본문(글은 최대 810px)
     모바일            : 본문 아래에 사이드바
   ========================================================================== */

:root {
	--hn-header-h: 85px;
	--hn-width: 1200px;
}

body.hn { background: var(--color-base-100); }

/* ---- 상단바 — 고정, 내려가면 낮아지고 그림자 ---- */
#hn-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	background: color-mix(in oklab, var(--color-base-100) 90%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: box-shadow 0.3s;
}
#hn-header.is-shrink { box-shadow: 0 1px 10px rgb(0 0 0 / 0.1); }
.admin-bar #hn-header { top: var(--wp-admin--admin-bar--height, 32px); }

#hn-progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: color-mix(in oklab, var(--color-primary) 50%, transparent);
}

.hn-header-in {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	max-width: var(--hn-width);
	height: var(--hn-header-h);
	margin-inline: auto;
	padding-inline: 1rem 0.75rem;
	transition: height 0.4s ease-out;
}
#hn-header.is-shrink .hn-header-in { height: 50px; }

.hn-logo {
	margin-right: auto;
	display: inline-flex;
	align-items: center;
	min-width: 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--color-base-content);
}
.hn-logo img { height: 2.25rem; width: auto; transition: height 0.4s ease-out; }
#hn-header.is-shrink .hn-logo img { height: 1.75rem; }

.hn-header-ico { display: flex; align-items: center; gap: 0.125rem; }

/* 메뉴 버튼 — 가운데 줄만 브랜드색 (hannoone 그대로) */
.hn-menu-btn {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.375rem;
	border: 0;
	background: none;
	cursor: pointer;
}
.hn-menu-btn span { display: block; height: 3px; border-radius: 2px; background: var(--color-menu); }
.hn-menu-btn span:nth-child(2) { background: var(--color-primary); transition: transform 0.2s; }
.hn-menu-btn:hover span:nth-child(2) { transform: rotate(10deg); }

/* 검색 — 넓은 화면은 입력칸이 늘 보이고, 좁은 화면은 돋보기를 누르면 상단바를 덮어 펼친다 */
#hn-search {
	display: flex;
	align-items: center;
	margin-inline: 0.5rem;
	padding: 0.125rem 0.5rem 0.125rem 0.125rem;
	border-radius: 0.625rem;
	background: var(--color-base-200);
}
#hn-search input {
	width: 12rem;
	padding: 0.25rem;
	border: 0;
	background: transparent;
	font-size: 0.875rem;
	color: var(--color-base-content);
	outline: none;
}
.hn-search-close {
	display: none;
	border: 0;
	background: none;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--color-body);
	cursor: pointer;
}
@media (width < 40rem) {
	#hn-search { margin-inline: 0; padding: 0; background: transparent; }
	#hn-search input { display: none; }
	#hn-search.is-open {
		position: absolute;
		left: 0.75rem;
		right: 0.75rem;
		z-index: 1;
		padding-right: 0.75rem;
		background: var(--color-base-200);
	}
	#hn-search.is-open input { display: block; flex: 1; width: auto; }
	#hn-search.is-open .hn-search-close { display: block; }
}

/* ---- 오른쪽 서랍 ---- */
#kh-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	width: 300px;
	max-width: 100%;
	overflow-y: auto;
	background: var(--color-base-100);
	box-shadow: 0 1px 10px 2px rgb(0 0 0 / 0.1);
	transform: translateX(101%);
	transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
	scrollbar-width: none;
}
body.nav-open #kh-drawer { transform: none; }
.hn-drawer-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	z-index: 1;
	border: 0;
	background: none;
	font-size: 2.25rem;
	line-height: 1;
	color: #fff;
	cursor: pointer;
}
.hn-drawer-profile {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 11rem;
	padding-bottom: 1.25rem;
	background: linear-gradient(to right, #3d72b4, #525252);
}
.hn-drawer-profile a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #fff; font-size: 0.875rem; }
.hn-drawer-profile img { height: 3rem; width: auto; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: #fff; }
.hn-drawer-menu { border-bottom: 15px solid var(--color-base-200); }
.hn-drawer-menu .hn-menu a,
#kh-drawer .hn-apps .nav-link {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0 1.25rem;
	line-height: 2.5rem;
	font-size: 0.875rem;
	color: var(--color-menu);
}
.hn-drawer-menu .hn-menu a:hover,
#kh-drawer .hn-apps .nav-link:hover { background: var(--color-base-200); color: var(--color-primary); }
#kh-drawer .hn-apps { padding-block: 0.75rem 3rem; }
#kh-drawer .hn-apps .hn-module-title { margin: 0 1.25rem 0.25rem; }

/* ---- 틀 ---- */
#hn-wrap {
	padding-top: calc(var(--hn-header-h) + 7px);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
#hn-gnb,
#hn-main { width: 100%; max-width: var(--hn-width); margin-inline: auto; }

/* 가로 메뉴 — 위아래 가는 줄, 넘치면 가로 스크롤, 올리면 밑줄이 자란다 */
#hn-gnb { padding-inline: 1.25rem; margin-bottom: 1.5rem; }
#hn-gnb .hn-menu {
	display: flex;
	overflow-x: auto;
	white-space: nowrap;
	border-block: 1px solid var(--color-base-300);
	scrollbar-width: none;
}
#hn-gnb .hn-menu::-webkit-scrollbar { display: none; }
#hn-gnb .hn-menu li { flex: none; }
#hn-gnb .hn-menu a {
	position: relative;
	display: block;
	padding: 0 1.5rem 0 0.625rem;
	line-height: 50px;
	font-size: 15px;
	color: var(--color-menu);
}
#hn-gnb .hn-menu a::before {
	content: "";
	position: absolute;
	bottom: 10px;
	left: 0.5rem;
	width: 0;
	height: 2px;
	background: var(--color-primary);
	transition: width 0.3s ease;
}
#hn-gnb .hn-menu a:hover::before,
#hn-gnb .hn-menu a[aria-current]::before,
#hn-gnb .hn-menu .current-menu-item > a::before { width: calc(100% - 2rem); }

#hn-main { flex: 1; padding-inline: 1.25rem; }
#hn-content { min-width: 0; }
@media (width >= 64rem) {
	#hn-main { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 45px; }
	#hn-content { flex: 1; }
}

/* 첫 화면 · 목록 — kilho-v2 카드 그대로, 바깥 여백만 틀에 맞춘다 */
#hn-content .kv2-wrap { max-width: none; padding: 0 0 1rem; }

/* ---- 글 ---- */
.hn-content-width { max-width: 810px; margin-inline: auto; color: var(--color-body); line-height: 1.75; }
body.hn-wide .hn-content-width { max-width: var(--hn-width); }
body.hn-wide #hn-sidebar { display: none; }

.hn-hd { margin-bottom: 1.75rem; border-bottom: 2px dotted var(--color-base-300); }
.hn-sub-info { display: flex; align-items: center; font-size: 0.875rem; }
.hn-meta-cate a { color: var(--color-primary); }
.hn-meta-cate a:hover { text-decoration: underline; }
.hn-wide-btn {
	display: none;
	align-items: center;
	gap: 0.25rem;
	margin-left: auto;
	border: 0;
	background: none;
	font-size: 0.875rem;
	color: var(--color-body);
	cursor: pointer;
}
.hn-wide-btn:hover { color: var(--color-primary); }
.hn-wide-off,
body.hn-wide .hn-wide-on { display: none; }
body.hn-wide .hn-wide-off { display: inline; }
@media (width >= 64rem) {
	.hn-wide-btn { display: inline-flex; }
}
.hn-hd-heading {
	margin: 0.3rem 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--color-base-content);
}
@media (width < 28rem) {
	.hn-hd-heading { font-size: 1.4rem; }
}

.hn-entry-tag { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 2rem 0 1rem; font-size: 0.875rem; }
.hn-entry-tag a { padding: 2px 3px; border-radius: 3px; color: var(--color-primary); transition: 0.3s; }
.hn-entry-tag a:hover { background: var(--color-primary); color: var(--color-primary-content); }

/* 카테고리 관련 글 */
.hn-related { margin-top: 1.5rem; border-top: 1px solid var(--color-base-300); }
.hn-related-head { display: flex; align-items: center; justify-content: space-between; padding-block: 0.625rem; }
.hn-related-head h2 { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--color-base-content); }
.hn-related ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-base-300); }
.hn-related li { border-bottom: 1px solid var(--color-base-300); }
.hn-related li a { display: flex; gap: 1rem; padding: 0.625rem 0.25rem 0.625rem 0; font-size: 0.875rem; color: var(--color-body); }
.hn-related-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hn-related li a:hover .hn-related-title { color: var(--color-primary); }
.hn-related time { flex: none; font-size: 0.8125rem; }

/* 댓글 — kilho-v2 의 상자 대신 점선으로 나눈 평면 (hannoone) */
.hn-content-width .kv2-comments {
	margin-top: 2rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}
.hn-content-width .kv2-comments-title { padding: 1rem 0.25rem; border-bottom: 2px dotted var(--color-base-300); }
.hn-content-width .kv2-comment-list > li { border-bottom: 1px dashed var(--color-base-300); padding-bottom: 0.5rem; }

/* ---- 사이드바 ---- */
#hn-sidebar { margin-top: 3rem; font-size: 0.875rem; color: var(--color-body); }
@media (width >= 64rem) {
	#hn-sidebar { flex: none; width: 302px; margin-top: 0; }
}
.hn-module { margin-bottom: 1.25rem; padding-bottom: 0.625rem; }
.hn-module-title {
	margin-bottom: 0.625rem;
	padding: 0.5rem 0.625rem 0.625rem 0.9375rem;
	border-bottom: 1px solid var(--color-base-300);
	font-weight: 600;
	color: var(--color-base-content);
}
.hn-module ul { margin: 0; padding: 0 0.3125rem 0 0.9375rem; list-style: none; }
.hn-module a { color: var(--color-body); transition: color 0.3s; }
.hn-module a:hover { color: var(--color-primary); }

/* 광고 두 칸 — hannoone 의 side-short · side-long: 300x250 · 300x600, 좁은 화면은 폭 100% · 높이 200 · 250.
   <ins> 자체에 크기를 준다(애드센스 고정 크기 광고 단위 안내) */
.hn-ads {
	width: 300px;
	max-width: 100%;
	margin-inline: auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--color-base-300);
	border-radius: 10px;
	background: var(--color-base-200);
}
.hn-ads .kh-side-ad-box { display: block; }
.hn-ads ins.adsbygoogle { display: block !important; width: 300px; max-width: 100%; }
.hn-ads ins.hn-ad-short { height: 250px !important; }
.hn-ads ins.hn-ad-long { height: 600px !important; }
@media (width < 64rem) {
	.hn-ads { width: 100%; }
	.hn-ads ins.adsbygoogle { width: 100%; }
	.hn-ads ins.hn-ad-short { height: 200px !important; }
	.hn-ads ins.hn-ad-long { height: 250px !important; }
}

/* 프로그램 — 서랍의 v2 사이드바 목록(아이콘 · 이름 · NEW/UP) */
.hn-apps .nav-link > img { width: 1.15rem; height: 1.15rem; flex: none; }
.hn-apps .nav-link > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hn-apps .nav-link > small { display: inline-flex; margin-left: auto; color: var(--color-primary); }
.hn-apps .nav-link > small svg { width: 0.875rem; height: 0.875rem; }
.hn-apps .nav-link.active { color: var(--color-primary); font-weight: 600; }
@media (width < 64rem) {
	#hn-sidebar .hn-cats { display: none; }   /* 모바일은 서랍 메뉴에 있다 (hannoone 도 카테고리를 숨긴다) */
}

.hn-cats li { line-height: 1.9rem; }
.hn-cats .children { padding-left: 0.75rem; }

.hn-post-list li + li { margin-top: 0.625rem; }
.hn-post-list a { display: flex; align-items: center; gap: 0.75rem; }
.hn-thumb {
	flex: none;
	width: 50px;
	height: 50px;
	overflow: hidden;
	border-radius: 7px;
	background: var(--color-base-200);
}
.hn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-post-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hn-comment-list a { display: block; padding: 0.1875rem 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.hn-module ul.hn-tag-list { display: flex; flex-wrap: wrap; gap: 0.25rem; padding-left: 0.625rem; }
.hn-tag-list a { display: inline-block; max-width: 200px; padding: 2px 4px; border-radius: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hn-tag-list a:hover { background: var(--color-primary); color: var(--color-primary-content); }

.hn-counter img { display: inline-block; height: 14px; width: auto; margin-left: 0.25rem; vertical-align: middle; }   /* 푸터 Copyright 줄 (2026-10-08) */

/* ---- 아래 ---- */
.hn-flags { width: 100%; max-width: var(--hn-width); margin: 3rem auto; padding-inline: 1.25rem; }
#hn-footer { border-top: 1px solid var(--color-base-300); }
.hn-footer-in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 1rem;
	max-width: var(--hn-width);
	margin-inline: auto;
	padding: 0.625rem 1.25rem;
	font-size: 0.75rem;
	line-height: 30px;
	color: var(--color-body);
}
.hn-footer-in a { color: var(--color-base-content); }
.hn-footer-in a:hover { text-decoration: underline; }
.hn-footer-end { display: flex; align-items: center; gap: 0.75rem; }
/* 후원 배지 — donate.gif(PayPal 노란 버튼) 모양 */
.hn-footer-in a.hn-donate {
	display: inline-block;
	padding: 0 0.875rem;
	border-radius: 999px;
	background: #ffc439;
	color: #111;
	font-weight: 700;
	line-height: 22px;
	white-space: nowrap;
	transition: background 0.2s;
}
.hn-footer-in a.hn-donate:hover { background: #f2ba36; text-decoration: none; }
