/* 아드웹백 키트 — A안(살림 해결 노트) 스타일
 * 원칙: awb- 클래스가 붙은 요소와 .awb-site 화면에만 적용한다.
 * 전환(awb_launched=1) 전에는 기존 방문자 화면이 바뀌지 않는다.
 */

:root {
	--awb-bg: #FAF8F4;
	--awb-card: #FFFFFF;
	--awb-line: #E7E1D8;
	--awb-ink: #1F2A28;
	--awb-ink2: #44504D;
	--awb-mute: #5A6360;
	--awb-mute2: #767F7C;
	--awb-main: #0F5A4E;
	--awb-main-d: #0A3F37;
	--awb-tint: #EEF4F2;
	--awb-point: #A65A18;
	--awb-r: 10px;
}

/* ------------------------------------------------------------ 글 화면 */

.awb-crumb {
	font-size: 13px;
	color: var(--awb-mute2);
	margin-bottom: 10px;
}
.awb-crumb a { color: var(--awb-mute); text-decoration: none; }
.awb-crumb a:hover { text-decoration: underline; }
.awb-crumb span { margin: 0 6px; }

.awb-checked {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--awb-main);
	background: #E4EFEC;
	border-radius: 5px;
}

.awb-summary {
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-left: 4px solid var(--awb-main);
	border-radius: var(--awb-r);
	padding: 18px 22px;
	margin: 0 0 22px;
}
.awb-summary-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--awb-main);
}
.awb-summary ul { margin: 0; padding-left: 20px; }
.awb-summary li {
	font-size: 16px;
	line-height: 1.8;
	color: var(--awb-ink);
	margin-bottom: 4px;
}

.awb-ad { margin: 26px 0; text-align: center; }

.awb-byline {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: var(--awb-r);
	padding: 18px 20px;
	margin: 26px 0;
}
.awb-byline-mark {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #E4EFEC;
	color: var(--awb-main);
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awb-byline-name { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.awb-byline-desc { margin: 0; font-size: 14px; line-height: 1.7; color: var(--awb-mute); }

.awb-related { margin: 30px 0 0; }
.awb-related h2 { font-size: 20px; margin: 0 0 14px; }
.awb-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.awb-card {
	display: block;
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: var(--awb-r);
	overflow: hidden;
	color: var(--awb-ink);
	text-decoration: none;
}
.awb-card:hover { border-color: #C9C0B2; }
.awb-card-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 92px;
}
.awb-card-body { display: block; padding: 13px; }
.awb-card-cat {
	display: block;
	font-size: 12px;
	color: var(--awb-mute2);
	margin-bottom: 4px;
}
.awb-card-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.awb-adjacent { display: flex; gap: 14px; margin: 20px 0 0; }
.awb-adj {
	flex: 1 1 0;
	padding: 15px 18px;
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: var(--awb-r);
	color: var(--awb-ink);
	text-decoration: none;
}
.awb-adj-next { text-align: right; }
.awb-adj-label { display: block; font-size: 12px; color: var(--awb-mute2); margin-bottom: 5px; }
.awb-adj-title { display: block; font-size: 15px; font-weight: 600; }

/* -------------------------------------------------------- 많이 본 글 */

.awb-popular .awb-rank { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.awb-rank li { border-bottom: 1px solid #F0EBE3; }
.awb-rank li:last-child { border-bottom: 0; }
.awb-rank a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	color: var(--awb-ink);
	text-decoration: none;
}
.awb-rank a:hover { background: #FBF9F5; }
.awb-rank-n {
	flex: 0 0 22px;
	font-size: 16px;
	font-weight: 700;
	color: var(--awb-point);
}
.awb-rank-t { flex: 1 1 auto; font-size: 16px; font-weight: 500; line-height: 1.45; }
.awb-rank-c {
	flex: 0 0 auto;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #FFFFFF;
	border-radius: 4px;
}

.awb-home .awb-popular {
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: var(--awb-r);
	overflow: hidden;
}

/* 테마가 숨겨 주지 않는 경우를 대비한 방어 정의 */
.awb-home .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ------------------------------------------------------------- 홈 */

.awb-home { color: var(--awb-ink); }

.awb-hero {
	display: flex;
	gap: 40px;
	align-items: center;
	background: var(--awb-tint);
	border: 1px solid #DCE6E2;
	border-radius: 12px;
	padding: 28px 30px;
	margin-bottom: 32px;
}
.awb-hero-text { flex: 1 1 auto; }
.awb-hero-text h2 {
	margin: 0 0 8px;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.5px;
}
.awb-hero-text p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--awb-ink2); }
.awb-hero-form { display: flex; max-width: 460px; }
.awb-hero-form input[type="search"] {
	flex: 1 1 auto;
	height: 46px;
	padding: 0 14px;
	font-size: 15px;
	border: 1px solid #CFC8BC;
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #FFFFFF;
	color: var(--awb-ink);
}
.awb-hero-form button {
	height: 46px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 600;
	color: #FFFFFF;
	background: var(--awb-main);
	border: 0;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
}
.awb-hero-form button:hover { background: var(--awb-main-d); }
.awb-hero-keys { flex: 0 0 320px; }
.awb-hero-keys-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--awb-ink2); }
.awb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.awb-chips a {
	padding: 8px 14px;
	font-size: 14px;
	background: #FFFFFF;
	border: 1px solid #CFC8BC;
	border-radius: 999px;
	color: var(--awb-ink);
	text-decoration: none;
}
.awb-chips a:hover { border-color: var(--awb-main); }

.awb-block { margin-bottom: 32px; }
.awb-block-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 14px;
}
.awb-block-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.awb-block-head a { font-size: 14px; font-weight: 600; }
.awb-block-note { font-size: 13px; color: var(--awb-mute); }

.awb-topics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.awb-topic {
	display: block;
	padding: 20px;
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: var(--awb-r);
	color: var(--awb-ink);
	text-decoration: none;
}
.awb-topic:hover { border-color: #C9C0B2; }
.awb-topic-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9px;
	margin-bottom: 12px;
}
.awb-topic-name { display: block; font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.awb-topic-desc { display: block; font-size: 13px; line-height: 1.5; color: var(--awb-mute); }

.awb-recent { display: flex; flex-direction: column; gap: 12px; }
.awb-recent-item {
	display: flex;
	gap: 16px;
	padding: 14px;
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: var(--awb-r);
	color: var(--awb-ink);
	text-decoration: none;
}
.awb-recent-item:hover { border-color: #C9C0B2; }
.awb-recent-thumb {
	flex: 0 0 132px;
	height: 88px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.awb-recent-thumb span { font-size: 12px; font-weight: 600; color: #FFFFFF; }
.awb-recent-body { flex: 1 1 auto; }
.awb-recent-title { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.awb-recent-ex { display: block; font-size: 14px; line-height: 1.55; color: var(--awb-mute); }
.awb-recent-date { display: block; font-size: 12px; color: var(--awb-mute2); margin-top: 8px; }

/* -------------------------------------- 새 스킨 (.awb-site 화면에만) */

body.awb-site {
	background: var(--awb-bg);
	font-family: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--awb-ink);
}
body.awb-site .site-header { background: #FFFFFF; border-bottom: 1px solid var(--awb-line); }
body.awb-site .main-navigation { background: var(--awb-main); }
body.awb-site .main-navigation .main-nav ul li a { color: #FFFFFF; font-weight: 500; }
body.awb-site .main-navigation .main-nav ul li.current-menu-item > a,
body.awb-site .main-navigation .main-nav ul li:hover > a { background: var(--awb-main-d); color: #FFFFFF; }
body.awb-site .inside-article,
body.awb-site .widget-area .widget {
	background: var(--awb-card);
	border: 1px solid var(--awb-line);
	border-radius: 12px;
}
body.awb-site .widget-area .widget-title {
	font-size: 15px;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--awb-main);
	margin-bottom: 12px;
}
body.awb-site .entry-content > h2 {
	background: var(--awb-main);
	color: #FFFFFF;
	font-size: 20px;
	padding: 11px 16px;
	border-radius: 8px;
	margin-top: 32px;
}
body.awb-site .entry-content > h2 a { color: #FFFFFF; }
/* 홈·요약 카드·관련 글의 제목은 띠를 쓰지 않는다 */
body.awb-site .awb-home h2,
body.awb-site .awb-related h2,
body.awb-site .awb-summary h2 {
	background: transparent;
	color: var(--awb-ink);
	padding: 0;
	border-radius: 0;
}
body.awb-site .entry-content p { font-size: 16px; line-height: 1.85; color: #2A3533; }
body.awb-site .entry-content table { border-collapse: collapse; width: 100%; }
body.awb-site .entry-content th {
	background: var(--awb-tint);
	border: 1px solid #D8E2DE;
	padding: 12px 14px;
	text-align: left;
}
body.awb-site .entry-content td { border: 1px solid #E2DDD4; padding: 12px 14px; background: #FFFFFF; }
body.awb-site .site-footer,
body.awb-site .site-info { background: #14322C; color: #B6C7C2; }
body.awb-site .site-info a { color: #DCE8E5; }

/* 홈 구성 페이지는 제목·메타를 숨기고 흰 박스를 벗긴다 */
body.awb-site.home .entry-title,
body.awb-site.home .entry-meta,
body.awb-site.home .entry-header { display: none; }
body.awb-site.home .inside-article,
body.awb-site.home article.page {
	border: 0;
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}
body.awb-site .awb-home { margin-top: 0; }

/* 글 대표 이미지는 내용과 무관한 옛 자동생성 이미지라 화면에서 숨긴다
   (파일과 og:image 는 그대로 두므로 공유·색인에는 영향이 없다) */
body.awb-site.single .featured-image,
body.awb-site.single .post-image,
body.awb-site.single .inside-article > .post-image { display: none; }

/* 사이드바 '이 사이트는' 상자 */
body.awb-site .awb-side-about { font-size: 14px; line-height: 1.7; color: var(--awb-ink2); }

/* ----------------------------------------------------------- 모바일 */

@media (max-width: 768px) {
	.awb-hero { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
	.awb-hero-keys { flex: 1 1 auto; }
	.awb-hero-text h2 { font-size: 21px; }
	.awb-hero-form { max-width: none; }
	.awb-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.awb-topic { padding: 14px; }
	.awb-topic-ico { width: 34px; height: 34px; margin-bottom: 9px; }
	.awb-topic-name { font-size: 15px; }
	.awb-related-grid { grid-template-columns: 1fr; }
	.awb-recent-thumb { flex-basis: 74px; height: 62px; }
	.awb-recent-thumb span { display: none; }
	.awb-recent-title { font-size: 15px; }
	.awb-recent-ex { display: none; }
	.awb-adjacent { flex-direction: column; }
	.awb-adj-next { text-align: left; }
	.awb-rank a { padding: 13px 14px; gap: 12px; }
	.awb-rank-t { font-size: 15px; }
	.awb-rank-c { display: none; }
	body.awb-site .entry-content h2 { font-size: 18px; padding: 10px 14px; }
}

/* ----------------------------------------------------------- 꼬리말 */

body.awb-site .site-footer .awb-foot { text-align: left; }
.awb-foot-name { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #FFFFFF; }
.awb-foot-desc { margin: 0 0 12px; font-size: 13px; color: #B6C7C2; }
.awb-foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.awb-foot-links a { font-size: 13px; color: #DCE8E5; text-decoration: none; }
.awb-foot-links a:hover { color: #FFFFFF; text-decoration: underline; }
.awb-foot-copy { margin: 0; font-size: 12px; color: #93A8A3; }

/* ------------------------------------------------------ 문의 페이지 */

.awb-contact-box {
	background: var(--awb-tint);
	border: 1px solid #DCE6E2;
	border-radius: 12px;
	padding: 24px 26px;
	margin: 22px 0 30px;
	text-align: center;
}
.awb-contact-label {
	margin: 0 0 8px !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--awb-ink2);
}
.awb-contact-mail { margin: 0 0 10px !important; }
.awb-contact-mail a {
	font-size: 22px;
	font-weight: 700;
	color: var(--awb-main);
	text-decoration: none;
	word-break: break-all;
}
.awb-contact-mail a:hover { text-decoration: underline; }
.awb-contact-note { margin: 0 !important; font-size: 13px; color: var(--awb-mute); }

@media (max-width: 768px) {
	.awb-contact-mail a { font-size: 18px; }
}

/* --------------------------------------------------------------- 로고 */

body.awb-site .main-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.awb-mark { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.awb-mark svg { display: block; border-radius: 8px; }

@media (max-width: 768px) {
	.awb-mark svg { width: 28px; height: 28px; }
	body.awb-site .main-title a { gap: 8px; }
}
