/* Keep desktop's original arrow glyphs; use scalable, current-color icons on
   mobile so iOS and Android cannot substitute grey emoji-style arrows. */
.arrow-icon {
  display: none;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The added wrapper should inherit the existing desktop glyph styling, even
   inside contact details where other spans are formatted as labels. */
a .arrow-character,
button .arrow-character,
span .arrow-character,
i .arrow-character,
b .arrow-character {
  display: inline;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.arrow-icon-play {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1024px) {
  /* Preserve native disabled states while preventing enabled mobile buttons
     from receiving a grey browser-default treatment. */
  button:not(:disabled) {
    -webkit-appearance: none;
    appearance: none;
  }

  .arrow-character {
    display: none !important;
  }

  .arrow-icon {
    display: inline-block;
    vertical-align: -0.14em;
  }

  .footer-social .arrow-icon {
    color: inherit;
  }

  /* Replace only the painted chevron; the native service picker still opens. */
  .form-wrap select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 42px;
  }

  /* The photo can overlap the arrow briefly during its scroll reveal. */
  .service-card .service-meta {
    position: relative;
    z-index: 2;
  }

  .lightbox-arrow {
    display: grid;
    place-items: center;
    padding: 0;
    min-width: 44px;
    flex: 0 0 48px;
  }

  .lightbox figure {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  /* Maintain at least a 44px touch target without crowding the photo. */
  .lightbox-arrow {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
  }

  .lightbox figure {
    max-width: calc(100vw - 100px);
  }
}
