/* Shared accessibility foundation, loaded by every document_shell page.
   Keep this small and palette-neutral: white, neutral text and the existing
   #2a979a teal focus colour. Family stylesheets own all page geometry. */

/* Skip link: first focusable element on every page, visible only on focus. */
.custodian-skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 2147483000;
  padding: 12px 16px;
  background: #fff;
  color: #111;
  font: 600 16px/1.4 Poppins, Arial, sans-serif;
  text-decoration: underline;
  transform: translateY(-120%);
}
.custodian-skip-link:focus,
.custodian-skip-link:focus-visible {
  transform: translateY(12px);
  outline: 3px solid #2a979a;
  outline-offset: 2px;
}

/* Text promoted to a real heading keeps the presentation it had as a <div>.
   html + element selectors give (0,0,2): stronger than legacy bare h1-h6
   rules, weaker than any class rule, so family classes still style it. */
html :is(h1, h2, h3, h4, h5, h6):where(.custodian-heading) {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Text for assistive technology only. */
.custodian-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
