/* ====================================================================
   MTP Transfer Mapper styles (v05.14.26.035)
   All rules scoped to .mtp-tm-wrap so the styles do not leak into
   surrounding theme content.
   ==================================================================== */

.mtp-tm-wrap {
	max-width: 1100px;
	margin: 24px auto;
	font-family: 'Nunito', system-ui, sans-serif;
	color: #3d2e1a;
	line-height: 1.5;
}

.mtp-tm-heading {
	font-family: 'Caveat', cursive;
	font-size: 36px;
	line-height: 1.05;
	margin: 0 0 6px;
	color: #3d2e1a;
}

.mtp-tm-desc {
	margin: 0 0 18px;
	font-size: 13px;
	color: #5a4a36;
}

.mtp-tm-empty {
	max-width: 720px;
	margin: 24px auto;
	padding: 16px 20px;
	background: #faf7ee;
	border-left: 4px solid #c9a84c;
	border-radius: 6px;
	font-family: 'Nunito', system-ui, sans-serif;
	color: #3d2e1a;
	font-size: 14px;
	line-height: 1.5;
}

.mtp-tm-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #d4cfbf;
	border-radius: 8px;
	overflow: hidden;
	font-size: 13.5px;
}

.mtp-tm-table thead th {
	background: #3d2e1a;
	color: #c9a84c;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 10px 14px;
	text-align: left;
}

.mtp-tm-table tbody td {
	padding: 12px 14px;
	border-top: 1px solid #ebe5d6;
	vertical-align: middle;
}

.mtp-tm-table tbody tr:hover {
	background: #faf6ee;
}

.mtp-tm-code {
	display: inline-block;
	font-family: 'Cascadia Code', 'JetBrains Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	background: #f0eadd;
	color: #3d2e1a;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 8px;
}

.mtp-tm-name {
	color: #3d2e1a;
}

.mtp-tm-score-col {
	width: 130px;
	text-align: center;
}

.mtp-tm-score-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.5px;
}
.mtp-tm-score-strong {
	background: #d4edd4;
	color: #1a4d1a;
}
.mtp-tm-score-partial {
	background: #fdf0d4;
	color: #6b4d00;
}
.mtp-tm-score-weak {
	background: #f3e0e0;
	color: #6b1818;
}

.mtp-tm-override-mark {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	background: #0077C8;
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 3px;
}

.mtp-tm-disclaimer {
	margin: 14px 0 0;
	font-size: 11.5px;
	color: #8a7a64;
	font-style: italic;
}

@media (max-width: 540px) {
	.mtp-tm-heading { font-size: 28px; }
	.mtp-tm-table { font-size: 12px; }
	.mtp-tm-table thead th { padding: 8px 10px; font-size: 10px; }
	.mtp-tm-table tbody td { padding: 10px; }
	.mtp-tm-code { font-size: 11px; padding: 1px 6px; margin-right: 6px; }
	.mtp-tm-score-col { width: 90px; }
	.mtp-tm-score-badge { padding: 4px 8px; font-size: 11px; }
}

@media (max-width: 380px) {
	.mtp-tm-heading { font-size: 24px; }
	.mtp-tm-desc { font-size: 12px; }
	.mtp-tm-table { font-size: 11px; }
	.mtp-tm-table thead th { padding: 6px 8px; font-size: 9.5px; }
	.mtp-tm-table tbody td { padding: 8px; }
	.mtp-tm-code { display: block; margin-bottom: 3px; margin-right: 0; }
	.mtp-tm-name { display: block; font-size: 11.5px; }
}

/* High-contrast a11y mode honored */
body.mtp-a11y-hc .mtp-tm-table {
	border: 2px solid #000;
}
body.mtp-a11y-hc .mtp-tm-table thead th {
	background: #000;
	color: #ffeb3b;
}
body.mtp-a11y-hc .mtp-tm-table tbody td {
	border-top: 1px solid #000;
	color: #000;
}
body.mtp-a11y-hc .mtp-tm-score-badge {
	border: 2px solid #000;
}

/* ====================================================================
   v05.14.26.036: Interactive Compare widget styles
   ([mtp_transfer_compare] shortcode)
   ==================================================================== */

.mtp-tc-wrap {
	max-width: 1100px;
	margin: 24px auto;
	font-family: 'Nunito', system-ui, sans-serif;
	color: #3d2e1a;
	line-height: 1.5;
	background: #fff;
	border: 1px solid #d4cfbf;
	border-left: 4px solid #c9a84c;
	border-radius: 10px;
	padding: 24px 28px 28px;
}

.mtp-tc-heading {
	font-family: 'Caveat', cursive;
	font-size: 38px;
	line-height: 1.05;
	margin: 0 0 6px;
	color: #3d2e1a;
}

.mtp-tc-desc {
	margin: 0 0 24px;
	font-size: 13.5px;
	color: #5a4a36;
}

.mtp-tc-step {
	margin: 20px 0;
}

.mtp-tc-step-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: start;
}

.mtp-tc-col { min-width: 0; }

.mtp-tc-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #6b5a44;
	margin-bottom: 6px;
}

.mtp-tc-picker {
	position: relative;
}

/* MTP brand "pill" shell:
   - Dark olive-black backdrop for the row
   - Gold outline around the input
   - Gold magnifier icon + gold uppercase text */
.mtp-tc-picker-shell {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #1a1c12;
	border-radius: 10px;
	padding: 10px 14px;
	min-height: 78px;
}

/* Logo slot: visible only after a school is picked. Square aspect,
   white-on-dark for institutional shields. */
.mtp-tc-picker-logo {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 6px;
	overflow: hidden;
}

.mtp-tc-picker-logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.mtp-tc-picker-logo-initials {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2e3020;
	color: #c9a84c;
	font-family: 'Caveat', cursive;
	font-size: 32px;
	font-weight: 700;
	border-radius: 6px;
	letter-spacing: 1px;
}

.mtp-tc-picker-input-wrap {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 1px solid #c9a84c;
	border-radius: 999px;
	padding: 12px 18px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mtp-tc-picker-input-wrap:focus-within {
	border-color: #ffffff;
	box-shadow: 0 0 0 1px #ffffff;
}

.mtp-tc-picker-icon {
	flex-shrink: 0;
	color: #c9a84c;
	font-size: 14px;
	line-height: 1;
}

.mtp-tc-picker-input {
	flex: 1 1 auto;
	background: transparent;
	border: 0;
	outline: 0;
	padding: 0;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: #c9a84c;
	text-transform: uppercase;
	min-width: 0;
}

.mtp-tc-picker-input::placeholder {
	color: rgba(201, 168, 76, 0.55);
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.mtp-tc-picker-input.is-selected {
	cursor: default;
	color: #c9a84c;
}

/* X clear button , gold ring on dark, hover toward white. */
.mtp-tc-clear-btn {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 1px solid #c9a84c;
	border-radius: 50%;
	background: transparent;
	color: #c9a84c;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, color 0.15s;
}
.mtp-tc-clear-btn:hover {
	border-color: #ffffff;
	color: #ffffff;
}

.mtp-tc-picker-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 320px;
	overflow-y: auto;
	background: #1a1c12;
	border: 1px solid #c9a84c;
	border-radius: 8px;
	z-index: 40;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	padding: 4px;
}

.mtp-tc-picker-result {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	color: #f0e6cf;
	transition: background 0.1s;
}
.mtp-tc-picker-result + .mtp-tc-picker-result { margin-top: 2px; }
.mtp-tc-picker-result:hover,
.mtp-tc-picker-result.is-kbd {
	background: #2e3020;
}

/* Logo thumbnail in dropdown row (schools only). */
.mtp-tc-pr-thumb {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 4px;
	overflow: hidden;
}
.mtp-tc-pr-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.mtp-tc-pr-thumb-initials {
	width: 100%;
	height: 100%;
	background: #2e3020;
	color: #c9a84c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Caveat', cursive;
	font-size: 18px;
	font-weight: 700;
	border-radius: 4px;
}

.mtp-tc-pr-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mtp-tc-pr-primary {
	font-size: 13.5px;
	font-weight: 800;
	color: #c9a84c;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.mtp-tc-pr-secondary {
	font-size: 11.5px;
	color: #a39879;
}

.mtp-tc-picker-loading,
.mtp-tc-picker-empty {
	padding: 14px 16px;
	font-size: 12px;
	color: #a39879;
	font-style: italic;
}

/* ==================== Compare panel ==================== */

.mtp-tc-score-card {
	text-align: center;
	background: linear-gradient(135deg, #faf6ee 0%, #fff 100%);
	border: 1px solid #d4cfbf;
	border-radius: 10px;
	padding: 22px 24px 26px;
	margin-bottom: 18px;
}

.mtp-tc-score-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #6b5a44;
	margin-bottom: 12px;
}

.mtp-tc-score-badge {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: 'Caveat', cursive;
	font-size: 48px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 1px;
}

.mtp-tc-score-badge.is-strong  { background: #d4edd4; color: #1a4d1a; }
.mtp-tc-score-badge.is-partial { background: #fdf0d4; color: #6b4d00; }
.mtp-tc-score-badge.is-weak    { background: #f3e0e0; color: #6b1818; }

.mtp-tc-score-pct {
	margin-top: 8px;
	font-size: 13px;
	color: #6b5a44;
	font-weight: 700;
}

.mtp-tc-score-verdict {
	margin-top: 6px;
	font-size: 14.5px;
	font-weight: 700;
	color: #3d2e1a;
}

/* Breakdown bars. */
.mtp-tc-breakdown {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	background: #fffdf5;
	border: 1px solid #ebe5d6;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 18px;
}

.mtp-tc-brk-row {
	display: grid;
	grid-template-columns: 140px 1fr 50px;
	align-items: center;
	gap: 10px;
	font-size: 11.5px;
}
.mtp-tc-brk-label { color: #5a4a36; font-weight: 600; }
.mtp-tc-brk-bar {
	height: 6px;
	background: #ebe5d6;
	border-radius: 3px;
	overflow: hidden;
}
.mtp-tc-brk-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #c9a84c 0%, #e0c46a 100%);
	border-radius: 3px;
	transition: width 0.4s ease-out;
}
.mtp-tc-brk-val { text-align: right; font-weight: 700; color: #3d2e1a; font-variant-numeric: tabular-nums; }

/* Course cards. */
.mtp-tc-course-card {
	background: #fff;
	border: 1px solid #d4cfbf;
	border-top: 4px solid #c9a84c;
	border-radius: 8px;
	padding: 16px 18px 18px;
}

.mtp-tc-course-card header {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ebe5d6;
}

.mtp-tc-course-code {
	display: inline-block;
	font-family: 'Cascadia Code', 'JetBrains Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	background: #f0eadd;
	color: #3d2e1a;
	padding: 2px 8px;
	border-radius: 4px;
}

.mtp-tc-course-name {
	margin: 6px 0 4px;
	font-size: 16px;
	font-weight: 800;
	color: #3d2e1a;
	line-height: 1.25;
}

.mtp-tc-course-meta {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	font-size: 11.5px;
	color: #5a4a36;
}

.mtp-tc-pill {
	background: #faf6ee;
	border: 1px solid #ebe5d6;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	color: #6b5a44;
}

.mtp-tc-course-desc {
	font-size: 13px;
	color: #3d2e1a;
	line-height: 1.55;
	white-space: pre-wrap;
}

.mtp-tc-disclaimer {
	margin: 18px 0 0;
	font-size: 11.5px;
	color: #8a7a64;
	font-style: italic;
	text-align: center;
}

.mtp-tc-actions {
	margin-top: 16px;
	text-align: center;
}

.mtp-tc-btn-reset {
	background: #fff;
	border: 1px solid #c9a84c;
	color: #3d2e1a;
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.15s;
}
.mtp-tc-btn-reset:hover {
	background: #c9a84c;
	color: #fff;
}

.mtp-tc-status {
	margin-top: 12px;
	min-height: 16px;
	font-size: 12px;
	color: #5a4a36;
}
.mtp-tc-status.is-error { color: #8b0000; }

/* Phone responsive. */
@media (max-width: 720px) {
	.mtp-tc-step-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 540px) {
	.mtp-tc-wrap { padding: 18px 16px; }
	.mtp-tc-heading { font-size: 30px; }
	.mtp-tc-score-badge { font-size: 38px; padding: 12px 22px; }
	.mtp-tc-brk-row { grid-template-columns: 100px 1fr 40px; font-size: 11px; }
	.mtp-tc-picker-shell { padding: 8px 10px; gap: 10px; min-height: 64px; }
	.mtp-tc-picker-logo { width: 48px; height: 48px; }
	.mtp-tc-picker-input-wrap { padding: 9px 14px; }
	.mtp-tc-picker-input { font-size: 12px; letter-spacing: 0.6px; }
	.mtp-tc-picker-input::placeholder { letter-spacing: 0.6px; }
}

@media (max-width: 380px) {
	.mtp-tc-heading { font-size: 26px; }
	.mtp-tc-score-badge { font-size: 32px; padding: 10px 18px; }
	.mtp-tc-brk-row { grid-template-columns: 90px 1fr 38px; }
	.mtp-tc-course-name { font-size: 15px; }
	.mtp-tc-course-desc { font-size: 12.5px; }
	.mtp-tc-picker-shell { padding: 6px 8px; gap: 8px; min-height: 56px; }
	.mtp-tc-picker-logo { width: 40px; height: 40px; }
	.mtp-tc-picker-input-wrap { padding: 7px 12px; }
	.mtp-tc-picker-input { font-size: 11px; letter-spacing: 0.4px; }
	.mtp-tc-picker-input::placeholder { letter-spacing: 0.4px; }
}

/* High-contrast a11y. */
body.mtp-a11y-hc .mtp-tc-wrap {
	background: #fff !important;
	border-color: #000 !important;
	border-width: 2px !important;
	color: #000 !important;
}
body.mtp-a11y-hc .mtp-tc-picker-shell {
	background: #000;
	border: 2px solid #ffeb3b;
}
body.mtp-a11y-hc .mtp-tc-picker-input-wrap {
	border: 2px solid #ffeb3b;
}
body.mtp-a11y-hc .mtp-tc-picker-input,
body.mtp-a11y-hc .mtp-tc-picker-icon,
body.mtp-a11y-hc .mtp-tc-clear-btn {
	color: #ffeb3b;
	border-color: #ffeb3b;
}
body.mtp-a11y-hc .mtp-tc-picker-results { background: #000; border: 2px solid #ffeb3b; }
body.mtp-a11y-hc .mtp-tc-picker-result:hover,
body.mtp-a11y-hc .mtp-tc-picker-result.is-kbd { background: #2a2a00; }
body.mtp-a11y-hc .mtp-tc-pr-primary { color: #ffeb3b; }
body.mtp-a11y-hc .mtp-tc-pr-secondary { color: #fff; }
body.mtp-a11y-hc .mtp-tc-score-badge { border: 2px solid #000; }
body.mtp-a11y-hc .mtp-tc-course-card { border: 2px solid #000; }
body.mtp-a11y-hc .mtp-tc-brk-fill { background: #000; }
