/* Apex Media | Signature Onyx / Midnight Services — reference design implementation
   Scope: services.html only. Does not modify shared site styles. */
body.apx-onyx-reskin:has(.aes-main){
  background:#0b0c0d!important;
  color:#f8f4ed!important;
}
body.apx-onyx-reskin:has(.aes-main) .v91-shared-nav{
  background:linear-gradient(180deg,#08090a,#111214)!important;
  border-bottom:1px solid rgba(218,175,110,.25)!important;
}
body.apx-onyx-reskin .aes-main{
  --aes-header:86px;
  padding-top:var(--aes-header)!important;
  overflow:clip!important;
  background:radial-gradient(ellipse at 2% 96%,rgba(174,113,47,.19),transparent 38%),
             radial-gradient(ellipse at 41% 10%,rgba(68,48,32,.15),transparent 35%),
             linear-gradient(105deg,#0c0d0e 0%,#111112 49%,#151413 100%)!important;
}
body.apx-onyx-reskin .aes-layout{
  grid-template-columns:minmax(295px,25%) minmax(0,1fr)!important;
  gap:clamp(6px,1vw,18px)!important;
  max-width:1860px!important;
  padding:clamp(15px,1.4vw,25px) clamp(22px,3.2vw,56px) clamp(22px,2.8vw,42px)!important;
  align-items:start!important;
}
body.apx-onyx-reskin .aes-sidebar{
  min-width:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.apx-onyx-reskin .aes-sidebar::before{
  z-index:0!important;
  inset:-10px -30px -20px -26px!important;
  background:radial-gradient(ellipse at 5% 88%,rgba(188,123,57,.19),transparent 52%),
             radial-gradient(ellipse at 0% 104%,transparent 0 40%,rgba(194,142,75,.22) 40.3%,transparent 40.7%,transparent 63%,rgba(194,142,75,.10) 63.2%,transparent 63.5%)!important;
  opacity:.72!important;
  pointer-events:none;
}
body.apx-onyx-reskin .aes-sidebar::after{display:none!important}
body.apx-onyx-reskin .aes-sidebar-inner{
  padding:clamp(20px,2.4vw,46px) clamp(16px,1.8vw,30px) 26px 0!important;
  min-height:0!important;
}
body.apx-onyx-reskin .aes-eyebrow{
  color:#e9bb75!important;
  margin-bottom:clamp(24px,2.9vw,48px)!important;
  font-size:10px!important;
  letter-spacing:.23em!important;
}
body.apx-onyx-reskin .aes-sidebar h1{
  font:400 clamp(39px,3vw,58px)/1.0 Georgia,'Times New Roman',serif!important;
  color:#f7f3ed!important;
  letter-spacing:-.052em!important;
  margin:0 0 22px!important;
}
body.apx-onyx-reskin .aes-sidebar h1 em{color:#e7b876!important}
body.apx-onyx-reskin .aes-summary{
  color:#e0dcd7!important;
  font:400 clamp(13px,.97vw,15px)/1.63 Arial,Helvetica,sans-serif!important;
  margin:0 0 27px!important;
  max-width:350px!important;
}
body.apx-onyx-reskin .aes-sidebar-nav{
  border-top:1px solid rgba(212,170,108,.4)!important;
  padding-top:20px!important;
  gap:2px!important;
  margin-bottom:25px!important;
}
body.apx-onyx-reskin .aes-nav-group{
  color:#e2b26c!important;
  font-size:10px!important;
  margin:5px 0 8px!important;
  letter-spacing:.15em!important;
}
body.apx-onyx-reskin .aes-nav-group--creative{margin-top:17px!important}
body.apx-onyx-reskin .aes-nav-link{
  font:400 clamp(13px,.92vw,15px)/1.3 Arial,Helvetica,sans-serif!important;
  min-height:28px!important;
  padding:3px 1px!important;
  color:#eee9e3!important;
  gap:13px!important;
}
body.apx-onyx-reskin .aes-nav-icon{
  width:24px!important;height:24px!important;flex-basis:24px!important;
  color:#dfb26e!important;
  border:0!important;border-radius:0!important;background:none!important;
}
body.apx-onyx-reskin .aes-nav-icon svg{width:19px!important;height:19px!important}
body.apx-onyx-reskin .aes-quote{
  border:1px solid rgba(225,178,104,.76)!important;
  color:#ebc485!important;
  border-radius:999px!important;
  background:rgba(10,10,11,.17)!important;
  padding:12px 20px!important;
  font-size:10px!important;
  margin-top:4px!important;
}
body.apx-onyx-reskin .aes-cards{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  padding:0!important;
  min-width:0!important;
  position:relative!important;
  background:none!important;
}
body.apx-onyx-reskin .aes-card,
body.apx-onyx-reskin .aes-card:nth-child(even){
  display:grid!important;
  grid-template-columns:minmax(0,45%) minmax(0,55%)!important;
  min-height:clamp(100px,6.5vw,123px)!important;
  align-items:stretch!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  border-bottom:1px solid rgba(198,151,83,.26)!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f8f3eb!important;
}
body.apx-onyx-reskin .aes-card:first-child{border-top:1px solid rgba(198,151,83,.20)!important}
body.apx-onyx-reskin .aes-card:hover{border-bottom-color:rgba(225,177,106,.64)!important;box-shadow:none!important}
body.apx-onyx-reskin .aes-photo{
  position:relative!important;
  min-height:inherit!important;
  height:100%!important;
  background:#171513!important;
  overflow:hidden!important;
}
body.apx-onyx-reskin .aes-photo img{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 49%!important;
  max-width:none!important;
  filter:saturate(1.15) contrast(1.10) brightness(1.09)!important;
  transform:scale(1.02);
}
body.apx-onyx-reskin .aes-photo::after,
body.apx-onyx-reskin .aes-card:nth-child(even) .aes-photo::after{
  content:""!important;
  position:absolute!important;
  z-index:1!important;
  inset:0 0 0 auto!important;
  width:54%!important;
  height:100%!important;
  background:linear-gradient(90deg,rgba(18,17,17,0) 1%,rgba(20,19,19,.22) 33%,rgba(20,19,19,.78) 71%,#151413 100%)!important;
  pointer-events:none!important;
}
body.apx-onyx-reskin .aes-info,
body.apx-onyx-reskin .aes-card:nth-child(even) .aes-info{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1.03fr) 36px!important;
  grid-template-rows:1fr!important;
  gap:clamp(11px,1.3vw,24px)!important;
  align-items:center!important;
  min-width:0!important;
  padding:clamp(11px,1.4vw,21px) clamp(10px,1.2vw,24px) clamp(11px,1.4vw,21px) 0!important;
  position:relative!important;
  z-index:2!important;
  background:linear-gradient(90deg,#151413,#141414 50%,#121212)!important;
  color:#f7f3ed!important;
}
body.apx-onyx-reskin .aes-name{gap:5px!important;grid-column:auto!important;grid-row:auto!important}
body.apx-onyx-reskin .aes-kicker{
  color:#e2b46d!important;
  font:700 clamp(9px,.66vw,11px)/1.3 Arial,Helvetica,sans-serif!important;
  letter-spacing:.17em!important;
}
body.apx-onyx-reskin .aes-name h2{
  color:#f7f2eb!important;
  font:400 clamp(19px,1.45vw,27px)/1.07 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.035em!important;
  margin:0!important;
  text-shadow:0 1px 15px rgba(0,0,0,.24)!important;
}
body.apx-onyx-reskin .aes-desc{
  grid-column:auto!important;
  grid-row:auto!important;
  color:#e3ded7!important;
  font:400 clamp(11.5px,.81vw,13.5px)/1.47 Arial,Helvetica,sans-serif!important;
  padding:0 0 0 clamp(12px,1vw,20px)!important;
  margin:0!important;
  border-left:1px solid rgba(213,166,104,.40)!important;
  text-shadow:none!important;
}
body.apx-onyx-reskin .aes-card-link{
  width:34px!important;height:34px!important;grid-column:auto!important;grid-row:auto!important;
  border:1.5px solid #dbad69!important;
  background:rgba(10,10,11,.32)!important;
  border-radius:50%!important;
  color:#e8bb7a!important;
  justify-self:end!important;
  align-self:center!important;
}
body.apx-onyx-reskin .aes-card-link:hover,
body.apx-onyx-reskin .aes-card-link:focus-visible{
  color:#0e0f10!important;background:#e8bb7a!important;
}
body.apx-onyx-reskin .aes-card-link:focus-visible,
body.apx-onyx-reskin .aes-nav-link:focus-visible,
body.apx-onyx-reskin .aes-quote:focus-visible{
  outline:2px solid #f5d79c!important;outline-offset:3px!important;
}
body.apx-onyx-reskin .aes-tag-before,body.apx-onyx-reskin .aes-tag-after{
  font:700 9px/1 Arial,sans-serif!important;
  letter-spacing:.09em!important;
  border:1px solid rgba(225,177,108,.8)!important;
  background:rgba(5,5,6,.74)!important;
  color:#f4c785!important;
}
body.apx-onyx-reskin .aes-after{
  background:transparent!important;
  color:#f4f0ea!important;
  border-top:1px solid rgba(214,164,97,.26)!important;
  padding-top:32px!important;
}
body.apx-onyx-reskin .aes-after h2{color:#f6f1e8!important}
body.apx-onyx-reskin .aes-after p{color:#cec8be!important}
@media (max-width:1400px) and (min-width:1051px){
  body.apx-onyx-reskin .aes-layout{grid-template-columns:minmax(260px,26%) minmax(0,1fr)!important;padding-inline:clamp(20px,2.2vw,32px)!important}
  body.apx-onyx-reskin .aes-info{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) 32px!important;gap:10px!important}
  body.apx-onyx-reskin .aes-name h2{font-size:clamp(18px,1.65vw,24px)!important}
  body.apx-onyx-reskin .aes-desc{font-size:clamp(11px,.85vw,12px)!important}
}
@media (max-width:1050px) and (min-width:781px){
  body.apx-onyx-reskin .aes-layout{grid-template-columns:minmax(255px,32%) minmax(0,1fr)!important;gap:9px!important;padding-inline:17px!important}
  body.apx-onyx-reskin .aes-sidebar-inner{padding:29px 17px 23px 0!important}
  body.apx-onyx-reskin .aes-sidebar h1{font-size:clamp(34px,3.85vw,45px)!important}
  body.apx-onyx-reskin .aes-card{grid-template-columns:34% 66%!important;min-height:125px!important}
  body.apx-onyx-reskin .aes-info{grid-template-columns:minmax(0,1fr) 32px!important;grid-template-rows:auto auto!important;gap:5px 10px!important;padding:12px 10px 12px 0!important}
  body.apx-onyx-reskin .aes-name{grid-row:1!important;grid-column:1!important}
  body.apx-onyx-reskin .aes-desc{grid-row:2!important;grid-column:1!important;padding:2px 0 0!important;border-left:0!important}
  body.apx-onyx-reskin .aes-card-link{grid-row:1/3!important;grid-column:2!important}
}
@media (max-width:780px){
  body.apx-onyx-reskin .aes-main{--aes-header:77px!important}
  body.apx-onyx-reskin .aes-layout{display:block!important;padding:0!important}
  body.apx-onyx-reskin .aes-sidebar{margin-bottom:0!important}
  body.apx-onyx-reskin .aes-sidebar-inner{padding:34px 28px 30px!important}
  body.apx-onyx-reskin .aes-sidebar h1{font-size:clamp(40px,7vw,58px)!important}
  body.apx-onyx-reskin .aes-sidebar-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 15px!important}
  body.apx-onyx-reskin .aes-nav-group{grid-column:1/-1!important}
  body.apx-onyx-reskin .aes-cards{padding-inline:18px!important}
  body.apx-onyx-reskin .aes-card{grid-template-columns:40% 60%!important;min-height:150px!important}
  body.apx-onyx-reskin .aes-info{grid-template-columns:minmax(0,1fr) 34px!important;grid-template-rows:auto auto!important;gap:6px 10px!important;padding:12px 10px 12px 0!important}
  body.apx-onyx-reskin .aes-name{grid-column:1!important;grid-row:1!important}
  body.apx-onyx-reskin .aes-desc{grid-column:1!important;grid-row:2!important;border-left:0!important;padding:0!important;font-size:12px!important}
  body.apx-onyx-reskin .aes-card-link{grid-column:2!important;grid-row:1/3!important}
}
@media (max-width:580px){
  body.apx-onyx-reskin .aes-main{--aes-header:77px!important}
  body.apx-onyx-reskin .aes-sidebar-inner{padding:34px 23px 26px!important}
  body.apx-onyx-reskin .aes-sidebar h1{font-size:clamp(38px,10vw,48px)!important}
  body.apx-onyx-reskin .aes-summary{font-size:13px!important}
  body.apx-onyx-reskin .aes-nav-link{font-size:12px!important;min-height:25px!important}
  body.apx-onyx-reskin .aes-cards{padding-inline:0!important}
  body.apx-onyx-reskin .aes-card{
    display:block!important;
    min-height:180px!important;
    padding:0!important;
    margin:0!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid rgba(225,173,101,.36)!important;
    overflow:hidden!important;
    background:#111213!important;
  }
  body.apx-onyx-reskin .aes-card:first-child{border-top:1px solid rgba(225,173,101,.25)!important}
  body.apx-onyx-reskin .aes-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;z-index:0!important}
  body.apx-onyx-reskin .aes-photo img{object-position:58% center!important;filter:contrast(1.1) saturate(1.13) brightness(.93)!important}
  body.apx-onyx-reskin .aes-photo::after,
  body.apx-onyx-reskin .aes-card:nth-child(even) .aes-photo::after{
    width:100%!important;height:100%!important;inset:0!important;
    background:linear-gradient(90deg,#0d0e0ff7 0%,#0d0e0fee 28%,#0d0e0fba 52%,#0d0e0f54 84%,#0d0e0f57 100%),
               linear-gradient(0deg,#0c0d0ed9,transparent 70%)!important;
  }
  body.apx-onyx-reskin .aes-info,
  body.apx-onyx-reskin .aes-card:nth-child(even) .aes-info{
    position:relative!important;
    display:grid!important;
    min-height:180px!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    grid-template-rows:auto auto!important;
    align-content:center!important;
    gap:6px 15px!important;
    padding:22px 18px 23px 22px!important;
    z-index:2!important;
    background:none!important;
  }
  body.apx-onyx-reskin .aes-name{grid-column:1!important;grid-row:1!important}
  body.apx-onyx-reskin .aes-name h2{font-size:clamp(22px,5.6vw,27px)!important}
  body.apx-onyx-reskin .aes-kicker{font-size:9px!important}
  body.apx-onyx-reskin .aes-desc{grid-column:1!important;grid-row:2!important;font-size:12px!important;line-height:1.42!important;max-width:335px!important}
  body.apx-onyx-reskin .aes-card-link{grid-column:2!important;grid-row:1/3!important;justify-self:end!important}
  body.apx-onyx-reskin .aes-tag-before,body.apx-onyx-reskin .aes-tag-after{display:none!important}
}
@media(prefers-reduced-motion:reduce){body.apx-onyx-reskin .aes-photo img,body.apx-onyx-reskin .aes-card-link{transition:none!important}}

/* Final adjustments: eliminate any sidebar block edge, and force a single
   full-bleed mobile layout for *all* rows (including even-numbered rows). */
body.apx-onyx-reskin .aes-sidebar::before{
  display:none!important;
}
@media(max-width:580px){
  body.apx-onyx-reskin .aes-card,
  body.apx-onyx-reskin .aes-card:nth-child(even){
    display:block!important;
    min-height:190px!important;
    grid-template-columns:none!important;
    background:#111213!important;
  }
  body.apx-onyx-reskin .aes-card .aes-info,
  body.apx-onyx-reskin .aes-card:nth-child(even) .aes-info{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 36px!important;
    grid-template-rows:auto auto!important;
    min-height:190px!important;
    align-items:center!important;
    align-content:center!important;
    background:transparent!important;
  }
  body.apx-onyx-reskin .aes-card .aes-name,
  body.apx-onyx-reskin .aes-card:nth-child(even) .aes-name{
    grid-column:1!important;grid-row:1!important;
  }
  body.apx-onyx-reskin .aes-card .aes-desc,
  body.apx-onyx-reskin .aes-card:nth-child(even) .aes-desc{
    grid-column:1!important;grid-row:2!important;
    max-width:315px!important;
  }
  body.apx-onyx-reskin .aes-card .aes-card-link,
  body.apx-onyx-reskin .aes-card:nth-child(even) .aes-card-link{
    grid-column:2!important;grid-row:1 / 3!important;
  }
}
