/* OC Architects: Gutenberg Oxfordshire pilot. All styles are scoped to the pilot page. */
.oc-pilot-page {color:#172126; overflow:hidden;}
.oc-pilot-page *, .oc-pilot-page *::before, .oc-pilot-page *::after {box-sizing:border-box;}
.oc-pilot-page .wp-block-group {margin-block-start:0;margin-block-end:0;}
.oc-pilot-page .oc-pilot-hero {position:relative;min-height:410px;width:100%;display:flex;align-items:center;isolation:isolate;background:#22292b;}
.oc-pilot-page .oc-pilot-hero::after {content:"";position:absolute;inset:0;background:rgba(0,0,0,.50);z-index:-1;}
.oc-pilot-page .oc-pilot-hero-image {position:absolute;inset:0;margin:0!important;width:100%;height:100%;z-index:-2;}
.oc-pilot-page .oc-pilot-hero-image img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%;filter:grayscale(1);}
.oc-pilot-page .oc-pilot-hero-copy {width:min(100% - 48px,1140px);margin:auto!important;padding:50px 0;position:relative;z-index:1;}
.oc-pilot-page .oc-pilot-eyebrow {font-size:11px;line-height:1.6;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#34b4be;margin:0 0 8px;}
.oc-pilot-page .oc-pilot-hero h1 {font-size:clamp(34px,3.8vw,56px);font-weight:400;line-height:1.1;color:#fff;margin:0;}
.oc-pilot-page .oc-pilot-breadcrumb-wrap {width:min(100% - 48px,1140px);margin:12px auto 0!important;}
.oc-pilot-page .oc-pilot-breadcrumb {font-size:12px;color:#607076;}
.oc-pilot-page .oc-pilot-content, .oc-pilot-page .oc-pilot-areas {padding:36px max(24px,calc((100vw - 1140px)/2)) 54px;}
.oc-pilot-page .oc-pilot-content {background:#fff;}
.oc-pilot-page .oc-pilot-areas {background:#f0f2f2;}
.oc-pilot-page .oc-pilot-content > *, .oc-pilot-page .oc-pilot-areas > * {max-width:1140px;margin-left:auto;margin-right:auto;}
.oc-pilot-page .oc-pilot-lede {max-width:1100px;font-size:17px;line-height:1.7;margin-bottom:28px;}
.oc-pilot-page h2 {font-size:clamp(25px,2.5vw,34px);font-weight:400;line-height:1.18;margin:0 0 14px;}
.oc-pilot-page p {font-size:15px;line-height:1.7;}
.oc-pilot-page .oc-pilot-split {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:42px;align-items:stretch;margin:26px auto 34px;}
.oc-pilot-page .oc-pilot-split > .wp-block-column {min-width:0;margin:0;flex-basis:auto!important;}
.oc-pilot-page .oc-pilot-split h2:not(:first-child) {margin-top:28px;}
.oc-pilot-page .oc-pilot-split p {margin:0 0 14px;}
.oc-pilot-page .oc-pilot-side-image {height:100%;min-height:540px;margin:0;}
.oc-pilot-page .oc-pilot-side-image img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%;}
.oc-pilot-page .oc-pilot-card-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:20px auto 0;}
.oc-pilot-page .oc-pilot-card-grid > .wp-block-column {min-width:0;flex-basis:auto!important;margin:0;}
.oc-pilot-page .oc-pilot-card {border:1px solid #d8dedf;background:#fff;padding:24px;height:100%;display:flex;flex-direction:column;}
.oc-pilot-page .oc-pilot-card h3 {font-size:19px;font-weight:500;line-height:1.3;margin:0 0 12px;}
.oc-pilot-page .oc-pilot-card p {margin:0 0 18px;font-size:14px;}
.oc-pilot-page .oc-pilot-card .oc-pilot-card-link {margin-top:auto;margin-bottom:0;font-weight:600;}
.oc-pilot-page .oc-pilot-card a {color:#137d84;text-decoration:none;}
.oc-pilot-page .oc-pilot-card a:hover {text-decoration:underline;}
.oc-pilot-page .oc-pilot-local-note {font-size:12px;color:#5b6b6d;margin-top:22px;}
.oc-pilot-page .oc-pilot-cta {background:#20292b;color:#fff;padding:45px max(24px,calc((100vw - 1140px)/2));}
.oc-pilot-page .oc-pilot-cta > * {max-width:1140px;margin-left:auto;margin-right:auto;}
.oc-pilot-page .oc-pilot-cta h2 {color:#fff;}
.oc-pilot-page .oc-pilot-cta-link {display:inline-block;background:#23aab2;color:#fff;padding:13px 20px;text-decoration:none;font-weight:600;}
/* WordPress classic themes may supply generic styles; keep the blocks aligned. */
.oc-pilot-page .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {align-self:stretch;}
@media(max-width:800px) {
 .oc-pilot-page .oc-pilot-split {grid-template-columns:1fr;gap:24px;}
 .oc-pilot-page .oc-pilot-side-image {height:440px;min-height:0;}
 .oc-pilot-page .oc-pilot-card-grid {grid-template-columns:1fr;gap:14px;}
 .oc-pilot-page .oc-pilot-hero {min-height:320px;}
}
@media(max-width:520px) {
 .oc-pilot-page .oc-pilot-hero-copy,.oc-pilot-page .oc-pilot-breadcrumb-wrap {width:calc(100% - 36px);}
 .oc-pilot-page .oc-pilot-content,.oc-pilot-page .oc-pilot-areas,.oc-pilot-page .oc-pilot-cta {padding-left:18px;padding-right:18px;}
 .oc-pilot-page .oc-pilot-side-image {height:340px;}
}


/* V163: correct Gutenberg/theme constrained-layout interference in the hero.
   The hero remains full bleed, but the editable heading aligns with the
   1140px page content.  Strong selectors are intentional: themes can add
   is-layout-constrained rules to Group blocks. */
body .oc-pilot-page > .oc-pilot-hero.wp-block-group,
body .oc-pilot-page .oc-pilot-hero.wp-block-group {
  position:relative !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:none !important;
  min-height:410px !important;
  padding:0 !important;
  margin:0 !important;
  isolation:isolate;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy.wp-block-group {
  position:relative !important;
  display:block !important;
  flex:0 1 1140px !important;
  width:calc(100% - 48px) !important;
  max-width:1140px !important;
  min-width:0;
  margin:0 auto !important;
  padding:50px 0 !important;
  text-align:left !important;
  align-self:center !important;
  z-index:2;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy > .wp-block-heading {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  font-size:clamp(34px,3.8vw,56px) !important;
  line-height:1.1 !important;
  font-weight:400 !important;
  color:#fff !important;
  text-align:left !important;
  white-space:nowrap;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy > .oc-pilot-eyebrow {
  display:block !important;
  max-width:none !important;
  width:100% !important;
  margin:0 0 8px !important;
  color:#34b4be !important;
  text-align:left !important;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-image.wp-block-image {
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
  z-index:-2 !important;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-image.wp-block-image img {
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center 48% !important;
  filter:grayscale(1);
}
@media(max-width:800px) {
  body .oc-pilot-page .oc-pilot-hero.wp-block-group {min-height:320px !important;}
  body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy > .wp-block-heading {white-space:normal;}
}
@media(max-width:520px) {
  body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy.wp-block-group {width:calc(100% - 36px) !important;}
}

/* V164: Position the editable hero text independently of WordPress theme
   block width constraints. JS sets --oc-hero-left to the actual left edge
   of the first body paragraph so heading and body share one alignment. */
body .oc-pilot-page .oc-pilot-hero.wp-block-group {
  position:relative !important;
  display:block !important;
  min-height:410px !important;
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy.wp-block-group {
  position:absolute !important;
  display:block !important;
  top:50% !important;
  left:var(--oc-hero-left, 50%) !important;
  transform:translate(var(--oc-hero-shift, -50%), -50%) !important;
  width:min(calc(100% - 48px), 1140px) !important;
  max-width:1140px !important;
  min-width:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  flex:none !important;
  z-index:3 !important;
  text-align:left !important;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy > .wp-block-heading {
  max-width:none !important;
  width:auto !important;
  white-space:nowrap !important;
  margin:0 !important;
}
body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy > .oc-pilot-eyebrow {
  width:auto !important;
  max-width:none !important;
  margin:0 0 8px !important;
}
@media(max-width:800px) {
 body .oc-pilot-page .oc-pilot-hero.wp-block-group {min-height:320px !important;}
 body .oc-pilot-page .oc-pilot-hero > .oc-pilot-hero-copy > .wp-block-heading {white-space:normal !important;}
}

/* V166 — Home, Practice and Services. Scoped to pilot pages only. */
body .oc-pilot-page .oc-pilot-hero.oc-stage2-home-hero.wp-block-group {min-height:630px !important;}
body .oc-pilot-page .oc-stage2-home-hero .oc-pilot-hero-copy > h1.wp-block-heading {
  white-space:normal !important;max-width:540px !important;font-size:clamp(46px,5.2vw,76px) !important;
  font-weight:400 !important;line-height:1.03 !important;letter-spacing:-.025em;
}
.oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-subtitle {
  color:#fff;font-size:18px;line-height:1.6;max-width:560px;margin:20px 0 !important;
}
.oc-pilot-page .oc-stage2-hero-buttons {display:flex;gap:14px;margin-top:25px !important;}
.oc-pilot-page .oc-stage2-hero-buttons .wp-block-button {margin:0;}
.oc-pilot-page .oc-stage2-hero-buttons .wp-block-button__link {
  background:#22aeb6;color:#fff;border-radius:0;padding:13px 22px;font-weight:600;text-decoration:none;font-size:14px;
}
.oc-pilot-page .oc-stage2-hero-buttons .wp-block-button:nth-child(2) .wp-block-button__link {background:transparent;border:1px solid #fff;}
.oc-pilot-page .oc-stage2-intro {padding-top:70px;padding-bottom:65px;}
.oc-pilot-page .oc-stage2-intro h2 {font-size:clamp(29px,3.2vw,44px);max-width:860px;}
.oc-pilot-page .oc-stage2-text-link a {color:#117b84;text-decoration:none;font-weight:600;}
.oc-pilot-page .oc-stage2-text-link a:hover {text-decoration:underline;}
.oc-pilot-page .oc-stage2-portfolio {background:#f1f3f3;padding-top:60px;padding-bottom:70px;}
.oc-pilot-page .oc-stage2-mosaic {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:26px auto 0 !important;}
.oc-pilot-page .oc-stage2-mosaic-item {position:relative;min-width:0;aspect-ratio: .73;overflow:hidden;background:#dfe4e3;}
.oc-pilot-page .oc-stage2-mosaic-item > figure.wp-block-image,
.oc-pilot-page .oc-stage2-work-card > figure.wp-block-image {
  position:absolute;inset:0;width:100%;height:100%;margin:0 !important;max-width:none !important;
}
.oc-pilot-page .oc-stage2-mosaic-item > figure.wp-block-image img,
.oc-pilot-page .oc-stage2-work-card > figure.wp-block-image img {
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;
}
.oc-pilot-page .oc-stage2-mosaic-item > .oc-stage2-colour,
.oc-pilot-page .oc-stage2-work-card > .oc-stage2-colour {opacity:0;transition:opacity .28s ease;}
.oc-pilot-page .oc-stage2-mosaic-item:hover > .oc-stage2-colour,
.oc-pilot-page .oc-stage2-work-card:hover > .oc-stage2-colour {opacity:1;}
.oc-pilot-page .oc-stage2-caption {position:absolute;left:0;bottom:0;width:100%;margin:0 !important;padding:26px 12px 12px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.7));font-weight:600;font-size:14px;pointer-events:none;}
.oc-pilot-page .oc-stage2-work-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:25px auto 0 !important;}
.oc-pilot-page .oc-stage2-work-card {position:relative;min-width:0;padding-top:300px;}
.oc-pilot-page .oc-stage2-work-card > figure.wp-block-image {height:280px;bottom:auto;}
.oc-pilot-page .oc-stage2-work-card h3 {margin:14px 0 2px;font-size:21px;}
.oc-pilot-page .oc-stage2-work-card > p {margin:4px 0;font-size:14px;}
.oc-pilot-page .oc-stage2-work-card > .oc-stage2-text-link {margin-top:8px;}
.oc-pilot-page .oc-stage2-commercial {background:#f1f3f3;}
.oc-pilot-page .oc-stage2-commercial .oc-pilot-side-image {min-height:410px;}
.oc-pilot-page .oc-stage2-commercial .oc-pilot-split {margin:0 auto;}
.oc-pilot-page .oc-stage2-process,.oc-pilot-page .oc-stage2-knowledge {padding-top:60px;padding-bottom:70px;}
.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav {display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 38px !important;}
.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav p {margin:0 !important;}
.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav a {display:block;padding:8px 12px;border:1px solid #d3dedf;color:#176b73;text-decoration:none;font-size:13px;}
.oc-pilot-page .oc-stage2-services h2 {margin-top:33px;scroll-margin-top:110px;}
.oc-pilot-page .oc-stage2-services .oc-pilot-lede {margin-bottom:16px;}
.oc-pilot-page .oc-stage2-cta-link a {display:inline-block;padding:12px 20px;background:#24aab4;color:#fff !important;text-decoration:none;}
@media(max-width:1000px){
  .oc-pilot-page .oc-stage2-mosaic {grid-template-columns:repeat(3,minmax(0,1fr));}
  .oc-pilot-page .oc-stage2-work-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:800px){
  body .oc-pilot-page .oc-pilot-hero.oc-stage2-home-hero.wp-block-group {min-height:500px !important;}
  .oc-pilot-page .oc-stage2-mosaic {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:520px){
  body .oc-pilot-page .oc-pilot-hero.oc-stage2-home-hero.wp-block-group {min-height:470px !important;}
  body .oc-pilot-page .oc-stage2-home-hero .oc-pilot-hero-copy > h1.wp-block-heading {font-size:42px !important;}
  .oc-pilot-page .oc-stage2-hero-buttons {flex-wrap:wrap;}
  .oc-pilot-page .oc-stage2-mosaic,.oc-pilot-page .oc-stage2-work-grid {grid-template-columns:1fr 1fr;gap:10px;}
  .oc-pilot-page .oc-stage2-work-card {padding-top:190px;}
  .oc-pilot-page .oc-stage2-work-card > figure.wp-block-image {height:180px;}
}


/* V167: Home gallery repair.
   Some WordPress themes apply block-group layout rules that override the
   gallery grid and the absolute positioning of the two editable image blocks.
   Scope every override to the stage-two Home draft; do not change the
   previously approved Oxfordshire/Wiltshire/Cotswolds pages. */
body .oc-pilot-page .wp-block-group.oc-stage2-portfolio,
body .oc-pilot-page .wp-block-group.oc-stage2-work {
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-portfolio > .wp-block-group.oc-stage2-mosaic,
body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
  display:grid !important;
  width:100% !important;
  max-width:1140px !important;
  min-width:0 !important;
  margin:26px auto 0 !important;
  padding:0 !important;
  align-items:stretch !important;
  justify-items:stretch !important;
  grid-auto-flow:row !important;
  box-sizing:border-box !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-portfolio > .wp-block-group.oc-stage2-mosaic {
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic > .wp-block-group.oc-stage2-mosaic-item,
body .oc-pilot-page .wp-block-group.oc-stage2-work-grid > .wp-block-group.oc-stage2-work-card {
  position:relative !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  isolation:isolate;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic > .wp-block-group.oc-stage2-mosaic-item {
  aspect-ratio:0.73 !important;
  height:auto !important;
  background:#dfe4e3;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-grid > .wp-block-group.oc-stage2-work-card {
  padding-top:300px !important;
  overflow:visible !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic-item > figure.wp-block-image,
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > figure.wp-block-image {
  position:absolute !important;
  display:block !important;
  inset:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > figure.wp-block-image {
  height:280px !important;
  bottom:auto !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic-item > figure.wp-block-image img,
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > figure.wp-block-image img {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  object-fit:cover !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic-item > figure.wp-block-image.oc-stage2-colour,
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > figure.wp-block-image.oc-stage2-colour {
  opacity:0 !important;
  z-index:1 !important;
  transition:opacity .28s ease;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic-item:hover > figure.wp-block-image.oc-stage2-colour,
body .oc-pilot-page .wp-block-group.oc-stage2-work-card:hover > figure.wp-block-image.oc-stage2-colour,
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic-item:focus-within > figure.wp-block-image.oc-stage2-colour,
body .oc-pilot-page .wp-block-group.oc-stage2-work-card:focus-within > figure.wp-block-image.oc-stage2-colour {
  opacity:1 !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic-item > p.oc-stage2-caption {
  position:absolute !important;
  z-index:2 !important;
  left:0 !important;
  bottom:0 !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:26px 12px 12px !important;
  color:#fff !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > h3,
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > p {
  position:relative;
  max-width:none !important;
  width:100% !important;
}
@media(max-width:1000px) {
  body .oc-pilot-page .wp-block-group.oc-stage2-portfolio > .wp-block-group.oc-stage2-mosaic {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:700px) {
  body .oc-pilot-page .wp-block-group.oc-stage2-portfolio > .wp-block-group.oc-stage2-mosaic {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-work-grid > .wp-block-group.oc-stage2-work-card {
    padding-top:190px !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-work-card > figure.wp-block-image {
    height:180px !important;
  }
}

/* V170: Home-only layout matches the V161 HTML mosaics.
   The companion script enforces these rules when a WordPress theme overrides
   block-group layout; all image/text/link elements remain editable blocks. */
body .oc-pilot-page .wp-block-group.oc-stage2-portfolio > .wp-block-group.oc-stage2-mosaic {
  display:grid !important;
  grid-template-columns:1.55fr .85fr .85fr !important;
  grid-template-rows:220px 220px !important;
  gap:12px !important;
  overflow:visible !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic > .wp-block-group.oc-stage2-mosaic-item {
  aspect-ratio:auto !important;
  height:100% !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-mosaic > .wp-block-group.oc-stage2-mosaic-item:first-child {
  grid-row:span 2 !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
  overflow:visible !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-grid > .wp-block-group.oc-stage2-work-card {
  height:290px !important;
  min-height:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > figure.wp-block-image {
  inset:0 !important;
  height:100% !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > h3 {
  position:absolute !important;
  z-index:3 !important;
  bottom:34px !important;
  left:14px !important;
  width:calc(100% - 28px) !important;
  margin:0 !important;
  color:#fff !important;
  font-size:18px !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > p:not(.oc-stage2-text-link) {
  position:absolute !important;
  z-index:3 !important;
  bottom:14px !important;
  left:14px !important;
  width:calc(100% - 28px) !important;
  margin:0 !important;
  color:#fff !important;
  font-size:12px !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > p.oc-stage2-text-link {
  position:absolute !important;
  z-index:4 !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-work-card > p.oc-stage2-text-link a {
  display:block !important;
  width:100% !important;
  height:100% !important;
  font-size:0 !important;
  color:transparent !important;
}
@media(max-width:780px) {
  body .oc-pilot-page .wp-block-group.oc-stage2-portfolio > .wp-block-group.oc-stage2-mosaic {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:220px 180px 180px !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-mosaic > .wp-block-group.oc-stage2-mosaic-item:first-child {
    grid-row:auto !important;
    grid-column:span 2 !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:520px) {
  body .oc-pilot-page .wp-block-group.oc-stage2-work > .wp-block-group.oc-stage2-work-grid {
    grid-template-columns:1fr !important;
  }
  body .oc-pilot-page .wp-block-group.oc-stage2-work-grid > .wp-block-group.oc-stage2-work-card {
    height:270px !important;
  }
}

/* v172: Restore the original HTML site's blue/teal border on hover
   for the Knowledge and Where We Work cards only. */
body .oc-pilot-page .oc-stage2-knowledge .oc-pilot-card,
body .oc-pilot-page .oc-pilot-areas .oc-pilot-card {
  border: 1px solid #d8dedf;
  transition: border-color .2s ease;
}
body .oc-pilot-page .oc-stage2-knowledge .oc-pilot-card:hover,
body .oc-pilot-page .oc-stage2-knowledge .oc-pilot-card:focus-within,
body .oc-pilot-page .oc-pilot-areas .oc-pilot-card:hover,
body .oc-pilot-page .oc-pilot-areas .oc-pilot-card:focus-within {
  border-color: #1f999f;
}

/* V173: Match the original V161 homepage hero-button hover treatment.
   Scoped to Home hero only. Preserve the normal button styling and all other
   WordPress blocks; keyboard focus receives the same visible feedback. */
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link:hover,
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link:focus-visible {
  background-color:#178f98 !important;
  border-color:#178f98 !important;
  color:#fff !important;
  text-decoration:none !important;
}

/* V174: Restore homepage hero CTA appearance shown in the HTML reference.
   Both buttons are solid teal, include a right arrow, and change colour on
   hover/focus. CSS-only so existing editable Home draft is not regenerated. */
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:22px !important;
  background:#28b6bb !important;
  background-color:#28b6bb !important;
  color:#fff !important;
  border:1px solid #3abfc0 !important;
  border-radius:0 !important;
  padding:12px 17px !important;
  font-size:13px !important;
  line-height:1.3 !important;
  font-weight:600 !important;
  text-decoration:none !important;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link::after {
  content:"\2192";
  display:inline-block;
  flex:0 0 auto;
  font-size:19px;
  font-weight:400;
  line-height:1;
}
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link:hover,
body .oc-pilot-page .oc-stage2-home-hero .oc-stage2-hero-buttons .wp-block-button .wp-block-button__link:focus-visible {
  background:#45d5d3 !important;
  background-color:#45d5d3 !important;
  border-color:#45d5d3 !important;
  color:#14292b !important;
}

/* V175 — The Practice page only. Match the HTML original's approximately
   55:45 text-to-photo proportions, rather than WordPress's 50:50 columns.
   The practice marker is set by the existing draft's _oc_stage2_pilot meta;
   the Gutenberg text and image blocks remain editable and unchanged. */
body .oc-pilot-page.oc-stage2-practice-page .oc-pilot-split.wp-block-columns {
  display:grid !important;
  grid-template-columns:minmax(0,1.21fr) minmax(0,1fr) !important;
  column-gap:34px !important;
  align-items:stretch !important;
}
body .oc-pilot-page.oc-stage2-practice-page .oc-pilot-split.wp-block-columns > .wp-block-column {
  min-width:0 !important;
  width:auto !important;
  max-width:none !important;
  flex-basis:auto !important;
  margin:0 !important;
}
@media (max-width:800px) {
  body .oc-pilot-page.oc-stage2-practice-page .oc-pilot-split.wp-block-columns {
    grid-template-columns:minmax(0,1fr) !important;
    row-gap:24px !important;
  }
}

/* V176 — The Practice: distribute the four text sections vertically so the
   final paragraph aligns with the foot of the staircase image. This is
   content-aware flex spacing, not fixed padding, and does not change blocks. */
@media (min-width:801px) {
  body .oc-pilot-page.oc-stage2-practice-page .oc-pilot-split.wp-block-columns > .wp-block-column:first-child {
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    align-self:stretch !important;
    min-height:0;
  }
  /* Put any surplus vertical space before each new section, keeping its
     heading and following paragraphs together. */
  body .oc-pilot-page.oc-stage2-practice-page .oc-pilot-split.wp-block-columns > .wp-block-column:first-child > h2.wp-block-heading {
    margin-top:auto !important;
  }
  body .oc-pilot-page.oc-stage2-practice-page .oc-pilot-split.wp-block-columns > .wp-block-column:first-child > :last-child {
    margin-bottom:0 !important;
  }
}

/* V177 — Services: reproduce V161 HTML's horizontal service-navigation
   buttons. Gutenberg represents each link as a paragraph block; the theme
   can give Group/Paragraph blocks constrained widths or display:block.
   Override only the Services draft, without changing its saved blocks. */
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  align-content:flex-start !important;
  gap:8px !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  height:auto !important;
  margin:30px 0 !important;
  padding:0 !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p.wp-block-paragraph,
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p {
  display:block !important;
  flex:0 0 auto !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p > a {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  white-space:nowrap !important;
  margin:0 !important;
  padding:11px 15px !important;
  border:1px solid #d9dfdf !important;
  border-radius:2px !important;
  background:#fff !important;
  color:#343d3d !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.3 !important;
  text-decoration:none !important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p > a:hover,
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p > a:focus-visible {
  background:#142c31 !important;
  border-color:#142c31 !important;
  color:#fff !important;
}
body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p > a:focus-visible {
  outline:2px solid #2ebac2;
  outline-offset:2px;
}
@media(max-width:560px) {
  body .oc-pilot-page .wp-block-group.oc-stage2-services > .wp-block-group.oc-stage2-service-nav > p > a {
    padding:9px 10px !important;
    font-size:12px !important;
  }
}

/* V178 — Architectural Services only: render nine native editable links as
   horizontal HTML-style buttons, even when a theme constrains Gutenberg blocks. */
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav,
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav.oc-services-nav-normalized {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  justify-content:flex-start !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  max-width:none !important;
  margin:30px 0 38px !important;
}
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav > p {
  display:block !important;
  flex:0 0 auto !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav > p > a {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  width:auto !important;
  max-width:none !important;
  padding:11px 15px !important;
  border:1px solid #d9dfdf !important;
  border-radius:2px !important;
  background:#fff !important;
  color:#343d3d !important;
  font-size:13px !important;
  line-height:1.3 !important;
  text-decoration:none !important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav > p > a:hover,
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav > p > a:focus-visible {
  background:#142c31 !important;
  border-color:#142c31 !important;
  color:#fff !important;
}
body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav > p > a:focus-visible {
  outline:2px solid #2ebac2;
  outline-offset:2px;
}
@media (max-width:560px) {
  body main.oc-pilot-page .oc-stage2-services .oc-stage2-service-nav > p > a {
    padding:9px 10px !important;
    font-size:12px !important;
  }
}


/* V184: restore the original HTML paragraph rhythm on the approved editable
   Gutenberg previews. This removes the theme's additional top block gap from
   ordinary text paragraphs; it deliberately leaves existing bottom margins,
   the Practice vertical-distribution rules, image captions and buttons alone. */
body main.oc-pilot-page:not(.oc-stage3-page) .oc-pilot-content .wp-block-group__inner-container > p.wp-block-paragraph:not(.oc-stage2-caption):not(.oc-pilot-eyebrow),
body main.oc-pilot-page:not(.oc-stage3-page) .oc-pilot-areas .wp-block-group__inner-container > p.wp-block-paragraph:not(.oc-stage2-caption):not(.oc-pilot-eyebrow),
body main.oc-pilot-page:not(.oc-stage3-page) .oc-pilot-content .wp-block-column > p.wp-block-paragraph:not(.oc-stage2-caption):not(.oc-pilot-eyebrow) {
  margin-block-start:0!important;
}


/* V185: consistent ordinary paragraph spacing on previously approved Gutenberg
   previews.  Practice is intentionally excluded: its vertical spacing is used
   to balance the staircase photograph.  Gallery captions, cards, buttons,
   service-navigation links and hero text retain their original rules. */
body main.oc-pilot-page:not(.oc-stage3-page):not(.oc-stage2-practice-page) .oc-pilot-content > .wp-block-group__inner-container > p.wp-block-paragraph:not(.oc-pilot-eyebrow):not(.oc-stage2-caption):not(.oc-stage2-cta-link):not(.oc-stage2-text-link),
body main.oc-pilot-page:not(.oc-stage3-page):not(.oc-stage2-practice-page) .oc-pilot-areas > .wp-block-group__inner-container > p.wp-block-paragraph:not(.oc-pilot-eyebrow):not(.oc-stage2-caption):not(.oc-pilot-card-link),
body main.oc-pilot-page:not(.oc-stage3-page):not(.oc-stage2-practice-page) .oc-pilot-content .oc-pilot-split > .wp-block-column > p.wp-block-paragraph:not(.oc-pilot-eyebrow):not(.oc-stage2-caption),
body main.oc-pilot-page:not(.oc-stage3-page):not(.oc-stage2-practice-page) .oc-stage2-services > .wp-block-group__inner-container > p.wp-block-paragraph:not(.oc-pilot-lede):not(.oc-stage2-cta-link) {
  margin-block-start:0!important;
  margin-block-end:12px!important;
}
