/* Shared by the app and standalone guides; follows Streamsite's corner treatment. */
:root {
  --ui-corner-scale: 1;
  --ui-pill-radius: 999px;
}

@supports (corner-shape: squircle) {
  :root {
    /* Continuous corners need a wider radius than circular arcs. */
    --ui-corner-scale: 2;
    --ui-pill-radius: 16px;
  }
}

:where(*) {
  /* Unsupported browsers keep their existing rounded corners. */
  corner-shape: squircle;
}

::before,
::after {
  corner-shape: inherit;
}

:where(button, [role="button"], select, textarea,
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"])) {
  border-radius: calc(8px * var(--ui-corner-scale, 1));
}

:where(input[type="radio"], input[type="range"]) {
  corner-shape: round;
}
