/* front-page — .tpl-front-page 아래로 작성
 * 히어로(시안 Figma 메인 · main_scroll_1/2). 연출은 assets/js/templates/front-page.js(GSAP · ScrollTrigger).
 *
 * 두 가지 모양이 있다 — 같은 마크업(templates/front-page.html)
 *   ① 정적: 에디터 · 움직임 줄이기 · 스크립트 없음. 문장 4줄 → 아래에 어두운 문구 블록이 이어진다. 영상은 문장 사이 작은 박스.
 *   ② 장면: 프런트(`.wp-site-blocks:not(.is-root-container)`) + 움직임 줄이기가 아닐 때. 화면 한 장 높이로 고정(sticky)된 채 스크롤하면
 *      영상 박스가 커져 화면을 채우고 문구가 올라온다. 높이는 CSS가 처음부터 잡아 두어 스크립트가 켜질 때 레이아웃이 움직이지 않는다.
 * 색은 프리셋(ivory · ink · white · line), 좌우 패딩은 gutter, 폭은 와이드(theme.json layout.wideSize).
 */

.tpl-front-page {
	--split-gap: clamp(28px, calc(5 * var(--wp--custom--vwc)), 80px);
	/* 솔루션 · 뉴스: 왼쪽 열(이미지)과 목록 사이 */
}

.tpl-front-page .hero {
	position: relative;
}

/* ── 문장 4줄 ─────────────────────────────────────────────────────────────────────
 * 크기는 폭에 비례(PC 120px · 모바일 24.57px = Figma). 줄 높이 0.9 · 자간 -0.032em · 줄 사이 0.2em(모바일 0.26em) */
.tpl-front-page .hero__pin {
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--xl);
}

.tpl-front-page .hero__copy {
	--hero-gap: 0.26em;
	/* 줄 사이 간격 — 영상 박스가 있는 줄이 좁은 화면에서 접힐 때도 같은 간격 */
	--hero-box: 0.8em;
	/* 영상 박스 한 변 — 글자 크기를 따라간다. 스크립트도 이 값(박스 자리의 높이)을 읽는다 */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--hero-gap);
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--wp--preset--spacing--gutter));
	margin-inline: auto;
	font-size: clamp(22px, calc(6.8 * var(--wp--custom--vwc)), 120px);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -0.032em;
	color: var(--wp--preset--color--ink);
}

@media (min-width: 768px) {
	.tpl-front-page .hero__copy {
		--hero-gap: 0.2em;
	}
}

.tpl-front-page .hero__line {
	margin: 0;
}

/* 영상 박스 자리 — 문장 사이 정사각형(--hero-box). 영상은 이 안에서 빈틈 없이 채운다(cover)
 * 한 줄에 다 안 들어가는 좁은 화면에서는 일반 글처럼 넘치는 쪽(Build a Brand.)이 다음 줄로 내려간다 */
.tpl-front-page .hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 0.2em;
	row-gap: var(--hero-gap);
	width: 100%;
}

.tpl-front-page .hero__slot {
	flex: none;
	width: var(--hero-box);
	height: var(--hero-box);
	margin-top: 0.07em;
	/* 박스가 문장 줄 위에서 이만큼 내려온다(시안은 0.133em, 줄 높이 0.9em) */
}

.tpl-front-page .thesmc-bg-video {
	container-type: size;
	/* 아래 영상이 박스 크기(cqw · cqh)를 기준으로 채운다 — 박스가 커져도 같은 규칙 */
	position: relative;
	margin: 0;
	overflow: hidden;
}

/* 박스의 어두운 바탕은 안쪽 래퍼에 둔다 — 히어로는 처음 등장할 때 래퍼를 왼쪽에서 열면 바탕과 영상이 함께 열린다(스크립트) */
.tpl-front-page .thesmc-bg-video .wp-block-embed__wrapper {
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--ink);
}

.tpl-front-page .thesmc-bg-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100cqw, calc(100cqh * 16 / 9));
	height: max(100cqh, calc(100cqw * 9 / 16));
	max-width: none;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* 세로 영상(모바일용 배너 — 임베드가 9:16 비율 클래스를 붙인다)은 9:16으로 채운다. 16:9 규칙 그대로면 플레이어가 세로 영상 양옆에 검은 띠를 넣는다 */
.tpl-front-page .thesmc-bg-video.wp-embed-aspect-9-16 iframe {
	width: max(100cqw, calc(100cqh * 9 / 16));
	height: max(100cqh, calc(100cqw * 16 / 9));
}

.tpl-front-page .hero__video {
	width: 100%;
	height: 100%;
}

/* 영상 위 어두운 막 — 스크롤로 영상이 커지면 짙어진다(--hero-veil 0→1, 스크립트). 장면 밖에서는 0 */
.tpl-front-page .hero__video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--wp--preset--color--ink) 62%, transparent);
	opacity: var(--hero-veil, 0);
	pointer-events: none;
}

/* ── 문구 블록(From Content to Business.) ─────────────────────────────────────────
 * 정적: 어두운 블록. 장면: 영상 위 정중앙에 얹힌다 */
.tpl-front-page .hero__statement {
	padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--gutter);
	background: var(--wp--preset--color--ink);
	text-align: center;
}

/* 큰 제목 공통 — 굵기 400 · 자간 -0.035em(시안). 크기와 줄 높이는 각자 */
.tpl-front-page :is(.hero__title, .sechead__title, .bm__name, .thesmc-sol__name) {
	font-weight: 400;
	letter-spacing: -0.035em;
}

.tpl-front-page .hero__title {
	margin: 0;
	font-size: clamp(28px, calc(7.4 * var(--wp--custom--vwc)), 52px);
	line-height: 0.96;
	color: inherit;
}

.tpl-front-page .hero__lead {
	margin: clamp(12px, 2vh, 20px) 0 0;
	font-size: clamp(14px, calc(3.8 * var(--wp--custom--vwc)), 18px);
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: -0.02em;
	word-break: keep-all;
}

@media (min-width: 768px) {
	.tpl-front-page .hero__title {
		font-size: clamp(32px, calc(5.6 * var(--wp--custom--vwc)), 100px);
	}

	.tpl-front-page .hero__lead {
		margin-top: clamp(16px, 2.6vh, 34px);
		font-size: clamp(15px, calc(1.5 * var(--wp--custom--vwc)), 25px);
	}
}

/* 스크립트가 줄 · 글자를 감싸는 조각 — 원래 문장은 숨김 텍스트로 남아 화면 낭독기가 읽는다 */
.tpl-front-page .hero__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	user-select: none;
	/* 글을 복사할 때 숨김 텍스트가 같이 붙어 두 번 나오지 않게 */
}

/* 줄 마스크(히어로 문구). 섹션 제목은 공통 「제목 리빌」(global.css · global.js) */
.tpl-front-page .hero__lnbox {
	display: block;
	clip-path: inset(0);
	/* 아래에서 올라오는 글자가 상자 밖에서는 보이지 않게(마스크) */
}

.tpl-front-page .hero__ln {
	display: block;
}

.tpl-front-page .hero__w,
.tpl-front-page .hero__c {
	display: inline-block;
	/* 글자마다 따로 움직이려면 inline-block이어야 한다 */
}

.tpl-front-page .hero__w {
	white-space: nowrap;
	/* 글자 단위로 나눠도 단어 중간에서 줄바꿈하지 않는다 */
}

/* ── 장면(프런트 · 움직임 줄이기 아님) ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero {
		height: 200vh;
	}

	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero__pin {
		position: sticky;
		top: 0;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		height: 100vh;
		height: 100svh;
		padding-top: calc(var(--thesmc-header-height, 70px) + 22px);
		/* 고정 헤더 아래(헤더 높이는 global.js가 잰다) */
		padding-bottom: clamp(40px, 7vh, 80px);
		overflow: hidden;
	}

	/* 박스 자리는 처음엔 공간을 차지하지 않는다 — 스크립트가 글자가 다 나온 뒤 가로로 늘린다(0 → --hero-box) */
	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero__slot {
		width: 0;
	}

	/* 영상은 처음부터 화면 한 장 크기로 꽉 차 있고, 문장 사이 박스는 그 위를 뚫은 네모 창이다. 스크롤하면 창(clip-path)만 커진다.
	 * 영상 자체의 크기는 바뀌지 않아 재생 화면이 늦게 따라오거나 검은 여백이 비치지 않는다. 자리(.hero__slot)는 그대로 남아 문장이 밀리지 않는다.
	 * 스크립트가 창 위치를 정하기 전까지는 숨겨 둔다(화면 전체를 덮지 않도록) */
	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero__video {
		position: absolute;
		inset: 0;
		z-index: 2;
		width: auto;
		height: auto;
		opacity: 0;
		pointer-events: none;
	}

	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero__statement {
		position: absolute;
		inset: 0;
		z-index: 3;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 0 var(--wp--preset--spacing--gutter);
		background: transparent;
		opacity: 0;
		/* 스크립트가 스크롤에 맞춰 올린다(스크립트가 없으면 보이지 않는다) */
		pointer-events: none;
	}

	/* 처음에는 숨겨 두어 번쩍임을 막는다. 스크립트가 안 돌아도 3초 뒤에는 보인다(연출은 그 안에 끝난다) */
	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero__copy .hero__line {
		opacity: 0;
		animation: hero-failsafe 0s linear 3s forwards;
	}
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero {
		height: 230vh;
	}

	.wp-site-blocks:not(.is-root-container) .tpl-front-page .hero__pin {
		padding-top: 0;
		/* 문장 블록이 화면 한가운데에 오도록 위아래를 같게(Figma) */
		padding-bottom: 0;
	}
}

@keyframes hero-failsafe {
	to {
		opacity: 1;
	}
}

/* ── 섹션 헤드(BM · 솔루션 · 뉴스 공통) ─────────────────────────────────────────────
 * 큰 제목 두 줄(왼쪽)과 설명(오른쪽 열). 위아래 간격은 섹션이 --sechead-pt / --sechead-pb / --sechead-lead-pb로 정한다.
 * 세로 간격은 창 높이(vh)가 아니라 폭(vwc)에 비례한다 — 창 높이가 달라도 같은 모양. `a + b × vwc`는 시안 PC(1920)와 모바일(390) 두 값을 지나는 직선이다.
 * 색은 블록 설정(프리셋), 좌우 패딩은 섹션에 gutter 프리셋 한 번, 안쪽은 와이드(constrained 레이아웃). 등장 연출은 assets/js/templates/front-page.js(제목 줄 마스크 · 설명 올라오기) */
.tpl-front-page .sechead {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	column-gap: clamp(24px, calc(4 * var(--wp--custom--vwc)), 72px);
	align-items: end;
	padding-top: var(--sechead-pt);
	padding-bottom: var(--sechead-pb, 0);
}

.tpl-front-page .bm .sechead {
	align-items: start;
}

/* 제목 두 줄 — 줄 높이 0.94에 줄마다 아래 0.1em을 더해 줄 간격 1.04em(시안). 위아래 반행간은 음수 마진으로 걷어 글자 위치를 시안에 맞춘다 */
.tpl-front-page .sechead__title {
	margin: -0.05em 0 0;
	padding-bottom: 0.05em;
	/* 마지막 줄 아래 0.1em 중 윗줄 쪽 반행간을 되돌린다 */
	font-size: clamp(34px, calc(6 * var(--wp--custom--vwc)), 96px);
	line-height: 1.04;
	width: max-content;
}

.tpl-front-page .sechead__ko {
	min-width: 0;
}

.tpl-front-page .sechead__lead {
	margin: 0;
	margin-top: .6em;
	padding-bottom: var(--sechead-lead-pb, 0);
	font-size: clamp(14px, calc(1.05 * var(--wp--custom--vwc)), 16.5px);
	font-weight: 500;
	line-height: 1.7;
	word-break: keep-all;
}

/* 작은 설명 글 공통(섹션 부제 · BM · 솔루션) */
.tpl-front-page :is(.sechead__sub, .bm__desc, .thesmc-sol__desc) {
	font-size: clamp(14.1px, calc(0.9 * var(--wp--custom--vwc)), 15px);
	line-height: 1.78;
	word-break: keep-all;
}

.tpl-front-page .sechead__sub {
	margin: 6px 0 0;
	/* 시안: 리드 아래 5.5~5.9 */
	padding-bottom: var(--sechead-lead-pb, 0);
}

@media (max-width: 1280px) {
	.tpl-front-page .sechead__title {
		width: fit-content;
	}

	.tpl-front-page .bm .sechead {
		align-items: end;
	}
}

@media (max-width: 767px) {
	.tpl-front-page .sechead {
		grid-template-columns: 1fr;
		row-gap: clamp(24px, calc(4 * var(--wp--custom--vwc)), 72px);
	}
}

/* ── BM(The Studio Runs / The System Learns) ───────────────────────────────────────
 * 시안 Figma 메인 02 · PC 1920 / 모바일 390. 어두운 바탕(ink) 위에 제목 · 설명, 영상 카드 두 장. 영상은 코어 임베드(Vimeo)가 inc/embed.php를 거쳐 배경 재생이 된다. */
.tpl-front-page .bm {
	--sechead-pt: calc(109px + 2.16 * var(--wp--custom--vwc));
	/* 시안 PC 150.5 · 모바일 117.5 */
	--sechead-pb: calc(59px + 1.18 * var(--wp--custom--vwc));
	/* 시안 PC 81.8 · 모바일 63.8 */
	--sechead-lead-pb: calc(9.4px + 0.19 * var(--wp--custom--vwc));
	/* 제목 아래 끝과 설명 아래 끝을 맞춘다(시안 PC 13 · 모바일 10) */
}

.tpl-front-page .bm__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(10px, calc(1 * var(--wp--custom--vwc)), 20px);
	padding-bottom: calc(102px + 2.03 * var(--wp--custom--vwc));
	/* 시안 PC 141 · 모바일 110 */
}

.tpl-front-page .bm__card {
	min-width: 0;
}

/* 영상 카드 — 16:9, 어두운 막(ink 30%)과 위아래 그라디언트(위 15% → 아래 55%) */
.tpl-front-page .bm__video {
	aspect-ratio: 16 / 9;
	box-shadow: 0 40px 110px color-mix(in srgb, var(--wp--preset--color--black) 50%, transparent);
}

.tpl-front-page .bm__video::after {
	content: "";
	position: absolute;
	inset: -1px;
	background:
		linear-gradient(180deg,
			color-mix(in srgb, var(--wp--preset--color--ink) 15%, transparent) 0%,
			transparent 30%,
			color-mix(in srgb, var(--wp--preset--color--ink) 55%, transparent) 100%),
		color-mix(in srgb, var(--wp--preset--color--ink) 30%, transparent);
	pointer-events: none;
}

.tpl-front-page .bm__no {
	margin: calc(42.5px + 0.39 * var(--wp--custom--vwc)) 0 0;
	font-size: clamp(14px, calc(0.8 * var(--wp--custom--vwc)), 15px);
	font-weight: 500;
	line-height: 1.7;
}

.tpl-front-page .bm__name {
	margin: calc(13.6px + 0.1 * var(--wp--custom--vwc)) 0 0;
	/* 번호 → 카드 제목 (시안 PC 15.5 · 모바일 14) */
	font-size: clamp(24px, calc(3.1 * var(--wp--custom--vwc)), 54px);
	line-height: 0.98;
}

.tpl-front-page .bm__desc {
	margin: calc(14.4px + 0.27 * var(--wp--custom--vwc)) 0 0;
	/* 카드 제목 → 설명 (시안 PC 19.7 · 모바일 15.5). 폭은 제한하지 않는다 — 줄바꿈은 에디터에서 직접(Shift+Enter) */
	text-wrap: pretty;
}

@media (max-width: 767px) {
	.tpl-front-page .bm__cards {
		grid-template-columns: 1fr;
		gap: clamp(36px, calc(13 * var(--wp--custom--vwc)), 60px);
		/* 카드 사이(시안 모바일 50.6) */
	}
}

/* ── 솔루션(Full Funnel To Every Media) ───────────────────────────────────────────
 * 시안 Figma 메인 03 · PC 1920 / 모바일 390. 밝은 바탕(ivory) 위에 헤드, 솔루션 6줄. 목록 블록은 플러그인(thesmc/solution-list) — 마크업 · 열고 닫는 동작(view.js)은 거기, 모양은 여기.
 *
 * 마크업은 "전부 펼친" 상태 그대로가 기본이다(스크립트가 없을 때 · 에디터). 스크립트가 `.is-enhanced`를 붙이면 한 줄만 열린다.
 *   PC · 태블릿(768px~): 오른쪽 열에 6줄, 열린 줄은 먹색 + 설명. 이미지 · 영상은 스크립트가 왼쪽 열(여백)의 상자 하나(.thesmc-sol__box)로 모은다 —
 *     줄이 바뀌면 상자가 열린 줄 높이로 미끄러지고 소재 비율에 맞게 크기가 변한다. 크기는 스크립트가 값으로 주고, 전환 시간 · 곡선은 여기서 정한다.
 *   모바일(~767px): 1열 아코디언. 열린 줄의 설명 아래에 이미지가 열린다.
 * 미디어 비율은 서버가 준다(--sol-wh, data-wh) — 이미지가 오기 전에도 자리가 정해진다. 소재는 틀을 꽉 채운다(cover).
 * 간격은 폭(vwc)에 비례하는 직선식(시안 PC/모바일 두 점). */
.tpl-front-page .sol {
	--sechead-pt: calc(54px + 6.54 * var(--wp--custom--vwc));
	/* 시안 PC 179.5 · 모바일 79.5 */
	padding-bottom: calc(54.5px + 6.54 * var(--wp--custom--vwc));
	/* 시안 PC 180 · 모바일 80 */
}

.tpl-front-page .thesmc-sol {
	--sol-fade: 0.35s;
	/* 글자 색 · 소재 겹침이 바뀌는 시간 */
	--sol-open: 0.5s;
	/* 줄이 열리고 닫히는 시간 */
	--sol-pad: calc(23.47px + 0.4575 * var(--wp--custom--vwc));
	/* 줄 위아래 안쪽 여백(시안 PC 32.25 · 모바일 25.25 — 위 테두리 1px은 따로) */
	container-type: inline-size;
	/* 왼쪽 열 폭을 cqw로 구한다 */
	margin-top: calc(32.4px + 3.876 * var(--wp--custom--vwc));
	/* 헤드 아래 → 첫 줄(시안 PC 106.8 · 모바일 47.5) */
}

/* 솔루션 · 뉴스 목록 공통 — 왼쪽 열(이미지) 0.62 + 목록 1.38 */
.tpl-front-page :is(.thesmc-sol__list, .news__list) {
	display: grid;
	grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
	column-gap: var(--split-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpl-front-page .thesmc-sol__list {
	counter-reset: thesmc-sol;
}

.tpl-front-page .thesmc-sol__row {
	--sol-fg: var(--wp--preset--color--ink);
	/* 기본(스크립트 없음 · 에디터): 전부 먹색 */
	--sol-top: calc(var(--sol-pad) - 0.75px);
	/* 미리보기 위쪽 = 이름 위쪽 */
	position: relative;
	grid-column: 2;
	display: grid;
	grid-template-columns: clamp(44px, calc(5 * var(--wp--custom--vwc)), 96px) minmax(0, 1fr);
	column-gap: clamp(12px, calc(1.8 * var(--wp--custom--vwc)), 26px);
	padding: calc(var(--sol-pad) - 0.75px) 14px calc(var(--sol-pad) + 0.75px);
	/* 위쪽은 테두리 1px 몫만큼 덜고, 아래쪽에 더한다(시안 위 32.5 · 아래 33) */
	border-top: 1px solid var(--wp--preset--color--line);
	counter-increment: thesmc-sol;
}

.tpl-front-page .thesmc-sol__row:first-child {
	--sol-top: 0px;
	padding-top: 0;
	border-top: 0;
}

.tpl-front-page .thesmc-sol__no,
.tpl-front-page .thesmc-sol__name {
	color: var(--sol-fg);
}

.tpl-front-page .thesmc-sol__no {
	padding-top: 0.62em;
	/* 이름 첫 줄과 높이를 맞춘다 */
	font-size: clamp(11px, calc(0.95 * var(--wp--custom--vwc)), 13px);
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.06em;
}

.tpl-front-page .thesmc-sol__no::before {
	content: counter(thesmc-sol, decimal-leading-zero);
}

.tpl-front-page .thesmc-sol__body {
	grid-column: 2;
	min-width: 0;
}

.tpl-front-page .thesmc-sol__name {
	margin: 0;
	font-size: clamp(28px, calc(5.6 * var(--wp--custom--vwc)), 96px);
	line-height: 1;
}

/* 스크립트가 제목을 버튼으로 감싼다 — 모양은 제목 그대로 */
.tpl-front-page .thesmc-sol__toggle {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
}

.tpl-front-page .thesmc-sol__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 6px;
}

/* 설명 — 높이는 grid-template-rows 0fr ↔ 1fr로 연다(내용 높이에 맞게, 고정값 없이) */
.tpl-front-page .thesmc-sol__more {
	display: grid;
	grid-template-rows: 1fr;
}

.tpl-front-page .thesmc-sol__more-in {
	min-height: 0;
	overflow: hidden;
}

.tpl-front-page .thesmc-sol__desc {
	margin: calc(8.98px + 0.26 * var(--wp--custom--vwc)) 0 0;
	/* 이름 → 설명(시안 PC 14 · 모바일 10) */
	color: var(--wp--preset--color--graphite);
	text-wrap: pretty;
}

/* 이미지 · 영상 — 기본(스크립트 없음 · 에디터)은 설명 아래에 작게 */
.tpl-front-page .thesmc-sol__media {
	grid-column: 2;
	width: min(100%, 360px);
	margin-top: var(--wp--preset--spacing--sm);
}

.tpl-front-page .thesmc-sol__frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--sol-wh, 1.7778);
	/* 서버가 준 소재 비율(모바일 · 에디터). PC 상자 안에서는 상자가 크기를 정한다 */
	overflow: hidden;
	/* 배경은 투명 — 상자가 커졌다 작아지는 동안 검은 바탕이 비치지 않게 */
}

.tpl-front-page .thesmc-sol__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 틀을 꽉 채운다 — 비율이 다르면 모자라는 부분이 잘린다 */
}

.tpl-front-page .thesmc-sol__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

/* 영상 자리 — 틀을 꽉 채운다(Vimeo 배경 재생이 자기 화면을 채우도록 영상을 자른다) */
.tpl-front-page .thesmc-sol__vimeo {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* 영상 플레이어가 준비되면 부드럽게 나타난다 */
.tpl-front-page .thesmc-sol__vimeo iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity var(--sol-fade) var(--thesmc-ease);
}

.tpl-front-page .thesmc-sol__vimeo iframe.is-loaded {
	opacity: 1;
}

/* ── 스크립트가 붙으면: 한 줄만 열린다 ── */
.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__row {
	--sol-fg: var(--wp--preset--color--line);
	cursor: pointer;
}

.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__row.is-active {
	--sol-fg: var(--wp--preset--color--ink);
}

.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__more {
	grid-template-rows: 0fr;
	visibility: hidden;
	/* 닫힌 설명은 화면 낭독기에서도 뺀다 */
}

.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__row.is-active .thesmc-sol__more {
	grid-template-rows: 1fr;
	visibility: visible;
}

/* 전환은 처음 모양을 잡은 뒤(.is-ready)부터 */
.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__no,
.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__name {
	transition: color var(--sol-fade) var(--thesmc-ease);
}

.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__more {
	transition: grid-template-rows var(--sol-open) var(--thesmc-ease), visibility 0s linear var(--sol-open);
}

.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__row.is-active .thesmc-sol__more {
	transition: grid-template-rows var(--sol-open) var(--thesmc-ease), visibility 0s;
}

/* PC · 태블릿: 이미지 · 영상은 왼쪽 열(여백)의 상자 하나(.thesmc-sol__box)에 모인다(스크립트가 줄에서 꺼내 옮긴다).
 * 줄이 바뀌면 상자가 열린 줄 높이로 위아래로 미끄러지고, 소재의 비율에 맞게 크기가 변하면서 안의 이미지 · 영상이 서로 바뀐다.
 * 위치(transform)와 크기(width · height)는 스크립트가 값으로 준다 — 전환 시간과 곡선만 여기서 정한다 */
@media (min-width: 768px) {
	.tpl-front-page .thesmc-sol {
		position: relative;
	}

	/* 스크립트가 목록 높이를 값으로 고정한다 — 남는 높이를 줄에 나누어 늘리지 않고 위에서부터 쌓는다 */
	.tpl-front-page .thesmc-sol__list {
		align-content: start;
	}

	.tpl-front-page .thesmc-sol__stage {
		position: absolute;
		inset: 0 auto auto 0;
		width: 100%;
		height: 0;
		pointer-events: none;
	}

	.tpl-front-page .thesmc-sol__box {
		position: absolute;
		top: 0;
		left: 0;
		width: 0;
		height: 0;
		overflow: hidden;
		contain: layout paint;
		/* 크기가 변해도 안쪽 · 바깥 레이아웃에 번지지 않게 */
		will-change: transform;
	}

	.tpl-front-page .thesmc-sol__box.is-empty {
		opacity: 0;
		/* 이 줄에는 미디어가 없다 */
	}

	.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__box:not(.is-instant) {
		transition: transform 0.6s var(--thesmc-ease), width 0.45s var(--thesmc-ease), height 0.45s var(--thesmc-ease), opacity 0.3s var(--thesmc-ease);
	}

	/* 상자 안: 미디어마다 한 겹, 열린 줄 것만 보인다(이전 것은 사라지고 다음 것이 나타난다) */
	.tpl-front-page .thesmc-sol__box>.thesmc-sol__media {
		position: absolute;
		inset: 0;
		width: auto;
		margin: 0;
		opacity: 0;
		visibility: hidden;
	}

	.tpl-front-page .thesmc-sol__box>.thesmc-sol__media.is-on {
		opacity: 1;
		visibility: visible;
	}

	.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__box>.thesmc-sol__media {
		transition: opacity var(--sol-fade) var(--thesmc-ease), visibility 0s linear var(--sol-fade);
	}

	.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__box>.thesmc-sol__media.is-on {
		transition: opacity var(--sol-fade) var(--thesmc-ease), visibility 0s;
	}

	/* Vimeo: 영상(iframe)은 자기 소재의 최종 크기(스크립트가 --sol-w · --sol-h로 px 값을 준다)로 고정해 가운데에 두고, 상자가 변하는 동안
	 * 스크립트가 확대 비율(--sol-s)을 맞춰 상자를 꽉 채운다. iframe 크기를 바꾸면 Vimeo 플레이어가 안쪽 영상을 늦게 맞춰 가장자리에 여백이 보인다 */
	.tpl-front-page .thesmc-sol__box .thesmc-sol__vimeo {
		inset: auto;
		top: 50%;
		left: 50%;
		width: var(--sol-w);
		height: var(--sol-h);
		transform: translate(-50%, -50%) scale(var(--sol-s, 1));
	}

	/* 층은 상자를 꽉 채운다(cover) */
	.tpl-front-page .thesmc-sol__box .thesmc-sol__clip,
	.tpl-front-page .thesmc-sol__box .thesmc-sol__frame {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		/* 크기는 상자가 정한다 */
	}
}

/* 모바일: 1열 아코디언 */
@media (max-width: 767px) {
	.tpl-front-page :is(.thesmc-sol__list, .news__list) {
		grid-template-columns: minmax(0, 1fr);
	}

	.tpl-front-page .thesmc-sol__row {
		grid-column: 1;
		grid-template-columns: minmax(0, 1fr);
		padding-right: 0;
		padding-left: 0;
	}

	.tpl-front-page .thesmc-sol__no {
		padding-top: 0;
	}

	.tpl-front-page .thesmc-sol__body,
	.tpl-front-page .thesmc-sol__media {
		grid-column: 1;
	}

	.tpl-front-page .thesmc-sol__body {
		margin-top: 4px;
	}

	.tpl-front-page .thesmc-sol__media {
		width: 100%;
	}

	.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__media {
		display: grid;
		grid-template-rows: 0fr;
		margin-top: 0;
		visibility: hidden;
	}

	.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__row.is-active .thesmc-sol__media {
		grid-template-rows: 1fr;
		visibility: visible;
	}

	.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__clip {
		min-height: 0;
		overflow: hidden;
	}

	.tpl-front-page .thesmc-sol.is-enhanced .thesmc-sol__frame {
		width: min(100%, calc(70svh * var(--sol-wh, 1.7778)));
		/* 줄 폭을 꽉 채운다. 아주 세로로 긴 소재만 화면 높이의 70%를 넘지 않게 폭을 줄여 비율 유지 */
		margin: var(--wp--preset--spacing--sm) auto 0;
		/* 설명 → 이미지(시안 16) */
	}

	.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__media {
		transition: grid-template-rows var(--sol-open) var(--thesmc-ease), visibility 0s linear var(--sol-open);
	}

	.tpl-front-page .thesmc-sol.is-ready .thesmc-sol__row.is-active .thesmc-sol__media {
		transition: grid-template-rows var(--sol-open) var(--thesmc-ease), visibility 0s;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tpl-front-page .thesmc-sol *,
	.tpl-front-page .thesmc-sol *::before {
		transition: none !important;
	}
}

/* ── 뉴스(New Marks We're Making) ──────────────────────────────────────────────────
 * 시안 Figma 메인 04 · PC 1920 / 모바일 390. 코어 블록만으로 만든다 — 쿼리 루프(뉴스 카테고리 최신 5개) + 글 대표 이미지 · 분류 · 제목 · 날짜.
 * 분류는 플러그인 필터(NewsList)가 뉴스 하위 카테고리 하나의 이름만 그려 준다(목록 쿼리도 같은 필터가 뉴스 + 하위로 보정).
 *   줄: 분류 | 제목 | 날짜. 제목 링크를 줄 전체로 늘려 줄 전체가 하나의 링크다. 호버(또는 키보드 포커스)하면 먹색이 아래에서 차오른다.
 *   PC · 태블릿: 왼쪽 열에 4:3 미리보기 — 줄마다 가진 대표 이미지를 겹쳐 두고 호버한 줄 것만 보인다(평소에는 첫 줄). 스크립트 없이 CSS만.
 *   모바일 · 터치: 미리보기 없이 목록만(숨겨진 이미지는 lazy라 받지도 않는다). 대표 이미지가 없는 글은 미리보기가 비어 있다.
 * 간격은 폭(vwc)에 비례하는 직선식(시안 PC/모바일 두 점). */
.tpl-front-page .news {
	--sechead-pt: calc(85.3px + 1.73 * var(--wp--custom--vwc));
	/* 시안 PC 118.5 · 모바일 92 */
	--news-meta: 14px;
	/* 분류 · 날짜 글자 크기 */
	padding-bottom: calc(89px + 1.667 * var(--wp--custom--vwc));
	/* ALL NEWS 아래(시안 PC 121 · 모바일 95.5) */
}

.tpl-front-page .news__query {
	margin-top: calc(38.7px + 0.72 * var(--wp--custom--vwc));
	/* 헤드 아래 → 목록(시안 PC 52.5 · 모바일 41.5) */
}

.tpl-front-page .news__list {
	position: relative;
	/* 미리보기가 이 목록 기준으로 놓인다 */
}

.tpl-front-page .news__list>li {
	grid-column: 2;
	margin: 0;
}

.tpl-front-page .news__list>li:first-child .news__row {
	border-top: 1px solid var(--wp--preset--color--line);
}

.tpl-front-page .news__row {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	column-gap: clamp(12px, calc(1.8 * var(--wp--custom--vwc)), 26px);
	align-items: center;
	padding: calc(18.7px + 0.379 * var(--wp--custom--vwc)) 14px;
	/* 시안 줄 높이 PC 82.5 · 모바일 83.5(제목 두 줄) */
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--news-fg, var(--wp--preset--color--ink));
	isolation: isolate;
	/* 아래 채움(::before, z-index: -1)이 줄 안에 머물게 한다 */
	transition: color var(--thesmc-dur) var(--thesmc-ease);
}

/* 호버 · 포커스: 먹색이 아래에서 차오른다 — 크기가 아니라 scaleY(합성)로 움직여 떨리지 않는다 */
.tpl-front-page .news__row::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--ink);
	transform: scaleY(var(--news-fill, 0));
	transform-origin: bottom;
	transition: transform 0.42s var(--thesmc-ease);
}

.tpl-front-page .news__row>* {
	margin: 0;
}

.tpl-front-page .news__cat {
	color: var(--news-sub, inherit);
	font-size: var(--news-meta);
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.02em;
}

.tpl-front-page .news__title {
	color: inherit;
	/* 줄의 색(호버하면 ivory)을 따라간다 */
	font-size: clamp(15px, calc(1.5 * var(--wp--custom--vwc)), 21px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	word-break: keep-all;
}

.tpl-front-page :is(.news__title, .news__all) a {
	color: inherit;
	text-decoration: none;
}

/* 제목 링크를 줄 전체로 늘린다 — 줄 어디를 눌러도 이동하고, 링크는 줄당 하나라 키보드 · 화면 낭독기에도 하나로 읽힌다 */
.tpl-front-page .news__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tpl-front-page .news__title a:focus-visible {
	outline: none;
}

.tpl-front-page .news__title a:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: -2px;
}

.tpl-front-page .news__date {
	font-size: var(--news-meta);
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: var(--news-sub, var(--wp--preset--color--mid));
	transition: color var(--thesmc-dur) var(--thesmc-ease);
}

/* 활성 줄: 먹색 채움 + 글자는 ivory(분류 · 날짜는 조금 옅게) + 그 줄의 미리보기. 호버가 있는 기기(마우스)의 태블릿 폭 이상에서만 — 모바일 · 터치에는 호버 상태가 없어 목록이 그대로다.
 *   스크립트가 붙은 뒤(.is-enhanced) — 처음엔 첫 줄이 활성이고, 줄에 올리거나 포커스하면 그 줄이 활성이 되며, 목록을 벗어나도 마지막 활성 줄이 유지된다(.is-active).
 *   스크립트가 없을 때 · 에디터 — 호버 · 포커스한 줄, 평소(호버 없음)에는 첫 줄
 * 활성 줄(li)은 변수 네 개만 정한다 — 글자 · 채움 · 미리보기가 그 변수를 받아 쓴다(없으면 평소 모양). 활성 조건은 여기 한 곳 */
@media (hover: hover) and (min-width: 768px) {

	.tpl-front-page .news__list>li.is-active,
	.tpl-front-page .news__list:not(.is-enhanced):not(:hover):not(:focus-within)>li:first-child,
	.tpl-front-page .news__list:not(.is-enhanced)>li:focus-within,
	.tpl-front-page .news__list:not(.is-enhanced)>li:hover {
		--news-fg: var(--wp--preset--color--ivory);
		--news-sub: color-mix(in srgb, var(--wp--preset--color--ivory), transparent);
		--news-fill: 1;
		--news-pv: 1;
	}
}

/* 처음 모양을 잡을 때(첫 줄을 활성으로 두는 순간)는 전환이 돌지 않게 — 스크립트가 .is-ready를 붙인 뒤부터 전환 */
.tpl-front-page .news__list.is-enhanced:not(.is-ready) *,
.tpl-front-page .news__list.is-enhanced:not(.is-ready) *::before {
	transition: none;
}

/* 미리보기(왼쪽 열) — 줄마다 가진 대표 이미지를 겹쳐 두고 활성 줄 것만 보인다 */
.tpl-front-page .news__list>li>.news__pv {
	position: absolute;
	top: 0;
	left: 0;
	width: calc((100% - var(--split-gap)) * 0.31);
	/* 왼쪽 열 = (전체 − 간격) × 0.62 ÷ 2 */
	margin: 0;
	aspect-ratio: 257/163;
	overflow: hidden;
	opacity: var(--news-pv, 0);
	pointer-events: none;
	transition: opacity var(--thesmc-dur-slow) var(--thesmc-ease);
}

.tpl-front-page .news__pv img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpl-front-page .news__all {
	margin: calc(19.2px + 0.457 * var(--wp--custom--vwc)) 0 0;
	/* 목록 아래 → ALL NEWS(시안 PC 28 · 모바일 21) */
	text-align: right;
	font-size: 18px;
	/* 시안: Aeonik Regular 18px · 줄 높이 30.6 · 자간 0.066px — PC · 모바일 같은 크기 */
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0.066px;
}

.tpl-front-page .news__all a {
	position: relative;
	display: inline-block;
}

.tpl-front-page .news__all a::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--thesmc-ease);
}

.tpl-front-page .news__all a:hover::before,
.tpl-front-page .news__all a:focus-visible::before {
	transform: scaleX(1);
}

.tpl-front-page .news__all a::after {
	content: " \2197" / "";
	/* 시안은 글자 한 줄("ALL NEWS ↗") — 같은 글꼴 · 크기의 공백 + ↗. 장식이라 화면 낭독기에는 읽히지 않게(대체 텍스트 비움) */
}

/* 모바일 · 터치: 1열 목록만(그리드 열은 위 솔루션 모바일 규칙과 같이) */
@media (max-width: 767px) {
	.tpl-front-page .news__list>li {
		grid-column: 1;
	}

	/* 좁은 화면: 분류 칸을 줄여 길면 …으로 자르고, 그만큼 제목에 넓이를 준다(320px에서 제목이 두세 글자씩 끊기던 문제) */
	.tpl-front-page .news__row {
		grid-template-columns: clamp(44px, calc(40vw - 83px), 96px) minmax(0, 1fr) auto;
		/* 320px → 45px(잘림) · 390px → 73px("Newsletter"가 다 보임) · 447px부터 96px */
		column-gap: var(--wp--preset--spacing--xs);
		padding-inline: 10px;
	}

	.tpl-front-page .news__title {
		word-break: break-all;
		/* 좁은 칸에서는 단어 단위로 끊지 않고 칸 끝에서 무조건 줄바꿈 */
	}

	.tpl-front-page .news__cat {
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

@media (max-width: 767px),
(hover: none) {
	.tpl-front-page .news__list>li>.news__pv {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tpl-front-page .news *,
	.tpl-front-page .news *::before {
		transition: none !important;
	}
}

/* ── 에디터 전용 ─────────────────────────────────────────────────────────────────
 * `.editor-styles-wrapper`는 에디터 화면에만 있는 조상이라 프런트에는 적용되지 않는다. 에디터는 프런트와 똑같을 필요는 없고, 고치기 쉬워야 한다.
 */

/* 영상 주소 고치기 — 박스가 너무 작아 주소 입력 칸이 안 보인다.
 * 영상 블록을 고르거나 주소를 입력하는 중에는 박스 자리는 그대로 두고, 그 위에 입력 칸이 들어가는 패널이 떠오른다(absolute — 문장 줄을 밀지 않는다).
 * 다른 곳을 누르면 다시 작은 박스로 돌아간다. 패널 안은 코어 임베드가 에디터에서 그리는 그대로(미리보기 · 주소 입력 칸)를 둔다.
 * 「패널이 떠 있는 상태」는 영상 블록이 선택됐거나 주소 입력 칸(.components-placeholder)이 보일 때다 */
.editor-styles-wrapper .tpl-front-page .hero__slot {
	position: relative;
}

/* 작은 박스(선택하지 않았을 때)는 프런트처럼 큰 영상의 가운데 부분이 창으로 보이게 한다.
 * 프런트는 영상이 화면 크기로 깔려 있고 박스가 그 위의 창이다. 에디터는 박스 크기에 맞춰 영상 전체를 줄여 담지 않고,
 * 에디터 화면(vw · vh) 크기의 16:9 영상을 박스 가운데에 맞춘다(박스 밖은 가려진다). 선택하면 아래 패널 규칙이 이긴다 */
.editor-styles-wrapper .tpl-front-page .hero__video iframe {
	width: max(100vw, calc(100vh * 16 / 9));
	height: max(100vh, calc(100vw * 9 / 16));
}

/* 코어 임베드는 에디터에서 영상 비율을 맞추려고 래퍼 앞에 가상 요소(::before, padding-top 56.25%)를 붙인다 — 우리는 비율을 직접 정하므로 끈다
 * (안 끄면 패널 위에 영상 높이만큼 빈 칸이 생긴다). 프런트에는 이 가상 요소가 없다 */
.editor-styles-wrapper .tpl-front-page .hero__video .wp-block-embed__wrapper::before {
	display: none;
}

.editor-styles-wrapper .tpl-front-page .hero__slot:is(:has(.hero__video.is-selected), :has(.components-placeholder)) .hero__video {
	container-type: normal;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
	width: min(440px, 90vw);
	height: auto;
	overflow: visible;
	background: var(--wp--preset--color--white);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--black) 25%, transparent);
}

/* 패널 안: 래퍼가 16:9 칸이 되고 영상(미리보기)이 그 칸을 채운다. 프런트용 클릭 차단(pointer-events: none)은 풀어
 * 에디터 패널에서는 재생 · 하위 버튼이 눌리게 한다 */
.editor-styles-wrapper .tpl-front-page .hero__slot:is(:has(.hero__video.is-selected), :has(.components-placeholder)) .hero__video .wp-block-embed__wrapper {
	position: relative;
	inset: auto;
	aspect-ratio: 16 / 9;
}

.editor-styles-wrapper .tpl-front-page .hero__slot:is(:has(.hero__video.is-selected), :has(.components-placeholder)) .hero__video iframe {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	transform: none;
	pointer-events: auto;
}

/* 문장 영역과 어두운 문구 영역 위아래 여백 — 에디터에서 영역이 서로 붙어 보이지 않게 */
.editor-styles-wrapper .tpl-front-page .hero__pin {
	padding-top: 0;
	padding-bottom: 0;
}

.editor-styles-wrapper .tpl-front-page :is(.hero__copy, .hero__statement) {
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
}

/* BM 카드 영상 — 카드가 커서 입력 칸 · 재생 버튼이 그대로 보인다. 프런트용 클릭 차단(pointer-events: none)만 풀고,
 * 코어 임베드가 래퍼 앞에 붙이는 비율용 가상 요소는 끈다(카드 비율은 aspect-ratio가 정한다) */
.editor-styles-wrapper .tpl-front-page .bm__video iframe {
	pointer-events: auto;
}

.editor-styles-wrapper .tpl-front-page .bm__video .wp-block-embed__wrapper::before {
	display: none;
}

/* 솔루션(에디터) — 프런트와 같은 자리(왼쪽 열)에 6줄의 이미지 · 영상을 모두 보여 준다(프런트는 열린 줄 것만).
 * 에디터는 6줄이 모두 펼쳐져 줄 높이가 낮으므로(약 200px) 틀을 작게(300px 16:9) 잡고, 소재는 틀 안에 비율대로 담는다(옆 줄과 겹치지 않게).
 * 지정은 오른쪽 사이드바. 비어 있는 줄은 글 없이 점선 틀만 둔다 */
@media (min-width: 768px) {
	.editor-styles-wrapper .tpl-front-page .thesmc-sol__media {
		position: absolute;
		grid-column: auto;
		top: var(--sol-top);
		right: calc(100% + var(--split-gap));
		width: min(300px, calc((100cqw - var(--split-gap)) * 0.31));
		margin: 0;
		aspect-ratio: 16 / 9;
		pointer-events: none;
	}

	.editor-styles-wrapper .tpl-front-page .thesmc-sol__clip {
		display: grid;
		place-items: center;
		width: 100%;
		height: 100%;
	}
}

.editor-styles-wrapper .tpl-front-page .thesmc-sol__frame--empty {
	background: transparent;
	border: 1px dashed var(--wp--preset--color--line);
}

/* 솔루션(에디터) — 줄 추가 버튼은 목록 열(오른쪽) 아래에 */
.editor-styles-wrapper .tpl-front-page .thesmc-sol__list>.block-list-appender {
	grid-column: 2;
	margin-top: var(--wp--preset--spacing--md);
}

/* 뉴스(에디터) — 프런트와 같게 왼쪽 열에 해당 줄의 썸네일이 보인다(호버한 줄 것, 평소에는 첫 줄).
 * 에디터는 첫 글만 실제 블록으로 그리고 나머지는 미리보기(.components-disabled)로 그린다. 그대로 두면 첫 글의 li가 position: relative라
 * 썸네일이 목록이 아니라 그 줄 기준으로 놓여 제목과 겹치고, 미리보기 줄은 포인터를 받지 않아 호버로 바뀌지 않는다 → 둘 다 프런트와 같게 풀어 준다.
 * 분류 블록은 클라이언트에서 모든 카테고리를 쉼표로 나열하므로(프런트는 NewsList 필터가 하위 하나로 바꾼다) 뉴스 루트 링크와 쉼표를 숨긴다 —
 * 링크 주소(/news/)로 가른다 */
.editor-styles-wrapper .tpl-front-page .news__list>li {
	position: static;
	pointer-events: auto;
}

.editor-styles-wrapper .tpl-front-page .news__cat {
	font-size: 0;
	/* 쉼표(구분자)를 숨긴다 */
}

.editor-styles-wrapper .tpl-front-page .news__cat a {
	font-size: var(--news-meta);
	pointer-events: none;
}

.editor-styles-wrapper .tpl-front-page .news__cat a[href$="/news/"] {
	display: none;
}