/* Accessibility focus rings, skip link, container guards & progressive enhancement rules. */
:root {
  --focus: #006678;
}

main:focus {
  outline: none;
}

body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ffffff;
}

.skip-content,
.skip-link {
  position: fixed;
  left: 1rem;
  top: .6rem;
  transform: translateY(-180%);
  z-index: 1200;
  background: #ffffff;
  color: #192322;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid #192322;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}

.skip-content:focus,
.skip-link:focus {
  transform: none;
}

main, section, .wrap, .hero-content, .section-opening, .role-options, .role-layout, .role-layout > *,
.enidog-enquiry, .enquiry-row, .inv-wrap, .legal-wrap, .legal-wrap > *, .faqs-wrap {
  min-width: 0;
}

.hero-content, .band, .legal-wrap, .inv-wrap, .faqs-wrap, .site-foot {
  overflow-wrap: break-word;
}

.profile-source {
  max-width: 64ch;
}

body:not(:has(.interactive-roles)) .profile-source article {
  margin-bottom: 1em;
}

.interactive-roles .profile-source {
  display: none;
}

html:not(.interactive-roles) .role-layout {
  display: none;
}

#top .hero-content,
#people .role-layout {
  container-type: inline-size;
}

@container (max-width: 22rem) {
  #top .hero-actions a {
    width: 100%;
  }
  .role-options {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .band h2, .band h3, .band p, .survey, .role-options button, .flow3-col, .faq-group, .hero-content h1 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
