/*
Theme Name: Kadence Child
Template: kadence
Description: My Blog 전용 Kadence 자식 테마 (테마 업데이트에도 사용자 수정이 유지됩니다)
Version: 1.1
Text Domain: kadence-child
*/

/* ===== 기본 변수 ===== */
:root {
	--mb-accent: #EA580C;          /* 강조(주황) */
	--mb-accent-hover: #C2410C;
	--mb-radius: 14px;
	--mb-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
	--mb-shadow-hover: 0 4px 10px rgba(17, 24, 39, .08), 0 16px 32px rgba(17, 24, 39, .10);
}

/* 한글 가독성: 단어 단위 줄바꿈 */
.entry-content, .entry-title, .widget, .wp-block-post-title, .mb-hero { word-break: keep-all; overflow-wrap: break-word; }
body { -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
h1, h2, h3, h4, .entry-title, .wp-block-post-title { letter-spacing: -0.025em; }

/* ===== 헤더 ===== */
.site-main-header-wrap .site-header-row-container-inner { border-bottom: 1px solid var(--global-palette7); }
.item-is-fixed .site-main-header-wrap .site-header-row-container-inner,
.item-is-stuck .site-header-row-container-inner { box-shadow: 0 2px 12px rgba(17, 24, 39, .06); }
.site-branding .site-title { letter-spacing: -0.04em; }
.site-branding .site-title::after { content: "."; color: var(--mb-accent); }
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li > a:hover { color: var(--global-palette1); }

/* ===== 공통 섹션 (홈) ===== */
.mb-section { padding: 64px 20px; }
.mb-section--tint { background: var(--global-palette8); }
.mb-section__head { margin: 56px 0 20px; align-items: flex-end; }
.mb-section__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0; }
.mb-section--tint .mb-section__title { margin-bottom: 32px; }
.mb-more { margin: 0; font-weight: 600; }
.mb-more a { text-decoration: none; }
.mb-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--mb-accent-hover); /* 작은 글자는 진한 주황(대비 5.2:1) */ margin-bottom: .5em; text-transform: uppercase; }
.mb-accent { color: var(--mb-accent); }
.mb-empty { text-align: center; color: var(--global-palette5); padding: 40px 0; }

/* ===== 히어로 ===== */
.mb-hero {
	padding: clamp(56px, 9vw, 110px) 20px clamp(48px, 7vw, 88px);
	background:
		radial-gradient(circle at 12% 20%, rgba(29, 78, 216, .10), transparent 42%),
		radial-gradient(circle at 88% 80%, rgba(234, 88, 12, .10), transparent 40%),
		var(--global-palette8);
	border-bottom: 1px solid var(--global-palette7);
}
.mb-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.25; font-weight: 800; margin: .2em 0 .4em; }
.mb-hero__desc { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--global-palette5); margin-bottom: 1.8em; }
.mb-hero__search { max-width: 560px; margin: 0 auto 1.4em; }
.mb-hero__search .wp-block-search__inside-wrapper {
	background: #fff; border: 1px solid var(--global-palette7); border-radius: 999px; padding: 6px; box-shadow: var(--mb-shadow);
}
.mb-hero__search .wp-block-search__input { border: 0; background: transparent; padding: 10px 18px; font-size: 1rem; }
.mb-hero__search .wp-block-search__input:focus { outline: none; }
.mb-hero__search .wp-block-search__button.wp-element-button { white-space: nowrap; flex-shrink: 0; border-radius: 999px; padding: 10px 24px; margin-left: 6px; background: var(--global-palette1) !important; color: #fff !important; border: 0; font-weight: 600; }
.mb-hero__search .wp-block-search__button.wp-element-button:hover { background: var(--global-palette2) !important; }
.mb-tags { gap: 8px; }
.mb-tag .wp-block-button__link { border: 1px solid var(--global-palette7) !important; background: #fff; color: var(--global-palette5); padding: 6px 16px; font-size: .9rem; border-radius: 999px; }
.mb-tag .wp-block-button__link:hover { color: var(--global-palette1); border-color: var(--global-palette1) !important; }

/* ===== 최신 글(큰 글) ===== */
.mb-lead .wp-block-column > * { margin-block: 0; }
.mb-lead .mb-eyebrow { margin-bottom: 10px; }
.mb-lead .wp-block-post-date { margin-top: 12px; }
.mb-section__title, .mb-cta h2 { border: 0 !important; padding-bottom: 0 !important; }
.mb-lead { gap: clamp(20px, 4vw, 48px); margin-bottom: 0; }
.mb-lead .wp-block-post-featured-image img { border-radius: var(--mb-radius); box-shadow: var(--mb-shadow); }
.mb-lead__title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; margin: .3em 0 .5em; }
.mb-lead__title a, .mb-card .wp-block-post-title a { text-decoration: none; color: var(--global-palette3); }
.mb-lead__title a:hover, .mb-card .wp-block-post-title a:hover { color: var(--global-palette1); }
.mb-lead .wp-block-post-excerpt { color: var(--global-palette5); }
.mb-lead .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }

/* ===== 카드 ===== */
.mb-query .wp-block-post-template.is-layout-grid { gap: 28px; }
.mb-card {
	height: 100%; background: #fff; border: 1px solid var(--global-palette7); border-radius: var(--mb-radius);
	overflow: hidden; box-shadow: var(--mb-shadow); transition: transform .2s ease, box-shadow .2s ease;
	display: flex; flex-direction: column;
}
.mb-card:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow-hover); }
.mb-card .wp-block-post-featured-image { margin: 0; }
.mb-card .wp-block-post-featured-image img { transition: transform .4s ease; }
.mb-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.mb-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mb-card .wp-block-post-title { font-size: 1.15rem; line-height: 1.4; margin: .4em 0; }
.mb-card .wp-block-post-excerpt { font-size: .93rem; color: var(--global-palette5); margin: 0 0 .8em; }
.mb-card .wp-block-post-excerpt__excerpt { margin: 0; }
.mb-date { font-size: .82rem; color: var(--global-palette6); margin-top: auto; }

/* 카테고리 알약 */
.mb-chip a, .entry-taxonomies.category-style-pill a, .loop-entry .category-style-pill a, .category-links a.category-link-pill {
	display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
	background: rgba(29, 78, 216, .08); color: var(--global-palette1) !important; text-decoration: none;
}
.mb-chip a:hover { background: var(--global-palette1); color: #fff !important; }

/* ===== 카테고리 둘러보기 ===== */
.mb-cats { gap: 24px; }
.mb-cat {
	background: #fff; border: 1px solid var(--global-palette7); border-radius: var(--mb-radius); padding: 28px 26px;
	height: 100%; box-shadow: var(--mb-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative;
}
.mb-cat:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow-hover); border-color: var(--global-palette1); }
.mb-cat__icon { width: 48px; height: 48px; border-radius: 12px; margin: 0 0 16px; background: rgba(29, 78, 216, .08); position: relative; }
.mb-cat__icon::before { content: ""; position: absolute; inset: 12px; background: var(--global-palette1); -webkit-mask: var(--mb-icon) center / contain no-repeat; mask: var(--mb-icon) center / contain no-repeat; }
.mb-cat__icon--daily { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 1 1 0 8h-1'/%3E%3Cpath d='M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z'/%3E%3Cpath d='M6 2v2M10 2v2M14 2v2'/%3E%3C/svg%3E"); }
.mb-cat__icon--review { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1Z'/%3E%3C/svg%3E"); }
.mb-cat__icon--info { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.2 1 2V17h6v-.3c0-.8.4-1.5 1-2A7 7 0 0 0 12 2Z'/%3E%3C/svg%3E"); }
.mb-cat:hover .mb-cat__icon { background: var(--global-palette1); }
.mb-cat:hover .mb-cat__icon::before { background: #fff; }
.mb-cat h3 { font-size: 1.25rem; margin: 0 0 .3em; }
.mb-cat h3 a { text-decoration: none; color: var(--global-palette3); }
.mb-cat h3 a::after { content: ""; position: absolute; inset: 0; } /* 카드 전체 클릭 */
.mb-cat p { color: var(--global-palette5); margin: 0; }

/* 뉴스 블로그 섹션 아이콘 */
.mb-cat__icon--ai-news { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9Z'/%3E%3Cpath d='M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9Z'/%3E%3C/svg%3E"); }
.mb-cat__icon--ai-guide { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3Cpath d='M9 7h7M9 11h5'/%3E%3C/svg%3E"); }
.mb-cat__icon--hardware { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='14' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/%3E%3C/svg%3E"); }
.mb-cat__icon--software { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M7 6.5h.01M10 6.5h.01'/%3E%3C/svg%3E"); }
.mb-cat__icon--review { --mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1Z'/%3E%3C/svg%3E"); }
/* 분야 카드 5개: 넓은 화면 5칸, 중간 3칸, 모바일 1칸 */
.mb-cats--5 { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.mb-cats--5 > .wp-block-column { flex-basis: auto !important; margin: 0 !important; }
.mb-cats--5 .mb-cat { padding: 22px 20px; }
.mb-cats--5 .mb-cat p:not(.mb-cat__icon) { font-size: .9rem; }
@media (max-width: 1100px) { .mb-cats--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) { .mb-cats--5 { grid-template-columns: 1fr; } }

/* ===== 구독 CTA ===== */
.mb-cta {
	background: linear-gradient(135deg, #1E3A8A 0%, #111827 100%); color: #E5E7EB; border-radius: 20px;
	padding: clamp(40px, 6vw, 64px) 24px; position: relative; overflow: hidden;
}
.mb-cta::before { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -80px; border-radius: 50%; background: rgba(234, 88, 12, .35); filter: blur(10px); }
.mb-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; position: relative; }
.mb-cta p, .mb-cta .wp-block-buttons { position: relative; }
.mb-btn-accent .wp-block-button__link { background: var(--mb-accent); color: #fff; border-radius: 999px; padding: 12px 26px; font-weight: 700; }
.mb-btn-accent .wp-block-button__link:hover { background: var(--mb-accent-hover); }
.mb-btn-light .wp-block-button__link { color: #fff !important; border: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 999px; padding: 11px 24px; background: transparent; }
.mb-btn-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }

/* ===== 글 목록(블로그·카테고리) 카드 ===== */
.loop-entry.entry { border-radius: var(--mb-radius); overflow: hidden; border: 1px solid var(--global-palette7); box-shadow: var(--mb-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.loop-entry.entry:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow-hover); }
.loop-entry .entry-title { font-size: 1.2rem; line-height: 1.4; }
.loop-entry .entry-title a { text-decoration: none; }
.loop-entry .entry-summary { color: var(--global-palette5); font-size: .95rem; }
.archive-title, .page-title { letter-spacing: -0.03em; }
.search-form .search-field, .wp-block-search__input { border-radius: 10px; }

/* ===== 글 본문 ===== */
.single-content { font-size: 1.07rem; }
.single-post .single-content h2 { margin-top: 2.2em; padding-bottom: .35em; border-bottom: 2px solid var(--global-palette7); }
.single-post .single-content h3 { margin-top: 1.8em; }
.single-content blockquote { border-left: 4px solid var(--mb-accent); background: var(--global-palette8); padding: 1em 1.4em; border-radius: 0 10px 10px 0; }
.single-content img, .post-thumbnail img { border-radius: 12px; }
.single-content a { text-underline-offset: 3px; }
.entry-hero .entry-meta, .entry-header .entry-meta { color: var(--global-palette6); }
#ez-toc-container { border-radius: 12px; border-color: var(--global-palette7) !important; background: var(--global-palette8) !important; padding: 14px 20px; box-shadow: none; }
.entry-author { border-radius: var(--mb-radius); }
.rank-math-breadcrumb { font-size: .85rem; color: var(--global-palette6); }
.rank-math-breadcrumb a, .entry-meta a {
	color: var(--global-palette5); text-decoration: underline; text-decoration-color: var(--global-palette7); text-underline-offset: 3px;
}
.rank-math-breadcrumb a:hover, .entry-meta a:hover { color: var(--global-palette1); text-decoration-color: currentColor; }

/* ===== 사이드바 ===== */
.primary-sidebar .widget { background: #fff; border: 1px solid var(--global-palette7); border-radius: var(--mb-radius); padding: 20px 22px; }
.primary-sidebar .widget h3, .primary-sidebar .widget .widget-title { font-size: 1rem; margin-top: 0; padding-bottom: .5em; border-bottom: 2px solid var(--global-palette1); display: inline-block; }
.primary-sidebar .wp-block-latest-posts li { margin-bottom: .7em; }
.primary-sidebar a { text-decoration: none; }
.primary-sidebar .wp-block-categories-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--global-palette7); }
.primary-sidebar .wp-block-categories-list a { font-weight: 600; } /* 카테고리 목록 링크를 굵게 구분 */
.entry-header .entry-taxonomies .category-links a { color: #fff !important; background: var(--global-palette1); }
.wp-block-tag-cloud a { font-size: .85rem !important; padding: 3px 10px; border: 1px solid var(--global-palette7); border-radius: 999px; text-decoration: none; margin: 0 4px 6px 0; display: inline-block; }

/* 사이드바 검색 */
.primary-sidebar .wp-block-search__inside-wrapper { gap: 6px; }
.primary-sidebar .wp-block-search__button { white-space: nowrap; flex-shrink: 0; border-radius: 10px; padding: 0 16px; background: var(--global-palette1); color: #fff; border: 0; }
.primary-sidebar .wp-block-search__input { border-radius: 10px; }

/* 작성자 박스 */
.entry-author { margin: 32px 0; }
.entry-author-style-normal .entry-author-profile { background: #fff; border: 1px solid var(--global-palette7); border-radius: var(--mb-radius); padding: 24px 24px 24px 120px; min-height: 120px; box-shadow: var(--mb-shadow); }
.entry-author-style-normal .entry-author-avatar { left: 24px; top: 24px; }
.entry-author-avatar img { border-radius: 50%; }
.entry-related { margin-top: 40px; }

/* ===== 푸터 ===== */
#colophon, #colophon .site-footer-wrap, #colophon .site-footer-row-container-inner { background: #0F172A; color: #94A3B8; }
#colophon .site-middle-footer-inner-wrap { padding-top: 40px; padding-bottom: 16px; }
#colophon a, #colophon .footer-navigation .footer-menu-container > ul > li > a { color: #CBD5E1; text-decoration: none; }
#colophon a:hover, #colophon .footer-navigation .footer-menu-container > ul > li > a:hover { color: #fff; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid rgba(148, 163, 184, .15); }
#colophon .footer-html, #colophon .footer-html p { font-size: .88rem; color: #94A3B8; }
#colophon .site-bottom-footer-inner-wrap { padding-top: 18px; padding-bottom: 18px; }

/* 맨 위로 버튼 — 2026-10-02 사장님 "오른쪽 하단 위로 버튼 안 보인다": 모바일에서도 보이게, 진한 원형 + 그림자 */
#kt-scroll-up, #kt-scroll-up-reader { width: 48px; height: 48px; padding: 0 !important; display: flex; align-items: center; justify-content: center;
	background: #1F2328 !important; border: 2px solid #fff !important; color: #fff !important; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.35); z-index: 999; }
#kt-scroll-up:hover, #kt-scroll-up:focus { background: var(--mb-accent) !important; }
#kt-scroll-up svg { width: 22px; height: 22px; }
#kt-scroll-up.scroll-up-side-right { right: 18px !important; bottom: 22px !important; }
@media (max-width: 767px) { #kt-scroll-up.vs-sm-false { display: flex !important; } }

/* ===== 모바일 ===== */
@media (max-width: 781px) {
	.mb-section { padding: 44px 16px; }
	.mb-section__head { margin-top: 40px; }
	.mb-query .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
	.mb-hero, .mb-section { padding-left: 16px !important; padding-right: 16px !important; }
	.mb-hero__search .wp-block-search__button.wp-element-button { padding: 10px 16px; }
	.mb-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
}
@media (min-width: 782px) and (max-width: 1024px) {
	.mb-query .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.mb-card, .mb-cat, .loop-entry.entry, .mb-card .wp-block-post-featured-image img { transition: none; }
}

/* 글 끝 부컴 안내 */
.bucom-repair-note { margin-top: 2.5em; padding: 14px 18px; border-left: 4px solid var(--global-palette1); background: var(--global-palette7); border-radius: 6px; font-size: .95em; }

/* 분야별 보기 아이콘 — 부컴 로고(COM_ 차콜 박스) 스타일 (사장님 지정 2026-10-02)
   차콜 사각 박스(모서리 2px) + 흰 선 아이콘 + 오른쪽 아래 커서 밑줄(_) */
.mb-cat__icon { background: #1d2020 !important; border-radius: 3px !important; }
.mb-cat__icon::before { background: #fff !important; inset: 12px 12px 14px 12px; }
.mb-cat__icon::after { content: ""; position: absolute; right: 7px; bottom: 6px; width: 9px; height: 3px; background: var(--mb-accent); }
.mb-cat:hover .mb-cat__icon { background: var(--mb-accent) !important; }
.mb-cat:hover .mb-cat__icon::after { background: #1d2020; }
.mb-cat:hover { border-color: #1d2020; }
