/* AB360 v4.19.3 — high-contrast photographic cards.
   Loaded LAST to override legacy home/directory !important declarations.
   Never apply photographic styles to normal text/forms/utility panels. */

html body main .ab360-premium-card.ab360-card-photo,
html body main .ab360-gateway-card.ab360-card-photo {
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  color:#f8fbff!important;
  background-color:#10283c!important;
  background-image:var(--card-photo)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
/* The gradient must cover the WHOLE photograph. Top-of-image captions were unreadable. */
html body main .ab360-premium-card.ab360-card-photo::before,
html body main .ab360-gateway-card.ab360-card-photo::before {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  height:auto!important;
  width:auto!important;
  transform:none!important;
  border:0!important;
  border-radius:inherit!important;
  background:linear-gradient(180deg,rgba(3,14,26,.67) 0%,rgba(4,17,29,.63) 37%,rgba(4,17,29,.83) 74%,rgba(3,13,25,.94) 100%)!important;
  pointer-events:none!important;
  z-index:0!important;
}
html body main .ab360-premium-card.ab360-card-photo > *,
html body main .ab360-gateway-card.ab360-card-photo > *{position:relative!important;z-index:1!important}

/* Headings, explanatory copy, fact labels — no inherited dark-on-dark values. */
html body main .ab360-premium-card.ab360-card-photo :is(h2,h3,h4,strong,.card-title,.choice-title),
html body main .ab360-gateway-card.ab360-card-photo :is(h2,h3,h4,strong) {
  color:#fff!important;
  text-shadow:0 2px 8px rgba(0,0,0,.55)!important;
}
html body main .ab360-premium-card.ab360-card-photo :is(p,li,.card-fact,.bc-card-body p,.biz-tile span:not(.biz-tile-cta):not(.biz-tile-kicker),.card-description),
html body main .ab360-gateway-card.ab360-card-photo :is(p,small) {
  color:#ecf4f8!important;
  text-shadow:0 1px 5px rgba(0,0,0,.55)!important;
  opacity:1!important;
}
/* Tiny pills are ink-on-dark glass, not faded white-on-white. */
html body main .ab360-premium-card.ab360-card-photo :is(.badge,.card-fact,.path-label,.route-badge,.bc-card-top,.biz-tile-kicker,.employer-ribbon),
html body main .ab360-gateway-card.ab360-card-photo > span:first-child {
  color:#fff!important;
  background:rgba(4,28,44,.90)!important;
  border:1px solid rgba(226,240,247,.42)!important;
  border-radius:9px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.3)!important;
  backdrop-filter:blur(5px);
  text-shadow:none!important;
  opacity:1!important;
  width:fit-content;
  max-width:100%;
  padding:6px 10px!important;
  line-height:1.45!important;
}
html body main .ab360-premium-card.ab360-card-photo .card-fact{
  font-size:.84rem!important;
  font-weight:700!important;
}
/* Readable icon medallions */
html body main .ab360-premium-card.ab360-card-photo .card-icon {
  background:rgba(3,24,38,.85)!important;
  border:1px solid rgba(255,255,255,.40)!important;
  color:#fff!important;
}
html body main .ab360-premium-card.ab360-card-photo .card-icon svg {
  stroke:#fff!important;
  color:#fff!important;
}
/* Opaque CTA against photos: dark text on pale gold, high contrast. */
html body main .ab360-premium-card.ab360-card-photo a:not(.btn):not(.bc-btn):not(.nav-cta):not(.card-icon),
html body main .ab360-premium-card.ab360-card-photo .biz-tile-cta,
html body main .ab360-gateway-card.ab360-card-photo em {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#10273b!important;
  background:#ffe2a0!important;
  border:1px solid #f9d389!important;
  text-shadow:none!important;
  font-weight:850!important;
  text-decoration:none!important;
  border-radius:10px!important;
  padding:10px 14px!important;
  box-shadow:0 6px 16px rgba(0,0,0,.26)!important;
  opacity:1!important;
  width:fit-content;
  max-width:100%;
  line-height:1.45!important;
}
/* Avoid treating the entire business tile anchor as a button. */
html body main a.biz-tile.ab360-card-photo,
html body main a.ab360-gateway-card.ab360-card-photo {
  display:flex!important;
  color:#f8fbff!important;
  border:1px solid rgba(205,229,239,.38)!important;
  background-color:#10283c!important;
  background-image:var(--card-photo)!important;
  padding:22px!important;
  text-decoration:none!important;
}
html body main a.biz-tile.ab360-card-photo .biz-tile-cta,
html body main a.ab360-gateway-card.ab360-card-photo em {
  margin-top:auto!important;
}
html body main .ab360-premium-card.ab360-card-photo a:not(.btn):hover,
html body main .ab360-premium-card.ab360-card-photo .biz-tile-cta:hover {
  background:#fff0c7!important;
  color:#08243c!important;
}
html body main .ab360-premium-card.ab360-card-photo a:focus-visible,
html body main a.ab360-gateway-card.ab360-card-photo:focus-visible {
  outline:3px solid #ffe2a0!important;
  outline-offset:3px!important;
}
/* Empty decorative spans should never cover content or capture clicks. */
html body main .ab360-premium-card .ab360-card-shine{pointer-events:none!important}

/* Preserve visible artwork; scroll reveals must never hide a card if observed off screen. */
@media (max-width:720px){
  html body main .ab360-premium-card.ab360-card-photo::before,
  html body main .ab360-gateway-card.ab360-card-photo::before {
    background:linear-gradient(180deg,rgba(2,14,26,.75),rgba(3,15,27,.76) 44%,rgba(3,13,25,.95))!important;
  }
  html body main .ab360-premium-card.ab360-card-photo :is(p,.card-fact),
  html body main .ab360-gateway-card.ab360-card-photo small{font-size:max(.87rem,13px)!important}
}
@media(prefers-reduced-motion:reduce){
  html body main .ab360-premium-card.ab360-card-photo,
  html body main .ab360-gateway-card.ab360-card-photo{transition:none!important;transform:none!important}
}

/* Highest-priority safeguard against legacy section-level !important rules. */
html body main :is(#solutions,#different-path,#financial-strength,#business-owners,#all-solutions) :is(.planning-grid,.biz-tiles,.biz-tiles-1,.outcome-grid) .ab360-premium-card.ab360-card-photo{
  background-image:var(--card-photo)!important;background-color:#10283c!important;background-size:cover!important;background-position:center!important;
}
html body main :is(#solutions,#different-path,#financial-strength,#business-owners,#all-solutions) :is(.planning-grid,.biz-tiles,.biz-tiles-1,.outcome-grid) .ab360-premium-card.ab360-card-photo::before{
  content:""!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;
  background:linear-gradient(180deg,rgba(3,14,26,.69),rgba(4,17,29,.67) 38%,rgba(4,17,29,.86) 74%,rgba(3,13,25,.95))!important;
  border:0!important;border-radius:inherit!important;z-index:0!important;
}
html body main :is(#solutions,#different-path,#financial-strength,#business-owners,#all-solutions) :is(.planning-grid,.biz-tiles,.biz-tiles-1,.outcome-grid) .ab360-premium-card.ab360-card-photo :is(h3,strong){color:#fff!important;text-shadow:0 2px 9px #0009!important}
html body main :is(#solutions,#different-path,#financial-strength,#business-owners,#all-solutions) :is(.planning-grid,.biz-tiles,.biz-tiles-1,.outcome-grid) .ab360-premium-card.ab360-card-photo :is(p,.card-fact,span:not(.badge):not(.card-icon):not(.ab360-card-shine):not(.biz-tile-cta):not(.biz-tile-kicker)){
 color:#eef6fa!important;opacity:1!important;text-shadow:0 1px 6px #000a!important;
}
html body main :is(#solutions,#different-path,#financial-strength,#business-owners,#all-solutions) :is(.planning-grid,.biz-tiles,.biz-tiles-1,.outcome-grid) .ab360-premium-card.ab360-card-photo :is(.badge,.card-fact,.biz-tile-kicker,.employer-ribbon){
  background:rgba(4,28,44,.92)!important;color:#fff!important;border:1px solid #d8eaf3a8!important;text-shadow:none!important;
}
html body main :is(#solutions,#different-path,#financial-strength,#business-owners,#all-solutions) :is(.planning-grid,.biz-tiles,.biz-tiles-1,.outcome-grid) .ab360-premium-card.ab360-card-photo :is(a:not(.biz-tile),.biz-tile-cta){
  background:#ffe2a0!important;color:#10273b!important;text-shadow:none!important;border:1px solid #f9d389!important;
}
