/* 홈·기사 공통 */

/* 사이드바 위젯 제목: 기본 h2 크기가 본문 카드보다 커서 위계가 뒤집히므로 카드 메타와 같은 톤으로 */
.ct-sidebar .ct-widget :where(h2, h3, .widget-title) {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1em;
}

/* wink-guides-core 플러그인이 출력하는 광고·제휴 고지 */
.wink-disclosure {
	margin: 0 0 var(--wink-gap);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wink-disclosure-text);
	background: var(--wink-disclosure-bg);
	border: 1px solid var(--wink-disclosure-border);
	border-radius: var(--wink-radius);
}

/* 헤더 워드마크: 데모 로고 이미지 대신 사이트 제목을 로고처럼 */
.ct-header [data-id="logo"] .site-title {
	--theme-font-weight: 800;
	--theme-letter-spacing: -0.02em;
}

/* 내용이 없는 위젯(글·댓글·카테고리가 아직 없을 때)은 제목째 숨긴다 */
.ct-sidebar .ct-widget:has(.wp-block-latest-posts__list:empty),
.ct-sidebar .ct-widget:has(.cat-item-none),
.ct-sidebar .ct-widget:has(.no-comments) {
	display: none;
}

/* Latest Guides: 썸네일 + 제목 목록 */
.wink-widget-latest .wp-block-latest-posts__list li {
	display: flow-root;
	margin-bottom: 0.9em;
	line-height: 1.4;
}

.wink-widget-latest .wp-block-latest-posts__featured-image.alignleft {
	margin: 0 0.75em 0 0;
}

.wink-widget-latest .wp-block-latest-posts__featured-image img {
	border-radius: 4px;
	object-fit: cover;
}

.wink-widget-latest .wp-block-latest-posts__post-title {
	font-weight: 500;
	color: var(--theme-headings-color);
}
