/* One focus contract for portal and authentication controls. */
:where(.ptsea-shell, .auth-page, .public-page, .lp-page) {
  --ptsea-focus-color: var(--control-brand, var(--auth-focus, #248454));
  --ptsea-focus-ring: rgba(36, 132, 84, .22);
}

:where(.ptsea-shell, .auth-page, .public-page, .lp-page) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
):focus {
  border-color: var(--ptsea-focus-color) !important;
  outline: 0;
  box-shadow: none !important;
}

:where(.ptsea-shell, .auth-page, .public-page, .lp-page) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
):focus-visible {
  outline: 2px solid var(--ptsea-focus-ring);
  outline-offset: 1px;
}

:where(.ptsea-shell, .auth-page, .public-page, .lp-page) :is(
  button,
  a[href],
  input[type="checkbox"],
  input[type="radio"],
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid var(--ptsea-focus-color) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

[data-bs-theme="dark"] :where(.ptsea-shell, .auth-page, .public-page, .lp-page) {
  --ptsea-focus-ring: rgba(121, 199, 157, .34);
}
