/* Mobile progressive disclosure for the long before/after case-study claims. */
.ba-mobile-toggle {
  display: none;
}

@media (max-width: 860px) {
  .ba-claim[data-ba-disclosure] {
    padding-top: clamp(24px, 7vw, 34px);
  }

  .ba-claim[data-ba-disclosure] .ba-intro {
    margin-bottom: 12px;
  }

  .ba-claim[data-ba-disclosure] .ba-mobile-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 11px 12px 11px 15px;
    border: 1px solid var(--line, rgba(13, 13, 13, .13));
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    color: var(--petrol, #0b405f);
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(46, 127, 184, .18);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  }

  .ba-claim[data-ba-disclosure] .ba-mobile-toggle + .ba {
    margin-top: 10px;
  }

  .ba-claim[data-ba-disclosure] .ba-mobile-toggle:focus-visible {
    outline: 3px solid var(--yellow, #e8c320);
    outline-offset: 3px;
  }

  .ba-claim[data-ba-expanded="true"] .ba-mobile-toggle {
    border-color: var(--petrol, #0b405f);
    background: var(--petrol, #0b405f);
    color: var(--paper, #faf9f6);
  }

  .ba-mobile-toggle__icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid currentColor;
    border-radius: 50%;
  }

  .ba-mobile-toggle__icon::before,
  .ba-mobile-toggle__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease, transform .2s ease;
  }

  .ba-mobile-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .ba-mobile-toggle[aria-expanded="true"] .ba-mobile-toggle__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .ba-claim[data-ba-disclosure] [data-ba-detail][hidden] {
    display: none !important;
  }

  .ba-claim[data-ba-disclosure] .ba.ba--summary-only .ba-save {
    border-top: 0;
  }
}

@media (hover: hover) and (max-width: 860px) {
  .ba-claim[data-ba-disclosure] .ba-mobile-toggle:hover {
    border-color: var(--petrol, #0b405f);
    background: rgba(11, 64, 95, .07);
  }

  .ba-claim[data-ba-expanded="true"] .ba-mobile-toggle:hover {
    background: var(--petrol-deep, #072f47);
    color: var(--paper, #faf9f6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba-claim[data-ba-disclosure] .ba-mobile-toggle,
  .ba-mobile-toggle__icon::before,
  .ba-mobile-toggle__icon::after {
    transition: none;
  }
}
