@charset "utf-8";

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  min-height: 0;
  min-width: 0;
  margin: unset;
  padding: unset;
}

:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;

  min-height: 100svh;
  overflow-x: clip;
}

/*
 * links
 */

:any-link {
  color: unset;
  text-decoration-line: unset;
  text-decoration-thickness: 1px;
  text-underline-position: from-font;
  text-underline-offset: 1px;
}

/*
 * focus styles
 */

:focus-visible {
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

[tabindex="-1"]:focus-visible {
  outline: none !important;
}

/*
 * grouping contents
 */

dt {
  font-weight: bold;
}

ul,
ol,
summary {
  list-style-type: "";
}

summary::-webkit-details-marker {
  display: none;
}

/*
 * interactive elements
 */

summary {
  cursor: pointer;
}

[popover] {
  overscroll-behavior: contain;
  inset: unset;
  width: auto;
  height: auto;
  border: unset;
}

/*
 * embedded contents
 */

img,
svg,
picture,
video,
canvas,
iframe {
  display: block;
  height: auto;
  max-width: 100%;
}

/*
 * forms
 */

button,
input,
select,
textarea,
::file-selector-button {
  border-width: 1px;
  border-style: solid;
  border-color: unset;
  border-radius: unset;
  color: unset;
  font: unset;
  text-align: unset;
}

input:focus-visible:not(
    [type="button"],
    [type="submit"],
    [type="reset"],
    [type="file"],
    [type="range"]
  ),
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0px;
}

button,
input:is([type="button"], [type="submit"], [type="reset"]),
::file-selector-button {
  background-color: unset;
  touch-action: manipulation;
}

button,
select,
input:is(
  [type="button"],
  [type="submit"],
  [type="reset"],
  [type="radio"],
  [type="checkbox"]
) {
  &:not(:disabled, [aria-disabled="true"]) {
    cursor: pointer;
  }
}

label[for],
:not(:disabled, [aria-disabled="true"])::file-selector-button {
  cursor: pointer;
}

:disabled,
[aria-disabled="true"] {
  cursor: default;
}
