/**
 * ds-td-public.css
 *
 * 前台排版防爆隔離樣式表。所有 Class 一律以 .ds-td- 為前綴，並包裹在
 * .ds-td-scope 容器內強約束 CSS Scoping，避免主題 / Elementor 更新時跑版。
 * 字型與顏色改為繼承主題／設計變數（不再整組重設主題樣式），
 * 換佈景主題時師資頁會跟著全站一起換。
 */

.ds-td-scope {
	box-sizing: border-box;
	max-width: var(--ds-maxw-content, 1000px);
	min-width: 0;
	width: 100%;
	margin: 0 auto;
	font-family: inherit;
	color: var(--ds-text);
	position: relative;
}
.ds-td-scope *,
.ds-td-scope *::before,
.ds-td-scope *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* 篩選列                                                              */
/* ------------------------------------------------------------------ */
.ds-td-filter-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	justify-content: center;
}
.ds-td-search-wrap {
	display: flex;
}
.ds-td-search-input {
	padding: 8px 16px !important;
	border-radius: 999px !important;
	border: 1px solid var(--ds-line-strong) !important;
	font-size: 14px !important;
	background: var(--ds-surface) !important;
	width: 220px;
	max-width: 60vw;
	box-sizing: border-box !important;
}
.ds-td-filter-select-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ds-td-filter-label {
	font-weight: 600;
	font-size: 14px;
}
.ds-td-filter-select {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--ds-line-strong);
	font-size: 14px;
	background: var(--ds-surface);
}
.ds-td-search-empty {
	text-align: center;
	color: var(--ds-text-subtle);
	font-size: 14px;
	padding: 20px;
}

/* ------------------------------------------------------------------ */
/* 分區區塊（依階級／舞種分區顯示模式）                                    */
/* ------------------------------------------------------------------ */
.ds-td-section {
	margin-bottom: 36px;
}
.ds-td-section-heading {
	font-size: 18px !important;
	font-weight: 700 !important;
	margin: 0 0 14px !important;
	padding-bottom: 8px !important;
	border-bottom: 2px solid var(--ds-line) !important;
	color: var(--ds-text) !important;
}
.ds-td-section-heading--pinned {
	color: var(--ds-warn) !important;
	border-bottom-color: color-mix(in srgb, var(--ds-brand) 55%, var(--ds-surface)) !important;
}
.ds-td-section--pinned {
	background: linear-gradient(180deg, color-mix(in srgb, var(--ds-brand) 8%, transparent), transparent);
	border-radius: 16px;
	padding: 16px;
	margin: -16px -16px 36px;
}

/* ------------------------------------------------------------------ */
/* 網格排版 (RWD)                                                     */
/* ------------------------------------------------------------------ */
.ds-td-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.ds-td-teacher-card {
	position: relative;
	background: var(--ds-surface);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--ds-text) 6%, transparent);
	transition: opacity 0.35s ease, filter 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease;
	cursor: default;
}
.ds-td-teacher-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--ds-text) 12%, transparent);
}

/* 視覺聚焦風格過濾 (Focus & Dim Filter) */
.ds-td-teacher-card.ds-td-dimmed {
	opacity: 0.35;
	filter: grayscale(100%);
	transform: none;
	box-shadow: none;
}
.ds-td-teacher-card.ds-td-focused {
	opacity: 1;
	filter: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-brand) 35%, transparent), 0 10px 26px color-mix(in srgb, var(--ds-text) 14%, transparent);
}

.ds-td-card-photo-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--ds-line);
}
.ds-td-card-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s ease;
}
.ds-td-card-photo--hover {
	opacity: 0;
}
.ds-td-teacher-card:hover .ds-td-card-photo--hover {
	opacity: 1;
}

.ds-td-badge-featured {
	position: absolute;
	top: 8px;
	left: 8px;
	background: linear-gradient(135deg, var(--ds-highlight), var(--ds-highlight-2));
	color: var(--ds-highlight-fg);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 999px;
	animation: ds-td-breathe 2.2s ease-in-out infinite;
	z-index: 2;
}
@keyframes ds-td-breathe {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-highlight) 60%, transparent); }
	50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ds-highlight) 0%, transparent); }
}

.ds-td-badge-infocard {
	/* 這個徽章有時是 <span>（開資訊卡視窗／直接播放）、有時是 <a>（外部連結），
	   統一在這裡重置連結的預設底線／顏色，兩種標籤看起來要一致。 */
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	background: color-mix(in srgb, var(--ds-text) 72%, transparent);
	color: var(--ds-on-accent);
	font-size: 11px;
	text-align: center;
	text-decoration: none;
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
	backdrop-filter: blur(2px);
	box-shadow: 0 4px 10px color-mix(in srgb, var(--ds-text) 25%, transparent);
	z-index: 2;
}

.ds-td-card-info {
	padding: 10px 8px 14px !important;
	text-align: center !important;
}
.ds-td-card-tier {
	/* 階級徽章：純文字職稱（不加圖示），字級適合短句閱讀。 */
	display: inline-block !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: var(--ds-text-muted) !important;
	background: var(--ds-fill) !important;
	padding: 2px 10px !important;
	border-radius: 999px !important;
	margin: 0 0 4px !important;
	line-height: 1.4 !important;
}
.ds-td-card-name {
	/* 主題（Colibri 等頁面編輯器）常對 h1~h6 套用全站樣式，優先權可能蓋過
	   這裡的規則，所以下面每一條都加 !important 強制鎖定，確保「中英文姓名
	   同一行」這個需求不會被主題樣式吃掉。實際字級另外由
	   ds-td-public.js 的自動縮字腳本依卡片寬度動態調整；這裡的 font-size
	   只是縮字前的起始值／JS 未執行時的備援值。 */
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	box-sizing: border-box !important;
}
.ds-td-card-style {
	margin: 3px 0 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--ds-text-muted) !important;
}
.ds-td-card-bio {
	margin: 6px 0 0 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	color: var(--ds-text-subtle) !important;
}
.ds-td-card-vibe-tags {
	margin: 4px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}
.ds-td-vibe-tag {
	font-size: 10px;
	color: var(--ds-brand);
	background: color-mix(in srgb, var(--ds-brand) 10%, transparent);
	border-radius: 999px;
	padding: 1px 8px;
	white-space: nowrap;
}

.ds-td-empty-state,
.ds-td-fallback-notice {
	text-align: center;
	padding: 40px 20px;
	color: var(--ds-text-subtle);
	font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Modal / Lightbox                                                    */
/* ------------------------------------------------------------------ */
.ds-td-modal-overlay {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--ds-text) 65%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}
.ds-td-modal-overlay[hidden] {
	display: none;
}
.ds-td-modal {
	background: var(--ds-surface);
	border-radius: 16px;
	max-width: 860px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px color-mix(in srgb, var(--ds-text) 35%, transparent);
}
.ds-td-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--ds-text-muted);
	z-index: 2;
}
.ds-td-modal-inner {
	display: flex;
	flex-wrap: wrap;
}
.ds-td-modal-col {
	box-sizing: border-box;
	padding: 24px;
}
.ds-td-modal-col--visual {
	flex: 0 0 280px;
	text-align: center;
}
.ds-td-modal-col--content {
	flex: 1 1 320px;
}
.ds-td-modal-photo {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 3 / 4;
}
.ds-td-modal-socials {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
}
.ds-td-watch-video-btn {
	margin-top: 14px;
	width: 100%;
	background: var(--ds-promo);
	color: var(--ds-on-accent);
	border: none;
	padding: 10px 14px;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
}
.ds-td-modal-name {
	margin: 0 0 8px;
	font-size: 22px;
}
.ds-td-modal-quote {
	font-style: italic;
	color: var(--ds-text-muted);
	border-left: 3px solid var(--ds-brand);
	padding-left: 12px;
	margin: 0 0 16px;
}
.ds-td-modal-experiences {
	margin: 0 0 16px;
	padding-left: 18px;
}
.ds-td-modal-schedule-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ds-td-modal-schedule-list li {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed var(--ds-line);
	font-size: 13px;
}
.ds-td-schedule-difficulty {
	color: var(--ds-on-accent);
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
}
.ds-td-schedule-warning {
	color: var(--ds-warn);
	font-size: 13px;
	background: var(--ds-warn-bg);
	padding: 8px 12px;
	border-radius: 8px;
}

/* Video Lightbox */
.ds-td-video-lightbox {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--ds-text) 85%, transparent);
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ds-td-video-lightbox iframe {
	width: min(90vw, 900px);
	aspect-ratio: 16 / 9;
	border: none;
	border-radius: 8px;
}
/* 直式影片（YouTube Shorts／Reels／TikTok 等，由後端判斷後加上 --portrait）。
   桌機：置中的直式框；手機：見下方 media query 的「直式浮動小視窗」。 */
.ds-td-video-lightbox--portrait iframe {
	height: min(88vh, 900px);
	width: auto;
	aspect-ratio: 9 / 16;
	max-width: 96vw;
}
@media (max-width: 768px) {
	.ds-td-video-lightbox--portrait {
		/* 遮罩調淡，讓使用者仍看得到背後的老師頁面。 */
		background: color-mix(in srgb, var(--ds-text) 40%, transparent);
		padding: 12px;
	}
	.ds-td-video-lightbox--portrait iframe {
		/* 至少佔螢幕高度 60% 以上（72%），寬度依 9:16 自動推算，不滿版。 */
		height: 72vh;
		height: 72dvh;
		width: auto;
		aspect-ratio: 9 / 16;
		max-width: 92vw;
		border-radius: 14px;
		box-shadow: 0 10px 40px color-mix(in srgb, var(--ds-text) 50%, transparent);
	}
}
.ds-td-video-lightbox-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	line-height: 36px;
	padding: 0;
	color: var(--ds-on-accent);
	font-size: 26px;
	background: color-mix(in srgb, var(--ds-text) 55%, transparent);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
}

/* ------------------------------------------------------------------ */
/* 手機版 RWD                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.ds-td-scope {
		min-width: 0;
	}
	.ds-td-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	.ds-td-card-photo-wrap {
		border-radius: 999px;
		aspect-ratio: 1 / 1;
		margin: 8px auto 0;
		width: 84%;
	}
	.ds-td-badge-infocard {
		font-size: 12px;
		font-weight: 600;
		bottom: 4px;
		left: 4px;
		right: 4px;
		padding: 5px 4px;
		line-height: 1.3;
	}
	/* 手機版隱藏徽章圖示，節省空間 */
	.ds-td-badge-infocard .ds-td-badge-icon {
		display: none;
	}
	.ds-td-card-tier {
		font-size: 10px !important;
		padding: 2px 8px !important;
	}
	.ds-td-card-name {
		font-size: 12px !important;
	}
	.ds-td-card-style {
		font-size: 11px !important;
	}
	.ds-td-card-bio {
		font-size: 10px !important;
	}
	.ds-td-modal-inner {
		flex-direction: column;
	}
	.ds-td-modal-col--visual {
		flex: none;
	}
}

.ds-td-modal-bio {
	margin: 0 0 12px;
	color: var(--ds-text-muted);
	font-size: 14px;
}

.ds-td-badge-infocard .ds-td-badge-icon {
	margin-right: 4px;
}

/* 徽章：電腦版用照片上的長條（overlay，文字「上課影音」），手機版改成文字下方的小按鈕（inline，文字「影音」）。 */
.ds-td-badge--inline {
	display: none;
}
@media (max-width: 768px) {
	.ds-td-badge--overlay {
		display: none !important;
	}
	.ds-td-badge--inline {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: static;
		margin: 8px auto 0;
		min-height: 30px;
		padding: 4px 18px;
		background: var(--ds-text);
		color: var(--ds-on-accent);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.2;
		border-radius: 999px;
		box-shadow: none;
		backdrop-filter: none;
	}
	.ds-td-badge--inline .ds-td-badge-arrow {
		display: none;
	}
}

/* 手機版：卡片內容改成直向排列，讓「影音」按鈕永遠貼在卡片底部對齊（不受文字行數影響）。 */
@media (max-width: 768px) {
	.ds-td-teacher-card {
		display: flex;
		flex-direction: column;
	}
	.ds-td-card-info {
		flex: 1 1 auto;
		display: flex !important;
		flex-direction: column;
		align-items: center;
	}
	.ds-td-card-info > :nth-last-child(2) {
		margin-bottom: 8px !important;
	}
	.ds-td-badge--inline {
		margin: auto auto 0;
	}
}

/* 暫時停課／休課／休假的老師：照片左上角標示，照片稍微變淡（放在卡片最上層，手機版圓形照片也不會被裁掉） */
.ds-td-status-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	background: color-mix(in srgb, var(--ds-text) 88%, transparent);
	color: var(--ds-on-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	padding: 5px 10px;
	border-radius: 999px;
	letter-spacing: 0.04em;
	box-shadow: 0 1px 4px color-mix(in srgb, var(--ds-text) 25%, transparent);
	pointer-events: none;
}
.ds-td-card-photo-wrap--paused .ds-td-card-photo {
	filter: grayscale(55%) brightness(0.96);
}
@media (max-width: 768px) {
	.ds-td-status-badge {
		top: 6px;
		left: 6px;
		font-size: 10px;
		padding: 3px 7px;
	}
}

/* 手機版：網格改成 6 欄（一般卡片佔 2 欄＝每列 3 張）；最上面階級剛好 2 位時各佔 3 欄＝左右滿版。 */
@media (max-width: 768px) {
	.ds-td-grid {
		grid-template-columns: repeat(6, 1fr);
	}
	.ds-td-grid > .ds-td-teacher-card {
		grid-column: span 2;
	}
	.ds-td-grid > .ds-td-teacher-card--wide {
		grid-column: span 3;
	}
	.ds-td-teacher-card--wide .ds-td-card-name {
		font-size: 16px !important;
	}
	.ds-td-teacher-card--wide .ds-td-card-style {
		font-size: 13px !important;
	}
	.ds-td-teacher-card--wide .ds-td-card-tier {
		font-size: 12px !important;
	}
	.ds-td-teacher-card--wide .ds-td-card-bio {
		font-size: 12px !important;
	}
}

/* 徽章容器：可能同時有「詳細介紹」與「上課影音」兩個標籤 */
.ds-td-badges--overlay {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ds-td-badges .ds-td-badge-infocard {
	position: static;
}
.ds-td-badges--inline {
	display: none;
}
@media (max-width: 768px) {
	.ds-td-badges--overlay {
		display: none;
	}
	.ds-td-badges--inline {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
		margin-top: auto;
	}
	.ds-td-badges--inline .ds-td-badge--inline {
		margin: 0;
	}
}

/* ------------------------------------------------------------------ */
/* 手機版：文字放大（放在檔案最後，覆蓋前面較小的手機版字級）              */
/* 姓名不再「縮到同一行塞得下」（那會讓全部姓名被最長的那個拖累而變得很小），  */
/* 改成字級固定、太長就自然換成兩行。                                    */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.ds-td-card-tier {
		font-size: 11px !important;
		padding: 3px 9px !important;
	}
	.ds-td-card-name {
		font-size: 13px !important;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
		overflow-wrap: anywhere;
		line-height: 1.3 !important;
	}
	.ds-td-card-style {
		font-size: 12px !important;
		line-height: 1.35 !important;
	}
	.ds-td-card-bio {
		font-size: 11px !important;
	}
	.ds-td-vibe-tag {
		font-size: 11px !important;
	}
	.ds-td-badge--inline {
		font-size: 12px;
		min-height: 30px;
		padding: 5px 14px;
	}
	.ds-td-status-badge {
		font-size: 11px;
		padding: 3px 8px;
	}
	.ds-td-teacher-card--wide .ds-td-status-badge {
		font-size: 12px;
	}
	/* 搜尋與篩選：16px 以上，iPhone 也不會在點選時自動放大畫面 */
	.ds-td-search-input {
		font-size: 16px !important;
		width: 100%;
		max-width: 100%;
	}
	.ds-td-filter-label {
		font-size: 14px;
	}
	.ds-td-filter-select {
		font-size: 16px;
	}
	.ds-td-search-empty {
		font-size: 15px;
	}
	/* 資訊卡小視窗 */
	.ds-td-modal-bio {
		font-size: 14px;
	}
	.ds-td-modal-schedule-list li {
		font-size: 14px;
	}
	.ds-td-schedule-difficulty {
		font-size: 12px;
	}
	.ds-td-schedule-warning {
		font-size: 13px;
	}
}

/* ------------------------------------------------------------------ */
/* 卡片上的「查看課程」徽章                                              */
/* ------------------------------------------------------------------ */
.ds-td-badge--schedule {
	background: var(--ds-surface) !important;
	color: var(--ds-text) !important;
	border: 1px solid color-mix(in srgb, var(--ds-text) 18%, transparent);
	text-decoration: none;
}
@media (max-width: 768px) {
	.ds-td-badge--schedule.ds-td-badge--inline {
		border: 1px solid var(--ds-text);
	}
}

/* ------------------------------------------------------------------ */
/* 老師課程頁                                                            */
/* ------------------------------------------------------------------ */
.ds-td-sched {
	max-width: 760px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	font-size: 16px;
	line-height: 1.6;
}
.ds-td-sched-back a {
	color: var(--ds-text-muted);
	text-decoration: none;
	font-size: 15px;
}
.ds-td-sched-head {
	display: flex;
	gap: 16px;
	align-items: center;
	margin: 12px 0 20px;
}
.ds-td-sched-photo {
	width: 96px;
	height: 96px;
	border-radius: 999px;
	object-fit: cover;
	object-position: 50% 22%;
	flex: none;
}
.ds-td-sched-title {
	margin: 4px 0 0;
	font-size: 24px;
	line-height: 1.3;
}
.ds-td-sched-styles {
	margin: 4px 0 0;
	color: var(--ds-text-muted);
	font-size: 15px;
}
.ds-td-sched-day {
	margin: 0 0 18px;
}
.ds-td-sched-date {
	margin: 0 0 6px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--ds-text);
	font-size: 18px;
}
.ds-td-sched-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ds-td-sched-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--ds-line-strong);
}
.ds-td-sched-time {
	flex: none;
	min-width: 104px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.ds-td-sched-course {
	flex: 1 1 auto;
	min-width: 0;
}
.ds-td-sched-sub {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--ds-danger-bg);
	color: var(--ds-danger);
	font-size: 12px;
	font-weight: 700;
}
.ds-td-sched-book {
	flex: none;
	display: inline-block;
	padding: 7px 18px;
	border-radius: 999px;
	background: var(--ds-text);
	color: var(--ds-on-accent) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.ds-td-sched-note {
	color: var(--ds-text-muted);
	font-size: 13px;
	margin-top: 20px;
}
.ds-td-sched-empty,
.ds-td-sched-paused,
.ds-td-sched-manual {
	padding: 16px;
	border-radius: 12px;
	background: var(--ds-fill);
	color: var(--ds-text-muted);
}
.ds-td-sched-index {
	columns: 2;
	list-style: none;
	padding: 0;
}
.ds-td-sched-index li {
	padding: 6px 0;
	break-inside: avoid;
}
.ds-td-sched-count {
	color: var(--ds-text-muted);
	font-size: 13px;
}
@media (max-width: 768px) {
	.ds-td-sched {
		font-size: 16px;
	}
	.ds-td-sched-title {
		font-size: 20px;
	}
	.ds-td-sched-item {
		flex-wrap: wrap;
	}
	.ds-td-sched-time {
		min-width: 0;
		flex-basis: 100%;
	}
	.ds-td-sched-course {
		flex-basis: calc(100% - 96px);
	}
	.ds-td-sched-book {
		padding: 9px 22px;
		font-size: 15px;
	}
	.ds-td-sched-index {
		columns: 1;
	}
}

.ds-td-sched-apphint {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--ds-info-bg);
	color: var(--ds-info);
	font-size: 15px;
}
.ds-td-sched-appnote {
	margin: 12px 0 0;
	padding: 14px;
	border-radius: 10px;
	background: var(--ds-warn-bg);
	border: 1px solid var(--ds-warn-line);
	color: var(--ds-warn);
}
.ds-td-sched-appnote[hidden] {
	display: none;
}
.ds-td-sched-store {
	display: inline-block;
	margin: 0 8px 6px 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--ds-text);
	color: var(--ds-on-accent) !important;
	text-decoration: none;
	font-size: 15px;
}

.ds-td-sched-cta {
	margin: 0 0 22px;
	padding: 16px;
	border-radius: 12px;
	background: var(--ds-info-bg);
	border: 1px solid var(--ds-info-line);
	color: var(--ds-info);
}
.ds-td-sched-cta p {
	margin: 0 0 8px;
}
.ds-td-sched-cta-title {
	font-size: 17px;
}
.ds-td-sched-cta-text {
	font-size: 14px;
	color: var(--ds-info);
}
.ds-td-sched-cta-buttons {
	margin-bottom: 0 !important;
}
.ds-td-sched-cta-desktop {
	margin-top: 8px !important;
	font-size: 14px;
	color: var(--ds-warn);
}
.ds-td-sched-cta [hidden] {
	display: none !important;
}
@media (max-width: 768px) {
	.ds-td-sched-cta-title {
		font-size: 16px;
	}
	.ds-td-sched-cta-text {
		font-size: 14px;
	}
	.ds-td-sched-store {
		display: block;
		text-align: center;
		padding: 12px 16px;
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------ */
/* 手機版修正（本機實測後）：姓名不在單字中間斷開、按鈕文字不換行、階級標籤不擠壓 */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.ds-td-card-name {
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none !important;
	}
	.ds-td-card-tier {
		font-size: 11px !important;
		padding: 3px 7px !important;
		white-space: nowrap;
		max-width: 100%;
		box-sizing: border-box;
	}
	.ds-td-teacher-card--wide .ds-td-card-tier {
		white-space: normal;
		font-size: 12px !important;
	}
	.ds-td-badge--inline {
		font-size: 12px;
		min-height: 30px;
		padding: 5px 10px;
		white-space: nowrap;
	}
	.ds-td-badges--inline {
		gap: 5px;
	}
	.ds-td-teacher-card--wide .ds-td-badge--inline {
		font-size: 13px;
		min-height: 32px;
		padding: 5px 16px;
	}
}

.ds-td-style-item {
	display: inline-block;
	white-space: nowrap;
}
@media (max-width: 768px) {
	.ds-td-sched-item {
		flex-wrap: nowrap;
		align-items: flex-start;
	}
	.ds-td-sched-time {
		flex: none;
		flex-basis: auto;
		min-width: 112px;
	}
	.ds-td-sched-course {
		flex: 1 1 auto;
		flex-basis: auto;
	}
	.ds-td-sched-cta .ds-td-sched-store {
		white-space: nowrap;
	}
}
