body {
  -webkit-user-select: none;
  user-select: none;
}

/* Allow copying the written content, including captions and tabular data. */
:where(h1, h2, h3, h4, h5, h6, p, blockquote, q, cite, address, li,
       figcaption, caption, dt, dd, th, td, pre, code, time, .commission-address) {
  -webkit-user-select: text;
  user-select: text;
}

/* A heading or caption inside a control is part of that control. */
:where(a[href], button, summary, label, select, svg, canvas, picture, img, video, audio,
    [aria-hidden="true"], [role="img"], [role="button"], [role="link"], [role="tab"],
    [role="slider"], [role="switch"], [role="option"], [role="menuitem"]),
:where(a[href], button, summary, label, select, svg, [aria-hidden="true"], [role="img"],
    [role="button"], [role="link"], [role="tab"], [role="slider"], [role="switch"],
    [role="option"], [role="menuitem"]) * {
  -webkit-user-select: none;
  user-select: none;
}

:is(a[href], button, summary, label, [role="button"], [role="tab"], img) {
  -webkit-tap-highlight-color: transparent;
}

:is(img, a[href]) {
  -webkit-user-drag: none;
}

/* Editors retain native selection, even when wrapped by a label. */
textarea, input:not([type]), input:is([type="text"], [type="search"], [type="url"],
    [type="email"], [type="tel"], [type="password"], [type="number"]),
[contenteditable]:not([contenteditable="false"]) {
  -webkit-user-select: text;
  user-select: text;
}
