html,
:host {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--figma-color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--body-medium-fontWeight);
  letter-spacing: var(--body-letter-spacing);
  background-color: var(--figma-color-bg);
  line-height: 1rem;
}
body,
:host {
  font-size: var(--body-medium-fontSize);
  letter-spacing: var(--body-letter-spacing);
  line-height: 1.4545em;
}

h1,
h2 {
  font-weight: var(--body-large-strong-fontWeight);
  font-size: var(--body-large-fontSize);
  text-wrap: pretty;
}
h3 {
  font-weight: var(--body-medium-strong-fontWeight);
  font-size: var(--body-medium-fontSize);
}
strong{
  font-weight: var(--body-medium-strong-fontWeight);
}

section{
  padding: var(--spacer-1) var(--spacer-3);
  margin-bottom: var(--spacer-2);
  &:last-child{
    margin-bottom: 0;
  }
}
fieldset{
  padding: var(--spacer-1) var(--spacer-3);
}

hr {
  height: 1px;
  border: none;
  width: 100%;
  background-color: var(--figma-color-border);
  margin: var(--spacer-2) 0;

  &[vertical] {
    height: 100%;
    width: 1px;
    margin: 0 var(--spacer-2);
  }
}

iframe{
  border: 0;
  background-color: transparent;
  margin: 0;
  width: max-content;
  height: max-content;
  max-width: 100%;
  max-height: 100%;
  width: 100%; 
  flex: 1 1 auto; 
  display: block; 
  min-height: 0;
}

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

::selection {
  background-color: var(--figma-color-text-selection);
}

::-moz-selection {
  background-color: var(--figma-color-text-selection);
}

/* helper classes/defaults */
::-webkit-scrollbar {
  width: var(--spacer-1);
  /* Width of the vertical scrollbar */
  height: var(--spacer-1);
  /* Height of the horizontal scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: var(--figma-color-bg-tertiary);
  border-radius: calc(var(--spacer-1) / 2);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--figma-color-bg-secondary);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--figma-color-bg-tertiary)
    var(--figma-color-bg-secondary);
}

.subtle {
  color: var(--figma-color-text-tertiary);
}

/* Defaults */
p {
  margin-block: 1em;
  text-wrap: pretty;
}
p:first-child {
  margin-block-start: 0;
}
p:last-child {
  margin-block-end: 0;
}

label, p, li, figcaption {
  color: var(--figma-color-text-secondary);
  text-wrap: pretty;
}

h2 {
  font-weight: var(--body-medium-strong-fontWeight);
  margin: var(--spacer-2) 0;
  text-wrap: pretty;
}

a{
  color: var(--figma-color-text-brand);
  text-decoration: none;
  &:hover{
    text-decoration: underline;
  }
}
