/* Winfield / unified category selectors, 22 November 2026
   Quiet sage accents complement the Winfield gold, charcoal and white.
   Shared treatment: Selected Projects, Property Explorer, Smart lighting scenes.
   Keeps original button roles, aria-pressed state and JS interaction untouched. */
:root {
  --wf-tab-evergreen: #344b3e;
  --wf-tab-evergreen-hover: #405a49;
  --wf-tab-sage-paper: #f6f8f5;
  --wf-tab-sage-soft: #ecf1e9;
  --wf-tab-sage-line: #d2d9d0;
  --wf-tab-gold: #b79664;
}
/* A subtle green cast to the light chapters—not a replacement brand colour. */
.home-main #work { background-color:#fff!important }
.home-main #winfield-property-experience {
  background-color:#f4efe7!important;
  border-top-color:#e0d8c9!important;
  border-bottom-color:#e0d8c9!important;
}
/* All group wrappers use an evenly spaced, non-scrollable grid. */
.home-main #work .wf-work-tabs,
.home-main #winfield-property-experience .wf-px__modes,
.wf-scene__selector {
  gap:10px!important;
  overflow:visible!important;
}
/* All three controls now use the same geometry, stroke, typography and state treatment. */
.home-main #work .wf-work-tabs button,
.home-main #winfield-property-experience .wf-px__mode,
.wf-scene__selector .wf-scene__button {
  appearance:none!important;
  box-sizing:border-box!important;
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  min-width:0!important;
  width:100%!important;
  min-height:54px!important;
  padding:11px 9px!important;
  border:1px solid var(--wf-tab-sage-line)!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#343a35!important;
  font:700 clamp(12px,1.15vw,15px)/1.36 Arial,sans-serif!important;
  letter-spacing:0!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:normal!important;
  transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease!important;
  box-shadow:0 1px 1px rgba(38,47,38,.025)!important;
  cursor:pointer!important;
}
.home-main #work .wf-work-tabs button[aria-pressed="true"],
.home-main #winfield-property-experience .wf-px__mode[aria-pressed="true"],
.wf-scene__selector .wf-scene__button[aria-pressed="true"] {
  background:var(--wf-tab-evergreen)!important;
  border-color:var(--wf-tab-evergreen)!important;
  color:#fff!important;
  box-shadow:0 1px 2px rgba(24,45,32,.09)!important;
}
.home-main #work .wf-work-tabs button:hover:not([aria-pressed="true"]),
.home-main #winfield-property-experience .wf-px__mode:hover:not([aria-pressed="true"]),
.wf-scene__selector .wf-scene__button:hover:not([aria-pressed="true"]) {
  background:var(--wf-tab-sage-soft)!important;
  border-color:#afc2ad!important;
  color:#283e32!important;
}
.home-main #work .wf-work-tabs button:focus-visible,
.home-main #winfield-property-experience .wf-px__mode:focus-visible,
.wf-scene__selector .wf-scene__button:focus-visible {
  outline:3px solid var(--wf-tab-gold)!important;
  outline-offset:3px!important;
}
/* Like the project filters, property modes show just one uncluttered name.
   The existing gold interactive photo hotspots are retained. */
.home-main #winfield-property-experience .wf-px__mode span:first-child{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:0!important;width:100%!important;
}
.home-main #winfield-property-experience .wf-px__mode i,
.home-main #winfield-property-experience .wf-px__mode .wf-px__corner,
.wf-scene__selector .wf-scene__button-number,
.wf-scene__selector .wf-scene__corner {
  display:none!important;
}
/* Smart Homes scene picker: separate buttons rather than an inconsistent contiguous strip. */
.wf-scene__selector {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  padding:10px!important;
  background:var(--wf-tab-sage-paper)!important;
  border-top:1px solid #e3e8df!important;
}
.wf-scene__selector .wf-scene__button-name {
  display:block!important;
  color:inherit!important;
  font:inherit!important;
  white-space:normal!important;
  text-align:center!important;
}
@media(max-width:1100px) {
  .home-main #work .wf-work-tabs {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:760px) {
  .home-main #work .wf-work-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .home-main #winfield-property-experience .wf-px__modes{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .wf-scene__selector{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:9px!important;
  }
  .home-main #work .wf-work-tabs button,
  .home-main #winfield-property-experience .wf-px__mode,
  .wf-scene__selector .wf-scene__button{
    min-height:54px!important;
    padding:10px 7px!important;
    font-size:clamp(12px,3.1vw,14px)!important;
    line-height:1.35!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .home-main #work .wf-work-tabs button,
  .home-main #winfield-property-experience .wf-px__mode,
  .wf-scene__selector .wf-scene__button {transition:none!important}
}
/* Refinement: green belongs to the sections, not the tab buttons. */
:root {
 --wf-tab-evergreen:#292b2a;
 --wf-tab-evergreen-hover:#343535;
 --wf-tab-sage-paper:#faf9f7;
 --wf-tab-sage-soft:#f4f1ec;
 --wf-tab-sage-line:#d8d5d0;
}
.home-main #work .wf-work-tabs button[aria-pressed="true"],
.home-main #winfield-property-experience .wf-px__mode[aria-pressed="true"],
.wf-scene__selector .wf-scene__button[aria-pressed="true"]{
 background:#292b2a!important;border-color:#292b2a!important;color:#fff!important;
}
.home-main #work .wf-work-tabs button:hover:not([aria-pressed="true"]),
.home-main #winfield-property-experience .wf-px__mode:hover:not([aria-pressed="true"]),
.wf-scene__selector .wf-scene__button:hover:not([aria-pressed="true"]){
 background:#f4f1ec!important;border-color:#b79664!important;color:#292b2a!important;
}
.wf-scene__selector{background:#faf9f7!important;border-top-color:#e2ddd5!important;}
/* Soft green forms visual chapters within an otherwise neutral, gold-accented site. */
.home-main #why-winfield.wf-origin-quiet {
 background:#f2eee7!important;border-bottom-color:#ded5c8!important;
}
.home-main #approach .wf-why-smart{
 background:#31483c!important;border-left-color:#b79664!important;color:#f7f5ee!important;
}
.home-main #approach .wf-why-smart h3{color:#fff!important}
.home-main #approach .wf-why-smart__detail p{color:#eff3ed!important}
.home-main #winfield-property-experience.wf-px{
 background:#f3eee6!important;border-color:#dfd6c8!important;
}
.home-main #winfield-client-experience.wf-portal-premium{
 background:#f3efe8!important;border-bottom-color:#ddd4c7!important;
}
.home-main #enquire.wf-late-enquiry-section{background:#f0ebe3!important}
.home-main #client-feedback.wf-review-carousel-section{
 background:#f7f4ee!important;border-radius:8px;
}
.home-main #work.projects-editorial{background:#fff!important;}
@media(max-width:760px){
 .home-main #client-feedback.wf-review-carousel-section{border-radius:0!important}
}

/* iPad/tablet project category visibility fix.
   Previous equal-specificity display:flex!important overrode the hidden
   attribute. Explicit grid-ID specificity ensures filtered cards disappear. */
.home-main #work #wf-portfolio-grid > .editorial-project[hidden] {
  display: none !important;
  visibility: hidden !important;
}
