/* Shared button treatment, including Safari touch focus and native form submits.
   Preserve keyboard feedback without a focus ring; text-entry focus is unchanged. */
.ds-site :is(button, [role="button"], [role="tab"], .button, input[type="submit"], input[type="button"], input[type="reset"], .page-numbers):is(:focus, :focus-visible, :active) {
  outline:none !important;
  box-shadow:none !important;
}
.ds-site :is(button, [role="button"], [role="tab"], .button, input[type="submit"], input[type="button"], input[type="reset"], .page-numbers) {
  -webkit-tap-highlight-color:transparent;
}
.ds-site :is(button, [role="button"], [role="tab"], .button, input[type="submit"], input[type="button"], input[type="reset"], .page-numbers):focus-visible {
  filter:brightness(.88);
}

/* Reset iPad/Safari native button padding and persistent touch-focus fill. */
.ds-site :is(.application-close,.portfolio-popup-close),
.ds-site :is(.application-close,.portfolio-popup-close):is(:hover,:focus,:focus-visible,:active) {
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  max-width:44px;
  max-height:44px;
  padding:0;
  border:1px solid #0d0d0d1a;
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  outline:none !important;
  box-shadow:none !important;
  filter:none !important;
  display:grid;
  place-items:center;
  line-height:1;
  -webkit-tap-highlight-color:transparent;
}
