@charset "UTF-8";
/* Slide viewer for seminar decks (home page pin + seminar page).
   Class names start with "sv-" so they never clash with the pages' own styles. */

/* ---------- viewer ---------- */
.sv {
	--sv-w: 640px;
	width: var(--sv-w);
	margin: 0 auto;
	font-family: inherit;
	color: #333;
}
.sv-stage {
	position: relative;
	width: 100%;
	height: calc(var(--sv-w) * 3 / 4);   /* 4:3 slides; works in older browsers than aspect-ratio */
	background: #F4F4F4;
	border: 1px solid #D6D6D6;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	cursor: zoom-in;
	outline: none;
}
.sv-stage:focus-visible { box-shadow: 0 0 0 3px #3C5C85; }
.sv-stage img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #FFF;
	user-select: none;
	-webkit-user-drag: none;
}
.sv-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 64px;
	border: 0;
	background: rgba(60, 92, 133, 0.72);
	color: #FFF;
	font-size: 28px;
	line-height: 64px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s, background 0.15s;
	padding: 0;
	font-family: Arial, sans-serif;
}
.sv-prev { left: 0; border-radius: 0 6px 6px 0; }
.sv-next { right: 0; border-radius: 6px 0 0 6px; }
.sv-stage:hover .sv-nav,
.sv-stage:focus-within .sv-nav { opacity: 1; }
.sv-nav:hover { background: #3C5C85; }
.sv-nav[disabled] { opacity: 0 !important; cursor: default; }

.sv-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	font-size: 15px;
	line-height: 24px;
}
.sv-count { color: #555; min-width: 64px; font-variant-numeric: tabular-nums; }
.sv-title { flex: 1; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv-btn,
a.sv-btn:link,
a.sv-btn:visited {
	display: inline-block;
	padding: 2px 12px;
	border: 1px solid #3C5C85;
	border-radius: 4px;
	background: #FFF;
	color: #3C5C85;
	font-size: 14px;
	line-height: 22px;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	white-space: nowrap;
}
.sv-btn:hover,
a.sv-btn:hover {
	background: #3C5C85;
	color: #FFF;
}

.sv-thumbs {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	padding: 4px 2px 8px;
	overflow-x: auto;
	scroll-behavior: smooth;
}
.sv-thumbs button {
	flex: 0 0 auto;
	position: relative;
	padding: 0;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	line-height: 0;
	opacity: 0.7;
}
.sv-thumbs button:hover { opacity: 1; }
.sv-thumbs button.sv-on { border-color: #CA0000; opacity: 1; }
.sv-thumbs img { width: 88px; height: 66px; display: block; border: 1px solid #D6D6D6; }
.sv-thumbs span {
	position: absolute;
	right: 2px;
	bottom: 2px;
	padding: 0 4px;
	background: rgba(0, 0, 0, 0.55);
	color: #FFF;
	font-size: 11px;
	line-height: 15px;
	font-family: Arial, sans-serif;
}

/* Full-screen view: the stage fills the screen, the slide keeps 4:3. */
.sv-stage:fullscreen { background: #111; border: 0; cursor: zoom-out; height: 100%; }
.sv-stage:fullscreen img { background: #111; }
.sv-stage:-webkit-full-screen { background: #111; width: 100%; height: 100%; }

/* ---------- home page: pinned block (option C) ---------- */
.sv-pin {
	margin: 10px 60px 4px 70px;
	padding: 12px 16px 6px;
	border: 1px solid #D6D6D6;
	border-top: 3px solid #3C5C85;
	background: #FAFAFA;
}
.sv-pin-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 10px;
	line-height: 26px;
}
.sv-pin-head h2 { margin: 0; font-size: 19px; color: #333; }
.sv-pin-head .sv-meta { color: #666; font-size: 15px; flex: 1; }
.sv-badge {
	display: inline-block;
	padding: 0 8px;
	border-radius: 3px;
	background: #CA0000;
	color: #FFF;
	font-size: 13px;
	line-height: 22px;
	font-weight: bold;
	white-space: nowrap;
}

/* ---------- home page: cover card ---------- */
.sv-card {
	display: flex;
	gap: 24px;
	margin: 10px 60px 4px 70px;
	padding: 16px 18px;
	border: 1px solid #D6D6D6;
	background: #FAFAFA;
}
.sv-mini { flex: 0 0 auto; width: 320px; }
.sv-mini-cover {
	box-sizing: border-box;
	display: block;
	position: relative;
	overflow: hidden;
	width: 320px;
	height: 240px;
	line-height: 0;
	background: #FFF;
	border: 1px solid #D6D6D6;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.sv-mini-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #FFF; }
.sv-mini-bar { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.sv-mini-bar .sv-arrow { padding: 2px 0; width: 32px; text-align: center; font-family: Arial, sans-serif; font-size: 16px; }
.sv-mini-bar .sv-arrow[disabled] { opacity: 0.35; cursor: default; background: transparent; color: inherit; }
.sv-mini-bar .sv-gap { flex: 1; }
.sv-mini-bar .sv-primary,
.sv-mini-bar a.sv-primary:link,
.sv-mini-bar a.sv-primary:visited { background: #3C5C85; color: #FFF; }
.sv-mini-bar a.sv-primary:hover { background: #2B4566; }
/* progress bar + page number (shown by the styles that use them) */
.sv-mini-track { display: none; height: 3px; margin-top: 6px; background: #E3E3E3; overflow: hidden; }
.sv-mini-track i { display: block; height: 100%; width: 0; background: #3C5C85; }
.sv-mini.sv-paused .sv-mini-track i { width: 0; }
@keyframes sv-fill { from { width: 0; } to { width: 100%; } }
.sv-mini-count { display: none; min-width: 48px; text-align: center; font-size: 13px; color: #666; font-variant-numeric: tabular-nums; }

.sv-card-body { flex: 1; min-width: 0; }
.sv-card-body h2 { margin: 2px 0 12px; font-size: 22px; line-height: 30px; color: #333; }
.sv-card-body dl { margin: 0; font-size: 15px; line-height: 26px; }
.sv-card-body dt { margin-top: 8px; color: #3C5C85; font-weight: bold; }
.sv-card-body dd { margin: 2px 0 0; text-align: justify; }
.sv-card-body dd p { margin: 0; text-indent: 2em; }   /* 分段、首行縮排兩字 */
.sv-card-body dd p + p { margin-top: 8px; }

/* Style 2: text on the left, slides on the right */
.sv-card--flip { flex-direction: row-reverse; }

/* No box: same layout, without the card border and background */
.sv-card--bare { border: 0; background: none; padding: 6px 0 16px; margin-top: 0; }
.sv-card--bare .sv-card-body dt:first-child { margin-top: 0; }   /* 文字和封面都貼齊上方標題列 */
.sv-card--bare .sv-mini { align-self: center; }   /* 簡報和按鈕在文字高度內上下置中 */

/* Style 3: dark band in the lab's navy */
.sv-card--band { border: 0; background: linear-gradient(135deg, #3C5C85 0%, #2B4566 100%); color: #FFF; padding: 20px 22px; }
.sv-card--band .sv-card-body h2 { color: #FFF; }
.sv-card--band .sv-card-body dt { color: #BFD3EE; }
.sv-card--band .sv-card-body dd,
.sv-card--band .sv-card-body a:link,
.sv-card--band .sv-card-body a:visited { color: #FFF; }
.sv-card--band .sv-mini-cover { border-color: #FFF; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.sv-card--band .sv-btn,
.sv-card--band a.sv-btn:link,
.sv-card--band a.sv-btn:visited { background: transparent; border-color: #FFF; color: #FFF; }
.sv-card--band .sv-btn:hover,
.sv-card--band a.sv-btn:hover { background: #FFF; color: #3C5C85; }
.sv-card--band .sv-mini-bar .sv-primary,
.sv-card--band .sv-mini-bar a.sv-primary:link,
.sv-card--band .sv-mini-bar a.sv-primary:visited { background: #FFF; color: #3C5C85; }

/* Style 4: no box, thin rules, progress bar and page number under the slide */
.sv-card--plain { border: 0; border-top: 1px solid #D6D6D6; border-bottom: 1px solid #D6D6D6; background: none; padding: 18px 0; }
.sv-card--plain .sv-mini-cover { box-shadow: none; }
.sv-card--plain .sv-mini-track { display: block; }
.sv-card--plain .sv-mini-count { display: inline-block; }
.sv-card--plain .sv-card-body h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 2px solid #3C5C85; display: inline-block; }

/* ---------- seminar page ---------- */
.sv-page { padding: 18px 0 10px; }
.sv-page-head { width: 880px; margin: 0 auto 12px; }
.sv-page-head h1 { margin: 0; font-size: 24px; line-height: 34px; color: #333; }
.sv-page-head .sv-meta { color: #666; font-size: 15px; line-height: 24px; }
.sv-page .sv { --sv-w: 880px; }
.sv-page .sv-thumbs { flex-wrap: wrap; overflow: visible; justify-content: flex-start; }
.sv-page .sv-thumbs img { width: 98px; height: 73px; }
.sv-back { width: 880px; margin: 14px auto 0; font-size: 15px; }

/* ---------- demo-only label ---------- */
.sv-demo-tag {
	margin: 8px 60px 0 70px;
	padding: 4px 10px;
	background: #FFF6D6;
	border: 1px dashed #C9A200;
	color: #7A6000;
	font-size: 13px;
	line-height: 20px;
	font-family: Arial, sans-serif;
}

/* ---------- page turn: new slide in from the right, old one out to the left ---------- */
.sv-enter-right { animation: sv-in-right 0.5s cubic-bezier(0.25, 0.8, 0.3, 1) both; }
.sv-leave-left  { animation: sv-out-left 0.5s cubic-bezier(0.25, 0.8, 0.3, 1) both; }
.sv-enter-left  { animation: sv-in-left 0.5s cubic-bezier(0.25, 0.8, 0.3, 1) both; }
.sv-leave-right { animation: sv-out-right 0.5s cubic-bezier(0.25, 0.8, 0.3, 1) both; }
@keyframes sv-in-right  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes sv-out-left  { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes sv-in-left   { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes sv-out-right { from { transform: translateX(0); } to { transform: translateX(100%); } }
.sv-leaving { pointer-events: none; }
