/* M3 — responsive, accessibility and rendering refinements. */
:where(button,input,select,textarea) { font: inherit; }
:where(a,button,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
:where(.button,.filter-chip,.support-row a,.contact-strip a,.more-info) { touch-action: manipulation; }
body[data-page] :where(h1,h2,h3,p,a,li) { overflow-wrap: anywhere; }
body[data-page] .hero h1 { text-wrap: balance; }
body[data-page] .hero-copy { text-wrap: pretty; }
body[data-page] img { max-width: 100%; }
body[data-page] .app-card,body[data-page] .access-card,body[data-page] .web-access-card,body[data-page] .panel { min-width: 0; }
body[data-page] .button,body[data-page] .filter-chip,body[data-page] .support-row a,body[data-page] .contact-strip a { min-height: 44px; }
body[data-page="catalogue"] .filter-chip { min-height: 44px; }
body[data-page="website-creation"] .field input,body[data-page="website-creation"] .field select { min-height: 48px; }
body[data-page="website-creation"] .field textarea { min-height: 140px; }
:where(#apps,#enquiry,#download-help-title,#web-access-title) { scroll-margin-top: 124px; }
body[data-page="catalogue"] .catalogue-search input { min-width: 0; }
body[data-page="catalogue"] .catalogue-filters,body[data-page="catalogue"] .app-card .card-actions { min-width: 0; }
@media (max-width:600px) {
  body[data-page="catalogue"] .hero { padding-top: 54px; }
  body[data-page="catalogue"] .hero h1 { max-width: 12ch; font-size: clamp(39px,11.5vw,54px); }
  body[data-page="catalogue"] .hero-copy { max-width: 43ch; font-size: 14px; line-height: 1.75; }
  body[data-page="catalogue"] .app-card { padding: 19px; }
  body[data-page="catalogue"] .app-card .card-actions { gap: 9px; }
  body[data-page] .hero .actions { gap: 9px; }
  body[data-page] .hero .button { min-height: 48px; }
  body[data-page] .footer-links { gap: 8px 14px; }
  body[data-page="website-creation"] .panel { padding: 19px; }
  body[data-page="website-creation"] .field input,body[data-page="website-creation"] .field select,body[data-page="website-creation"] .field textarea { width: 100%; max-width: 100%; }
}
@media (max-width:360px) {
  body[data-page="catalogue"] .hero h1 { font-size: 38px; }
  body[data-page="catalogue"] .catalogue-filters { grid-template-columns: 1fr 1fr; }
  body[data-page="catalogue"] .filter-chip { padding-inline: 8px; font-size: 10px; }
  body[data-page] .button { padding-inline: 14px; }
}
@media (min-width:601px) and (max-width:900px) {
  body[data-page="catalogue"] .app-card { padding: 22px; }
  body[data-page="website-creation"] .service-process { gap: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  body[data-page] .app-card,body[data-page] .visual .app-icon,body[data-page] .filter-chip { transition: none !important; }
}

/* Serve compact WebP assets where supported, retaining original PNG fallbacks. */
.hg-optimized-picture { display: block; width: 100%; height: 100%; }
.hg-optimized-picture img { display: block; }
.hg-brand .hg-optimized-picture { width: 40px; height: 40px; flex: 0 0 40px; }
.hg-brand .hg-optimized-picture img { width: 100%; height: 100%; }
@media (min-width:861px) and (max-width:1040px) {
  .hg-brand .hg-optimized-picture { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (max-width:380px) {
  .hg-brand .hg-optimized-picture { width: 34px; height: 34px; flex-basis: 34px; }
}
