/* Owner's compact service cards; all other sections keep their existing layout. */
html body[data-design=nexo][data-page=home] #v4-services .v4-compact-card {
  width:100%;min-width:0;
}
@media (min-width:680px) {
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-summary {display:none;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-grid {
    grid-auto-rows:auto!important;
    gap:16px!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services a.v4-service-card {
    display:grid!important;
    grid-template-columns:21px minmax(0,1fr) 96px!important;
    grid-template-rows:auto 1fr auto!important;
    gap:10px 10px!important;
    min-height:240px!important;
    padding:18px!important;
    border-radius:22px!important;
    align-items:start!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-icon {
    grid-column:1;grid-row:1;margin:0!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-title {
    grid-column:2 / -1;grid-row:1;min-height:0!important;
    margin:0!important;font-size:17px!important;line-height:1.25!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-copy {
    grid-column:1 / 3;grid-row:2;width:100%!important;
    margin:0!important;font-size:13px!important;line-height:1.45!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-action {
    grid-column:1 / 3;grid-row:3;justify-self:start;
    min-height:32px!important;margin:0!important;padding:7px 12px!important;
    font-size:12px!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-media {
    position:relative!important;grid-column:3;grid-row:2 / 4;
    align-self:stretch;width:96px!important;height:100%!important;
    min-height:0!important;right:auto;bottom:auto;border-radius:14px!important;
  }
  html body[data-design=nexo][data-page=home][data-card-art=illustration] #v4-services .v4-card-media img {
    padding:0!important;
  }
}
@media (max-width:679px) {
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;gap:10px!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-card {
    align-self:flex-start;border-radius:18px;background:#f8f8f8;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-summary {
    box-sizing:border-box;position:relative;display:flex;flex-direction:column;
    gap:6px;align-items:stretch;
    min-height:176px;height:auto;padding:12px;cursor:pointer;list-style:none;border-radius:18px;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-summary::-webkit-details-marker {display:none;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-summary:focus-visible {
    outline:3px solid #235fad;outline-offset:3px;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-summary .v4-card-icon {
    position:absolute;left:16px;top:16px;margin:0!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-title {
    order:2;font:650 14px/1.25 Inter,system-ui,sans-serif;
    letter-spacing:-.025em;color:#1a1d27;overflow-wrap:anywhere;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-hint {
    order:3;margin-top:auto;font:500 12px/1.25 Inter,system-ui,sans-serif;color:#414650;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-chevron {display:inline-block;transition:rotate .15s;}
  html body[data-design=nexo][data-page=home] #v4-services details[open] .v4-compact-chevron {rotate:180deg;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-media {
    order:1;flex:none;width:100%;height:72px;margin:0;
    overflow:hidden;border-radius:10px;background:#e9f0f7;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-media img {
    display:block;width:100%;height:100%;object-fit:cover;
    object-position:var(--v4-photo-position,center);scale:none!important;transform:none!important;
  }
  html body[data-design=nexo][data-page=home][data-card-art=illustration] #v4-services .v4-compact-media {background:transparent;}
  html body[data-design=nexo][data-page=home][data-card-art=illustration] #v4-services .v4-compact-media img {object-fit:contain;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-card > a.v4-service-card {
    display:block!important;min-height:0!important;padding:0 12px 12px!important;
    border:0!important;border-radius:0 0 18px 18px!important;background:transparent!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-compact-card > a.v4-service-card :is(.v4-card-icon,.v4-card-title,.v4-card-media) {display:none!important;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-copy {
    width:100%!important;min-height:0!important;margin:0 0 10px!important;
    font-size:13px!important;line-height:1.5!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-action {
    min-height:32px!important;margin:0!important;padding:7px 12px!important;font-size:12px!important;
  }
}

@media(prefers-reduced-motion:reduce){html body[data-design=nexo][data-page=home] #v4-services .v4-compact-chevron{transition:none;}}

/* Four services across on desktop; full copy stays visible, with a compact footer photo. */
@media(min-width:1000px) {
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services a.v4-service-card {
    grid-template-columns:21px minmax(0,1fr) 56px!important;
    grid-template-rows:auto 1fr minmax(40px,auto)!important;
    min-height:var(--v4-fit-height,0px)!important;
    gap:6px!important;padding:12px!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-copy {grid-column:1 / -1;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-action {
    gap:4px!important;padding:7px 8px!important;
    max-width:100%;min-width:0;white-space:normal!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-action svg {width:14px;height:14px;flex:none;}
  html body[data-design=nexo][data-page=home] #v4-services .v4-card-media {
    grid-column:3;grid-row:3;align-self:end;
    width:56px!important;height:40px!important;border-radius:10px!important;
  }
}

/* A real scroll rail. Card geometry and text stay identical during movement. */
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-grid {
  --v4-slide-pixels:280px;--v4-side-padding:44px;
  display:flex!important;align-items:stretch!important;position:relative!important;
  box-sizing:border-box;width:100%;max-width:100%;height:auto;
  gap:20px!important;padding:6px var(--v4-side-padding) 10px!important;margin:0!important;
  overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;
  overscroll-behavior-x:contain;overflow-anchor:none;cursor:grab;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-grid::-webkit-scrollbar {display:none;}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-grid>li {
  box-sizing:border-box;display:flex!important;position:relative!important;
  flex:0 0 var(--v4-slide-pixels);width:var(--v4-slide-pixels);min-width:0!important;
  margin:0!important;padding:0!important;scroll-snap-align:center;
  transform:none!important;opacity:1!important;visibility:visible!important;transition:none!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-compact-card {display:none!important;}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready a.v4-service-card {
  box-sizing:border-box;display:grid!important;width:100%!important;height:auto!important;min-height:320px!important;
  grid-template-columns:24px minmax(0,1fr) 42%!important;grid-template-rows:auto 1fr auto!important;
  align-items:start!important;gap:16px 12px!important;padding:24px!important;border-radius:26px!important;
  background:#f5f8fc!important;border:1px solid #e2eaf4!important;overflow:hidden!important;
  transform:none!important;translate:none!important;scale:none!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-icon {
  display:flex!important;grid-column:1;grid-row:1;width:24px;height:24px;margin:2px 0 0!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-title {
  display:block!important;grid-column:2;grid-row:1;min-height:0!important;
  font-size:24px!important;line-height:1.2!important;margin:0!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-copy {
  display:block!important;grid-column:1 / 3;grid-row:2;align-self:start;
  width:100%!important;font-size:15px!important;line-height:1.5!important;margin:0!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-action {
  display:inline-flex!important;grid-column:1 / 3;grid-row:3;align-self:end;justify-self:start;
  white-space:normal!important;max-width:100%;margin:0!important;font-size:14px!important;
  padding:10px 14px!important;min-height:40px!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-media {
  display:block!important;position:relative!important;grid-column:3;grid-row:1 / 4;
  width:100%!important;height:100%!important;min-height:250px!important;align-self:stretch!important;
  right:auto!important;bottom:auto!important;border-radius:18px!important;overflow:hidden!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-media img {
  padding:0!important;transform:none!important;scale:none!important;transition:none!important;
}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready.v4-free-scroll .v4-card-grid,
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready.v4-is-scrubbing .v4-card-grid {scroll-snap-type:none;}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready.v4-is-dragging .v4-card-grid {cursor:grabbing;user-select:none;}
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-grid:focus-visible,
html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready a.v4-service-card:focus-visible {outline:3px solid #235fad;outline-offset:-3px;}
html body[data-design=nexo][data-page=home] #v4-services .v4-scroll-progress {
  appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;
  width:220px;max-width:60%;height:44px;margin:8px auto 0;padding:0;
  border:0;border-radius:12px;background:transparent;box-shadow:none;cursor:ew-resize;
}
html body[data-design=nexo][data-page=home] #v4-services .v4-scroll-progress::-webkit-slider-runnable-track {height:4px;background:#dce8f6;border-radius:99px;}
html body[data-design=nexo][data-page=home] #v4-services .v4-scroll-progress::-moz-range-track {height:4px;background:#dce8f6;border-radius:99px;}
html body[data-design=nexo][data-page=home] #v4-services .v4-scroll-progress::-webkit-slider-thumb {
  appearance:none;-webkit-appearance:none;width:44px;height:8px;margin-top:-2px;border:0;border-radius:99px;
  background:linear-gradient(90deg,#80b8fb,#377fcf);box-shadow:0 2px 6px #376fa51f;
}
html body[data-design=nexo][data-page=home] #v4-services .v4-scroll-progress::-moz-range-thumb {
  width:44px;height:8px;border:0;border-radius:99px;background:linear-gradient(90deg,#80b8fb,#377fcf);box-shadow:0 2px 6px #376fa51f;
}
html body[data-design=nexo][data-page=home] #v4-services .v4-scroll-progress:focus-visible {outline:2px solid #235fad;outline-offset:2px;}
html body[data-design=nexo][data-page=home] #v4-services.v4-is-scrolling .v4-scroll-progress::-webkit-slider-thumb {background:#377fcf;}
html body[data-design=nexo][data-page=home] #v4-services.v4-is-scrolling .v4-scroll-progress::-moz-range-thumb {background:#377fcf;}
@media(max-width:899px) and (min-width:680px){
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-title {font-size:21px!important;}
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready a.v4-service-card {padding:20px!important;gap:14px 10px!important;grid-template-columns:24px minmax(0,1fr) 35%!important;}
}
@media(max-width:679px){
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-grid {
    width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;gap:12px!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready a.v4-service-card {
    grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:130px auto 1fr auto!important;
    padding:16px!important;gap:12px 10px!important;min-height:0!important;border-radius:22px!important;
  }
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-title {grid-column:2;grid-row:2;font-size:20px!important;}
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-icon {grid-row:2;}
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-copy {grid-column:1 / -1;grid-row:3;font-size:14px!important;}
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-action {grid-column:1 / -1;grid-row:4;font-size:13px!important;}
  html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready .v4-card-media {grid-column:1 / -1;grid-row:1;min-height:130px!important;border-radius:14px!important;}
}
@media(prefers-reduced-motion:reduce){html body[data-design=nexo][data-page=home] #v4-services.v4-scroll-ready * {transition:none!important;}}

/* Keep the residence grounds immediately after #about in the visual flex flow,
   matching the source order maintained by fix-compact-services.mjs. */
html body[data-design=nexo][data-page=home] main > :is(#vidy-vnzh,section[aria-labelledby="answer-title"]) {order:6!important;}
