/*
 * Floors every page shares (USABILITY.md, UX-05 and UX-08). Linked from the shared footer, so a page cannot forget it.
 *
 * Field edge: WCAG 1.4.11 asks for 3 to 1 on the edge of a control. #7a7a83 is 3.9 to 1 on the light page and 4.8 to 1
 * on the dark page. It beats inline styles, because the footer form and several pages set their own border.
 * The focus ring stays green.
 *
 * Tick boxes: 24px is the WCAG 2.5.8 minimum; the label around one is the 44px target.
 */
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]):not([type="range"]),
select,
textarea {
  border-color: #7a7a83 !important;
}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  border-color: var(--green, #0f7a4a) !important;
}
input[type="checkbox"],
input[type="radio"] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--green, #0f7a4a);
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  min-height: 44px;
  align-items: center;
}

/*
 * Links that open a new tab say so to a screen reader (UX-06, WCAG G201). The words are generated and clipped, so
 * nothing changes on screen, but they are part of the link's name.
 */
a[target="_blank"]::after {
  content: " (opens in a new tab)";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
