/* DOCNC's interface uses square corners, including newly added components. */
*, *::before, *::after { border-radius: 0 !important; }

/* Keep search fields square rather than using the browser's rounded search skin. */
input[type=search] { -webkit-appearance: none; appearance: none; }

/* Preserve native checkbox/radio semantics and keyboard behavior with square visuals. */
input[type=checkbox], input[type=radio] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  min-width: 1.05em;
  margin: 0;
  padding: 0;
  border: 1px solid #668577;
  background: #fff;
  color: var(--dark-green, #03442d);
  vertical-align: middle;
  cursor: pointer;
}
input[type=checkbox]::before, input[type=radio]::before { content: ''; }
input[type=checkbox]:checked::before {
  width: .35em;
  height: .6em;
  margin-top: -.15em;
  border: solid currentColor;
  border-width: 0 .15em .15em 0;
  transform: rotate(45deg);
}
input[type=radio]:checked::before { width: .55em; height: .55em; background: currentColor; }
input[type=checkbox]:indeterminate::before { width: .55em; height: .15em; background: currentColor; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .6; cursor: default; }

@media (forced-colors: active) {
  input[type=checkbox], input[type=radio] { forced-color-adjust: none; background: Canvas; color: CanvasText; border-color: CanvasText; }
  input[type=checkbox]:disabled, input[type=radio]:disabled { color: GrayText; border-color: GrayText; opacity: 1; }
}
