/* 토티움 랩 — 사이트 공통(ap-home-*) 톤에 맞춘 리포트 스타일 */
.ap-lab {
	margin: 0 0 1.5rem;
	color: var(--ap-text, #e2e8f0);
}

.ap-lab > .ap-home-panel + .ap-home-panel,
.ap-lab > .ap-home-panel + .ap-lab-body {
	margin-top: 12px;
}

/* 헤더: 그라데이션 제거, 패널 패딩만 사용 */
.ap-lab-hero {
	margin-bottom: 0;
}

.ap-lab-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--ap-text-muted, #94a3b8);
}

.ap-lab-eyebrow a {
	color: var(--ap-blue-text, #90c2ff);
	text-decoration: none;
}

.ap-lab-eyebrow a:hover {
	text-decoration: underline;
	color: var(--ap-text-strong, #f8fafc);
}

.ap-lab .ap-home-lead {
	margin-bottom: 0;
}

.ap-lab-hero .ap-hub-links {
	margin-top: 16px;
}

/* 본문 패널 */
.ap-lab-body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ap-lab-section {
	margin: 0;
	padding: 22px 0 0;
}

.ap-lab-section + .ap-lab-section {
	margin-top: 8px;
	padding-top: 22px;
	border-top: 1px solid var(--ap-border-soft, #27272a);
}

.ap-lab-section:first-child {
	padding-top: 0;
}

.ap-lab-h2 {
	margin: 0 0 12px;
	font-size: 1.1rem;
	line-height: 1.35;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--ap-text-strong, #f8fafc);
}

.ap-lab-text {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ap-text, #e2e8f0);
	max-width: 46rem;
}

.ap-lab-muted {
	color: var(--ap-text-muted, #94a3b8);
	font-size: 13px;
}

/* 메타 팩트 */
.ap-lab-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.ap-lab-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ap-lab-facts li {
	background: var(--ap-bg-elevated, #1f1f23);
	border: 1px solid var(--ap-border, #3f3f46);
	border-radius: 10px;
	padding: 12px 14px;
}

.ap-lab-facts span {
	display: block;
	font-size: 12px;
	color: var(--ap-text-muted, #94a3b8);
	margin-bottom: 4px;
}

.ap-lab-facts strong {
	font-size: 14px;
	color: var(--ap-text-strong, #f8fafc);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* 발행 목록 */
.ap-lab-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ap-lab-list li {
	margin-bottom: 10px;
}

.ap-lab-list li:last-child {
	margin-bottom: 0;
}

.ap-lab-list a {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--ap-border, #3f3f46);
	border-radius: 12px;
	background: var(--ap-bg-elevated, #1f1f23);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ap-lab-list a:hover {
	border-color: var(--ap-blue, #3182f6);
	background: var(--ap-list-hover-bg, #1a2332);
	color: var(--ap-text-strong, #f8fafc);
}

.ap-lab-list a:hover .ap-lab-list-title {
	color: var(--ap-text-strong, #f8fafc);
}

.ap-lab-list a:hover .ap-lab-list-sub,
.ap-lab-list a:hover .ap-lab-list-meta {
	color: var(--ap-text-muted, #94a3b8);
}

.ap-lab-list-title {
	display: block;
	font-weight: 700;
	color: var(--ap-text-strong, #f8fafc);
	margin-bottom: 4px;
	letter-spacing: -0.02em;
}

.ap-lab-list-sub {
	display: block;
	font-size: 13px;
	color: var(--ap-text, #e2e8f0);
	margin-bottom: 6px;
	line-height: 1.45;
}

.ap-lab-list-meta {
	display: block;
	font-size: 12px;
	color: var(--ap-text-muted, #94a3b8);
}

.ap-lab-planned {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--ap-text, #e2e8f0);
	line-height: 1.7;
	font-size: 14px;
}

.ap-lab-conclusions {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.7;
	color: var(--ap-text, #e2e8f0);
	font-size: 14px;
}

.ap-lab-conclusions li {
	margin-bottom: 8px;
}

/* 막대 차트 */
.ap-lab-bars {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ap-lab-bars li {
	display: grid;
	grid-template-columns: 4.2rem 1fr auto;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
}

.ap-lab-bars-label {
	font-size: 13px;
	color: var(--ap-text, #e2e8f0);
	font-weight: 600;
}

.ap-lab-bars-track {
	height: 10px;
	background: var(--ap-border-soft, #27272a);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid var(--ap-border, #3f3f46);
}

.ap-lab-bars-track > span {
	display: block;
	height: 100%;
	background: var(--ap-blue, #3182f6);
	border-radius: 999px;
}

.ap-lab-bars-val {
	font-size: 13px;
	color: var(--ap-text, #e2e8f0);
	white-space: nowrap;
}

.ap-lab-bars-val em {
	font-style: normal;
	color: var(--ap-text-muted, #94a3b8);
	margin-left: 4px;
}

/* 표 */
.ap-lab-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ap-border, #3f3f46);
	border-radius: 12px;
	background: var(--ap-bg-elevated, #1f1f23);
}

.ap-lab-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.ap-lab-table th,
.ap-lab-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--ap-border-soft, #27272a);
	text-align: right;
}

.ap-lab-table th[scope="col"],
.ap-lab-table th[scope="row"] {
	text-align: left;
	color: var(--ap-text-strong, #f8fafc);
	font-weight: 600;
}

.ap-lab-table td {
	color: var(--ap-text, #e2e8f0);
}

.ap-lab-table tbody tr:last-child th,
.ap-lab-table tbody tr:last-child td {
	border-bottom: 0;
}

.ap-lab-dl {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 8px 14px;
	margin: 0;
}

.ap-lab-dl dt {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ap-blue-text, #90c2ff);
}

.ap-lab-dl dd {
	margin: 0;
	font-size: 14px;
	color: var(--ap-text, #e2e8f0);
	line-height: 1.5;
}

.ap-lab-bullets {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--ap-text, #e2e8f0);
	line-height: 1.65;
	font-size: 14px;
}

.ap-lab-cite {
	margin: 12px 0;
	padding: 14px 16px;
	border-left: 3px solid var(--ap-blue, #3182f6);
	background: var(--ap-bg-elevated, #1f1f23);
	border-radius: 0 10px 10px 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ap-text, #e2e8f0);
}

.ap-lab-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 18px 0 0;
}

.ap-lab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--ap-blue, #3182f6);
	border: 1px solid transparent;
	color: #fff !important;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: -0.02em;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.ap-lab-btn:hover {
	background: #2563eb;
}

.ap-lab-btn--ghost {
	background: transparent;
	border: 1px solid var(--ap-border, #3f3f46);
	color: var(--ap-text-strong, #f8fafc) !important;
}

.ap-lab-btn--ghost:hover {
	border-color: var(--ap-blue, #3182f6);
	background: rgba(49, 130, 246, 0.08);
}

.ap-lab-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
	padding: 16px 20px;
	border: 1px solid var(--ap-border, #3f3f46);
	border-radius: 14px;
	background: var(--ap-bg, #18181b);
	font-size: 14px;
}

.ap-lab-footer-nav a {
	color: var(--ap-blue-text, #90c2ff);
	text-decoration: none;
}

.ap-lab-footer-nav a:hover {
	color: var(--ap-text-strong, #f8fafc);
	text-decoration: underline;
}

@media (max-width: 640px) {
	.ap-lab-bars li {
		grid-template-columns: 3.6rem 1fr;
		grid-template-rows: auto auto;
	}

	.ap-lab-bars-val {
		grid-column: 2;
	}

	.ap-lab-dl {
		grid-template-columns: 1fr;
	}
}
