/**
 * 아파트 생활백서 — 화면 스타일
 * 레퍼런스 시안(카드형 홈 + 720px 아티클)을 기준으로 작성했다.
 */

:root {
	--apt-ink: #191F28;
	--apt-body: #333D4B;
	--apt-secondary: #6B7684;
	--apt-muted: #8B95A1;
	--apt-faint: #B0B8C1;
	--apt-primary: #3182F6;
	--apt-link: #1B64DA;
	--apt-link-hover: #0B4BB5;
	--apt-tint: #F4F8FF;
	--apt-surface: #F2F4F6;
	--apt-surface-soft: #F9FAFB;
	--apt-surface-faint: #FBFCFD;
	--apt-border: #E5E8EB;
	--apt-line: #F2F4F6;
	--apt-header-height: 68px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	word-break: keep-all;
	overflow-wrap: break-word;
}

/* -------------------------------------------------------------------------
 * 헤더
 * ---------------------------------------------------------------------- */

.aptlife-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.aptlife-header__inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: var(--apt-header-height);
	gap: 24px;
}

.aptlife-header .wp-block-site-title a {
	color: var(--apt-ink);
	text-decoration: none;
}

.aptlife-header .wp-block-site-title a:hover {
	color: var(--apt-ink);
	text-decoration: none;
}

.aptlife-search-toggle {
	appearance: none;
	border: 0;
	background: none;
	padding: 10px 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--apt-secondary);
	cursor: pointer;
	transition: color 0.15s ease;
}

.aptlife-search-toggle:hover,
.aptlife-search-toggle:focus-visible {
	color: var(--apt-ink);
}

/* -------------------------------------------------------------------------
 * 홈 · 아카이브
 * ---------------------------------------------------------------------- */

.aptlife-intro {
	margin-bottom: 40px;
}

.aptlife-intro__title {
	margin: 0 0 10px;
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.25;
	color: var(--apt-ink);
}

.aptlife-intro__lead,
.aptlife-intro .wp-block-site-tagline {
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	letter-spacing: -0.02em;
	color: var(--apt-secondary);
}

.aptlife-tabs {
	display: flex;
	gap: 28px;
	border-bottom: 1px solid var(--apt-border);
	margin-bottom: 48px;
	overflow-x: auto;
	scrollbar-width: none;
}

.aptlife-tabs::-webkit-scrollbar {
	display: none;
}

.aptlife-tabs__item {
	padding: 0 0 14px;
	margin-bottom: -1px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.03em;
	white-space: nowrap;
	color: var(--apt-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease;
}

/*
 * 레퍼런스와 동일하게 색만 바뀐다.
 * 현재 카테고리라도 밑줄·색 강조를 넣지 않는다(시안에 현재 탭 상태가 없다).
 * 현재 위치는 aria-current 로만 알리고 화면에는 드러내지 않는다.
 */
.aptlife-tabs__item:hover {
	color: var(--apt-ink);
	text-decoration: none;
}

/* 카드 목록 */

.aptlife-cards .wp-block-post-template {
	gap: 56px 40px;
}

.aptlife-cards .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
}

.aptlife-card__thumb {
	margin: 0 0 20px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--apt-surface);
}

.aptlife-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * 대표 이미지가 없을 때 제목으로 그리는 썸네일.
 * 이미지 파일 없이 마크업으로 그린다. 글자 크기는 카드 폭(cqw)에 비례한다.
 */

.aptlife-autothumb {
	display: block;
	margin: 0 0 20px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--apt-surface-soft);
	container-type: inline-size;
}

/*
 * 위·아래 행을 1fr 로 같게 두어 제목이 상자의 정확한 가운데에 온다.
 * 카테고리는 제목 바로 위(1행의 아래쪽), 브랜드는 맨 아래에 붙는다.
 */
.aptlife-autothumb a {
	display: grid;
	grid-template-rows: 1fr auto 1fr;
	justify-items: center;
	row-gap: 8px;
	row-gap: clamp(6px, 1.8cqw, 10px);
	width: 100%;
	height: 100%;
	padding: 0;
	text-align: center;
	text-decoration: none;
}

/* 카테고리를 제목 바로 위에 붙인다. 3행은 비워 두어 제목이 정중앙에 남는다. */
.aptlife-autothumb__pill {
	align-self: end;
}

.aptlife-autothumb__title {
	align-self: center;
}

.aptlife-autothumb a:hover {
	text-decoration: none;
}

.aptlife-autothumb__pill {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px var(--apt-border);
	font-size: 12px;
	font-size: clamp(10px, 2.9cqw, 14px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--apt-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.aptlife-autothumb__title {
	display: block;
	font-size: 21px;
	font-size: clamp(16px, 5.4cqw, 27px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.45;
	color: var(--apt-ink);
	text-wrap: balance;
}

.aptlife-autothumb__lead {
	display: block;
}

/* 제목 뒷부분은 색 블록으로 강조한다. */
.aptlife-autothumb__accent {
	display: inline;
	padding: 0.06em 0.3em;
	background: var(--apt-primary);
	color: #FFFFFF;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}


.aptlife-card__cat,
.aptlife-card__cat a {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--apt-primary);
	text-decoration: none;
}

.aptlife-card__cat {
	margin: 0 0 10px;
}

.aptlife-card__cat a:hover {
	color: var(--apt-link-hover);
	text-decoration: none;
}

.aptlife-card__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.42;
	text-wrap: pretty;
}

.aptlife-card__title a {
	color: var(--apt-ink);
	text-decoration: none;
}

.aptlife-card__title a:hover {
	color: var(--apt-link);
	text-decoration: none;
}

.aptlife-card__desc {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.65;
	letter-spacing: -0.02em;
	color: var(--apt-secondary);
	text-wrap: pretty;
}

.aptlife-card__desc p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.aptlife-card__date {
	margin: auto 0 0;
	font-size: 13px;
	color: var(--apt-faint);
}

/* 페이지 넘김 */

.aptlife-pagination {
	margin-top: 56px;
	justify-content: center;
	gap: 6px;
}

.aptlife-pagination .page-numbers,
.aptlife-pagination .wp-block-query-pagination-previous,
.aptlife-pagination .wp-block-query-pagination-next {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--apt-muted);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.aptlife-pagination a:hover {
	background: var(--apt-surface);
	color: var(--apt-ink);
	text-decoration: none;
}

.aptlife-pagination .page-numbers.current {
	background: var(--apt-surface);
	color: var(--apt-ink);
}

/* 결과 없음 */

.aptlife-empty {
	padding: 40px 0 0;
	font-size: 17px;
	color: var(--apt-secondary);
}

/* -------------------------------------------------------------------------
 * 글 상세
 * ---------------------------------------------------------------------- */

.aptlife-article {
	padding-top: 44px;
	padding-bottom: 120px;
}

.aptlife-article__cat {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--apt-muted);
}

.aptlife-article__cat a {
	color: var(--apt-muted);
	text-decoration: none;
}

.aptlife-article__cat a:hover {
	color: var(--apt-ink);
	text-decoration: none;
}

.aptlife-article__title {
	margin: 0 0 20px;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: -0.055em;
	text-wrap: pretty;
	color: var(--apt-ink);
}

.aptlife-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--apt-line);
	margin-bottom: 36px;
}

.aptlife-meta__mark {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--apt-surface) url("../img/logo.png") center / 22px 22px no-repeat;
}

.aptlife-meta__text {
	font-size: 14px;
	color: var(--apt-muted);
}

.aptlife-article__cover {
	margin: 0 0 36px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--apt-surface);
}

.aptlife-article__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 본문 요소 — 블록 사이 간격은 워드프레스 blockGap(20px)이 담당한다. */

.aptlife-content h2 {
	/* 시안의 섹션 간격: 앞 문단 아래 44px + 제목 아래 18px */
	margin-block: 44px 18px;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.42;
	color: var(--apt-ink);
}

.aptlife-content h3 {
	margin-block: 40px 12px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.5;
	color: var(--apt-ink);
}

.aptlife-content p {
	color: var(--apt-body);
	font-size: 18px;
	line-height: 1.85;
}

.aptlife-content strong {
	font-weight: 700;
	color: var(--apt-ink);
}

/* 레퍼런스와 동일: 기본은 밑줄 없이 색으로만, hover에서 밑줄. */
.aptlife-content a:not(.wp-block-button__link) {
	color: var(--apt-link);
	text-decoration: none;
}

.aptlife-content a:not(.wp-block-button__link):hover {
	color: var(--apt-link-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.aptlife-content ul,
.aptlife-content ol {
	color: var(--apt-body);
	font-size: 18px;
	line-height: 1.8;
}

.aptlife-content ol {
	padding-left: 22px;
}

/* 시안의 본문 목록: 기본 마커 대신 6px 회색 점 */
.aptlife-content ul.wp-block-list {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aptlife-content ul.wp-block-list > li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.aptlife-content ul.wp-block-list > li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 12px;
	border-radius: 50%;
	background: var(--apt-faint);
}

.aptlife-content ol li + li {
	margin-top: 8px;
}

.aptlife-content ol li::marker {
	color: var(--apt-faint);
}

/* 표 */

.aptlife-content .wp-block-table {
	margin-block: 28px;
	background: var(--apt-surface-faint);
	border-radius: 20px;
	/* 둥근 모서리는 유지하되 좁은 화면에서 표가 잘리지 않게 가로 스크롤을 남긴다. */
	overflow-x: auto;
}

/* 코어 기본값(thead 3px 실선)을 없앤다. */
.aptlife-content .wp-block-table thead,
.aptlife-content .wp-block-table tfoot {
	border: 0;
}

.aptlife-content .wp-block-table table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	font-size: 15px;
}

.aptlife-content .wp-block-table thead tr {
	background: var(--apt-surface);
}

.aptlife-content .wp-block-table th {
	text-align: left;
	padding: 14px 20px;
	font-weight: 700;
	color: var(--apt-body);
	border: 0;
}

.aptlife-content .wp-block-table td {
	padding: 14px 20px;
	color: var(--apt-body);
	border: 0;
	border-top: 1px solid var(--apt-line);
	line-height: 1.6;
}

.aptlife-content .wp-block-table figcaption {
	padding: 0 4px 14px;
	font-size: 15px;
	line-height: 1.75;
	color: var(--apt-muted);
}

/* 인용 */

.aptlife-content .wp-block-quote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--apt-border);
}

.aptlife-content .wp-block-quote p {
	font-size: 17px;
	font-weight: 400;
	color: var(--apt-body);
}

.aptlife-content .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	color: var(--apt-muted);
}

.aptlife-content .wp-block-image {
	margin-block: 32px;
}

.aptlife-content .wp-block-image img {
	border-radius: 16px;
}

.aptlife-content .wp-block-separator {
	margin-block: 44px;
	border: 0;
	border-top: 1px solid var(--apt-line);
	opacity: 1;
}

/* -------------------------------------------------------------------------
 * 본문 안내 블록 (패턴)
 * ---------------------------------------------------------------------- */

/*
 * 코어의 :root :where(.is-layout-constrained) > * 규칙과 명시도가 같으면
 * 로드 순서에 따라 여백이 뒤집힌다. 클래스를 두 번 써서 명시도를 올린다.
 */
.aptlife-callout.aptlife-callout {
	border-radius: 24px;
	padding: 32px;
	margin-block: 36px 48px;
}

.aptlife-callout.aptlife-callout > * {
	margin-block: 0 12px;
}

.aptlife-callout.aptlife-callout > *:last-child {
	margin-block-end: 0;
}

.aptlife-callout .aptlife-callout__title {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.aptlife-callout p,
.aptlife-callout li {
	font-size: 16px;
	line-height: 1.7;
	color: var(--apt-body);
}

/* 이것부터 하세요 — 옅은 파랑 */
.aptlife-callout.is-style-tip {
	background: var(--apt-tint);
}

.aptlife-callout.is-style-tip .aptlife-callout__title {
	color: var(--apt-primary);
}

.aptlife-callout.is-style-tip ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: aptlife-step;
}

.aptlife-callout.is-style-tip ol li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 12px;
	counter-increment: aptlife-step;
}

.aptlife-callout.is-style-tip ol li::before {
	content: counter(aptlife-step);
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border-radius: 50%;
	background: var(--apt-link);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 먼저 확인하세요 — 회색 체크리스트 */
.aptlife-callout.is-style-check {
	background: var(--apt-surface-soft);
}

.aptlife-callout.is-style-check .aptlife-callout__title {
	color: var(--apt-ink);
}

.aptlife-callout.is-style-check ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aptlife-callout.is-style-check ul li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 10px;
	color: var(--apt-body);
}

/* 테두리 없이 체크 표시만 쓴다. */
.aptlife-callout.is-style-check ul li::before {
	content: "✓";
	flex: none;
	width: 20px;
	margin-top: 1px;
	border: 0;
	color: var(--apt-primary);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
}

/*
 * 글 본문에서 쓰는 상자 클래스.
 * aptlife-summary: 핵심 요약(옅은 파랑) / aptlife-action-box: 행동 안내(회색)
 * 두 상자 모두 테두리 없이 배경과 여백만으로 구분한다.
 */

.aptlife-content .aptlife-summary,
.aptlife-content .aptlife-action-box {
	border: 0;
	border-radius: 24px;
	padding: 32px;
	margin-block: 36px 48px;
}

.aptlife-content .aptlife-summary {
	background: var(--apt-tint);
}

.aptlife-content .aptlife-action-box {
	background: var(--apt-surface-soft);
}

.aptlife-content .aptlife-action-box .aptlife-box-title {
	color: var(--apt-ink);
}

.aptlife-content .aptlife-summary > *,
.aptlife-content .aptlife-action-box > * {
	margin-block: 0 12px;
}

.aptlife-content .aptlife-summary > *:last-child,
.aptlife-content .aptlife-action-box > *:last-child {
	margin-block-end: 0;
}

.aptlife-content .aptlife-box-title {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--apt-primary);
}

.aptlife-content .aptlife-summary ul,
.aptlife-content .aptlife-summary ol,
.aptlife-content .aptlife-action-box ul,
.aptlife-content .aptlife-action-box ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aptlife-content .aptlife-summary li,
.aptlife-content .aptlife-action-box li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--apt-body);
}

.aptlife-content .aptlife-summary li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 11px;
	border-radius: 50%;
	background: var(--apt-primary);
}

/* 행동 안내 상자는 테두리 없는 체크 표시로 구분한다. */
.aptlife-content .aptlife-action-box li::before {
	content: "✓";
	flex: none;
	width: 18px;
	border: 0;
	color: var(--apt-primary);
	font-size: 15px;
	font-weight: 700;
}

.aptlife-content .aptlife-summary p:not(.aptlife-box-title),
.aptlife-content .aptlife-action-box p:not(.aptlife-box-title) {
	font-size: 16px;
	line-height: 1.7;
}

/* 두 갈래 비교 카드 */

.aptlife-compare {
	margin-block: 28px;
}

.aptlife-compare .wp-block-column {
	background: var(--apt-surface-soft);
	border-radius: 20px;
	padding: 26px;
}

.aptlife-compare .wp-block-column > *:first-child {
	margin-top: 0;
}

.aptlife-compare .wp-block-column > *:last-child {
	margin-bottom: 0;
}

.aptlife-compare h3,
.aptlife-compare h4 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.aptlife-compare p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--apt-body);
}

/* 사례 목록 — "이런 경우라면" Q/A 묶음 (시안의 cases 블록) */

.aptlife-cases {
	background: var(--apt-surface-soft);
	border-radius: 20px;
	padding: 26px 28px;
	margin-block: 28px;
}

.aptlife-content .aptlife-cases > * {
	margin-block: 0;
	padding: 14px 0;
	border-bottom: 1px solid #EDF0F3;
}

.aptlife-content .aptlife-cases > *:last-child {
	border-bottom: 0;
}

.aptlife-content .aptlife-cases h3,
.aptlife-content .aptlife-cases h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--apt-ink);
}

.aptlife-content .aptlife-cases p {
	margin: 0;
	font-size: 16px;
	line-height: 1.75;
	color: var(--apt-body);
}

/* 예시 문장 상자 */

.aptlife-quotebox {
	background: var(--apt-surface-soft);
	border-radius: 20px;
	padding: 24px 26px;
	margin-block: 20px;
}

.aptlife-quotebox p {
	margin: 0;
	font-size: 17px;
	line-height: 1.8;
	color: var(--apt-body);
}

/* -------------------------------------------------------------------------
 * 관련 글
 * ---------------------------------------------------------------------- */

.aptlife-related {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--apt-line);
}

.aptlife-related__heading {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--apt-muted);
}

.aptlife-related__card {
	display: block;
	background: var(--apt-surface-soft);
	border-radius: 20px;
	padding: 24px 26px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.aptlife-related__card + .aptlife-related__card {
	margin-top: 12px;
}

.aptlife-related__card:hover {
	background: var(--apt-surface);
	text-decoration: none;
}

.aptlife-related__cat {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--apt-link);
}

.aptlife-related__title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.5;
	color: var(--apt-ink);
}

/* -------------------------------------------------------------------------
 * 검색
 * ---------------------------------------------------------------------- */

.aptlife-search {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: #fff;
	overflow-y: auto;
}

.aptlife-search[hidden] {
	display: none;
}

.aptlife-search__bar {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px;
	height: var(--apt-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.aptlife-search__brand {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.05em;
	color: var(--apt-ink);
}

.aptlife-search__close {
	appearance: none;
	border: 0;
	background: none;
	padding: 10px 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--apt-secondary);
	cursor: pointer;
}

.aptlife-search__close:hover {
	color: var(--apt-ink);
}

.aptlife-search__body {
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 24px 80px;
}

.aptlife-search__form {
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 2px solid var(--apt-ink);
	padding-bottom: 16px;
}

.aptlife-search__icon {
	font-size: 22px;
	color: var(--apt-faint);
}

.aptlife-search__form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.045em;
	color: var(--apt-ink);
	padding: 0;
	-webkit-appearance: none;
}

.aptlife-search__form input::placeholder {
	color: var(--apt-faint);
}

/* 입력하는 동안 갱신되는 결과 목록 */

.aptlife-search__results {
	padding-top: 28px;
}

.aptlife-search__results[hidden] {
	display: none;
}

.aptlife-search__count {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--apt-muted);
}

.aptlife-search__none {
	margin: 20px 0 0;
	font-size: 17px;
	color: var(--apt-secondary);
}

.aptlife-search__result {
	display: block;
	padding: 20px 0;
	border-bottom: 1px solid var(--apt-line);
	text-decoration: none;
}

.aptlife-search__result:hover {
	text-decoration: none;
}

.aptlife-search__result-tag {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--apt-primary);
}

.aptlife-search__result-title {
	display: block;
	margin-bottom: 6px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.45;
	color: var(--apt-ink);
}

.aptlife-search__result-desc {
	display: block;
	font-size: 15px;
	line-height: 1.6;
	color: var(--apt-secondary);
}

.aptlife-search__suggest {
	padding-top: 32px;
}

.aptlife-search__suggest[hidden] {
	display: none;
}

.aptlife-search__suggest-title {
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--apt-muted);
}

.aptlife-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aptlife-search__chip {
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--apt-surface);
	font-size: 15px;
	font-weight: 600;
	color: var(--apt-body);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.aptlife-search__chip:hover {
	background: #E8EBED;
	color: var(--apt-ink);
	text-decoration: none;
}

/* 검색 결과 목록 */

.aptlife-results .wp-block-post-template > li {
	padding: 20px 0;
	border-bottom: 1px solid var(--apt-line);
}

.aptlife-results .aptlife-card__cat {
	margin-bottom: 8px;
}

.aptlife-results .aptlife-card__title {
	font-size: 18px;
	margin-bottom: 6px;
}

.aptlife-results .aptlife-card__desc {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 푸터
 * ---------------------------------------------------------------------- */

.aptlife-footer {
	border-top: 1px solid var(--apt-line);
	background: var(--apt-surface-faint);
	padding: 40px 24px;
}

.aptlife-footer__inner {
	max-width: 1080px;
	margin: 0 auto;
}

.aptlife-footer__top {
	gap: 24px;
}

/* 저작권 · 정책 링크 */

.aptlife-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--apt-line);
}

.aptlife-legal__copy {
	margin: 0;
}

.aptlife-legal__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.aptlife-legal__sep {
	color: var(--apt-border);
}

.aptlife-footer,
.aptlife-footer p {
	font-size: 13px;
	line-height: 1.7;
	color: var(--apt-faint);
}

.aptlife-footer a {
	color: var(--apt-faint);
	text-decoration: none;
}

.aptlife-footer a:hover {
	color: var(--apt-secondary);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * 접근성
 * ---------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:where(a, button, input, .aptlife-tabs__item):focus-visible {
	outline: 2px solid var(--apt-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

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

@media (max-width: 781px) {
	.aptlife-cards .wp-block-post-template {
		grid-template-columns: 1fr !important;
		gap: 44px;
	}

	.aptlife-intro__title {
		font-size: 32px;
	}

	.aptlife-tabs {
		gap: 20px;
		margin-bottom: 36px;
	}

	.aptlife-article {
		padding-top: 32px;
		padding-bottom: 80px;
	}

	.aptlife-article__title {
		font-size: 30px;
		line-height: 1.35;
	}

	.aptlife-card__title {
		font-size: 20px;
	}

	.aptlife-content p,
	.aptlife-content ul,
	.aptlife-content ol {
		font-size: 17px;
		line-height: 1.8;
	}

	.aptlife-content h2 {
		margin-block: 44px 16px;
		font-size: 23px;
	}

	.aptlife-content h3 {
		margin-block: 32px 10px;
		font-size: 19px;
	}

	.aptlife-content .wp-block-table {
		overflow-x: auto;
	}

	.aptlife-callout {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.aptlife-compare .wp-block-column {
		padding: 22px 20px;
	}

	.aptlife-search__form input[type="search"] {
		font-size: 22px;
	}

	.aptlife-footer__inner {
		flex-direction: column;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
