/*
 * GetnDrive Partner Academy — cabinet tab styles.
 * Scoped to .gnd-academy inside the Partner Cabinet workspace.
 * No page-level horizontal overflow: fluid grid, min-width: 0 everywhere.
 */

.gnd-academy {
	min-width: 0;
}

.gnd-academy__section-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.gnd-academy__intro {
	margin: 0 0 16px;
	color: #566072;
	font-size: 14px;
	line-height: 1.5;
}

.gnd-academy__block-title {
	margin: 20px 0 8px;
	font-size: 15px;
	line-height: 1.3;
}

/* Breadcrumbs */

.gnd-academy__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 13px;
}

.gnd-academy__breadcrumb {
	color: #566072;
	text-decoration: none;
}

.gnd-academy__breadcrumb:hover,
.gnd-academy__breadcrumb:focus {
	text-decoration: underline;
}

.gnd-academy__breadcrumb-sep {
	color: #9aa3b2;
}

/* Hub */

.gnd-academy__hub-checklist {
	margin: 0 0 22px;
	padding: 14px 16px;
	border: 1px solid #e3e7ee;
	border-radius: 10px;
	background: #f7f9fc;
}

.gnd-academy__category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.gnd-academy__category-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #e3e7ee;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gnd-academy__category-card:hover,
.gnd-academy__category-card:focus {
	border-color: #b9c3d4;
	box-shadow: 0 2px 8px rgba(20, 30, 50, 0.08);
}

.gnd-academy__category-title {
	font-size: 15px;
	line-height: 1.3;
}

.gnd-academy__category-description {
	color: #566072;
	font-size: 13px;
	line-height: 1.45;
}

.gnd-academy__category-count {
	margin-top: auto;
	color: #9aa3b2;
	font-size: 12px;
}

.gnd-academy__link {
	display: inline-block;
	margin: 4px 0 0;
	font-size: 14px;
	text-decoration: underline;
	color: inherit;
}

/* Lesson list */

.gnd-academy__lesson-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gnd-academy__lesson-item {
	min-width: 0;
}

.gnd-academy__lesson-link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #e3e7ee;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.gnd-academy__lesson-link:hover,
.gnd-academy__lesson-link:focus {
	border-color: #b9c3d4;
}

.gnd-academy__lesson-title {
	font-size: 14px;
}

.gnd-academy__lesson-excerpt {
	flex-basis: 100%;
	color: #566072;
	font-size: 13px;
	line-height: 1.45;
}

/* Lesson body */

.gnd-academy__steps,
.gnd-academy__tips,
.gnd-academy__mistakes {
	margin: 0 0 4px;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.55;
}

.gnd-academy__step {
	margin: 0 0 8px;
}

.gnd-academy__tips li,
.gnd-academy__mistakes li {
	margin: 0 0 6px;
}

.gnd-academy__screenshot {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 12px 0;
	border: 1px solid #e3e7ee;
	border-radius: 8px;
}

.gnd-academy__updated {
	margin: 16px 0 0;
	color: #9aa3b2;
	font-size: 12px;
}

.gnd-academy__note {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f2f4f8;
	color: #566072;
	font-size: 13px;
	line-height: 1.5;
}

.gnd-academy__note--fallback {
	background: #fff7e8;
	color: #7a5b17;
}

/* Video */

.gnd-academy__video {
	position: relative;
	width: 100%;
	max-width: 720px;
	aspect-ratio: 16 / 9;
	margin: 0 0 14px;
	border-radius: 10px;
	overflow: hidden;
	background: #10151f;
}

.gnd-academy__video-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Badges */

.gnd-academy__badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	vertical-align: middle;
	white-space: nowrap;
}

.gnd-academy__badge--progress {
	background: #eef4ff;
	color: #2a5bd7;
}

.gnd-academy__badge--roadmap {
	background: #f2f4f8;
	color: #566072;
}

/* Checklist */

.gnd-academy__checklist {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gnd-academy__checklist-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #e3e7ee;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
}

.gnd-academy__checklist-label {
	min-width: 0;
	line-height: 1.4;
}

.gnd-academy__checklist-status {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.gnd-academy__checklist-item--done .gnd-academy__checklist-status {
	background: #e8f6ec;
	color: #1e7a3c;
}

.gnd-academy__checklist-item--todo .gnd-academy__checklist-status {
	background: #fdeeee;
	color: #b03434;
}

.gnd-academy__checklist-item--manual .gnd-academy__checklist-status {
	background: #f2f4f8;
	color: #566072;
}

/* FAQ */

.gnd-academy__faq {
	margin: 0;
}

.gnd-academy__faq-row {
	padding: 12px 0;
	border-bottom: 1px solid #eceff4;
}

.gnd-academy__faq-row:last-child {
	border-bottom: 0;
}

.gnd-academy__faq-question {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.gnd-academy__faq-answer {
	margin: 0;
	color: #566072;
	font-size: 13px;
	line-height: 1.55;
}

@media (max-width: 480px) {
	.gnd-academy__category-grid {
		grid-template-columns: 1fr;
	}
}
