/*
 * CSS Reset for improved defaults.
 *
 * Based on Josh's Custom CSS Reset
 * https://www.joshwcomeau.com/css/custom-css-reset/
 */

/* Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
}

body {
  /* Note: The base font-size and line-height are set in main.css */
  /* Improve text rendering */
  text-rendering: optimizeLegibility;
  -moz-font-feature-settings: "kern" 1, "liga" 1;
  -ms-font-feature-settings: "kern" 1, "liga" 1;
  -o-font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-feature-settings: "kern" 1, "liga" 1;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improve media defaults */
img, picture, video, canvas, svg, audio, iframe, details, main {
  display: block;
}
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
img:not([src]) { /* Probably dynamically loaded. */
  visibility: hidden;
  min-width: 1px;
}
iframe {
  border: none;
}
address, cite, blockquote {
  font-style: normal;
}
summary {
  display: list-item;
}
template {
  display: none;
}

/* Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Improve line wrapping */
p {
  text-wrap: pretty;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Create a root stacking context */
#root, #__next {
  isolation: isolate;
}