/* Targeted usability fixes; shared by English and Arabic pages. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #007c91 !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff !important;
}
.analytics-choice {
  position: fixed; inset: 1rem 1rem auto; z-index: 20000;
  max-width: 42rem; max-height: 45vh; overflow: auto; margin-inline: auto;
  padding: 1rem; background: #fff; color: #222; border: 2px solid #146c43;
  border-radius: .5rem; box-shadow: 0 4px 16px #0004; font: 1rem/1.5 Arial, sans-serif;
}
.analytics-choice[hidden] { display: none !important; }
.analytics-choice button, .analytics-settings {
  padding: .65rem 1rem; min-height: 44px; border: 1px solid #146c43;
  border-radius: .3rem; color: #fff; background: #146c43; margin: .25rem;
  white-space: normal;
}
.analytics-choice button:last-child { background: #fff; color: #222; }
.analytics-settings { margin: 1rem; }
.enquiry-feedback { padding: 1rem; border: 2px solid #146c43; background: #f0fff5; color: #222; }
.btn { max-width: 100%; white-space: normal; }
.btn span { white-space: normal; overflow-wrap: anywhere; }
.form-control { height: auto; min-height: 50px; }
@media (max-width: 767px) {
  #back-to-top { bottom: calc(var(--mobile-cta-height, 100px) + 12px); }
  .btn, .btn span { white-space: normal; }
  .btn-skew { max-width: 100%; }
  .banner-home .banner-title, .banner-home .banner-subtitle {
    position: relative; z-index: 2;
    padding: .35rem .5rem; background: #13284b;
    border-radius: .2rem;
  }
}

/* Clip the skewed decorative border to its feature section, not the document. */
.carousel-feature-section { overflow: hidden; }
/* The existing BMI decoration was clipped only below 1600px. */
.bmi-form { overflow-x: hidden; }
/* Keep contact addresses readable when text is enlarged without zooming images. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.header .topbar .d-inline-block { min-width: 0; max-width: 100%; }
.header .topbar .d-md-flex { flex-wrap: wrap; }
.header, .footer { overflow-x: clip; }
.blog-post { overflow-x: clip; }
.blog-post .blog-post-meta { flex-wrap: wrap; }
.blog-post .blog-post-meta li { min-width: 0; }
.bg-overlay-left { overflow-x: clip; }
@media (max-width: 991px) {
  .header .navbar-collapse.show {
    max-height: var(--mobile-menu-max-height, calc(100dvh - var(--mobile-cta-height, 0px) - 5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* Long words and addresses must reflow rather than clip at enlarged text sizes. */
h1, h2, h3, p, li, summary, th, td { overflow-wrap: anywhere; }
.pricing, .alignment-card, .feature-box h6 { min-width: 0; }
.feature-box h6 { overflow-wrap: anywhere; }
.footer-contact-info .d-flex { flex-wrap: wrap; }
.footer .footer-tag li { max-width: calc(100% - 1.5rem); }
.footer .footer-tag a { overflow-wrap: anywhere; }
.bmi-form .table-skew, .ar-hours { width: 100%; table-layout: fixed; }
.list-unstyled li.d-flex.justify-content-between { flex-wrap: wrap; }
.list-unstyled li.d-flex.justify-content-between > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .btn-skew { max-width: calc(100% - 2.5rem); }
  .btn-skew span { overflow-wrap: anywhere; }
}
@media (min-width: 768px) {
  .ar-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10em), 1fr)); }
}
