/* Angjelo V5.0.1: public HOMEPAGE only. Fix V5 shell's double-gutter regression
   and separate seven hero pagination labels from navigation buttons.
   No effect on admin, portal, backend forms, or other public pages. */
body.ab112-public #content > .ab3-page.ab42-home {
  display:block;
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding:0;
  box-sizing:border-box;
}
/* The homepage's sections already implement their own consistent 1780px gutters.
   The shell must not apply a second outer width constraint. */
body.ab112-public #content > .ab3-page.ab42-home > :where(.ab32-hero,.ab3-services,.ab48-home-site,.ab42-experience,.ab42-portfolio-section,.ab42-booking-section) {
  max-width:none;
  min-width:0;
  box-sizing:border-box;
}
body.ab112-public .ab42-home .ab32-hero-toolbar {
  display:grid;
  grid-template-columns:minmax(175px,225px) minmax(0,1fr);
  align-items:center;
  column-gap:clamp(10px,1.4vw,22px);
  padding:10px clamp(16px,2.1vw,30px);
  width:100%;
  min-width:0;
}
body.ab112-public .ab42-home .ab32-hero-toolbar-label {min-width:0;white-space:normal}
body.ab112-public .ab42-home .ab32-hero-controls {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px 44px;
  align-items:center;
  justify-content:stretch;
  column-gap:7px;
  width:100%;
  min-width:0;
  max-width:100%;
}
body.ab112-public .ab42-home .ab32-hero-controls > button {
  display:grid;
  place-items:center;
  justify-self:center;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  flex:0 0 auto;
  border-radius:50%;
  touch-action:manipulation;
}
body.ab112-public .ab42-home .ab32-hero-pagination {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:clamp(3px,.34vw,7px);
  min-width:0;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  scroll-padding-inline:5px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
body.ab112-public .ab42-home .ab32-hero-pagination::-webkit-scrollbar {display:none}
body.ab112-public .ab42-home .ab32-hero-pagination button {
  flex:0 0 auto;
  display:inline-flex;
  justify-content:center;
  min-width:0;
  max-width:169px;
  padding:7px clamp(6px,.55vw,10px);
  min-height:42px;
  height:42px;
  border-radius:999px;
  scroll-snap-align:nearest;
  white-space:nowrap;
}
body.ab112-public .ab42-home .ab32-hero-pagination button em {
  min-width:0;
  max-width:143px;
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body.ab112-public .ab42-home .ab32-hero-pagination button:focus-visible {
  outline:3px solid #ae843e;
  outline-offset:-3px;
}
/* Intermediate desktop widths use short, recognisable labels without cut-off text. */
@media (min-width:1181px) and (max-width:1650px) {
  body.ab112-public .ab42-home .ab32-hero-toolbar {grid-template-columns:minmax(166px,205px) minmax(0,1fr)}
  body.ab112-public .ab42-home .ab32-hero-pagination {justify-content:space-between;gap:2px}
  body.ab112-public .ab42-home .ab32-hero-pagination button {
    width:auto;min-width:0;max-width:none;flex:0 1 auto;
    min-height:40px;height:40px;padding:0 clamp(4px,.47vw,8px);
  }
  body.ab112-public .ab42-home .ab32-hero-pagination button em {display:none}
  /* Safe fallback when a newer live index.php has not yet received the short-label attribute. */
  body.ab112-public .ab42-home .ab32-hero-pagination button:not([data-ab501-short]) em {
    display:block;max-width:98px;overflow:hidden;text-overflow:ellipsis;font-size:10px;
  }
  body.ab112-public .ab42-home .ab32-hero-pagination button::after {
    content:attr(data-ab501-short);display:block;min-width:0;
    font-size:clamp(9px,.72vw,11px);line-height:1.15;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
}
/* Phone/tablet and narrow desktop widths keep all seven numbered tabs visible. */
@media (max-width:1180px) {
  body.ab112-public .ab42-home .ab32-hero-toolbar {grid-template-columns:minmax(166px,205px) minmax(0,1fr)}
  body.ab112-public .ab42-home .ab32-hero-pagination {justify-content:center;gap:5px}
  body.ab112-public .ab42-home .ab32-hero-pagination button {
    width:40px;min-width:40px;max-width:40px;height:42px;min-height:42px;padding:0;
  }
  body.ab112-public .ab42-home .ab32-hero-pagination button em {display:none}
}
@media (max-width:850px) {
  body.ab112-public .ab42-home .ab32-hero-toolbar {grid-template-columns:minmax(0,1fr);padding:9px 12px;min-height:60px}
  body.ab112-public .ab42-home .ab32-hero-toolbar-label {display:none}
  body.ab112-public .ab42-home .ab32-hero-controls {
    grid-template-columns:40px minmax(0,1fr) 40px 40px;
    column-gap:4px;
  }
  body.ab112-public .ab42-home .ab32-hero-controls > button {
    width:40px;min-width:40px;height:40px;min-height:40px;
  }
  body.ab112-public .ab42-home .ab32-hero-pagination {justify-content:center;gap:2px}
  body.ab112-public .ab42-home .ab32-hero-pagination button {
    width:30px;min-width:30px;max-width:30px;height:38px;min-height:38px;padding:0;
  }
}
@media (max-width:430px) {
  body.ab112-public .ab42-home .ab32-hero-toolbar {padding:8px 7px;min-height:56px}
  body.ab112-public .ab42-home .ab32-hero-controls {grid-template-columns:36px minmax(0,1fr) 36px 36px;column-gap:2px}
  body.ab112-public .ab42-home .ab32-hero-controls > button {
    width:36px;min-width:36px;height:36px;min-height:36px;
  }
  body.ab112-public .ab42-home .ab32-hero-pagination {gap:1px}
  body.ab112-public .ab42-home .ab32-hero-pagination button {
    width:clamp(22px,6.4vw,28px);min-width:clamp(22px,6.4vw,28px);
    max-width:28px;height:36px;min-height:36px;font-size:10px;padding:0;
  }
}
@media(prefers-reduced-motion:reduce){
 body.ab112-public .ab42-home .ab32-hero-pagination{scroll-behavior:auto!important}
}
