/* Apexo Group — site styles
   Palette: ink #14213D, paper #F3F5F2, survey flag #C2185B, slate #4A5868, plat line #CCD5D1 */

:root {
	--ink: var(--wp--preset--color--ink, #14213D);
	--paper: var(--wp--preset--color--paper, #F3F5F2);
	--flag: var(--wp--preset--color--flag, #C2185B);
	--flag-dark: #9E1149;
	--flag-bright: #F06292;
	--slate: var(--wp--preset--color--slate, #4A5868);
	--line: var(--wp--preset--color--line, #CCD5D1);
	--white: #FFFFFF;
	--display: var(--wp--preset--font-family--display, Archivo, Arial, sans-serif);
	--body: var(--wp--preset--font-family--body, Georgia, serif);
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--max: 1180px;
	--radius: 3px;
	--plat: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }

/* Flow spacing: WordPress adds a gap between top-level blocks; the bands handle their own. */
.wp-site-blocks > *, .site-main > *, .site-main > * > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-stretch: 112%;
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0;
}
p { margin: 0; text-wrap: pretty; }
* + p, p + * { margin-block-start: 1rem; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; color: var(--flag-dark); }

:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 2px; }

.skip-link {
	position: absolute; left: var(--gutter); top: -100px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
	font-family: var(--display); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: var(--paper); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner {
	max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 1rem var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 20px; height: 28px; color: var(--ink); flex: none; }
.brand__flag { fill: var(--flag); }
.brand__name {
	font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.35rem;
	letter-spacing: 0.01em; line-height: 1;
}
.brand__group { font-stretch: 100%; font-weight: 450; margin-left: 0.35em; color: var(--slate); }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-family: var(--display); font-weight: 600; font-size: 1rem; }
.site-nav a { text-decoration: none; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--flag); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Plat grid (the survey drawing behind hero areas) ---------- */
.hero, .page-hero {
	background-color: var(--paper);
	background-image:
		linear-gradient(to right, rgba(20, 33, 61, 0.09) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(20, 33, 61, 0.09) 1px, transparent 1px),
		linear-gradient(to right, rgba(20, 33, 61, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(20, 33, 61, 0.05) 1px, transparent 1px);
	background-size: calc(var(--plat) * 5) calc(var(--plat) * 5), calc(var(--plat) * 5) calc(var(--plat) * 5), var(--plat) var(--plat), var(--plat) var(--plat);
	background-position: -1px -1px;
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.hero__head { max-width: var(--max); margin: 0 auto; position: relative; padding-left: clamp(1.75rem, 4vw, 3rem); }
/* survey stake with flag */
.hero__head::before {
	content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.1em; width: 3px;
	background: var(--ink); border-radius: 2px;
}
.hero__head::after {
	content: ""; position: absolute; left: 6px; top: 0.2em;
	width: clamp(1.1rem, 2.4vw, 1.75rem); height: clamp(0.9rem, 2vw, 1.4rem);
	background: var(--flag);
	clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%);
}
.hero__title {
	font-size: var(--wp--preset--font-size--huge);
	font-stretch: 118%; font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
	max-width: none;
}

.doors {
	max-width: var(--max); margin: clamp(2rem, 5vw, 3.5rem) auto 0;
	display: grid; grid-template-columns: 1fr 1fr; gap: 0;
	border: 1.5px solid var(--ink);
}
.door { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 0; }
.door > * + * { margin-block-start: 1rem; }
.door--sell { background: var(--white); }
.door--invest { background: var(--ink); color: var(--paper); }
.door--invest a:not(.wp-block-button__link) { color: var(--paper); }
.door__title { font-size: var(--wp--preset--font-size--x-large); max-width: 16ch; }
.door p { max-width: 46ch; font-size: 1.0625rem; }
.door .wp-block-buttons { margin-top: auto; padding-top: 1.5rem; }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn .wp-block-button__link, button.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
	padding: 0.85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
	font-family: var(--display); font-weight: 650; font-size: 1.0625rem; font-stretch: 105%;
	text-decoration: none; line-height: 1.15; cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--flag .wp-block-button__link, button.btn--flag { background: var(--flag); color: var(--white); }
.btn--flag .wp-block-button__link:hover, button.btn--flag:hover { background: var(--flag-dark); color: var(--white); }
.btn--light .wp-block-button__link { background: var(--paper); color: var(--ink); }
.btn--light .wp-block-button__link:hover { background: var(--white); color: var(--ink); }
.door--invest .btn--light .wp-block-button__link:focus-visible { outline-color: var(--flag-bright); }
button.btn:disabled { opacity: 0.7; cursor: progress; }

/* ---------- Bands ---------- */
.band { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band__title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.how { background: var(--paper); }
.how__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.how__col h3 { font-size: var(--wp--preset--font-size--large); padding-bottom: 0.75rem; border-bottom: 1.5px solid var(--ink); }
.how__link { margin-top: 1.5rem; font-family: var(--display); font-weight: 600; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.25rem 0 0; }
.steps li {
	counter-increment: step; position: relative; padding: 0 0 1.25rem 3rem; margin: 0;
}
.steps li + li { margin-top: 0; }
.steps li::before {
	content: counter(step); position: absolute; left: 0; top: -0.1em;
	width: 2rem; height: 2rem; display: grid; place-items: center;
	font-family: var(--display); font-weight: 750; font-size: 1rem; font-stretch: 110%;
	color: var(--white); background: var(--ink); border-radius: 50%;
}
.steps li:not(:last-child)::after {
	content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: 0.2rem;
	border-left: 2px dashed var(--line);
}
.steps strong { font-family: var(--display); font-weight: 650; display: block; font-size: 1.0625rem; }
.steps--compact li { padding-bottom: 1rem; }

.plain { background: var(--ink); color: var(--paper); }
.plain .plain__inner { max-width: 760px; margin-left: max(0px, calc((100% - var(--max)) / 2)); border-left: 4px solid var(--flag); padding-left: clamp(1.25rem, 3vw, 2rem); }
.plain .band__title { margin-bottom: 1.25rem; }
.plain p { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: #E4E8EE; }

/* ---------- Inner pages ---------- */
.page-hero {
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
	padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
	padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
	border-bottom: 1px solid var(--line);
}
.page-hero > * { margin-left: 0; margin-right: 0; }
.page-hero h1 { max-width: 20ch; font-stretch: 118%; font-weight: 800; letter-spacing: -0.02em; }
.page-hero .lede { margin-top: 1.25rem; font-size: var(--wp--preset--font-size--large); line-height: 1.45; max-width: 46rem; }

.split {
	max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
	padding: clamp(2rem, 6vw, 4rem) var(--gutter);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.split__aside { position: sticky; top: 1.5rem; }
.aside__title { font-size: 1.25rem; font-stretch: 110%; margin-bottom: 0.75rem; }
.aside__title:not(:first-child) { margin-top: 2rem; }
.split__aside p { color: var(--slate); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 1.75rem; border-bottom: 1px solid var(--line); margin: 0; }
.ticks li::before {
	content: ""; position: absolute; left: 0.15rem; top: 0.85rem; width: 0.85rem; height: 0.45rem;
	border-left: 2.5px solid var(--flag); border-bottom: 2.5px solid var(--flag); transform: rotate(-45deg);
}

.sheet { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(1.25rem, 4vw, 2.5rem); }
.sheet__title { font-size: var(--wp--preset--font-size--large); margin-bottom: 1.5rem; }

/* The buy box: a box with survey corner marks */
.sheet--box { position: relative; border-color: var(--ink); }
.sheet--box::before {
	content: ""; position: absolute; inset: -10px; pointer-events: none;
	background:
		linear-gradient(var(--flag), var(--flag)) top left / 22px 3px,
		linear-gradient(var(--flag), var(--flag)) top left / 3px 22px,
		linear-gradient(var(--flag), var(--flag)) top right / 22px 3px,
		linear-gradient(var(--flag), var(--flag)) top right / 3px 22px,
		linear-gradient(var(--flag), var(--flag)) bottom left / 22px 3px,
		linear-gradient(var(--flag), var(--flag)) bottom left / 3px 22px,
		linear-gradient(var(--flag), var(--flag)) bottom right / 22px 3px,
		linear-gradient(var(--flag), var(--flag)) bottom right / 3px 22px;
	background-repeat: no-repeat;
}

/* ---------- Forms ---------- */
.form-wrap { scroll-margin-top: 1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.field { grid-column: 1 / -1; margin: 0; min-width: 0; }
.field--half { grid-column: span 1; }
.field > * + * { margin-top: 0; }
.field label, .field legend {
	display: block; font-family: var(--display); font-weight: 600; font-size: 0.975rem; margin-bottom: 0.4rem; padding: 0;
}
fieldset.field { border: 0; padding: 0; margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 0.7rem 0.8rem;
	font: inherit; font-size: 1.0625rem; color: var(--ink);
	background: var(--white); border: 1.5px solid #6B7887; border-radius: var(--radius);
	appearance: none;
}
.field textarea { min-height: 0; resize: vertical; line-height: 1.5; }
.field select {
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
	background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
	outline: 3px solid var(--flag); outline-offset: 1px; border-color: var(--ink);
}
.field-hint { font-size: 0.9375rem; color: var(--slate); margin-top: 0.35rem; }
.field-error { font-size: 0.9375rem; color: var(--flag-dark); font-family: var(--display); font-weight: 600; margin-top: 0.35rem; }
.is-invalid input:not([type="checkbox"]), .is-invalid select, .is-invalid textarea { border-color: var(--flag); border-width: 2px; }

.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field .check {
	display: inline-flex !important; align-items: center; gap: 0.5rem; margin: 0 !important;
	padding: 0.55rem 0.85rem; min-height: 44px;
	border: 1.5px solid #6B7887; border-radius: 999px; background: var(--white);
	font-family: var(--body) !important; font-weight: 450 !important; font-size: 1rem !important; cursor: pointer;
}
.check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--flag); flex: none; }
.check:has(input:checked) { border-color: var(--ink); background: #E6EBF2; }
.check:has(input:focus-visible) { outline: 3px solid var(--flag); outline-offset: 2px; }
.check input:focus-visible { outline: none; }
.is-invalid .check { border-color: var(--flag); }

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

.form-foot { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.form-fine { font-size: 0.9375rem; color: var(--slate); margin: 0; }
.form-foot button.btn { width: 100%; }

.notice { padding: 1rem 1.25rem; border-radius: var(--radius); font-family: var(--display); font-weight: 600; line-height: 1.4; margin-bottom: 1.25rem; }
.notice--ok { background: #E3F1E8; border-left: 5px solid #1E7A44; color: #0F3D22; }
.notice--error { background: #FBE7EE; border-left: 5px solid var(--flag); color: #5E0A2B; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq > .wp-block-details { max-width: 820px; margin-left: 0; margin-right: auto; }
.faq .band__title { max-width: var(--max); }
.faq > .wp-block-details, .faq > .band__title { margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.wp-block-details { border-top: 1px solid var(--line); padding: 0; margin: 0; }
.wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.wp-block-details summary {
	list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
	font-family: var(--display); font-weight: 650; font-size: 1.125rem; font-stretch: 105%;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; font-weight: 400; color: var(--flag);
}
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > p { padding: 0 0 1.25rem; margin: 0; max-width: 64ch; color: #2A3550; }

/* ---------- Prose pages (privacy etc.) ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.prose h1 { font-size: var(--wp--preset--font-size--x-large); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.375rem; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.prose .wp-block-post-content > * + * { margin-top: 1rem; }
.prose--center { text-align: left; min-height: 40vh; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9DFE7; border-top: 4px solid var(--flag); }
.site-footer__inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem; }
.site-footer__cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(243, 245, 242, 0.18); }
.site-footer__name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.25rem; color: var(--paper); }
.site-footer nav { display: flex; flex-direction: column; gap: 0.6rem; font-family: var(--display); font-weight: 550; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--flag-bright); }
.site-footer__fine { font-size: 0.875rem; line-height: 1.5; color: #B9C2CE; max-width: 72ch; margin-top: 1.25rem; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
	.doors, .how__cols, .split { grid-template-columns: 1fr; }
	.split__aside { position: static; order: 2; }
	.split__main { order: 1; }
	.page-hero .lede { padding-right: 0; }
}
@media (max-width: 560px) {
	.fields { grid-template-columns: 1fr; }
	.field--half { grid-column: 1 / -1; }
	.brand__name { font-size: 1.15rem; }
	.site-nav { font-size: 0.95rem; gap: 1rem; }
	.site-header__inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
	.sheet--box::before { inset: -7px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Markets ---------- */
.where { background: var(--white); border-top: 1px solid var(--line); }
.where > p { max-width: 62ch; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.market-list { list-style: none; padding: 0; margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.market-list li { margin: 0; }
.market-list--list a {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.1rem;
	border: 1.5px solid var(--ink); border-radius: var(--radius); text-decoration: none;
	font-family: var(--display); font-weight: 650; background: var(--paper);
}
.market-list--list a::before {
	content: ""; width: 0.7rem; height: 0.55rem; background: var(--flag); flex: none;
	clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%);
}
.market-list--list a:hover { background: var(--ink); color: var(--paper); }
.market-list--footer { flex-direction: column; gap: 0.6rem; margin: 0; font-family: var(--display); font-weight: 550; }
.site-footer__label { font-family: var(--display); font-weight: 650; color: var(--paper); margin-bottom: 0.75rem; }
.site-nav__phone { white-space: nowrap; }

.market .market__content > * { margin-block-start: 0; }
.local { background: var(--paper); border-top: 1px solid var(--line); }
.local__body { max-width: 720px !important; margin-left: max(0px, calc((100% - var(--max)) / 2)) !important; }
.local__body h3 { font-size: 1.375rem; margin-top: 2.25rem; }
.local__body h3:first-child { margin-top: 0; }
.local__body p { margin-top: 0.85rem; }
.faq .sources { max-width: 820px; margin: 2rem 0 0 max(0px, calc((100% - var(--max)) / 2)); font-size: 0.9375rem; color: var(--slate); }
.invest-cta { background: var(--ink); color: var(--paper); }
.invest-cta .band__title { margin-bottom: 0.75rem; }
.invest-cta p { color: #E4E8EE; margin-bottom: 1.5rem; }
.nowrap { white-space: nowrap; }

/* ---------- FAQ pages ---------- */
.faq .faq__more { margin: 1.75rem 0 0 max(0px, calc((100% - var(--max)) / 2)); font-family: var(--display); font-weight: 650; }
.faq--page { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Optional details + consent ---------- */
.more-fields { margin-top: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-fields summary {
	cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
	font-family: var(--display); font-weight: 650; font-size: 1rem;
}
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary span { font-family: var(--body); font-weight: 400; color: var(--slate); }
.more-fields summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--flag); }
.more-fields[open] summary::after { content: "\2212"; }
.more-fields[open] > .fields { padding-bottom: 1.25rem; }
.fields + .more-fields, .more-fields + .fields { margin-top: 1.25rem; }
.field--consent { grid-column: 1 / -1; }
.field .consent { display: flex !important; gap: 0.6rem; align-items: flex-start; font-family: var(--body) !important; font-weight: 400 !important; font-size: 0.9375rem !important; color: var(--slate); cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--flag); flex: none; }

/* ---------- Thank-you pages ---------- */
.thanks__body { background: var(--white); border-top: 1px solid var(--line); }
.thanks__inner { max-width: 640px !important; margin-left: max(0px, calc((100% - var(--max)) / 2)) !important; }
.thanks__inner .steps { margin-top: 0; }
.thanks__call { font-family: var(--display); font-weight: 650; font-size: 1.125rem; margin-top: 1rem; }
.thanks__inner .aside__title { margin-top: 2.5rem; }

/* =========================================================
   Survey artwork (hero drawings, maps, icons)
   ========================================================= */
.art { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--display); }
.art-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.art-lot { fill: var(--white); fill-opacity: 0.65; }
.art-build { fill: var(--ink); fill-opacity: 0.07; }
.art-line { fill: none; stroke: #9AA8A3; stroke-width: 1; }
.art-dim { fill: none; stroke: #7C8B97; stroke-width: 1; }
.art-dashed { fill: none; stroke: #9AA8A3; stroke-width: 1; stroke-dasharray: 4 4; }
.art-dashed-ink { stroke-dasharray: 4 3; }
.art-pick { fill: var(--flag); fill-opacity: 0.08; stroke: var(--flag); stroke-width: 2.5; }
.art-flag { fill: var(--flag); stroke: none; }
.art-ink-fill { fill: var(--ink); }
.art-label { font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: 0.06em; fill: var(--ink); }
.art-small { font-size: 10px; font-weight: 500; fill: var(--slate); }

/* Hero layout with artwork on the right */
.page-hero.has-art, .hero__head.has-art {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 440px);
	column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.page-hero.has-art > *:not(.hero-art), .hero__head.has-art > *:not(.hero-art) { grid-column: 1; }
.page-hero.has-art > .hero-art, .hero__head.has-art > .hero-art { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.hero__head.has-art { align-items: center; }
.hero__head.has-art::before { bottom: auto; height: calc(var(--wp--preset--font-size--huge) * 2.1); }
.hero-art { max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
	.page-hero.has-art, .hero__head.has-art { display: block; }
	.hero-art { display: none; }
	.hero__head.has-art::before { bottom: 0.1em; height: auto; }
}

/* Detroit-area map */
.map-county { fill: var(--white); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.map-county--far { fill: none; stroke: #A9B5B1; stroke-width: 1; stroke-dasharray: 3 3; }
.map-county-label { font-size: 10px; fill: #7C8B97; letter-spacing: 0.12em; }
.map-dot { fill: var(--ink); }
.map-dot--dim { fill: #9AA8A3; }
.map-city { font-size: 13px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map-city--on { font-size: 16px; font-weight: 800; fill: var(--flag); }
.map-city--dim { fill: #6B7887; font-weight: 500; font-size: 11px; }
.map-link { cursor: pointer; }
.map-link:hover .map-city, .map-link:focus .map-city { fill: var(--flag); }
.map-link:focus { outline: none; }
.map-link:focus-visible .map-dot { stroke: var(--flag); stroke-width: 3; }
.map-note { font-size: 9px; }
.where__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-top: 1.5rem; }
.where__grid .region-map { max-width: 560px; }
.where__grid .market-list { flex-direction: column; align-items: flex-start; margin: 0; }
@media (max-width: 860px) {
	.where__grid { grid-template-columns: 1fr; }
	.where__grid .market-list { flex-direction: row; }
}

/* How it works: survey-style icons joined by a surveyor's chain line */
.steps--icons li { padding-left: 4.25rem; padding-bottom: 1.6rem; min-height: 3.5rem; }
.steps--icons li::before {
	content: ""; width: 3rem; height: 3rem; top: -0.35rem; border-radius: 6px;
	background-color: var(--white); border: 1.5px solid var(--ink);
	background-repeat: no-repeat; background-position: center; background-size: 26px 26px;
}
.steps--icons li:not(:last-child)::after {
	left: calc(1.5rem - 5px); width: 10px; top: 2.85rem; bottom: 0.15rem; border: 0;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat,
		repeating-linear-gradient(to bottom, var(--ink) 0 1.5px, transparent 1.5px 9px) center / 10px 100% no-repeat;
	opacity: 0.55;
}
.steps--icons li strong::before { content: counter(step) ". "; color: var(--flag); }
.steps--seller li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s-7-6-7-12a7 7 0 0 1 14 0c0 6-7 12-7 12z'/%3E%3Cpath d='M9 11l3-2.5 3 2.5v3H9z' stroke='%23C2185B'/%3E%3C/svg%3E"); }
.steps--seller li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M15 3a6 6 0 0 1 6 6' stroke='%23C2185B'/%3E%3C/svg%3E"); }
.steps--seller li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l4 4v16H6z'/%3E%3Cpath d='M15 2v4h4M9 11h7M9 14h7'/%3E%3Cpath d='M9 18.5c1-1.5 2-1.5 2.5 0s1.5 1.5 3 0' stroke='%23C2185B'/%3E%3C/svg%3E"); }
.steps--seller li:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='M10.8 12.2L21 2M17 6l3 3M14.5 8.5l2 2'/%3E%3Ccircle cx='7.5' cy='15.5' r='1.3' stroke='%23C2185B'/%3E%3C/svg%3E"); }
.steps--investor li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='14'/%3E%3Cpath d='M2 6V2h4M18 2h4v4M22 18v4h-4M6 22H2v-4' stroke='%23C2185B'/%3E%3C/svg%3E"); }
.steps--investor li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2h6v6H2zM2 10h6v6H2zM10 2h6v6h-6z' stroke-width='1.2'/%3E%3Ccircle cx='15.5' cy='15.5' r='4.5' stroke='%23C2185B'/%3E%3Cpath d='M19 19l3 3' stroke='%23C2185B'/%3E%3C/svg%3E"); }
.steps--investor li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v16H3z'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23C2185B' stroke-width='2'/%3E%3C/svg%3E"); }
.steps--investor li:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='M10.8 12.2L21 2M17 6l3 3M14.5 8.5l2 2'/%3E%3Ccircle cx='7.5' cy='15.5' r='1.3' stroke='%23C2185B'/%3E%3C/svg%3E"); }

/* Property-tax timeline */
.timeline-wrap { margin: 1.5rem 0 1.25rem; padding: 1.25rem 1.25rem 1rem; background: var(--white); border: 1.5px solid var(--ink); }
.timeline-cap { font-family: var(--display); font-weight: 650; font-size: 0.95rem; margin-bottom: 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; border-top: 2px solid var(--line); }
.timeline li { position: relative; padding-top: 1.4rem; margin: 0; font-size: 0.9rem; line-height: 1.4; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.timeline__date { display: block; font-family: var(--display); font-weight: 700; font-size: 0.875rem; margin-bottom: 0.2rem; }
.timeline__text { color: var(--slate); }
.timeline li.is-deadline::before { background: var(--flag); border-color: var(--flag); }
.timeline li.is-deadline .timeline__date { color: var(--flag-dark); }
.timeline li.is-deadline .timeline__text { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
	.timeline { grid-template-columns: 1fr; gap: 0; }
	.timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px solid var(--line); }
	.timeline li { padding: 0 0 1rem 1.75rem; }
}

/* Property types we buy */
.ptypes { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.ptypes li { margin: 0; text-align: center; font-family: var(--display); font-size: 0.78rem; font-weight: 600; line-height: 1.2; }
.ptypes .art--icon { width: 52px; height: 52px; margin: 0 auto 0.35rem; }
.art--icon .art-ink { stroke-width: 2; }

/* Sample property sheet */
.dealsheet { background: var(--white); border: 1.5px solid var(--ink); margin: 0.25rem 0 1.5rem; }
.dealsheet__head { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.9rem; border-bottom: 1.5px solid var(--ink); font-family: var(--display); font-weight: 700; font-stretch: 112%; }
.dealsheet__head svg { width: 14px; height: 19px; color: var(--ink); }
.dealsheet dl { margin: 0; padding: 0.35rem 0.9rem; }
.dealsheet dl > div { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.dealsheet dl > div:last-child { border-bottom: 0; }
.dealsheet dt { font-family: var(--display); font-weight: 600; font-size: 0.85rem; }
.dealsheet dd { margin: 0; height: 0.7rem; border-radius: 2px; background: repeating-linear-gradient(90deg, #E6EBF2 0 60%, transparent 60% 100%); background-size: 100% 100%; }
.dealsheet dl > div:nth-child(2n) dd { width: 70%; }
.dealsheet dl > div:nth-child(3n) dd { width: 55%; }
.dealsheet__note { font-size: 0.85rem; color: var(--slate); padding: 0 0.9rem 0.8rem; margin: 0; }

/* Grouped FAQ with a jump list */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 820px); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq-nav { position: sticky; top: 1.5rem; }
.faq-nav__title { font-family: var(--display); font-weight: 700; margin: 0 0 0.6rem; }
.faq-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.faq-nav li { margin: 0; }
.faq-nav a { display: block; padding: 0.4rem 0 0.4rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-family: var(--display); font-weight: 550; font-size: 0.95rem; }
.faq-nav a:hover { border-left-color: var(--flag); color: var(--ink); }
.faq-main > * + * { margin-top: 0; }
.faq-group__title { font-size: 1.25rem; font-stretch: 110%; margin: 2.5rem 0 0.75rem; display: flex; align-items: center; gap: 0.6rem; scroll-margin-top: 1rem; }
.faq-main > .faq-group__title:first-child { margin-top: 0; }
.faq-group__title::before { content: ""; width: 0.8rem; height: 0.65rem; background: var(--flag); clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%); flex: none; }
.faq-main .wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
	.faq-layout { grid-template-columns: 1fr; }
	.faq-nav { position: static; }
	.faq-nav ul { border-left: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
	.faq-nav a { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.45rem 0.9rem; margin: 0; }
}

/* Footer texture and flag mark */
.site-footer { position: relative; overflow: hidden;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 32px 32px; }
.site-footer::after {
	content: ""; position: absolute; right: clamp(-40px, -2vw, 0px); bottom: -30px; width: 210px; height: 280px; pointer-events: none; opacity: 0.16;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none' stroke='%23F3F5F2' stroke-width='0.6'%3E%3Cpath d='M4 2v30' stroke-linecap='round'/%3E%3Cpath d='M5.5 3.5h15l-4 4.75 4 4.75h-15z' stroke='%23F06292'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-footer__inner { position: relative; z-index: 1; }
.map-water { fill: #E9EEF0; }
.map-frame { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.site-footer::after { right: 3%; bottom: -60px; }
.map-water { fill: var(--paper); }
.map-county--far { fill: #FAFBFA; }
@media (max-width: 760px) { .site-footer::after { display: none; } }

/* Seller situations, laid out like lots on a plat */
.situations-band { background: var(--white); border-top: 1px solid var(--line); }
.situations {
	list-style: none; padding: 0; margin: 0 auto;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink);
}
.situations li {
	position: relative; margin: 0; padding: 1.5rem 1.5rem 1.6rem;
	border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
	background-image:
		linear-gradient(to right, rgba(20, 33, 61, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(20, 33, 61, 0.05) 1px, transparent 1px);
	background-size: 16px 16px;
}
.situations__lot { position: absolute; top: 0.6rem; right: 0.8rem; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.06em; color: #7C8B97; }
.art--situation { width: 140px; height: 105px; margin-bottom: 0.9rem; }
.art--situation .art-ink { stroke-width: 1.8; }
.art-flag-line { fill: none; stroke: var(--flag); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-flag-fill { fill: var(--flag); }
.art-paper { fill: var(--white); }
.situations h3 { font-size: 1.125rem; font-stretch: 108%; margin: 0 0 0.4rem; }
.situations p { margin: 0; font-size: 1rem; color: #2A3550; max-width: 34ch; }
.situations__more { margin-top: 1.5rem; }
@media (max-width: 960px) { .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.situations { grid-template-columns: 1fr; }
	.situations li { display: grid; grid-template-columns: 84px 1fr; column-gap: 1rem; padding: 1.1rem 1rem; }
	.art--situation { width: 84px; height: 63px; grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) { .situations__lot { display: none; } }
