/* Shared public-site accessibility improvements.
   Loaded after existing styles; inquiry submission behavior is unchanged. */

/* Current brand.css sticky header: 96px; 82px at <=600px. */
html {
  scroll-padding-block-start: 112px;
}

@media (max-width: 600px) {
  html {
    scroll-padding-block-start: 98px;
  }
}

/* Existing input border is 2.05:1 against white. This is 4.03:1.
   These selectors deliberately exclude privacy and honeypot controls. */
.enquiry-form .field :is(input, select, textarea) {
  border-color: #6b8196;
  font-size: 1rem;
  min-block-size: 48px;
}

/* Managed labels have two spans; preserve a smaller optional/required hint. */
.enquiry-form[data-aito-inquiry="managed"] .field label > span:first-child {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 550;
}

/* These headings follow the product h1; preserve their former h3 appearance. */
.detail-groups h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
}

/* Semantic h2 headings retain the existing card/footer design. */
.product-card h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.resource-grid h2 {
  margin-top: 28px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.025em;
}

.insight-card h2 {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 12px;
  letter-spacing: -.025em;
}

.footer-grid h2 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 18px;
}

@media (max-width: 1000px) {
  .insight-card h2 {
    font-size: 21px;
  }
}

@media (max-width: 800px) {
  .product-card h2 {
    font-size: 16px;
  }

  .resource-grid h2 {
    margin-top: 17px;
    font-size: 24px;
  }

  .insight-card h2 {
    font-size: 23px;
  }
}

/* Only enlarge the small controls on devices whose primary input is touch. */
@media (pointer: coarse) {
  .menu-toggle,
  .language-picker summary,
  .language-list a {
    min-inline-size: 44px;
    min-block-size: 44px;
  }
}

/* Long translated button labels must wrap inside the contact grid. */
.contact-layout > *, .enquiry-form .field { min-inline-size: 0; }
.enquiry-form .button { white-space: normal; max-inline-size: 100%; overflow-wrap: break-word; }
