/*
 * WT Listings — block library styles (hero + later blocks).
 *
 * CONTRACT: colour + fonts are user-controlled through the active theme's
 * Customizer (the --wtr-* CSS variables set by wt-realtor's wtr_assets()). Every
 * value below reads a --wtr-* variable FIRST and falls back to a neutral default,
 * so the blocks look right on any theme yet pick up brand colour/fonts when a WT
 * theme is active. Never hardcode a brand colour as a block's identity.
 */

.wtl-hero {
	--wtlh-primary: var(--wtr-primary, #1a469d);
	--wtlh-accent:  var(--wtr-accent, #0e2a63);
	--wtlh-dark:    var(--wtr-dark, #1c1e22);
	--wtlh-ink:     var(--wtr-ink, #1c1e22);
	--wtlh-font-head: var(--wtr-font-head, 'Helvetica Neue', Arial, sans-serif);
	--wtlh-font-body: var(--wtr-font-body, 'Segoe UI', Helvetica, Arial, sans-serif);
	position: relative;
	display: flex;
	overflow: hidden;
	box-sizing: border-box;
	font-family: var(--wtlh-font-body);
	isolation: isolate;
}
.wtl-hero * { box-sizing: border-box; }

/* ---- Media + overlay -------------------------------------------------- */
.wtl-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #eef1f6;
	overflow: hidden;
}
.wtl-hero:not(.has-image) .wtl-hero-media {
	background: linear-gradient(135deg, var(--wtlh-primary), var(--wtlh-accent));
}
.wtl-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wtl-hero-scrim {
	position: absolute;
	inset: 0;
	background: var(--wtlh-dark);
}
.wtl-hero--ov-primary .wtl-hero-scrim { background: var(--wtlh-primary); }

/* ---- Content ---------------------------------------------------------- */
.wtl-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	padding: clamp(28px, 6vw, 80px);
}
.wtl-hero-content {
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.wtl-hero-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .9;
}
.wtl-hero-title {
	font-family: var(--wtlh-font-head);
	font-size: clamp(30px, 5vw, 56px);
	line-height: 1.08;
	margin: 0;
	font-weight: 700;
}
.wtl-hero-sub {
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.5;
	margin: 0;
	max-width: 60ch;
	opacity: .95;
}
.wtl-hero-hint {
	font-size: 15px;
	opacity: .85;
	margin: 0;
}

/* ---- Text tone -------------------------------------------------------- */
.wtl-hero--tone-light,
.wtl-hero--tone-light .wtl-hero-title { color: #fff; }
.wtl-hero--tone-light .wtl-hero-sub,
.wtl-hero--tone-light .wtl-hero-eyebrow,
.wtl-hero--tone-light .wtl-hero-hint { color: rgba(255, 255, 255, .95); }
.wtl-hero--tone-dark,
.wtl-hero--tone-dark .wtl-hero-title { color: var(--wtlh-ink); }
.wtl-hero--tone-dark .wtl-hero-sub,
.wtl-hero--tone-dark .wtl-hero-eyebrow,
.wtl-hero--tone-dark .wtl-hero-hint { color: var(--wtlh-ink); }

/* ---- Alignment -------------------------------------------------------- */
.wtl-hero--align-left  .wtl-hero-inner { justify-content: flex-start; }
.wtl-hero--align-left  .wtl-hero-content { text-align: left; align-items: flex-start; }
.wtl-hero--align-center .wtl-hero-inner { justify-content: center; }
.wtl-hero--align-center .wtl-hero-content { text-align: center; align-items: center; margin: 0 auto; }
.wtl-hero--align-right .wtl-hero-inner { justify-content: flex-end; }
.wtl-hero--align-right .wtl-hero-content { text-align: right; align-items: flex-end; }

/* ---- Height ----------------------------------------------------------- */
.wtl-hero--h-auto   { min-height: 0; }
.wtl-hero--h-medium { min-height: 460px; }
.wtl-hero--h-tall   { min-height: 620px; }
.wtl-hero--h-full   { min-height: 100vh; }

/* ---- Buttons ---------------------------------------------------------- */
.wtl-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}
.wtl-hero--align-center .wtl-hero-ctas { justify-content: center; }
.wtl-hero--align-right  .wtl-hero-ctas { justify-content: flex-end; }
.wtl-hero .wtl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	background: var(--wtlh-primary);
	color: #fff;
	transition: filter .15s ease, transform .15s ease;
}
.wtl-hero .wtl-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.wtl-hero .wtl-btn-ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
}
.wtl-hero--tone-dark .wtl-btn-ghost {
	color: var(--wtlh-primary);
	box-shadow: inset 0 0 0 2px var(--wtlh-primary);
}
.wtl-hero .wtl-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---- Search form ------------------------------------------------------ */
.wtl-hero-search {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	width: 100%;
	max-width: 560px;
	background: rgba(255, 255, 255, .96);
	padding: 8px;
	border-radius: 14px;
	box-shadow: 0 12px 34px rgba(11, 18, 32, .18);
}
.wtl-hero--align-center .wtl-hero-search { margin-left: auto; margin-right: auto; }
.wtl-hero--align-right  .wtl-hero-search { margin-left: auto; }
.wtl-hero-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	border: 1px solid #e6e8ee;
	border-radius: 10px;
	padding: 0 14px;
	font-size: 15px;
	color: var(--wtlh-ink);
	background: #fff;
}
.wtl-hero-search .wtl-btn { flex: 0 0 auto; }

/* ---- Split variant ---------------------------------------------------- */
.wtl-hero--split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.wtl-hero--split .wtl-hero-media { position: relative; inset: auto; min-height: 340px; grid-column: 1; }
.wtl-hero--split .wtl-hero-inner { grid-column: 2; grid-row: 1; align-items: center; }
.wtl-hero--split.wtl-hero--h-auto .wtl-hero-inner { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
/* Right-aligned split flips the image to the trailing side. */
.wtl-hero--split.wtl-hero--align-right .wtl-hero-media { grid-column: 2; }
.wtl-hero--split.wtl-hero--align-right .wtl-hero-inner { grid-column: 1; grid-row: 1; }

/* ---- Slideshow variant (single image, slow Ken Burns zoom) ------------ */
.wtl-hero--slideshow .wtl-hero-img { animation: wtl-hero-kenburns 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes wtl-hero-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
	.wtl-hero--slideshow .wtl-hero-img { animation: none; }
}

/* ---- Video background (Hero Banner – Video Slideshow) ----------------- */
.wtl-hero-video { object-fit: cover; width: 100%; height: 100%; position: absolute; inset: 0; }

/* ---- Floating variant (headline + search beside a card-elevated,
   overlapping image -- myRealPage's "Headline with Property Search and
   Floating Image" banners) --------------------------------------------- */
.wtl-hero--floating { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 6vw, 72px) 0; }
.wtl-hero--floating .wtl-hero-media { position: relative; inset: auto; grid-column: 1; min-height: 320px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px rgba(11, 18, 32, .22); transform: translateY(-12px); }
.wtl-hero--floating .wtl-hero-inner { grid-column: 2; grid-row: 1; }
.wtl-hero--floating.wtl-hero--align-right .wtl-hero-media { grid-column: 2; }
.wtl-hero--floating.wtl-hero--align-right .wtl-hero-inner { grid-column: 1; grid-row: 1; }
@media (max-width: 782px) {
	.wtl-hero--floating { grid-template-columns: 1fr; }
	.wtl-hero--floating .wtl-hero-media,
	.wtl-hero--floating.wtl-hero--align-right .wtl-hero-media { grid-column: 1; grid-row: 1; min-height: 240px; transform: none; }
	.wtl-hero--floating .wtl-hero-inner,
	.wtl-hero--floating.wtl-hero--align-right .wtl-hero-inner { grid-column: 1; grid-row: 2; }
}

/* ---- Testimonial-callout content mode ---------------------------------- */
.wtl-hero-quote { font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.35; margin: 0 0 12px; font-style: italic; }
.wtl-hero-quote-author { display: block; font-size: 15px; font-style: normal; opacity: .85; font-weight: 500; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 782px) {
	.wtl-hero--split { grid-template-columns: 1fr; }
	.wtl-hero--split .wtl-hero-media,
	.wtl-hero--split.wtl-hero--align-right .wtl-hero-media { grid-column: 1; grid-row: 1; min-height: 240px; }
	.wtl-hero--split .wtl-hero-inner,
	.wtl-hero--split.wtl-hero--align-right .wtl-hero-inner { grid-column: 1; grid-row: 2; }
	.wtl-hero--h-medium { min-height: 380px; }
	.wtl-hero--h-tall   { min-height: 480px; }
	.wtl-hero-search { flex-wrap: wrap; }
	.wtl-hero-search input[type="text"] { flex-basis: 100%; }
}

/* ===================================================================
 * Shared tokens + buttons for the content blocks
 * (agent bio / testimonials / CTA band / search by area).
 * Same contract as the hero: read --wtr-* first, neutral fallback.
 * =================================================================== */
.wtl-bio, .wtl-tst, .wtl-ctaband, .wtl-areas {
	--wtlb-primary:   var(--wtr-primary, #1a469d);
	--wtlb-accent:    var(--wtr-accent, #0e2a63);
	--wtlb-dark:      var(--wtr-dark, #1c1e22);
	--wtlb-ink:       var(--wtr-ink, #1c1e22);
	--wtlb-body:      var(--wtr-body, #474b53);
	--wtlb-line:      var(--wtr-line, #e2e4e7);
	--wtlb-font-head: var(--wtr-font-head, 'Helvetica Neue', Arial, sans-serif);
	--wtlb-font-body: var(--wtr-font-body, 'Segoe UI', Helvetica, Arial, sans-serif);
	box-sizing: border-box;
	font-family: var(--wtlb-font-body);
	color: var(--wtlb-body);
}
.wtl-bio *, .wtl-tst *, .wtl-ctaband *, .wtl-areas * { box-sizing: border-box; }
.wtl-bio h2, .wtl-tst h2, .wtl-ctaband h2, .wtl-areas h2 { font-family: var(--wtlb-font-head); }

.wtl-bio .wtl-btn, .wtl-ctaband .wtl-btn, .wtl-areas .wtl-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 46px; padding: 0 24px; border: 0; border-radius: 10px;
	cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px;
	background: var(--wtlb-primary); color: #fff;
	transition: filter .15s ease, transform .15s ease;
}
.wtl-bio .wtl-btn:hover, .wtl-ctaband .wtl-btn:hover, .wtl-areas .wtl-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.wtl-bio .wtl-btn-ghost, .wtl-ctaband .wtl-btn-ghost {
	background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}
.wtl-bio .wtl-btn-ghost-dark {
	background: transparent; color: var(--wtlb-primary); box-shadow: inset 0 0 0 2px var(--wtlb-primary);
}

/* ---- Agent bio -------------------------------------------------------- */
.wtl-bio {
	display: grid;
	grid-template-columns: minmax(220px, 340px) 1fr;
	gap: clamp(20px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 5vw, 64px) 0;
}
.wtl-bio--img-right { grid-template-columns: 1fr minmax(220px, 340px); }
.wtl-bio--img-right .wtl-bio-media { order: 2; }
.wtl-bio-media {
	aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
	background: linear-gradient(135deg, var(--wtlb-primary), var(--wtlb-accent));
	display: flex; align-items: center; justify-content: center;
}
.wtl-bio-img { width: 100%; height: 100%; object-fit: cover; }
.wtl-bio-noimg { color: rgba(255, 255, 255, .72); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.wtl-bio-name { font-size: clamp(24px, 3vw, 34px); margin: 0 0 4px; color: var(--wtlb-ink); }
.wtl-bio-cred { font-weight: 600; color: var(--wtlb-primary); margin: 0 0 14px; }
.wtl-bio-blurb { line-height: 1.6; }
.wtl-bio-blurb p { margin: 0 0 1em; }
.wtl-bio-contact { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.wtl-bio-contact a { color: var(--wtlb-ink); font-weight: 600; text-decoration: none; }
.wtl-bio-contact a:hover { color: var(--wtlb-primary); }
.wtl-bio-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 782px) {
	.wtl-bio, .wtl-bio--img-right { grid-template-columns: 1fr; }
	.wtl-bio--img-right .wtl-bio-media { order: 0; }
	.wtl-bio-media { max-width: 320px; }
}

/* ---- Testimonials ----------------------------------------------------- */
.wtl-tst { padding: clamp(28px, 6vw, 72px) 0; }
.wtl-tst-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(24px, 4vw, 44px); }
.wtl-tst-h { font-size: clamp(24px, 3.4vw, 38px); margin: 0 0 8px; color: var(--wtlb-ink); }
.wtl-tst-sub { font-size: 17px; opacity: .85; margin: 0; }
.wtl-tst-item {
	margin: 0; padding: 26px; background: #fff;
	border: 1px solid var(--wtlb-line); border-radius: 16px;
	display: flex; flex-direction: column; gap: 12px;
}
.wtl-tst-stars { color: #e8b309; letter-spacing: 2px; font-size: 16px; }
.wtl-tst-stars .wtl-star { opacity: .28; }
.wtl-tst-stars .wtl-star.is-on { opacity: 1; }
.wtl-tst-quote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--wtlb-ink); }
.wtl-tst-author { font-weight: 700; color: var(--wtlb-primary); }
.wtl-tst--cards2 .wtl-tst-list, .wtl-tst--cards3 .wtl-tst-list { display: grid; gap: 22px; }
.wtl-tst--cards2 .wtl-tst-list { grid-template-columns: repeat(2, 1fr); }
.wtl-tst--cards3 .wtl-tst-list { grid-template-columns: repeat(3, 1fr); }
.wtl-tst--list .wtl-tst-list { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 0 auto; }
.wtl-tst--carousel .wtl-tst-list { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.wtl-tst--carousel .wtl-tst-item { flex: 0 0 min(360px, 82%); scroll-snap-align: start; }
.wtl-carousel-nav { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.wtl-cbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--wtlb-line); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--wtlb-ink); }
.wtl-cbtn:hover { background: var(--wtlb-primary); color: #fff; border-color: var(--wtlb-primary); }
@media (max-width: 900px) { .wtl-tst--cards3 .wtl-tst-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wtl-tst--cards2 .wtl-tst-list, .wtl-tst--cards3 .wtl-tst-list { grid-template-columns: 1fr; } }

/* ---- CTA band --------------------------------------------------------- */
.wtl-ctaband { position: relative; overflow: hidden; }
.wtl-ctaband-inner {
	position: relative; z-index: 1; max-width: 760px; margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 48px);
	display: flex; flex-direction: column; gap: 14px;
}
.wtl-ctaband--align-center .wtl-ctaband-inner { text-align: center; align-items: center; }
.wtl-ctaband--align-left .wtl-ctaband-inner { text-align: left; align-items: flex-start; }
.wtl-ctaband--align-right .wtl-ctaband-inner { text-align: right; align-items: flex-end; }
.wtl-ctaband-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.wtl-ctaband-title { font-size: clamp(26px, 3.6vw, 40px); margin: 0; line-height: 1.12; }
.wtl-ctaband-body { font-size: 17px; line-height: 1.55; }
.wtl-ctaband-body p { margin: 0 0 1em; }
.wtl-ctaband-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.wtl-ctaband--align-center .wtl-ctaband-ctas { justify-content: center; }
.wtl-ctaband--align-right .wtl-ctaband-ctas { justify-content: flex-end; }
.wtl-ctaband--primary { background: var(--wtlb-primary); }
.wtl-ctaband--primary, .wtl-ctaband--primary .wtl-ctaband-title { color: #fff; }
.wtl-ctaband--primary .wtl-btn { background: #fff; color: var(--wtlb-primary); }
.wtl-ctaband--dark { background: var(--wtlb-dark); }
.wtl-ctaband--dark, .wtl-ctaband--dark .wtl-ctaband-title { color: #fff; }
.wtl-ctaband--subtle { background: #f4f6f9; }
.wtl-ctaband--subtle, .wtl-ctaband--subtle .wtl-ctaband-title { color: var(--wtlb-ink); }
.wtl-ctaband--image, .wtl-ctaband--image .wtl-ctaband-title { color: #fff; }
.wtl-ctaband-media { position: absolute; inset: 0; z-index: 0; }
.wtl-ctaband-media img { width: 100%; height: 100%; object-fit: cover; }
.wtl-ctaband-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 18, 32, .66), rgba(12, 18, 32, .5)); }

/* ---- Search by area --------------------------------------------------- */
.wtl-areas { padding: clamp(28px, 6vw, 72px) 0; }
.wtl-areas-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(22px, 4vw, 40px); }
.wtl-areas-h { font-size: clamp(24px, 3.4vw, 38px); margin: 0 0 8px; color: var(--wtlb-ink); }
.wtl-areas-sub { font-size: 17px; opacity: .85; margin: 0; }
.wtl-areas-grid { display: grid; gap: 14px; }
.wtl-areas--cols-2 { grid-template-columns: repeat(2, 1fr); }
.wtl-areas--cols-3 { grid-template-columns: repeat(3, 1fr); }
.wtl-areas--cols-4 { grid-template-columns: repeat(4, 1fr); }
.wtl-area {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 20px; border: 1px solid var(--wtlb-line); border-radius: 12px;
	text-decoration: none; color: var(--wtlb-ink); font-weight: 600; background: #fff;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wtl-area:hover { border-color: var(--wtlb-primary); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 18, 32, .1); }
.wtl-area-arrow { color: var(--wtlb-primary); font-size: 20px; }
@media (max-width: 900px) {
	.wtl-areas--cols-4, .wtl-areas--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .wtl-areas-grid { grid-template-columns: 1fr; } }

/* ---- LeadLoop calculator (collapsible) --------------------------------
 * Collapse/expand uses the CSS Grid "0fr -> 1fr" technique: the row track
 * sizes to content once expanded, so LeadLoop's own auto-resizing iframe
 * (height changes over time via postMessage) never fights a guessed height.
 * ------------------------------------------------------------------- */
.wtl-llcalc {
	--wtlb-primary:   var(--wtr-primary, #1a469d);
	--wtlb-ink:       var(--wtr-ink, #1c1e22);
	--wtlb-body:      var(--wtr-body, #474b53);
	--wtlb-line:      var(--wtr-line, #e2e4e7);
	--wtlb-bg-subtle: var(--wtr-bg-subtle, #fafbfc);
	--wtlb-font-head: var(--wtr-font-head, 'Helvetica Neue', Arial, sans-serif);
	--wtlb-font-body: var(--wtr-font-body, 'Segoe UI', Helvetica, Arial, sans-serif);
	box-sizing: border-box;
	font-family: var(--wtlb-font-body);
	margin-block: 20px;
}
.wtl-llcalc *, .wtl-llcalc *::before, .wtl-llcalc *::after { box-sizing: border-box; }

.wtl-llcalc-trigger {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	width: 100%; text-align: left; cursor: pointer;
	background: var(--wtlb-bg-subtle); border: 1px solid var(--wtlb-line); border-radius: 14px;
	padding: 18px 22px; font: inherit; color: var(--wtlb-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wtl-llcalc-trigger:hover { border-color: var(--wtlb-primary); }
.wtl-llcalc-trigger:focus-visible { outline: 2px solid var(--wtlb-primary); outline-offset: 2px; }
.wtl-llcalc-trigger-text { display: flex; flex-direction: column; gap: 4px; }
.wtl-llcalc-title { font-family: var(--wtlb-font-head); font-weight: 700; font-size: 18px; }
.wtl-llcalc-subtitle { font-size: 14px; color: var(--wtlb-body); }
.wtl-llcalc-chevron {
	flex: none; font-size: 22px; line-height: 1; color: var(--wtlb-primary);
	transform: rotate(0deg); transition: transform .25s ease;
}
.wtl-llcalc.is-expanded .wtl-llcalc-chevron { transform: rotate(90deg); }

.wtl-llcalc-collapse {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s cubic-bezier(.16,1,.3,1);
}
.wtl-llcalc.is-expanded .wtl-llcalc-collapse { grid-template-rows: 1fr; }
.wtl-llcalc-inner { overflow: hidden; min-height: 0; }
.wtl-llcalc-mount { padding-top: 16px; }
.wtl-llcalc-mount iframe { max-width: 100%; }

/* "Below" (default): normal block flow, panel opens under the trigger. */
.wtl-llcalc--below { display: block; }

/* "Side": trigger + panel sit in two columns once there's room; on narrow
   screens it falls back to stacking like "below". */
.wtl-llcalc--side {
	display: grid;
	grid-template-columns: minmax(240px, 320px) 1fr;
	gap: 24px;
	align-items: start;
}
.wtl-llcalc--side .wtl-llcalc-trigger { height: 100%; align-items: flex-start; }
@media (max-width: 760px) {
	.wtl-llcalc--side { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.wtl-llcalc-collapse, .wtl-llcalc-chevron { transition: none; }
}

/* ---- FAQ accordion --------------------------------------------------- *
 * Native <details>/<summary> — no custom collapse JS, so there's nothing
 * to fight the browser's own reliable toggle behaviour, and it's keyboard
 * and screen-reader accessible for free.
 * ------------------------------------------------------------------- */
.wtl-faq {
	--wtlb-primary:   var(--wtr-primary, #1a469d);
	--wtlb-ink:       var(--wtr-ink, #1c1e22);
	--wtlb-body:      var(--wtr-body, #474b53);
	--wtlb-line:      var(--wtr-line, #e2e4e7);
	--wtlb-font-head: var(--wtr-font-head, 'Helvetica Neue', Arial, sans-serif);
	--wtlb-font-body: var(--wtr-font-body, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-family: var(--wtlb-font-body);
	padding-block: clamp(24px, 5vw, 56px);
}
.wtl-faq-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(20px, 4vw, 36px); }
.wtl-faq-h { font-family: var(--wtlb-font-head); font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 8px; color: var(--wtlb-ink); }
.wtl-faq-sub { font-size: 16px; color: var(--wtlb-body); margin: 0; }
.wtl-faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.wtl-faq-list--2col { max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-items: start; }
@media (max-width: 720px) { .wtl-faq-list--2col { grid-template-columns: 1fr; } }
.wtl-faq-item { border: 1px solid var(--wtlb-line); border-radius: 12px; padding: 4px 20px; background: #fff; }
.wtl-faq-q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 0; cursor: pointer; list-style: none;
	font-family: var(--wtlb-font-head); font-weight: 700; font-size: 16px; color: var(--wtlb-ink);
}
.wtl-faq-q::-webkit-details-marker { display: none; }
.wtl-faq-icon { flex: none; font-size: 20px; line-height: 1; color: var(--wtlb-primary); transition: transform .2s ease; }
.wtl-faq-item[open] .wtl-faq-icon { transform: rotate(45deg); }
.wtl-faq-a { padding: 0 0 18px; color: var(--wtlb-body); line-height: 1.6; }
.wtl-faq-a p { margin: 0 0 1em; }
.wtl-faq-a p:last-child { margin-bottom: 0; }

/* ---- Buyer Quiz -------------------------------------------------------- */
.wtl-quiz {
	--wtlq-primary: var(--wtr-primary, #1a469d);
	--wtlq-ink:     var(--wtr-ink, #1c1e22);
	--wtlq-body:    var(--wtr-body, #474b53);
	--wtlq-line:    var(--wtr-line, #e2e4e7);
	max-width: 640px;
	margin: 0 auto;
	font-family: var(--wtlb-font-body, inherit);
}
.wtl-quiz-progress { height: 6px; border-radius: 999px; background: var(--wtlq-line); overflow: hidden; margin: 0 0 28px; }
.wtl-quiz-progress-bar { display: block; height: 100%; width: 33%; background: var(--wtlq-primary); transition: width .25s ease; }
.wtl-quiz-step { display: none; border: 0; margin: 0; padding: 0; }
.wtl-quiz-step.is-active { display: block; }
.wtl-quiz-step legend { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; color: var(--wtlq-ink); margin: 0 0 8px; padding: 0; }
.wtl-quiz-hint { font-size: 13px; color: var(--wtlq-body); margin: 0 0 18px; }
.wtl-quiz-step label:not(.wtl-quiz-nav label) { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--wtlq-line); border-radius: 12px; margin: 0 0 10px; cursor: pointer; font-size: 15px; color: var(--wtlq-ink); }
.wtl-quiz-step label:has(input:checked) { border-color: var(--wtlq-primary); background: color-mix(in srgb, var(--wtlq-primary) 6%, #fff); }
.wtl-quiz-nav { display: flex; gap: 10px; margin: 20px 0 0; }
.wtl-quiz-nav .wtl-btn { flex: 1; height: 46px; border: 0; border-radius: 10px; background: var(--wtlq-primary); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.wtl-quiz-nav .wtl-btn-ghost { background: transparent; color: var(--wtlq-primary); box-shadow: inset 0 0 0 2px var(--wtlq-primary); }
.wtl-quiz-results h3 { font-size: clamp(19px, 2.4vw, 24px); color: var(--wtlq-ink); margin: 0 0 14px; }
.wtl-quiz-result-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wtl-quiz-result-list li { border: 1px solid var(--wtlq-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.wtl-quiz-result-list li strong { color: var(--wtlq-primary); font-size: 15px; }
.wtl-quiz-result-list li span { color: var(--wtlq-body); font-size: 14px; line-height: 1.5; }
.wtl-quiz-disclaimer { font-size: 12px; color: var(--wtlq-body); background: var(--wtlq-line); border-radius: 10px; padding: 10px 12px; margin: 0 0 20px; }
