/* =====================================================================
   Qedex Elementor widgets - mock-up styles

   These rules only ever apply inside the child theme's custom widgets.
   Colours and spacing come from the Qedex design tokens (assets/tokens.css
   in the design repo); they are written as literals here so the widgets
   render correctly even if the token sheet is not loaded.
   ===================================================================== */

:root {
	--qx-navy: #1C2541;
	--qx-navy-deep: #141B2E;
	--qx-teal: #087E8B;
	--qx-mint: #5DD9C1;
	--qx-amber: #F2A541;
	--qx-gold-text: #8A6314;
	--qx-surface: #FBF9F5;
	--qx-sunken: #F3EFE7;
	--qx-border: #E4DFD4;
	--qx-border-strong: #C7D0DC;
	--qx-text: #2A2E37;
	--qx-text-muted: #5C6270;
	--qx-text-subtle: #6B7280;
	--qx-on-dark-muted: #C7D0DC;
	--qx-success: #2F7D4F;
	--qx-tint-teal: #E3F4F1;
	--qx-tint-teal-soft: #F1FAF8;
	--qx-tint-amber: #FDF3E1;
	--qx-tint-green: #E1F1E6;
	--qx-progress: linear-gradient(90deg, #087E8B, #5DD9C1);
	--qx-shadow-lg: 0 24px 60px -24px rgba(28, 37, 65, .35);
}

/* ---------- primitives ------------------------------------------------ */

.qx-serif {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

.qx-mono {
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 11px;
	color: #3A3F4B;
}

/* The mock-ups are dense product UI, not running text: they must not inherit
   the site's 1.65 body line-height, which would stretch every row. */
.qx-mock,
.qx-montage,
.qx-certwrap {
	line-height: normal;
}

.qx-mock {
	background: #fff;
	border: 1px solid var(--qx-border);
	border-radius: 18px;
	box-shadow: var(--qx-shadow-lg);
	overflow: hidden;
	box-sizing: border-box;
}

.qx-mock *,
.qx-certwrap * {
	box-sizing: border-box;
}

.qx-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--qx-teal);
}

.qx-eyebrow--sm {
	font-size: 11px;
	letter-spacing: .16em;
}

.qx-eyebrow--xs {
	font-size: 10.5px;
	letter-spacing: .16em;
}

.qx-eyebrow--mint {
	color: var(--qx-mint);
}

.qx-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	padding: 4px 10px;
	border-radius: 999px;
}

.qx-pill--ghost {
	background: rgba(255, 255, 255, .07);
	color: #D5DEE6;
}

.qx-pill--teal {
	background: var(--qx-teal);
	color: #fff;
}

.qx-pill--tealtint {
	background: var(--qx-tint-teal);
	color: var(--qx-teal);
}

.qx-pill--green {
	background: var(--qx-tint-green);
	color: var(--qx-success);
}

.qx-pill--amber {
	background: var(--qx-tint-amber);
	color: var(--qx-gold-text);
}

.qx-pill--sand {
	background: var(--qx-sunken);
	color: var(--qx-navy);
}

.qx-self-start {
	align-self: flex-start;
}

.qx-row-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.qx-stack-xs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.qx-muted-sm {
	font-size: 12px;
	color: var(--qx-text-subtle);
	white-space: nowrap;
}

.qx-bar {
	height: 6px;
	background: var(--qx-sunken);
	border-radius: 3px;
	overflow: hidden;
}

.qx-bar--thick {
	height: 9px;
	border-radius: 5px;
}

.qx-bar__fill {
	height: 100%;
	border-radius: inherit;
	background: var(--qx-progress);
}

.qx-chip {
	border-radius: 9px;
	padding: 7px 10px;
	font-size: 12.5px;
	line-height: 1.4;
}

.qx-chip--green {
	background: var(--qx-tint-green);
	border: 1px solid var(--qx-success);
	color: var(--qx-text);
}

/* ---------- hero montage --------------------------------------------- */

.qx-montage {
	position: relative;
	min-height: 470px;
}

.qx-montage__board {
	position: absolute;
	left: 0;
	top: 10px;
	right: 40px;
	border-color: rgba(255, 255, 255, .08);
}

.qx-chrome {
	background: var(--qx-navy-deep);
	padding: 12px 16px;
	display: flex;
	gap: 6px;
	align-items: center;
}

.qx-chrome__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #3B4563;
	flex: none;
}

.qx-chrome__url {
	margin-left: 12px;
	font-size: 11px;
	color: #8B95AD;
}

.qx-board__top {
	padding: 22px;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	background: linear-gradient(160deg, #1C2541, #141B2E);
}

.qx-ring {
	display: block;
	max-width: 100%;
	height: auto;
}

.qx-board__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.qx-board__greeting {
	font-size: 24px;
	line-height: 1.2;
	color: #fff;
}

.qx-board__level {
	font-size: 13px;
	color: var(--qx-on-dark-muted);
}

.qx-pillrow {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.qx-board__course {
	padding: 16px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
}

.qx-board__course-row {
	font-size: 13.5px;
}

.qx-board__course-name {
	font-weight: 600;
	color: var(--qx-navy);
}

.qx-montage__cert {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 250px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.qx-montage__cert-title {
	font-size: 15px;
	color: var(--qx-navy);
	line-height: 1.3;
}

.qx-montage__mission {
	position: absolute;
	left: 24px;
	bottom: 26px;
	width: 230px;
	padding: 14px 16px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.qx-xp {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 12px;
	background: var(--qx-amber);
	color: var(--qx-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
}

.qx-montage__mission-text {
	font-size: 13px;
	line-height: 1.35;
	color: #3A3F4B;
}

.qx-montage__mission-text b {
	color: var(--qx-navy);
}

.qx-qr {
	flex: none;
}

/* ---------- mission card --------------------------------------------- */

.qx-mission__head {
	padding: 20px 22px;
	border-bottom: 1px solid var(--qx-border);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
}

.qx-mission__title {
	font-size: 24px;
	line-height: 1.2;
	color: var(--qx-navy);
}

.qx-statpair {
	display: flex;
	gap: 8px;
}

.qx-stat {
	border: 1px solid var(--qx-border);
	border-radius: 10px;
	padding: 6px 12px;
	text-align: center;
}

.qx-stat__value {
	display: block;
	font-weight: 700;
	color: var(--qx-navy);
}

.qx-stat__label {
	font-size: 9.5px;
	letter-spacing: .1em;
	color: var(--qx-text-subtle);
}

.qx-mission__body {
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.qx-cardrow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qx-dragcard {
	border: 1px solid var(--qx-border);
	background: var(--qx-surface);
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 13.5px;
	line-height: 1.4;
}

.qx-dragcard--active {
	border: 2px solid var(--qx-teal);
	background: #fff;
	box-shadow: 0 4px 14px -6px rgba(8, 126, 139, .5);
}

.qx-buckets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.qx-bucket {
	border: 2px dashed var(--qx-border);
	border-radius: 14px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 150px;
}

.qx-bucket--open {
	border-color: var(--qx-teal);
	background: var(--qx-tint-teal-soft);
}

.qx-bucket__title {
	font-size: 18px;
	color: var(--qx-navy);
}

.qx-mission__foot {
	font-size: 12.5px;
	color: var(--qx-text-subtle);
}

/* ---------- TQB card -------------------------------------------------- */

.qx-tqb {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.qx-tqb__question {
	font-size: 21px;
	color: var(--qx-navy);
	line-height: 1.35;
}

.qx-scale {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.qx-scale__item {
	border: 1px solid var(--qx-border);
	border-radius: 10px;
	padding: 9px;
	text-align: center;
	font-size: 13px;
	line-height: 1.3;
}

.qx-scale__item--on {
	background: var(--qx-navy);
	border-color: var(--qx-navy);
	color: #fff;
}

.qx-callout {
	border-radius: 14px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.qx-callout--teal {
	background: var(--qx-tint-teal-soft);
	border: 1px solid #CFE9E4;
}

.qx-callout__body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--qx-text);
}

.qx-callout__cta {
	font-size: 13px;
	font-weight: 600;
	color: var(--qx-navy);
}

/* ---------- peer review card ----------------------------------------- */

.qx-peer {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.qx-peer__quote {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--qx-text);
}

.qx-rubric {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.qx-rubric__item {
	border: 1px solid var(--qx-border);
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 13px;
}

.qx-rubric__item--on {
	border: 2px solid var(--qx-teal);
	background: var(--qx-tint-teal-soft);
	padding: 8px 11px;
	font-weight: 700;
	color: var(--qx-navy);
}

.qx-note {
	font-size: 13px;
	line-height: 1.5;
	color: #3A3F4B;
	background: var(--qx-surface);
	border-radius: 10px;
	padding: 10px 12px;
}

.qx-note b {
	color: var(--qx-navy);
}

/* ---------- Karya portfolio ------------------------------------------ */

.qx-karya {
	border-color: rgba(255, 255, 255, .1);
}

.qx-karya__head {
	background: linear-gradient(160deg, #243058, #141B2E);
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.qx-karya__name {
	font-size: 26px;
	line-height: 1.2;
	color: #fff;
}

.qx-karya__role {
	font-size: 12.5px;
	color: var(--qx-on-dark-muted);
}

.qx-karya__avatar {
	width: 70px;
	height: 70px;
	flex: none;
	border-radius: 16px;
	background: linear-gradient(135deg, #087E8B, #1C2541);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	border: 2px solid rgba(93, 217, 193, .4);
}

.qx-karya__body {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
}

.qx-karya__growth-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--qx-navy);
}

.qx-growth {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.qx-growth__head {
	font-size: 12.5px;
	color: var(--qx-text);
}

.qx-growth__delta {
	color: var(--qx-success);
	font-weight: 700;
}

.qx-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 6px;
}

.qx-tile {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.qx-tile--video {
	background: repeating-linear-gradient(45deg, #1C2541 0 12px, #223055 12px 24px);
	color: #fff;
}

.qx-tile--amber {
	background: var(--qx-tint-amber);
	color: var(--qx-gold-text);
}

.qx-tile--teal {
	background: var(--qx-tint-teal);
	color: var(--qx-teal);
}

/* ---------- Ledger dashboard ----------------------------------------- */

.qx-ledger {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.qx-ledger__title {
	font-size: 20px;
	line-height: 1.25;
	color: var(--qx-navy);
}

.qx-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.qx-kpi {
	background: var(--qx-surface);
	border-radius: 12px;
	padding: 12px;
}

.qx-kpi__value {
	display: block;
	font-size: 24px;
	color: var(--qx-navy);
}

.qx-kpi__label {
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--qx-text-subtle);
}

.qx-levels {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.qx-levels__title {
	font-size: 12px;
	font-weight: 700;
	color: var(--qx-navy);
}

.qx-levels__row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	font-size: 12.5px;
}

.qx-stackbar {
	display: flex;
	height: 13px;
	border-radius: 4px;
	overflow: hidden;
}

.qx-stackbar__seg {
	display: block;
}

.qx-stackbar__seg--exposure {
	background: #9AA5B8;
}

.qx-stackbar__seg--integration {
	background: var(--qx-amber);
}

.qx-stackbar__seg--transformation {
	background: var(--qx-teal);
}

.qx-legend {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: var(--qx-text-subtle);
	margin-top: 2px;
}

.qx-legend__item::before {
	content: "\25AA";
	margin-right: 4px;
}

.qx-legend__item--integration {
	color: #B7791F;
}

.qx-legend__item--transformation {
	color: var(--qx-teal);
}

.qx-mailnote {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--qx-tint-amber);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: #6E5214;
}

.qx-mailnote svg {
	flex: none;
}

/* ---------- certificate ---------------------------------------------- */

.qx-certwrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.qx-cert {
	background: #fff;
	border: 2px solid var(--qx-navy);
	border-radius: 18px;
	padding: 30px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px;
	gap: 20px;
	align-items: center;
	box-shadow: var(--qx-shadow-lg);
}

.qx-cert__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.qx-cert__title {
	font-size: 22px;
	line-height: 1.25;
	color: var(--qx-navy);
}

.qx-cert__awarded {
	font-size: 13.5px;
	color: var(--qx-text-muted);
}

.qx-cert__code {
	font-size: 12px;
	color: var(--qx-navy);
	margin-top: 4px;
}

.qx-verify {
	background: #fff;
	border: 1px solid var(--qx-border);
	border-radius: 14px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--qx-text);
	text-decoration: none;
}

a.qx-verify:hover {
	border-color: var(--qx-teal);
	color: var(--qx-text);
}

.qx-verify b {
	color: var(--qx-navy);
}

.qx-verify__note {
	color: var(--qx-text-subtle);
}

.qx-verify__tick {
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: var(--qx-tint-green);
	color: var(--qx-success);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- course studio -------------------------------------------- */

.qx-studio {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.qx-studio__title {
	font-size: 21px;
	line-height: 1.25;
	color: var(--qx-navy);
}

.qx-modules {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.qx-module {
	border: 1px solid var(--qx-border);
	border-radius: 12px;
	padding: 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--qx-text-muted);
}

.qx-module b {
	color: var(--qx-navy);
}

.qx-checklist {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13px;
	color: var(--qx-text);
}

.qx-checkrow {
	display: flex;
	gap: 8px;
	align-items: center;
}

.qx-checkbox {
	width: 16px;
	height: 16px;
	flex: none;
	border-radius: 4px;
	border: 2px solid var(--qx-border);
}

.qx-checkbox--on {
	background: var(--qx-success);
	border-color: var(--qx-success);
}

/* ---------- responsive ------------------------------------------------
   The montage is absolutely positioned on the desktop layout; at Elementor's
   tablet breakpoint (1024px), where the hero stacks to one column, it
   unstacks into a plain column so the cards stop overlapping.
   --------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.qx-montage__board {
		right: 0;
	}

	.qx-montage__cert {
		width: 220px;
	}

	.qx-montage__mission {
		left: 12px;
		width: 200px;
	}
}

@media (max-width: 1024px) {
	.qx-montage {
		min-height: 0;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.qx-montage__board,
	.qx-montage__cert,
	.qx-montage__mission {
		position: static;
		inset: auto;
		width: auto;
	}

	.qx-montage__mission {
		align-self: flex-start;
		max-width: 260px;
	}

	.qx-montage__cert {
		align-self: flex-end;
		max-width: 280px;
	}

	.qx-board__top {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	.qx-board__meta {
		align-items: center;
	}

	.qx-pillrow {
		justify-content: center;
	}

	.qx-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qx-scale {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.qx-buckets,
	.qx-rubric,
	.qx-modules {
		grid-template-columns: minmax(0, 1fr);
	}

	.qx-cert {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
		padding: 24px;
	}

	.qx-levels__row {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.qx-mission__head,
	.qx-mission__body,
	.qx-tqb,
	.qx-peer,
	.qx-ledger,
	.qx-studio,
	.qx-karya__body {
		padding-left: 18px;
		padding-right: 18px;
	}
}
