/* Revision 5 additive component modifiers. No service text, rates, URLs or media.
   Integrate after current approved theme/component CSS. Does not target waste tabs. */

/* A single reading flow; only the relevant media section wraps a small image. */
.rex-brand-ds .rex-onpage-seo { max-width:1180px; width:100%; column-count:1; }
.rex-brand-ds .rex-onpage-seo .rex-seo-section--media { display:flow-root; }
.rex-brand-ds .rex-onpage-seo .rex-seo-section--media>.rex-seo-media,
.rex-brand-ds .rex-onpage-seo .rex-seo-section--media>img { float:right; width:clamp(350px,38%,450px); max-width:42%; margin:0 0 24px 28px; }
.rex-brand-ds .rex-onpage-seo .rex-seo-media { padding:0; }
.rex-brand-ds .rex-onpage-seo .rex-seo-media img,
.rex-brand-ds .rex-onpage-seo .rex-seo-section--media>img { display:block; height:auto; aspect-ratio:var(--rex-media-ratio,auto); object-fit:contain; border-radius:16px; }
.rex-brand-ds .rex-onpage-seo .rex-seo-media img { width:100%; max-width:100%; }
.rex-brand-ds .rex-onpage-seo .rex-seo-media figcaption { margin-top:8px; font-size:14px; line-height:1.45; }
.rex-brand-ds .rex-onpage-seo .rex-seo-section--media .seo-list { display:flow-root; }
.rex-brand-ds .rex-onpage-seo .rex-seo-section { clear:both; }

/* Existing valid dl grouped by div.rex-faq-pair, each containing dt then dd.
   columns=2 is a data-adapter setting; the existing FAQ toggle remains in use. */
.rex-brand-ds .rex-onpage-faq dl.rex-faq--columns-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; row-gap:16px; align-items:start; }
.rex-brand-ds .rex-onpage-faq .rex-faq-pair { min-width:0; }
.rex-brand-ds .rex-onpage-faq .rex-faq-pair dt { margin-top:0; }
.rex-brand-ds .rex-onpage-faq .rex-faq-button { min-height:64px; }
.rex-brand-ds .rex-onpage-faq .rex-faq-button:focus-visible { outline:3px solid #8b6500; outline-offset:4px; }

/* Keep MD disclosure semantics, full lead paragraph and original CTA styling. */
.rex-brand-md .rex-onpage-seo .rex-disclosure-button { display:flex; width:fit-content; max-width:100%; margin:20px auto 0; text-align:center; justify-content:center; min-height:48px; }

/* Only the new area comparison / housing estimate components use these rules.
   All money is one span, headings may wrap; never hide whole-page overflow. */
.rex-area-comparison,.rex-housing-estimates { min-width:0; margin:32px 0; color:var(--rx-ink); }
.rex-area-comparison .rex-estimate-label,.rex-housing-estimates .rex-estimate-label { display:inline-block; margin:0 0 12px; font-family:inherit; font-size:15px; font-weight:600; line-height:1.4; }
.rex-area-comparison .rex-estimate-intro,.rex-housing-estimates .rex-estimate-intro,
.rex-area-comparison .rex-estimate-note,.rex-housing-estimates .rex-estimate-note { margin:12px 0; font-size:16px; line-height:1.6; }
.rex-estimate-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; border:1px solid var(--rx-line); border-radius:var(--rx-radius,12px); }
.rex-estimate-scroll:focus-visible { outline:3px solid var(--rx-link); outline-offset:3px; }
.rex-area-comparison table,.rex-housing-estimates table { width:100%; margin:0; border-collapse:separate; border-spacing:0; table-layout:auto; background:var(--rx-surface); color:var(--rx-ink); }
.rex-area-comparison caption,.rex-housing-estimates caption { padding:16px; text-align:left; color:var(--rx-ink); font-size:16px; font-weight:600; line-height:1.5; }
.rex-area-comparison th,.rex-area-comparison td,
.rex-housing-estimates th,.rex-housing-estimates td { padding:16px 14px; text-align:left; vertical-align:top; border-bottom:1px solid var(--rx-line); color:var(--rx-ink); font-size:16px; line-height:1.5; }
.rex-area-comparison thead th,.rex-housing-estimates thead th { background:var(--rx-panel); font-weight:700; }
.rex-area-comparison table { min-width:990px; }
.rex-area-comparison th:first-child,.rex-area-comparison td:first-child { min-width:150px; width:150px; position:sticky; left:0; z-index:1; background:var(--rx-surface); box-shadow:1px 0 0 var(--rx-line); }
.rex-area-comparison thead th:first-child { z-index:2; background:var(--rx-panel); }
.rex-area-comparison th:not(:first-child),.rex-area-comparison td:not(:first-child) { min-width:160px; }
.rex-estimate-money,.rex-estimate-rate { display:inline-block; white-space:nowrap; overflow-wrap:normal; word-break:normal; font-variant-numeric:tabular-nums; }
.rex-estimate-rate { display:block; margin-top:4px; font-size:14px; font-weight:400; }
.rex-estimate-area-basis { display:block; margin-top:4px; font-size:14px; font-weight:400; }
.rex-estimate-scroll-hint { display:none; margin:8px 0 0; font-size:14px; line-height:1.4; }

/* Native radio group: Arrow keys/Tab/Space work without a custom tab model.
   Adapted data controls existing source-HTML tables, not a new lead calculator. */
.rex-brand-md .rex-housing-picker { padding:0; margin:20px 0; border:0; min-width:0; }
.rex-brand-md .rex-housing-picker legend { padding:0; margin:0 0 12px; font-size:18px; font-weight:600; }
.rex-brand-md .rex-housing-options { display:flex; flex-wrap:wrap; gap:10px; }
.rex-brand-md .rex-housing-option { display:flex; position:relative; min-width:0; cursor:pointer; }
.rex-brand-md .rex-housing-option input { position:absolute; width:1px; height:1px; padding:0; margin:0; opacity:0; }
.rex-brand-md .rex-housing-option span { display:flex; align-items:center; min-height:48px; padding:12px 16px; border:1px solid var(--rx-line); border-radius:var(--rx-radius); color:var(--rx-ink); background:var(--rx-surface); font-size:16px; font-weight:600; line-height:1.35; }
.rex-brand-md .rex-housing-option input:checked+span { background:var(--main-color); border-color:var(--main-color); color:#282828; }
.rex-brand-md .rex-housing-option input:focus-visible+span { outline:3px solid var(--main-color); outline-offset:3px; }
.rex-brand-md .rex-housing-option:hover span { border-color:var(--main-color); }
.rex-brand-md .rex-housing-estimates table { table-layout:fixed; }
.rex-brand-md .rex-housing-estimates th:first-child,.rex-brand-md .rex-housing-estimates td:first-child { width:42%; }
.rex-brand-md .rex-housing-estimates th:nth-child(2),.rex-brand-md .rex-housing-estimates td:nth-child(2) { width:58%; }
.rex-housing-panel[hidden] { display:none!important; }

@media(max-width:1023px) {
 .rex-brand-ds .rex-onpage-seo .rex-seo-section--media>.rex-seo-media,
 .rex-brand-ds .rex-onpage-seo .rex-seo-section--media>img { float:none; width:100%; max-width:100%; margin:0 0 24px; }
 .rex-area-comparison .rex-estimate-scroll-hint { display:block; }
}
@media(max-width:767px) {
 .rex-brand-ds .rex-onpage-faq dl.rex-faq--columns-2 { grid-template-columns:minmax(0,1fr); gap:16px; }
 .rex-brand-ds .rex-onpage-seo .rex-seo-media img,
 .rex-brand-ds .rex-onpage-seo .rex-seo-section--media>img { border-radius:12px; }
 .rex-area-comparison th,.rex-area-comparison td,
 .rex-housing-estimates th,.rex-housing-estimates td { padding:12px 10px; font-size:15px; }
 .rex-area-comparison th:first-child,.rex-area-comparison td:first-child { min-width:132px; width:132px; }
 .rex-brand-md .rex-housing-option { flex:1 1 calc(50% - 10px); }
 .rex-brand-md .rex-housing-option span { width:100%; padding:12px 10px; font-size:15px; }
 .rex-brand-md .rex-housing-estimates th:first-child,.rex-brand-md .rex-housing-estimates td:first-child { width:43%; }
 .rex-brand-md .rex-housing-estimates th:nth-child(2),.rex-brand-md .rex-housing-estimates td:nth-child(2) { width:57%; }
 .rex-brand-md .rex-onpage-seo .rex-disclosure-button { margin-top:18px; min-height:48px; }
}

/* Match original span ribbon typography after semantic H3 substitution. */
.rex-brand-md .services__item .item-ribbon--title>h3{display:block;overflow:hidden;text-overflow:clip;font-family:inherit!important;font-weight:800!important;line-height:1.1!important;color:#111!important;padding:.75vw 1.05vw;font-size:1.15vw!important;letter-spacing:0;margin:0}
@media(max-width:768px){.rex-brand-md .services__item .item-ribbon--title>h3{padding:2.2vw 3vw;font-size:4.6vw!important}}

/* Independent vertical FAQ columns. A single dl and source question order remain intact. */
.rex-brand-ds .rex-onpage-faq dl.rex-faq--columns-2,
.rex-brand-md .rex-onpage-faq dl.rex-faq--columns-2{display:block;column-count:2;column-gap:24px}
.rex-onpage-faq dl.rex-faq--columns-2>.rex-faq-pair{display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 16px}
.rex-onpage-faq dl.rex-faq--columns-2>.rex-faq-pair--column-start{break-before:column}
.rex-onpage-faq dl.rex-faq--columns-2>.rex-faq-pair>dt{margin-top:0}
@media(max-width:767px){.rex-brand-ds .rex-onpage-faq dl.rex-faq--columns-2,.rex-brand-md .rex-onpage-faq dl.rex-faq--columns-2{column-count:1}.rex-onpage-faq dl.rex-faq--columns-2>.rex-faq-pair--column-start{break-before:auto}}
/* Photo option B: one wide reading flow, a left media slot beside the introductory section. */
@media(min-width:1024px){.rex-brand-ds .rex-onpage-seo .rex-seo-section--media>.rex-seo-media,.rex-brand-ds .rex-onpage-seo .rex-seo-section--media>img{float:left;width:clamp(500px,48%,600px);max-width:52%;margin:0 32px 24px 0}}
/* Owned-preview comparison modifier for photo option A. */
.rex-brand-ds.rex-photo-variant-top .rex-onpage-seo .rex-seo-section--media>.rex-seo-media,.rex-brand-ds.rex-photo-variant-top .rex-onpage-seo .rex-seo-section--media>img{float:none;width:min(100%,900px);max-width:100%;margin:0 auto 28px}

/* Reuse the published MD FAQ icon animation; no global widget selectors. */
.rex-brand-md .rex-onpage-faq .rex-faq-button::after{display:none}
.rex-brand-md .rex-onpage-faq .rex-faq-plus{position:absolute;right:22px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--main-color,#ff9a4d);isolation:isolate;transition:background .3s}
.rex-brand-md .rex-onpage-faq .rex-faq-plus::before{content:'+';color:#fff;font-size:22px;line-height:1;transition:transform .3s,color .3s}
.rex-brand-md .rex-onpage-faq .rex-faq-plus::after{content:'';position:absolute;inset:0;border-radius:50%;background:var(--main-color,#ff9a4d);animation:pulse_2_small 2s linear infinite;z-index:-1}
.rex-brand-md .rex-onpage-faq .rex-faq-button[aria-expanded=true] .rex-faq-plus{background:var(--main-color,#ff9a4d)}
.rex-brand-md .rex-onpage-faq .rex-faq-button[aria-expanded=true] .rex-faq-plus::before{transform:rotate(45deg) scale(1.3);color:#fff}
.rex-brand-md .rex-onpage-faq .rex-faq-button[aria-expanded=true] .rex-faq-plus::after{display:none}
@media(max-width:767px){.rex-brand-md .rex-onpage-faq .rex-faq-plus{right:16px;width:28px;height:28px}}
