/*
Theme Name: Edison Divi Child
Description: Presentation-layer child theme for the Vancouver Smart Real Estate / Edison Chua redesign. Holds the Edison design-system tokens, typography, spacing, buttons, image treatments and reusable component classes documented in DESIGN-SYSTEM.md. Do not edit parent Divi files; all overrides live here.
Template: Divi
Version: 1.1.0
*/

/*
 * WordPress loads a child theme's style.css as the theme's primary
 * stylesheet, and Divi's own enqueue targets that same file — so without
 * this @import, Divi's real grid/typography/colour CSS never loads at all
 * and only these overrides render. This is Elegant Themes' documented Divi
 * child-theme pattern, not a workaround.
 */
@import url("../Divi/style.css");

/* ==========================================================================
   Edison design tokens
   Source of truth: DESIGN-SYSTEM.md. Update both together.
   ========================================================================== */
:root {
	/* Approved Edison brand palette — 2026-10-20. Source of truth for hex
	   values; everything else in this file references the semantic
	   aliases below, never these five directly, so a future palette swap
	   only touches this block. */
	--edison-brand-gray-green: #60735b;
	--edison-brand-dark-olive: #141410;
	--edison-brand-dark-brown: #3c3b30;
	--edison-brand-gray-yellow: #b7b8aa;
	--edison-brand-gray-orange: #c0a04f;

	/* Semantic aliases — existing component CSS below keeps referencing
	   these names unchanged; only the values they resolve to changed. */
	--edison-color-ink: var(--edison-brand-dark-olive);        /* primary headings */
	--edison-color-ink-soft: var(--edison-brand-dark-brown);   /* body copy */
	--edison-color-paper: #faf8f3;        /* supporting background: warm off-white */
	--edison-color-paper-alt: #f1f2ed;    /* supporting background: subtle warm gray */
	--edison-color-surface: #ffffff;      /* card surfaces */
	--edison-color-forest: var(--edison-brand-gray-green);      /* primary buttons, interactive accents */
	--edison-color-forest-dark: var(--edison-brand-dark-olive); /* footer / dark sections */
	--edison-color-brass: var(--edison-brand-gray-orange);      /* accent details only — never small text on white, see .edison-eyebrow */
	--edison-color-line: #d7d9d2;         /* hairlines, borders */
	--edison-color-focus: var(--edison-brand-gray-green);       /* focus ring */

	/* Typography */
	--edison-font-heading: "Roboto", Arial, sans-serif;
	--edison-font-body: "Roboto", Arial, sans-serif;

	--edison-h1: clamp(2rem, 1.55rem + 2vw, 3.4rem);
	--edison-h2: clamp(1.6rem, 1.35rem + 1.1vw, 2.4rem);
	--edison-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
	--edison-h4: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	--edison-body: clamp(1rem, 0.96rem + 0.15vw, 1.125rem);
	--edison-small: 0.9rem;
	--edison-eyebrow: 0.8rem;

	/* Spacing */
	--edison-space-section: clamp(3rem, 2.2rem + 3vw, 6.5rem);
	--edison-space-row-gap: clamp(1.25rem, 1rem + 1vw, 2.5rem);
	--edison-space-card-pad: clamp(1.25rem, 1.1rem + 0.6vw, 2rem);

	/* Layout */
	--edison-container: 1200px;
	--edison-radius: 6px;
}

/* ==========================================================================
   Base and typography
   ========================================================================== */
body {
	font-family: var(--edison-font-body);
	color: var(--edison-color-ink);
	background-color: var(--edison-color-paper);
	font-size: var(--edison-body);
	line-height: 1.65;
}

.et_pb_section p {
	font-family: var(--edison-font-body);
	color: inherit;
	font-size: var(--edison-body);
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3 {
	font-family: var(--edison-font-heading) !important;
	color: var(--edison-color-ink);
	line-height: 1.15;
	font-weight: 600;
}

h1, .edison-h1 { font-size: var(--edison-h1); }
h2, .edison-h2 { font-size: var(--edison-h2); }
h3, .edison-h3 { font-size: var(--edison-h3); }
h4, .edison-h4 { font-size: var(--edison-h4); }

/* A section heading needed for a correct H1→H2→H3 outline, but with no
   approved visible title text for that section — standard offscreen-clip
   technique, not display:none, so screen readers still announce it. */
.edison-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.edison-eyebrow {
	display: inline-block;
	font-family: var(--edison-font-body);
	font-size: var(--edison-eyebrow);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	/* !important: `.et_pb_section p { color: inherit }` above is a class+
	   element selector, which beats this single-class selector on
	   specificity alone regardless of source order — without this, every
	   eyebrow label site-wide silently rendered as plain ink text instead
	   of the intended brass accent (caught via a contrast-ratio check that
	   read the *actual* computed color, not by eye). */
	/* Brass/gray-orange fails WCAG AA for small text on white (~2.3:1) —
	   per the approved palette's own contrast rule, eyebrow labels on a
	   light background use the gray-green brand colour instead. Brass
	   stays reserved for accent/decorative use and on-dark text, where it
	   has enough contrast against the dark-olive background. */
	color: var(--edison-color-forest) !important;
	margin: 0 0 0.75rem;
}

.edison-on-dark .edison-eyebrow { color: var(--edison-color-brass) !important; }
.edison-on-dark, .edison-on-dark h1, .edison-on-dark h2, .edison-on-dark h3, .edison-on-dark p, .edison-on-dark li {
	color: #ffffff;
}

/* ==========================================================================
   Containers and section rhythm
   ========================================================================== */
.edison-section {
	padding-top: var(--edison-space-section);
	padding-bottom: var(--edison-space-section);
}

.et_pb_row.edison-row {
	max-width: var(--edison-container);
	width: 89%;
}

.edison-section-intro {
	max-width: 640px;
	margin-bottom: clamp(2rem, 1.6rem + 1.5vw, 3.5rem);
}

.edison-section-intro.edison-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
/* Divi inserts a hover arrow over button text; this site uses text-only CTAs. */
a.et_pb_button::after { content: none !important; display: none !important; }

.edison-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--edison-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	padding: 0.9em 1.7em;
	border-radius: var(--edison-radius);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	min-height: 44px;
}

.edison-btn-primary {
	background-color: var(--edison-color-forest);
	color: #ffffff !important;
	border: 1px solid var(--edison-color-forest);
}
.edison-btn-primary:hover, .edison-btn-primary:focus-visible {
	background-color: var(--edison-color-forest-dark);
	border-color: var(--edison-color-forest-dark);
}

.edison-btn-secondary {
	background-color: transparent;
	color: var(--edison-color-forest) !important;
	border: 1px solid var(--edison-color-forest);
}
.edison-on-dark .edison-btn-secondary {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.6);
}
.edison-btn-secondary:hover, .edison-btn-secondary:focus-visible {
	background-color: rgba(96, 115, 91, 0.12);
}

.edison-btn-text {
	background: none;
	border: none;
	padding: 0;
	color: var(--edison-color-forest) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	min-height: auto;
}

a.edison-btn:focus-visible,
a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--edison-color-focus);
	outline-offset: 2px;
}

/* ==========================================================================
   Hero background video (Vimeo)
   The iframe itself is never present in markup until JS (functions.php)
   decides prefers-reduced-motion is not set — see that file's comment for
   why. The section's own background-color is the dark-forest token year-
   round (not just "behind the video"), so a no-JS/reduced-motion visitor
   still gets a fully readable, intentionally-styled dark hero, not a
   broken/half-themed fallback.
   ========================================================================== */
.edison-hero { position: relative; overflow: hidden; }

.edison-hero-video-row {
	position: absolute !important;
	inset: 0;
	/* Divi's own default .et_pb_row rule caps row width (observed ~1024px
	   content-width cap winning over inset:0 here, leaving the video
	   narrower than the section and not actually covering it) — override
	   explicitly since this row is a full-bleed background layer, not a
	   content row. */
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 0;
	pointer-events: none;
}
.edison-hero-video-row .et_pb_column { padding: 0 !important; height: 100%; }
/* Divi wraps every Code module in its own position:relative wrappers
   (.et_pb_code / .et_pb_code_inner) that collapse to 0 height because their
   only child is the absolutely-positioned video wrap below — a classic
   abs-in-relative-with-no-height trap. Making them position:static removes
   them as containing blocks so .edison-hero-video-wrap's inset:0 resolves
   against the column (which does have the row's real height) instead. */
.edison-hero-video-row .et_pb_code,
.edison-hero-video-row .et_pb_code_inner {
	position: static !important;
	height: 100% !important;
}

.edison-hero-video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
/* Overlay sits between the video and the hero copy so the headline/CTAs
   stay readable without the video being visually overpowering — the
   lightest opacity that still holds contrast against a bright video frame. */
.edison-hero-video-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 16, 0.5); /* dark-olive brand token, see --edison-brand-dark-olive */
	z-index: 1;
}
.edison-hero-video-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	/* Classic 16:9-cover trick: oversize on whichever axis the container is
	   relatively narrower on, then center-crop via the transform below —
	   equivalent to background-size:cover without distorting the video. */
	width: 177.78vh;
	height: 56.25vw;
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	border: 0;
}

.edison-hero-content-row { position: relative; z-index: 2; }

/* ==========================================================================
   Cards and components
   ========================================================================== */
.edison-card {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	padding: var(--edison-space-card-pad);
	height: 100%;
}

.edison-card img {
	border-radius: var(--edison-radius);
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.edison-card.edison-card--tall img {
	aspect-ratio: 3 / 4;
}

.edison-pathway-card {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	height: 100%;
}

/* Keep the paired homepage cards and their calls to action aligned. */
@media (min-width: 981px) {
	.home .et_pb_row:has(.edison-pathway-card) {
		display: flex;
		align-items: stretch;
	}
	.home .et_pb_row:has(.edison-pathway-card) > .et_pb_column {
		display: flex;
		flex-direction: column;
	}
	.home .et_pb_row:has(.edison-pathway-card) > .et_pb_column > .et_pb_text {
		flex: 1 0 auto;
	}
	.home .et_pb_row:has(.edison-pathway-card) .et_pb_text_inner { height: 100%; }
	.home .edison-pathway-card { box-sizing: border-box; }
}

.edison-area-card, .edison-content-card {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	overflow: hidden;
	height: 100%;
}

.edison-area-card img, .edison-content-card img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
	height: auto;
	display: block;
}

.vsre-area-illustration { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--edison-radius); }

.edison-area-card .et_pb_blurb_content, .edison-content-card .et_pb_blurb_content {
	padding: 1.25rem;
}

.edison-testimonial {
	background-color: var(--edison-color-paper-alt);
	border-left: 3px solid var(--edison-color-brass);
	border-radius: var(--edison-radius);
	padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
}

.edison-badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: var(--edison-small);
	color: var(--edison-color-ink-soft);
}

/* ==========================================================================
   About / Trust system
   Used by: About, Edison Chua, Reviews.
   ========================================================================== */
.edison-value-card {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	height: 100%;
}
.edison-value-card .edison-eyebrow { margin-bottom: 0.5rem; }

.edison-review-card {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-left: 3px solid var(--edison-color-brass);
	border-radius: var(--edison-radius);
	padding: clamp(1.25rem, 1.05rem + 0.8vw, 2rem);
	height: 100%;
}
.edison-review-card p:first-of-type {
	font-size: 1.05rem;
}
.edison-review-attribution {
	display: block;
	margin-top: 1rem;
	font-size: var(--edison-small);
	color: var(--edison-color-ink-soft);
	font-style: normal;
}

.edison-empty-state {
	border: 1px dashed var(--edison-color-line);
	border-radius: var(--edison-radius);
	padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	color: var(--edison-color-ink-soft);
	background-color: var(--edison-color-paper-alt);
}

/* ==========================================================================
   Contact / Conversion system
   Used by: Contact. Reusable for future consultation/valuation CTAs.
   ========================================================================== */
.edison-form {
	max-width: 640px;
}
.edison-form .edison-field {
	margin-bottom: 1.25rem;
}
.edison-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	color: var(--edison-color-ink);
}
.edison-form .edison-required {
	color: var(--edison-color-forest);
}
.edison-form input[type="text"],
.edison-form input[type="email"],
.edison-form input[type="tel"],
.edison-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--edison-font-body);
	font-size: 1rem;
	padding: 0.75em 0.9em;
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	background-color: var(--edison-color-surface);
	color: var(--edison-color-ink);
	min-height: 44px;
}
.edison-form textarea {
	min-height: 140px;
	resize: vertical;
}
.edison-form input:focus-visible,
.edison-form textarea:focus-visible {
	outline: 3px solid var(--edison-color-focus);
	outline-offset: 1px;
	border-color: var(--edison-color-focus);
}
/* No CSS-only "invalid" red border: :invalid matches an empty required
   field from first paint (there is no placeholder attribute here for
   :not(:placeholder-shown) to key off), which would redden every required
   field before the visitor has touched the form. Browser-native validation
   (the built-in tooltip on submit) plus the server-side error notice above
   the form are the error affordances for this slice. */
.edison-form .edison-field-hint {
	font-size: var(--edison-small);
	color: var(--edison-color-ink-soft);
	margin-top: 0.3rem;
}
.edison-form-notice {
	border-radius: var(--edison-radius);
	padding: 1em 1.25em;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}
.edison-form-notice--success {
	background-color: var(--edison-color-paper-alt);
	border: 1px solid var(--edison-color-forest);
	color: var(--edison-color-forest-dark);
}
.edison-form-notice--error {
	background-color: #fbeae6;
	border: 1px solid #b3402f;
	color: #7a2a1c;
}
/* honeypot field: hidden from sighted/pointer users, still in tab order for
   bots that fill every field blindly, so it must stay screen-reader hidden
   without using display:none (which some bots skip). */
.edison-form .edison-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.edison-contact-pathways {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
.edison-contact-pathways li {
	margin-bottom: 0.75rem;
	font-size: 1.05rem;
}
.edison-contact-pathways a {
	color: var(--edison-color-forest);
	font-weight: 600;
	text-decoration: none;
}
.edison-contact-pathways a:hover, .edison-contact-pathways a:focus-visible {
	text-decoration: underline;
}

/* ==========================================================================
   Resources / Editorial system
   Used by: Resources, Vancouver Real Estate Market, Market Reports, Buyer
   Resources, Seller Resources, Financing, Blog archive.
   ========================================================================== */
.edison-resource-card {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.edison-resource-card .edison-resource-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.edison-resource-card .edison-eyebrow { margin-bottom: 0.4rem; }
.edison-resource-card p { flex: 1; }

.edison-topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.edison-topic-list li {
	border-bottom: 1px solid var(--edison-color-line);
	padding: 1rem 0;
}
.edison-topic-list li:first-child { padding-top: 0; }
.edison-topic-list a {
	color: var(--edison-color-ink);
	font-weight: 600;
	text-decoration: none;
	font-size: 1.05rem;
}
.edison-topic-list a:hover, .edison-topic-list a:focus-visible {
	color: var(--edison-color-forest);
	text-decoration: underline;
}
.edison-topic-list p {
	margin: 0.35rem 0 0;
	color: var(--edison-color-ink-soft);
	font-size: var(--edison-small);
}

/* Blog / post archive cards (Divi's default blog module output) */
.et_pb_post {
	background-color: var(--edison-color-surface);
	border: 1px solid var(--edison-color-line);
	border-radius: var(--edison-radius);
	overflow: hidden;
	padding-bottom: 1.25rem !important;
}
.et_pb_post .entry-featured-image-url img {
	border-radius: 0;
}
.et_pb_post h2 a {
	font-family: var(--edison-font-heading);
	color: var(--edison-color-ink);
}
.et_pb_post .post-meta {
	color: var(--edison-color-ink-soft);
	font-size: var(--edison-small);
}

/* ==========================================================================
   Service / process / area system
   Used by: the Buy, Sell, situational and Areas-editorial page families.
   ========================================================================== */
.edison-process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: edison-step;
}
.edison-process-list li {
	position: relative;
	padding: 0 0 1.5rem 3.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--edison-color-line);
	list-style-type: none !important;
}
.edison-process-list li::marker {
	content: "";
}
.edison-process-list li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.edison-process-list li::before {
	counter-increment: edison-step;
	content: counter(edison-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background-color: var(--edison-color-forest);
	color: #fff;
	font-family: var(--edison-font-heading);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}
.edison-process-list h3, .edison-process-list h4 {
	margin-top: 0.1rem;
	margin-bottom: 0.4rem;
}
.edison-process-list p {
	margin: 0;
	color: var(--edison-color-ink-soft);
}

.edison-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}
.edison-checklist li {
	position: relative;
	padding-left: 1.8rem;
}
.edison-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 0.9rem;
	height: 0.9rem;
	border: 2px solid var(--edison-color-forest);
	border-radius: 3px;
}
.edison-checklist li::after {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.55em;
	width: 0.4rem;
	height: 0.2rem;
	border-left: 2px solid var(--edison-color-forest);
	border-bottom: 2px solid var(--edison-color-forest);
	transform: rotate(-45deg);
}

.edison-callout {
	background-color: var(--edison-color-paper-alt);
	border-radius: var(--edison-radius);
	padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	border-left: 3px solid var(--edison-color-forest);
}

/* A clearly labelled reserved location for a future MRP/IDX component.
   Never fill this with fabricated listings; it stays a static, styled
   placeholder until the Phase 5 integration lands. */
.edison-future-mrp-slot {
	border: 1px dashed var(--edison-color-line);
	border-radius: var(--edison-radius);
	padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	background-color: var(--edison-color-paper-alt);
	text-align: center;
}
.edison-future-mrp-slot .edison-eyebrow {
	margin: 0 auto 0.5rem;
}

.edison-area-stat-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	list-style: none;
	margin: 0 0 0;
	padding: 0;
}
.edison-area-stat-list li {
	min-width: 140px;
}
.edison-area-stat-list .edison-area-stat-label {
	display: block;
	font-size: var(--edison-small);
	color: var(--edison-color-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.edison-area-stat-list .edison-area-stat-value {
	display: block;
	font-family: var(--edison-font-heading);
	font-size: 1.3rem;
	color: var(--edison-color-ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
#main-footer, #footer-bottom {
	background-color: var(--edison-color-forest-dark);
}
#main-footer .footer-widget h4, #main-footer .footer-widget h2 { display: none; }
.edison-footer-col { color: var(--edison-brand-gray-yellow); }
.edison-footer-title {
	font-family: var(--edison-font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 0.75rem;
}
#main-footer .edison-footer-list,
#main-footer ul.edison-footer-list {
	list-style: none !important;
	margin: 0;
	padding: 0;
}
.edison-footer-list li {
	list-style: none;
	margin-bottom: 0.5rem;
}
.edison-footer-list li::marker { content: ""; }
/* Divi's own dynamic per-page CSS includes ".footer-widget a{color:#fff}"
   at equal specificity, loaded after this stylesheet — it silently wins
   the cascade tie without !important (same class-of-Divi-defaults pattern
   found earlier with .et_pb_code_inner's position:relative). */
.edison-footer-list a {
	color: var(--edison-brand-gray-yellow) !important;
	text-decoration: none;
}
.edison-footer-list a:hover, .edison-footer-list a:focus-visible {
	color: #ffffff !important;
	text-decoration: underline;
}
.edison-footer-note {
	font-size: var(--edison-small);
	color: var(--edison-brand-gray-yellow);
	margin-top: 1rem;
}
#footer-bottom, #footer-info {
	color: var(--edison-brand-gray-yellow) !important;
}
#footer-bottom a, #footer-info a {
	color: var(--edison-brand-gray-yellow) !important;
}
#footer-info { float: none; }
.edison-footer-legal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
}
.edison-footer-legal-marks {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.edison-footer-housing {
	display: block;
	width: 112px;
	height: 62px;
	font-size: 0;
	flex: 0 0 auto;
	background: #fff url('assets/equal-housing-realtor.png') center / 100px auto no-repeat;
}
@media (max-width: 767px) {
	.edison-footer-legal {
		align-items: center;
		text-align: center;
	}
	.edison-footer-legal, .edison-footer-legal-marks {
		justify-content: center;
	}
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
#main-header, #top-header {
	background-color: var(--edison-color-surface);
}
/* Allow Divi's vertical alignment helper to span the full header height. */
#main-header .logo_container { max-height: none; }
/*
 * Temporary text-based site identity.
 * No approved Edison/VSRE logo asset exists yet (see CLIENT-CONTENT-NEEDED.md)
 * — Divi's own stock "D" placeholder logo.png was still rendering as the
 * de facto brand mark, which is worse than no logo at all. Hide that image
 * and show a restrained text wordmark instead, using the same inline-block/
 * vertical-align:middle centering the image relied on (logo_container
 * already has a same-height .logo_helper sibling span providing the
 * vertical anchor) so it sits in the same visual position. Replace this
 * block with a real <img>-based logo once an approved asset is supplied.
 */
.logo_container #logo, #logo_container #logo { display: none; }
/* Put the visible wordmark inside Divi's existing home link. */
.logo_container > a, #logo_container > a {
	display: inline-block;
	vertical-align: middle;
}
.logo_container > a::before, #logo_container > a::before {
	/* Short initialism, not the full name: the header's nav float starts
	   close enough to the logo (measured ~97px of clearance at 1440px
	   desktop) that the full "Vancouver Smart Real Estate" wordmark
	   (~220px) genuinely overlapped the first nav link — confirmed via
	   getBoundingClientRect, not just visual inspection. "VSRE" fits the
	   same footprint the old 43px image logo had, with zero nav/overlap
	   risk, while still being a restrained textual identity rather than
	   Divi's own placeholder mark. Swap for a real <img> logo once an
	   approved asset exists — see CLIENT-CONTENT-NEEDED.md. */
	content: "VSRE";
	display: inline-block;
	vertical-align: middle;
	font-family: var(--edison-font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	color: var(--edison-color-ink);
	white-space: nowrap;
}
.logo_container > a:focus-visible, #logo_container > a:focus-visible {
	outline: 2px solid var(--edison-color-forest);
	outline-offset: 4px;
}
.et_mobile_menu { border-top-color: var(--edison-color-forest) !important; }
#top-menu li a {
	font-family: var(--edison-font-body);
	font-weight: 600;
}
#top-menu li.current-menu-item > a,
#top-menu li a:hover,
#top-menu li a:focus-visible,
.et_mobile_menu li.current-menu-item > a {
	color: var(--edison-color-forest) !important;
	opacity: 1;
}
#et_search_icon:hover,
.mobile_menu_bar::before {
	color: var(--edison-color-forest);
}
/* The full menu needs more room than Divi's default 980px breakpoint. */
@media (min-width: 981px) and (max-width: 1439px) {
	#top-menu-nav { display: none; }
	#et_mobile_nav_menu { display: block; }
	#et-top-navigation { padding-top: 24px !important; }
}

/* Apply Roboto to text-bearing site chrome only — never Divi/ET's own icon
   font (ETmodules), which these selectors deliberately avoid touching. */
button, input, select, textarea,
.et_pb_module, .et_pb_button,
#main-footer, #main-header {
	font-family: var(--edison-font-body);
}

/* Divi's default mobile menu already stacks; keep touch targets comfortable */
.et_mobile_menu li a {
	padding: 0.9em 0 !important;
	font-size: 1rem;
}
#et_mobile_nav_menu .mobile_nav.opened .select_page { min-height: 44px; }

/*
 * Mobile menu hierarchy.
 * Divi's stock mobile menu prints all 43 primary-nav links flat, with no
 * visual distinction between the 9 top-level items and their children. A
 * collapsible accordion was tried here but Divi's own mobile-nav script
 * rebuilds #mobile_menu asynchronously and re-applies its own inline
 * display state after our JS ran, so the collapse could not be made
 * reliable in the time available. Documented as a known limitation in
 * docs/qa; this CSS-only pass gives the two levels distinct weight,
 * indentation and dividers so the structure still reads correctly even
 * fully expanded.
 */
.et_mobile_menu > li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.et_mobile_menu > li > a {
	font-weight: 600;
	font-size: 1.05rem;
}
.et_mobile_menu .sub-menu {
	padding-left: 1rem;
	border-left: 2px solid var(--edison-color-line);
	margin: 0.25em 0 0.5em;
}
.et_mobile_menu .sub-menu li a {
	font-size: 0.95rem;
	font-weight: 400;
	padding: 0.75em 0 !important;
}

/* ==========================================================================
   Root-cause fix for the 390px clipping defect
   --------------------------------------------------------------------------
   The homepage previously rendered through Divi's default sidebar page
   layout, which pulled in the theme's built-in WordPress "Search" block
   widget (sidebar-1). That core search form renders with intrinsic input
   sizing that does not shrink below ~400px, so on a 390px viewport it
   forced the #main-content flex row wider than the viewport and clipped
   the right edge. The real fix is removing the sidebar from the homepage
   (Divi page-layout meta set to full width) rather than hiding overflow.
   These two rules are a defensive backstop only, scoped to the sidebar
   widget area itself, in case a future page still opts into a sidebar
   layout with the same default widgets.
   ========================================================================== */
/* No page in this project intentionally uses the default WordPress
   sidebar (search + Recent Posts + Recent Comments widgets) — every page
   is Divi full-width content. The blog archive specifically rendered it
   by default (Divi's "Blog & Category Pages Sidebar" setting, not a
   per-post layout meta, so the usual _et_pb_page_layout fix did not apply
   here) with unstyled default widgets. Hide it everywhere rather than
   leave one inconsistent sidebar layout on the site. */
.et_right_sidebar #sidebar,
.et_left_sidebar #sidebar {
	display: none;
}
.et_right_sidebar #left-area,
.et_left_sidebar #left-area {
	width: 100%;
	float: none;
}

#sidebar .widget input,
#sidebar .widget .wp-block-search__input {
	max-width: 100%;
	box-sizing: border-box;
}
.wp-block-search__button-outside .wp-block-search__inside-wrapper {
	flex-wrap: wrap;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 980px) {
	.et_pb_row.edison-row { width: 92%; }
}

@media (max-width: 767px) {
	:root { --edison-space-section: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
	.et_pb_row.edison-row { width: 90%; }
	.edison-pathway-card, .edison-testimonial { padding: 1.5rem; }
}

@media (max-width: 479px) {
	.et_pb_row.edison-row { width: 92%; }
	.edison-btn { width: 100%; }
	.edison-card, .edison-pathway-card, .edison-testimonial { padding: 1.25rem; }
}

/* ==========================================================================
   Media placeholders
   --------------------------------------------------------------------------
   No approved Edison photography or licensed Vancouver imagery exists yet.
   Rather than use generic stock photography or invented images, these
   panels mark an intentional, clearly labelled location for approved media
   once it is supplied. Replace with a real <img> when assets are approved.
   ========================================================================== */
.edison-media-placeholder {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	height: 100%;
	width: 100%;
	border-radius: var(--edison-radius);
	background: linear-gradient(155deg, var(--edison-color-forest) 0%, var(--edison-color-forest-dark) 100%);
	overflow: hidden;
}
.edison-media-placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
}
.edison-media-placeholder__label {
	position: relative;
	margin: 1.25rem;
	padding: 0.6em 1em;
	font-size: var(--edison-small);
	font-weight: 600;
	color: #ffffff;
	background-color: rgba(20, 20, 16, 0.76);
	border: 1px dashed rgba(255, 255, 255, 0.5);
	border-radius: var(--edison-radius);
}
.edison-media-placeholder--square { aspect-ratio: 4 / 5; min-height: 0; }
.edison-media-placeholder--wide { aspect-ratio: 16 / 9; min-height: 0; }

/*
 * myRealPage IDX scoped styling.
 * The account/domain registration for account 67444 is not yet confirmed
 * active on myRealPage's side; responses are currently empty or partial.
 * This block is deliberately minimal (layout/spacing only) until real MRP
 * markup is actually visible to style against; see
 * docs/qa/2026-09-28-divi4-recovery.md and CLIENT-CONTENT-NEEDED.md.
 * The "temporarily unavailable" message for an empty response is real page
 * content (.vsre-mrp-notice, authored alongside each shortcode), not a CSS
 * :empty trick — that approach was tried and silently did not fire here,
 * most likely due to a Divi base reset on ::before/::after content.
 */
.vsre-mrp {
	margin: 0 auto;
	max-width: 100%;
}
.vsre-mrp-notice {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	border: 1px dashed var(--edison-color-line);
	border-radius: var(--edison-radius);
	background-color: var(--edison-color-paper-alt);
	color: var(--edison-color-ink-soft);
	font-size: var(--edison-small);
	text-align: center;
}

/* Supplied VSRE / Oakwyn identity and Edison portrait. */
.logo_container > a::before, #logo_container > a::before {
	content: "VSRE";
	width: 138px;
	height: 60px;
	font-size: 0;
	background: url('assets/vsre-oakwyn-logo.png') center / contain no-repeat;
}
/* Divi reduces the desktop header to 54px when sticky; scale the mark to fit. */
@media (min-width: 981px) {
	#main-header.et-fixed-header .logo_container > a::before {
		width: 101px;
		height: 44px;
	}
}
.edison-portrait {
	display: block;
	width: 100%;
	max-height: 650px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--edison-radius);
}

/* Oakwyn contact information panel on the homepage. */
.vsre-home-contact .edison-oakwyn-contact {
	max-width: 27rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--edison-color-border);
	border-radius: var(--edison-radius);
	background: var(--edison-color-paper-alt);
}
.edison-oakwyn-contact__logo {
	display: block;
	width: min(100%, 13rem);
	height: auto;
	margin: 0 0 2rem;
}
.edison-oakwyn-contact h2 { margin-bottom: 1.25rem; }
.edison-oakwyn-contact p { margin: 0 0 .45rem; }
.edison-oakwyn-contact a { color: inherit; text-decoration-thickness: 1px; }
@media (max-width: 980px) {
	.vsre-home-contact .edison-oakwyn-contact { max-width: none; }
}

/* Homepage visual pass: one portrait, full-bleed video and aligned actions. */
.edison-hero-video-wrap { container-type: size; }
.edison-hero-video-wrap .fluid-width-video-wrapper {
	position: static !important;
	height: 100% !important;
	padding: 0 !important;
}
.edison-hero-video-wrap iframe {
	top: 50% !important;
	left: 50% !important;
	width: max(100cqw, 177.7778cqh) !important;
	height: max(100cqh, 56.25cqw) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
}
.edison-hero-content-row > .et_pb_column:first-child {
	width: 100% !important;
	max-width: 720px;
	margin-right: 0 !important;
}
.edison-hero-content-row > .et_pb_column:nth-child(2) { display: none; }
.edison-hero-content-row .et_pb_button_module_wrapper {
	display: inline-block;
	margin: 0 0.75rem 0.75rem 0 !important;
	vertical-align: top;
}
.edison-hero-content-row .et_pb_button_module_wrapper .edison-btn {
	margin: 0 !important;
}
.edison-btn { box-sizing: border-box; max-width: 100%; }

/* Use a contrast-safe deep gold for small text on light backgrounds. */
.et_builder_inner_content a:not(.edison-btn):not(.et_pb_button) { color: #80621a; }
.et_builder_inner_content a.edison-btn-text { color: #80621a !important; }
.et_builder_inner_content .edison-on-dark a.edison-btn-text { color: var(--edison-color-brass) !important; }
.et_builder_inner_content .edison-on-dark a:not(.edison-btn):not(.et_pb_button),
#main-footer .edison-footer-list a,
#main-footer .edison-footer-list li::before { color: var(--edison-color-brass) !important; }
.vsre-idx-embed { font-family: var(--edison-font-body); }
.vsre-idx-hero-link a { color: #80621a !important; }
.et_builder_inner_content .edison-on-dark .vsre-idx-hero-link a:not(.edison-btn):not(.et_pb_button) { color: #80621a !important; }

/* Centre the home page closing calls to action beneath their introduction. */
.home .edison-on-dark .et_pb_column:has(> .edison-section-intro.edison-center) > .et_pb_button_module_wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}
@media (max-width: 767px) {
	.edison-hero-content-row .et_pb_button_module_wrapper {
		display: block;
		margin-right: 0 !important;
	}
}

/* Homepage finishing pass. Preserve the unfinished blocks in Divi so they
   can be restored when verified content is available. */
.home .vsre-home-social,
.home .et_pb_section:has(.edison-content-card .edison-media-placeholder),
.home .et_pb_section:has(.edison-testimonial) {
	display: none;
}
.home .edison-area-card {
	box-shadow: 0 12px 34px rgba(20,20,16,.07);
}
.home .edison-area-card img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.home .edison-pathway-card {
	border-color: rgba(96,115,91,.24);
	box-shadow: 0 12px 34px rgba(20,20,16,.05);
}
.home .edison-on-dark .edison-btn-primary,
.home .edison-on-dark .edison-btn-primary:hover {
	background-color: #60735b !important;
	border-color: #60735b !important;
	color: #fff !important;
}
.home .edison-on-dark .et_pb_column:has(> .edison-section-intro.edison-center) > .et_pb_button_module_wrapper {
	margin: 0 auto .75rem !important;
}
.home #top-menu .current-menu-item > a,
.home #top-menu .current-menu-ancestor > a,
.home #et_top_search .et-search-field:focus,
.home #main-footer .edison-footer-list li::marker {
	color: #b08c30 !important;
}
@media (max-width: 767px) {
	.home .edison-hero-content-row .et_pb_button_module_wrapper { width: 100%; }
	.home .edison-hero-content-row .et_pb_button_module_wrapper .edison-btn { width: 100%; }
}

/* Stable section backgrounds: Divi's numbered dynamic classes may shift after edits. */
.home .edison-form-notice {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	left: 1rem;
	z-index: 100000;
	max-width: 36rem;
	margin: 0 0 0 auto;
	box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.home .edison-form-notice .edison-notice-dismiss { display: inline-block; margin-left: .5rem; text-decoration: underline; }
.home #main-content .et_pb_section.vsre-home-hero, .home #main-content .et_pb_section.vsre-home-closing { background-color: #141410 !important; }
.home #main-content .et_pb_section.vsre-home-search { background-color: #60735b !important; }
.home #main-content .et_pb_section.vsre-home-areas, .home #main-content .et_pb_section.vsre-home-social, .home #main-content .et_pb_section.vsre-home-trust { background-color: #f1f2ed !important; }
.home #main-content .et_pb_section.vsre-home-pathways, .home #main-content .et_pb_section.vsre-home-featured, .home #main-content .et_pb_section.vsre-home-about,
.home #main-content .et_pb_section.vsre-home-resources, .home #main-content .et_pb_section.vsre-home-contact { background-color: #fff !important; }
