/* Aperture Research Works V114 — final visual, mobile and interaction polish */

/* Premium presentation: primary actions remain in the navigation and page content. */
.work-sticky,
.enquiry-sticky{display:none!important}

/* Academic synopsis: compact navigation, clear primary action, no oversized empty button. */
.v111-synopsis-actions{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:.75rem!important;
  margin:1rem 0 1.65rem!important;
}
.v111-synopsis-actions>a:first-child{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:.35rem 0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#173553!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-align:left!important;
  justify-self:start!important;
  justify-content:flex-start!important;
}
.v111-synopsis-actions>a:first-child:hover,
.v111-synopsis-actions>a:first-child:focus-visible{
  color:#0b5f91!important;
  text-decoration:underline!important;
  text-underline-offset:4px!important;
  transform:none!important;
}
.v111-synopsis-actions>a:last-child{
  width:auto!important;
  max-width:100%!important;
  justify-self:start!important;
  margin:0!important;
}

/* Lock intended light-on-dark components. The generic contrast guard must not reverse them. */
.v113-private-standard,
.v113-private-card,
.v113-form-gate{color:#f7fbff!important}
.v113-private-standard :is(h1,h2,h3,h4,h5,h6,strong),
.v113-private-card :is(h1,h2,h3,h4,h5,h6,strong),
.v113-form-gate :is(h1,h2,h3,h4,h5,h6,strong){color:#ffffff!important}
.v113-private-standard :is(p,li,small),
.v113-private-card :is(p,li,small){color:#d9e4f1!important}
.v113-form-gate p{color:#d9e4f1!important}
.v113-form-gate li{color:#e7eef7!important}
.v113-form-gate .v113-kicker{color:#ffffff!important}

/* Mobile reading polish: avoid awkward automatic word hyphenation and accidental horizontal scroll. */
html,body{max-width:100%;overflow-x:clip}
main :is(h1,h2,h3,h4,p,li,.button){-webkit-hyphens:none!important;hyphens:none!important;word-break:normal;overflow-wrap:break-word}

/* Android/mobile language selector: stable touch target and native-select behaviour. */
.language-control{min-height:44px!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.language-control select{min-height:38px!important;touch-action:manipulation}

/* Mobile spacing, button hierarchy and floating-control safety. */
@media(max-width:760px){
  .v111-synopsis-actions{
    gap:.7rem!important;
    margin:.85rem 0 1.45rem!important;
  }
  .v111-synopsis-actions>a:first-child{
    font-size:.96rem!important;
    max-width:100%!important;
  }
  .v111-synopsis-actions>a:last-child{
    width:100%!important;
    min-height:52px!important;
    justify-content:center!important;
    text-align:center!important;
    padding:.85rem 1rem!important;
  }
  .language-control{
    min-width:116px!important;
    max-width:152px!important;
    padding:.25rem .42rem!important;
  }
  .language-control select{
    min-width:0!important;
    width:100%!important;
    font-size:16px!important;
    line-height:1.2!important;
    padding:.25rem 1.2rem .25rem .1rem!important;
  }
  .synopsis-page{padding-top:34px!important}
  .synopsis-page h1{margin-bottom:18px!important;line-height:1.02!important}
  .scenario-hero .button-row{gap:.7rem!important}
  .scenario-hero .button-row .button{width:100%!important;margin:0!important}
  .v113-form-gate{border-radius:22px!important;padding:24px 22px!important}
  .v113-form-gate li{margin:.65rem 0!important}
  .whatsapp-fab{bottom:calc(12px + env(safe-area-inset-bottom))!important}
  .site-footer{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
}

@media(max-width:420px){
  .v113-access-strip{gap:6px 12px!important;letter-spacing:.1em!important}
  .v113-private-card,.v113-confidentiality-box,.v113-scale-panel{border-radius:20px!important}
  .section{padding-top:3rem!important;padding-bottom:3rem!important}
  .page-hero{padding-top:3rem!important;padding-bottom:3rem!important}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important}
}
/* Override high-specificity daylight button skin for the synopsis back-link. */
body.daylight-prism .v111-synopsis-actions>a.button.secondary:first-child,
body.section-pastel-site .v111-synopsis-actions>a.button.secondary:first-child{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#173553!important;
}
/* Mobile header: keep language switching reachable on Android without crowding the brand/menu. */
@media(max-width:760px){
  .header-linkedin{display:none!important}
  .nav-shell{width:calc(100% - 20px)!important;gap:6px!important}
  .brand img{width:164px!important;max-width:42vw!important}
  .menu-button{min-width:42px!important;width:42px!important;height:42px!important;padding:8px!important;flex:0 0 42px!important}
  .v107-search-launch{flex:0 0 40px!important}
}
@media(max-width:420px){
  .nav-shell{gap:5px!important}
  .brand img{width:150px!important;max-width:40vw!important}
  .language-control{min-width:100px!important;max-width:112px!important}
}
@media(max-width:360px){
  .brand img{width:138px!important}
  .language-control{min-width:96px!important;max-width:104px!important}
  .menu-button{min-width:40px!important;width:40px!important;height:40px!important;flex-basis:40px!important}
  .v107-search-launch{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important}
}
