/*
Theme Name: AljiSitemap Site
Theme URI: https://sitemap.aljistory.com
Author: ALJISTORY
Author URI: https://aljistory.com
Description: AljiSitemap(워드프레스 XML 사이트맵 플러그인) 공식 사이트 테마. 플러그인 소개, 기능, 사용 방법, 자주 묻는 질문, 블로그 소식을 한 화면에서 보여줍니다.
Version: 1.0.1
Requires at least: 5.8
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aljisitemap-site
*/

/* -----------------------------------------
   디자인 토큰
   흰 배경 + 짙은 청록 포인트. 본문 글자는 배경 대비 4.5:1 이상.
   ----------------------------------------- */
:root {
	--as-bg: #FFFFFF;
	--as-surface: #F4F7F6;
	--as-surface-2: #E8F0EE;
	--as-line: #DCE4E2;
	--as-ink: #13201D;
	--as-text: #33413E;
	--as-muted: #5E6B68;
	--as-accent: #0E7C6B;
	--as-accent-hover: #0A6355;
	--as-accent-soft: #E3F3EF;
	--as-ok: #12805C;
	--as-warn: #A15C07;
	--as-code-bg: #0F1B19;
	--as-code-text: #D7E7E3;
	--as-radius: 14px;
	--as-radius-sm: 8px;
	--as-shadow: 0 1px 2px rgba(19, 32, 29, .05), 0 8px 24px rgba(19, 32, 29, .06);
	--as-max: 1120px;
	--as-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
	--as-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--as-bg);
	color: var(--as-text);
	font-family: var(--as-font);
	font-size: 17px;
	line-height: 1.7;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--as-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--as-ink); line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--as-mono); font-size: .9em; background: var(--as-surface-2); color: var(--as-ink); padding: .1em .4em; border-radius: 5px; }

.as-container { width: 100%; max-width: var(--as-max); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.as-skip:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--as-ink); color: #fff; padding: 8px 14px; border-radius: var(--as-radius-sm);
}

/* 버튼 */
.as-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px;
	border-radius: 999px; border: 1px solid var(--as-accent);
	background: var(--as-accent); color: #fff;
	font: 600 16px/1 var(--as-font); cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.as-btn:hover { background: var(--as-accent-hover); border-color: var(--as-accent-hover); color: #fff; text-decoration: none; }
.as-btn--ghost { background: transparent; color: var(--as-ink); border-color: var(--as-line); }
.as-btn--ghost:hover { background: var(--as-surface); color: var(--as-ink); border-color: var(--as-line); }
.as-btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.as-btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 3px solid rgba(14, 124, 107, .35); outline-offset: 2px;
}

/* 언어 선택 바(GTranslate 플러그인이 있을 때만) */
.as-lang-bar { background: var(--as-surface); border-bottom: 1px solid var(--as-line); padding: 6px 20px; text-align: right; font-size: 14px; }

/* -----------------------------------------
   헤더
   ----------------------------------------- */
.as-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(160%) blur(8px);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--as-line);
}
.admin-bar .as-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .as-header { top: 46px; } }

.as-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.as-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--as-ink); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.as-logo:hover { text-decoration: none; }
.as-logo__mark { width: 30px; height: 30px; flex: none; }

.as-nav { display: flex; align-items: center; gap: 6px; }
.as-nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.as-nav__menu a { display: block; padding: 8px 12px; border-radius: var(--as-radius-sm); color: var(--as-text); font-size: 15px; font-weight: 500; }
.as-nav__menu a:hover { background: var(--as-surface); color: var(--as-ink); text-decoration: none; }
.as-nav__menu .current-menu-item > a { color: var(--as-accent); }
.as-nav .as-btn { margin-left: 8px; }

.as-nav-toggle { display: none; }

@media (max-width: 760px) {
	.as-nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 42px; height: 42px; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm);
		background: #fff; color: var(--as-ink); cursor: pointer;
	}
	.as-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 4px;
		padding: 12px 20px 18px; background: #fff; border-bottom: 1px solid var(--as-line);
		box-shadow: 0 12px 24px rgba(19, 32, 29, .08);
	}
	.as-nav.is-open { display: flex; }
	.as-nav__menu { flex-direction: column; align-items: stretch; }
	.as-nav__menu a { padding: 12px; font-size: 16px; }
	.as-nav .as-btn { margin: 8px 0 0; }
}

/* -----------------------------------------
   공통 섹션
   ----------------------------------------- */
.as-section { padding: 88px 0; }
.as-section--alt { background: var(--as-surface); border-top: 1px solid var(--as-line); border-bottom: 1px solid var(--as-line); }
.as-section__head { max-width: 760px; margin: 0 0 40px; }
.as-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.as-eyebrow {
	display: inline-block; margin-bottom: 12px;
	color: var(--as-accent); font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.as-section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.as-section__lead { color: var(--as-muted); font-size: 18px; margin: 0; }

@media (max-width: 760px) { .as-section { padding: 64px 0; } }

/* -----------------------------------------
   히어로
   ----------------------------------------- */
.as-hero { padding: 80px 0 72px; }
.as-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.as-hero h1 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.as-hero h1 em { font-style: normal; color: var(--as-accent); }
.as-hero__lead { font-size: 19px; color: var(--as-text); max-width: 560px; margin-bottom: 28px; }
.as-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.as-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.as-hero__meta li {
	font-size: 14px; color: var(--as-muted);
	padding: 4px 12px; border: 1px solid var(--as-line); border-radius: 999px; background: #fff;
}
.as-hero__note { margin: 14px 0 0; font-size: 14px; color: var(--as-muted); }

@media (max-width: 900px) {
	.as-hero { padding: 56px 0 48px; }
	.as-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* 히어로 오른쪽: 자가 진단 결과 미리보기 */
.as-diag {
	background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius);
	box-shadow: var(--as-shadow); overflow: hidden;
}
.as-diag__bar {
	display: flex; align-items: center; gap: 8px;
	padding: 12px 16px; background: var(--as-surface); border-bottom: 1px solid var(--as-line);
	font-size: 14px; color: var(--as-muted);
}
.as-diag__dots { display: inline-flex; gap: 6px; margin-right: 6px; }
.as-diag__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--as-line); display: block; }
.as-diag__url { font-family: var(--as-mono); color: var(--as-ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-diag__body { padding: 18px 20px 20px; }
.as-diag__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.as-diag__title strong { color: var(--as-ink); font-size: 16px; }
.as-diag__title span { font-size: 13px; color: var(--as-muted); }
.as-diag__list { list-style: none; margin: 0; padding: 0; }
.as-diag__list li {
	display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
	padding: 10px 0; border-top: 1px solid var(--as-line); font-size: 15px; color: var(--as-text);
}
.as-diag__list li:first-child { border-top: 0; }
.as-diag__icon { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--as-accent-soft); color: var(--as-ok); }
.as-diag__icon svg { width: 12px; height: 12px; }
.as-diag__val { font-family: var(--as-mono); font-size: 13px; color: var(--as-muted); }
.as-diag__foot {
	margin-top: 14px; padding: 12px 14px; border-radius: var(--as-radius-sm);
	background: var(--as-accent-soft); color: var(--as-accent-hover); font-size: 14px; font-weight: 600;
}

/* -----------------------------------------
   기능 카드
   ----------------------------------------- */
.as-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.as-feature {
	background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius);
	padding: 26px 24px;
}
.as-feature__icon {
	width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--as-accent-soft); color: var(--as-accent);
}
.as-feature__icon svg { width: 22px; height: 22px; }
.as-feature h3 { font-size: 19px; margin-bottom: 8px; }
.as-feature p { color: var(--as-muted); font-size: 16px; margin: 0; }

@media (max-width: 900px) { .as-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .as-features { grid-template-columns: 1fr; } }

/* -----------------------------------------
   만들어지는 사이트맵 파일 표
   ----------------------------------------- */
.as-files { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.as-files__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius); overflow: hidden; font-size: 15px; }
.as-files__table th, .as-files__table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--as-line); vertical-align: top; }
.as-files__table tr:last-child td { border-bottom: 0; }
.as-files__table th { background: var(--as-surface); color: var(--as-ink); font-size: 14px; font-weight: 700; }
.as-files__table td:first-child { font-family: var(--as-mono); font-size: 14px; color: var(--as-ink); white-space: nowrap; }
.as-files__table td:last-child { color: var(--as-muted); }
.as-checks { list-style: none; margin: 0; padding: 0; }
.as-checks li { position: relative; padding: 0 0 14px 30px; color: var(--as-text); }
.as-checks li::before {
	content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--as-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C6B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

@media (max-width: 900px) {
	.as-files { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
	.as-files__table thead { display: none; }
	.as-files__table, .as-files__table tbody, .as-files__table tr, .as-files__table td { display: block; width: 100%; }
	.as-files__table tr { padding: 12px 16px; border-bottom: 1px solid var(--as-line); }
	.as-files__table tr:last-child { border-bottom: 0; }
	.as-files__table td { padding: 0; border: 0; white-space: normal; }
	.as-files__table td:first-child { margin-bottom: 2px; word-break: break-all; }
}

/* -----------------------------------------
   사용 방법(단계)
   ----------------------------------------- */
.as-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.as-step { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius); }
.as-step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
	background: var(--as-accent); color: #fff; font-weight: 700; font-size: 15px;
}
.as-step h3 { font-size: 18px; margin-bottom: 6px; }
.as-step p { color: var(--as-muted); font-size: 15px; margin: 0; }

@media (max-width: 900px) { .as-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .as-steps { grid-template-columns: 1fr; } }

/* -----------------------------------------
   최신 소식 캐러셀
   ----------------------------------------- */
.as-recent__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.as-recent__head h2 { margin: 0; }
.as-recent__nav { display: flex; gap: 8px; }
.as-recent__arrow {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--as-line); background: #fff;
	color: var(--as-ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.as-recent__arrow:hover { background: var(--as-surface); }
.as-recent__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.as-recent__track::-webkit-scrollbar { display: none; }
.as-card {
	scroll-snap-align: start; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius); overflow: hidden; color: inherit;
}
.as-card:hover { text-decoration: none; border-color: #C5D3D0; }
.as-card__thumb { aspect-ratio: 16 / 9; background: var(--as-surface-2); overflow: hidden; }
.as-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.as-card__title { color: var(--as-ink); font-weight: 700; font-size: 17px; line-height: 1.45; }
.as-card__date { color: var(--as-muted); font-size: 14px; }

@media (max-width: 900px) { .as-recent__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .as-recent__track { grid-auto-columns: 85%; } .as-recent__nav { display: none; } }

/* -----------------------------------------
   자주 묻는 질문
   ----------------------------------------- */
.as-faq { max-width: 800px; margin: 0 auto; }
.as-faq details { border-bottom: 1px solid var(--as-line); }
.as-faq details:first-child { border-top: 1px solid var(--as-line); }
.as-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 4px; color: var(--as-ink); font-weight: 700; font-size: 17px;
}
.as-faq summary::-webkit-details-marker { display: none; }
.as-faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--as-muted); }
.as-faq details[open] summary::after { content: "−"; }
.as-faq__answer { padding: 0 4px 20px; color: var(--as-text); }
.as-faq__answer p:last-child { margin: 0; }

/* -----------------------------------------
   마무리 CTA
   ----------------------------------------- */
.as-cta {
	text-align: center; padding: 56px 24px; border-radius: 20px;
	background: var(--as-ink); color: #DCE7E4;
}
.as-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.as-cta p { color: #B9C9C5; margin-bottom: 24px; }
.as-cta .as-btn { background: #fff; color: var(--as-ink); border-color: #fff; }
.as-cta .as-btn:hover { background: var(--as-accent-soft); border-color: var(--as-accent-soft); color: var(--as-ink); }

/* -----------------------------------------
   글·페이지
   ----------------------------------------- */
.as-page { max-width: 760px; margin: 0 auto; padding: 64px 0 88px; }
.as-page__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.as-page__meta { color: var(--as-muted); font-size: 15px; margin-bottom: 32px; }
.as-page__thumb { margin: 0 0 32px; border-radius: var(--as-radius); overflow: hidden; }
.as-content > * + * { margin-top: 1.1em; }
.as-content h2 { font-size: 26px; margin-top: 1.8em; }
.as-content h3 { font-size: 21px; margin-top: 1.5em; }
.as-content p, .as-content li { color: var(--as-text); }
.as-content ul, .as-content ol { padding-left: 1.3em; }
.as-content li + li { margin-top: .35em; }
.as-content a { text-decoration: underline; text-underline-offset: 3px; }
.as-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--as-accent); color: var(--as-muted); }
.as-content pre { background: var(--as-code-bg); color: var(--as-code-text); padding: 18px 20px; border-radius: var(--as-radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.as-content pre code { background: none; color: inherit; padding: 0; }
.as-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.as-content th, .as-content td { border: 1px solid var(--as-line); padding: 10px 12px; text-align: left; }
.as-content th { background: var(--as-surface); }
.as-content img { border-radius: var(--as-radius-sm); }
.as-content figure { margin: 1.5em 0; }
.as-content figcaption { color: var(--as-muted); font-size: 14px; text-align: center; margin-top: 8px; }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }

/* 글 목록 */
.as-list { max-width: 860px; margin: 0 auto; padding: 64px 0 88px; }
.as-list__title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 32px; }
.as-list__item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--as-line); color: inherit; }
.as-list__item:hover { text-decoration: none; }
.as-list__item:hover h2 { color: var(--as-accent); }
.as-list__thumb { aspect-ratio: 16 / 10; border-radius: var(--as-radius-sm); overflow: hidden; background: var(--as-surface-2); }
.as-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-list__item h2 { font-size: 21px; margin-bottom: 6px; }
.as-list__item p { color: var(--as-muted); font-size: 16px; margin: 0 0 6px; }
.as-list__date { color: var(--as-muted); font-size: 14px; }
.as-list__item--nothumb { grid-template-columns: 1fr; }
.as-pagination { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.as-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); color: var(--as-text); }
.as-pagination .current { background: var(--as-accent); border-color: var(--as-accent); color: #fff; }

@media (max-width: 600px) {
	.as-list__item { grid-template-columns: 1fr; gap: 14px; }
}

/* -----------------------------------------
   푸터
   ----------------------------------------- */
.as-footer { border-top: 1px solid var(--as-line); background: var(--as-surface); padding: 40px 0; font-size: 15px; }
.as-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.as-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--as-ink); font-weight: 700; }
.as-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.as-footer__menu a { color: var(--as-text); }
.as-footer__meta { width: 100%; color: var(--as-muted); font-size: 14px; margin: 0; }
.as-footer__meta a { color: var(--as-muted); text-decoration: underline; text-underline-offset: 3px; }
