/* MTT Search - mobile first. All selectors are prefixed .mtts to avoid theme clashes. */
.mtts, .mtts * { box-sizing: border-box; }
.mtts {
	--navy: #0b2545; --navy2: #13406b; --teal: #0d6c70; --teal-d: #0a5457;
	--gold: #f5b942; --ink: #1b2733; --muted: #5a6b7c; --line: #e3eaf1; --soft: #f5f8fb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink); line-height: 1.5; width: 100%; max-width: 100%; min-width: 0;
}
.mtts button, .mtts input { font-family: inherit; }

.mtts-hero {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 62%, #0f5a6e 120%);
	border-radius: 18px; padding: 26px 14px 18px; color: #fff;
	box-shadow: 0 10px 30px rgba(11, 37, 69, .22);
}
.mtts-eyebrow {
	margin: 0 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--gold); text-align: center;
}
.mtts-h {
	margin: 0 0 8px; padding: 0; color: #fff; text-align: center; font-weight: 800;
	font-size: clamp(1.55rem, 6.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em;
}
.mtts-h span { color: var(--gold); }
.mtts-sub {
	margin: 0 auto 18px; max-width: 640px; text-align: center; color: #d6e3f0;
	font-size: clamp(.95rem, 3.8vw, 1.08rem);
}

/* search bar */
.mtts-bar {
	display: flex; align-items: center; gap: 6px; margin: 0 auto; max-width: 720px;
	background: #fff; border-radius: 14px; padding: 4px 6px 4px 14px; min-height: 58px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border: 2px solid transparent;
}
.mtts-bar:focus-within { border-color: var(--gold); }
.mtts-ico { flex: none; color: var(--muted); }
.mtts .mtts-input {
	flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
	font-size: 17px; /* 16px+ stops iOS zooming into the field */ color: var(--ink);
	padding: 0 4px; box-shadow: none; margin: 0; -webkit-appearance: none; appearance: none;
}
.mtts .mtts-input::placeholder { color: #8493a3; opacity: 1; }
.mtts .mtts-input::-webkit-search-cancel-button { display: none; }
.mtts .mtts-clear {
	flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft);
	color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.mtts .mtts-clear:hover { background: var(--line); }

/* chips */
.mtts-chips {
	display: flex; align-items: center; gap: 8px; margin: 14px auto 0; max-width: 720px;
	overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.mtts-chips::-webkit-scrollbar { display: none; }
.mtts-chips-l { flex: none; font-size: .82rem; color: #b9cde0; }
.mtts .mtts-chip {
	flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08);
	color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.mtts .mtts-chip:hover, .mtts .mtts-chip:focus-visible { background: rgba(255, 255, 255, .2); }

.mtts-status { min-height: 20px; margin: 10px auto 0; max-width: 720px; font-size: .86rem; color: #cfe0f0; text-align: center; }

/* results */
.mtts-res {
	margin: 10px auto 0; max-width: 720px; background: #fff; color: var(--ink);
	border-radius: 14px; overflow: hidden; text-align: left;
}
.mtts-res[hidden], .mtts-more[hidden], .mtts-clear[hidden] { display: none !important; }
.mtts-facets {
	display: flex; gap: 8px; padding: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--soft);
}
.mtts-facets::-webkit-scrollbar { display: none; }
.mtts .mtts-facet {
	flex: none; min-height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
	border: 1px solid #c9d6e3; background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.mtts .mtts-facet b { font-weight: 700; color: var(--muted); margin-left: 4px; }
.mtts .mtts-facet[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.mtts .mtts-facet[aria-pressed="true"] b { color: #d5efef; }

.mtts-item { padding: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mtts-item:last-child { border-bottom: 0; }
.mtts-t {
	color: var(--navy); font-weight: 600; font-size: 1rem; line-height: 1.45; text-decoration: none;
}
.mtts-t:hover { text-decoration: underline; }
.mtts-t mark { background: #fff0c2; color: inherit; border-radius: 3px; padding: 0 1px; }
.mtts-tag {
	display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
	background: #e7f3f3; color: var(--teal-d); font-size: .76rem; font-weight: 700;
}
.mtts-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mtts a.mtts-b {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px;
	border: 1.5px solid; font-weight: 700; font-size: .82rem; white-space: nowrap; text-decoration: none; transition: .15s;
}
.mtts a.mtts-b-free, .mtts a.mtts-b-size { background: #15803d; border-color: #15803d; color: #fff; }
.mtts a.mtts-b-free:hover, .mtts a.mtts-b-size:hover { background: #166534; color: #fff; }
.mtts a.mtts-b-feas { background: #fff; border-color: #a52a32; color: #a52a32; }
.mtts a.mtts-b-feas:hover { background: #a52a32; color: #fff; }
.mtts a.mtts-b-stud { background: #fff; border-color: #177f75; color: #177f75; }
.mtts a.mtts-b-stud:hover { background: #177f75; color: #fff; }
.mtts a.mtts-b-prot { background: #fff; border-color: #6940a5; color: #6940a5; }
.mtts a.mtts-b-prot:hover { background: #6940a5; color: #fff; }
.mtts a.mtts-cta2 {
	display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px;
	border-radius: 10px; background: var(--teal); color: #fff; font-weight: 700; font-size: .95rem;
	text-decoration: none; text-align: center;
}
.mtts a.mtts-cta2:hover { background: var(--teal-d); color: #fff; }

.mtts .mtts-more {
	display: block; width: calc(100% - 28px); margin: 12px 14px; min-height: 48px; border-radius: 10px;
	border: 1.5px solid var(--navy2); background: #fff; color: var(--navy); font-weight: 700; font-size: .95rem; cursor: pointer;
}
.mtts .mtts-more:hover { background: var(--soft); }
.mtts-foot { padding: 4px 14px 16px; }
.mtts-note { margin: 8px 0 12px; font-size: .86rem; color: var(--muted); }
.mtts-card {
	margin-top: 6px; padding: 14px; border-radius: 12px; background: var(--soft);
	border: 1px dashed #b8c8d8; display: flex; flex-direction: column; gap: 10px;
}
.mtts-card p { margin: 0; font-size: .95rem; }
.mtts-card strong { color: var(--navy); }
.mtts-empty { padding: 18px 14px 4px; }
.mtts-empty p { margin: 0 0 4px; }
.mtts-empty .big { font-weight: 700; font-size: 1.05rem; color: var(--navy); }

@media (min-width: 640px) {
	.mtts-hero { padding: 48px 28px 28px; border-radius: 22px; }
	.mtts-bar { min-height: 64px; padding-left: 18px; }
	.mtts .mtts-input { font-size: 18px; height: 56px; }
	.mtts-item { padding: 16px 18px; }
	.mtts a.mtts-b { min-height: 36px; }
	.mtts-foot { padding: 4px 18px 18px; }
	.mtts .mtts-more { width: calc(100% - 36px); margin: 14px 18px; }
}
@media (prefers-reduced-motion: no-preference) {
	.mtts-item { animation: mttsIn .18s ease-out; }
	@keyframes mttsIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Layout guard: scroll rows must not widen the widget inside flex/Elementor parents */
.mtts-chips, .mtts-facets { width: 0; min-width: 100%; max-width: 100%; }
.mtts-hero, .mtts-bar, .mtts-res { max-width: 100%; min-width: 0; }
