/**
 * Acture Course Scheduler – Frontend styles
 * Accessibility-first, responsive teaser cards + logo constraints.
 */

/* Group logo: max-width 180px, preserve aspect ratio */
.acs-group-logo {
	display: block;
	max-width: 180px;
	width: auto;
	height: auto;
}

/* Group title */
.acs-group-title {
	margin: 0 0 1em;
	font-size: 1.5rem;
	line-height: 1.3;
}

/* Course teaser list */
.acs-course-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.acs-course-list {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

.acs-course-teaser {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.acs-course-image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f1;
}

.acs-course-image a {
	display: block;
	height: 100%;
}

.acs-course-image-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.acs-course-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.25rem 1.35rem;
	gap: 0.65rem;
}

.acs-course-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.acs-course-title a {
	color: inherit;
	text-decoration: none;
}

.acs-course-title a:hover,
.acs-course-title a:focus {
	text-decoration: underline;
}

.acs-course-excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #50575e;
}

.acs-course-excerpt p:last-child {
	margin-bottom: 0;
}

.acs-course-progress {
	margin-top: 0.25rem;
}

/* Sensei progress meter overrides for consistent look inside cards */
.acs-course-progress .meter {
	height: 1.1em;
	border-radius: 3px;
	overflow: hidden;
	background: #e2e4e7;
}

.acs-course-progress .meter > span {
	display: block;
	height: 100%;
	line-height: 1.1em;
	font-size: 0.75rem;
	text-align: center;
	color: #fff;
}

.acs-course-actions {
	margin: auto 0 0;
	padding-top: 0.5rem;
}

.acs-course-button {
	display: inline-block;
}

/* Board button inherits theme .button; slight spacing if needed */
.acs-board-button {
	display: inline-block;
}
