/*
Theme Name: LPKit Insights Child
Theme URI: https://insights.lpkit.com/
Description: GeneratePress child theme for evidence-led Korean WordPress education.
Author: LPKit
Author URI: https://lpkit.com/
Template: generatepress
Version: 0.2.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: lpkit-insights
*/

:root {
	--lpkit-ink: #17232d;
	--lpkit-ink-soft: #43515c;
	--lpkit-navy: #123b58;
	--lpkit-blue: #245f86;
	--lpkit-blue-soft: #eaf3f8;
	--lpkit-green: #176b58;
	--lpkit-green-soft: #edf7f3;
	--lpkit-amber: #8a5b13;
	--lpkit-amber-soft: #fff7e7;
	--lpkit-red: #9b3a36;
	--lpkit-red-soft: #fff1f0;
	--lpkit-line: #d9e1e6;
	--lpkit-line-strong: #bcc9d1;
	--lpkit-paper: #ffffff;
	--lpkit-surface: #f6f8f9;
	--lpkit-shell: 1120px;
	--lpkit-reading: 720px;
	--lpkit-rail: 292px;
	--lpkit-radius-sm: 8px;
	--lpkit-radius-md: 14px;
	--lpkit-radius-lg: 20px;
	--lpkit-shadow: 0 12px 32px rgb(20 45 62 / 8%);
	--lpkit-focus: 0 0 0 3px rgb(36 95 134 / 28%);
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--lpkit-ink);
	background: var(--lpkit-paper);
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
		"Malgun Gothic", "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	font-family: inherit;
}

a {
	color: var(--lpkit-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--lpkit-navy);
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--lpkit-blue);
	outline-offset: 3px;
	box-shadow: var(--lpkit-focus);
}

::selection {
	color: var(--lpkit-ink);
	background: #d5eaf5;
}

.site-header {
	border-bottom: 1px solid var(--lpkit-line);
	background: rgb(255 255 255 / 96%);
}

.site-header .inside-header,
.inside-navigation,
.site-footer .inside-site-info {
	width: min(calc(100% - 40px), var(--lpkit-shell));
	margin-inline: auto;
}

.site-logo img {
	width: auto;
	max-height: 38px;
}

.site-branding .main-title {
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	font-weight: 760;
	letter-spacing: -0.035em;
}

.site-branding .main-title a {
	color: var(--lpkit-navy);
	text-decoration: none;
}

.main-navigation {
	background: var(--lpkit-paper);
}

.main-navigation .main-nav ul li a,
.menu-toggle {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	color: var(--lpkit-ink);
	font-size: 0.94rem;
	font-weight: 650;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
	color: var(--lpkit-navy);
	background: var(--lpkit-blue-soft);
}

.site-content {
	width: min(calc(100% - 40px), var(--lpkit-shell));
	margin-inline: auto;
	padding-block: clamp(34px, 5vw, 68px);
}

.content-area,
.no-sidebar .content-area {
	width: 100%;
}

.inside-article {
	padding: 0;
	background: transparent;
}

.entry-header,
.entry-content > :where(
		p,
		h2,
		h3,
		h4,
		ul,
		ol,
		blockquote,
		.wp-block-table,
		.wp-block-image,
		.wp-block-code,
		.wp-block-details
	):not(.alignwide):not(.alignfull) {
	width: min(100%, var(--lpkit-reading));
	margin-inline: auto;
}

.entry-header {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.entry-title {
	max-width: 19ch;
	margin: 0;
	color: var(--lpkit-ink);
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	font-weight: 790;
	line-height: 1.16;
	letter-spacing: -0.055em;
	overflow-wrap: break-word;
	text-wrap: balance;
	word-break: keep-all;
}

.entry-meta {
	margin-top: 16px;
	color: var(--lpkit-ink-soft);
	font-size: 0.82rem;
	line-height: 1.55;
}

.entry-content {
	margin-top: 0;
}

.entry-content p,
.entry-content li {
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.entry-content p {
	margin-bottom: 1.18em;
}

.entry-content blockquote {
	margin-inline: 0;
	box-sizing: border-box;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--lpkit-ink);
	font-weight: 760;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.entry-content h2 {
	margin-top: clamp(64px, 9vw, 96px);
	margin-bottom: 20px;
	font-size: clamp(1.55rem, 3vw, 2.12rem);
	line-height: 1.28;
}

.entry-content h3 {
	margin-top: 46px;
	margin-bottom: 14px;
	font-size: clamp(1.22rem, 2vw, 1.46rem);
	line-height: 1.38;
}

.entry-content :where(ul, ol) {
	margin-right: auto;
	margin-left: auto;
	padding-left: 1.35em;
}

.entry-content li + li {
	margin-top: 0.55em;
}

.wp-block-separator {
	width: min(100%, var(--lpkit-reading));
	margin: clamp(54px, 8vw, 82px) auto;
	border-color: var(--lpkit-line);
}

.wp-block-button__link,
.insights-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 19px;
	border: 1px solid var(--lpkit-navy);
	border-radius: var(--lpkit-radius-sm);
	color: #fff;
	background: var(--lpkit-navy);
	font-size: 0.94rem;
	font-weight: 720;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.wp-block-button__link:hover,
.insights-button:hover {
	color: #fff;
	background: #0b2d45;
}

.insights-eyebrow {
	margin-bottom: 11px;
	color: var(--lpkit-blue);
	font-size: 0.78rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.insights-lead {
	margin: 0;
	color: var(--lpkit-ink);
	font-size: clamp(1.08rem, 2vw, 1.25rem);
	font-weight: 560;
	line-height: 1.72;
	letter-spacing: -0.02em;
}

.insights-direct-answer {
	width: min(100%, var(--lpkit-reading));
	margin: 0 auto clamp(34px, 5vw, 52px);
	padding: clamp(22px, 4vw, 32px);
	border: 1px solid #c8dce7;
	border-left: 5px solid var(--lpkit-blue);
	border-radius: var(--lpkit-radius-md);
	background: var(--lpkit-blue-soft);
}

.insights-direct-answer > :first-child,
.insights-card > :first-child,
.insights-state > :first-child,
.insights-bridge-card > :first-child {
	margin-top: 0;
}

.insights-direct-answer > :last-child,
.insights-card > :last-child,
.insights-state > :last-child,
.insights-bridge-card > :last-child {
	margin-bottom: 0;
}

.insights-article-shell {
	display: grid;
	width: min(100%, var(--lpkit-shell));
	margin-inline: auto;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.insights-main-column,
.insights-bridge-rail {
	min-width: 0;
}

.insights-main-column {
	width: min(100%, var(--lpkit-reading));
	margin-inline: auto;
}

.insights-main-column > :where(
		p,
		h2,
		h3,
		h4,
		ul,
		ol,
		blockquote,
		.wp-block-table,
		.wp-block-image,
		.wp-block-code,
		.wp-block-details,
		.insights-card,
		.insights-state,
		.insights-capture,
		.insights-journey,
		.insights-review-meta,
		.insights-ad-slot
	) {
	width: 100%;
}

.insights-card {
	margin-block: 28px;
	padding: clamp(21px, 4vw, 30px);
	border: 1px solid var(--lpkit-line);
	border-radius: var(--lpkit-radius-md);
	background: var(--lpkit-paper);
	box-shadow: 0 8px 24px rgb(20 45 62 / 5%);
}

.insights-card__label {
	display: inline-flex;
	min-height: 30px;
	align-items: center;
	margin-bottom: 13px;
	padding: 4px 9px;
	border-radius: 999px;
	color: var(--lpkit-navy);
	background: var(--lpkit-blue-soft);
	font-size: 0.74rem;
	font-weight: 760;
	letter-spacing: 0.02em;
}

.insights-step-card {
	position: relative;
	margin-block: 32px;
	padding: clamp(24px, 4vw, 34px);
	border: 1px solid var(--lpkit-line);
	border-radius: var(--lpkit-radius-md);
	background: var(--lpkit-paper);
}

.insights-step-card__number {
	display: inline-grid;
	width: 38px;
	height: 38px;
	margin-bottom: 18px;
	border-radius: 50%;
	place-items: center;
	color: #fff;
	background: var(--lpkit-navy);
	font-size: 0.86rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.insights-step-card h3 {
	margin-top: 0;
}

.insights-step-card__action {
	margin-top: 20px;
	padding: 17px 19px;
	border-radius: var(--lpkit-radius-sm);
	background: var(--lpkit-surface);
}

.insights-step-card__action strong {
	color: var(--lpkit-navy);
}

.insights-journey {
	display: grid;
	margin-block: 32px;
	padding: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	counter-reset: journey;
}

.insights-journey li {
	position: relative;
	min-height: 132px;
	margin: 0;
	padding: 46px 15px 16px;
	border: 1px solid var(--lpkit-line);
	border-radius: var(--lpkit-radius-sm);
	background: var(--lpkit-paper);
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.5;
	counter-increment: journey;
}

.insights-journey li::before {
	position: absolute;
	top: 13px;
	left: 14px;
	content: counter(journey, decimal-leading-zero);
	color: var(--lpkit-blue);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.insights-state {
	position: relative;
	margin-block: 24px;
	padding: 20px 22px 20px 54px;
	border: 1px solid var(--lpkit-line);
	border-radius: var(--lpkit-radius-sm);
	background: var(--lpkit-surface);
}

.insights-state::before {
	position: absolute;
	top: 19px;
	left: 20px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	content: "";
	background-position: center;
	background-repeat: no-repeat;
	background-size: 14px;
}

.insights-state--success {
	border-color: #b9ddcf;
	background: var(--lpkit-green-soft);
}

.insights-state--success::before {
	background-color: var(--lpkit-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

.insights-state--warning {
	border-color: #efd29a;
	background: var(--lpkit-amber-soft);
}

.insights-state--warning::before {
	background-color: var(--lpkit-amber);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M7 3h2v6H7zm0 8h2v2H7z'/%3E%3C/svg%3E");
}

.insights-state--recovery {
	border-color: #e5b9b7;
	background: var(--lpkit-red-soft);
}

.insights-state--recovery::before {
	background-color: var(--lpkit-red);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-width='2' d='M12.5 5A5 5 0 1 0 13 9M13 2v4H9'/%3E%3C/svg%3E");
}

.insights-state__title {
	display: block;
	margin-bottom: 3px;
	font-size: 0.92rem;
	font-weight: 780;
}

.insights-capture {
	margin-block: 34px;
}

.insights-capture__frame {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--lpkit-line-strong);
	border-radius: var(--lpkit-radius-md);
	background:
		linear-gradient(135deg, rgb(234 243 248 / 84%), rgb(246 248 249 / 92%)),
		repeating-linear-gradient(
			0deg,
			transparent 0,
			transparent 23px,
			rgb(18 59 88 / 5%) 24px
		);
}

.insights-capture__frame > img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	background: #fff;
}

.insights-capture__frame > picture {
	display: block;
	width: 100%;
	height: 100%;
}

.insights-capture__frame > picture img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	background: #fff;
}

.insights-capture__placeholder {
	display: grid;
	height: 100%;
	padding: 28px;
	place-content: center;
	color: var(--lpkit-ink-soft);
	font-size: 0.88rem;
	line-height: 1.6;
	text-align: center;
}

.insights-capture figcaption {
	margin-top: 10px;
	color: var(--lpkit-ink-soft);
	font-size: 0.78rem;
	line-height: 1.55;
	text-align: left;
}

.insights-review-meta {
	display: grid;
	margin-block: 34px;
	padding: 18px 20px;
	border-block: 1px solid var(--lpkit-line);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	color: var(--lpkit-ink-soft);
	font-size: 0.78rem;
	line-height: 1.55;
}

.insights-review-meta strong {
	display: block;
	margin-bottom: 2px;
	color: var(--lpkit-ink);
	font-size: 0.72rem;
	letter-spacing: 0.03em;
}

.insights-table-scroll {
	overflow-x: auto;
	margin-block: 28px;
	border: 1px solid var(--lpkit-line);
	border-radius: var(--lpkit-radius-sm);
	-webkit-overflow-scrolling: touch;
}

.insights-table-scroll table {
	min-width: 640px;
	margin: 0;
	border: 0;
	font-size: 0.88rem;
}

.insights-table-scroll :where(th, td) {
	padding: 14px 16px;
	border-color: var(--lpkit-line);
	text-align: left;
	vertical-align: top;
}

.insights-table-scroll th {
	color: var(--lpkit-navy);
	background: var(--lpkit-blue-soft);
	font-weight: 730;
}

.insights-bridge-rail {
	width: min(100%, var(--lpkit-reading));
	margin-inline: auto;
	margin-top: clamp(52px, 8vw, 80px);
}

.insights-bridge-mobile-anchor {
	width: 100%;
	margin-block: 34px;
}

.insights-bridge-mobile-anchor:empty {
	display: none;
}

.insights-bridge-card {
	padding: 24px;
	border: 1px solid #c6d9e4;
	border-radius: var(--lpkit-radius-md);
	background: #f5fafc;
	box-shadow: var(--lpkit-shadow);
}

.insights-bridge-card__eyebrow {
	margin-bottom: 8px;
	color: var(--lpkit-blue);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.insights-bridge-card h2,
.insights-bridge-card h3 {
	margin: 0 0 12px;
	color: var(--lpkit-navy);
	font-size: 1.2rem;
	line-height: 1.35;
	letter-spacing: -0.035em;
	overflow-wrap: normal;
	word-break: keep-all;
}

.insights-bridge-card p {
	margin-bottom: 17px;
	color: var(--lpkit-ink-soft);
	font-size: 0.88rem;
	line-height: 1.62;
}

.insights-bridge-card__button {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	border-radius: var(--lpkit-radius-sm);
	color: #fff;
	background: var(--lpkit-navy);
	font-size: 0.86rem;
	font-weight: 740;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.insights-bridge-card__button:hover {
	color: #fff;
	background: #0b2d45;
}

.insights-bridge-card__disclosure {
	margin-top: 15px;
	margin-bottom: 0;
	padding-top: 14px;
	border-top: 1px solid #d4e3ea;
	font-size: 0.68rem;
	line-height: 1.55;
}

.insights-ad-slot {
	display: grid;
	min-height: 250px;
	margin-block: clamp(52px, 8vw, 82px);
	border-block: 1px solid transparent;
	place-items: center;
	contain: layout paint;
}

.insights-ad-slot.is-preview {
	border: 1px dashed var(--lpkit-line-strong);
	border-radius: var(--lpkit-radius-sm);
	color: var(--lpkit-ink-soft);
	background: var(--lpkit-surface);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.insights-breadcrumb {
	width: min(100%, var(--lpkit-reading));
	margin: 0 auto 18px;
	color: var(--lpkit-ink-soft);
	font-size: 0.76rem;
	line-height: 1.5;
}

.insights-breadcrumb ol {
	display: flex;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
}

.insights-breadcrumb li + li::before {
	margin-right: 7px;
	content: "/";
	color: #87949d;
}

.site-footer {
	margin-top: clamp(60px, 10vw, 110px);
	border-top: 1px solid var(--lpkit-line);
	color: var(--lpkit-ink-soft);
	background: var(--lpkit-surface);
	font-size: 0.78rem;
}

@media (min-width: 1180px) {
	.lpkit-insights-representative .entry-header {
		width: var(--lpkit-reading);
		margin-right: auto;
		margin-left: 0;
	}

	.insights-article-shell {
		grid-template-columns: minmax(0, var(--lpkit-reading)) minmax(280px, var(--lpkit-rail));
		gap: 44px;
	}

	.insights-main-column,
	.insights-bridge-rail {
		width: 100%;
		margin-inline: 0;
	}

	.insights-bridge-rail {
		position: sticky;
		top: 96px;
		margin-top: var(--lpkit-bridge-offset, 0);
		align-self: start;
	}

	.insights-bridge-mobile-anchor:empty {
		display: block;
		height: 0;
		margin: 0;
	}
}

@media (max-width: 900px) {
	.site-content {
		padding-block: 34px 56px;
	}

	.insights-journey {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	body {
		font-size: 18px;
	}

	.site-header .inside-header,
	.inside-navigation,
	.site-footer .inside-site-info,
	.site-content {
		width: min(calc(100% - 32px), var(--lpkit-shell));
	}

	.entry-title {
		font-size: clamp(1.86rem, 9.4vw, 2.55rem);
		line-height: 1.2;
	}

	.entry-header {
		margin-bottom: 27px;
	}

	.insights-direct-answer {
		padding: 20px;
	}

	.insights-journey {
		grid-template-columns: 1fr;
	}

	.insights-journey li {
		min-height: 0;
		padding: 43px 16px 16px;
	}

	.insights-review-meta {
		grid-template-columns: 1fr;
	}

	.insights-state {
		padding: 18px 18px 18px 50px;
	}

	.insights-state::before {
		top: 17px;
		left: 17px;
	}

	.insights-capture__frame {
		aspect-ratio: 4 / 3;
	}

	.insights-capture__placeholder {
		padding: 20px;
	}

	.insights-ad-slot {
		min-height: 280px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-header,
	.main-navigation,
	.insights-bridge-rail,
	.insights-ad-slot,
	.site-footer {
		display: none !important;
	}

	.site-content,
	.insights-article-shell {
		display: block;
		width: 100%;
		max-width: none;
	}

	body {
		color: #000;
		font-size: 11pt;
		background: #fff;
	}
}
