﻿/* ITMAN 메인 게시글 목록 및 Markdown 상세 화면 */
.is-post-route #wrap {
	overflow: visible;
}

.is-post-route .header {
	background: #171d23;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.main-visual {
	position: relative;
	height: auto !important;
	min-height: 100vh;
	justify-content: flex-start;
	overflow: hidden;
}

.blog-main-core {
	box-sizing: border-box;
	width: 100%;
	min-height: calc(100vh - clamp(148px, 15vh, 175px));
	padding: clamp(95px, 10vh, 125px) 20px clamp(28px, 4vh, 48px);
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.home-posts {
	box-sizing: border-box;
	position: relative;
	z-index: 30;
	width: 100%;
	min-height: clamp(148px, 15vh, 175px);
	padding: clamp(18px, 2.2vh, 25px) max(24px, calc((100% - 1140px) / 2));
	display: flex;
	flex: none;
	align-items: center;
	background: rgba(5, 8, 12, .88);
	border-top: 1px solid rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.home-posts[hidden],
.home-posts-open[hidden],
.home-post-view[hidden] {
	display: none !important;
}

.home-posts-close {
	position: absolute;
	right: 14px;
	bottom: 6px;
	z-index: 2;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	font-size: 0;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.home-posts-close::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -65%) rotate(45deg);
}

.home-posts-close:hover,
.home-posts-close:focus-visible {
	background: #22bfe9;
	outline: 2px solid #fff;
	outline-offset: 2px;
	transform: scale(1.06);
}

.home-posts-open {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 31;
	align-self: stretch;
	width: 100%;
	height: 34px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	color: #fff;
	background: rgba(5, 8, 12, .5);
	font-size: 13px;
	line-height: 34px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.home-posts-open:hover,
.home-posts-open:focus-visible {
	color: #081018;
	background: #29c4ed;
	border-color: #29c4ed;
	outline: none;
}

.home-post-cards {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px;
}

.home-post-card {
	min-width: 0;
}

.home-post-card > a {
	display: grid;
	grid-template-columns: clamp(170px, 13vw, 205px) minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-height: clamp(105px, 11vh, 128px);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease;
}

.home-post-card > a:hover,
.home-post-card > a:focus-visible {
	background: rgba(255, 255, 255, .06);
	outline: none;
	transform: translateY(-3px);
}

.home-post-card-image {
	position: relative;
	width: clamp(170px, 13vw, 205px);
	height: clamp(105px, 11vh, 128px);
	overflow: hidden;
	display: block;
	background: linear-gradient(135deg, #182631, #0d1319);
}

.home-post-card-image img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.home-post-image-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: rgba(255, 255, 255, .78);
	background: linear-gradient(135deg, #213542, #101820);
}

.home-post-image-fallback strong {
	color: #2bc5ee;
	font-size: 16px;
	letter-spacing: .12em;
}

.home-post-image-fallback small {
	font-size: 11px;
	letter-spacing: .04em;
}

.home-post-card-image.has-image > .home-post-image-fallback,
.home-post-hero-frame.has-image > .home-post-image-fallback {
	display: none;
}

.home-post-card h3 {
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-post-card time {
	display: block;
	margin-top: 4px;
	color: #d5d8dc;
	font-size: 13px;
}

.home-post-loading,
.home-post-error,
.home-post-empty {
	grid-column: 1 / -1;
	padding: 30px;
	color: #fff;
	text-align: center;
}

.home-post-view {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 90px 20px;
	color: #212833;
	background: #f4f6f8;
}

.home-post-layout {
	width: min(920px, 100%);
	margin: auto;
}

.home-post-shell {
	box-sizing: border-box;
	width: min(920px, 100%);
	margin: auto;
	padding: 48px 64px 72px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(20, 30, 40, .12);
}

.home-post-back {
	display: inline-block;
	margin-bottom: 35px;
	padding: 11px 17px;
	color: #fff;
	background: #17232f;
	border-radius: 999px;
	font-size: 14px;
	text-decoration: none;
}

.home-post-date {
	margin: 0;
	color: #68717c;
	font-size: 14px;
}

.home-post-shell > h1 {
	margin: 8px 0 30px;
	color: #111820;
	font-size: 38px;
	line-height: 1.3;
}

.home-post-hero-frame {
	position: relative;
	width: 100%;
	min-height: 240px;
	max-height: 430px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: 35px;
	border-radius: 12px;
	background: #101820;
}

.home-post-hero {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.home-post-markdown {
	color: #29323d;
	font-size: 17px;
	line-height: 1.85;
	word-break: keep-all;
}

.home-post-markdown h2,
.home-post-markdown h3 {
	color: #121922;
	line-height: 1.4;
	margin: 42px 0 14px;
}

.home-post-markdown h2 {
	padding-bottom: 10px;
	border-bottom: 2px solid #29bce8;
	font-size: 27px;
}

.home-post-markdown h3 { font-size: 21px; }
.home-post-markdown p { margin: 14px 0; font-size: inherit; line-height: inherit; }
.home-post-markdown ul { margin: 14px 0 14px 24px; }
.home-post-markdown li { margin: 7px 0; list-style: disc; font-size: 16px; line-height: 1.75; }
.home-post-markdown strong { color: #111820; }
.home-post-markdown a { color: #087fa7; text-decoration: underline; }
.home-post-markdown blockquote { margin: 22px 0; padding: 18px 22px; border-left: 4px solid #29bce8; background: #eef8fc; color: #40505e; }
.home-post-markdown code { padding: 2px 6px; border-radius: 4px; background: #eef1f4; color: #d6336c; }
.home-post-markdown pre.md-code-block { position: relative; overflow-x: auto; margin: 24px 0; padding: 22px; border: 1px solid #293543; border-radius: 10px; color: #e6edf3; background: #161b22; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); font-size: 14px; line-height: 1.7; tab-size: 2; white-space: pre; }
.home-post-markdown pre.md-code-block code { display: block; min-width: max-content; padding: 0; color: inherit; background: transparent; font-family: Consolas, 'Courier New', monospace; }
.home-post-markdown pre.md-code-block code[data-language]::before { content: attr(data-language); display: block; margin-bottom: 12px; color: #58c8ef; font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.home-post-toc {
	display: none;
	position: sticky;
	top: 88px;
	padding: 22px 18px;
	border: 1px solid #dfe5ea;
	border-radius: 14px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 10px 30px rgba(20, 30, 40, .08);
}

.home-post-toc[hidden] { display: none !important; }
.home-post-toc > h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid #29bce8; color: #17212b; font-size: 18px; }
.home-post-toc nav { display: flex; flex-direction: column; gap: 3px; }
.home-post-toc-link { width: 100%; padding: 9px 10px; border: 0; border-left: 3px solid transparent; color: #66717c; background: transparent; font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.home-post-toc-link:hover,
.home-post-toc-link:focus-visible { color: #087fa7; background: #eef8fc; outline: none; }
.home-post-toc-link.is-active { border-left-color: #29bce8; color: #087fa7; background: #e9f8fd; font-weight: 700; }
.home-post-toc-link.toc-level-3 { padding-left: 22px; font-size: 12px; }

.home-post-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 50px;
	padding-top: 28px;
	border-top: 1px solid #dfe5ea;
}

.home-post-pager-link {
	display: flex;
	min-height: 92px;
	padding: 17px 19px;
	border: 1px solid #dfe5ea;
	border-radius: 12px;
	flex-direction: column;
	justify-content: center;
	color: #29323d;
	background: #f8fafb;
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-post-pager-link:hover,
.home-post-pager-link:focus-visible { border-color: #29bce8; background: #eef8fc; outline: none; transform: translateY(-2px); }
.home-post-pager-label { margin-bottom: 5px; color: #087fa7; font-size: 12px; font-weight: 700; }
.home-post-pager-link strong { overflow: hidden; font-size: 15px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.home-post-next { grid-column: 2; text-align: right; }

.home-posts-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media all and (max-width: 1220px) {
	.blog-main-core { min-height: 1080px; }
	.home-post-cards { gap: 14px; }
	.home-post-card > a { grid-template-columns: 110px minmax(0, 1fr); }
	.home-post-card-image { width: 110px; height: 72px; }
}

@media all and (min-width: 1360px) {
	.home-post-layout {
		width: min(1416px, 100%);
		display: grid;
		grid-template-columns: minmax(0, 220px) minmax(0, 920px) minmax(0, 220px);
		gap: 28px;
		align-items: start;
	}
	.home-post-shell { grid-column: 2; }
	.home-post-toc:not([hidden]) { display: block; grid-column: 3; grid-row: 1; }
}

@media all and (max-width: 760px) {
	.blog-main-core { min-height: 1000px; padding-right: 12px; padding-left: 12px; }
	.home-posts { padding-top: 48px; }
	.home-post-cards { grid-template-columns: 1fr; }
	.home-post-card > a { grid-template-columns: 125px minmax(0, 1fr); }
	.home-post-card-image { width: 125px; height: 82px; }
	.home-post-view { padding: 115px 12px 30px; }
	.home-post-shell { padding: 28px 20px 45px; }
	.home-post-shell > h1 { font-size: 28px; }
	.home-post-hero-frame { min-height: 180px; }
	.home-post-back { margin-bottom: 26px; padding: 10px 15px; }
	.home-post-pager { grid-template-columns: 1fr; }
	.home-post-next { grid-column: 1; }
}
