/*
 * PROTOTYPE (TSK-22234): MentorKit Suite Pro skin for the LMS Pro demo front end.
 *
 * Follows mentorkit.com and its Suite Pro page (read 2026-11-30): Plus Jakarta Sans, a dark blue-grey header and
 * hero with a hexagon pattern, Suite Pro green (#6ebe3c) as the accent, square buttons (solid green, or a green
 * outline with an arrow), small uppercase eyebrows, white sections on light grey. Orange (#ff6600) is MentorKit's
 * own brand colour and is used only as a small accent.
 * Loaded on the front end only, by mk-demo-rig.php. wp-admin is left alone.
 */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
}

:root {
	--mk-font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
	--mk-ink: #263238;
	--mk-ink-deep: #13191c;
	--mk-text: #33393c;
	--mk-muted: #7d818a;
	--mk-line: #dfe4e7;
	--mk-bg: #eceff1;
	--mk-surface: #ffffff;
	--mk-green: #6ebe3c;
	--mk-green-ink: #3f7f1f;
	--mk-green-soft: #f0fae9;
	--mk-green-mid: #c0e8a5;
	--mk-orange: #ff6600;
	--mk-radius: 4px;
	--mk-shadow: 0 1px 2px rgba(19, 25, 28, 0.06), 0 4px 16px rgba(19, 25, 28, 0.06);
	--mk-header-height: 300px;
	--mk-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 62v35M2 16 0 15M54 16l2-1' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");

	/* LMS Pro theming tokens. The seed writes the same palette to the Theming options; these keep it if not. */
	--scorm-primary-color: #6ebe3c;
	--scorm-secondary-color: #263238;
	--scorm-accent-color: #ff6600;
	--scorm-heading-color: #263238;
	--scorm-text-color: #33393c;
	--scorm-muted-text-color: #7d818a;
	--scorm-border-color: #dfe4e7;
	--scorm-surface-color: #ffffff;
	--scorm-background-color: #eceff1;
	--scorm-completed-color: #6ebe3c;
	--scorm-in-progress-color: #f5a623;
	--scorm-failed-color: #e53935;
	--scorm-button-text-color: #ffffff;
	--scorm-group-color-primary: #6ebe3c;

	/* Twenty Twenty-Four presets. */
	--wp--preset--font-family--body: var(--mk-font);
	--wp--preset--font-family--heading: var(--mk-font);
	--wp--preset--color--base: var(--mk-bg);
	--wp--preset--color--contrast: var(--mk-ink);
}

/* ---------------------------------------------------------------- Base */

html {
	background: var(--mk-bg) !important;
}

body {
	position: relative;
	min-height: 100vh;
	margin: 0;
	background: var(--mk-bg) !important;
	color: var(--mk-text);
	font-family: var(--mk-font) !important;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* The dark hexagon band every page starts on. */
body::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 0;
	height: var(--mk-header-height);
	background:
		var(--mk-hex),
		radial-gradient(ellipse at 80% 0%, rgba(110, 190, 60, 0.16), transparent 55%),
		linear-gradient(180deg, var(--mk-ink-deep) 0%, var(--mk-ink) 100%);
}

body > * {
	position: relative;
	z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
.scorm-group-hero-title,
.scorm-profile-section__title,
.scorm-my-profile__title {
	color: var(--mk-ink);
	font-family: var(--mk-font) !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

a {
	color: var(--mk-green-ink);
}

/* ---------------------------------------------------------------- Header bar */

/* Block theme header (catalogue, profile, administration). */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.wp-site-blocks > header > .wp-block-group {
	max-width: none !important;
	margin: 0 !important;
	padding: 1.25rem clamp(1rem, 4vw, 3rem) !important;
	background: var(--mk-ink-deep) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-site-blocks > header > .wp-block-group > .wp-block-group {
	max-width: 1200px;
	margin: 0 auto;
}

.wp-block-site-title,
.wp-block-site-title a,
#page > #header h1,
#page > #header h1 a {
	margin: 0;
	color: #fff !important;
	font-family: var(--mk-font) !important;
	font-size: 1.125rem !important;
	font-weight: 800 !important;
	font-style: italic;
	letter-spacing: -0.01em;
	line-height: 1.5;
	text-decoration: none !important;
}

/* A small orange hexagon in front of the site name, after MentorKit's mark. */
.wp-block-site-title a::before,
#page > #header h1 a::before {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 1.05em;
	margin-right: 0.5em;
	vertical-align: -0.15em;
	background: var(--mk-orange);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.wp-site-blocks > header .wp-block-navigation a {
	padding: 0.5rem 0.75rem;
	color: #fff !important;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.wp-site-blocks > header .wp-block-navigation a:hover,
.wp-site-blocks > header .wp-block-navigation .current-menu-item > a {
	color: var(--mk-green) !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-open svg {
	color: #fff !important;
	fill: #fff !important;
}

/* Classic fallback header (group pages, registration, login). */
#page > #header {
	position: sticky;
	top: 0;
	z-index: 50;
	margin: 0;
	padding: 0;
}

#page > #header #headerimg {
	padding: 1.25rem clamp(1rem, 4vw, 3rem);
	background: var(--mk-ink-deep);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#page > #header h1 {
	max-width: 1200px;
	margin: 0 auto;
}

#page > #header .description,
#page > hr {
	display: none;
}

/* ---------------------------------------------------------------- Content panel */

.wp-site-blocks > main {
	max-width: 1200px;
	margin: 6rem auto 3rem !important;
	padding: 2.5rem clamp(1rem, 3vw, 3rem) 3rem !important;
	border-radius: var(--mk-radius);
	background: var(--mk-surface);
	box-shadow: var(--mk-shadow);
	--wp--style--global--content-size: 1040px;
}

.wp-site-blocks > main > .wp-block-group:first-child .wp-block-spacer {
	display: none;
}

.wp-site-blocks > main > .wp-block-group:first-child .wp-block-post-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
	text-align: left;
}

.wp-site-blocks > main > .wp-block-post-content {
	margin-top: 0 !important;
}

.wp-site-blocks > main .has-global-padding {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.wp-site-blocks > main .scorm-leader-dashboard {
	padding-top: 0 !important;
}

.wp-site-blocks > main .alignwide,
.wp-site-blocks > main .alignfull {
	max-width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.wp-site-blocks > footer {
	color: var(--mk-muted);
	font-size: 0.875rem;
}

.wp-site-blocks > footer a {
	color: var(--mk-muted);
}

/* ---------------------------------------------------------------- Buttons */

.scorm-btn,
.scorm-btn-primary,
.scorm-group-btn,
.gld-btn,
.wp-block-button__link,
.wp-element-button,
button.btn-primary,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 0 !important;
	font-family: var(--mk-font) !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.scorm-btn-primary,
.scorm-group-btn-primary,
.gld-btn-primary,
.wp-block-button__link,
.wp-element-button,
button.btn-primary,
input[type="submit"] {
	border-color: var(--mk-green) !important;
	background: var(--mk-green) !important;
	color: #fff !important;
	box-shadow: none;
}

.scorm-btn-primary:hover,
.scorm-group-btn-primary:hover,
.gld-btn-primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
button.btn-primary:hover,
input[type="submit"]:hover {
	border-color: var(--mk-green-ink) !important;
	background: var(--mk-green-ink) !important;
}

.scorm-btn-secondary,
.scorm-btn--outline,
.scorm-group-btn-secondary,
.gld-btn-outline {
	border: 1px solid var(--mk-green) !important;
	background: transparent !important;
	color: var(--mk-green-ink) !important;
	box-shadow: none;
}

.scorm-btn-secondary:hover,
.scorm-btn--outline:hover,
.scorm-group-btn-secondary:hover,
.gld-btn-outline:hover {
	background: var(--mk-green-soft) !important;
}

/* MentorKit's buttons end in an arrow. LMS Pro's group buttons carry their own arrow in the text. */
.mk-index .btn::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.15em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* ---------------------------------------------------------------- Forms */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea,
.gld-input,
.gld-select,
.mk-pro-cf-input {
	width: 100%;
	padding: 0.65rem 0.75rem !important;
	border: 1px solid var(--mk-line) !important;
	border-radius: var(--mk-radius) !important;
	background: #fff !important;
	color: var(--mk-ink) !important;
	font-family: var(--mk-font) !important;
	font-size: 0.9375rem !important;
	line-height: 1.5;
	box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--mk-green) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(110, 190, 60, 0.25) !important;
}

.gld-gf-box {
	border-color: var(--mk-line) !important;
	border-radius: var(--mk-radius) !important;
	background: #fff !important;
}

.gld-gf-box:focus-within {
	border-color: var(--mk-green) !important;
	box-shadow: 0 0 0 3px rgba(110, 190, 60, 0.25);
}

.gld-gf-box input,
.gld-gf-box input:focus {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

label,
.scorm-form-group label {
	color: var(--mk-ink);
	font-size: 0.875rem;
	font-weight: 700;
}

/* ---------------------------------------------------------------- Eyebrows and badges */

.scorm-group-hero-meta,
.scorm-profile-stat__label,
.scorm-profile-resume__eyebrow {
	color: var(--mk-muted) !important;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.scorm-group-module-pill,
.scorm-access-badge,
.scorm-profile-pill,
.scorm-profile-tag,
.gld-badge {
	border-radius: 2px !important;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.scorm-profile-pill--done,
.gld-badge-green {
	background: var(--mk-green-soft) !important;
	color: var(--mk-green-ink) !important;
}

.gld-badge-orange {
	background: #fff4e5 !important;
	color: #9a5200 !important;
}

.gld-badge-gray {
	background: var(--mk-bg) !important;
	color: var(--mk-muted) !important;
}

/* ---------------------------------------------------------------- Progress */

.scorm-profile-progress__bar,
.gld-bar {
	height: 0.375rem !important;
	overflow: hidden;
	border-radius: 0 !important;
	background: var(--mk-bg) !important;
}

.scorm-profile-progress__fill,
.gld-bar-fill {
	border-radius: 0 !important;
	background: var(--mk-green) !important;
}

/* ---------------------------------------------------------------- Group page */

.single-scorm_group .scorm-group {
	box-sizing: border-box;
	max-width: 1232px !important;
	margin: 4rem auto 3rem !important;
	padding: 0 1rem !important;
}

.scorm-group .scorm-group-breadcrumb,
.scorm-group .scorm-group-breadcrumb a {
	color: rgba(255, 255, 255, 0.75) !important;
	font-size: 0.875rem;
}

.scorm-group-hero,
.scorm-group-subgroups,
.scorm-group-modules {
	padding: 2.5rem clamp(1.25rem, 3vw, 3rem) !important;
	border-radius: var(--mk-radius);
	background: var(--mk-surface) !important;
	box-shadow: var(--mk-shadow);
}

.scorm-group-subgroups,
.scorm-group-modules {
	margin-top: 1.5rem !important;
}

.scorm-group-hero-rule {
	width: 3rem !important;
	height: 4px !important;
	border-radius: 0;
	background: var(--mk-green) !important;
}

.scorm-group-hero-image,
.scorm-group-hero-image-placeholder {
	overflow: hidden;
	border-radius: var(--mk-radius) !important;
}

.scorm-group-hero-image-placeholder {
	background:
		var(--mk-hex),
		radial-gradient(ellipse at 75% 80%, rgba(110, 190, 60, 0.35), transparent 60%),
		linear-gradient(160deg, var(--mk-ink) 0%, var(--mk-ink-deep) 100%) !important;
}

.scorm-group-module-num {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2.25rem;
	background: var(--mk-green);
	color: #fff !important;
	font-weight: 800;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.scorm-group-module-row:hover {
	background: var(--mk-green-soft);
}

/* ---------------------------------------------------------------- Registration and login */

body.scorm-auth-page #page {
	display: block !important;
}

body.scorm-auth-page {
	background: var(--mk-bg) !important;
}

.scorm-auth-page,
.scorm-auth-container {
	background: transparent !important;
}

.scorm-auth-container {
	margin: 4rem auto 3rem;
	padding: 0 1rem;
}

.scorm-auth-wrapper {
	max-width: 30rem;
	margin: 0 auto;
	overflow: hidden;
	border: 0 !important;
	border-top: 4px solid var(--mk-green) !important;
	border-radius: var(--mk-radius) !important;
	background: var(--mk-surface) !important;
	box-shadow: var(--mk-shadow) !important;
}

.scorm-auth-header {
	margin: 0 !important;
	padding: 1.75rem 1.5rem 0.5rem !important;
	background: transparent !important;
	text-align: left;
}

body .scorm-auth-wrapper .scorm-auth-header h1,
body .scorm-auth-wrapper .scorm-auth-header h2 {
	margin: 0 0 0.25rem !important;
	font-size: 1.5rem !important;
}

body .scorm-auth-wrapper .scorm-auth-header p {
	margin: 0 !important;
	color: var(--mk-muted) !important;
	font-size: 0.9375rem !important;
}

.scorm-auth-form-container {
	padding: 1.25rem 1.5rem 1.75rem !important;
}

.scorm-enroll-context {
	margin: 1rem 1.5rem 0 !important;
	border: 0 !important;
	border-left: 3px solid var(--mk-green) !important;
	border-radius: 0 !important;
	background: var(--mk-green-soft) !important;
}

.scorm-auth-form .scorm-btn-primary,
.scorm-auth-form button[type="submit"] {
	width: 100%;
}

.mk-pro-org__list {
	overflow: hidden;
	border: 1px solid var(--mk-line) !important;
	border-radius: var(--mk-radius) !important;
	box-shadow: var(--mk-shadow) !important;
}

.mk-pro-org__link,
.mk-pro-org__manual {
	color: var(--mk-green-ink) !important;
	font-size: 0.8125rem !important;
	font-weight: 700;
}

/* ---------------------------------------------------------------- Catalogue */

.scorm-courses-grid {
	gap: 1.5rem !important;
}

.scorm-courses-grid > * {
	overflow: hidden;
	border: 1px solid var(--mk-line) !important;
	border-radius: var(--mk-radius) !important;
	background: var(--mk-surface);
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scorm-courses-grid > *:hover {
	border-color: var(--mk-green) !important;
	box-shadow: var(--mk-shadow) !important;
}

.scorm-course-image,
.scorm-course-thumbnail {
	border-radius: 0 !important;
}

.scorm-course-title,
.scorm-course-title a {
	color: var(--mk-ink) !important;
	font-family: var(--mk-font) !important;
	font-weight: 700;
	text-decoration: none;
}

.scorm-course-excerpt,
.scorm-course-meta {
	color: var(--mk-text);
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------- Learner profile */

.scorm-profile-stat {
	border: 1px solid var(--mk-line) !important;
	border-top: 3px solid var(--mk-green) !important;
	border-radius: var(--mk-radius) !important;
	background: var(--mk-surface) !important;
	box-shadow: none !important;
}

.scorm-profile-stat__value {
	color: var(--mk-ink) !important;
	font-weight: 800;
}

.scorm-profile-section,
.scorm-profile-course-row,
.scorm-profile-certificate-row {
	border-color: var(--mk-line) !important;
	border-radius: var(--mk-radius) !important;
}

.scorm-profile-resume {
	border: 0 !important;
	border-left: 4px solid var(--mk-green) !important;
	border-radius: var(--mk-radius) !important;
	background:
		var(--mk-hex),
		linear-gradient(160deg, var(--mk-ink) 0%, var(--mk-ink-deep) 100%) !important;
	color: #fff;
}

.scorm-profile-resume * {
	color: inherit;
}

.scorm-profile-resume h2,
.scorm-profile-resume h3,
.scorm-profile-resume strong {
	color: #fff !important;
}

/* ---------------------------------------------------------------- Leader administration */

.gld-panel,
.gld-course-row {
	border: 1px solid var(--mk-line) !important;
	border-radius: var(--mk-radius) !important;
	background: var(--mk-surface);
	box-shadow: none !important;
}

.gld-tab {
	font-size: 0.9375rem;
	font-weight: 700;
}

.gld-filter-chip,
.gld-gf-pill {
	border-radius: 2px !important;
}

/* ---------------------------------------------------------------- Small screens */

@media (max-width: 782px) {
	:root {
		--mk-header-height: 220px;
	}

	.wp-site-blocks > main {
		margin: 3.5rem 0.5rem 2rem !important;
		padding: 1.5rem 1rem 2rem !important;
	}

	.single-scorm_group .scorm-group,
	.scorm-auth-container {
		margin-top: 3rem;
		padding: 0 0.5rem;
	}

	.scorm-group-module-row,
	.scorm-group-module-link {
		flex-wrap: wrap;
		row-gap: 0.5rem;
		min-width: 0;
	}

	.scorm-group-module-pill {
		max-width: 100%;
		white-space: normal;
		letter-spacing: 0;
	}
}
