/* /trainer/present classroom presenter — layout + roll-call styling.
 * Stacks cleanly on mobile for field use per codex UX principles.
 */

.tr-present__header {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.tr-present__module {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted, #7d7d7d);
}

.tr-present__title {
	margin: 0.1rem 0 0.35rem 0;
	font-size: 1.65rem;
	line-height: 1.2;
}

.tr-present__meta {
	font-size: 0.9rem;
	color: var(--text-muted, #666);
}

.tr-present__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tr-present__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 0.9fr;
	gap: 1rem;
	min-height: 70vh;
}

.tr-present__grid:fullscreen {
	background: #fff;
	padding: 1rem;
	overflow: auto;
}

@media (max-width: 1100px) {
	.tr-present__grid {
		grid-template-columns: 1fr 1fr;
	}
	.tr-present__roster {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.tr-present__grid {
		grid-template-columns: 1fr;
	}
}

.tr-present__slides {
	background: #0b1220;
	border-radius: 0.5rem;
	min-height: 50vh;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	overflow: hidden;
}

.tr-present__slides object {
	width: 100%;
	min-height: 55vh;
	border: 0;
}

.tr-present__stub {
	color: #fff;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.8rem;
	max-width: 40rem;
	margin: 0 auto;
}

.tr-present__stub a.tr-btn {
	align-self: flex-start;
}

.tr-present__notes, .tr-present__roster {
	background: var(--card-bg, #fafafa);
	border: 1px solid var(--border-color, #e0e0e0);
	border-radius: 0.5rem;
	padding: 1rem;
	overflow-y: auto;
	max-height: 75vh;
}

.tr-present__notes-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted, #7d7d7d);
}

.tr-present__video-link {
	font-size: 0.85rem;
	margin: 0 0 0.75rem 0;
}

.tr-present__sections {
	padding-left: 1rem;
	margin: 0;
}

.tr-present__sections > li {
	margin-bottom: 1rem;
}

.tr-present__sections h3 {
	margin: 0 0 0.3rem 0;
	font-size: 1rem;
}

.tr-present__sections ul {
	padding-left: 1.1rem;
	margin: 0;
}

.tr-present__sections ul li {
	margin-bottom: 0.2rem;
	font-size: 0.92rem;
	line-height: 1.38;
}

.tr-roster {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tr-roster li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid var(--border-color, #eee);
	font-size: 0.92rem;
}

.tr-roster li:last-child {
	border-bottom: 0;
}

.tr-roster__name {
	flex: 1 1 auto;
	min-width: 8rem;
}

.tr-roster__hours {
	font-variant-numeric: tabular-nums;
	color: var(--text-muted, #666);
	font-size: 0.85rem;
}

.tr-badge--ok {
	background: #d6f0dd;
	color: #0b5e2b;
}

.tr-badge--warn {
	background: #fff2cc;
	color: #8a6d0b;
}

.tr-badge--present {
	background: #d6f0dd;
	color: #0b5e2b;
}

.tr-badge--absent {
	background: #fddada;
	color: #8a1515;
}

.tr-badge--excused {
	background: #e3e8f5;
	color: #28407d;
}

.tr-tile--module {
	display: block;
	padding: 1rem;
	background: var(--card-bg, #fafafa);
	border: 1px solid var(--border-color, #e0e0e0);
	border-radius: 0.5rem;
	text-decoration: none;
	color: inherit;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tr-tile--module:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.tr-tile__key {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted, #7d7d7d);
}

.tr-tile__title {
	margin: 0.25rem 0 0.45rem 0;
	font-weight: 600;
}

.tr-tile__meta {
	font-size: 0.85rem;
	color: var(--text-muted, #666);
}

.tr-mt-1 {
	margin-top: 1rem;
}

.tr-btn--danger {
	background: #8a1515;
	color: #fff;
	border-color: #8a1515;
}

.tr-btn--danger:hover {
	background: #6a0f0f;
}

.tr-cohort-switch {
	background: #fff3cd;
	border-color: #e4c86c;
	margin-bottom: 1rem;
}

.tr-cohort-switch code {
	background: rgba(0, 0, 0, 0.08);
	padding: 0.05rem 0.35rem;
	border-radius: 0.2rem;
}

.tr-cohort-switch__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.55rem;
}

.tr-cohort-switch__current {
	cursor: default;
	opacity: 0.9;
}

.tr-roster__picker-wrap {
	margin-top: 0.5rem;
	border-top: 1px dashed var(--border-color, #d8d8d8);
	padding-top: 0.65rem;
}

.tr-roster__picker-summary {
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.25rem 0;
	list-style: revert;
}

.tr-roster__picker-actions {
	margin-top: 0.6rem;
	display: flex;
	justify-content: flex-end;
}
