/* FAQ v2 — 1a 검색 퍼스트 · 전역 토큰/선택자와 충돌하지 않도록 .fq-page에만 적용 */

body.fq-v2-page {
	overflow-x: clip;
}

body.fq-v2-page #page.grid-container {
	max-width: 100% !important;
}

body.fq-v2-page #page,
body.fq-v2-page .site-content {
	max-width: 100% !important;
	width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.fq-v2-page .site-content {
	display: block !important;
	min-width: 0;
}

body.fq-v2-page .content-area,
body.fq-v2-page main#main.site-main {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	padding: 0 !important;
	margin: 0 !important;
}

body.fq-v2-page .site-main {
	max-width: none !important;
	width: 100%;
	padding: 0;
	margin: 0;
}

body.fq-v2-page .widget-area {
	display: none !important;
}

.fq-page {
	--fq-primary-50: #EEF9F6;
	--fq-primary-500: #059669;
	--fq-primary-600: #047E57;
	--fq-primary-700: #036546;
	--fq-amber-500: #C5870F;
	--fq-gray-50: #F7F7F5;
	--fq-gray-100: #F0F0ED;
	--fq-gray-200: #E6E6E2;
	--fq-gray-300: #D4D4CF;
	--fq-gray-500: #8A8A85;
	--fq-gray-700: #45453F;
	--fq-gray-900: #1B1B18;
	--fq-white: #FFFFFF;
	--fq-radius-sm: 2px;
	--fq-radius-md: 6px;
	--fq-radius-lg: 8px;
	--fq-shadow-sm: 0 1px 3px rgba(27, 27, 24, .06);
	--fq-shadow-md: 0 4px 16px rgba(27, 27, 24, .07);
	--fq-shadow-lg: 0 12px 30px rgba(27, 27, 24, .10);
	--fq-shadow-hover: 0 6px 20px rgba(27, 27, 24, .09);
	--fq-ring: 0 0 0 3px rgba(5, 150, 105, .18);
	--fq-font-kr: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
	--fq-font-en: Inter, "Pretendard Variable", Pretendard, system-ui, sans-serif;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	background: var(--fq-gray-50);
	color: var(--fq-gray-900);
	font-family: var(--fq-font-kr);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	word-break: keep-all;
	overflow: clip;
}

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

.fq-page [hidden] {
	display: none !important;
}

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

.fq-page .fq-hero {
	background: var(--fq-white);
	padding: 76px 24px 64px;
}

.fq-page .fq-hero-inner {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.fq-page .fq-eyebrow {
	font-family: var(--fq-font-en);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .16em;
	color: var(--fq-primary-600);
}

.fq-page .fq-eyebrow-amber {
	color: var(--fq-amber-500);
}

.fq-page .fq-title,
.fq-page .fq-section-title,
.fq-page .fq-results-title {
	margin: 0;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--fq-gray-900);
}

.fq-page .fq-title {
	margin-top: 12px;
	font-size: 40px;
	line-height: 1.25;
}

.fq-page .fq-subtitle {
	margin: 10px 0 32px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--fq-gray-500);
}

.fq-page .fq-search-box {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 64px;
	padding: 17px 22px;
	background: var(--fq-white);
	border-radius: var(--fq-radius-lg);
	box-shadow: var(--fq-shadow-md);
	text-align: left;
}

.fq-page .fq-search-box:focus-within {
	box-shadow: var(--fq-ring), var(--fq-shadow-md);
}

.fq-page .fq-search-icon {
	flex: none;
	color: var(--fq-primary-500);
}

.fq-page .fq-search-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--fq-gray-900);
	font-family: inherit;
	font-size: 17px;
	line-height: 44px;
}

.fq-page .fq-search-input::placeholder {
	color: var(--fq-gray-500);
	opacity: 1;
}

.fq-page .fq-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fq-gray-700);
	cursor: pointer;
}

.fq-page .fq-clear-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	background: var(--fq-gray-100);
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
}

.fq-page .fq-clear:hover .fq-clear-icon {
	background: var(--fq-gray-200);
}

.fq-page .fq-suggest-list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.fq-page .fq-suggest-label {
	align-self: center;
	margin-right: 4px;
	color: var(--fq-gray-500);
	font-size: 13px;
	line-height: 44px;
}

.fq-page .fq-suggest,
.fq-page .fq-filter,
.fq-page .fq-contact,
.fq-page .fq-vote {
	font-family: inherit;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.fq-page .fq-suggest {
	min-height: 34px;
	padding: 6px 12px;
	border: 0;
	border-radius: var(--fq-radius-md);
	background: var(--fq-gray-100);
	color: var(--fq-gray-700);
	font-size: 13px;
	font-weight: 500;
}

.fq-page .fq-suggest:hover {
	background: var(--fq-gray-200);
	color: var(--fq-gray-900);
}

.fq-page .fq-main {
	background: var(--fq-gray-50);
}

.fq-page .fq-content {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 56px 24px 96px;
}

.fq-page .fq-popular {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 44px;
}

.fq-page .fq-popular-copy {
	flex: 0 1 300px;
	min-width: 240px;
	padding-top: 1px;
}

.fq-page .fq-section-title {
	margin-top: 10px;
	font-size: 26px;
	line-height: 1.35;
}

.fq-page .fq-section-desc {
	margin: 8px 0 0;
	color: var(--fq-gray-500);
	font-size: 14px;
	line-height: 1.6;
}

.fq-page .fq-popular-list {
	flex: 1 1 560px;
	min-width: 0;
	padding: 8px 26px;
	background: var(--fq-white);
	border-radius: var(--fq-radius-lg);
	box-shadow: var(--fq-shadow-md);
}

.fq-page .fq-popular-row {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	min-height: 56px;
	padding: 16px 0;
	border: 0;
	border-top: 1px solid var(--fq-gray-200);
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.fq-page .fq-popular-row:first-child {
	border-top: 0;
}

.fq-page .fq-popular-row:hover {
	opacity: .66;
}

.fq-page .fq-popular-rank {
	flex: none;
	width: 18px;
	color: var(--fq-gray-300);
	font-family: var(--fq-font-en);
	font-size: 17px;
	font-weight: 700;
	font-feature-settings: "tnum" 1;
	text-align: center;
}

.fq-page .fq-popular-title {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--fq-gray-900);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

.fq-page .fq-chevron {
	flex: none;
	color: var(--fq-gray-500);
	transition: transform .2s ease;
}

.fq-page .fq-filter-area {
	margin-bottom: 20px;
}

.fq-page .fq-filter-scroll {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.fq-page .fq-filter {
	min-height: 36px;
	padding: 7px 14px;
	border: 0;
	border-radius: var(--fq-radius-md);
	background: var(--fq-white);
	box-shadow: var(--fq-shadow-sm);
	color: var(--fq-gray-700);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.fq-page .fq-filter:hover {
	background: var(--fq-gray-100);
	color: var(--fq-gray-900);
}

.fq-page .fq-filter.is-active {
	background: var(--fq-primary-500);
	box-shadow: none;
	color: var(--fq-white);
}

.fq-page .fq-browse {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.fq-page .fq-category {
	min-width: 0;
}

.fq-page .fq-category-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 28px;
	margin: 0 0 14px;
	padding-top: 8px;
	color: var(--fq-primary-500);
}

.fq-page .fq-category-name {
	margin: 0;
	color: var(--fq-gray-900);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.5;
}

.fq-page .fq-category-count {
	color: var(--fq-gray-500);
	font-family: var(--fq-font-en);
	font-size: 13px;
}

.fq-page .fq-category-card,
.fq-page .fq-results-list,
.fq-page .fq-empty {
	background: var(--fq-white);
	border-radius: var(--fq-radius-lg);
	box-shadow: var(--fq-shadow-md);
}

.fq-page .fq-category-card {
	padding: 0 26px;
}

.fq-page .fq-question-row,
.fq-page .fq-result-item {
	min-width: 0;
	border-top: 1px solid var(--fq-gray-200);
}

.fq-page .fq-question-row:first-child,
.fq-page .fq-result-item:first-child {
	border-top: 0;
}

.fq-page .fq-question-toggle {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 64px;
	padding: 21px 0;
	border: 0;
	background: transparent;
	color: var(--fq-gray-900);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.fq-page .fq-question-toggle:hover {
	opacity: .66;
}

.fq-page .fq-question-mark {
	flex: none;
	color: var(--fq-primary-500);
	font-family: var(--fq-font-en);
	font-size: 15px;
	font-weight: 700;
}

.fq-page .fq-question-title {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--fq-gray-900);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.5;
}

.fq-page .fq-question-toggle[aria-expanded="true"] .fq-chevron {
	transform: rotate(180deg);
}

.fq-page .fq-answer {
	max-width: 820px;
	padding: 4px 0 28px 31px;
}

.fq-page .fq-answer-blocks {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fq-page .fq-answer-heading,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] h4 {
	margin: 14px 0 0;
	color: var(--fq-gray-900);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.5;
}

.fq-page .fq-answer-blocks > .fq-answer-heading:first-child,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] > h4:first-child {
	margin-top: 0;
}

.fq-page .fq-answer-paragraph,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] p,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ul,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ol {
	margin: 0;
	color: var(--fq-gray-700);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ul,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ol:not(.fq-steps) {
	margin: 0;
	padding-left: 22px;
}

.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ul {
	list-style: disc;
}

.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ol:not(.fq-steps) {
	list-style: decimal;
}

.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ul li,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ol:not(.fq-steps) li {
	margin: 0 0 6px;
}

.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ul li:last-child,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ol:not(.fq-steps) li:last-child {
	margin-bottom: 0;
}

.fq-page .fq-question-title,
.fq-page .fq-image-caption,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] figcaption {
	overflow-wrap: anywhere;
}

.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] table {
	max-width: 100%;
	border-collapse: collapse;
}

.fq-page ol.fq-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fq-page ol.fq-steps > li {
	position: relative;
	display: list-item;
	min-width: 0;
	margin: 0;
	padding-left: var(--space-xl);
}

.fq-page ol.fq-steps > li + li {
	margin-top: 14px;
}

.fq-page ol.fq-steps > li > p,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] li > p {
	margin: 0 !important;
	padding: 0 !important;
}

.fq-page ol.fq-steps > li::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-full);
	background: var(--fq-primary-50);
	color: var(--fq-primary-700);
	font-family: var(--fq-font-en);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.fq-page ol.fq-steps > li::before {
	content: counter(list-item);
	position: absolute;
	top: 3px;
	left: 0;
}

.fq-page .fq-image-block,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 720px;
	margin: 0;
	text-align: center;
}

.fq-page .fq-image,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: none;
	border-radius: var(--fq-radius-lg);
	box-shadow: var(--fq-shadow-sm);
}

.fq-page .fq-image-caption,
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] figcaption {
	max-width: 100%;
	color: var(--fq-gray-500);
	font-size: 13px;
	line-height: 1.45;
}

/* step 안 이미지는 배지+간격만큼 되돌려 기존 본문 왼쪽 선과 맞춘다. */
.fq-page .fq-answer-blocks[data-fq-render-source="post_content"] ol.fq-steps > li > figure {
	width: calc(100% + var(--space-xl));
	max-width: 720px;
	margin: 14px 0 0 calc(0px - var(--space-xl));
}

.fq-page .fq-feedback {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
	padding-top: 18px;
	border-top: 1px solid var(--fq-gray-200);
}

.fq-page .fq-feedback-prompt,
.fq-page .fq-feedback-thanks {
	color: var(--fq-gray-700);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

.fq-page .fq-feedback-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fq-page .fq-vote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 13px;
	border: 0;
	border-radius: var(--fq-radius-md);
	background: var(--fq-gray-100);
	color: var(--fq-gray-700);
	font-size: 13px;
	font-weight: 600;
}

.fq-page .fq-vote:hover {
	background: var(--fq-primary-50);
	color: var(--fq-primary-700);
}

.fq-page .fq-feedback-up {
	color: var(--fq-primary-700);
}

.fq-page .fq-feedback-down a,
.fq-page .fq-contact {
	color: var(--fq-primary-600);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fq-page .fq-results {
	min-width: 0;
}

.fq-page .fq-results-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 26px;
	line-height: 1.35;
}

.fq-page .fq-results-title-term {
	color: var(--fq-gray-500);
	font-size: 15px;
	font-weight: 400;
}

.fq-page .fq-results-list {
	padding: 0 26px;
}

.fq-page .fq-result-item .fq-question-toggle {
	padding-top: 21px;
	padding-bottom: 21px;
}

.fq-page .fq-empty {
	padding: 56px 26px;
	text-align: center;
}

.fq-page .fq-empty-title {
	margin-bottom: 8px;
	color: var(--fq-gray-900);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.fq-page .fq-empty-desc {
	margin: 0 0 20px;
	color: var(--fq-gray-500);
	font-size: 14px;
	line-height: 1.6;
}

.fq-page .fq-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--fq-radius-md);
	background: var(--fq-primary-500);
	color: var(--fq-white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.fq-page .fq-contact:hover {
	background: var(--fq-primary-700);
	color: var(--fq-white);
}

.fq-page a:focus-visible,
.fq-page button:focus-visible,
.fq-page input:focus-visible {
	outline: none;
	box-shadow: var(--fq-ring);
}

/* 검색 input 자체 링 제거 — 포커스 링은 컨테이너 :focus-within 한 곳에만 */
.fq-page .fq-search-input:focus,
.fq-page .fq-search-input:focus-visible {
	outline: none;
	box-shadow: none;
}

@media screen and (max-width: 1160px) {
	.fq-page .fq-content {
		max-width: 100%;
	}
}

@media screen and (max-width: 900px) {
	.fq-page .fq-popular {
		flex-direction: column;
		gap: 20px;
	}

	.fq-page .fq-popular-copy,
	.fq-page .fq-popular-list {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}
}

@media screen and (max-width: 640px) {
	.fq-page .fq-hero {
		padding: 52px 18px 48px;
	}

	.fq-page .fq-title {
		font-size: 28px;
	}

	.fq-page .fq-subtitle {
		font-size: 16px;
	}

	.fq-page .fq-search-box {
		gap: 10px;
		padding: 14px 16px;
	}

	.fq-page .fq-search-input {
		font-size: 16px;
	}

	.fq-page .fq-suggest-list {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 2px 2px 4px;
		-webkit-overflow-scrolling: touch;
	}

	.fq-page .fq-suggest-label {
		flex: none;
	}

	.fq-page .fq-suggest {
		flex: none;
	}

	.fq-page .fq-content {
		padding: 42px 18px 72px;
	}

	.fq-page .fq-filter-scroll {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 2px 2px 4px;
		-webkit-overflow-scrolling: touch;
	}

	.fq-page .fq-filter {
		flex: none;
	}

	.fq-page .fq-category-card,
	.fq-page .fq-results-list {
		padding-right: 18px;
		padding-left: 18px;
	}

	.fq-page .fq-question-title {
		font-size: 16px;
	}

	.fq-page .fq-answer {
		padding-left: 31px;
	}

	.fq-page .fq-results-title {
		font-size: 22px;
	}
}

@media screen and (max-width: 375px) {
	.fq-page .fq-hero,
	.fq-page .fq-content {
		padding-right: 16px;
		padding-left: 16px;
	}

	.fq-page .fq-category-card,
	.fq-page .fq-results-list {
		padding-right: 16px;
		padding-left: 16px;
	}
}
