/* MusicJet tools added in 0.5.0: CTA cards, name checker, split sheet, split calculator, release checklist.
   Builds on calculator.css (variables, form fields, buttons). */

.mjt-cta,
.mjt-tool {
	--mjt-navy: var(--e-global-color-primary, #1c244b);
	--mjt-navy-hover: #2a3566;
	--mjt-text: var(--e-global-color-text, #324a6d);
	--mjt-accent: var(--e-global-color-accent, #467ff7);
	--mjt-soft: var(--e-global-color-secondary, #f3f5f8);
	--mjt-page: #f9fafd;
	--mjt-line: #c8d5dc;
	--mjt-radius: 12px;
}

/* CTA card */

.mjt-cta {
	margin: 32px 0;
	padding: 20px 22px;
	border-radius: var(--mjt-radius);
	background: var(--mjt-soft);
	border-left: 4px solid var(--mjt-accent);
	font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
	color: var(--mjt-text);
}

.mjt-cta p {
	margin: 0 0 6px;
}

.mjt-cta__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mjt-accent);
}

.mjt-cta__title {
	font-size: 20px;
	font-weight: 600;
	color: var(--mjt-navy);
	line-height: 1.3;
}

.mjt-cta__text {
	font-size: 15px;
	line-height: 1.5;
}

.mjt-cta__button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin-top: 10px;
	padding: 14px 32px;
	border-radius: 100px;
	background: var(--mjt-navy);
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none !important;
}

.mjt-cta__button:hover {
	background: var(--mjt-navy-hover);
}

/* Shared bits */

.mjt-tool textarea,
.mjt-tool input[type="text"],
.mjt-tool input[type="date"] {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	font: inherit;
	color: var(--mjt-navy);
	background: #fff;
	border: 1px solid var(--mjt-line);
	border-radius: 8px;
}

.mjt-sheet__total {
	margin: 0;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}

.mjt-sheet__total.is-good {
	background: #e3f6e8;
	color: #17643a;
}

.mjt-sheet__total.is-warn {
	background: #fff4dc;
	color: #7a5300;
}

.mjt-sheet__total.is-bad {
	background: #fde6e6;
	color: #9b1c1c;
}

.mjt-sheet__remove {
	align-self: end;
	min-height: 36px;
	padding: 4px 12px;
	font: inherit;
	font-size: 13px;
	color: var(--mjt-navy);
	background: transparent;
	border: 1px solid var(--mjt-line);
	border-radius: 8px;
	cursor: pointer;
}

/* Name checker */

.mjt-checker__form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--mjt-navy);
}

.mjt-checker__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mjt-checker__row input {
	flex: 1 1 240px;
	font-size: 18px;
}

.mjt-checker__result {
	margin-top: 20px;
}

.mjt-checker__card {
	padding: 20px;
	border: 1px solid var(--mjt-line);
	border-radius: var(--mjt-radius);
	background: #fff;
}

.mjt-checker__name {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: var(--mjt-navy);
}

.mjt-checker__links p,
.mjt-checker__next {
	margin: 12px 0 0;
	font-size: 15px;
}

.mjt-checker__error {
	color: #9b1c1c;
}

.mjt-tool .mjt-name__checks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mjt-tool .mjt-name__check {
	position: relative;
	padding: 4px 0 4px 26px;
}

.mjt-tool .mjt-name__check::before {
	position: absolute;
	left: 0;
	top: 4px;
	font-weight: 700;
}

.mjt-tool .mjt-name__check.is-good::before {
	content: "✓";
	color: #17643a;
}

.mjt-tool .mjt-name__check.is-bad::before {
	content: "✗";
	color: #9b1c1c;
}

.mjt-tool .mjt-name__check.is-warn::before {
	content: "!";
	color: #7a5300;
}

.mjt-tool .mjt-name__check.is-unknown::before {
	content: "?";
	color: var(--mjt-text);
}

/* Split sheet */

.mjt-sheet__writer {
	position: relative;
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var(--mjt-line);
	border-radius: var(--mjt-radius);
	background: #fff;
}

.mjt-sheet__writer legend {
	padding: 0 6px;
	font-weight: 600;
	color: var(--mjt-navy);
}

.mjt-sheet__writer > .mjt-sheet__remove {
	position: absolute;
	top: 8px;
	right: 12px;
}

.mjt-sheet__wide {
	grid-column: 1 / -1;
}

.mjt-sheet__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.mjt-sheet__owner {
	align-items: end;
}

.mjt-sheet__print {
	display: none;
}

@media print {
	body.mjt-printing-sheet * {
		visibility: hidden !important;
	}

	body.mjt-printing-sheet .mjt-sheet__print,
	body.mjt-printing-sheet .mjt-sheet__print * {
		visibility: visible !important;
	}

	body.mjt-printing-sheet .mjt-sheet__print {
		display: block;
		position: absolute;
		inset: 0 auto auto 0;
		width: 100%;
		font: 11pt/1.4 Arial, sans-serif;
		color: #000;
	}

	.mjt-sheet__print h2 {
		font-size: 20pt;
		margin: 0 0 10pt;
	}

	.mjt-sheet__print h3 {
		font-size: 12pt;
		margin: 14pt 0 6pt;
	}

	.mjt-sheet__print table {
		width: 100%;
		border-collapse: collapse;
	}

	.mjt-sheet__print th,
	.mjt-sheet__print td {
		border: 1px solid #000;
		padding: 6pt;
		text-align: left;
		vertical-align: top;
	}

	.mjt-sheet__meta th {
		width: 30%;
	}

	.mjt-sheet__sign {
		width: 26%;
		height: 34pt;
	}

	.mjt-sheet__agree,
	.mjt-sheet__foot {
		margin-top: 12pt;
		font-size: 9pt;
	}

	/* Checklist print: just the plan. */
	.mjt-plan .mjt-calc__form,
	.mjt-plan .mjt-res__actions {
		display: none !important;
	}
}

/* Split calculator */

.mjt-split__people {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 10px;
}

.mjt-split__people th {
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	color: var(--mjt-navy);
	padding: 0 4px 4px;
}

.mjt-split__people td {
	padding: 3px 4px;
}

.mjt-split__people input {
	width: 100%;
	min-width: 0;
	min-height: 40px;
	padding: 6px 8px;
}

.mjt-split__people td:nth-child(2),
.mjt-split__people td:nth-child(3) {
	width: 24%;
}

.mjt-split__bars {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.mjt-split__bars li {
	display: grid;
	grid-template-columns: minmax(70px, 120px) 1fr auto;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.mjt-split__who {
	font-weight: 600;
	color: var(--mjt-navy);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Release checklist */

.mjt-plan__steps {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.mjt-plan__step {
	padding: 12px 0;
	border-bottom: 1px solid var(--mjt-soft);
}

.mjt-plan__step label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	cursor: pointer;
}

.mjt-plan__step input {
	width: 20px;
	height: 20px;
	accent-color: var(--mjt-navy);
	transform: translateY(3px);
}

.mjt-plan__date {
	min-width: 110px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mjt-accent);
}

.mjt-plan__title {
	font-weight: 600;
	color: var(--mjt-navy);
}

.mjt-plan__step p {
	margin: 4px 0 0 32px;
	font-size: 14px;
}

.mjt-plan__step.is-done .mjt-plan__title {
	text-decoration: line-through;
	opacity: 0.6;
}

.mjt-plan__step.is-late .mjt-plan__date {
	color: #9b1c1c;
}
