/* Local visual review, 2026-11-17. Scoped to reviewed page families.
   Existing content, URLs, controls and handlers remain intact. */

/* V02: reserve a real column for decorative step icons. */
html:root body:is(#visual-review,body)[data-page] .step-card:has(.step-icon) {
  display:grid!important;grid-template-columns:24px minmax(0,1fr) 30px!important;
  column-gap:14px!important;align-items:start!important;
}
html:root body:is(#visual-review,body)[data-page] .step-card:has(.step-icon) .step-number {grid-column:1;grid-row:1;position:static!important}
html:root body:is(#visual-review,body)[data-page] .step-card:has(.step-icon) .step-icon {grid-column:3;grid-row:1;position:static!important;width:26px;height:26px;margin:0!important}
html:root body:is(#visual-review,body)[data-page] .step-card:has(.step-icon) h3 {grid-column:2;grid-row:1;padding:0!important;margin:0!important;min-width:0}
html:root body:is(#visual-review,body)[data-page] .step-card:has(.step-icon) p {grid-column:2 / 4;grid-row:2;margin-top:10px!important;min-width:0}

/* R01: a clear primary action; ancillary project links stay available. */
html:root body:is(#visual-review,body)[data-page=project] .project-actionbar .hero-buttons .button.primary {
  background:var(--ui-on-photo)!important;color:var(--ui-photo-ink)!important;border-color:var(--ui-on-photo)!important;font-weight:700!important;
}
html:root body:is(#visual-review,body)[data-page=project] .project-actionbar .hero-buttons .button.secondary {
  background:transparent!important;color:var(--ui-on-photo)!important;border-color:var(--ui-photo-border)!important;
}
html:root body:is(#visual-review,body)[data-page=project] .project-actionbar .project-meta-actions a {
  background:transparent!important;border-color:transparent!important;color:var(--ui-on-photo)!important;
  box-shadow:none!important;
}
html:root body:is(#visual-review,body)[data-page=project] .project-actionbar .project-meta-actions a:hover {text-decoration:underline;text-underline-offset:5px}

/* R03: group secondary header utilities without removing menu routes. */
@media(min-width:1191px){
 html:root body:is(#visual-review,body)[data-page] .header-actions{gap:10px!important}
 html:root body:is(#visual-review,body)[data-page] .site-header .agent-portal{border-color:transparent!important;background:transparent!important;padding-inline:10px!important}
 html:root body:is(#visual-review,body)[data-page] .header-actions .language-switcher{margin-inline-start:6px!important}
 html:root body:is(#visual-review,body)[data-page] .header-actions .menu-toggle{margin-inline-start:4px!important;border-inline-start:1px solid var(--line)!important;border-radius:0!important}
}

/* R04: calm the collage immediately behind the message, retain imagery. */
html:root body:is(#visual-review,body)[data-page=home] .cmg-hero-heading{isolation:isolate}
html:root body:is(#visual-review,body)[data-page=home] .cmg-hero-heading::before{
 content:"";position:absolute;inset:12% -32px 10% -32px;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 35% 48%,var(--ui-scrim-strong) 0%,var(--ui-scrim-soft) 42%,transparent 72%);
}
html:root body:is(#visual-review,body)[data-page=home] .cmg-hero-heading :is(h1,.cmg-hero-purpose){text-shadow:0 2px 14px var(--ui-scrim-soft)}

/* R05: construction stage is useful information, not illegible microcopy. */
html:root body:is(#visual-review,body)[data-page] .construction-badge{font-size:11px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:.055em!important}
html:root body:is(#visual-review,body)[data-page=project] .project-status{font-size:12px!important;line-height:1.5!important;letter-spacing:.035em!important}

/* R06: a lighter alternating rhythm, with theme-aware text colours. */
html:root body:is([data-page=home],[data-page=project]) .steps-grid .step-card:nth-child(even):is(#visual-review-card,.step-card){
 background:var(--ui-soft)!important;color:var(--ui-ink)!important;border:1px solid var(--ui-line)!important;
}
html:root body:is([data-page=home],[data-page=project]) .steps-grid .step-card:nth-child(even):is(#visual-review-card,.step-card) :is(h3,p,.step-number,.step-icon){color:inherit!important}
html:root body:is([data-page=home],[data-page=project]) .steps-grid .step-card:nth-child(even):is(#visual-review-card,.step-card) .surface-pattern{opacity:0!important}

/* R07: verbatim existing article introductions provide real context. */
html:root body:is(#visual-review,body)[data-page=blog] .blog-card .visual-article-excerpt{
 font-size:14px!important;line-height:1.6!important;color:var(--ui-muted)!important;
 margin:0 22px 22px!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
}
html:root body:is(#visual-review,body)[data-page=blog] .blog-card h2{line-height:1.35!important}

/* R08: quiet secondary photo treatment without hiding a control. */
html:root body:is(#visual-review,body)[data-page] :is(.project-card,.blog-card) .cmg-photo-toggle{
 background:var(--ui-photo-shade)!important;border:1px solid var(--ui-photo-border)!important;box-shadow:none!important;opacity:.76;
}
html:root body:is(#visual-review,body)[data-page] :is(.project-card,.blog-card):is(:hover,:focus-within) .cmg-photo-toggle,
html:root body:is(#visual-review,body)[data-page] .cmg-photo-toggle:focus-visible{opacity:1}

/* R09 reverted by user: original contact appearance. */

/* R10 superseded by global pattern removal. */

@media(max-width:760px){
 /* Home hero mobile metrics are defined in local-user-feedback.css. */
 /* R02: retain every filter, put sorting/budget side by side. */
 html:root body:is(#visual-review,body)[data-page=projects] .cmg-projects-heading{padding-top:28px!important;padding-bottom:20px!important}
 html:root body:is(#visual-review,body)[data-page=projects] .filter-bar{gap:12px!important}
 html:root body:is(#visual-review,body)[data-page=projects] .filter-pills{gap:6px!important}
 html:root body:is(#visual-review,body)[data-page=projects] .filter-pill{min-height:40px!important;padding:8px 11px!important}
 html:root body:is(#visual-review,body)[data-page=projects] .projects-catalogue .filter-extra{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html:root body:is(#visual-review,body)[data-page=projects] .projects-catalogue .filter-extra label{min-width:0!important}
 html:root body:is(#visual-review,body)[data-page=projects] .projects-catalogue .filter-extra select{font-size:12px!important;padding-inline:12px 26px!important;min-height:44px!important}
 html:root body:is([data-page=home],[data-page=project]) .steps-grid .step-card{padding:20px!important}
 html:root body:is([data-page=home],[data-page=project]) .steps-grid{gap:16px!important}
 html:root body:is(#visual-review,body)[data-page=home] .cmg-hero-heading::before{inset:16% -18px 8% -18px}
}

