/**
 * Base HTML elements
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900");

html {
  font-size: 125%; /* Set base font size to 20px */
}

body {
  background: var(--color-grey-ltr);
  font-family: "Helvetica Neue", Helvetica, "Inter", arial, sans-serif;
  font-size: 0.8rem;
  color: var(--color-black);
  line-height: 1.6;
}

/* Set a margin on block level elements */
h1,
h2,
h3,
h4,
h5,
ol,
ul,
dl,
table,
blockquote,
p,
.form-item,
fieldset,
details {
  margin: 0 0 1em;
}

h1,
.h1 {
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.15;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
}

h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;

  a {
    text-decoration: none;

    &:matches(:hover, :focus) {
      text-decoration: underline;
    }
  }
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9rem;
}

/**
 * Links:
*/
a {
  color: var(--color-blue);
  text-decoration: none;

  &:is(:hover, :focus) {
    text-decoration: underline;
  }
}
a.tag-link {
  background-color: white;
  color: black;
  font-size: 0.75em;
  font-weight: 500;
  padding: 0.25rem;
}
a.tag-link:hover {
  color: white;
  background-color: var(--color-blue-dk);
}
/** Lists */
ol,
ul {
  padding-left: 1.5em;
  margin-left: 0;
}

/* Second level */
:is(ul, ol) :is(ul, ol) {
  padding-left: 1em;
  margin: 0.225em 0;
}

.field--text-with-summary ul {
  & li {
    list-style-type: none;

    &::marker {
      display: none;
    }
    &::before {
      /* content: "";
      display: inline-block;
      float: left;
      margin: 0.6rem 0.2rem 0 -1.2rem;
      height: 0.5rem;
      width: 0.5rem;
      border: 1px solid var(--color-blue); */

      content: url("../../assets/rectangle_icon.svg");
      display: inline-block;
      float: left;
      margin: 0.5rem 0.2rem 0 -1.2rem;
      height: 0.5rem;
      width: 0.5rem;
      border: none;
      line-height: 0;
    }
  }

  &.bullets-bigger {
    & li::before {
      height: 0.8rem;
      width: 0.8rem;
      margin: 0.4rem 0.4rem 0 -1.4rem;
    }
  }

  & ul {
    list-style: disc;

    & li::before {
      display: none;
    }

    & ul {
      list-style: square;
    }
  }
}

dt {
  font-weight: bold;
  margin-bottom: 0.5em;
}
dd {
  margin: 0;
}

/* Blockquotes */
blockquote {
  color: var(--blockquote-quote-color);
  font-size: 1.6rem;
  margin-left: 0;
  margin-right: 0;
  padding: 1rem 1.5rem;
}

/* Hr */

hr {
  border: none;
  border-bottom: 1px solid var(--color-grey-md);
}

/* Inline elements */
code,
kbd {
  font-family: monospace;
}
mark {
  background: rgba(244, 210, 24, 0.5);
}
