/**
 * MLT Agents — Editorial theme (Design A).
 * Editorial rules are scoped under .mlt-editorial so nothing leaks into the
 * theme. The full-width rules below are the one exception: they target the
 * theme's content container, but only on agent pages (body.mlt-agents-fullwidth)
 * and only inside .site-content, so site headers and footers are untouched.
 */

/* Full-width fallback — Astra and common themes. The plugin also sets Astra's
   content layout to "page-builder" via filters; this backs that up and covers
   other themes. */
body.mlt-agents-fullwidth .site-content > .ast-container,
body.mlt-agents-fullwidth .site-content .ast-container,
body.mlt-agents-fullwidth #content > .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	display: block;
}

body.mlt-agents-fullwidth #primary,
body.mlt-agents-fullwidth .site-content #primary,
body.mlt-agents-fullwidth .content-area {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	flex: 1 1 100%;
}

/* Drop the theme sidebar on agent pages. */
body.mlt-agents-fullwidth #secondary,
body.mlt-agents-fullwidth .widget-area {
	display: none;
}

/* Astra sometimes pads the single-post article; zero it so our hero is edge-to-edge. */
body.mlt-agents-fullwidth .ast-article-single,
body.mlt-agents-fullwidth .entry-content,
body.mlt-agents-fullwidth .ast-article-post {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.mlt-editorial {
	--ink: #1c2a30;
	/* --teal: #1f5d5b; */
	--teal: #046bd2;
	/* --teal-d: #164543; */
	--teal-d: #024383;
	/* --gold: #c08a3e; */
	--gold: #ff9e19;
	/* --sand: #f6f1e8; */
	--sand: #eeeeee;
	--ivory: #fbf9f4;
	/* --line: #e7e0d3; */
	--line: #c9c9c9;
	--muted: #7c766c;
	--radius: 14px;

	/* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
	font-family: inherit;
	color: var(--ink);
	line-height: 1.65;
}

.mlt-editorial h1,
.mlt-editorial h2,
.mlt-editorial h3,
.mlt-editorial .mlt-serif {
	/* font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; */
	font-family: inherit;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.2px;
}

.mlt-editorial img {
	display: block;
	max-width: 100%;
}

.mlt-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 28px;
}

.mlt-narrow {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 28px;
}

.mlt-ey {
	text-align: center;
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 10px;
}

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

.mlt-button {
	display: inline-block;
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
	text-decoration: none;
	background: var(--teal);
	color: #fff;
	transition: background 0.18s ease;
}

.mlt-button:hover,
.mlt-button:focus {
	background: var(--teal-d);
	color: #fff;
}

.mlt-button--ghost {
	background: transparent;
	color: var(--teal);
	border: 1.5px solid var(--teal);
}

.mlt-button--ghost:hover,
.mlt-button--ghost:focus {
	background: var(--teal);
	color: #fff;
}

.mlt-button--gold {
	background: var(--gold);
	color: #fff;
}

.mlt-button--gold:hover,
.mlt-button--gold:focus {
	background: #a8762f;
	color: #fff;
}

/* ================= DIRECTORY ================= */

.mlt-agents-archive {
	padding: 0 0 4rem;
}

.mlt-hero {
	position: relative;
	overflow: hidden;
	border-radius: 0 0 var(--radius) var(--radius);
	background: linear-gradient(180deg, #036bd2 0%, #042648 100%);
	color: #fff;
	text-align: center;
	padding: 84px 28px 92px;
}

.mlt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var( --mlt-hero-img, url( 'https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=60' ) );
	background-size: cover;
	background-position: center;
	opacity: 0.20;
}

.mlt-hero__k {
	position: relative;
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #e7cfa5;
	margin: 0 0 14px;
}

.mlt-hero__h {
	position: relative;
	font-size: clamp( 40px, 6vw, 66px );
	margin: 0 0 18px;
	color: #fff;
}

.mlt-hero__sub {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
	color: #e8efe9;
	font-size: 18px;
}

.mlt-filter {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba( 20, 60, 60, 0.10 );
	margin: -40px auto 0;
	position: relative;
	z-index: 5;
	max-width: 940px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px;
	align-items: flex-end;
}

.mlt-filter__f {
	flex: 1;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mlt-filter__f label {
	font-size: 11px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--muted);
	padding-left: 2px;
}

.mlt-filter__f select,
.mlt-filter__f input {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 5px;
	font: inherit;
	background: var(--ivory);
	color: inherit;
}

.mlt-filter__go {
	background:#046bd2;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 13px 26px;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
}

.mlt-count {
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	margin: 34px 0 0;
	letter-spacing: 0.3px;
}

.mlt-agents-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 30px;
	padding: 26px 0 40px;
}

.mlt-agent-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mlt-agent-card:hover {
	transform: translateY( -6px );
	box-shadow: 0 24px 50px rgba( 20, 50, 50, 0.14 );
}

.mlt-agent-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.mlt-agent-card__photo {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--sand);
	overflow: hidden;
}

/* Absolute fill with inset:0 forces the photo to cover the frame even when the
   theme sets `img { height: auto }` (Astra does), so there is no white space. */
.mlt-agent-card__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.mlt-agent-card__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, transparent 55%, rgba( 15, 40, 40, 0.5 ) );
}

.mlt-agent-card__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-weight: 600;
	font-size: 3rem;
	color: #b9b0a0;
	background: var(--sand);
}

.mlt-agent-card__body {
	padding: 20px 22px 24px;
}

.mlt-agent-card__name {
	font-size: 26px;
	margin: 0 0 4px;
}

.mlt-agent-card__title {
	color: var(--gold);
	font-size: 13.5px;
	font-weight: 600;
	margin: 0 0 8px;
	text-transform: capitalize;
}

.mlt-agent-card__meta {
	color: var(--muted);
	font-size: 13px;
	margin: 0 0 6px;
}

.mlt-agent-card__rating {
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 12px;
}

.mlt-stars {
	color: var(--gold);
	letter-spacing: 2px;
}

.mlt-taglist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mlt-tag {
	display: inline-block;
	font-size: 11.5px;
	background: var(--sand);
	color: var(--teal-d);
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--line);
}

.mlt-tag--button {
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, color 0.15s ease;
}

.mlt-tag--button:hover,
.mlt-tag--button:focus-visible {
	background: var(--gold);
	color: #fff;
	border-color: var(--gold);
	outline: none;
}

.mlt-pagination {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 2rem;
}

.mlt-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.mlt-pagination .page-numbers.current {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}

.mlt-empty {
	text-align: center;
	color: var(--muted);
	padding: 3rem 1rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

/* ================= SINGLE AGENT ================= */

.mlt-agent-single {
	padding: 0 0 0;
	background: #f7f7f7;
}

.mlt-phero {
	background: #f1f6fc;
	border-bottom: 1px solid var(--line);
	text-align: center;
	padding: 70px 24px 56px;
}

.mlt-phero__back {
	margin: 0 0 18px;
	font-size: 13px;
}

.mlt-phero__back a {
	color: var(--muted);
	text-decoration: none;
}

.mlt-phero__avatar {
	width: 168px;
	height: 168px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 22px;
	border: 5px solid #fff;
	box-shadow: 0 14px 40px rgba( 0, 0, 0, 0.16 );
}

.mlt-phero__k {
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 600;
	color: var(--gold);
	margin: 0 0 10px;
}

.mlt-phero__name {
	font-size: clamp( 38px, 5vw, 56px );
	margin: 0 0 8px;
}

.mlt-phero__role {
	color: var(--teal);
	font-size: 19px;
	margin: 0 0 14px;
}

.mlt-phero__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 26px;
	display: flex;
	gap: 26px;
	justify-content: center;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 14px;
}

.mlt-phero__meta b {
	color: var(--ink);
}

.mlt-phero__cta {
	display: inline-flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.mlt-phero__social {
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.mlt-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--teal);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.mlt-social-icon:hover,
.mlt-social-icon:focus-visible {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
	transform: translateY( -2px );
	outline: none;
}

.mlt-social-svg {
	width: 19px;
	height: 19px;
	display: block;
}

/* Accessible label hidden visually (standard WP pattern). */
.mlt-agent-single .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.mlt-blk {
	padding: 58px 0;
	border-bottom: 1px solid var(--line);
}

.mlt-blk:first-of-type {
	background: white;
} 

.mlt-blk__h {
	text-align: center;
	font-size: 40px;
	margin: 0 0 30px;
}

.mlt-bio {
	font-size: 18px;
	color: #3a4348;
}

.mlt-bio p {
	margin: 0 0 18px;
}

/* Specializations as alternating feature rows */

.mlt-feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto 36px;
	padding: 0 28px;
}

.mlt-feature:nth-child(even) .mlt-feature__fig {
	order: 2;
}

.mlt-feature--notext {
	grid-template-columns: 1fr;
	max-width: 760px;
}

.mlt-feature__fig {
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	background: #eee center / cover no-repeat;
	box-shadow: 0 18px 44px rgba( 0, 0, 0, 0.14 );
}

.mlt-feature__body h3 {
	font-size: 30px;
	margin: 0 0 12px;
}

.mlt-feature__body p {
	color: #4a5257;
	margin: 0 0 16px;
}

.mlt-link {
	display: inline-block;
	border: 0;
	border-bottom: 2px solid var(--gold);
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--teal);
	text-decoration: none;
	border-radius: 8px;
	padding: 10px 20px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mlt-link:hover,
.mlt-link:focus-visible {
	background: var(--teal-d);
	color: #fff;
	outline: none;
}



.mlt-band {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 780px;
	margin: 0 auto 22px;
}

.mlt-band .mlt-tag {
	font-size: 14px;
	padding: 9px 16px;
	background: #fff;
}

.mlt-subhead {
	text-align: center;
	color: var(--muted);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 26px 0 12px;
}

.mlt-review {
	max-width: 760px;
	margin: 0 auto 22px;
	background: #fff;
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	border-radius: 0 12px 12px 0;
	padding: 24px 28px;
}

.mlt-review__title {
	font-weight: 600;
	margin: 0 0 6px;
}

.mlt-review__q {
	font-family: inherit;
	font-style: italic;
	font-size: 20px;
	line-height: 1.5;
	margin: 0 0 12px;
}

.mlt-review__by {
	color: var(--muted);
	font-size: 13px;
}

/* Contact band */

.mlt-contact-band {
	background: linear-gradient( 180deg, #024383, #214773);
	color: #fff;
	padding: 64px 0;
}

.mlt-contact-band .mlt-ey {
	color: #e7cfa5;
}

.mlt-contact-band .mlt-blk__h {
	color: #fff;
}

.mlt-contact-form {
	max-width: 620px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mlt-contact-form .mlt-full {
	grid-column: 1 / 3;
}

.mlt-contact-form label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.5px;
	margin: 0 0 5px;
	color: #dfeae7;
}

.mlt-contact-form input,
.mlt-contact-form textarea {
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 14px;
	font: inherit;
	box-sizing: border-box;
}

.mlt-contact-form .mlt-submit {
	grid-column: 1 / 3;
	justify-self: center;
}

.mlt-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.mlt-form-status {
	grid-column: 1 / 3;
	text-align: center;
	min-height: 1.3em;
	font-size: 14px;
}

.mlt-form-status.is-error {
	color: #ffd7d0;
}

.mlt-form-status.is-success {
	color: #d6f0e0;
}

/* ---------- Modal ---------- */

body.mlt-modal-open {
	overflow: hidden;
}

.mlt-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mlt-modal[hidden] {
	display: none;
}

.mlt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 15, 30, 30, 0.62 );
}

.mlt-modal__panel {
	position: relative;
	z-index: 1;
	background: #fff;
	max-width: 620px;
	width: 100%;
	max-height: 86vh;
	overflow-y: auto;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.3 );
}

.mlt-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
	border-radius: 8px;
}

.mlt-modal__close:hover,
.mlt-modal__close:focus-visible {
	background: var(--sand);
	color: #111;
	outline: none;
}

.mlt-modal__figure {
	margin: 0 0 18px;
}

.mlt-modal__figure img {
	width: 100%;
	border-radius: 12px;
}

.mlt-modal__figure figcaption {
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	color: var(--muted);
}

.mlt-modal__title {
	font-size: 32px;
	margin: 0 0 12px;
	padding-right: 2rem;
}

.mlt-modal__body {
	line-height: 1.7;
	color: #3a4348;
}

.mlt-modal__body p:first-child {
	margin-top: 0;
}

/* ---------- Responsive ---------- */

@media ( max-width: 860px ) {
	.mlt-agents-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
	.mlt-feature {
		grid-template-columns: 1fr;
	}
	.mlt-feature:nth-child(even) .mlt-feature__fig {
		order: 0;
	}
}

@media ( max-width: 560px ) {
	.mlt-agents-grid {
		grid-template-columns: 1fr;
	}
	.mlt-contact-form {
		grid-template-columns: 1fr;
	}
	.mlt-contact-form .mlt-full,
	.mlt-contact-form .mlt-submit {
		grid-column: auto;
	}
	.mlt-hero {
		padding: 60px 24px 80px;
	}
}
