/* Keep unstyled public forms readable on dark pages. Component rules can override these defaults. */
:where(main form, .fj-reference-preview [role="dialog"]) :where(
  input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="range"], [type="color"]),
  select,
  textarea
) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #796775;
  border-radius: 7px;
  background-color: #211a21;
  color: #fff5fa;
  color-scheme: dark;
  font: inherit;
}

:where(main form, .fj-reference-preview [role="dialog"]) :where(input, textarea)::placeholder {
  color: #bfaeb9;
  opacity: 1;
}

:where(main form, .fj-reference-preview [role="dialog"]) :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: #d91f39;
}

:where(main form) :where(input[type="submit"]),
:where(main form) button:where([type="submit"], :not([type])) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #8c697d;
  border-radius: 7px;
  background-color: #38252f;
  color: #fff5fa;
  font: inherit;
  cursor: pointer;
}

:where(main) .post-password-form {
  max-width: 620px;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #594655;
  border-radius: 12px;
  background: #221a22;
}

:where(main) .post-password-form label {
  display: grid;
  gap: 6px;
}

:where(main) .post-password-form input[type="submit"] {
  width: auto;
  margin-top: 10px;
  background-color: #a91c32;
  color: #fff;
}
