:root {
	--blue: #2563a6;
	--blue-dark: #183d63;
	--blue-light: #eaf2f9;
	--blue-soft: #f4f8fc;

	--text: #252a30;
	--text-soft: #626a73;

	--border: #dde3e8;
	--border-light: #edf0f2;

	--background: #f3f5f7;
	--white: #ffffff;

	--container-width: 1080px;
}

* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: var(--background);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	border: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

main {
	flex: 1;
}


/* =========================================================
HEADER
========================================================= */

.header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--blue-dark);
}

.header.is-scrolled {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.inner {
	width: min(calc(100% - 40px), var(--container-width));
	height: 84px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}


/* =========================================================
LOGO
========================================================= */

.logo {
	flex: 0 0 auto;
}

.logo a {
	display: flex;
	align-items: center;
}


/* =========================================================
MENU
========================================================= */

.nav {
	margin-left: auto;
}

.menu {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
}

.menu li {
	margin: 0;
	padding: 0;
}

.link {
	height: 38px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.02em;
	transition:
		background-color 0.18s ease,
		color 0.18s ease;
}

.link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.link.is-active {
	background: #ffffff;
	color: var(--blue-dark);
}

.link::after,
.link.is-active::after {
	display: none;
}


/* =========================================================
BURGER
========================================================= */

.burger {
	width: 40px;
	height: 40px;
	padding: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
}

.burger:hover {
	background: rgba(255, 255, 255, 0.1);
}

.burger-bar {
	width: 20px;
	height: 2px;
	display: block;
	background: #ffffff;
	border-radius: 2px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
	opacity: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
MAIN
========================================================= */

.contents {
	padding: 36px 0 30px;
}

.container {
	width: min(calc(100% - 40px), var(--container-width));
	margin: 0 auto;
}

.contents > .container {
	padding: 32px;
	background: var(--white);
	border: 1px solid var(--border);
	border-top: 4px solid var(--blue);
	border-radius: 8px;
}

.contents > .container + .container {
	margin-top: 24px;
}


/* =========================================================
PAGE HEADER
========================================================= */

.page-header {
	width: min(calc(100% - 40px), var(--container-width));
	margin: 0 auto 18px;
	padding: 0 2px;
	background: transparent;
	border: 0;
}

.page-title {
	position: relative;
	margin: 0;
	padding: 0 0 0 20px;
	color: var(--text);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.045em;
}

.page-title::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--blue);
}


/* =========================================================
CARD LIST
========================================================= */

.card-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.card {
	min-width: 0;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 8px;
	transition:
		transform 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.card:hover {
	transform: translateY(-2px);
	border-color: #b8c9d8;
	box-shadow: 0 6px 18px rgba(30, 60, 90, 0.08);
}

.card-link {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card-image {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: #eef1f4;
}

.card-image:empty::before {
	content: "이미지 준비 중";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a9299;
	font-size: 14px;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.card:hover .card-image img {
	transform: scale(1.025);
}

.card-content {
	flex: 1;
	padding: 17px 18px 19px;
	background: #ffffff;
}

.card-title {
	margin: 0;
	color: var(--text);
	font-size: 18px;
	font-weight: 750;
	line-height: 1.5;
	letter-spacing: -0.03em;
}

.card-link:hover .card-title {
	color: var(--blue);
}


/* =========================================================
PAGINATION
========================================================= */

.pagination {
	margin-top: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination p {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.pagination a,
.pagination strong {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
}

.pagination a {
	background: #ffffff;
	border: 1px solid var(--border);
	color: var(--text-soft);
}

.pagination a:hover {
	background: var(--blue-light);
	border-color: #b9ccdc;
	color: var(--blue-dark);
}

.pagination strong {
	background: var(--blue);
	border: 1px solid var(--blue);
	color: #ffffff;
}


/* =========================================================
POST
========================================================= */

.post {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}


/* =========================================================
POST HEADER
========================================================= */

.post-header {
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.post-title {
	position: relative;
	margin: 0;
	padding: 0 0 0 22px;
	color: var(--text);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.045em;
}

.post-title::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 10px;
	height: 10px;
	background: var(--blue);
}


/* =========================================================
POST CONTENT
========================================================= */

.post-content {
	background: #ffffff;
	color: #353c42;
	font-size: 17px;
	line-height: 1.9;
}

.post-content > :first-child {
	margin-top: 0;
}

.post-content > :last-child {
	margin-bottom: 0;
}

.post-content p {
	margin: 0 0 20px;
}

.post-content p:empty {
	display: none;
}


/* =========================================================
INTRO
========================================================= */

.post-content > p:first-child:not(:empty) {
	margin-bottom: 32px;
	padding: 18px 20px;
	background: var(--blue-soft);
	border-left: 2px solid var(--blue);
	color: #48515a;
}


/* =========================================================
H2
========================================================= */

.post-content h2:not(.item-name) {
	margin: 46px 0 19px;
	padding: 13px 17px;
	background: var(--blue-light);
	border-radius: 6px;
	color: var(--blue-dark);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.04em;
}


/* =========================================================
H3
========================================================= */

.post-content h3 {
	position: relative;
	margin: 36px 0 15px;
	padding: 0 0 10px 14px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: -0.03em;
}

.post-content h3::before {
	content: "";
	position: absolute;
	top: 0.35em;
	bottom: calc(0.35em + 10px);
	left: 0;
	width: 3px;
	background: var(--blue);
}


/* =========================================================
LINK
========================================================= */

.post-content a:not(.item-widget-button) {
	color: var(--blue);
	font-weight: 650;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-content a:not(.item-widget-button):hover {
	color: var(--blue-dark);
}


/* =========================================================
STRONG
========================================================= */

.post-content strong {
	color: #20262b;
	font-weight: 800;
}


/* =========================================================
UL
========================================================= */

.post-content ul {
	margin: 22px 0 28px;
	padding: 17px 20px;
	background: #f8f9fa;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	list-style: none;
}

.post-content ul li {
	position: relative;
	margin: 0;
	padding: 6px 0 6px 20px;
}

.post-content ul li::before {
	content: "";
	position: absolute;
	top: 1.05em;
	left: 2px;
	width: 6px;
	height: 6px;
	background: var(--blue);
	border-radius: 50%;
}


/* =========================================================
OL
========================================================= */

.post-content ol {
	margin: 22px 0 28px;
	padding: 17px 20px 17px 45px;
	background: #f8f9fa;
	border: 1px solid var(--border-light);
	border-radius: 6px;
}

.post-content ol li {
	margin: 5px 0;
}

.post-content ol li::marker {
	color: var(--blue);
	font-weight: 800;
}


/* =========================================================
BLOCKQUOTE
========================================================= */

.post-content blockquote {
	margin: 28px 0;
	padding: 20px 22px;
	background: var(--blue-soft);
	border-left: 4px solid var(--blue);
	color: #4b555e;
}


/* =========================================================
TABLE
========================================================= */

.post-content table {
	width: 100%;
	margin: 26px 0 30px;
	border-collapse: collapse;
	background: #ffffff;
	border-top: 2px solid var(--blue);
	font-size: 15px;
}

.post-content th,
.post-content td {
	padding: 13px 14px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: middle;
}

.post-content th {
	background: var(--blue-light);
	color: var(--blue-dark);
	font-weight: 800;
}

.post-content tbody tr:nth-child(even) td {
	background: #fafbfc;
}


/* =========================================================
ITEM
========================================================= */

.item {
	margin: 42px 0;
	padding: 22px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.item:first-of-type {
	margin-top: 36px;
}


/* =========================================================
ITEM IMAGE
========================================================= */

.item-image {
	width: 100%;
	aspect-ratio: 2 / 1;
	margin: 0 0 22px;
	display: block;
	object-fit: cover;
	border-radius: 6px;
	background: #eef1f4;
	transition:
		opacity 0.18s ease,
		transform 0.18s ease;
}

.item-image[data-item] {
	cursor: pointer;
}

.item-image[data-item]:hover {
	transform: translateY(-1px);
	opacity: 0.95;
}

.item-image[data-item]:active {
	transform: none;
}

.item-image[data-item]:focus-visible {
	outline: 3px solid rgba(37, 99, 166, 0.3);
	outline-offset: 3px;
}


/* =========================================================
ITEM NAME
========================================================= */

.post-content .item-name {
	position: relative;
	margin: 0 0 20px !important;
	padding: 0 0 13px !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--border) !important;
	border-radius: 0 !important;
	color: var(--text) !important;
	font-size: 25px !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
	letter-spacing: -0.04em !important;
}

.post-content .item-name::before {
	display: none !important;
}

.post-content .item-name::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 52px;
	height: 3px;
	background: var(--blue);
}


/* =========================================================
ITEM TEXT
========================================================= */

.item > p {
	margin: 0 0 17px;
	color: #3d454b;
	font-size: 16px;
	line-height: 1.86;
}


/* =========================================================
ITEM BUTTON AREA
========================================================= */

.item-widget {
	width: 100%;
	margin-top: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* =========================================================
BUTTON
========================================================= */

.item-widget-button {
	width: 100%;
	max-width: 480px;
	min-height: 52px;
	margin: 0 auto;
	padding: 13px 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--blue);
	border: 1px solid var(--blue);
	border-radius: 6px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.35;
	cursor: pointer;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		transform 0.18s ease;
}

.item-widget-button::after {
	content: "→";
	font-size: 17px;
	font-weight: 400;
	transition: transform 0.18s ease;
}

.item-widget-button:hover {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
	transform: translateY(-1px);
}

.item-widget-button:hover::after {
	transform: translateX(3px);
}

.item-widget-button:active {
	transform: none;
}


/* =========================================================
SECOND CONTAINER
========================================================= */

.post + .container,
.container + .container {
	margin-top: 24px;
}


/* =========================================================
FOOTER
========================================================= */

.footer {
	margin-top: auto;
	padding-bottom: 20px;
}

.footer-inner {
	width: min(calc(100% - 40px), var(--container-width));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-copy {
	color: #6b737a;
	font-size: 13px;
	text-align: center;
}

.footer-copy p {
	margin: 0;
}


/* =========================================================
FOCUS
========================================================= */

a:focus-visible,
button:focus-visible {
	outline: 3px solid rgba(37, 99, 166, 0.3);
	outline-offset: 3px;
}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 900px) {
	.card-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contents > .container {
		padding: 25px;
	}

	.post {
		max-width: 100%;
	}

	.post-content {
		font-size: 16px;
	}

	.item {
		padding: 19px;
	}
}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 760px) {
	.inner {
		width: calc(100% - 24px);
		height: 84px;
	}

	.burger {
		display: flex;
		margin-left: auto;
	}

	.nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: 0;
		margin: 0;
		overflow: hidden;
		background: var(--blue-dark);
		opacity: 0;
		visibility: hidden;
		transition:
			max-height 0.22s ease,
			opacity 0.18s ease,
			visibility 0.18s ease;
	}

	.nav.is-open {
		max-height: 400px;
		opacity: 1;
		visibility: visible;
		box-shadow: 0 8px 15px rgba(0, 0, 0, 0.13);
	}

	.menu {
		width: 100%;
		margin: 0;
		padding: 8px 12px 12px;
		display: block;
	}

	.menu li {
		margin: 2px 0;
	}

	.link {
		width: 100%;
		height: 44px;
		padding: 0 13px;
		justify-content: flex-start;
		border-radius: 22px;
	}

	.link:hover {
		background: rgba(255, 255, 255, 0.1);
	}

	.link.is-active {
		background: #ffffff;
		color: var(--blue-dark);
	}

	.contents {
		padding: 16px 0 46px;
	}

	.container {
		width: 100%;
		margin: 0;
	}

	.contents > .container {
		width: 100%;
		margin: 0;
		padding: 18px 14px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.contents > .container + .container {
		margin-top: 14px;
	}

	.page-header {
		width: calc(100% - 28px);
		margin: 0 auto 15px;
		padding: 0;
	}

	.page-title {
		padding-left: 18px;
		font-size: 26px;
	}

	.page-title::before {
		width: 8px;
		height: 8px;
	}

	.post-header {
		margin-bottom: 25px;
	}

	.post-title {
		padding-left: 19px;
		font-size: 29px;
	}

	.post-title::before {
		width: 9px;
		height: 9px;
	}

	.post-content {
		font-size: 16px;
		line-height: 1.82;
	}

	.post-content > p:first-child:not(:empty) {
		margin-bottom: 26px;
		padding: 15px 16px;
	}

	.post-content h2:not(.item-name) {
		margin-top: 38px;
		padding: 12px 14px;
		font-size: 21px;
	}

	.post-content h3 {
		margin-top: 30px;
		font-size: 18px;
	}

	.item {
		margin: 32px 0;
		padding: 14px;
		border-radius: 6px;
	}

	.item-image {
		margin-bottom: 18px;
		border-radius: 5px;
	}

	.post-content .item-name {
		margin-bottom: 17px !important;
		font-size: 21px !important;
	}

	.item > p {
		font-size: 15.5px;
		line-height: 1.82;
	}

	.item-widget {
		margin-top: 21px;
	}

	.item-widget-button {
		max-width: 100%;
		min-height: 49px;
		font-size: 14px;
	}

	.footer-inner {
		width: 100%;
		min-height: 78px;
		padding: 0 14px;
	}
}


/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 560px) {
	body {
		word-break: normal;
	}

	.card-list {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.contents > .container {
		padding: 14px 10px;
	}

	.page-header {
		width: calc(100% - 20px);
		margin-bottom: 14px;
	}

	.page-title {
		padding-left: 16px;
		font-size: 24px;
	}

	.page-title::before {
		width: 7px;
		height: 7px;
	}

	.card {
		border-radius: 6px;
	}

	.card-content {
		padding: 15px;
	}

	.card-title {
		font-size: 17px;
	}

	.post-header {
		margin-bottom: 22px;
	}

	.post-title {
		padding-left: 18px;
		font-size: 26px;
		line-height: 1.4;
	}

	.post-title::before {
		width: 8px;
		height: 8px;
	}

	.post-content ul {
		padding: 14px;
	}

	.post-content ol {
		padding: 14px 14px 14px 40px;
	}

	.post-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		font-size: 14px;
	}

	.item {
		padding: 12px;
	}

	.post-content .item-name {
		font-size: 20px !important;
	}

	.pagination {
		margin-top: 28px;
	}
}


/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}