






* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Pretendard 폰트 FOIT 방지 */
@font-face {
	font-family: 'Pretendard';
	font-display: swap;
	src: local('Pretendard');
}

body {
	font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #2d3748;
	background-color: #f8fafc;
	opacity: 0;
	transition: opacity 0.3s ease-in;
}

body.loaded {
	opacity: 1;
}

.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	gap: 20px;
}

.main-content {
	flex: 1;
	max-width: 720px;
	background: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar {
	width: 240px;
	background: #ffffff;
	padding: 0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	height: fit-content;
	position: sticky;
	top: 20px;
	overflow: hidden;
}

.sidebar-content {
	padding: 20px;
}

.sidebar h3 {
	font-size: 16px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
}

.sidebar ul {
	list-style: none;
}

.sidebar li {
	margin-bottom: 2px;
}

.sidebar a {
	color: #4a5568;
	text-decoration: none;
	font-size: 14px;
	display: block;
	padding: 3px 0;
	transition: color 0.2s ease;
}

.sidebar a:hover {
	color: #2b6cb0;
}

.ad-banner {
	width: 240px;
	height: 400px;
	background: #f7fafc;
	margin: 0;
}

header {
	background: #ffffff;
	color: #2d3748;
	padding: 16px 0;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 20px;
}

header .container {
	padding: 0 20px;
}

header h1 {
	font-size: 20px;
	font-weight: 600;
	text-align: center;
}

main h1 {
	font-size: 24px;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}

main h2 {
	font-size: 20px;
	font-weight: 600;
	color: #2d3748;
	margin: 32px 0 16px 0;
}

main h3 {
	font-size: 18px;
	font-weight: 600;
	color: #2d3748;
	margin: 24px 0 12px 0;
}

main h4 {
	font-size: 16px;
	font-weight: 500;
	color: #2d3748;
	margin: 20px 0 8px 0;
}

main p {
	color: #4a5568;
}

main ul, main ol {
	margin: 12px 0 16px 20px;
}

main li {
	margin-bottom: 4px;
	color: #4a5568;
}

main img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 16px 0;
}

main a {
	color: #1e40af;
	background-color: #eff6ff;
	text-decoration: none;
	font-weight: 500;
	display: block;
	padding: 12px 16px;
	margin: 8px 0;
	border-radius: 6px;
	text-align: center;
	border: 1px solid #bfdbfe;
	transition: all 0.2s ease;
	min-height: 44px;
	line-height: 1.4;
}

main a:before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'%3E%3C/path%3E%3Cpath d='M13 13l6 6'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
	margin-right: 8px;
	animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.1); opacity: 0.8; }
}

main a:hover {
	background-color: #dbeafe;
	border-color: #93c5fd;
	box-shadow: 0 1px 3px rgba(30, 64, 175, 0.1);
}

.sub_title {
	background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
	padding: 18px 24px;
	border-radius: 12px;
	border: 1px solid #e1f5fe;
	box-shadow: 0 2px 8px rgba(3, 169, 244, 0.08);
	position: relative;
	overflow: hidden;
}

.sub_title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(135deg, #03a9f4 0%, #29b6f6 100%);
}

.sub_title span {
	font-weight: 600;
	color: #2d3748;
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
}

.sub_hide_title {
	display: none;
}

footer {
	text-align: center;
	padding: 32px 20px;
	color: #718096;
	font-size: 14px;
	border-top: 1px solid #e2e8f0;
	margin-top: 40px;
}

@media (max-width: 1024px) {
	.container {
		max-width: 720px;
		flex-direction: column;
	}
	
	.main-content {
		max-width: 100%;
	}
	
	.sidebar {
		width: 100%;
		order: 2;
		position: static;
	}
	
	.ad-banner {
		width: 100%;
		order: 3;
		margin-top: 20px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 16px;
		gap: 16px;
	}
	
	.main-content {
		padding: 20px;
	}
	
	.sidebar-content {
		padding: 16px;
	}
	
	header h1 {
		font-size: 18px;
	}
	
	main h1 {
		font-size: 22px;
	}
	
	main h2 {
		font-size: 18px;
	}
}

/* TOC 스타일 */
.toc-container {
	padding: 16px 0;
}

.toc-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
}

.toc-item.main-item {
	margin-bottom: 16px;
}

.toc-item.sub-item {
	margin-left: 20px;
	margin-bottom: 8px;
}


.toc-marker {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 12px;
	margin-top: 4px;
	flex-shrink: 0;
}

.main-marker {
	width: 12px;
	height: 12px;
	background-color: #4299e1;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px #4299e1;
}

.sub-marker {
	background-color: #a0aec0;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px #a0aec0;
}

.toc-content {
	flex: 1;
	line-height: 1.4;
}

.toc-content a {
	color: #4a5568;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.toc-content a:hover {
	color: #2d3748;
	text-decoration: underline;
}

.main-link {
	font-weight: 600 !important;
	font-size: 15px !important;
	color: #2d3748 !important;
}

.toc-item.current-item .toc-content a {
	color: #4299e1;
	font-weight: 500;
}

.toc-item.current-item .sub-marker {
	background-color: #4299e1;
	box-shadow: 0 0 0 1px #4299e1;
}

.error-message {
	padding: 12px;
	color: #718096;
	font-size: 14px;
	text-align: center;
}