/*
 * PEOS 재사용 강연 뷰어 스타일
 * 원본 KOAT 웹 프레젠테이션의 시각적 정체성을 보존한다.
 * 상단 브랜드 바만 S-reborn 과 시각적으로 연결한다.
 * 발표자 노트 관련 스타일은 공개 뷰어에서 제외됨.
 */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
	color: #e9eef6;
	background: #101827;
}
.lec-viewer button {
	cursor: pointer;
	background: #233044;
	border: 1px solid #39475c;
	border-radius: 9px;
	color: #f0f5ff;
	padding: 9px 13px;
	font: inherit;
}
.lec-viewer button:hover { background: #31425c; }

/* 상단 바 — S-reborn 과 시각적 연결 */
.lec-header {
	height: 68px;
	padding: 0 clamp(16px, 3vw, 44px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #283649;
}
.lec-brand { display: flex; gap: 12px; align-items: baseline; letter-spacing: .06em; min-width: 0; }
.lec-brand b { font-size: 23px; }
.lec-brand span { font-size: 12px; color: #9daec6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lec-home {
	font-size: 12px;
	color: #9daec6;
	text-decoration: none;
	border: 1px solid #39475c;
	border-radius: 20px;
	padding: 5px 12px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.lec-home:hover { background: #233044; color: #f0f5ff; }
.lec-header nav { display: flex; gap: 9px; }

.lec-main {
	max-width: 1580px;
	margin: 0 auto;
	padding: 24px 24px 12px;
	display: flex;
	gap: 22px;
	align-items: flex-start;
}
.presentation { width: 100%; min-width: 0; flex: 1; }
.stage-shell {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	background: #fff;
	box-shadow: 0 22px 60px #05091066;
}
.stage {
	position: absolute;
	width: 1333.333px;
	height: 750px;
	transform-origin: top left;
	background: #fff;
	color: #183451;
	overflow: hidden;
}
.text {
	position: absolute;
	white-space: pre-wrap;
	overflow: visible;
	line-height: 1.24;
	letter-spacing: -.025em;
}
.hero-img {
	position: absolute;
	object-fit: cover;
	left: 746px;
	top: 138px;
	width: 517px;
	height: 517px;
	border-radius: 16px;
}
.rule { position: absolute; left: 70px; width: 1195px; height: 1px; background: #dce3eb; }
.rule.top { top: 79px; }
.rule.bottom { top: 706px; }
.bullet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #25a4be; }

.below {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
}
.slide-info { min-width: 0; }
.slide-info span { font-size: 12px; color: #8fbacc; letter-spacing: .05em; }
.slide-info h1 { font-size: clamp(17px, 2vw, 24px); margin: 5px 0; font-weight: 650; }
.controls { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.controls button { font-size: 22px; padding: 6px 14px; }
.controls span { color: #bdc8da; font-variant-numeric: tabular-nums; }
.progress { background: #26384d; height: 3px; margin-top: 18px; border-radius: 20px; overflow: hidden; }
.progress div { height: 100%; background: #42bdd2; transition: width .2s; }

/* 전체 슬라이드 목차 */
.overview {
	position: fixed;
	inset: 0;
	z-index: 10;
	background: #101827f8;
	overflow-y: auto;
	padding: 30px clamp(20px, 5vw, 80px);
}
.overview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card {
	background: #1b293a;
	border: 1px solid #33425a;
	border-radius: 10px;
	padding: 14px;
	text-align: left;
	color: #e9eef6;
}
.card:hover { border-color: #5fd1e1; }
.card img { width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 6px; background: white; }
.card strong { display: block; margin-top: 8px; font-size: 13px; }
.card small { color: #9fbbd3; }

.lec-footer {
	display: flex;
	justify-content: space-between;
	padding: 20px 27px;
	color: #75879f;
	font-size: 11px;
	gap: 12px;
}
.lec-footer span { text-align: right; }

@media (max-width: 700px) {
	.lec-main { padding: 12px; }
	.lec-header { height: 60px; }
	.lec-header nav button span { display: none; }
	.lec-header nav button { padding: 8px; }
	.lec-brand span { display: none; }
	.below { flex-wrap: wrap; }
	.controls { margin-left: auto; }
	.slide-info h1 { font-size: 18px; }
	.lec-footer span { display: none; }
}
[hidden] { display: none !important; }


/* Text-native Daemire presentation mode: original slide wording, responsive 16:9 stage. */
.native-slide{box-sizing:border-box;position:absolute;inset:0;background:#f7fbfc;color:#173a55;padding:58px 86px 64px;font-family:Pretendard,sans-serif;display:flex;flex-direction:column}
.native-slide:before{content:"";position:absolute;left:0;top:0;right:0;height:12px;background:#0b8b88}
.native-eyebrow{font-size:23px;font-weight:700;color:#0b8b88;letter-spacing:1.4px;margin-bottom:42px}
.native-slide h2{font-size:57px;line-height:1.25;letter-spacing:-1.8px;margin:0 0 43px;max-width:1150px;color:#173a55}
.native-slide ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:21px;max-width:1150px}
.native-slide li{font-size:33px;line-height:1.35;letter-spacing:-.5px;position:relative;padding-left:36px}
.native-slide li:before{content:"";position:absolute;left:3px;top:16px;width:13px;height:13px;border-radius:50%;background:#10a9a0}
.native-slide li:nth-child(n+7){font-size:26px}
.native-number{position:absolute;right:78px;bottom:38px;font-size:19px;color:#78909b}
.cards .native-card{background:#eaf5f5;border-top:5px solid #0b8b88}


/* DAEMIRE: overview accessibility fix. Prior light tile + light text was invisible. */
.lec-viewer .overview .card.native-card {
  background: #182a3b !important;
  border: 1px solid #4b6579 !important;
  color: #f7fbff !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:120px;
}
.lec-viewer .overview .card.native-card strong {
  color:#f7fbff !important;
  font-size:15px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.lec-viewer .overview .card.native-card small { color:#9de6dd !important; font-size:12px; }
.lec-viewer .overview .card.native-card:hover,
.lec-viewer .overview .card.native-card:focus-visible { background:#23465a !important; outline:3px solid #59d6c8; outline-offset:2px; }

/* Full-fidelity PPTX: single original slide image replaces text-only approximation. */
.original-slide-image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; background:#f5f8fb; }
.slide-image-error { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:80px; background:#f5f8fb; color:#173a55; font-size:28px; }
.lec-viewer .overview .card:not(.native-card) { color:#ecf7ff; }
.lec-viewer .overview .card.native-card { color:#f7fbff !important; background:#182a3b !important; }


/* Ensure overview is above the global site header. QA on 2026-11-08 caught clipped heading. */
.lec-viewer .overview {
  z-index: 2147483000 !important;
  background: rgba(16,24,39,.985);
  padding-top: 26px;
}
.lec-viewer .overview-top {
  position: sticky;
  top: -26px;
  z-index: 2;
  padding: 12px 0 18px;
  background: #101827;
}
.lec-viewer .overview-top h2 { color: #f7fbff; margin: 0; }
.lec-viewer .overview .card { background: #233044; color:#f7fbff; }
.lec-viewer .overview .card strong { color:#f7fbff; }

/* S-Reborn shared theme for the lecture PLAYER CHROME only.
   Preserve the original stage/slide art, images, and presentation layout. */
html[data-theme] body:has(.lec-viewer){background:var(--site-bg);color:var(--site-text);}
html[data-theme] .lec-viewer .lec-header{
  background:var(--site-surface);border-color:var(--site-border);color:var(--site-text);
}
html[data-theme] .lec-viewer :is(.lec-brand,.lec-brand span,.lec-home,.slide-info h1,.slide-info span,.controls span){
  color:var(--site-text-secondary);
}
html[data-theme] .lec-viewer .lec-brand b,
html[data-theme] .lec-viewer .slide-info h1{color:var(--site-text);}
html[data-theme] .lec-viewer :is(.lec-home,.controls button,.overview-top button){
  background:var(--site-surface-raised);color:var(--site-text);border-color:var(--site-border);
}
html[data-theme] .lec-viewer :is(.lec-home,.controls button,.overview-top button):hover{
  background:var(--site-subtle);color:var(--site-text);
}
html[data-theme] .lec-viewer .overview,
html[data-theme] .lec-viewer .overview-top{
  background:var(--site-bg);color:var(--site-text);
}
html[data-theme] .lec-viewer .overview-top h2{color:var(--site-text);}
html[data-theme] .lec-viewer .overview .card,
html[data-theme] .lec-viewer .overview .card.native-card{
  background:var(--site-surface)!important;
  border-color:var(--site-border)!important;
  color:var(--site-text)!important;
}
html[data-theme] .lec-viewer .overview .card strong,
html[data-theme] .lec-viewer .overview .card.native-card strong{
  color:var(--site-text)!important;
}
html[data-theme] .lec-viewer .overview .card small,
html[data-theme] .lec-viewer .overview .card.native-card small{
  color:var(--site-mint-text)!important;
}
html[data-theme] .lec-viewer .overview .card:hover,
html[data-theme] .lec-viewer .overview .card:focus-visible{
  background:var(--site-surface-raised)!important;
  outline:2px solid var(--site-mint-text);
}
html[data-theme] .lec-viewer .progress{background:var(--site-surface-raised);}
html[data-theme] .lec-viewer :is(.controls button,.overview .card,.lec-home):focus-visible{
  outline:3px solid var(--site-mint-text);outline-offset:2px;
}
